PageSourceSearch

https://hyperlane-warp-template.vercel.app/_next/static/immutable/chunks/452n4rbpb6a37.js

js hyperlane-warp-template.vercel.app collected 2026-10-03 07:06:36 UTC 1,914,711 bytes, 884 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,72858,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.regionAPIs=void 0,r.regionAPIs=new Map([["us","https://api-iam.intercom.io"],["eu","https://api-iam.eu.intercom.io"],["ap","https://api-iam.au.intercom.io"]])},901178,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.ref=r.init=void 0;let n="_intercom_npm_loader",o=function(){o.loaderQueue(arguments)};o.q=[],o.loaderQueue=function(e){o.q.push(e)};let a=function(e){var t,r,i=document;if(!i.getElementById(n)){var o=i.createElement("script");o.type="text/javascript",o.async=!0,o.id=n,o.src=e||"https://widget.intercom.io/widget/"+(null==(t=window.intercomSettings)?void 0:t.app_id);var a=i.getElementsByTagName("script")[0];null==(r=a.parentNode)||r.insertBefore(o,a)}},s=()=>"complete"===document.readyState||"interactive"===document.readyState;r.init=(...e)=>i(void 0,[...e],void 0,function*(e={}){var t=window,r=t.Intercom;t.intercomSettings&&(t.intercomSettings.installation_type="npm-package"),"function"==typeof r?(r("reattach_activator"),r("update",t.intercomSettings)):(t.Intercom=o,s()?a(e.widgetUrl):(document.addEventListener("readystatechange",function(){s()&&a(e.widgetUrl)}),t.attachEvent?t.attachEvent("onload",()=>a(e.widgetUrl)):t.addEventListener("load",()=>a(e.widgetUrl),!1)))}),r.ref=void 0},937837,(e,t,r)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};Object.defineProperty(r,"__esModule",{value:!0}),r.startConversation=r.hideNotifications=r.onUserEmailSupplied=r.showConversation=r.showTicket=r.startChecklist=r.startSurvey=r.showNews=r.showArticle=r.startTour=r.whoami=r.getVisitorId=r.trackEvent=r.onUnreadCountChange=r.onShow=r.onHide=r.showNewMessage=r.showMessages=r.showSpace=r.show=r.hide=r.update=r.shutdown=r.boot=r.Intercom=void 0;let n=e.r(72858),o=e.r(901178),a=(e,...t)=>{if(window.Intercom)return window.Intercom(e,...t);console.warn("Please ensure Intercom is setup and running on client-side!")};r.Intercom=e=>{if("object"!=typeof e)return void console.warn("Intercom initialiser called with invalid parameters.");let{region:t="us",widgetUrl:r}=e,a=i(e,["region","widgetUrl"]);"u">typeof window&&!o.ref&&(window.intercomSettings=Object.assign(Object.assign({},a),{api_base:n.regionAPIs.get(t)}),(0,o.init)({widgetUrl:r}))},r.default=r.Intercom,r.boot=e=>a("boot",e),r.shutdown=()=>a("shutdown"),r.update=e=>a("update",e),r.hide=()=>a("hide"),r.show=()=>a("show"),r.showSpace=e=>a("showSpace",e),r.showMessages=()=>a("showMessages"),r.showNewMessage=e=>a("showNewMessage",e),r.onHide=e=>a("onHide",e),r.onShow=e=>a("onShow",e),r.onUnreadCountChange=e=>a("onUnreadCountChange",e),r.trackEvent=(...e)=>a("trackEvent",...e),r.getVisitorId=()=>a("getVisitorId"),r.whoami=()=>a("whoami"),r.startTour=e=>a("startTour",e),r.showArticle=e=>a("showArticle",e),r.showNews=e=>a("showNews",e),r.startSurvey=e=>a("startSurvey",e),r.startChecklist=e=>a("startChecklist",e),r.showTicket=e=>a("showTicket",e),r.showConversation=e=>a("showConversation",e),r.onUserEmailSupplied=e=>a("onUserEmailSupplied",e),r.hideNotifications=e=>a("hideNotifications",e),r.startConversation=e=>a("startConversation",e)},30734,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
1),o=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.Bech32Address=void 0;let a=o(e.r(826022)),s=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/"),l=e.r(654475);r.Bech32Address=class e{static shortenAddress(e,t){if(t>=e.length)return e;let r=e.indexOf("1"),i=e.slice(0,r),n=e.slice(r+1);if(t-=i.length,t-=3,(t-=1)<=0)return"";let o=Math.floor(n.length/2),a=n.slice(0,o),s=n.slice(o);for(;t<a.length+s.length;)(a.length+s.length)%2==1&&a.length>0?a=a.slice(0,a.length-1):s=s.slice(1);return i+"1"+a+"..."+s}static fromBech32(t,r){let i=a.default.decode(t);if(r&&i.prefix!==r)throw Error("Unmatched prefix");return new e(new Uint8Array((0,a.fromWords)(i.words)))}static validate(e,t){let{prefix:r}=a.default.decode(e);if(t&&t!==r)throw Error(`Unexpected prefix (expected: ${t}, actual: ${r})`)}static defaultBech32Config(e,t="val",r="cons",i="pub",n="oper"){return{bech32PrefixAccAddr:e,bech32PrefixAccPub:e+i,bech32PrefixValAddr:e+t+n,be
1ch32PrefixValPub:e+t+n+i,bech32PrefixConsAddr:e+t+r,bech32PrefixConsPub:e+t+r+i}}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=s.Buffer.from(this.address).toString("hex");if(0===t.length)throw Error("Empty address");return e?(0,l.getAddress)("0x"+t):"0x"+t}}},683044,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ChainIdHelper=void 0;class i{static parse(e){if("injective-777"===e||"injective-888"===e)return{identifier:e,version:0};let t=e.split(i.VersionFormatRegExp).filter(Boolean);return 2!==t.length?{identifier:e,version:0}:{identifier:t[0],version:parseInt(t[1])}}static hasChainVersion(e){return i.parse(e).identifier!==e}}r.ChainIdHelper=i,i.VersionFormatRegExp=/(.+)-([\d]+)/},2406,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.EthermintChainIdHelper=void 0;let i=e.r(683044);r.EthermintChainIdHelper=class{static parse(e){let t=i.ChainIdHelper.parse(e);if(e.startsWith("injective"))return["injective-777","injective-888"].includes(e)?Object.assign({ethChainId:5},t):Object.assign({ethChainId:1},t);let r=e.match("^([a-z]{1,})_{1}([1-9][0-9]*)-{1}([1-9][0-9]*)$");if(!r||4!==r.length||""===r[1]||Number.isNaN(parseFloat(r[2]))||!Number.isInteger(parseFloat(r[2])))throw Error(`Invalid chainId for ethermint: ${e}`);return Object.assign(Object.assign({},t),{ethChainId:parseFloat(r[2])})}}},263112,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(683044),r),n(e.r(2406),r)},410278,(e,t,r)=>{"use strict";var i;Object.defineProperty(r,"__esModule",{value:!0}),r.WsReadyState=void 0,(i=r.WsReadyState||(r.WsReadyState={}))[i.CONNECTING=0]="CONNECTING",i[i.OPEN=1]="OPEN",i[i.CLOSING=2]="CLOSING",i[i.CLOSED=3]="CLOSED",i[i.NONE=4]="NONE"},254211,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TendermintTxTracer=void 0;let i=e.r(410278),n=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/");r.TendermintTxTracer=class{constructor(e,t,r={}){this.url=e,this.wsEndpoint=t,this.options=r,this.newBlockSubscribes=[],this.txSubscribes=new Map,this.pendingQueries=new Map,this.listeners={},this.onOpen=e=>{var t;for(let[e,t]of(this.newBlockSubscribes.length>0&&this.sendSubscribeBlockRpc(),this.txSubscribes))this.sendSubscribeTxRpc(e,t.params);for(let[e,t]of this.pendingQueries)this.sendQueryRpc(e,t.method,t.params);for(let r of null!=(t=this.listeners.open)?t:[])r(e)},this.onMessage=e=>{var t,r,i,n,o,a;for(let r of null!=(t=this.listeners.message)?t:[])r(e);if(e.data)try{let t=JSON.parse(e.data);if((null==t?void 0:t.id)&&this.pendingQueries.has(t.id)&&(t.error?this.pendingQueries.get(t.id).rejector(Error(t.error.data||t.error.message)):(null==(r=t.result)?void 0:r.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)),(null==(n=null==(i=null==t?void 0:t.result)?void 0:i.data)?void 0:n.type)==="tendermint/event/NewBlock")for(let e of this.newBlockSubscribes)e.handler(t.result.data.value);(null==(a=null==(o=null==t?void 0:t.result)?void 0:o.data)?void 0:a.type)==="tendermint/event/Tx"&&(null==t?void 0: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=>{var t;for(let r of null!=(t=this.listeners.close)?t:[])r(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
1=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 i.WsReadyState.CONNECTING;case 1:return i.WsReadyState.OPEN;case 2:return i.WsReadyState.CLOSING;case 3:return i.WsReadyState.CLOSED;default:return i.WsReadyState.NONE}}addEventListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}subscribeBlock(e){return this.newBlockSubscribes.push({handler:e}),1===this.newBlockSubscribes.length&&this.sendSubscribeBlockRpc(),()=>{this.newBlockSubscribes=this.newBlockSubscribes.filter(t=>t.handler!==e)}}sendSubscribeBlockRpc(){this.readyState===i.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(r=>{if(e instanceof Uint8Array||(null==r?void 0:r.total_count)!=="0")return void t(r)}).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,i)=>{this.txSubscribes.set(t,{params:r,resolver:e,rejector:i}),this.sendSubscribeTxRpc(t,r)})}{let t=this.createRandomId(),r={query:"tm.event='Tx' and "+Object.keys(e).map(t=>({key:t,value:e[t]})).map(e=>`${e.key}=${"string"==typeof e.value?`'${e.value}'`:e.value}`).join(" and "),page:"1",per_page:"1",order_by:"desc"};return new Promise((e,i)=>{this.txSubscribes.set(t,{params:r,resolver:e,rejector:i}),this.sendSubscribeTxRpc(t,r)})}}sendSubscribeTxRpc(e,t){this.readyState===i.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:"2.0",method:"subscribe",params:t,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}=${"string"==typeof e.value?`'${e.value}'`:e.value}`).join(" and "),page:"1",per_page:"1",order_by:"desc"};return this.query("tx_search",t)}}query(e,t){let r=this.createRandomId();return new Promise((i,n)=>{this.pendingQueries.set(r,{method:e,params:t,resolver:i,rejector:n}),this.sendQueryRpc(r,e,t)})}sendQueryRpc(e,t,r){this.readyState===i.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:"2.0",method:t,params:r,id:e}))}createRandomId(){return parseInt(Array.from({length:6}).map(()=>Math.floor(100*Math.random())).join(""))}}},178531,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Hash=void 0;let i=e.r(539862),n=e.r(775560),o=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/");r.Hash=class{static sha256(e){return new Uint8Array(new i.sha256().update(e).digest())}static keccak256(e){return o.Buffer.from((0,n.keccak256)(e).replace("0x",""),"hex")}static truncHashPortion(e,t=e.length,r=0){return e.substring(0,t)+"…"+e.substring(e.length-r,e.length)}}},792510,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.PubKeySecp256k1=r.PrivKeySecp256k1=void 0;let n=e.r(244648),o=i(e.r(464965)),a=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/"),s=e.r(178531);r.PrivKeySecp256k1=class e{static generateRandomKey(){let t=new n.ec("secp256k1");return new e(a.Buffer.from(t.genKeyPair().getPrivate().toArray()))}constructor(e){this.privKey=e}toBytes(){return new Uint8Array(this.privKey)}getPubKey(){return new l(new Uint8Array(new n.ec("secp256k1").keyFromPrivate(this.privKey).getPublic().encodeCompressed("array")))}signDigest32(e){if(32!==e.length)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}}};class l{constructor(e){if(this.pubKey=e,33!==e.length&&65!==e.length)throw Error(`Invalid length of public key: ${e.length}`)}toBytes(e){if(e&&65===this.pubKey.length||!e&&33===this.pubKey.length)return this.pubKey;let t=this.toKeyPair();return new Uint8Array(e?a.Buffer.from(t.getPublic().encode("hex",!1),"hex"):a.Buffer.from(t.getPublic().encodeCompressed("hex"),"hex"))}getAddress(){return this.getCosmosAddress()}getCosmosAddress(){let e=o.default.SHA256(o.default.lib.WordArray.create(this.toBytes(!1))).toString();return e=o.default.RIPEMD160(o.default.enc.Hex.parse(e)).toString(),new Uint8Array(a.Buffer.from(e,"hex"))}getEthAddress(){return s.Hash.keccak256(this.toBytes(!0).slice(1)).slice(-20)}toKeyPair(){return new n.ec("secp256k1").keyFromPublic(a.Buffer.from(this.pubKey).toString("hex"),"hex")}verifyDigest32(e,t){if(32!==e.length)throw Error(`Invalid length of digest to verify: ${e.length}`);if(64!==t.length)throw Error(`Invalid length of signature: ${t.length}`);let r=new n.ec("secp256k1"),i=t.slice(0,32),o=t.slice(32);return r.verify(e,{r:a.Buffer.from(i).toString("hex"),s:a.Buffer.from(o).toString("hex")},this.toKeyPair())}}r.PubKeySecp256k1=l},378730,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);
1(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(945004),r),n(e.r(792510),r),n(e.r(178531),r)},9093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DenomHelper=void 0;let i=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/"),n=e.r(378730);r.DenomHelper=class{static ibcDenom(e,t){let r=[];for(let t of e)r.push(`${t.portId}/${t.channelId}`);let o=r.join("/"),a=`${o}/${t}`;return"ibc/"+i.Buffer.from(n.Hash.sha256(i.Buffer.from(a))).toString("hex").toUpperCase()}constructor(e){this._denom=e;const t=this.denom.split(/(\w+):(\w+):(.+)/).filter(Boolean);if(1!==t.length&&3!==t.length)throw Error(`Invalid denom: ${this.denom}`);this._type=3===t.length?t[0]:"",this._contractAddress=3===t.length?t[1]:""}get denom(){return this._denom}get type(){return this._type||"native"}get contractAddress(){return this._contractAddress}}},143501,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toGenerator=void 0,r.toGenerator=function*(e){return yield e}},650143,e=>{"use strict";function t(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];throw Error("number"==typeof e?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}function r(){return"u">typeof globalThis?globalThis:"u">typeof window?window:e.g}e.i(494514);var i,n,o,a,s,l,c,d,u,h,p,f=Object.assign,g=Object.getOwnPropertyDescriptor,m=Object.defineProperty,y=Object.prototype,b=[];Object.freeze(b);var v={};Object.freeze(v);var w="u">typeof Proxy,x=Object.toString();function S(){w||t("Proxy not available")}function A(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var k=function(){};function E(e){return"function"==typeof e}function I(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function M(e){return null!==e&&"object"==typeof e}function T(e){if(!M(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r.toString()===x}function N(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function _(e,t,r){m(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function C(e,t,r){m(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function O(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(e){return M(e)&&!0===e[r]}}function P(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function D(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var j=void 0!==Object.getOwnPropertySymbols,R="u">typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:j?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function z(e){return null===e?null:"object"==typeof e?""+e:e}function L(e,t){return y.hasOwnProperty.call(e,t)}var B=Object.getOwnPropertyDescriptors||function(e){var t={};return R(e).forEach(function(r){t[r]=g(e,r)}),t};function U(e,t,r){return r?e|=t:e&=~t,e}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function W(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i.key),i)}}function H(e,t,r){return t&&W(e.prototype,t),r&&W(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function V(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return q(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function K(){return(K=Object.assign.bind()).apply(null,arguments)}
1function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Y(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,G(e,t)}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J=function(){return!!e})()}function G(e,t){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Q(e){var t="function"==typeof Map?new Map:void 0;return(Q=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(J())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var n=new(e.bind.apply(e,i));return r&&G(n,r.prototype),n}(e,arguments,F(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),G(r,e)})(e)}var Z=Symbol("mobx-stored-annotations");function X(e){return Object.assign(function(t,r){if(ee(r))return e.decorate_20223_(t,r);$(t,r,e)},e)}function $(e,t,r){L(e,Z)||_(e,Z,K({},e[Z])),r.annotationType_!==el&&(e[Z][t]=r)}function ee(e){return"object"==typeof e&&"string"==typeof e.kind}var et=Symbol("mobx administration"),er=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=u.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;
1return 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 tb(this)},t.reportChanged=function(){tm(),tv(this),ty()},t.toString=function(){return this.name_},H(e,[{key:"isBeingObserved",get:function(){return!!(this.flags_&e.isBeingObservedMask_)},set:function(t){this.flags_=U(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return!!(this.flags_&e.isPendingUnobservationMask_)},set:function(t){this.flags_=U(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return+!!(this.flags_&e.diffValueMask_)},set:function(t){this.flags_=U(this.flags_,e.diffValueMask_,1===t)}}])}();er.isBeingObservedMask_=1,er.isPendingUnobservationMask_=2,er.diffValueMask_=4;var ei=O("Atom",er);function en(e,t,r){void 0===t&&(t=k),void 0===r&&(r=k);var i=new er(e);return t!==k&&tq(i,t),r!==k&&tW(i,r),i}var eo={identity:function(e,t){return e===t},structural:function(e,t){return rJ(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return rJ(e,t,1)}};function ea(e,t,r){if(t1(e))return e;if(Array.isArray(e))return eq.array(e,{name:r});if(T(e))return eq.object(e,void 0,{name:r});if(P(e))return eq.map(e,{name:r});if(D(e))return eq.set(e,{name:r});if("function"==typeof e&&!tz(e)&&!tX(e))if(N(e))return tQ(e);else return tj(r,e);return e}function es(e){return e}var el="override",ec=X({annotationType_:el,make_:function(e,t){return 0},extend_:function(e,r,i,n){t("'"+this.annotationType_+"' can only be used with 'makeObservable'")},decorate_20223_:function(e,t){console.warn("'"+this.annotationType_+"' cannot be used with decorators - this is a no-op")}});function ed(e,t){return{annotationType_:e,options_:t,make_:eu,extend_:eh,decorate_20223_:ep}}function eu(e,t,r,i){if(null!=(n=this.options_)&&n.bound)return+(null!==this.extend_(e,t,r,!1));if(i===e.target_)return 2*(null!==this.extend_(e,t,r,!1));if(tz(r.value))return 1;var n,o=ef(e,this,t,r,!1);return m(i,t,o),2}function eh(e,t,r,i){var n=ef(e,this,t,r);return e.defineProperty_(t,n,i)}function ep(e,r){var i,n=r.kind,o=r.name,a=r.addInitializer,s=this,l=function(e){var t,r,i,n;return eQ(null!=(t=null==(r=s.options_)?void 0:r.name)?t:o.toString(),e,null!=(i=null==(n=s.options_)?void 0:n.autoAction)&&i)};return"field"==n?function(e){var t,r=e;return tz(r)||(r=l(r)),null!=(t=s.options_)&&t.bound&&((r=r.bind(this)).isMobxAction=!0),r}:"method"==n?(tz(e)||(e=l(e)),null!=(i=this.options_)&&i.bound&&a(function(){var e=this[o].bind(this);e.isMobxAction=!0,this[o]=e}),e):void t("Cannot apply '"+s.annotationType_+"' to '"+String(o)+"' (kind: "+n+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function ef(e,t,r,i,n){void 0===n&&(n=tp.safeDescriptors),t.annotationType_,i.value;var o,a,s,l,c,d,u,h,p=i.value;return null!=(o=t.options_)&&o.bound&&(p=p.bind(null!=(h=e.proxy_)?h:e.target_)),{value:eQ(null!=(a=null==(s=t.options_)?void 0:s.name)?a:r.toString(),p,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(d=t.options_)&&d.bound?null!=(u=e.proxy_)?u:e.target_:void 0),configurable:!n||e.isPlainObject_,enumerable:!1,writable:!n}}function eg(e,t){return{annotationType_:e,options_:t,make_:em,extend_:ey,decorate_20223_:eb}}function em(e,t,r,i){if(i===e.target_)return 2*(null!==this.extend_(e,t,r,!1));if(null!=(n=this.options_)&&n.bound&&(!L(e.target_,t)||!tX(e.target_[t]))&&null===this.extend_(e,t,r,!1))return 0;if(tX(r.value))return 1;var n,o=ev(e,this,t,r,!1,!1);return m(i,t,o),2}function ey(e,t,r,i){var n,o=ev(e,this,t,r,null==(n=this.options_)?void 0:n.bound);return e.defineProperty_(t,o,i)}function eb(e,t){var r,i=t.name,n=t.addInitializer;return tX(e)||(e=tQ(e)),null!=(r=this.options_)&&r.bound&&n(function(){var e=this[i].bind(this);e.isMobXFlow=!0,this[i]=e}),e}function ev(e,t,r,i,n,o){void 0===o&&(o=tp.safeDescriptors),t.annotationType_,i.value;var a,s=i.value;return tX(s)||(s=tQ(s)),n&&((s=s.bind(null!=(a=e.proxy_)?a:e.target_)).isMobXFlow=!0),{value:s,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ew(e,t){return{annotationType_:e,options_:t,make_:ex,extend_:eS,decorate_20223_:eA}}function ex(e,t,r){return+(null!==this.extend_(e,t,r,!1))}function eS(e,t,r,i){var n,o;return n=this,o=r,n.annotationType_,o.get,e.defineComputedProperty_(t,K({},this.options_,{get:r.get,set:r.set}),i)}function eA(e,t){var r,i=this,n=t.name;function o(t,r){var o=K({},i.options_,{get:e,context:t});return o.name||(o.name="ObservableObject."+n.toString()),new e5(o)}return(0,t.addInitializer)(function(){var t,r=r_(this)[et],i=this,a=r.values_.get(n);a instanceof e5&&a.derivation!==e&&r.values_.delete(n),(null!=(t=r.lazyComputedKeys_)?t:r.lazyComputedKeys_=new Map).set(n,function(){return o(i,r)})}),function(){var t=this[et],i=t.values_.get(n);if(i instanceof e5&&i.derivation!==e){var a,s,l=null==(a=r)?void 0:a.get(this);return l||(l=o(this,t),(null!=(s=r)?s:r=new WeakMap).set(this,l)),l.get()}return t.getObservablePropValue_(n)}}function ek(e,t){return{annotationType_:e,options_:t,make_:eE,extend_:eI,decorate_20223_:eM}}function eE(e,t,r){return+(null!==this.extend_(e,t,r,!1))}function eI(e,t,r,i){var n,o,a;return a=this,a.annotationType_,e.defineObservableProperty_(t,r.value,null!=(n=null==(o=this.options_)?void 0:o.enhancer)?n:ea,i)}function eM(e,t){var r=this,i=t.kind,n=t.name;if("accessor"===i)return{get:function(){var t;return(null!=(t=this[et])?t:o(this,e.get.call(this))).getObservablePropValue_(n)},set:function(e){var t;return(null!=(t=this[et])?t:o(this,e)).setObservablePropValue_(n,e)},init:function(e){return o(this,e),e}};function o(e,t){var i,o=r_(e)[et];return(null!=(i=o.lazyObservableKeys_)?i:o.lazyObservableKeys_=new Map).set(n,function(){var e,i;return new e3(t,null!=(e=null==(i=r.options_)?void 0:i.enhancer)?e:ea,"ObservableObject."+n.toString(),!1)}),o}}var eT=eN();function eN(e){return{annotationType_:"true",options_:e,make_:e_,extend_:eC,decorate_20223_:eO}}
1function e_(e,t,r,i){if(r.get)return eK.make_(e,t,r,i);if(r.set){var n,o,a,s,l,c=tz(r.set)?r.set:eQ(t.toString(),r.set);return i===e.target_?2*(null!==e.defineProperty_(t,{configurable:!tp.safeDescriptors||e.isPlainObject_,set:c})):(m(i,t,{configurable:!0,set:c}),2)}if(i!==e.target_&&"function"==typeof r.value)return N(r.value)?(null!=(s=this.options_)&&s.autoBind?tQ.bound:tQ).make_(e,t,r,i):(null!=(a=this.options_)&&a.autoBind?tj.bound:tj).make_(e,t,r,i);var d=(null==(n=this.options_)?void 0:n.deep)===!1?eq.ref:eq;return"function"==typeof r.value&&null!=(o=this.options_)&&o.autoBind&&(r.value=r.value.bind(null!=(l=e.proxy_)?l:e.target_)),d.make_(e,t,r,i)}function eC(e,t,r,i){var n,o,a;return r.get?eK.extend_(e,t,r,i):r.set?e.defineProperty_(t,{configurable:!tp.safeDescriptors||e.isPlainObject_,set:eQ(t.toString(),r.set)},i):("function"==typeof r.value&&null!=(n=this.options_)&&n.autoBind&&(r.value=r.value.bind(null!=(a=e.proxy_)?a:e.target_)),((null==(o=this.options_)?void 0:o.deep)===!1?eq.ref:eq).extend_(e,t,r,i))}function eO(e,r){t("'"+this.annotationType_+"' cannot be used as a decorator")}var eP={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(eP);var eD=ek("observable"),ej=ek("observable.ref",{enhancer:es}),eR=ek("observable.shallow",{enhancer:function(e,t,r){return null==e||rP(e)||ry(e)||rx(e)||rE(e)?e:Array.isArray(e)?eq.array(e,{name:r,deep:!1}):T(e)?eq.object(e,void 0,{name:r,deep:!1}):P(e)?eq.map(e,{name:r,deep:!1}):D(e)?eq.set(e,{name:r,deep:!1}):void 0}}),ez=ek("observable.struct",{enhancer:function(e,t){return rJ(e,t)?t:e}}),eL=X(eD);function eB(e){var t,r,i;return!0===e.deep?ea:!1===e.deep?es:(t=e.defaultDecorator)&&null!=(r=null==(i=t.options_)?void 0:i.enhancer)?r:ea}function eU(e,t,r){return ee(t)?eD.decorate_20223_(e,t):I(t)?void $(e,t,eD):t1(e)?e:T(e)?eq.object(e,t,r):Array.isArray(e)?eq.array(e,t):P(e)?eq.map(e,t):D(e)?eq.set(e,t):"object"==typeof e&&null!==e?e:eq.box(e,t)}f(eU,eL);var eq=f(eU,{box:function(e,t){var r=t||eP;return new e3(e,eB(r),r.name,!0,r.equals)},array:function(e,t){var r=t||eP;return(!1===tp.useProxies||!1===r.proxy?function(e,t,r){return new rU(e,t,r)}:function(e,t,r,i){return void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),S(),rF(function(){var n=new rd(r,t,i,!1);C(n.values_,et,n);var o=new Proxy(n.values_,rc);return n.proxy_=o,e&&e.length&&n.spliceWithArray_(0,0,e),o})})(e,eB(r),r.name)},map:function(e,t){var r=t||eP;return new rw(e,eB(r),r.name)},set:function(e,t){var r=t||eP;return new rk(e,eB(r),r.name)},object:function(e,t,r){return rF(function(){var i,n,o,a;return tK(!1===tp.useProxies||(null==r?void 0:r.proxy)===!1?r_({},r):(i={},n=r,S(),null!=(a=(o=(i=r_(i,n))[et]).proxy_)?a:o.proxy_=new Proxy(i,t9)),e,t)})},ref:X(ej),shallow:X(eR),deep:eL,struct:X(ez)}),eW="computed",eH=ew(eW),eV=ew("computed.struct",{equals:eo.structural}),eK=function(e,t){if(ee(t))return eH.decorate_20223_(e,t);if(I(t))return $(e,t,eH);if(T(e))return X(ew(eW,e));var r=T(t)?t:{};return r.get=e,r.name||(r.name=e.name||""),new e5(r)};Object.assign(eK,eH),eK.struct=X(eV);var eF=0,eY=1,eJ=null!=(c=null==(d=g(function(){},"name"))?void 0:d.configurable)&&c,eG={value:"action",configurable:!0,writable:!1,enumerable:!1};function eQ(e,t,r,i){function n(){return eZ(e,r,t,i||this,arguments)}return void 0===r&&(r=!1),n.isMobxAction=!0,n.toString=function(){return t.toString()},eJ&&(eG.value=e,m(n,"name",eG)),n}function eZ(e,t,r,i,n){var o=eX(e,t,i,n);try{return r.apply(i,n)}catch(e){throw o.error_=e,e}finally{e$(o)}}function eX(e,t,r,i){var n=tp.trackingDerivation,o=!t||!n;tm();var a=tp.allowStateChanges;o&&(tn(),a=e1(!0));var s={runAsAction_:o,prevDerivation_:n,prevAllowStateChanges_:a,prevAllowStateReads_:ta(!0),notifySpy_:!1,startTime_:0,actionId_:eY++,parentActionId_:eF};return eF=s.actionId_,s}function e$(e){eF!==e.actionId_&&t(30),eF=e.parentActionId_,void 0!==e.error_&&(tp.suppressReactionErrors=!0),e2(e.prevAllowStateChanges_),ts(e.prevAllowStateReads_),ty(),e.runAsAction_&&to(e.prevDerivation_),tp.suppressReactionErrors=!1}function e0(e,t){var r=e1(e);try{return t()}finally{e2(r)}}function e1(e){var t=tp.allowStateChanges;return tp.allowStateChanges=e,t}function e2(e){tp.allowStateChanges=e}var e3=function(e){function t(t,r,i,n,o){var a;return void 0===i&&(i="ObservableValue"),void 0===n&&(n=!0),void 0===o&&(o=eo.default),(a=e.call(this,i)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=r,a.name_=i,a.equals=o,a.value_=r(t,void 0,i),a}Y(t,e);var r=t.prototype;return r.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},r.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==tp.UNCHANGED&&this.setNewValue_(e)},r.prepareNewValue_=function(e){if(te(this),re(this)){var t=rr(this,{object:this,type:rl,newValue:e});if(!t)return tp.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?tp.UNCHANGED:e},r.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),ri(this)&&ro(this,{type:rl,object:this,newValue:e,oldValue:t})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(e){return rt(this,e)},r.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:rl,newValue:this.value_,oldValue:void 0}),rn(this,e)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return z(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(er),e4=O("ObservableValue",e3),e5=function(){function e(e){this.dependenciesState_=u.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=u.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new e6(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=h.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||t(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=eQ("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?eo.structural
1:eo.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var r=e.prototype;return r.onBecomeStale_=function(){var e;e=this,e.lowestObserverState_===u.UP_TO_DATE_&&(e.lowestObserverState_=u.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===u.UP_TO_DATE_&&(e.dependenciesState_=u.POSSIBLY_STALE_,e.onBecomeStale_())}))},r.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},r.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},r.get=function(){if(this.isComputing&&t(32,this.name_,this.derivation),0!==tp.inBatch||0!==this.observers_.size||this.keepAlive_){if(tb(this),e9(this)){var e,r=tp.trackingContext;this.keepAlive_&&!r&&(tp.trackingContext=this),this.trackAndCompute()&&(e=this,e.lowestObserverState_!==u.STALE_&&(e.lowestObserverState_=u.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===u.POSSIBLY_STALE_?t.dependenciesState_=u.STALE_:t.dependenciesState_===u.UP_TO_DATE_&&(e.lowestObserverState_=u.UP_TO_DATE_)}))),tp.trackingContext=r}}else e9(this)&&(this.warnAboutUntrackedRead_(),tm(),this.value_=this.computeValue_(!1),ty());var i=this.value_;if(e7(i))throw i.cause;return i},r.set=function(e){if(this.setter_){this.isRunningSetter&&t(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else t(34,this.name_)},r.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===u.NOT_TRACKING_,r=this.computeValue_(!0),i=t||e7(e)||e7(r)||!this.equals_(e,r);return i&&(this.value_=r),i},r.computeValue_=function(e){this.isComputing=!0;var t,r=e1(!1);if(e)t=tt(this,this.derivation,this.scope_);else if(!0===tp.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new e6(e)}return e2(r),this.isComputing=!1,t},r.suspend_=function(){this.keepAlive_||(tr(this),this.value_=void 0)},r.observe_=function(e,t){var r=this,i=!0,n=void 0;return tL(function(){var o=r.get();if(!i||t){var a=tn();e({observableKind:"computed",debugObjectName:r.name_,type:rl,object:r,newValue:o,oldValue:n}),to(a)}i=!1,n=o})},r.warnAboutUntrackedRead_=function(){},r.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},r.valueOf=function(){return z(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},H(e,[{key:"isComputing",get:function(){return!!(this.flags_&e.isComputingMask_)},set:function(t){this.flags_=U(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return!!(this.flags_&e.isRunningSetterMask_)},set:function(t){this.flags_=U(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return!!(this.flags_&e.isBeingObservedMask_)},set:function(t){this.flags_=U(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return!!(this.flags_&e.isPendingUnobservationMask_)},set:function(t){this.flags_=U(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return+!!(this.flags_&e.diffValueMask_)},set:function(t){this.flags_=U(this.flags_,e.diffValueMask_,1===t)}}])}();e5.isComputingMask_=1,e5.isRunningSetterMask_=2,e5.isBeingObservedMask_=4,e5.isPendingUnobservationMask_=8,e5.diffValueMask_=16;var e8=O("ComputedValue",e5);(i=u||(u={}))[i.NOT_TRACKING_=-1]="NOT_TRACKING_",i[i.UP_TO_DATE_=0]="UP_TO_DATE_",i[i.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",i[i.STALE_=2]="STALE_",(n=h||(h={}))[n.NONE=0]="NONE",n[n.LOG=1]="LOG",n[n.BREAK=2]="BREAK";var e6=function(e){this.cause=void 0,this.cause=e};function e7(e){return e instanceof e6}function e9(e){switch(e.dependenciesState_){case u.UP_TO_DATE_:return!1;case u.NOT_TRACKING_:case u.STALE_:return!0;case u.POSSIBLY_STALE_:for(var t=ta(!0),r=tn(),i=e.observing_,n=i.length,o=0;o<n;o++){var a=i[o];if(e8(a)){if(tp.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return to(r),ts(t),!0}if(e.dependenciesState_===u.STALE_)return to(r),ts(t),!0}}return tl(e),to(r),ts(t),!1}}function te(e){}function tt(e,t,r){var i,n=ta(!0);tl(e),e.newObserving_=Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++tp.runId;var o=tp.trackingDerivation;if(tp.trackingDerivation=e,tp.inBatch++,!0===tp.disableErrorBoundaries)i=t.call(r);else try{i=t.call(r)}catch(e){i=new e6(e)}return tp.inBatch--,tp.trackingDerivation=o,function(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,i=u.UP_TO_DATE_,n=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=r[a];0===s.diffValue&&(s.diffValue=1,n!==a&&(r[n]=s),n++),s.dependenciesState_>i&&(i=s.dependenciesState_)}for(r.length=n,e.newObserving_=null,o=t.length;o--;){var l=t[o];0===l.diffValue&&tf(l,e),l.diffValue=0}for(;n--;){var c,d,h=r[n];1===h.diffValue&&(h.diffValue=0,c=h,d=e,c.observers_.add(d),c.lowestObserverState_>d.dependenciesState_&&(c.lowestObserverState_=d.dependenciesState_))}
1i!==u.UP_TO_DATE_&&(e.dependenciesState_=i,e.onBecomeStale_())}(e),ts(n),i}function tr(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)tf(t[r],e);e.dependenciesState_=u.NOT_TRACKING_}function ti(e){var t=tn();try{return e()}finally{to(t)}}function tn(){var e=tp.trackingDerivation;return tp.trackingDerivation=null,e}function to(e){tp.trackingDerivation=e}function ta(e){var t=tp.allowStateReads;return tp.allowStateReads=e,t}function ts(e){tp.allowStateReads=e}function tl(e){if(e.dependenciesState_!==u.UP_TO_DATE_){e.dependenciesState_=u.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=u.UP_TO_DATE_}}var tc=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],td=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},tu=!0,th=!1,tp=((o=r()).__mobxInstanceCount>0&&!o.__mobxGlobals&&(tu=!1),o.__mobxGlobals&&o.__mobxGlobals.version!==new td().version&&(tu=!1),tu)?o.__mobxGlobals?(o.__mobxInstanceCount+=1,o.__mobxGlobals.UNCHANGED||(o.__mobxGlobals.UNCHANGED={}),o.__mobxGlobals):(o.__mobxInstanceCount=1,o.__mobxGlobals=new td):(setTimeout(function(){th||t(35)},1),new td);function tf(e,t){e.observers_.delete(t),0===e.observers_.size&&tg(e)}function tg(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,tp.pendingUnobservations.push(e))}function tm(){tp.inBatch++}function ty(){if(0==--tp.inBatch){tS();for(var e=tp.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,0===r.observers_.size&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof e5&&r.suspend_())}tp.pendingUnobservations=[]}}function tb(e){var t=tp.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&tp.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&tp.inBatch>0&&tg(e),!1)}function tv(e){e.lowestObserverState_!==u.STALE_&&(e.lowestObserverState_=u.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===u.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=u.STALE_}))}var tw=function(){function e(e,t,r,i){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=u.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=h.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=r,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,tp.pendingReactions.push(this),tS())},t.runReaction_=function(){if(!this.isDisposed){tm(),this.isScheduled=!1;var e=tp.trackingContext;if(tp.trackingContext=this,e9(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}tp.trackingContext=e,ty()}},t.track=function(e){if(!this.isDisposed){tm(),this.isRunning=!0;var t=tp.trackingContext;tp.trackingContext=this;var r=tt(this,e,void 0);tp.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&tr(this),e7(r)&&this.reportExceptionInDerivation_(r.cause),ty()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)return void this.errorHandler_(e,this);if(tp.disableErrorBoundaries)throw e;tp.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",e),tp.globalReactionErrorHandlers.forEac
1h(function(r){return r(e,t)})},t.dispose=function(){!this.isDisposed&&(this.isDisposed=!0,this.isRunning||(tm(),tr(this),ty()))},t.getDisposer_=function(e){var t=this,r=function r(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",r)};return null==e||null==e.addEventListener||e.addEventListener("abort",r),r[et]=this,"dispose"in Symbol&&"symbol"==typeof Symbol.dispose&&(r[Symbol.dispose]=r),r},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),t8()},H(e,[{key:"isDisposed",get:function(){return!!(this.flags_&e.isDisposedMask_)},set:function(t){this.flags_=U(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return!!(this.flags_&e.isScheduledMask_)},set:function(t){this.flags_=U(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return!!(this.flags_&e.isTrackPendingMask_)},set:function(t){this.flags_=U(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return!!(this.flags_&e.isRunningMask_)},set:function(t){this.flags_=U(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return+!!(this.flags_&e.diffValueMask_)},set:function(t){this.flags_=U(this.flags_,e.diffValueMask_,1===t)}}])}();tw.isDisposedMask_=1,tw.isScheduledMask_=2,tw.isTrackPendingMask_=4,tw.isRunningMask_=8,tw.diffValueMask_=16;var tx=function(e){return e()};function tS(){tp.inBatch>0||tp.isRunningReactions||tx(tA)}function tA(){tp.isRunningReactions=!0;for(var e=tp.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),i=0,n=r.length;i<n;i++)r[i].runReaction_()}tp.isRunningReactions=!1}var tk=O("Reaction",tw);function tE(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var tI="action",tM="autoAction",tT="<unnamed action>",tN=ed(tI),t_=ed("action.bound",{bound:!0}),tC=ed(tM,{autoAction:!0}),tO=ed("autoAction.bound",{autoAction:!0,bound:!0});function tP(e){return function(t,r){return E(t)?eQ(t.name||tT,t,e):E(r)?eQ(t,r,e):ee(r)?(e?tC:tN).decorate_20223_(t,r):I(r)?$(t,r,e?tC:tN):I(t)?X(ed(e?tM:tI,{name:t,autoAction:e})):void 0}}var tD=tP(!1);Object.assign(tD,tN);var tj=tP(!0);function tR(e){return eZ(e.name||tT,!1,e,this,void 0)}function tz(e){return E(e)&&!0===e.isMobxAction}function tL(e,t){void 0===t&&(t=v);var r,i,n,o,a,s=null!=(r=null==(i=t)?void 0:i.name)?r:"Autorun";if(t.scheduler||t.delay){var l=tU(t),c=!1;a=new tw(s,function(){c||(c=!0,l(function(){c=!1,a.isDisposed||a.track(d)}))},t.onError,t.requiresObservable)}else a=new tw(s,function(){this.track(d)},t.onError,t.requiresObservable);function d(){e(a)}return null!=(n=t)&&null!=(n=n.signal)&&n.aborted||a.schedule_(),a.getDisposer_(null==(o=t)?void 0:o.signal)}Object.assign(tj,tC),tD.bound=X(t_),tj.bound=X(tO);var tB=function(e){return e()};function tU(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:tB}function tq(e,t,r){return tH("onBO",e,t,r)}function tW(e,t,r){return tH("onBUO",e,t,r)}function tH(e,t,r,i){var n="function"==typeof i?rH(t,r):rH(t),o=E(i)?i:r,a=e+"L";return n[a]?n[a].add(o):n[a]=new Set([o]),function(){var e=n[a];e&&(e.delete(o),0===e.size&&delete n[a])}}var tV="always";function tK(e,t,r,i){var n=B(t);return rF(function(){var t=r_(e,i)[et];
1R(n).forEach(function(e){t.extend_(e,n[e],!r||!(e in r)||r[e])})}),e}var tF=0,tY=function(e){function t(){var r;return Object.setPrototypeOf(r=e.call(this,"FLOW_CANCELLED")||this,(this instanceof t?this.constructor:void 0).prototype),r.name="FlowCancellationError",r}return Y(t,e),t.prototype.toString=function(){return"Error: "+this.message},t}(Q(Error)),tJ=eg("flow"),tG=eg("flow.bound",{bound:!0}),tQ=Object.assign(function(e,t){if(ee(t))return tJ.decorate_20223_(e,t);if(I(t))return $(e,t,tJ);var r=e.name||"<unnamed flow>",i=function(){var t,i=arguments,n=++tF,o=tD(r+" - runid: "+n+" - init",e).apply(this,i),a=void 0,s=new Promise(function(e,i){var s=0;function l(e){var t;a=void 0;try{t=tD(r+" - runid: "+n+" - yield "+s++,o.next).call(o,e)}catch(e){return i(e)}d(t)}function c(e){var t;a=void 0;try{t=tD(r+" - runid: "+n+" - yield "+s++,o.throw).call(o,e)}catch(e){return i(e)}d(t)}function d(t){return E(null==t?void 0:t.then)?void t.then(d,i):t.done?e(t.value):(a=Promise.resolve(t.value)).then(l,c)}t=i,l(void 0)});return s.cancel=tD(r+" - runid: "+n+" - cancel",function(){try{a&&tZ(a);var e=o.return(void 0),r=Promise.resolve(e.value);r.then(k,k),tZ(r),t(new tY)}catch(e){t(e)}}),s};return i.isMobXFlow=!0,i},tJ);function tZ(e){E(e.cancel)&&e.cancel()}function tX(e){return(null==e?void 0:e.isMobXFlow)===!0}function t$(e,t){if(void 0===t)return e8(e);if(!1===rP(e))return!1;var r,i=e[et];return!!(null!=(r=i.lazyComputedKeys_)&&r.has(t))||!!i.values_.has(t)&&e8(rH(e,t))}function t0(e,t){if(!e)return!1;if(void 0!==t){if(rP(e)){var r,i,n=e[et];return n.values_.has(t)||!!(null!=(r=n.lazyComputedKeys_)&&r.has(t))||!!(null!=(i=n.lazyObservableKeys_)&&i.has(t))}return!1}return rP(e)||!!e[et]||ei(e)||tk(e)||e8(e)}function t1(e){return t0(e)}function t2(e){return rP(e)?e[et].keys_():rx(e)||rE(e)?Array.from(e.keys()):ry(e)?e.map(function(e,t){return t}):void t(5)}function t3(e,r){return rP(e)?e[et].has_(r):rx(e)?e.has(r):rE(e)?e.has(r):ry(e)?r>=0&&r<e.length:void t(10)}function t4(e){if(rP(e))return e[et].ownKeys_();t(38)}function t5(e,t,r){return e.set(t,r),r}function t8(){}function t6(e,t){void 0===t&&(t=void 0),tm();try{return e.apply(t)}finally{ty()}}function t7(e,t,r){if("number"==typeof r.timeout){var i,n=Error("WHEN_TIMEOUT");i=setTimeout(function(){if(!a[et].isDisposed)if(a(),r.onError)r.onError(n);else throw n},r.timeout)}r.name="When";var o=eQ("When-effect",t),a=tL(function(t){e0(!1,e)&&(t.dispose(),i&&clearTimeout(i),o())},r);return a}tQ.bound=X(tG);var t9={has:function(e,t){return e[et].has_(t)},get:function(e,t){return e[et].get_(t)},set:function(e,t,r){var i;return!!I(t)&&(null==(i=e[et].set_(t,r,!0))||i)},deleteProperty:function(e,t){var r;return!!I(t)&&(null==(r=e[et].delete_(t,!0))||r)},defineProperty:function(e,t,r){var i;return null==(i=e[et].defineProperty_(t,r))||i},ownKeys:function(e){return e[et].ownKeys_()},preventExtensions:function(e){t(13)}};function re(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function rt(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),A(function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)})}function rr(e,r){var i=tn();try{for(var n=[].concat(e.interceptors_||[]),o=0,a=n.length;o<a&&((r=n[o](r))&&!r.type&&t(14),r);o++);return r}finally{to(i)}}function ri(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function rn(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),A(function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)})}function ro(e,t){var r=tn(),i=e.changeListeners_;if(i){i=i.slice();for(var n=0,o=i.length;n<o;n++)i[n](t);to(r)}}var ra=Symbol("mobx-keys"),rs="splice",rl="update",rc={get:function(e,t){var r=e[et];return t===et?r:"length"===t?r.getArrayLength_():"string"!=typeof t||isNaN(t)?L(ru,t)?ru[t]:e[t]:r.get_(parseInt(t))},set:function(e,t,r){var i=e[et];return"length"===t&&i.setArrayLength_(r),"symbol"==typeof t||isNaN(t)?e[t]=r:i.set_(parseInt(t),r),!0},preventExtensions:function(){t(15)}},rd=function(){function e(e,t,r,i){void 0===e&&(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_
1=r,this.legacyMode_=i,this.atom_=new er(e),this.enhancer_=function(e,r){return t(e,r,"ObservableArray[..]")}}var r=e.prototype;return r.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},r.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},r.intercept_=function(e){return rt(this,e)},r.observe_=function(e,t){return void 0===t&&(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}),rn(this,e)},r.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},r.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&t("Out of range: "+e);var r=this.values_.length;if(e!==r)if(e>r){for(var i=Array(e-r),n=0;n<e-r;n++)i[n]=void 0;this.spliceWithArray_(r,0,i)}else this.spliceWithArray_(e,r-e)},r.updateArrayLength_=function(e,r){e!==this.lastKnownLength_&&t(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&rW(e+r+1)},r.spliceWithArray_=function(e,t,r){var i=this;te(this.atom_);var n=this.values_.length;if(void 0===e?e=0:e>n?e=n:e<0&&(e=Math.max(0,n+e)),t=1==arguments.length?n-e:null==t?0:Math.max(0,Math.min(t,n-e)),void 0===r&&(r=b),re(this)){var o=rr(this,{object:this.proxy_,type:rs,index:e,removedCount:t,added:r});if(!o)return b;t=o.removedCount,r=o.added}if(r=0===r.length?r:r.map(function(e){return i.enhancer_(e,void 0)}),this.legacyMode_){var a=r.length-t;this.updateArrayLength_(n,a)}var s=this.spliceItemsIntoValues_(e,t,r);return(0!==t||0!==r.length)&&this.notifyArraySplice_(e,r,s),this.dehanceValues_(s)},r.spliceItemsIntoValues_=function(e,t,r){if(r.length<1e4){var i;return(i=this.values_).splice.apply(i,[e,t].concat(r))}var n=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=r.length-t;for(var a=0;a<r.length;a++)this.values_[e+a]=r[a];for(var s=0;s<o.length;s++)this.values_[e+r.length+s]=o[s];return n},r.notifyArrayChildUpdate_=function(e,t,r){var i=!this.owned_&&!1,n=ri(this),o=n||i?{observableKind:"array",object:this.proxy_,type:rl,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:r}:null;this.atom_.reportChanged(),n&&ro(this,o)},r.notifyArraySplice_=function(e,t,r){var i=!this.owned_&&!1,n=ri(this),o=n||i?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:rs,index:e,removed:r,added:t,removedCount:r.length,addedCount:t.length}:null;this.atom_.reportChanged(),n&&ro(this,o)},r.get_=function(e){return this.legacyMode_&&e>=this.values_.length?void console.warn("[mobx] Out of bounds read: "+e):(this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]))},r.set_=function(e,r){var i=this.values_;if(this.legacyMode_&&e>i.length&&t(17,e,i.length),e<i.length){te(this.atom_);var n=i[e];if(re(this)){var o=rr(this,{type:rl,object:this.proxy_,index:e,newValue:r});if(!o)return;r=o.newValue}(r=this.enhancer_(r,n))!==n&&(i[e]=r,this.notifyArrayChildUpdate_(e,r,n))}else{for(var a=Array(e+1-i.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=r,this.spliceWithArray_(i.length,0,a)}},e}(),ru={clear:function(){return this.splice(0)},replace:function(e){var t=this[et];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];var o=this[et];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,i)},spliceWithArray:function(e,t,r){return this[et].spliceWithArray_(e,t,r)},push:function(){for(var e=this[et],t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.spliceWithArray_(e.values_.length,0,r),e.values_.length},pop:function(){return this.splice(Math.max(this[et].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[et],t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.spliceWithArray_(0,0,r),e.values_.length},reverse:function(){return tp.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){tp.trackingDerivation&&t(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[et],r=t.dehanceValues_(t.values_).indexOf(e);return r>-1&&(this.splice(r,1),!0)}};function rh(e,t){"function"==typeof Array.prototype[e]&&(ru[e]=t(e))}function rp(e){return function(){var t=this[et];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function rf(e){return function(t,r){var i=this,n=this[et];return n.atom_.reportObserved(),n.dehanceValues_(n.values_)[e](function(e,n){return t.call(r,e,n,i)})}}function rg(e){return function(){var t=this,r=this[et];r.atom_.reportObserved();var i=r.dehanceValues_(r.values_),n=arguments[0];return arguments[0]=function(e,r,i){return n(e,r,i,t)},i[e].apply(i,arguments)}}rh("at",rp),rh("concat",rp),rh("flat",rp),rh("includes",rp),rh("indexOf",rp),rh("join",rp),rh("lastIndexOf",rp),rh("slice",rp),rh("toString",rp),rh("toLocaleStr
1ing",rp),rh("toSorted",rp),rh("toSpliced",rp),rh("with",rp),rh("every",rf),rh("filter",rf),rh("find",rf),rh("findIndex",rf),rh("findLast",rf),rh("findLastIndex",rf),rh("flatMap",rf),rh("forEach",rf),rh("map",rf),rh("some",rf),rh("toReversed",rf),rh("reduce",rg),rh("reduceRight",rg);var rm=O("ObservableArrayAdministration",rd);function ry(e){return M(e)&&rm(e[et])}var rb={},rv="delete",rw=function(){function e(e,r,i){var n=this;void 0===r&&(r=ea),void 0===i&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[et]=rb,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_=r,this.name_=i,E(Map)||t(18),rF(function(){n.keysAtom_=en("ObservableMap.keys()"),n.data_=new Map,n.hasMap_=new Map,e&&n.merge(e)})}var r=e.prototype;return r.has_=function(e){return this.data_.has(e)},r.has=function(e){var t=this;if(!tp.trackingDerivation)return this.has_(e);var r=this.hasMap_.get(e);if(!r){var i=r=new e3(this.has_(e),es,"ObservableMap.key?",!1);this.hasMap_.set(e,i),tW(i,function(){return t.hasMap_.delete(e)})}return r.get()},r.set=function(e,t){var r=this.has_(e);if(re(this)){var i=rr(this,{type:r?rl:"add",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return r?this.updateValue_(e,t):this.addValue_(e,t),this},r.delete=function(e){var t=this;if(te(this.keysAtom_),re(this)&&!rr(this,{type:rv,object:this,name:e}))return!1;if(this.has_(e)){var r=ri(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:rv,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return t6(function(){var r;t.keysAtom_.reportChanged(),null==(r=t.hasMap_.get(e))||r.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),r&&ro(this,i),!0}return!1},r.updateValue_=function(e,t){var r=this.data_.get(e);if((t=r.prepareNewValue_(t))!==tp.UNCHANGED){var i=ri(this),n=i?{observableKind:"map",debugObjectName:this.name_,type:rl,object:this,oldValue:r.value_,name:e,newValue:t}:null;r.setNewValue_(t),i&&ro(this,n)}},r.addValue_=function(e,t){var r=this;te(this.keysAtom_),t6(function(){var i,n=new e3(t,r.enhancer_,"ObservableMap.key",!1);r.data_.set(e,n),t=n.value_,null==(i=r.hasMap_.get(e))||i.setNewValue_(!0),r.keysAtom_.reportChanged()});var i=ri(this),n=i?{observableKind:"map",debugObjectName:this.name_,type:"add",object:this,name:e,newValue:t}:null;i&&ro(this,n)},r.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},r.getOrInsert=function(e,t){return this.has(e)||this.set(e,t),this.get(e)},r.getOrInsertComputed=function(e,t){return this.has(e)||this.set(e,t(e)),this.get(e)},r.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},r.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},r.values=function(){var e=this,t=this.keys();return rS({next:function(){var r=t.next(),i=r.done,n=r.value;return{done:i,value:i?void 0:e.get(n)}}})},r.entries=function(){var e=this,t=this.keys();return rS({next:function(){var r=t.next(),i=r.done,n=r.value;return{done:i,value:i?void 0:[n,e.get(n)]}}})},r[Symbol.iterator]=function(){return this.entries()},r.forEach=function(e,t){for(var r,i=V(this);!(r=i()).done;){var n=r.value,o=n[0],a=n[1];e.call(t,a,o,this)}},r.merge=function(e){var r=this;return rx(e)&&(e=new Map(e)),t6(function(){T(e)?(function(e){var t=Object.keys(e);if(!j)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(t){return y.propertyIsEnumerable.call(e,t)})):t})(e).forEach(function(t){return r.set(t,e[t])}):Array.isArray(e)?e.forEach(function(e){var t=e[0],i=e[1];return r.set(t,i)}):P(e)?(null!==Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(e)))&&t(19,e),e.forEach(function(e,t){return r.set(t,e)})):null!=e&&t(20,e)}),this},r.clear=function(){var e=this;t6(function(){ti(function(){for(var t,r=V(e.keys());!(t=r()).done;){var i=t.value;e.delete(i)}})})},r.replace=function(e){var r=this;return t6(function(){for(var i,n=function(e){if(P(e)||rx(e))return e;if(Array.isArray(e))return new Map(e);if(!T(e))return t(21,e);var r=new Map;for(var i in e)r.set(i,e[i]);return r}(e),o=new Map,a=!1,s=V(r.data_.keys());!(i=s()).done;){var l=i.value;if(!n.has(l))if(r.delete(l))a=!0;else{var c=r.data_.get(l);o.set(l,c)}}for(var d,u=V(n.entries());!(d=u()).done;){var h=d.value,p=h[0],f=h[1],g=r.data_.has(p);if(r.set(p,f),r.data_.has(p)){var m=r.data_.get(p);o.set(p,m),g||(a=!0)}}if(!a)if(r.data_.size!==o.size)r.keysAtom_.reportChanged();else for(var y=r.data_.keys(),b=o.keys(),v=y.next(),w=b.next();!v.done;){if(v.value!==w.value){r.keysAtom_.reportChanged();break}v=y.next(),w=b.next()}r.data_=o}),this},r.toString=function(){return"[object ObservableMap]"},r.toJSON=function(){return Array.from(this)},r.observe_=function(e,t){return rn(this,e)},r.intercept_=function(e){return rt(this,e)},H(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),rx=O("ObservableMap",rw);function rS(e){return e[Symbol.toStringTag]="MapIterator",rZ(e)}var rA={},rk=function(){function e(e,r,i){var n=this;void 0===r&&(r=ea),void 0===i&&(i="ObservableSet"),this.name_=void 0,this[et]=rA,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_=i,E(Set)||t(22),this.enhancer_=function(e,t){return r(e,t,i)},rF(function(){n.atom_=en(n.name_),e&&n.replace(e)})}var r=e.prototype;return r.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},r.clear=function(){var e=this;t6(function(){ti(function(){for(var t,r=V(e.data_.values());!(t=r()).done;){var i=t.value;e.delete(i)}})})},r.forEach=function(e,t){for(var r,i=V(this);!(r=i()).done;){var n=r.value;e.call(t,n,n,this)}},r.add=function(e){var t=this;if(te(this.atom_),re(this)){var r=rr(this,{type:"add",object:this,newValue:e});if(!r)return this;e=r.newValue}if(!this.has(e)){t6(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var i=ri(this),n=i?{observableKind:"set",debugObjectName:this.name_,type:"add",object:this,newValue:e}:null;i&&ro(this,n)}return this},r.delete=function(e){var t=this;if(re(this)&&!rr(this,{type:rv,object:this,oldValue:e}))return!1;if(this.has(e)){var r=ri(this),i=r?{observableKind:"set",debugObjectName:this.name_,type:rv,object:this,oldValue:e}:null;return t6(function(){t.atom_.reportChanged(),t.data_.delete(e)}),r&&ro(this,i),!0}return!1},r.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},r.entries=function(){var e=this.values();return rI({next:function(){var t=e.next(),r=t.value,i=t.done;return i?{value:void 0,done:i}:{value:[r,r],done:i}}})},r.keys=function(){return this.values()},r.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return rI({next:function(){var r=t.next(),i=r.value,n=r.done;return n?{value:void 0,done:n}:{value:e.dehanceValue_(i),done:n}}})},r.intersection=function(e){return D(e)&&!rE(e)?e.intersection(this):new Set(this).intersection(e)},r.union=function(e){return D(e)&&!rE(e)?e.union(this):new Set(this).union(e)},r.difference=function(e){return new Set(this).difference(e)},r.symmetricDifference=function(e){return D(e)&&!rE(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},r.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},r.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},r.isDisjointFrom=function(e){return D(e)&&!rE(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},r.replace=function(e){var r=this;return rE(e)&&(e=new Set(e)),t6(function(){Array.isArray(e)?(r.clear(),e.forEach(function(e){return r.add(e)})):D(e)?(r.clear(),e.forEach(function(e){return r.add(e)})):null!=e&&t("Cannot initialize set from "+e)}),this},r.observe_=function(e,t){return rn(this,e)},r.intercept_=function(e){return rt(this,e)},r.toJSON=function(){return Array.from(this)},r.toString=function(){return"[object ObservableSet]"},r[Symbol.iterator]=function(){return this.values()},H(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),rE=O("ObservableSet",rk);function rI(e){return e[Symbol.toStringTag]="SetIterator",rZ(e)}var rM=Object.create(null),rT="remove",rN=function(){function e(e,t,r,i
1){void 0===t&&(t=new Map),void 0===i&&(i=eT),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.lazyComputedKeys_=void 0,this.lazyObservableKeys_=void 0,this.target_=e,this.values_=t,this.name_=r,this.defaultAnnotation_=i,this.keysAtom_=new er("ObservableObject.keys"),this.isPlainObject_=T(this.target_)}var r=e.prototype;return r.getObservablePropValue_=function(e){var t,r;return(null!=(t=null!=(r=this.values_.get(e))?r:this.materializeLazyComputed_(e))?t:this.materializeLazyObservable_(e)).get()},r.materializeLazyComputed_=function(e){var t,r=null==(t=this.lazyComputedKeys_)?void 0:t.get(e);if(r){this.lazyComputedKeys_.delete(e),0===this.lazyComputedKeys_.size&&(this.lazyComputedKeys_=void 0);var i=r();return this.values_.set(e,i),i}},r.materializeLazyObservable_=function(e){var t,r=null==(t=this.lazyObservableKeys_)?void 0:t.get(e);if(r){this.lazyObservableKeys_.delete(e),0===this.lazyObservableKeys_.size&&(this.lazyObservableKeys_=void 0);var i=r();return this.values_.set(e,i),i}},r.setObservablePropValue_=function(e,t){var r,i,n=null!=(r=null!=(i=this.values_.get(e))?i:this.materializeLazyComputed_(e))?r:this.materializeLazyObservable_(e);if(n instanceof e5)return n.set(t),!0;if(re(this)){var o=rr(this,{type:rl,object:this.proxy_||this.target_,name:e,newValue:t});if(!o)return null;t=o.newValue}if((t=n.prepareNewValue_(t))!==tp.UNCHANGED){var a=ri(this),s=a?{type:rl,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),a&&ro(this,s)}return!0},r.get_=function(e){return tp.trackingDerivation&&!L(this.target_,e)&&this.has_(e),this.target_[e]},r.set_=function(e,t,r){return(void 0===r&&(r=!1),L(this.target_,e))?this.values_.has(e)?this.setObservablePropValue_(e,t):r?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,r)},r.has_=function(e){if(!tp.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new e3(e in this.target_,es,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},r.make_=function(e,r){if(!0===r&&(r=this.defaultAnnotation_),!1!==r){if(rj(this,r,e),!(e in this.target_)){var i;if(null!=(i=this.target_[Z])&&i[e])return;t(1,r.annotationType_,this.name_+"."+e.toString())}for(var n=this.target_;n&&n!==y;){var o=g(n,e);if(o){var a=r.make_(this,e,o,n);if(0===a)return;if(1===a)break}n=Object.getPrototypeOf(n)}rD(this,r,e)}},r.extend_=function(e,t,r,i){if(void 0===i&&(i=!1),!0===r&&(r=this.defaultAnnotation_),!1===r)return this.defineProperty_(e,t,i);rj(this,r,e);var n=r.extend_(this,e,t,i);return n&&rD(this,r,e),n},r.defineProperty_=function(e,t,r){void 0===r&&(r=!1),te(this.keysAtom_);try{tm();var i=this.delete_(e);if(!i)return i;if(re(this)){var n=rr(this,{object:this.proxy_||this.target_,name:e,type:"add",newValue:t.value});if(!n)return null;var o=n.newValue;t.value!==o&&(t=K({},t,{value:o}))}if(r){if(!Reflect.defineProperty(this.target_,e,t))return!1}else m(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{ty()}return!0},r.defineObservableProperty_=function(e,t,r,i){void 0===i&&(i=!1),te(this.keysAtom_);try{tm();var n=this.delete_(e);if(!n)return n;if(re(this)){var o=rr(this,{object:this.proxy_||this.target_,name:e,type:"add",newValue:t});if(!o)return null;t=o.newValue}var a=rO(e),s={configurable:!tp.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(i){if(!Reflect.defineProperty(this.target_,e,s))return!1}else m(this.target_,e,s);var l=new e3(t,r,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{ty()}return!0},r.defineComputedProperty_=function(e,t,r){void 0===r&&(r=!1),te(this.keysAtom_);try{tm();var i=this.delete_(e);if(!i)return i;if(re(this)&&!rr(this,{object:this.proxy_||this.target_,name:e,type:"add",newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var n=rO(e),o={configurable:!tp.safeDescriptors||this.isPlainObject_,enumerable:!1,get:n.get,set:n.set};if(r){if(!Reflect.defineProperty(this.target_,e,o))return!1}else m(this.target_,e,o);this.values_.set(e,new e5(t)),this.notifyPropertyAddition_(e,void 0)}finally{ty()}return!0},r.delete_=function(e,t){if(void 0===t&&(t=!1),te(this.keysAtom_),!L(this.target_,e))return!0;
1if(re(this)&&!rr(this,{object:this.proxy_||this.target_,name:e,type:rT}))return null;try{tm();var r,i,n=ri(this),o=this.values_.get(e),a=void 0;if(!o&&(n||0)&&(a=null==(i=g(this.target_,e))?void 0:i.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(o&&(this.values_.delete(e),o instanceof e3&&(a=o.value_),tv(o)),this.keysAtom_.reportChanged(),null==(r=this.pendingKeys_)||null==(r=r.get(e))||r.set(e in this.target_),n||0){var s={type:rT,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};n&&ro(this,s)}}finally{ty()}return!0},r.observe_=function(e,t){return rn(this,e)},r.intercept_=function(e){return rt(this,e)},r.notifyPropertyAddition_=function(e,t){var r,i=ri(this);if(i){var n=i?{type:"add",observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;i&&ro(this,n)}null==(r=this.pendingKeys_)||null==(r=r.get(e))||r.set(!0),this.keysAtom_.reportChanged()},r.ownKeys_=function(){return this.keysAtom_.reportObserved(),R(this.target_)},r.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function r_(e,t){if(L(e,et))return e;var r,i,n=null!=(i=null==t?void 0:t.name)?i:"ObservableObject",o=new rN(e,new Map,String(n),t?null!=(r=t.defaultDecorator)?r:eN(t):void 0);return _(e,et,o),e}var rC=O("ObservableObjectAdministration",rN);function rO(e){return rM[e]||(rM[e]={get:function(){return this[et].getObservablePropValue_(e)},set:function(t){return this[et].setObservablePropValue_(e,t)}})}function rP(e){return!!M(e)&&rC(e[et])}function rD(e,t,r){var i;null==(i=e.target_[Z])||delete i[r]}function rj(e,t,r){}var rR=rq(0),rz=(a=!1,Object.defineProperty(s={},"0",{set:function(){a=!0}}),Object.create(s)["0"]=1,!1===a),rL=0,rB=function(){};l=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(rB.prototype,l):void 0!==rB.prototype.__proto__?rB.prototype.__proto__=l:rB.prototype=l;var rU=function(e){function t(t,r,i,n){var o;return void 0===i&&(i="ObservableArray"),void 0===n&&(n=!1),o=e.call(this)||this,rF(function(){var e=new rd(i,r,n,!0);e.proxy_=o,C(o,et,e),t&&t.length&&o.spliceWithArray(0,0,t),rz&&Object.defineProperty(o,"0",rR)}),o}Y(t,e);var r=t.prototype;return r.concat=function(){this[et].atom_.reportObserved();for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.prototype.concat.apply(this.slice(),t.map(function(e){return ry(e)?e.slice():e}))},r[Symbol.iterator]=function(){var e=this,t=0;return rZ({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},H(t,[{key:"length",get:function(){return this[et].getArrayLength_()},set:function(e){this[et].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(rB);function rq(e){return{enumerable:!1,configurable:!0,get:function(){return this[et].get_(e)},set:function(t){this[et].set_(e,t)}}}function rW(e){if(e>rL){for(var t,r=rL;r<e+100;r++)t=r,m(rU.prototype,""+t,rq(t));rL=e}}function rH(e,r){if("object"==typeof e&&null!==e){if(ry(e))return void 0!==r&&t(23),e[et].atom_;if(rE(e))return e.atom_;if(rx(e)){if(void 0===r)return e.keysAtom_;var i=e.data_.get(r)||e.hasMap_.get(r);return i||t(25,r,rK(e)),i}if(rP(e)){if(!r)return t(26);var n,o,a=e[et],s=null!=(n=null!=(o=a.values_.get(r))?o:a.materializeLazyComputed_(r))?n:a.materializeLazyObservable_(r);return s||t(27,r,rK(e)),s}if(ei(e)||e8(e)||tk(e))return e}else if(E(e)&&tk(e[et]))return e[et];t(28)}function rV(e,r){return(e||t(29),void 0!==r)?rV(rH(e,r)):ei(e)||e8(e)||tk(e)||rx(e)||rE(e)?e:e[et]?e[et]:void t(24,e)}function rK(e,t){var r;if(void 0!==t)r=rH(e,t);else{if(tz(e))return e.name;r=rP(e)||rx(e)||rE(e)?rV(e):rH(e)}return r.name_}function rF(e){var t=tn(),r=e1(!0);tm();try{return e()}finally{ty(),e2(r),to(t)}}Object.entries(ru).forEach(function(e){var t=e[0],r=e[1];"concat"!==t&&_(rU.prototype,t,r)}),rW(1e3);var rY=y.toString;function rJ(e,t,r){return void 0===r&&(r=-1),function e(t,r,i,n,o){if(t===r)return 0!==t||1/t==1/r;if(null==t||null==r)return!1;if(t!=t)return r!=r;var a=typeof t;if("function"!==a&&"object"!==a&&"object"!=typeof r)return!1;var s=rY.call(t);if(s!==rY.call(r))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+r;case"[object Number]":if(+t!=+t)return+r!=+r;return 0==+t?1/t==1/r:+t==+r;case"[object Date]":case"[object Boolean]":return+t==+r;case"[object Symbol]":return"u">typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(r);case"[object Map]":case"[object Set]":i>=0&&i++}t=rG(t),r=rG(r);var l="[object Array]"===s;if(!l){if("object"!=typeof t||"object"!=typeof r)return!1;var c=t.constructor,d=r.constructor;if(c!==d&&!(E(c)&&c instanceof c&&E(d)&&d instanceof d)&&"constructor"in t&&"constructor"in r)return!1}if(0===i)return!1;i<0&&(i=-1),o=o||[];for(var u=(n=n||[]).length;u--;)if(n[u]===t)return o[u]===r;if(n.push(t),o.push(r),l){if((u=t.length)!==r.length)return!1;for(;u--;)if(!e(t[u],r[u],i-1,n,o))return!1}else{var h=Object.keys(t),p=h.length;if(Object.keys(r).length!==p)return!1;for(var f=0;f<p;f++){var g=h[f];if(!(L(r,g)&&e(t[g],r[g],i-1,n,o)))return!1}}return n.pop(),o.pop(),!0}(e,t,r)}function rG(e){return ry(e)?e.slice():P(e)||rx(e)||D(e)||rE(e)?Array.from(e.entries()):e}var rQ=(null==(p=r().Iterator)?void 0:p.prototype)||{};function rZ(e){return e[Symbol.iterator]=rX,Object.assign(Object.create(rQ),e)}function rX(){return this}["Symbol","Map","Set"].forEach(function(e){void 0===r()[e]&&t("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:tE,extras:{getDebugName:rK},$mobx:et}),e.s(["$mobx",0,et,"FlowCancellationError",0,tY,"ObservableMap",0,rw,"ObservableSet",0,rk,"Reaction",0,tw,"_allowStateChanges",0,e0,"_allowStateChangesInsideComputed",0,tR,"_allowStateReadsEnd",0,ts,"_allowStateReadsStart",0,ta,"_autoAction",0,tj,"_endAction",0,e$,"_getAdministration",0,rV,"_getGlobalState",0,function(){return tp}
1,"_interceptReads",0,function(e,t,r){var i;return rx(e)||ry(e)||e4(e)?i=rV(e):rP(e)&&(i=rV(e,t)),i.dehancer="function"==typeof t?t:r,function(){i.dehancer=void 0}},"_isComputingDerivation",0,function(){return null!==tp.trackingDerivation},"_resetGlobalState",0,function(){var e=new td;for(var t in e)-1===tc.indexOf(t)&&(tp[t]=e[t]);tp.allowStateChanges=!tp.enforceActions},"_startAction",0,eX,"action",0,tD,"autorun",0,tL,"comparer",0,eo,"computed",0,eK,"configure",0,function(e){!0===e.isolateGlobalState&&function(){if((tp.pendingReactions.length||tp.inBatch||tp.isRunningReactions)&&t(36),th=!0,tu){var e=r();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),tp=new td}}();var i,n,o=e.useProxies,a=e.enforceActions;if(void 0!==o&&(tp.useProxies=o===tV||"never"!==o&&"u">typeof Proxy),"ifavailable"===o&&(tp.verifyProxies=!0),void 0!==a){var s=a===tV?tV:"observed"===a;tp.enforceActions=s,tp.allowStateChanges=!0!==s&&s!==tV}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(tp[t]=!!e[t])}),tp.allowStateReads=!tp.observableRequiresReaction,e.reactionScheduler&&(i=e.reactionScheduler,n=tx,tx=function(e){return i(function(){return n(e)})})},"createAtom",0,en,"defineProperty",0,function(e,r,i){if(rP(e))return e[et].defineProperty_(r,i);t(39)},"entries",0,function(e){return rP(e)?t2(e).map(function(t){return[t,e[t]]}):rx(e)?t2(e).map(function(t){return[t,e.get(t)]}):rE(e)?Array.from(e.entries()):ry(e)?e.map(function(e,t){return[t,e]}):void t(7)},"extendObservable",0,tK,"flow",0,tQ,"flowResult",0,function(e){return e},"get",0,function(e,r){if(t3(e,r)){if(rP(e))return e[et].get_(r);if(rx(e))return e.get(r);if(ry(e))return e[r];t(11)}},"getAtom",0,rH,"getDebugName",0,rK,"getDependencyTree",0,function(e,t){return function e(t){var r={name:t.name_};return t.observing_&&t.observing_.length>0&&(r.dependencies=Array.from(new Set(t.observing_)).map(e)),r}(rH(e,t))},"getObserverTree",0,function(e,t){return function e(t){var r={name:t.name_};return t.observers_&&t.observers_.size>0&&(r.observers=Array.from(t.observers_).map(e)),r}(rH(e,t))},"has",0,t3,"intercept",0,function(e,t,r){var i,n,o,a,s;return E(r)?(i=e,n=t,o=r,rV(i,n).intercept_(o)):(a=e,s=t,rV(a).intercept_(s))},"isAction",0,tz,"isBoxedObservable",0,e4,"isComputed",0,function(e){return t$(e)},"isComputedProp",0,function(e,t){return t$(e,t)},"isFlow",0,tX,"isFlowCancellationError",0,function(e){return e instanceof tY},"isObservable",0,t1,"isObservableArray",0,ry,"isObservableMap",0,rx,"isObservableObject",0,rP,"isObservableProp",0,function(e,t){return t0(e,t)},"isObservableSet",0,rE,"keys",0,t2,"makeAutoObservable",0,function(e,t,r){return T(e)?tK(e,e,t,r):(rF(function(){var i=r_(e,r)[et];if(!e[ra]){var n=Object.getPrototypeOf(e),o=new Set([].concat(R(e),R(n)));o.delete("constructor"),o.delete(et),_(n,ra,o)}e[ra].forEach(function(e){return i.make_(e,!t||!(e in t)||t[e])})}),e)},"makeObservable",0,function(e,t,r){return rF(function(){var i=r_(e,r)[et];null!=t||(L(e,Z)||_(e,Z,K({},e[Z])),t=e[Z]),R(t).forEach(function(e){return i.make_(e,t[e])})}),e},"observable",0,eq,"observe",0,function(e,t,r,i){var n,o,a,s,l,c,d;return E(r)?(n=e,o=t,a=r,s=i,rV(n,o).observe_(a,s)):(l=e,c=t,d=r,rV(l).observe_(c,d))},"onBecomeObserved",0,tq,"onBecomeUnobserved",0,tW,"onReactionError",0,function(e){return tp.globalReactionErrorHandlers.push(e),function(){var t=tp.globalReactionErrorHandlers.indexOf(e);t>=0&&tp.globalReactionErrorHandlers.splice(t,1)}},"override",0,ec,"ownKeys",0,t4,"reaction",0,function(e,t,r){void 0===r&&(r=v);var i,n,o,a,s,l,c=null!=(o=r.name)?o:"Reaction",d=tD(c,r.onError?(i=r.onError,n=t,function(){try{return n.apply(this,arguments)}catch(e){i.call(this,e)}}):t),u=!r.scheduler&&!r.delay,h=tU(r),p=!0,f=!1,g=r.compareStructural?eo.structural:r.equals||eo.default,m=new tw(c,function(){p||u?y():f||(f=!0,h(y))},r.onError,r.requiresObservable);function y(){if(f=!1,!m.isDisposed){var t=!1,i=l;m.track(function(){var r=e0(!1,function(){return e(m)});t=p||!g(l,r),l=r}),p&&r.fireImmediately?d(l,i,m):!p&&t&&d(l,i,m),p=!1}}return null!=(a=r)&&null!=(a=a.signal)&&a.aborted||m.schedule_(),m.getDisposer_(null==(s=r)?void 0:s.signal)},"remove",0,function(e,r){rP(e)?e[et].delete_(r):rx(e)||rE(e)?e.delete(r):ry(e)?("number"!=typeof r&&(r=parseInt(r,10)),e.splice(r,1)):t(9)},"runInAction",0,tR,"set",0,function e(r,i,n){if(2==arguments.length&&!rE(r)){tm();var o=i;try{for(var a in o)e(r,a,o[a])}finally{ty()}return}rP(r)?r[et].set_(i,n):rx(r)?r.set(i,n):rE(r)?r.add(i):ry(r)?("number"!=typeof i&&(i=parseInt(i,10)),i<0&&t("Invalid index: '"+i+"'"),tm(),i>=r.length&&(r.length=i+1),r[i]=n,ty()):t(8)},"spy",0,tE,"toJS",0,function(e,t){return function e(t,r){if(null==t||"object"!=typeof t||t instanceof Date||!t1(t))return t;if(e4(t)||e8(t))return e(t.get(),r);if(r.has(t))return r.get(t);if(ry(t)){var i=t5(r,t,Array(t.length));return t.forEach(function(t,n){i[n]=e(t,r)}),i}if(rE(t)){var n=t5(r,t,new Set);return t.forEach(function(t){n.add(e(t,r))}),n}if(rx(t)){var o=t5(r,t,new Map);return t.forEach(function(t,i){o.set(i,e(t,r))}),o}var a=t5(r,t,{});return t4(t).forEach(function(i){y.propertyIsEnumerable.call(t,i)&&(a[i]=e(t[i],r))}),a}(e,new Map)},"trace",0,t8,"transaction",0,t6,"untracked",0,ti,"values",0,function(e){return rP(e)?t2(e).map(function(t){return e[t]}):rx(e)?t2(e).map(function(t){return e.get(t)}):rE(e)?Array.from(e.values()):ry(e)?e.slice():void t(6)},"when",0,function(e,t,r){return 1==arguments.length||t&&"object"==typeof t?function(e,t){if(null!=t&&null!=(r=t.signal)&&r.aborted)return Object.assign(Promise.reject(Error("WHEN_ABORTED")),{cancel:function(){return null}});var r,i,n,o=new Promise(function(r,o){var a,s=t7(e,r,K({},t,{onError:o}));i=function(){s(),o(Error("WHEN_CANCELLED"))},n=function(){s(),o(Error("WHEN_ABORTED"))},null==t||null==(a=t.signal)||null==a.addEventListener||a.addEventListener("abort",n)}).finally(function(){var e;return null==t||null==(e=t.signal)||null==e.removeEventListener?void 0:e.removeEventListener("abort",n)});return o.cancel=i,o}(e,t):t7(e,t,r||{})}])},125997,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.DebounceActionTimer=void 0;let i=e.r(650143);r.DebounceActionTimer=class{constructor(e,t){this.debounceMs=e,this.handler=t,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);"object"==typeof t&&"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,t)=>{for(let r of((0,i.runInAction)(()=>{for(let r=0;r<e.length;r++){let i=e[r],n=t[r];i.action(n)}}),e))r.resolver()}}call(e,t){return new Promise(r=>{let i=0===this.requests.length;this.requests.push({args:e,action:t,resolver:r}),i&&this.startTimer()})}startTimer(){this.startTime=Date.now(),this.nextTick(this.tick)}nextTick(e){this.debounceMs<=0?Promise.resolve().then(e):"u">typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(e):setTimeout(e,this.debounceMs)}}},895175,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(143501),r),n(e.r(125997),r)},248004,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.Debouncer=void 0,r.Debouncer=class{static promise(e){let t;return(...r)=>i(this,void 0,void 0,function*(){if(t)return t;try{return t=e.apply(this,r),yield t}finally{t=void 0}})}}},456755,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(248004),r)},844700,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unescapeHTML=r.escapeHTML=void 0,r.escapeHTML=function(e){return e.replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026")},r.unescapeHTML=function(e){return e.replace(/\\u003c/g,"<").replace(/\\u003e/g,">").replace(/\\u0026/g,"&")}},431539,(e,t,r)=>{"use strict";function i(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(i);let t=Object.keys(e).sort(),r={};return t.forEach(t=>{r[t]=i(e[t])}),r}Object.defineProperty(r,"__esModule",{value:!0}),r.sortedJsonByKeyStringify=r.sortObjectByKey=void 0,r.sortObjectByKey=i,r.sortedJsonByKeyStringify=function(e){return JSON.stringify(i(e))}},841476,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(431539),r)},821452,(e,t,r)=>{"use strict";function i(e){let t=e.split(".");if(2===t.length&&t[0].length>0&&t[1].length>0)return[t[0],t[1]]}
1Object.defineProperty(r,"__esModule",{value:!0}),r.validateICNSName=r.parseICNSName=void 0,r.parseICNSName=i,r.validateICNSName=function(e,t){let r=i(e);return!!r&&r[1]===t}},246646,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(864967),r),n(e.r(9093),r),n(e.r(895175),r),n(e.r(456755),r),n(e.r(844700),r),n(e.r(841476),r),n(e.r(821452),r)},606576,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.serializeSignDoc=r.encodeSecp256k1Signature=r.encodeSecp256k1Pubkey=void 0;let i=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/"),n=e.r(246646);function o(e){if(33!==e.length||2!==e[0]&&3!==e[0])throw Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:"tendermint/PubKeySecp256k1",value:i.Buffer.from(e).toString("base64")}}r.encodeSecp256k1Pubkey=o,r.encodeSecp256k1Signature=function(e,t){if(64!==t.length)throw Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:o(e),signature:i.Buffer.from(t).toString("base64")}},r.serializeSignDoc=function(e){return i.Buffer.from((0,n.escapeHTML)((0,n.sortedJsonByKeyStringify)(e)))}},182859,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(606576),r)},92278,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.verifyADR36Amino=r.verifyADR36AminoSignDoc=r.makeADR36AminoSignDoc=r.checkAndValidateADR36AminoSignDoc=void 0;let i=e.r(182859),n=e.r(30734),o=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/"),a=e.r(378730);function s(e,t){if(!(e&&e.msgs&&Array.isArray(e.msgs)&&1===e.msgs.length&&"sign/MsgSignData"===e.msgs[0].type))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("0"!==e.account_number)throw Error('Account number should be "0" for ADR-36 signing');if("0"!==e.sequence)throw Error('Sequence should be "0" for ADR-36 signing');if("0"!==e.fee.gas)throw Error('Gas should be "0" for ADR-36 signing');if(0!==e.fee.amount.length)throw Error("Fee amount should be empty array for ADR-36 signing");let r=e.msgs[0];if("sign/MsgSignData"!==r.type)throw Error(`Invalid type of ADR-36 sign msg: ${r.type}`);if(!r.value)throw Error("Empty value in the msg");let i=r.value.signer;if(!i)throw Error("Empty signer in the ADR-36 msg");n.Bech32Address.validate(i,t);let a=r.value.data;if(!a)throw Error("Empty data in the ADR-36 msg");let s=o.Buffer.from(a,"base64");if(s.toString("base64")!==a)throw Error("Data is not encoded by base64");if(0===s.length)throw Error("Empty data in the ADR-36 msg");return!0}function l(e,t){return{chain_id:"",account_number:"0",sequence:"0",fee:{gas:"0",amount:[]},msgs:[{type:"sign/MsgSignData",value:{signer:e,data:t=o.Buffer.from(t).toString("base64")}}],memo:""}}function c(e,t,r,o,l="secp256k1"){if(!s(t,e))throw Error("Invalid sign doc for ADR-36");let d=new a.PubKeySecp256k1(r);if(("ethsecp256k1"===l?new n.Bech32Address(d.getEthAddress()).toBech32(e):new n.Bech32Address(d.getCosmosAddress()).toBech32(e))!==t.msgs[0].value.signer)throw Error("Unmatched signer");let u=(0,i.serializeSignDoc)(t);return d.verifyDigest32("ethsecp256k1"===l?a.Hash.keccak256(u):a.Hash.sha256(u),o)}r.checkAndValidateADR36AminoSignDoc=s,r.makeADR36AminoSignDoc=l,r.verifyADR36AminoSignDoc=c,r.verifyADR36Amino=function(e,t,r,i,n,o="secp256k1"){return c(e,l(t,r),i,n,o)}},363017,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);
1(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(92278),r)},313986,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SignDocWrapper=void 0;let i=e.r(86033),n=e.r(383218),o=e.r(363017);r.SignDocWrapper=class e{constructor(e){this.signDoc=e,"msgs"in e?this.mode="amino":this.mode="direct","amino"===this.mode?this.isADR36SignDoc=(0,o.checkAndValidateADR36AminoSignDoc)(this.aminoSignDoc):this.isADR36SignDoc=!1}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("amino"===this.mode)throw Error("Sign doc is encoded as Amino Json");if("msgs"in this.signDoc)throw Error("Unexpected error");return this._protoSignDoc||(this._protoSignDoc=new i.ProtoSignDocDecoder(this.signDoc)),this._protoSignDoc}get aminoSignDoc(){if("direct"===this.mode)throw Error("Sign doc is encoded as Protobuf");if(!("msgs"in this.signDoc))throw Error("Unexpected error");return this.signDoc}get chainId(){return"direct"===this.mode?this.protoSignDoc.chainId:this.aminoSignDoc.chain_id}get memo(){return"direct"===this.mode?this.protoSignDoc.txBody.memo:this.aminoSignDoc.memo}get fees(){var e,t;if("direct"===this.mode){let r=[];for(let i of null!=(t=null==(e=this.protoSignDoc.authInfo.fee)?void 0:e.amount)?t:[]){if(null==i.denom||null==i.amount)throw Error("Invalid fee");r.push({denom:i.denom,amount:i.amount})}return r}return this.aminoSignDoc.fee.amount}get payer(){var e;return"direct"===this.mode?null==(e=this.protoSignDoc.authInfo.fee)?void 0:e.payer:this.aminoSignDoc.fee.payer}get granter(){var e;return"direct"===this.mode?null==(e=this.protoSignDoc.authInfo.fee)?void 0:e.granter:this.aminoSignDoc.fee.granter}get gas(){var e;if("direct"===this.mode)if(null==(e=this.protoSignDoc.authInfo.fee)?void 0:e.gasLimit)return parseInt(this.protoSignDoc.authInfo.fee.gasLimit);else return 0;return parseInt(this.aminoSignDoc.fee.gas)}}},646300,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(715087),r),n(e.r(86033),r),n(e.r(313986),r)},290593,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(12782),r),n(e.r(30734),r),n(e.r(263112),r),n(e.r(254211),r),n(e.r(646300),r),n(e.r(363017),r),n(e.r(182859),r)},89808,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.MsgInstallBundleResponse=r.MsgInstallBundle=r.MsgProvisionResponse=r.MsgProvision=r.MsgWalletSpendActionResponse=r.MsgWalletSpendAction=r.MsgWalletActionResponse=r.MsgWalletAction=r.MsgDeliverInboundResponse=r.MsgDeliverInbound=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884));function a(){return{messages:[],nums:[],ack:"0",submitter:new Uint8Array}}function s(){return{owner:new Uint8Array,action:""}}function l(){return{owner:new Uint8Array,spendAction:""}}function c(){return{nickname:"",address:new Uint8Array,powerFlags:[],submitter:new Uint8Array}}function d(){return{bundle:"",submitter:new Uint8Array,compressedBundle:new Uint8Array,uncompressedSize:"0"}}r.protobufPackage="agoric.swingset",r.MsgDeliverInbound={encode(e,t=o.default.Writer.create()){for(let r of e.messages)t.uint32(10).string(r);for(let r of(t.uint32(18).fork(),e.nums))t.uint64(r);return t.ldelim(),"0"!==e.ack&&t.uint32(24).uint64(e.ack),0!==e.submitter.length&&t.uint32(34).bytes(e.submitter),t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.messages.push(r.string());break;case 2:if((7&e)==2){let e=r.uint32()+r.pos;for(;r.pos<e;)n.nums.push(m(r.uint64()))}else n.nums.push(m(r.uint64()));break;case 3:n.ack=m(r.uint64());break;case 4:n.submitter=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({messages:Array.isArray(null==e?void 0:e.messages)?e.messages.map(e=>String(e)):[],nums:Array.isArray(null==e?void 0:e.nums)?e.nums.map(e=>String(e)):[],ack:y(e.ack)?String(e.ack):"0",submitter:y(e.submitter)?p(e.submitter):new Uint8Array}),toJSON(e){let t={};return e.messages?t.messages=e.messages.map(e=>e):t.messages=[],e.nums?t.nums=e.nums.map(e=>e):t.nums=[],void 0!==e.ack&&(t.ack=e.ack),void 0!==e.submitter&&(t.submitter=g(void 0!==e.submitter?e.submitter:new Uint8Array)),t},fromPartial(e){var t,r,i,n;let o=a();return o.messages=(null==(t=e.messages)?void 0:t.map(e=>e))||[],o.nums=(null==(r=e.nums)?void 0:r.map(e=>e))||[],o.ack=null!=(i=e.ack)?i:"0",o.submitter=null!=(n=e.submitter)?n:new Uint8Array,o}},r.MsgDeliverInboundResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgWalletAction={encode:(e,t=o.default.Writer.create())=>(0!==e.owner.length&&t.uint32(10).bytes(e.owner),""!==e.action&&t.uint32(18).string(e.action),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.owner=r.bytes();break;case 2:n.action=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({owner:y(e.owner)?p(e.owner):new Uint8Array,action:y(e.action)?String(e.action):""}),toJSON(e){let t={};return void 0!==e.owner&&(t.owner=g(void 0!==e.owner?e.owner:new Uint8Array)),void 0!==e.action&&(t.action=e.action),t},fromPartial(e){var t,r;let i=s();return i.owner=null!=(t=e.owner)?t:new Uint8Array,i.action=null!=(r=e.action)?r:"",i}},r.MsgWalletActionResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgWalletSpendAction={encode:(e,t=o.default.Writer.create())=>(0!==e.owner.length&&t.uint32(10).bytes(e.owner),""!==e.spendAction&&t.uint32(18).string(e.spendAction),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.owner=r.bytes();break;case 2:n.spendAction=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({owner:y(e.owner)?p(e.owner):new Uint8Array,spendAction:y(e.spendAction)?String(e.spendAction):""}),toJSON(e){let t={};return void 0!==e.owner&&(t.owner=g(void 0!==e.owner?e.owner:new Uint8Array)),void 0!==e.spendAction&&(t.spendAction=e.spendAction),t},fromPartial(e){var t,r;let i=l();return i.owner=null!=(t=e.owner)?t:new Uint8Array,i.spendAction=null!=(r=e.spendAction)?r:"",i}},r.MsgWalletSpendActionResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgProvision={encode(e,t=o.default.Writer.create()){for(let r of(""!==e.nickname&&t.uint32(10).string(e.nickname),0!==e.address.length&&t.uint32(18).bytes(e.address),e.powerFlags))t.uint32(26).string(r);return 0!==e.submitter.length&&t.uint32(34).bytes(e.submitter),t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=c();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.nickname=r.string();break;case 2:n.address=r.bytes();break;case 3:n.powerFlags.push(r.string());break;case 4:n.submitter=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({nickname:y(e.nickname)?String(e.nickname):"",address:y(e.address)?p(e.address):new Uint8Array,powerFlags:Array.isArray(null==e?void 0:e.powerFlags)?e.powerFlags.map(e=>String(e)):[],submitter:y(e.submitter)?p(e.submitter):new Uint8Array}),toJSON(e){let t={};return void 0!==e.nickname&&(t.nickname=e.nickname),void 0!==e.address&&(t.address=g(void 0!==e.address?e.address:new Uint8Array)),e.powerFlags?t.powerFlags=e.powerFlags.map(e=>e):t.powerFlags=[],void 0!==e.submitter&&(t.submitter=g(void 0!==e.submitter?e.submitter:new Uint8Array)),t},fromPartial(e){var t,r,i,n;let o=c();return o.nickname=null!=(t=e.nickname)?t:"",o.address=null!=(r=e.address)?r:new Uint8Array,o.powerFlags=(null==(i=e.powerFlags)?void 0:i.map(e=>e))||[],o.submitter=null!=(n=e.submitter)?n:new Uint8Array,o}},r.MsgProvisionResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgInstallBundle={encode:(e,t=o.default.Writer.create())=>(""!==e.bundle&&t.uint32(10).string(e.bundle),0!==e.submitter.length&&t.uint32(18).bytes(e.submitter),0!==e.compressedBundle.length&&t.uint32(26).bytes(e.compressedBundle),"0"!==e.uncompressedSize&&t.uint32(32).int64(e.uncompressedSize),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=d();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.bundle=r.string();break;case 2:n.submitter=r.bytes();break;case 3:n.compressedBundle=r.bytes();break;case 4:n.uncompressedSize=m(r.int64());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({bundle:y(e.bundle)?String(e.bundle):"",submitter:y(e.submitter)?p(e.submitter):new Uint8Array,compressedBundle:y(e.compressedBundle)?p(e.compressedBundle):new Uint8Array,uncompressedSize:y(e.uncompressedSize)?String(e.uncompressedSize):"0"}),toJSON(e){let t={};return void 0!==e.bundle&&(t.bundle=e.bundle),void 0!==e.submitter&&(t.submitter=g(void 0!==e.submitter?e.submitter:new Uint8Array)),void 0!==e.compressedBundle&&(t.compressedBundle=g(void 0!==e.compressedBundle?e.compressedBundle:new Uint8Array)),void 0!==e.uncompressedSize&&(t.uncompressedSize=e.uncompressedSize),t},fromPartial(e){var t,r,i,n;let o=d();return o.bundle=null!=(t=e.bundle)?t:"",o.submitter=null!=(r=e.submitter)?r:new Uint8Array,o.compressedBundle=null!=(i=e.compressedBundle)?i:new Uint8Array,o.uncompressedSize=null!=(n=e.uncompressedSize)?n:"0",o}},r.MsgInstallBundleResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})};var u=void 0!==u?u:"u">typeof self?self:"u">typeof window?window:e.g;let h=u.atob||(e=>u.Buffer.from(e,"base64").toString("binary"));function p(e){let t=h(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}let f=u.btoa||(e=>u.Buffer.from(e,"binary").toString("base64"));function g(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return f(t.join(""))}function m(e){return e.toString()}function y(e){return null!=e}o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},50701,(e,t,r)=>{"use strict";
1var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.DecProto=r.IntProto=r.DecCoin=r.Coin=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884));function a(){return{denom:"",amount:""}}function s(){return{denom:"",amount:""}}function l(e){return null!=e}r.protobufPackage="cosmos.base.v1beta1",r.Coin={encode:(e,t=o.default.Writer.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.denom=r.string();break;case 2:n.amount=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({denom:l(e.denom)?String(e.denom):"",amount:l(e.amount)?String(e.amount):""}),toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial(e){var t,r;let i=a();return i.denom=null!=(t=e.denom)?t:"",i.amount=null!=(r=e.amount)?r:"",i}},r.DecCoin={encode:(e,t=o.default.Writer.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.denom=r.string();break;case 2:n.amount=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({denom:l(e.denom)?String(e.denom):"",amount:l(e.amount)?String(e.amount):""}),toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial(e){var t,r;let i=s();return i.denom=null!=(t=e.denom)?t:"",i.amount=null!=(r=e.amount)?r:"",i}},r.IntProto={encode:(e,t=o.default.Writer.create())=>(""!==e.int&&t.uint32(10).string(e.int),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n={int:""};for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.int=r.string():r.skipType(7&e)}return n},fromJSON:e=>({int:l(e.int)?String(e.int):""}),toJSON(e){let t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial(e){var t;let r={int:""};return r.int=null!=(t=e.int)?t:"",r}},r.DecProto={encode:(e,t=o.default.Writer.create())=>(""!==e.dec&&t.uint32(10).string(e.dec),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n={dec:""};for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.dec=r.string():r.skipType(7&e)}return n},fromJSON:e=>({dec:l(e.dec)?String(e.dec):""}),toJSON(e){let t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial(e){var t;let r={dec:""};return r.dec=null!=(t=e.dec)?t:"",r}},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},265809,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Metadata=r.DenomUnit=r.Supply=r.Output=r.Input=r.SendEnabled=r.Params=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(50701);function s(){return{sendEnabled:[],defaultSendEnabled:!1}}function l(){return{denom:"",enabled:!1}}function c(){return{address:"",coins:[]}}function d(){return{address:"",coins:[]}}function u(){return{total:[]}}function h(){return{denom:"",exponent:0,aliases:[]}}function p(){return{description:"",denomUnits:[],base:"",display:"",name:"",symbol:""}}function f(e){return null!=e}r.protobufPackage="cosmos.bank.v1beta1",r.Params={encode(e,t=o.default.Writer.create()){for(let i of e.sendEnabled)r.SendEnabled.encode(i,t.uint32(10).fork()).ldelim();return!0===e.defaultSendEnabled&&t.uint32(16).bool(e.defaultSendEnabled),t},decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=s();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.sendEnabled.push(r.SendEnabled.decode(i,i.uint32()));break;case 2:a.defaultSendEnabled=i.bool();break;default:i.skipType(7&e)}}return a},fromJSON:e=>({sendEnabled:Array.isArray(null==e?void 0:e.sendEnabled)?e.sendEnabled.map(e=>r.SendEnabled.fromJSON(e)):[],defaultSendEnabled:!!f(e.defaultSendEnabled)&&!!e.defaultSendEnabled}),toJSON(e){let t={};return e.sendEnabled?t.sendEnabled=e.sendEnabled.map(e=>e?r.SendEnabled.toJSON(e):void 0):t.sendEnabled=[],void 0!==e.defaultSendEnabled&&(t.defaultSendEnabled=e.defaultSendEnabled),t},fromPartial(e){var t,i;let n=s();return n.sendEnabled=(null==(t=e.sendEnabled)?void 0:t.map(e=>r.SendEnabled.fromPartial(e)))||[],n.defaultSendEnabled=null!=(i=e.defaultSendEnabled)&&i,n}},r.SendEnabled={encode:(e,t=o.default.Writer.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),!0===e.enabled&&t.uint32(16).bool(e.enabled),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.denom=r.string();break;case 2:n.enabled=r.bool();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({denom:f(e.denom)?String(e.denom):"",enabled:!!f(e.enabled)&&!!e.enabled}),toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.enabled&&(t.enabled=e.enabled),t},fromPartial(e){var t,r;let i=l();return i.denom=null!=(t=e.denom)?t:"",i.enabled=null!=(r=e.enabled)&&r,i}},r.Input={encode(e,t=o.default.Writer.create()){for(let r of(""!==e.address&&t.uint32(10).string(e.address),e.coins))a.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=c();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.address=r.string();break;case 2:n.coins.push(a.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({address:f(e.address)?String(e.address):"",coins:Array.isArray(null==e?void 0:e.coins)?e.coins.map(e=>a.Coin.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map(e=>e?a.Coin.toJSON(e):void 0):t.coins=[],t},fromPartial(e){var t,r;let i=c();return i.address=null!=(t=e.address)?t:"",i.coins=(null==(r=e.coins)?void 0:r.map(e=>a.Coin.fromPartial(e)))||[],i}},r.Output={encode(e,t=o.default.Writer.create()){for(let r of(""!==e.address&&t.uint32(10).string(e.address),e.coins))a.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=d();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.address=r.string();break;case 2:n.coins.push(a.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({address:f(e.address)?String(e.address):"",coins:Array.isArray(null==e?void 0:e.coins)?e.coins.map(e=>a.Coin.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map(e=>e?a.Coin.toJSON(e):void 0):t.coins=[],t},fromPartial(e){var t,r;let i=d();return i.address=null!=(t=e.address)?t:"",i.coins=(null==(r=e.coins)?void 0:r.map(e=>a.Coin.fromPartial(e)))||[],i}},r.Supply={encode(e,t=o.default.Writer.create()){for(let r of e.total)a.Coin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=u();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.total.push(a.Coin.decode(r,r.uint32())):r.skipType(7&e)}return n},fromJSON:e=>({total:Array.isArray(null==e?void 0:e.total)?e.total.map(e=>a.Coin.fromJSON(e)):[]}),toJSON(e){let t={};return e.total?t.total=e.total.map(e=>e?a.Coin.toJSON(e):void 0):t.total=[],t},fromPartial(e){var t;let r=u();return r.total=(null==(t=e.total)?void 0:t.map(e=>a.Coin.fromPartial(e)))||[],r}},r.DenomUnit={encode(e,t=o.default.Writer.create()){for(let r of(""!==e.denom&&t.uint32(10).string(e.denom),0!==e.exponent&&t.uint32(16).uint32(e.exponent),e.aliases))t.uint32(26).string(r);return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=h();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.denom=r.string();break;case 2:n.exponent=r.uint32();break;case 3:n.aliases.push(r.string());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({denom:f(e.denom)?String(e.denom):"",exponent:f(e.exponent)?Number(e.exp
1onent):0,aliases:Array.isArray(null==e?void 0:e.aliases)?e.aliases.map(e=>String(e)):[]}),toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exponent&&(t.exponent=Math.round(e.exponent)),e.aliases?t.aliases=e.aliases.map(e=>e):t.aliases=[],t},fromPartial(e){var t,r,i;let n=h();return n.denom=null!=(t=e.denom)?t:"",n.exponent=null!=(r=e.exponent)?r:0,n.aliases=(null==(i=e.aliases)?void 0:i.map(e=>e))||[],n}},r.Metadata={encode(e,t=o.default.Writer.create()){for(let i of(""!==e.description&&t.uint32(10).string(e.description),e.denomUnits))r.DenomUnit.encode(i,t.uint32(18).fork()).ldelim();return""!==e.base&&t.uint32(26).string(e.base),""!==e.display&&t.uint32(34).string(e.display),""!==e.name&&t.uint32(42).string(e.name),""!==e.symbol&&t.uint32(50).string(e.symbol),t},decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=p();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.description=i.string();break;case 2:a.denomUnits.push(r.DenomUnit.decode(i,i.uint32()));break;case 3:a.base=i.string();break;case 4:a.display=i.string();break;case 5:a.name=i.string();break;case 6:a.symbol=i.string();break;default:i.skipType(7&e)}}return a},fromJSON:e=>({description:f(e.description)?String(e.description):"",denomUnits:Array.isArray(null==e?void 0:e.denomUnits)?e.denomUnits.map(e=>r.DenomUnit.fromJSON(e)):[],base:f(e.base)?String(e.base):"",display:f(e.display)?String(e.display):"",name:f(e.name)?String(e.name):"",symbol:f(e.symbol)?String(e.symbol):""}),toJSON(e){let t={};return void 0!==e.description&&(t.description=e.description),e.denomUnits?t.denomUnits=e.denomUnits.map(e=>e?r.DenomUnit.toJSON(e):void 0):t.denomUnits=[],void 0!==e.base&&(t.base=e.base),void 0!==e.display&&(t.display=e.display),void 0!==e.name&&(t.name=e.name),void 0!==e.symbol&&(t.symbol=e.symbol),t},fromPartial(e){var t,i,n,o,a,s;let l=p();return l.description=null!=(t=e.description)?t:"",l.denomUnits=(null==(i=e.denomUnits)?void 0:i.map(e=>r.DenomUnit.fromPartial(e)))||[],l.base=null!=(n=e.base)?n:"",l.display=null!=(o=e.display)?o:"",l.name=null!=(a=e.name)?a:"",l.symbol=null!=(s=e.symbol)?s:"",l}},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},640393,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.MsgMultiSendResponse=r.MsgMultiSend=r.MsgSendResponse=r.MsgSend=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(50701),s=e.r(265809);function l(){return{fromAddress:"",toAddress:"",amount:[]}}function c(){return{inputs:[],outputs:[]}}r.protobufPackage="cosmos.bank.v1beta1",r.MsgSend={encode(e,t=o.default.Writer.create()){for(let r of(""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),e.amount))a.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.fromAddress=r.string();break;case 2:n.toAddress=r.string();break;case 3:n.amount.push(a.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({fromAddress:null!=e.fromAddress?String(e.fromAddress):"",toAddress:null!=e.toAddress?String(e.toAddress):"",amount:Array.isArray(null==e?void 0:e.amount)?e.amount.map(e=>a.Coin.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map(e=>e?a.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){var t,r,i;let n=l();return n.fromAddress=null!=(t=e.fromAddress)?t:"",n.toAddress=null!=(r=e.toAddress)?r:"",n.amount=(null==(i=e.amount)?void 0:i.map(e=>a.Coin.fromPartial(e)))||[],n}},r.MsgSendResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgMultiSend={encode(e,t=o.default.Writer.create()){for(let r of e.inputs)s.Input.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.outputs)s.Output.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=c();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.inputs.push(s.Input.decode(r,r.uint32()));break;case 2:n.outputs.push(s.Output.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({inputs:Array.isArray(null==e?void 0:e.inputs)?e.inputs.map(e=>s.Input.fromJSON(e)):[],outputs:Array.isArray(null==e?void 0:e.outputs)?e.outputs.map(e=>s.Output.fromJSON(e)):[]}),toJSON(e){let t={};return e.inputs?t.inputs=e.inputs.map(e=>e?s.Input.toJSON(e):void 0):t.inputs=[],e.outputs?t.outputs=e.outputs.map(e=>e?s.Output.toJSON(e):void 0):t.outputs=[],t},fromPartial(e){var t,r;let i=c();
1return i.inputs=(null==(t=e.inputs)?void 0:t.map(e=>s.Input.fromPartial(e)))||[],i.outputs=(null==(r=e.outputs)?void 0:r.map(e=>s.Output.fromPartial(e)))||[],i}},r.MsgMultiSendResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},982022,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Timestamp=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884));function a(){return{seconds:"0",nanos:0}}r.protobufPackage="google.protobuf",r.Timestamp={encode:(e,t=o.default.Writer.create())=>("0"!==e.seconds&&t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.seconds=r.int64().toString();break;case 2:n.nanos=r.int32();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({seconds:null!=e.seconds?String(e.seconds):"0",nanos:null!=e.nanos?Number(e.nanos):0}),toJSON(e){let t={};return void 0!==e.seconds&&(t.seconds=e.seconds),void 0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){var t,r;let i=a();return i.seconds=null!=(t=e.seconds)?t:"0",i.nanos=null!=(r=e.nanos)?r:0,i}};o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},180302,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ProofOps=r.ProofOp=r.DominoOp=r.ValueOp=r.Proof=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884));function a(){return{total:"0",index:"0",leafHash:new Uint8Array,aunts:[]}}function s(){return{key:new Uint8Array,proof:void 0}}function l(){return{key:"",input:"",output:""}}function c(){return{type:"",key:new Uint8Array,data:new Uint8Array}}r.protobufPackage="tendermint.crypto",r.Proof={encode(e,t=o.default.Writer.create()){for(let r of("0"!==e.total&&t.uint32(8).int64(e.total),"0"!==e.index&&t.uint32(16).int64(e.index),0!==e.leafHash.length&&t.uint32(26).bytes(e.leafHash),e.aunts))t.uint32(34).bytes(r);return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.total=g(r.int64());break;case 2:n.index=g(r.int64());break;case 3:n.leafHash=r.bytes();break;case 4:n.aunts.push(r.bytes());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({total:m(e.total)?String(e.total):"0",index:m(e.index)?String(e.index):"0",leafHash:m(e.leafHash)?h(e.leafHash):new Uint8Array,aunts:Array.isArray(null==e?void 0:e.aunts)?e.aunts.map(e=>h(e)):[]}),toJSON(e){let t={};return void 0!==e.total&&(t.total=e.total),void 0!==e.index&&(t.index=e.index),void 0!==e.leafHash&&(t.leafHash=f(void 0!==e.leafHash?e.leafHash:new Uint8Array)),e.aunts?t.aunts=e.aunts.map(e=>f(void 0!==e?e:new Uint8Array)):t.aunts=[],t},fromPartial(e){var t,r,i,n;let o=a();return o.total=null!=(t=e.total)?t:"0",o.index=null!=(r=e.index)?r:"0",o.leafHash=null!=(i=e.leafHash)?i:new Uint8Array,o.aunts=(null==(n=e.aunts)?void 0:n.map(e=>e))||[],o}},r.ValueOp={encode:(e,t=o.default.Writer.create())=>(0!==e.key.length&&t.uint32(10).bytes(e.key),void 0!==e.proof&&r.Proof.encode(e.proof,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=s();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.key=i.bytes();break;case 2:a.proof=r.Proof.decode(i,i.uint32());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({key:m(e.key)?h(e.key):new Uint8Array,proof:m(e.proof)?r.Proof.fromJSON(e.proof):void 0}),toJSON(e){let t={};
1return void 0!==e.key&&(t.key=f(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?r.Proof.toJSON(e.proof):void 0),t},fromPartial(e){var t;let i=s();return i.key=null!=(t=e.key)?t:new Uint8Array,i.proof=void 0!==e.proof&&null!==e.proof?r.Proof.fromPartial(e.proof):void 0,i}},r.DominoOp={encode:(e,t=o.default.Writer.create())=>(""!==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 r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.key=r.string();break;case 2:n.input=r.string();break;case 3:n.output=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({key:m(e.key)?String(e.key):"",input:m(e.input)?String(e.input):"",output:m(e.output)?String(e.output):""}),toJSON(e){let t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.input&&(t.input=e.input),void 0!==e.output&&(t.output=e.output),t},fromPartial(e){var t,r,i;let n=l();return n.key=null!=(t=e.key)?t:"",n.input=null!=(r=e.input)?r:"",n.output=null!=(i=e.output)?i:"",n}},r.ProofOp={encode:(e,t=o.default.Writer.create())=>(""!==e.type&&t.uint32(10).string(e.type),0!==e.key.length&&t.uint32(18).bytes(e.key),0!==e.data.length&&t.uint32(26).bytes(e.data),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=c();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.type=r.string();break;case 2:n.key=r.bytes();break;case 3:n.data=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({type:m(e.type)?String(e.type):"",key:m(e.key)?h(e.key):new Uint8Array,data:m(e.data)?h(e.data):new Uint8Array}),toJSON(e){let t={};
1return void 0!==e.type&&(t.type=e.type),void 0!==e.key&&(t.key=f(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.data&&(t.data=f(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){var t,r,i;let n=c();return n.type=null!=(t=e.type)?t:"",n.key=null!=(r=e.key)?r:new Uint8Array,n.data=null!=(i=e.data)?i:new Uint8Array,n}},r.ProofOps={encode(e,t=o.default.Writer.create()){for(let i of e.ops)r.ProofOp.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a={ops:[]};for(;i.pos<n;){let e=i.uint32();e>>>3==1?a.ops.push(r.ProofOp.decode(i,i.uint32())):i.skipType(7&e)}return a},fromJSON:e=>({ops:Array.isArray(null==e?void 0:e.ops)?e.ops.map(e=>r.ProofOp.fromJSON(e)):[]}),toJSON(e){let t={};return e.ops?t.ops=e.ops.map(e=>e?r.ProofOp.toJSON(e):void 0):t.ops=[],t},fromPartial(e){var t;let i={ops:[]};return i.ops=(null==(t=e.ops)?void 0:t.map(e=>r.ProofOp.fromPartial(e)))||[],i}};var d=void 0!==d?d:"u">typeof self?self:"u">typeof window?window:e.g;let u=d.atob||(e=>d.Buffer.from(e,"base64").toString("binary"));function h(e){let t=u(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}let p=d.btoa||(e=>d.Buffer.from(e,"binary").toString("base64"));function f(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return p(t.join(""))}function g(e){return e.toString()}function m(e){return null!=e}o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},678975,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Consensus=r.App=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884));function a(){return{protocol:"0",software:""}}function s(){return{block:"0",app:"0"}}function l(e){return e.toString()}r.protobufPackage="tendermint.version",r.App={encode:(e,t=o.default.Writer.create())=>("0"!==e.protocol&&t.uint32(8).uint64(e.protocol),""!==e.software&&t.uint32(18).string(e.software),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.protocol=l(r.uint64());break;case 2:n.software=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({protocol:null!=e.protocol?String(e.protocol):"0",software:null!=e.software?String(e.software):""}),toJSON(e){let t={};return void 0!==e.protocol&&(t.protocol=e.protocol),void 0!==e.software&&(t.software=e.software),t},fromPartial(e){var t,r;let i=a();return i.protocol=null!=(t=e.protocol)?t:"0",i.software=null!=(r=e.software)?r:"",i}},r.Consensus={encode:(e,t=o.default.Writer.create())=>("0"!==e.block&&t.uint32(8).uint64(e.block),"0"!==e.app&&t.uint32(16).uint64(e.app),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.block=l(r.uint64());break;case 2:n.app=l(r.uint64());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({block:null!=e.block?String(e.block):"0",app:null!=e.app?String(e.app):"0"}),toJSON(e){let t={};return void 0!==e.block&&(t.block=e.block),void 0!==e.app&&(t.app=e.app),t},fromPartial(e){var t,r;let i=s();return i.block=null!=(t=e.block)?t:"0",i.app=null!=(r=e.app)?r:"0",i}},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},580801,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.PublicKey=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884));function a(){return{ed25519:void 0,secp256k1:void 0}}r.protobufPackage="tendermint.crypto",r.PublicKey={encode:(e,t=o.default.Writer.create())=>(void 0!==e.ed25519&&t.uint32(10).bytes(e.ed25519),void 0!==e.secp256k1&&t.uint32(18).bytes(e.secp256k1),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.ed25519=r.bytes();break;case 2:n.secp256k1=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({ed25519:null!=e.ed25519?c(e.ed25519):void 0,secp256k1:null!=e.secp256k1?c(e.secp256k1):void 0}),toJSON(e){let t={};return void 0!==e.ed25519&&(t.ed25519=void 0!==e.ed25519?u(e.ed25519):void 0),void 0!==e.secp256k1&&(t.secp256k1=void 0!==e.secp256k1?u(e.secp256k1):void 0),t},fromPartial(e){var t,r;let i=a();return i.ed25519=null!=(t=e.ed25519)?t:void 0,i.secp256k1=null!=(r=e.secp256k1)?r:void 0,i}};var s=void 0!==s?s:"u">typeof self?self:"u">typeof window?window:e.g;let l=s.atob||(e=>s.Buffer.from(e,"base64").toString("binary"));function c(e){let t=l(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}let d=s.btoa||(e=>s.Buffer.from(e,"binary").toString("base64"));function u(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return d(t.join(""))}o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},759415,(e,t,r)=>{"use strict";
1var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.SimpleValidator=r.Validator=r.ValidatorSet=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(580801);function s(){return{validators:[],proposer:void 0,totalVotingPower:"0"}}function l(){return{address:new Uint8Array,pubKey:void 0,votingPower:"0",proposerPriority:"0"}}function c(){return{pubKey:void 0,votingPower:"0"}}r.protobufPackage="tendermint.types",r.ValidatorSet={encode(e,t=o.default.Writer.create()){for(let i of e.validators)r.Validator.encode(i,t.uint32(10).fork()).ldelim();return void 0!==e.proposer&&r.Validator.encode(e.proposer,t.uint32(18).fork()).ldelim(),"0"!==e.totalVotingPower&&t.uint32(24).int64(e.totalVotingPower),t},decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=s();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.validators.push(r.Validator.decode(i,i.uint32()));break;case 2:a.proposer=r.Validator.decode(i,i.uint32());break;case 3:a.totalVotingPower=p(i.int64());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({validators:Array.isArray(null==e?void 0:e.validators)?e.validators.map(e=>r.Validator.fromJSON(e)):[],proposer:f(e.proposer)?r.Validator.fromJSON(e.proposer):void 0,totalVotingPower:f(e.totalVotingPower)?String(e.totalVotingPower):"0"}),toJSON(e){let t={};return e.validators?t.validators=e.validators.map(e=>e?r.Validator.toJSON(e):void 0):t.validators=[],void 0!==e.proposer&&(t.proposer=e.proposer?r.Validator.toJSON(e.proposer):void 0),void 0!==e.totalVotingPower&&(t.totalVotingPower=e.totalVotingPower),t},fromPartial(e){var t,i;let n=s();return n.validators=(null==(t=e.validators)?void 0:t.map(e=>r.Validator.fromPartial(e)))||[],n.proposer=void 0!==e.proposer&&null!==e.proposer?r.Validator.fromPartial(e.proposer):void 0,n.totalVotingPower=null!=(i=e.totalVotingPower)?i:"0",n}},r.Validator={encode:(e,t=o.default.Writer.create())=>(0!==e.address.length&&t.uint32(10).bytes(e.address),void 0!==e.pubKey&&a.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),"0"!==e.votingPower&&t.uint32(24).int64(e.votingPower),"0"!==e.proposerPriority&&t.uint32(32).int64(e.proposerPriority),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.address=r.bytes();break;case 2:n.pubKey=a.PublicKey.decode(r,r.uint32());break;case 3:n.votingPower=p(r.int64());break;case 4:n.proposerPriority=p(r.int64());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({address:f(e.address)?function(e){let t=u(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}(e.address):new Uint8Array,pubKey:f(e.pubKey)?a.PublicKey.fromJSON(e.pubKey):void 0,votingPower:f(e.votingPower)?String(e.votingPower):"0",proposerPriority:f(e.proposerPriority)?String(e.proposerPriority):"0"}),toJSON(e){let t={};return void 0!==e.address&&(t.address=function(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return h(t.join(""))}(void 0!==e.address?e.address:new Uint8Array)),void 0!==e.pubKey&&(t.pubKey=e.pubKey?a.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.votingPower&&(t.votingPower=e.votingPower),void 0!==e.proposerPriority&&(t.proposerPriority=e.proposerPriority),t},fromPartial(e){var t,r,i;let n=l();return n.address=null!=(t=e.address)?t:new Uint8Array,n.pubKey=void 0!==e.pubKey&&null!==e.pubKey?a.PublicKey.fromPartial(e.pubKey):void 0,n.votingPower=null!=(r=e.votingPower)?r:"0",n.proposerPriority=null!=(i=e.proposerPriority)?i:"0",n}},r.SimpleValidator={encode:(e,t=o.default.Writer.create())=>(void 0!==e.pubKey&&a.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),"0"!==e.votingPower&&t.uint32(16).int64(e.votingPower),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=c();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.pubKey=a.PublicKey.decode(r,r.uint32());break;case 2:n.votingPower=p(r.int64());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({pubKey:f(e.pubKey)?a.PublicKey.fromJSON(e.pubKey):void 0,votingPower:f(e.votingPower)?String(e.votingPower):"0"}),toJSON(e){let t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?a.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.votingPower&&(t.votingPower=e.votingPower),t},fromPartial(e){var t;let r=c();return r.pubKey=void 0!==e.pubKey&&null!==e.pubKey?a.PublicKey.fromPartial(e.pubKey):void 0,r.votingPower=null!=(t=e.votingPower)?t:"0",r}};var d=void 0!==d?d:"u">typeof self?self:"u">typeof window?window:e.g;let u=d.atob||(e=>d.Buffer.from(e,"base64").toString("binary")),h=d.btoa||(e=>d.Buffer.from(e,"binary").toString("base64"));function p(e){return e.toString()}function f(e){return null!=e}o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},167053,(e,t,r)=>{"use strict";var i,n,o,a,s=e.e&&e.e.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.TxProof=r.BlockMeta=r.LightBlock=r.SignedHeader=r.Proposal=r.CommitSig=r.Commit=r.Vote=r.Data=r.Header=r.BlockID=r.Part=r.PartSetHeader=r.signedMsgTypeToJSON=r.signedMsgTypeFromJSON=r.SignedMsgType=r.blockIDFlagToJSON=r.blockIDFlagFromJSON=r.BlockIDFlag=r.protobufPackage=void 0;let l=s(e.r(711385)),c=s(e.r(85884)),d=e.r(982022),u=e.r(180302),h=e.r(678975),p=e.r(759415);function f(e){switch(e){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return o.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return o.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return o.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return o.BLOCK_ID_FLAG_NIL;default:return o.UNRECOGNIZED}}function g(e){switch(e){case o.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case o.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case o.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case o.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";default:return"UNKNOWN"}}function m(e){switch(e){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return a.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return a.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return a.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return a.SIGNED_MSG_TYPE_PROPOSAL;default:return a.UNRECOGNIZED}}function y(e){switch(e){case a.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case a.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case a.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case a.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";default:return"UNKNOWN"}}function b(){return{total:0,hash:new Uint8Array}}function v(){return{index:0,bytes:new Uint8Array,proof:void 0}}function w(){return{hash:new Uint8Array,partSetHeader:void 0}}function x(){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}}function S(){return{type:0,height:"0",round:0,blockId:void 0,timestamp:void 0,validatorAddress:new Uint8Array,validatorIndex:0,signature:new Uint8Array}}function A(){return{height:"0",round:0,blockId:void 0,signatures:[]}}function k(){return{blockIdFlag:0,validatorAddress:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}function E(){return{type:0,height:"0",round:0,polRound:0,blockId:void 0,timestamp:void 0,signature:new Uint8Array}}function I(){return{header:void 0,commit:void 0}}function M(){return{signedHeader:void 0,validatorSet:void 0}}function T(){return{blockId:void 0,blockSize:"0",header:void 0,numTxs:"0"}}function N(){return{rootHash:new Uint8Array,data:new Uint8Array,proof:void 0}}r.protobufPackage="tendermint.types",(i=o=r.BlockIDFlag||(r.BlockIDFlag={}))[i.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",i[i.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",i[i.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",i[i.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED",r.blockIDFlagFromJSON=f,r.blockIDFlagToJSON=g,(n=a=r.SignedMsgType||(r.SignedMsgType={}))[n.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",n[n.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",n[n.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",n[n.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",n[n.UNRECOGNIZED=-1]="UNRECOGNIZED",r.signedMsgTypeFromJSON=m,r.signedMsgTypeToJSON=y,r.PartSetHeader={encode:(e,t=c.default.Writer.create())=>(0!==e.total&&t.uint32(8).uint32(e.total),0!==e.hash.length&&t.uint32(18).bytes(e.hash),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=b();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.total=r.uint32();break;case 2:n.hash=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({total:B(e.total)?Number(e.total):0,hash:B(e.hash)?O(e.hash):new Uint8Array}),toJSON(e){let t={};return void 0!==e.total&&(t.total=Math.round(e.total)),void 0!==e.hash&&(t.hash=D(void 0!==e.hash?e.hash:new Uint8Array)),t},fromPartial(e){var t,r;let i=b();return i.total=null!=(t=e.total)?t:0,i.hash=null!=(r=e.hash)?r:new Uint8Array,i}},r.Part={encode:(e,t=c.default.Writer.create())=>(0!==e.index&&t.uint32(8).uint32(e.index),0!==e.bytes.length&&t.uint32(18).bytes(e.bytes),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=v();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.index=r.uint32();break;case 2:n.bytes=r.bytes();break;case 3:n.proof=u.Proof.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({index:B(e.index)?Number(e.index):0,bytes:B(e.bytes)?O(e.bytes):new Uint8Array,proof:B(e.proof)?u.Proof.fromJSON(e.proof):void 0}),toJSON(e){let t={};return void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.bytes&&(t.bytes=D(void 0!==e.bytes?e.bytes:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial(e){var t,r;let i=v();
1return i.index=null!=(t=e.index)?t:0,i.bytes=null!=(r=e.bytes)?r:new Uint8Array,i.proof=void 0!==e.proof&&null!==e.proof?u.Proof.fromPartial(e.proof):void 0,i}},r.BlockID={encode:(e,t=c.default.Writer.create())=>(0!==e.hash.length&&t.uint32(10).bytes(e.hash),void 0!==e.partSetHeader&&r.PartSetHeader.encode(e.partSetHeader,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=w();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.hash=i.bytes();break;case 2:o.partSetHeader=r.PartSetHeader.decode(i,i.uint32());break;default:i.skipType(7&e)}}return o},fromJSON:e=>({hash:B(e.hash)?O(e.hash):new Uint8Array,partSetHeader:B(e.partSetHeader)?r.PartSetHeader.fromJSON(e.partSetHeader):void 0}),toJSON(e){let t={};return void 0!==e.hash&&(t.hash=D(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.partSetHeader&&(t.partSetHeader=e.partSetHeader?r.PartSetHeader.toJSON(e.partSetHeader):void 0),t},fromPartial(e){var t;let i=w();return i.hash=null!=(t=e.hash)?t:new Uint8Array,i.partSetHeader=void 0!==e.partSetHeader&&null!==e.partSetHeader?r.PartSetHeader.fromPartial(e.partSetHeader):void 0,i}},r.Header={encode:(e,t=c.default.Writer.create())=>(void 0!==e.version&&h.Consensus.encode(e.version,t.uint32(10).fork()).ldelim(),""!==e.chainId&&t.uint32(18).string(e.chainId),"0"!==e.height&&t.uint32(24).int64(e.height),void 0!==e.time&&d.Timestamp.encode(j(e.time),t.uint32(34).fork()).ldelim(),void 0!==e.lastBlockId&&r.BlockID.encode(e.lastBlockId,t.uint32(42).fork()).ldelim(),0!==e.lastCommitHash.length&&t.uint32(50).bytes(e.lastCommitHash),0!==e.dataHash.length&&t.uint32(58).bytes(e.dataHash),0!==e.validatorsHash.length&&t.uint32(66).bytes(e.validatorsHash),0!==e.nextValidatorsHash.length&&t.uint32(74).bytes(e.nextValidatorsHash),0!==e.consensusHash.length&&t.uint32(82).bytes(e.consensusHash),0!==e.appHash.length&&t.uint32(90).bytes(e.appHash),0!==e.lastResultsHash.length&&t.uint32(98).bytes(e.lastResultsHash),0!==e.evidenceHash.length&&t.uint32(106).bytes(e.evidenceHash),0!==e.proposerAddress.length&&t.uint32(114).bytes(e.proposerAddress),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=x();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.version=h.Consensus.decode(i,i.uint32());break;case 2:o.chainId=i.string();break;case 3:o.height=L(i.int64());break;case 4:o.time=R(d.Timestamp.decode(i,i.uint32()));break;case 5:o.lastBlockId=r.BlockID.decode(i,i.uint32());break;case 6:o.lastCommitHash=i.bytes();break;case 7:o.dataHash=i.bytes();break;case 8:o.validatorsHash=i.bytes();break;case 9:o.nextValidatorsHash=i.bytes();break;case 10:o.consensusHash=i.bytes();break;case 11:o.appHash=i.bytes();break;case 12:o.lastResultsHash=i.bytes();break;case 13:o.evidenceHash=i.bytes();break;case 14:o.proposerAddress=i.bytes();break;default:i.skipType(7&e)}}return o},fromJSON:e=>({version:B(e.version)?h.Consensus.fromJSON(e.version):void 0,chainId:B(e.chainId)?String(e.chainId):"",height:B(e.height)?String(e.height):"0",time:B(e.time)?z(e.time):void 0,lastBlockId:B(e.lastBlockId)?r.BlockID.fromJSON(e.lastBlockId):void 0,lastCommitHash:B(e.last
1CommitHash)?O(e.lastCommitHash):new Uint8Array,dataHash:B(e.dataHash)?O(e.dataHash):new Uint8Array,validatorsHash:B(e.validatorsHash)?O(e.validatorsHash):new Uint8Array,nextValidatorsHash:B(e.nextValidatorsHash)?O(e.nextValidatorsHash):new Uint8Array,consensusHash:B(e.consensusHash)?O(e.consensusHash):new Uint8Array,appHash:B(e.appHash)?O(e.appHash):new Uint8Array,lastResultsHash:B(e.lastResultsHash)?O(e.lastResultsHash):new Uint8Array,evidenceHash:B(e.evidenceHash)?O(e.evidenceHash):new Uint8Array,proposerAddress:B(e.proposerAddress)?O(e.proposerAddress):new Uint8Array}),toJSON(e){let t={};return void 0!==e.version&&(t.version=e.version?h.Consensus.toJSON(e.version):void 0),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.height&&(t.height=e.height),void 0!==e.time&&(t.time=e.time.toISOString()),void 0!==e.lastBlockId&&(t.lastBlockId=e.lastBlockId?r.BlockID.toJSON(e.lastBlockId):void 0),void 0!==e.lastCommitHash&&(t.lastCommitHash=D(void 0!==e.lastCommitHash?e.lastCommitHash:new Uint8Array)),void 0!==e.dataHash&&(t.dataHash=D(void 0!==e.dataHash?e.dataHash:new Uint8Array)),void 0!==e.validatorsHash&&(t.validatorsHash=D(void 0!==e.validatorsHash?e.validatorsHash:new Uint8Array)),void 0!==e.nextValidatorsHash&&(t.nextValidatorsHash=D(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.consensusHash&&(t.consensusHash=D(void 0!==e.consensusHash?e.consensusHash:new Uint8Array)),void 0!==e.appHash&&(t.appHash=D(void 0!==e.appHash?e.appHash:new Uint8Array)),void 0!==e.lastResultsHash&&(t.lastResultsHash=D(void 0!==e.lastResultsHash?e.lastResultsHash:new Uint8Array)),void 0!==e.evidenceHash&&(t.evidenceHash=D(void 0!==e.evidenceHash?e.evidenceHash:new Uint8Array)),void 0!==e.proposerAddress&&(t.proposerAddress=D(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),t},fromPartial(e){var t,i,n,o,a,s,l,c,d,u,p,f;let g=x();return g.version=void 0!==e.version&&null!==e.version?h.Consensus.fromPartial(e.version):void 0,g.chainId=null!=(t=e.chainId)?t:"",g.height=null!=(i=e.height)?i:"0",g.time=null!=(n=e.time)?n:void 0,g.lastBlockId=void 0!==e.lastBlockId&&null!==e.lastBlockId?r.BlockID.fromPartial(e.lastBlockId):void 0,g.lastCommitHash=null!=(o=e.lastCommitHash)?o:new Uint8Array,g.dataHash=null!=(a=e.dataHash)?a:new Uint8Array,g.validatorsHash=null!=(s=e.validatorsHash)?s:new Uint8Array,g.nextValidatorsHash=null!=(l=e.nextValidatorsHash)?l:new Uint8Array,g.consensusHash=null!=(c=e.consensusHash)?c:new Uint8Array,g.appHash=null!=(d=e.appHash)?d:new Uint8Array,g.lastResultsHash=null!=(u=e.lastResultsHash)?u:new Uint8Array,g.evidenceHash=null!=(p=e.evidenceHash)?p:new Uint8Array,g.proposerAddress=null!=(f=e.proposerAddress)?f:new Uint8Array,g}},r.Data={encode(e,t=c.default.Writer.create()){for(let r of e.txs)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n={txs:[]};for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.txs.push(r.bytes()):r.skipType(7&e)}return n},fromJSON:e=>({txs:Array.isArray(null==e?void 0:e.txs)?e.txs.map(e=>O(e)):[]}),toJSON(e){let t={};return e.txs?t.txs=e.txs.map(e=>D(void 0!==e?e:new Uint8Array)):t.txs=[],t},fromPartial(e){var t;let r={txs:[]};return r.txs=(null==(t=e.txs)?void 0:t.map(e=>e))||[],r}},r.Vote={encode:(e,t=c.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),"0"!==e.height&&t.uint32(16).int64(e.height),0!==e.round&&t.uint32(24).int32(e.round),void 0!==e.blockId&&r.BlockID.encode(e.blockId,t.uint32(34).fork()).ldelim(),void 0!==e.timestamp&&d.Timestamp.encode(j(e.timestamp),t.uint32(42).fork()).ldelim(),0!==e.validatorAddress.length&&t.uint32(50).bytes(e.validatorAddress),0!==e.validatorIndex&&t.uint32(56).int32(e.validatorIndex),0!==e.signature.length&&t.uint32(66).bytes(e.signature),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=S();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.type=i.int32();break;case 2:o.height=L(i.int64());break;case 3:o.round=i.int32();break;case 4:o.blockId=r.BlockID.decode(i,i.uint32());break;case 5:o.timestamp=R(d.Timestamp.decode(i,i.uint32()));break;case 6:o.validatorAddress=i.bytes();break;
1case 7:o.validatorIndex=i.int32();break;case 8:o.signature=i.bytes();break;default:i.skipType(7&e)}}return o},fromJSON:e=>({type:B(e.type)?m(e.type):0,height:B(e.height)?String(e.height):"0",round:B(e.round)?Number(e.round):0,blockId:B(e.blockId)?r.BlockID.fromJSON(e.blockId):void 0,timestamp:B(e.timestamp)?z(e.timestamp):void 0,validatorAddress:B(e.validatorAddress)?O(e.validatorAddress):new Uint8Array,validatorIndex:B(e.validatorIndex)?Number(e.validatorIndex):0,signature:B(e.signature)?O(e.signature):new Uint8Array}),toJSON(e){let t={};return void 0!==e.type&&(t.type=y(e.type)),void 0!==e.height&&(t.height=e.height),void 0!==e.round&&(t.round=Math.round(e.round)),void 0!==e.blockId&&(t.blockId=e.blockId?r.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),void 0!==e.validatorAddress&&(t.validatorAddress=D(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.validatorIndex&&(t.validatorIndex=Math.round(e.validatorIndex)),void 0!==e.signature&&(t.signature=D(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial(e){var t,i,n,o,a,s,l;let c=S();return c.type=null!=(t=e.type)?t:0,c.height=null!=(i=e.height)?i:"0",c.round=null!=(n=e.round)?n:0,c.blockId=void 0!==e.blockId&&null!==e.blockId?r.BlockID.fromPartial(e.blockId):void 0,c.timestamp=null!=(o=e.timestamp)?o:void 0,c.validatorAddress=null!=(a=e.validatorAddress)?a:new Uint8Array,c.validatorIndex=null!=(s=e.validatorIndex)?s:0,c.signature=null!=(l=e.signature)?l:new Uint8Array,c}},r.Commit={encode(e,t=c.default.Writer.create()){for(let i of("0"!==e.height&&t.uint32(8).int64(e.height),0!==e.round&&t.uint32(16).int32(e.round),void 0!==e.blockId&&r.BlockID.encode(e.blockId,t.uint32(26).fork()).ldelim(),e.signatures))r.CommitSig.encode(i,t.uint32(34).fork()).ldelim();return t},decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=A();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.height=L(i.int64());break;case 2:o.round=i.int32();break;case 3:o.blockId=r.BlockID.decode(i,i.uint32());break;case 4:o.signatures.push(r.CommitSig.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return o},fromJSON:e=>({height:B(e.height)?String(e.height):"0",round:B(e.round)?Number(e.round):0,blockId:B(e.blockId)?r.BlockID.fromJSON(e.blockId):void 0,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map(e=>r.CommitSig.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.height&&(t.height=e.height),void 0!==e.round&&(t.round=Math.round(e.round)),void 0!==e.blockId&&(t.blockId=e.blockId?r.BlockID.toJSON(e.blockId):void 0),e.signatures?t.signatures=e.signatures.map(e=>e?r.CommitSig.toJSON(e):void 0):t.signatures=[],t},fromPartial(e){var t,i,n;let o=A();return o.height=null!=(t=e.height)?t:"0",o.round=null!=(i=e.round)?i:0,o.blockId=void 0!==e.blockId&&null!==e.blockId?r.BlockID.fromPartial(e.blockId):void 0,o.signatures=(null==(n=e.signatures)?void 0:n.map(e=>r.CommitSig.fromPartial(e)))||[],o}},r.CommitSig={encode:(e,t=c.default.Writer.create())=>(0!==e.blockIdFlag&&t.uint32(8).int32(e.blockIdFlag),0!==e.validatorAddress.length&&t.uint32(18).bytes(e.validatorAddress),void 0!==e.timestamp&&d.Timestamp.encode(j(e.timestamp),t.uint32(26).fork()).ldelim(),0!==e.signature.length&&t.uint32(34).bytes(e.signature),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=k();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.blockIdFlag=r.int32();break;case 2:n.validatorAddress=r.bytes();break;case 3:n.timestamp=R(d.Timestamp.decode(r,r.uint32()));break;case 4:n.signature=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({blockIdFlag:B(e.blockIdFlag)?f(e.blockIdFlag):0,validatorAddress:B(e.validatorAddress)?O(e.validatorAddress):new Uint8Array,timestamp:B(e.timestamp)?z(e.timestamp):void 0,signature:B(e.signature)?O(e.signature):new Uint8Array}),toJSON(e){let t={};return void 0!==e.blockIdFlag&&(t.blockIdFlag=g(e.blockIdFlag)),void 0!==e.validatorAddress&&(t.validatorAddress=D(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(t.signature=D(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial(e){var t,r,i,n;let o=k();return o.blockIdFlag=null!=(t=e.blockIdFlag)?t:0,o.validatorAddress=null!=(r=e.validatorAddress)?r:new Uint8Array,o.timestamp=null!=(i=e.timestamp)?i:void 0,o.signature=null!=(n=e.signature)?n:new Uint8Array,o}},r.Proposal={encode:(e,t=c.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),"0"!==e.height&&t.uint32(16).int64(e.height),0!==e.round&&t.uint32(24).int32(e.round),0!==e.polRound&&t.uint32(32).int32(e.polRound),void 0!==e.blockId&&r.BlockID.encode(e.blockId,t.uint32(42).fork()).ldelim(),void 0!==e.timestamp&&d.Timestamp.encode(j(e.timestamp),t.uint32(50).fork()).ldelim(),0!==e.signature.length&&t.uint32(58).bytes(e.signature),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=E();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.type=i.int32();break;case 2:o.height=L(i.int64());break;case 3:o.round=i.int32();break;case 4:o.polRound=i.int32();break;case 5:o.blockId=r.BlockID.decode(i,i.uint32());break;case 6:o.timestamp=R(d.Timestamp.decode(i,i.uint32()));break;case 7:o.signature=i.bytes();break;default:i.skipType(7&e)}}return o},fromJSON:e=>({type:B(e.type)?m(e.type):0,height:B(e.height)?String(e.height):"0",round:B(e.round)?Number(e.round):0,polRound:B(e.polRound)?Number(e.polRound):0,blockId:B(e.blockId)?r.BlockID.fromJSON(e.blockId):void 0,timestamp:B(e.timestamp)?z(e.timestamp):void 0,signature:B(e.signature)?O(e.signature):new Uint8Array}),toJSON(e){let t={};return void 0!==e.type&&(t.type=y(e.type)),void 0!==e.height&&(t.height=e.height),void 0!==e.round&&(t.round=Math.round(e.round)),void 0!==e.polRound&&(t.polRound=Math.round(e.polRound)),void 0!==e.blockId&&(t.blockId=e.blockId?r.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(t.signature=D(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial(e){var t,i,n,o,a,s;let l=E();return l.type=null!=(t=e.type)?t:0,l.height=null!=(i=e.height)?i:"0",l.round=null!=(n=e.round)?n:0,l.polRound=null!=(o=e.polRound)?o:0,l.blockId=void 0!==e.blockId&&null!==e.blockId?r.BlockID.fromPartial(e.blockId):void 0,l.t
1imestamp=null!=(a=e.timestamp)?a:void 0,l.signature=null!=(s=e.signature)?s:new Uint8Array,l}},r.SignedHeader={encode:(e,t=c.default.Writer.create())=>(void 0!==e.header&&r.Header.encode(e.header,t.uint32(10).fork()).ldelim(),void 0!==e.commit&&r.Commit.encode(e.commit,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=I();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.header=r.Header.decode(i,i.uint32());break;case 2:o.commit=r.Commit.decode(i,i.uint32());break;default:i.skipType(7&e)}}return o},fromJSON:e=>({header:B(e.header)?r.Header.fromJSON(e.header):void 0,commit:B(e.commit)?r.Commit.fromJSON(e.commit):void 0}),toJSON(e){let t={};return void 0!==e.header&&(t.header=e.header?r.Header.toJSON(e.header):void 0),void 0!==e.commit&&(t.commit=e.commit?r.Commit.toJSON(e.commit):void 0),t},fromPartial(e){let t=I();return t.header=void 0!==e.header&&null!==e.header?r.Header.fromPartial(e.header):void 0,t.commit=void 0!==e.commit&&null!==e.commit?r.Commit.fromPartial(e.commit):void 0,t}},r.LightBlock={encode:(e,t=c.default.Writer.create())=>(void 0!==e.signedHeader&&r.SignedHeader.encode(e.signedHeader,t.uint32(10).fork()).ldelim(),void 0!==e.validatorSet&&p.ValidatorSet.encode(e.validatorSet,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=M();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.signedHeader=r.SignedHeader.decode(i,i.uint32());break;case 2:o.validatorSet=p.ValidatorSet.decode(i,i.uint32());break;default:i.skipType(7&e)}}return o},fromJSON:e=>({signedHeader:B(e.signedHeader)?r.SignedHeader.fromJSON(e.signedHeader):void 0,validatorSet:B(e.validatorSet)?p.ValidatorSet.fromJSON(e.validatorSet):void 0}),toJSON(e){let t={};return void 0!==e.signedHeader&&(t.signedHeader=e.signedHeader?r.SignedHeader.toJSON(e.signedHeader):void 0),void 0!==e.validatorSet&&(t.validatorSet=e.validatorSet?p.ValidatorSet.toJSON(e.validatorSet):void 0),t},fromPartial(e){let t=M();return t.signedHeader=void 0!==e.signedHeader&&null!==e.signedHeader?r.SignedHeader.fromPartial(e.signedHeader):void 0,t.validatorSet=void 0!==e.validatorSet&&null!==e.validatorSet?p.ValidatorSet.fromPartial(e.validatorSet):void 0,t}},r.BlockMeta={encode:(e,t=c.default.Writer.create())=>(void 0!==e.blockId&&r.BlockID.encode(e.blockId,t.uint32(10).fork()).ldelim(),"0"!==e.blockSize&&t.uint32(16).int64(e.blockSize),void 0!==e.header&&r.Header.encode(e.header,t.uint32(26).fork()).ldelim(),"0"!==e.numTxs&&t.uint32(32).int64(e.numTxs),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=T();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.blockId=r.BlockID.decode(i,i.uint32());break;case 2:o.blockSize=L(i.int64());break;case 3:o.header=r.Header.decode(i,i.uint32());break;case 4:o.numTxs=L(i.int64());break;default:i.skipType(7&e)}}return o},fromJSON:e=>({blockId:B(e.blockId)?r.BlockID.fromJSON(e.blockId):void 0,blockSize:B(e.blockSize)?String(e.blockSize):"0",header:B(e.header)?r.Header.fromJSON(e.header):void 0,numTxs:B(e.numTxs)?String(e.numTxs):"0"}),toJSON(e){let t={};return void 0!==e.blockId&&(t.blockId=e.blockId?r.BlockID.toJSON(e.blockId):void 0),void 0!==e.blockSize&&(t.blockSize=e.blockSize),void 0!==e.header&&(t.header=e.header?r.Header.toJSON(e.header):void 0),void 0!==e.numTxs&&(t.numTxs=e.numTxs),t},fromPartial(e){var t,i;let n=T();return n.blockId=void 0!==e.blockId&&null!==e.blockId?r.BlockID.fromPartial(e.blockId):void 0,n.blockSize=null!=(t=e.blockSize)?t:"0",n.header=void 0!==e.header&&null!==e.header?r.Header.fromPartial(e.header):void 0,n.numTxs=null!=(i=e.numTxs)?i:"0",n}},r.TxProof={encode:(e,t=c.default.Writer.create())=>(0!==e.rootHash.length&&t.uint32(10).bytes(e.rootHash),0!==e.data.length&&t.uint32(18).bytes(e.data),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=N();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.rootHash=r.bytes();break;case 2:n.data=r.bytes();break;case 3:n.proof=u.Proof.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({rootHash:B(e.rootHash)?O(e.rootHash):new Uint8Array,data:B(e.data)?O(e.data):new Uint8Array,proof:B(e.proof)?u.Proof.fromJSON(e.proof):void 0}),toJSON(e){let t={};return void 0!==e.rootHash&&(t.rootHash=D(void 0!==e.rootHash?e.rootHash:new Uint8Array)),void 0!==e.data&&(t.data=D(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial(e){var t,r;let i=N();
1return i.rootHash=null!=(t=e.rootHash)?t:new Uint8Array,i.data=null!=(r=e.data)?r:new Uint8Array,i.proof=void 0!==e.proof&&null!==e.proof?u.Proof.fromPartial(e.proof):void 0,i}};var _=void 0!==_?_:"u">typeof self?self:"u">typeof window?window:e.g;let C=_.atob||(e=>_.Buffer.from(e,"base64").toString("binary"));function O(e){let t=C(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}let P=_.btoa||(e=>_.Buffer.from(e,"binary").toString("base64"));function D(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return P(t.join(""))}function j(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function R(e){let t=1e3*Number(e.seconds);return new Date(t+=e.nanos/1e6)}function z(e){return e instanceof Date?e:"string"==typeof e?new Date(e):R(d.Timestamp.fromJSON(e))}function L(e){return e.toString()}function B(e){return null!=e}c.default.util.Long!==l.default&&(c.default.util.Long=l.default,c.default.configure())},246324,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Any=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884));function a(){return{typeUrl:"",value:new Uint8Array}}r.protobufPackage="google.protobuf",r.Any={encode:(e,t=o.default.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.typeUrl=r.string();break;case 2:n.value=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({typeUrl:null!=e.typeUrl?String(e.typeUrl):"",value:null!=e.value?function(e){let t=l(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}(e.value):new Uint8Array}),toJSON(e){let t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=function(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return c(t.join(""))}(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial(e){var t,r;let i=a();return i.typeUrl=null!=(t=e.typeUrl)?t:"",i.value=null!=(r=e.value)?r:new Uint8Array,i}};var s=void 0!==s?s:"u">typeof self?self:"u">typeof window?window:e.g;let l=s.atob||(e=>s.Buffer.from(e,"base64").toString("binary")),c=s.btoa||(e=>s.Buffer.from(e,"binary").toString("base64"));o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},983150,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Duration=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884));function a(){return{seconds:"0",nanos:0}}r.protobufPackage="google.protobuf",r.Duration={encode:(e,t=o.default.Writer.create())=>("0"!==e.seconds&&t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.seconds=r.int64().toString();break;case 2:n.nanos=r.int32();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({seconds:null!=e.seconds?String(e.seconds):"0",nanos:null!=e.nanos?Number(e.nanos):0}),toJSON(e){let t={};return void 0!==e.seconds&&(t.seconds=e.seconds),void 0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){var t,r;let i=a();return i.seconds=null!=(t=e.seconds)?t:"0",i.nanos=null!=(r=e.nanos)?r:0,i}};o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},820485,(e,t,r)=>{"use strict";var i,n,o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Pool=r.RedelegationResponse=r.RedelegationEntryResponse=r.DelegationResponse=r.Params=r.Redelegation=r.RedelegationEntry=r.UnbondingDelegationEntry=r.UnbondingDelegation=r.Delegation=r.DVVTriplets=r.DVVTriplet=r.DVPairs=r.DVPair=r.ValAddresses=r.Validator=r.Description=r.Commission=r.CommissionRates=r.HistoricalInfo=r.bondStatusToJSON=r.bondStatusFromJSON=r.BondStatus=r.protobufPackage=void 0;let a=o(e.r(711385)),s=o(e.r(85884)),l=e.r(982022),c=e.r(167053),d=e.r(246324),u=e.r(983150),h=e.r(50701);function p(e){switch(e){case 0:case"BOND_STATUS_UNSPECIFIED":return n.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return n.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return n.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return n.BOND_STATUS_BONDED;default:return n.UNRECOGNIZED}}function f(e){switch(e){case n.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case n.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case n.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case n.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";default:return"UNKNOWN"}}function g(){return{header:void 0,valset:[]}}function m(){return{rate:"",maxRate:"",maxChangeRate:""}}function y(){return{commissionRates:void 0,updateTime:void 0}}function b(){return{moniker:"",identity:"",website:"",securityContact:"",details:""}}function v(){return{operatorAddress:"",consensusPubkey:void 0,jailed:!1,status:0,tokens:"",delegatorShares:"",description:void 0,unbondingHeight:"0",unbondingTime:void 0,commission:void 0,minSelfDelegation:""}}function w(){return{addresses:[]}}function x(){return{delegatorAddress:"",validatorAddress:""}}function S(){return{pairs:[]}}function A(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""}}function k(){return{triplets:[]}}function E(){return{delegatorAddress:"",validatorAddress:"",shares:""}}function I(){return{delegatorAddress:"",validatorAddress:"",entries:[]}}function M(){return{creationHeight:"0",completionTime:void 0,initialBalance:"",balance:""}}function T(){return{creationHeight:"0",completionTime:void 0,initialBalance:"",sharesDst:""}}function N(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",entries:[]}}function _(){return{unbondingTime:void 0,maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:""}}function C(){return{delegation:void 0,balance:void 0}}function O(){return{redelegationEntry:void 0,balance:""}}
1function P(){return{redelegation:void 0,entries:[]}}function D(){return{notBondedTokens:"",bondedTokens:""}}function j(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function R(e){let t=1e3*Number(e.seconds);return new Date(t+=e.nanos/1e6)}function z(e){return e instanceof Date?e:"string"==typeof e?new Date(e):R(l.Timestamp.fromJSON(e))}function L(e){return e.toString()}function B(e){return null!=e}r.protobufPackage="cosmos.staking.v1beta1",(i=n=r.BondStatus||(r.BondStatus={}))[i.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",i[i.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",i[i.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",i[i.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED",r.bondStatusFromJSON=p,r.bondStatusToJSON=f,r.HistoricalInfo={encode(e,t=s.default.Writer.create()){for(let i of(void 0!==e.header&&c.Header.encode(e.header,t.uint32(10).fork()).ldelim(),e.valset))r.Validator.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=g();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.header=c.Header.decode(i,i.uint32());break;case 2:o.valset.push(r.Validator.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return o},fromJSON:e=>({header:B(e.header)?c.Header.fromJSON(e.header):void 0,valset:Array.isArray(null==e?void 0:e.valset)?e.valset.map(e=>r.Validator.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.header&&(t.header=e.header?c.Header.toJSON(e.header):void 0),e.valset?t.valset=e.valset.map(e=>e?r.Validator.toJSON(e):void 0):t.valset=[],t},fromPartial(e){var t;let i=g();return i.header=void 0!==e.header&&null!==e.header?c.Header.fromPartial(e.header):void 0,i.valset=(null==(t=e.valset)?void 0:t.map(e=>r.Validator.fromPartial(e)))||[],i}},r.CommissionRates={encode:(e,t=s.default.Writer.create())=>(""!==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 r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=m();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.rate=r.string();break;case 2:n.maxRate=r.string();break;case 3:n.maxChangeRate=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({rate:B(e.rate)?String(e.rate):"",maxRate:B(e.maxRate)?String(e.maxRate):"",maxChangeRate:B(e.maxChangeRate)?String(e.maxChangeRate):""}),toJSON(e){let t={};return void 0!==e.rate&&(t.rate=e.rate),void 0!==e.maxRate&&(t.maxRate=e.maxRate),void 0!==e.maxChangeRate&&(t.maxChangeRate=e.maxChangeRate),t},fromPartial(e){var t,r,i;let n=m();return n.rate=null!=(t=e.rate)?t:"",n.maxRate=null!=(r=e.maxRate)?r:"",n.maxChangeRate=null!=(i=e.maxChangeRate)?i:"",n}},r.Commission={encode:(e,t=s.default.Writer.create())=>(void 0!==e.commissionRates&&r.CommissionRates.encode(e.commissionRates,t.uint32(10).fork()).ldelim(),void 0!==e.updateTime&&l.Timestamp.encode(j(e.updateTime),t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=y();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.commissionRates=r.CommissionRates.decode(i,i.uint32());break;case 2:o.updateTime=R(l.Timestamp.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return o},fromJSON:e=>({commissionRates:B(e.commissionRates)?r.CommissionRates.fromJSON(e.commissionRates):void 0,updateTime:B(e.updateTime)?z(e.updateTime):void 0}),toJSON(e){let t={};return void 0!==e.commissionRates&&(t.commissionRates=e.commissionRates?r.CommissionRates.toJSON(e.commissionRates):void 0),void 0!==e.updateTime&&(t.updateTime=e.updateTime.toISOString()),t},fromPartial(e){var t;let i=y();return i.commissionRates=void 0!==e.commissionRates&&null!==e.commissionRates?r.CommissionRates.fromPartial(e.commissionRates):void 0,i.updateTime=null!=(t=e.updateTime)?t:void 0,i}},r.Description={encode:(e,t=s.default.Writer.create())=>(""!==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 r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=b();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.moniker=r.string();break;case 2:n.identity=r.string();break;case 3:n.website=r.string();break;case 4:n.securityContact=r.string();break;case 5:n.details=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({moniker:B(e.moniker)?String(e.moniker):"",identity:B(e.identity)?String(e.identity):"",website:B(e.website)?String(e.website):"",securityContact:B(e.securityContact)?String(e.securityContact):"",details:B(e.details)?String(e.details):""}),toJSON(e){let t={};return void 0!==e.moniker&&(t.moniker=e.moniker),void 0!==e.identity&&(t.identity=e.identity),void 0!==e.website&&(t.website=e.website),void 0!==e.securityContact&&(t.securityContact=e.securityContact),void 0!==e.details&&(t.details=e.details),t},fromPartial(e){var t,r,i,n,o;let a=b();return a.moniker=null!=(t=e.moniker)?t:"",a.identity=null!=(r=e.identity)?r:"",a.website=null!=(i=e.website)?i:"",a.securityContact=null!=(n=e.securityContact)?n:"",a.details=null!=(o=e.details)?o:"",a}},r.Validator={encode:(e,t=s.default.Writer.create())=>(""!==e.operatorAddress&&t.uint32(10).string(e.operatorAddress),void 0!==e.consensusPubkey&&d.Any.encode(e.consensusPubkey,t.uint32(18).fork()).ldelim(),!0===e.jailed&&t.uint32(24).bool(e.jailed),0!==e.status&&t.uint32(32).int32(e.status),""!==e.tokens&&t.uint32(42).string(e.tokens),""!==e.delegatorShares&&t.uint32(50).string(e.delegatorShares),void 0!==e.description&&r.Description.encode(e.description,t.uint32(58).fork()).ldelim(),"0"!==e.unbondingHeight&&t.uint32(64).int64(e.unbondingHeight),void 0!==e.unbondingTime&&l.Timestamp.encode(j(e.unbondingTime),t.uint32(74).fork()).ldelim(),void 0!==e.commission&&r.Commission.encode(e.commission,t.uint32(82).fork()).ldelim(),""!==e.minSelfDelegation&&t.uint32(90).string(e.minSelfDelegation),t),decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=v();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.operatorAddress=i.string();break;case 2:o.consensusPubkey=d.Any.decode(i,i.uint32());break;case 3:o.jailed=i.bool();break;case 4:o.status=i.int32();break;case 5:o.tokens=i.string();break;case 6:o.delegatorShares=i.string();break;case 7:o.description=r.Description.decode(i,i.uint32());break;case 8:o.unbondingHeight=L(i.int64());break;case 9:o.unbondingTime=R(l.Timestamp.decode(i,i.uint32()));break;case 10:o.commission=r.Commission.decode(i,i.uint32());break;case 11:o.minSelfDelegation=i.string();break;default:i.skipType(7&e)}}return o},fromJSON:e=>({operatorAddress:B(e.operatorAddress)?String(e.operatorAddress):"",consensusPubkey:B(e.consensusPubkey)?d.Any.fromJSON(e.consensusPubkey):void 0,jailed:!!B(e.jailed)&&!!e.jailed,status:B(e.status)?p(e.status):0,tokens:B(e.tokens)?String(e.tokens):"",delegatorShares:B(e.delegatorShares)?String(e.delegatorShares):"",description:B(e.description)?r.Description.fromJSON(e.description):void 0,unbondingHeight:B(e.unbondingHeight)?String(e.unbondingHeight):"0",unbondingTime:B(e.unbondingTime)?z(e.unbondingTime):void 0,commission:B(e.commission)?r.Commission.fromJSON(e.commission):void 0,minSelfDelegation:B(e.minSelfDelegation)?String(e.minSelfDelegation):""}),toJSON(e){let t={};return void 0!==e.operatorAddress&&(t.operatorAddress=e.operatorAddress),void 0!==e.consensusPubkey&&(t.consensusPubkey=e.consensusPubkey?d.Any.toJSON(e.consensusPubkey):void 0),void 0!==e.jailed&&(t.jailed=e.jailed),void 0!==e.status&&(t.status=f(e.status)),void 0!==e.tokens&&(t.tokens=e.tokens),void 0!==e.delegatorShares&&(t.delegatorShares=e.delegatorShares),void 0!==e.description&&(t.description=e.description?r.Description.toJSON(e.description):void 0),void 0!==e.unbondingHeight&&(t.unbondingHeight=e.unbondingHeight),void 0!==e.unbondingTime&&(t.unbondingTime=e.unbondingTime.toISOString()),void 0!==e.commission&&(t.commission=e.commission?r.Commission.toJSON(e.commission):void 0),void 0!==e.minSelfDelegation&&(t.minSelfDelegation=e.minSelfDelegation),t},fromPartial(e){var t,i,n,o,a,s,l,c;let u=v();return u.operatorAddress=null!=(t=e.operatorAddress)?t:"",u.consensusPubkey=void 0!==e.consensusPubkey&&null!==e.consensusPubkey?d.Any.fromPartial(e.consensusPubkey):void 0,u.jailed=null!=(i=e.jailed)&&i,u.status=null!=(n=e.status)?n:0,u.tokens=null!=(o=e.tokens)?o:"",u.delegatorShares=null!=(a=e.delegatorShares)?a:"",u.description=void 0!==e.description&&null!==e.description?r.Description.fromPartial(e.description):void 0,u.unbondingHeight=null!=(s=e.unbondingHeight)?s:"0",u.unbondingTime=null!=(l=e.unbondingTime)?l:void 0,u.commission=void 0!==e.commission&&null!==e.commission?r.Commission.fromPartial(e.commission):void 0,u.minSelfDelegation=null!=(c=e.minSelfDelegation)?c:"",u}},r.ValAddresses={encode(e,t=s.default.Writer.create()){for(let r of e.addresses)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=w();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.addresses.push(r.string()):r.skipType(7&e)}return n},fromJSON:e=>({addresses:Array.isArray(null==e?void 0:e.addresses)?e.addresses.map(e=>String(e)):[]}),toJSON(e){let t={};return e.addresses?t.addresses=e.addresses.map(e=>e):t.addresses=[],t},fromPartial(e){var t;let r=w();return r.addresses=(null==(t=e.addresses)?void 0:t.map(e=>e))||[],r}},r.DVPair={encode:(e,t=s.default.Writer.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t),decode(e,t){let r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=x();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({delegatorAddress:B(e.delegatorAddress)?String(e.delegatorAddress):"",validatorAddress:B(e.validatorAddress)?String(e.validatorAddress):""}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){var t,r;let i=x();return i.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",i.validatorAddress=null!=(r=e.validatorAddress)?r:"",i}},r.DVPairs={encode(e,t=s.default.Writer.create()){for(let i of e.pairs)r.DVPair.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=S();for(;i.pos<n;){let e=i.uint32();e>>>3==1?o.pairs.push(r.DVPair.decode(i,i.uint32())):i.skipType(7&e)}return o},fromJSON:e=>({pairs:Array.isArray(null==e?void 0:e.pairs)?e.pairs.map(e=>r.DVPair.fromJSON(e)):[]}),toJSON(e){let t={};return e.pairs?t.pairs=e.pairs.map(e=>e?r.DVPair.toJSON(e):void 0):t.pairs=[],t},fromPartial(e){var t;let i=S();return i.pairs=(null==(t=e.pairs)?void 0:t.map(e=>r.DVPair.fromPartial(e)))||[],i}},r.DVVTriplet={encode:(e,t=s.default.Writer.create())=>(""!==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 r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=A();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorSrcAddress=r.string();break;case 3:n.validatorDstAddress=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({delegatorAddress:B(e.delegatorAddress)?String(e.delegatorAddress):"",validatorSrcAddress:B(e.validatorSrcAddress)?String(e.validatorSrcAddress):"",validatorDstAddress:B(e.validatorDstAddress)?String(e.validatorDstAddress):""}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(t.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(t.validatorDstAddress=e.validatorDstAddress),t},fromPartial(e){var t,r,i;let n=A();return n.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",n.validatorSrcAddress=null!=(r=e.validatorSrcAddress)?r:"",n.validatorDstAddress=null!=(i=e.validatorDstAddress)?i:"",n}},r.DVVTriplets={encode(e,t=s.default.Writer.create()){for(let i of e.triplets)r.DVVTriplet.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=k();for(;i.pos<n;){let e=i.uint32();e>>>3==1?o.triplets.push(r.DVVTriplet.decode(i,i.uint32())):i.skipType(7&e)}return o},fromJSON:e=>({triplets:Array.isArray(null==e?void 0:e.triplets)?e.triplets.map(e=>r.DVVTriplet.fromJSON(e)):[]}),toJSON(e){let t={};return e.triplets?t.triplets=e.triplets.map(e=>e?r.DVVTriplet.toJSON(e):void 0):t.triplets=[],t},fromPartial(e){var t;let i=k();return i.triplets=(null==(t=e.triplets)?void 0:t.map(e=>r.DVVTriplet.fromPartial(e)))||[],i}},r.Delegation={encode:(e,t=s.default.Writer.create())=>(""!==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 r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=E();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;case 3:n.shares=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({delegatorAddress:B(e.delegatorAddress)?String(e.delegatorAddress):"",validatorAddress:B(e.validatorAddress)?String(e.validatorAddress):"",shares:B(e.shares)?String(e.shares):""}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.shares&&(t.shares=e.shares),t},fromPartial(e){var t,r,i;let n=E();return n.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",n.validatorAddress=null!=(r=e.validatorAddress)?r:"",n.shares=null!=(i=e.shares)?i:"",n}},r.UnbondingDelegation={encode(e,t=s.default.Writer.create()){for(let i of(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),e.entries))r.UnbondingDelegationEntry.encode(i,t.uint32(26).fork()).ldelim();return t},decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=I();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.delegatorAddress=i.string();break;case 2:o.validatorAddress=i.string();break;case 3:o.entries.push(r.UnbondingDelegationEntry.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return o},fromJSON:e=>({delegatorAddress:B(e.delegatorAddress)?String(e.delegatorAddress):"",validatorAddress:B(e.validatorAddress)?String(e.validatorAddress):"",entries:Array.isArray(null==e?void 0:e.entries)?e.entries.map(e=>r.UnbondingDelegationEntry.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),e.entries?t.entries=e.entries.map(e=>e?r.UnbondingDelegationEntry.toJSON(e):void 0):t.entries=[],t},fromPartial(e){var t,i,n;let o=I();return o.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",o.validatorAddress=null!=(i=e.validatorAddress)?i:"",o.entries=(null==(n=e.entries)?void 0:n.map(e=>r.UnbondingDelegationEntry.fromPartial(e)))||[],o}
1},r.UnbondingDelegationEntry={encode:(e,t=s.default.Writer.create())=>("0"!==e.creationHeight&&t.uint32(8).int64(e.creationHeight),void 0!==e.completionTime&&l.Timestamp.encode(j(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 r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=M();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.creationHeight=L(r.int64());break;case 2:n.completionTime=R(l.Timestamp.decode(r,r.uint32()));break;case 3:n.initialBalance=r.string();break;case 4:n.balance=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({creationHeight:B(e.creationHeight)?String(e.creationHeight):"0",completionTime:B(e.completionTime)?z(e.completionTime):void 0,initialBalance:B(e.initialBalance)?String(e.initialBalance):"",balance:B(e.balance)?String(e.balance):""}),toJSON(e){let t={};return void 0!==e.creationHeight&&(t.creationHeight=e.creationHeight),void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),void 0!==e.initialBalance&&(t.initialBalance=e.initialBalance),void 0!==e.balance&&(t.balance=e.balance),t},fromPartial(e){var t,r,i,n;let o=M();return o.creationHeight=null!=(t=e.creationHeight)?t:"0",o.completionTime=null!=(r=e.completionTime)?r:void 0,o.initialBalance=null!=(i=e.initialBalance)?i:"",o.balance=null!=(n=e.balance)?n:"",o}},r.RedelegationEntry={encode:(e,t=s.default.Writer.create())=>("0"!==e.creationHeight&&t.uint32(8).int64(e.creationHeight),void 0!==e.completionTime&&l.Timestamp.encode(j(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 r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=T();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.creationHeight=L(r.int64());break;case 2:n.completionTime=R(l.Timestamp.decode(r,r.uint32()));break;case 3:n.initialBalance=r.string();break;case 4:n.sharesDst=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({creationHeight:B(e.creationHeight)?String(e.creationHeight):"0",completionTime:B(e.completionTime)?z(e.completionTime):void 0,initialBalance:B(e.initialBalance)?String(e.initialBalance):"",sharesDst:B(e.sharesDst)?String(e.sharesDst):""}),toJSON(e){let t={};return void 0!==e.creationHeight&&(t.creationHeight=e.creationHeight),void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),void 0!==e.initialBalance&&(t.initialBalance=e.initialBalance),void 0!==e.sharesDst&&(t.sharesDst=e.sharesDst),t},fromPartial(e){var t,r,i,n;let o=T();return o.creationHeight=null!=(t=e.creationHeight)?t:"0",o.completionTime=null!=(r=e.completionTime)?r:void 0,o.initialBalance=null!=(i=e.initialBalance)?i:"",o.sharesDst=null!=(n=e.sharesDst)?n:"",o}},r.Redelegation={encode(e,t=s.default.Writer.create()){for(let i of(""!==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.entries))r.RedelegationEntry.encode(i,t.uint32(34).fork()).ldelim();return t},decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=N();for(;i.pos<n;){let e=i.uint32();switch(e>>>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(r.RedelegationEntry.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return o},fromJSON:e=>({delegatorAddress:B(e.delegatorAddress)?String(e.delegatorAddress):"",validatorSrcAddress:B(e.validatorSrcAddress)?String(e.validatorSrcAddress):"",validatorDstAddress:B(e.validatorDstAddress)?String(e.validatorDstAddress):"",entries:Array.isArray(null==e?void 0:e.entries)?e.entries.map(e=>r.RedelegationEntry.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(t.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(t.validatorDstAddress=e.validatorDstAddress),e.entries?t.entries=e.entries.map(e=>e?r.RedelegationEntry.toJSON(e):void 0):t.entries=[],t},fromPartial(e){var t,i,n,o;let a=N();return a.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",a.validatorSrcAddress=null!=(i=e.validatorSrcAddress)?i:"",a.validatorDstAddress=null!=(n=e.validatorDstAddress)?n:"",a.entries=(null==(o=e.entries)?void 0:o.map(e=>r.RedelegationEntry.fromPartial(e)))||[],a}},r.Params={encode:(e,t=s.default.Writer.create())=>(void 0!==e.unbondingTime&&u.Duration.encode(e.unbondingTime,t.uint32(10).fork()).ldelim(),0!==e.maxValidators&&t.uint32(16).uint32(e.maxValidators),0!==e.maxEntries&&t.uint32(24).uint32(e.maxEntries),0!==e.historicalEntries&&t.uint32(32).uint32(e.historicalEntries),""!==e.bondDenom&&t.uint32(42).string(e.bondDenom),t),decode(e,t){let r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=_();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.unbondingTime=u.Duration.decode(r,r.uint32());break;case 2:n.maxValidators=r.uint32();break;case 3:n.maxEntries=r.uint32();break;case 4:n.historicalEntries=r.uint32();break;case 5:n.bondDenom=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({unbondingTime:B(e.unbondingTime)?u.Duration.fromJSON(e.unbondingTime):void 0,maxValidators:B(e.maxValidators)?Number(e.maxValidators):0,maxEntries:B(e.maxEntries)?Number(e.maxEntries):0,historicalEntries:B(e.historicalEntries)?Number(e.historicalEntries):0,bondDenom:B(e.bondDenom)?String(e.bondDenom):""}),toJSON(e){let t={};return void 0!==e.unbondingTime&&(t.unbondingTime=e.unbondingTime?u.Duration.toJSON(e.unbondingTime):void 0),void 0!==e.maxValidators&&(t.maxValidators=Math.round(e.maxValidators)),void 0!==e.maxEntries&&(t.maxEntries=Math.round(e.maxEntries)),void 0!==e.historicalEntries&&(t.historicalEntries=Math.round(e.historicalEntries)),void 0!==e.bondDenom&&(t.bondDenom=e.bondDenom),t},fromPartial(e){var t,r,i,n;let o=_();return o.unbondingTime=void 0!==e.unbondingTime&&null!==e.unbondingTime?u.Duration.fromPartial(e.unbondingTime):void 0,o.maxValidators=null!=(t=e.maxValidators)?t:0,o.maxEntries=null!=(r=e.maxEntries)?r:0,o.historicalEntries=null!=(i=e.historicalEntries)?i:0,o.bondDenom=null!=(n=e.bondDenom)?n:"",o}},r.DelegationResponse={encode:(e,t=s.default.Writer.create())=>(void 0!==e.delegation&&r.Delegation.encode(e.delegation,t.uint32(10).fork()).ldelim(),void 0!==e.balance&&h.Coin.encode(e.balance,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=C();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.delegation=r.Delegation.decode(i,i.uint32());break;case 2:o.balance=h.Coin.decode(i,i.uint32());break;default:i.skipType(7&e)}}return o},fromJSON:e=>({delegation:B(e.delegation)?r.Delegation.fromJSON(e.delegation):void 0,balance:B(e.balance)?h.Coin.fromJSON(e.balance):void 0}),toJSON(e){let t={};return void 0!==e.delegation&&(t.delegation=e.delegation?r.Delegation.toJSON(e.delegation):void 0),void 0!==e.balance&&(t.balance=e.balance?h.Coin.toJSON(e.balance):void 0),t},fromPartial(e){let t=C();return t.delegation=void 0!==e.delegation&&null!==e.delegation?r.Delegation.fromPartial(e.delegation):void 0,t.balance=void 0!==e.balance&&null!==e.balance?h.Coin.fromPartial(e.balance):void 0,t}},r.RedelegationEntryResponse={encode:(e,t=s.default.Writer.create())=>(void 0!==e.redelegationEntry&&r.RedelegationEntry.encode(e.redelegationEntry,t.uint32(10).fork()).ldelim(),""!==e.balance&&t.uint32(34).string(e.balance),t),decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=O();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.redelegationEntry=r.RedelegationEntry.decode(i,i.uint32());break;case 4:o.balance=i.string();break;default:i.skipType(7&e)}}return o},fromJSON:e=>({redelegationEntry:B(e.redelegationEntry)?r.RedelegationEntry.fromJSON(e.redelegationEntry):void 0,balance:B(e.balance)?String(e.balance):""}),toJSON(e){let t={};return void 0!==e.redelegationEntry&&(t.redelegationEntry=e.redelegationEntry?r.RedelegationEntry.toJSON(e.redelegationEntry):void 0),void 0!==e.balance&&(t.balance=e.balance),t},fromPartial(e){var t;let i=O();return i.redelegationEntry=void 0!==e.redelegationEntry&&null!==e.redelegationEntry?r.RedelegationEntry.fromPartial(e.redelegationEntry):void 0,i.balance=null!=(t=e.balance)?t:"",i}},r.RedelegationResponse={encode(e,t=s.default.Writer.create()){for(let i of(void 0!==e.redelegation&&r.Redelegation.encode(e.redelegation,t.uint32(10).fork()).ldelim(),e.entries))r.RedelegationEntryResponse.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=P();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.redelegation=r.Redelegation.decode(i,i.uint32());break;
1case 2:o.entries.push(r.RedelegationEntryResponse.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return o},fromJSON:e=>({redelegation:B(e.redelegation)?r.Redelegation.fromJSON(e.redelegation):void 0,entries:Array.isArray(null==e?void 0:e.entries)?e.entries.map(e=>r.RedelegationEntryResponse.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.redelegation&&(t.redelegation=e.redelegation?r.Redelegation.toJSON(e.redelegation):void 0),e.entries?t.entries=e.entries.map(e=>e?r.RedelegationEntryResponse.toJSON(e):void 0):t.entries=[],t},fromPartial(e){var t;let i=P();return i.redelegation=void 0!==e.redelegation&&null!==e.redelegation?r.Redelegation.fromPartial(e.redelegation):void 0,i.entries=(null==(t=e.entries)?void 0:t.map(e=>r.RedelegationEntryResponse.fromPartial(e)))||[],i}},r.Pool={encode:(e,t=s.default.Writer.create())=>(""!==e.notBondedTokens&&t.uint32(10).string(e.notBondedTokens),""!==e.bondedTokens&&t.uint32(18).string(e.bondedTokens),t),decode(e,t){let r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=D();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.notBondedTokens=r.string();break;case 2:n.bondedTokens=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({notBondedTokens:B(e.notBondedTokens)?String(e.notBondedTokens):"",bondedTokens:B(e.bondedTokens)?String(e.bondedTokens):""}),toJSON(e){let t={};return void 0!==e.notBondedTokens&&(t.notBondedTokens=e.notBondedTokens),void 0!==e.bondedTokens&&(t.bondedTokens=e.bondedTokens),t},fromPartial(e){var t,r;let i=D();return i.notBondedTokens=null!=(t=e.notBondedTokens)?t:"",i.bondedTokens=null!=(r=e.bondedTokens)?r:"",i}},s.default.util.Long!==a.default&&(s.default.util.Long=a.default,s.default.configure())},921677,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.MsgUndelegateResponse=r.MsgUndelegate=r.MsgBeginRedelegateResponse=r.MsgBeginRedelegate=r.MsgDelegateResponse=r.MsgDelegate=r.MsgEditValidatorResponse=r.MsgEditValidator=r.MsgCreateValidatorResponse=r.MsgCreateValidator=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(982022),s=e.r(820485),l=e.r(246324),c=e.r(50701);function d(){return{description:void 0,commission:void 0,minSelfDelegation:"",delegatorAddress:"",validatorAddress:"",pubkey:void 0,value:void 0}}function u(){return{description:void 0,validatorAddress:"",commissionRate:"",minSelfDelegation:""}}function h(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}function p(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",amount:void 0}}function f(){return{completionTime:void 0}}function g(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}function m(){return{completionTime:void 0}}function y(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function b(e){let t=1e3*Number(e.seconds);return new Date(t+=e.nanos/1e6)}function v(e){return e instanceof Date?e:"string"==typeof e?new Date(e):b(a.Timestamp.fromJSON(e))}function w(e){return null!=e}r.protobufPackage="cosmos.staking.v1beta1",r.MsgCreateValidator={encode:(e,t=o.default.Writer.create())=>(void 0!==e.description&&s.Description.encode(e.description,t.uint32(10).fork()).ldelim(),void 0!==e.commission&&s.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),void 0!==e.pubkey&&l.Any.encode(e.pubkey,t.uint32(50).fork()).ldelim(),void 0!==e.value&&c.Coin.encode(e.value,t.uint32(58).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=d();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.description=s.Description.decode(r,r.uint32());break;case 2:n.commission=s.CommissionRates.decode(r,r.uint32());break;case 3:n.minSelfDelegation=r.string();break;case 4:n.delegatorAddress=r.string();break;case 5:n.validatorAddress=r.string();break;case 6:n.pubkey=l.Any.decode(r,r.uint32());break;case 7:n.value=c.Coin.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({description:w(e.description)?s.Description.fromJSON(e.description):void 0,commission:w(e.commission)?s.CommissionRates.fromJSON(e.commission):void 0,minSelfDelegation:w(e.minSelfDelegation)?String(e.minSelfDelegation):"",delegatorAddress:w(e.delegatorAddress)?String(e.delegatorAddress):"",validatorAddress:w(e.validatorAddress)?String(e.validatorAddress):"",pubkey:w(e.pubkey)?l.Any.fromJSON(e.pubkey):void 0,value:w(e.value)?c.Coin.fromJSON(e.value):void 0}),toJSON(e){let t={};return void 0!==e.description&&(t.description=e.description?s.Description.toJSON(e.description):void 0),void 0!==e.commission&&(t.commission=e.commission?s.CommissionRates.toJSON(e.commission):void 0),void 0!==e.minSelfDelegation&&(t.minSelfDelegation=e.minSelfDelegation),void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.pubkey&&(t.pubkey=e.pubkey?l.Any.toJSON(e.pubkey):void 0),void 0!==e.value&&(t.value=e.value?c.Coin.toJSON(e.value):void 0),t},fromPartial(e){var t,r,i;let n=d();return n.description=void 0!==e.description&&null!==e.description?s.Description.fromPartial(e.description):void 0,n.commission=void 0!==e.commission&&null!==e.commission?s.CommissionRates.fromPartial(e.commission):void 0,n.minSelfDelegation=null!=(t=e.minSelfDelegation)?t:"",n.delegatorAddress=null!=(r=e.delegatorAddress)?r:"",n.validatorAddress=null!=(i=e.validatorAddress)?i:"",n.pubkey=void 0!==e.pubkey&&null!==e.pubkey?l.Any.fromPartial(e.pubkey):void 0,n.value=void 0!==e.value&&null!==e.value?c.Coin.fromPartial(e.value):void 0,n}},r.MsgCreateValidatorResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgEditValidator={encode:(e,t=o.default.Writer.create())=>(void 0!==e.description&&s.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 r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.description=s.Description.decode(r,r.uint32());break;case 2:n.validatorAddress=r.string();break;case 3:n.commissionRate=r.string();break;case 4:n.minSelfDelegation=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({description:w(e.description)?s.Description.fromJSON(e.description):void 0,validatorAddress:w(e.validatorAddress)?String(e.validatorAddress):"",commissionRate:w(e.commissionRate)?String(e.commissionRate):"",minSelfDelegation:w(e.minSelfDelegation)?String(e.minSelfDelegation):""}),toJSON(e){let t={};return void 0!==e.description&&(t.description=e.description?s.Description.toJSON(e.description):void 0),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.commissionRate&&(t.commissionRate=e.commissionRate),void 0!==e.minSelfDelegation&&(t.minSelfDelegation=e.minSelfDelegation),t},fromPartial(e){var t,r,i;let n=u();return n.description=void 0!==e.description&&null!==e.description?s.Description.fromPartial(e.description):void 0,n.validatorAddress=null!=(t=e.validatorAddress)?t:"",n.commissionRate=null!=(r=e.commissionRate)?r:"",n.minSelfDelegation=null!=(i=e.minSelfDelegation)?i:"",n}},r.MsgEditValidatorResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgDelegate={encode:(e,t=o.default.Writer.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),void 0!==e.amount&&c.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=h();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;case 3:n.amount=c.Coin.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({delegatorAddress:w(e.delegatorAddress)?String(e.delegatorAddress):"",validatorAddress:w(e.validatorAddress)?String(e.validatorAddress):"",amount:w(e.amount)?c.Coin.fromJSON(e.amount):void 0}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.amount&&(t.amount=e.amount?c.Coin.toJSON(e.amount):void 0),t},fromPartial(e){var t,r;let i=h();return i.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",i.validatorAddress=null!=(r=e.validatorAddress)?r:"",i.amount=void 0!==e.amount&&null!==e.amount?c.Coin.fromPartial(e.amount):void 0,i}},r.MsgDelegateResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgBeginRedelegate={encode:(e,t=o.default.Writer.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&t.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&t.uint32(26).string(e.validatorDstAddress),void 0!==e.amount&&c.Coin.encode(e.amount,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=p();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorSrcAddress=r.string();break;case 3:n.validatorDstAddress=r.string();break;case 4:n.amount=c.Coin.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({delegatorAddress:w(e.delegatorAddress)?String(e.delegatorAddress):"",validatorSrcAddress:w(e.validatorSrcAddress)?String(e.validatorSrcAddress):"",validatorDstAddress:w(e.validatorDstAddress)?String(e.validatorDstAddress):"",amount:w(e.amount)?c.Coin.fromJSON(e.amount):void 0}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(t.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(t.validatorDstAddress=e.validatorDstAddress),void 0!==e.amount&&(t.amount=e.amount?c.Coin.toJSON(e.amount):void 0),t},fromPartial(e){var t,r,i;let n=p();return n.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",n.validatorSrcAddress=null!=(r=e.validatorSrcAddress)?r:"",n.validatorDstAddress=null!=(i=e.validatorDstAddress)?i:"",n.amount=void 0!==e.amount&&null!==e.amount?c.Coin.fromPartial(e.amount):void 0,n}},r.MsgBeginRedelegateResponse={encode:(e,t=o.default.Writer.create())=>(void 0!==e.completionTime&&a.Timestamp.encode(y(e.completionTime),t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=f();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.completionTime=b(a.Timestamp.decode(r,r.uint32())):r.skipType(7&e)}return n},fromJSON:e=>({completionTime:w(e.completionTime)?v(e.completionTime):void 0}),toJSON(e){let t={};return void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),t},fromPartial(e){var t;let r=f();return r.completionTime=null!=(t=e.completionTime)?t:void 0,r}},r.MsgUndelegate={encode:(e,t=o.default.Writer.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),void 0!==e.amount&&c.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=g();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;case 3:n.amount=c.Coin.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({delegatorAddress:w(e.delegatorAddress)?String(e.delegatorAddress):"",validatorAddress:w(e.validatorAddress)?String(e.validatorAddress):"",amount:w(e.amount)?c.Coin.fromJSON(e.amount):void 0}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.amount&&(t.amount=e.amount?c.Coin.toJSON(e.amount):void 0),t},fromPartial(e){var t,r;let i=g();return i.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",i.validatorAddress=null!=(r=e.validatorAddress)?r:"",i.amount=void 0!==e.amount&&null!==e.amount?c.Coin.fromPartial(e.amount):void 0,i}},r.MsgUndelegateResponse={encode:(e,t=o.default.Writer.create())=>(void 0!==e.completionTime&&a.Timestamp.encode(y(e.completionTime),t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=m();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.completionTime=b(a.Timestamp.decode(r,r.uint32())):r.skipType(7&e)}return n},fromJSON:e=>({completionTime:w(e.completionTime)?v(e.completionTime):void 0}),toJSON(e){let t={};return void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),t},fromPartial(e){var t;let r=m();return r.completionTime=null!=(t=e.completionTime)?t:void 0,r}},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},256684,(e,t,r)=>{"use strict";
1var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Grant=r.GenericAuthorization=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(982022),s=e.r(246324);function l(){return{authorization:void 0,expiration:void 0}}function c(e){let t=1e3*Number(e.seconds);return new Date(t+=e.nanos/1e6)}r.protobufPackage="cosmos.authz.v1beta1",r.GenericAuthorization={encode:(e,t=o.default.Writer.create())=>(""!==e.msg&&t.uint32(10).string(e.msg),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n={msg:""};for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.msg=r.string():r.skipType(7&e)}return n},fromJSON:e=>({msg:null!=e.msg?String(e.msg):""}),toJSON(e){let t={};return void 0!==e.msg&&(t.msg=e.msg),t},fromPartial(e){var t;let r={msg:""};return r.msg=null!=(t=e.msg)?t:"",r}},r.Grant={encode:(e,t=o.default.Writer.create())=>{var r;return void 0!==e.authorization&&s.Any.encode(e.authorization,t.uint32(10).fork()).ldelim(),void 0!==e.expiration&&a.Timestamp.encode({seconds:Math.trunc((r=e.expiration).getTime()/1e3).toString(),nanos:r.getTime()%1e3*1e6},t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.authorization=s.Any.decode(r,r.uint32());break;case 2:n.expiration=c(a.Timestamp.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>{var t;return{authorization:null!=e.authorization?s.Any.fromJSON(e.authorization):void 0,expiration:null!=e.expiration?(t=e.expiration)instanceof Date?t:"string"==typeof t?new Date(t):c(a.Timestamp.fromJSON(t)):void 0}},toJSON(e){let t={};return void 0!==e.authorization&&(t.authorization=e.authorization?s.Any.toJSON(e.authorization):void 0),void 0!==e.expiration&&(t.expiration=e.expiration.toISOString()),t},fromPartial(e){var t;let r=l();return r.authorization=void 0!==e.authorization&&null!==e.authorization?s.Any.fromPartial(e.authorization):void 0,r.expiration=null!=(t=e.expiration)?t:void 0,r}};o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},458583,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.MsgRevokeResponse=r.MsgRevoke=r.MsgGrantResponse=r.MsgExec=r.MsgExecResponse=r.MsgGrant=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(256684),s=e.r(246324);function l(){return{granter:"",grantee:"",grant:void 0}}function c(){return{results:[]}}function d(){return{grantee:"",msgs:[]}}function u(){return{granter:"",grantee:"",msgTypeUrl:""}}r.protobufPackage="cosmos.authz.v1beta1",r.MsgGrant={encode:(e,t=o.default.Writer.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.grant&&a.Grant.encode(e.grant,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;case 3:n.grant=a.Grant.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({granter:g(e.granter)?String(e.granter):"",grantee:g(e.grantee)?String(e.grantee):"",grant:g(e.grant)?a.Grant.fromJSON(e.grant):void 0}),toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.grant&&(t.grant=e.grant?a.Grant.toJSON(e.grant):void 0),t},fromPartial(e){var t,r;let i=l();return i.granter=null!=(t=e.granter)?t:"",i.grantee=null!=(r=e.grantee)?r:"",i.grant=void 0!==e.grant&&null!==e.grant?a.Grant.fromPartial(e.grant):void 0,i}},r.MsgExecResponse={encode(e,t=o.default.Writer.create()){for(let r of e.results)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=c();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.results.push(r.bytes()):r.skipType(7&e)}return n},fromJSON:e=>({results:Array.isArray(null==e?void 0:e.results)?e.results.map(e=>(function(e){let t=p(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r})(e)):[]}),toJSON(e){let t={};return e.results?t.results=e.results.map(e=>(function(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return f(t.join(""))})(void 0!==e?e:new Uint8Array)):t.results=[],t},fromPartial(e){var t;let r=c();return r.results=(null==(t=e.results)?void 0:t.map(e=>e))||[],r}},r.MsgExec={encode(e,t=o.default.Writer.create()){for(let r of(""!==e.grantee&&t.uint32(10).string(e.grantee),e.msgs))s.Any.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=d();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.grantee=r.string();break;case 2:n.msgs.push(s.Any.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({grantee:g(e.grantee)?String(e.grantee):"",msgs:Array.isArray(null==e?void 0:e.msgs)?e.msgs.map(e=>s.Any.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.grantee&&(t.grantee=e.grantee),e.msgs?t.msgs=e.msgs.map(e=>e?s.Any.toJSON(e):void 0):t.msgs=[],t},fromPartial(e){var t,r;let i=d();return i.grantee=null!=(t=e.grantee)?t:"",i.msgs=(null==(r=e.msgs)?void 0:r.map(e=>s.Any.fromPartial(e)))||[],i}},r.MsgGrantResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgRevoke={encode:(e,t=o.default.Writer.create())=>(""!==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 r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.granter=r.string();break;case 2:n.grantee=r.string();break;case 3:n.msgTypeUrl=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({granter:g(e.granter)?String(e.granter):"",grantee:g(e.grantee)?String(e.grantee):"",msgTypeUrl:g(e.msgTypeUrl)?String(e.msgTypeUrl):""}),toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.msgTypeUrl&&(t.msgTypeUrl=e.msgTypeUrl),t},fromPartial(e){var t,r,i;let n=u();return n.granter=null!=(t=e.granter)?t:"",n.grantee=null!=(r=e.grantee)?r:"",n.msgTypeUrl=null!=(i=e.msgTypeUrl)?i:"",n}},r.MsgRevokeResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})};var h=void 0!==h?h:"u">typeof self?self:"u">typeof window?window:e.g;let p=h.atob||(e=>h.Buffer.from(e,"base64").toString("binary")),f=h.btoa||(e=>h.Buffer.from(e,"binary").toString("base64"));function g(e){return null!=e}o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},481037,(e,t,r)=>{"use strict";var i,n,o,a,s=e.e&&e.e.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.TallyParams=r.VotingParams=r.DepositParams=r.Vote=r.TallyResult=r.Proposal=r.Deposit=r.TextProposal=r.WeightedVoteOption=r.proposalStatusToJSON=r.proposalStatusFromJSON=r.ProposalStatus=r.voteOptionToJSON=r.voteOptionFromJSON=r.VoteOption=r.protobufPackage=void 0;let l=s(e.r(711385)),c=s(e.r(85884)),d=e.r(982022),u=e.r(50701),h=e.r(246324),p=e.r(983150);function f(e){switch(e){case 0:case"VOTE_OPTION_UNSPECIFIED":return o.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return o.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return o.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return o.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return o.VOTE_OPTION_NO_WITH_VETO;default:return o.UNRECOGNIZED}}function g(e){switch(e){case o.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case o.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case o.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case o.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case o.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";default:return"UNKNOWN"}}function m(e){switch(e){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return a.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return a.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return a.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return a.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return a.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return a.PROPOSAL_STATUS_FAILED;default:return a.UNRECOGNIZED}}function y(e){switch(e){case a.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case a.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case a.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case a.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case a.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case a.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";default:return"UNKNOWN"}}function b(){return{option:0,weight:""}}function v(){return{title:"",description:""}}function w(){return{proposalId:"0",depositor:"",amount:[]}}function x(){return{proposalId:"0",content:void 0,status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0}}function S(){return{yes:"",abstain:"",no:"",noWithVeto:""}}function A(){return{proposalId:"0",voter:"",option:0,options:[]}}function k(){return{minDeposit:[],maxDepositPeriod:void 0}}function E(){return{votingPeriod:void 0}}function I(){return{quorum:new Uint8Array,threshold:new Uint8Array,vetoThreshold:new Uint8Array}}r.protobufPackage="cosmos.gov.v1beta1",(i=o=r.VoteOption||(r.VoteOption={}))[i.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",i[i.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",i[i.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",i[i.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",i[i.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED",r.voteOptionFromJSON=f,r.voteOptionToJSON=g,(n=a=r.ProposalStatus||(r.ProposalStatus={}))[n.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",n[n.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",n[n.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",n[n.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",n[n.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",n[n.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",n[n.UNRECOGNIZED=-1]="UNRECOGNIZED",r.proposalStatusFromJSON=m,r.proposalStatusToJSON=y,r.WeightedVoteOption={encode:(e,t=c.default.Writer.create())=>(0!==e.option&&t.uint32(8).int32(e.option),""!==e.weight&&t.uint32(18).string(e.weight),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=b();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.option=r.int32();break;case 2:n.weight=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({option:R(e.option)?f(e.option):0,weight:R(e.weight)?String(e.weight):""}),toJSON(e){let t={};return void 0!==e.option&&(t.option=g(e.option)),void 0!==e.weight&&(t.weight=e.weight),t},fromPartial(e){var t,r;let i=b();return i.option=null!=(t=e.option)?t:0,i.weight=null!=(r=e.weight)?r:"",i}},r.TextProposal={encode:(e,t=c.default.Writer.create())=>(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=v();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({title:R(e.title)?String(e.title):"",description:R(e.description)?String(e.description):""}),toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial(e){var t,r;let i=v();return i.title=null!=(t=e.title)?t:"",i.description=null!=(r=e.description)?r:"",i}},r.Deposit={encode(e,t=c.default.Writer.create()){for(let r of("0"!==e.proposalId&&t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor),e.amount))u.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=w();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.proposalId=j(r.uint64());break;case 2:n.depositor=r.string();break;case 3:n.amount.push(u.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({proposalId:R(e.proposalId)?String(e.proposalId):"0",depositor:R(e.depositor)?String(e.depositor):"",amount:Array.isArray(null==e?void 0:e.amount)?e.amount.map(e=>u.Coin.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=e.proposalId),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(e=>e?u.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){var t,r,i;let n=w();return n.proposalId=null!=(t=e.proposalId)?t:"0",n.depositor=null!=(r=e.depositor)?r:"",n.amount=(null==(i=e.amount)?void 0:i.map(e=>u.Coin.fromPartial(e)))||[],n}},r.Proposal={encode(e,t=c.default.Writer.create()){for(let i of("0"!==e.proposalId&&t.uint32(8).uint64(e.proposalId),void 0!==e.content&&h.Any.encode(e.content,t.uint32(18).fork()).ldelim(),0!==e.status&&t.uint32(24).int32(e.status),void 0!==e.finalTallyResult&&r.TallyResult.encode(e.finalTallyResult,t.uint32(34).fork()).ldelim(),void 0!==e.submitTime&&d.Timestamp.encode(O(e.submitTime),t.uint32(42).fork()).ldelim(),void 0!==e.depositEndTime&&d.Timestamp.encode(O(e.depositEndTime),t.uint32(50).fork()).ldelim(),e.totalDeposit))u.Coin.encode(i,t.uint32(58).fork()).ldelim();return void 0!==e.votingStartTime&&d.Timestamp.encode(O(e.votingStartTime),t.uint32(66).fork()).ldelim(),void 0!==e.votingEndTime&&d.Timestamp.encode(O(e.votingEndTime),t.uint32(74).fork()).ldelim(),t},decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=x();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.proposalId=j(i.uint64());break;case 2:o.content=h.Any.decode(i,i.uint32());break;case 3:o.status=i.int32();break;case 4:o.finalTallyResult=r.TallyResult.decode(i,i.uint32());break;case 5:o.submitTime=P(d.Timestamp.decode(i,i.uint32()));break;case 6:o.depositEndTime=P(d.Timestamp.decode(i,i.uint32()));break;case 7:o.totalDeposit.push(u.Coin.decode(i,i.uint32()));break;case 8:o.votingStartTime=P(d.Timestamp.decode(i,i.uint32()));break;case 9:o.votingEndTime=P(d.Timestamp.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return o},fromJSON:e=>({proposalId:R(e.proposalId)?String(e.proposalId):"0",content:R(e.content)?h.Any.fromJSON(e.content):void 0,status:R(e.status)?m(e.status):0,finalTallyResult:R(e.finalTallyResult)?r.TallyResult.fromJSON(e.finalTallyResult):void 0,submitTime:R(e.submitTime)?D(e.submitTime):void 0,depositEndTime:R(e.depositEndTime)?D(e.depositEndTime):void 0,totalDeposit:Array.isArray(null==e?void 0:e.totalDeposit)?e.totalDeposit.map(e=>u.Coin.fromJSON(e)):[],votingStartTime:R(e.votingStartTime)?D(e.votingStartTime):void 0,votingEndTime:R(e.votingEndTime)?D(e.votingEndTime):void 0}),toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=e.proposalId),void 0!==e.content&&(t.content=e.content?h.Any.toJSON(e.content):void 0),void 0!==e.status&&(t.status=y(e.status)),void 0!==e.finalTallyResult&&(t.finalTallyResult=e.finalTallyResult?r.TallyResult.toJSON(e.finalTallyResult):void 0),void 0!==e.submitTime&&(t.submitTime=e.submitTime.toISOString()),void 0!==e.depositEndTime&&(t.depositEndTime=e.depositEndTime.toISOString()),e.totalDeposit?t.totalDeposit=e.totalDeposit.map(e=>e?u.Coin.toJSON(e):void 0):t.totalDeposit=[],void 0!==e.votingStartTime&&(t.votingStartTime=e.votingStartTime.toISOString()),void 0!==e.votingEndTime&&(t.votingEndTime=e.votingEndTime.toISOString()),t},fromPartial(e){var t,i,n,o,a,s,l;let c=x();return c.proposalId=null!=(t=e.proposalId)?t:"0",c.content=void 0!==e.content&&null!==e.content?h.Any.fromPartial(e.content):void 0,c.status=null!=(i=e.status)?i:0,c.finalTallyResult=void 0!==e.finalTallyResult&&null!==e.finalTallyResult?r.TallyResult.fromPartial(e.finalTallyResult):void 0,c.submitTime=null!=(n=e.submitTime)?n:void 0,c.depositEndTime=null!=(o=e.depositEndTime)?o:void 0,c.totalDeposit=(null==(a=e.totalDeposit)?void 0:a.map(e=>u.Coin.fromPartial(e)))||[],c.votingStartTime=null!=(s=e.votingStartTime)?s:void 0,c.votingEndTime=null!=(l=e.votingEndTime)?l:void 0,c}},r.TallyResult={encode:(e,t=c.default.Writer.create())=>(""!==e.yes&&t.uint32(10).string(e.yes),""!==e.abstain&&t.uint32(18).string(e.abstain),""!==e.n
1o&&t.uint32(26).string(e.no),""!==e.noWithVeto&&t.uint32(34).string(e.noWithVeto),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=S();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.yes=r.string();break;case 2:n.abstain=r.string();break;case 3:n.no=r.string();break;case 4:n.noWithVeto=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({yes:R(e.yes)?String(e.yes):"",abstain:R(e.abstain)?String(e.abstain):"",no:R(e.no)?String(e.no):"",noWithVeto:R(e.noWithVeto)?String(e.noWithVeto):""}),toJSON(e){let t={};return void 0!==e.yes&&(t.yes=e.yes),void 0!==e.abstain&&(t.abstain=e.abstain),void 0!==e.no&&(t.no=e.no),void 0!==e.noWithVeto&&(t.noWithVeto=e.noWithVeto),t},fromPartial(e){var t,r,i,n;let o=S();return o.yes=null!=(t=e.yes)?t:"",o.abstain=null!=(r=e.abstain)?r:"",o.no=null!=(i=e.no)?i:"",o.noWithVeto=null!=(n=e.noWithVeto)?n:"",o}},r.Vote={encode(e,t=c.default.Writer.create()){for(let i of("0"!==e.proposalId&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),0!==e.option&&t.uint32(24).int32(e.option),e.options))r.WeightedVoteOption.encode(i,t.uint32(34).fork()).ldelim();return t},decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=A();for(;i.pos<n;){let e=i.uint32();switch(e>>>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(r.WeightedVoteOption.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return o},fromJSON:e=>({proposalId:R(e.proposalId)?String(e.proposalId):"0",voter:R(e.voter)?String(e.voter):"",option:R(e.option)?f(e.option):0,options:Array.isArray(null==e?void 0:e.options)?e.options.map(e=>r.WeightedVoteOption.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=e.proposalId),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.option&&(t.option=g(e.option)),e.options?t.options=e.options.map(e=>e?r.WeightedVoteOption.toJSON(e):void 0):t.options=[],t},fromPartial(e){var t,i,n,o;let a=A();return a.proposalId=null!=(t=e.proposalId)?t:"0",a.voter=null!=(i=e.voter)?i:"",a.option=null!=(n=e.option)?n:0,a.options=(null==(o=e.options)?void 0:o.map(e=>r.WeightedVoteOption.fromPartial(e)))||[],a}},r.DepositParams={encode(e,t=c.default.Writer.create()){for(let r of e.minDeposit)u.Coin.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.maxDepositPeriod&&p.Duration.encode(e.maxDepositPeriod,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=k();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.minDeposit.push(u.Coin.decode(r,r.uint32()));break;case 2:n.maxDepositPeriod=p.Duration.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({minDeposit:Array.isArray(null==e?void 0:e.minDeposit)?e.minDeposit.map(e=>u.Coin.fromJSON(e)):[],maxDepositPeriod:R(e.maxDepositPeriod)?p.Duration.fromJSON(e.maxDepositPeriod):void 0}),toJSON(e){let t={};return e.minDeposit?t.minDeposit=e.minDeposit.map(e=>e?u.Coin.toJSON(e):void 0):t.minDeposit=[],void 0!==e.maxDepositPeriod&&(t.maxDepositPeriod=e.maxDepositPeriod?p.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial(e){var t;let r=k();return r.minDeposit=(null==(t=e.minDeposit)?void 0:t.map(e=>u.Coin.fromPartial(e)))||[],r.maxDepositPeriod=void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod?p.Duration.fromPartial(e.maxDepositPeriod):void 0,r}},r.VotingParams={encode:(e,t=c.default.Writer.create())=>(void 0!==e.votingPeriod&&p.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=E();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.votingPeriod=p.Duration.decode(r,r.uint32()):r.skipType(7&e)}return n},fromJSON:e=>({votingPeriod:R(e.votingPeriod)?p.Duration.fromJSON(e.votingPeriod):void 0}),toJSON(e){let t={};return void 0!==e.votingPeriod&&(t.votingPeriod=e.votingPeriod?p.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial(e){let t=E();return t.votingPeriod=void 0!==e.votingPeriod&&null!==e.votingPeriod?p.Duration.fromPartial(e.votingPeriod):void 0,t}},r.TallyParams={encode:(e,t=c.default.Writer.create())=>(0!==e.quorum.length&&t.uint32(10).bytes(e.quorum),0!==e.threshold.length&&t.uint32(18).bytes(e.threshold),0!==e.vetoThreshold.length&&t.uint32(26).bytes(e.vetoThreshold),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=I();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.quorum=r.bytes();break;case 2:n.threshold=r.bytes();break;case 3:n.vetoThreshold=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({quorum:R(e.quorum)?N(e.quorum):new Uint8Array,threshold:R(e.threshold)?N(e.threshold):new Uint8Array,vetoThreshold:R(e.vetoThreshold)?N(e.vetoThreshold):new Uint8Array}),toJSON(e){let t={};return void 0!==e.quorum&&(t.quorum=C(void 0!==e.quorum?e.quorum:new Uint8Array)),void 0!==e.threshold&&(t.threshold=C(void 0!==e.threshold?e.threshold:new Uint8Array)),void 0!==e.vetoThreshold&&(t.vetoThreshold=C(void 0!==e.vetoThreshold?e.vetoThreshold:new Uint8Array)),t},fromPartial(e){var t,r,i;let n=I();return n.quorum=null!=(t=e.quorum)?t:new Uint8Array,n.threshold=null!=(r=e.threshold)?r:new Uint8Array,n.vetoThreshold=null!=(i=e.vetoThreshold)?i:new Uint8Array,n}};var M=void 0!==M?M:"u">typeof self?self:"u">typeof window?window:e.g;let T=M.atob||(e=>M.Buffer.from(e,"base64").toString("binary"));function N(e){let t=T(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}let _=M.btoa||(e=>M.Buffer.from(e,"binary").toString("base64"));function C(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return _(t.join(""))}function O(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function P(e){let t=1e3*Number(e.seconds);return new Date(t+=e.nanos/1e6)}function D(e){return e instanceof Date?e:"string"==typeof e?new Date(e):P(d.Timestamp.fromJSON(e))}function j(e){return e.toString()}function R(e){return null!=e}c.default.util.Long!==l.default&&(c.default.util.Long=l.default,c.default.configure())},21021,(e,t,r)=>{"use strict";
1var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.MsgDepositResponse=r.MsgDeposit=r.MsgVoteWeightedResponse=r.MsgVoteWeighted=r.MsgVoteResponse=r.MsgVote=r.MsgSubmitProposalResponse=r.MsgSubmitProposal=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(481037),s=e.r(246324),l=e.r(50701);function c(){return{content:void 0,initialDeposit:[],proposer:""}}function d(){return{proposalId:"0"}}function u(){return{proposalId:"0",voter:"",option:0}}function h(){return{proposalId:"0",voter:"",options:[]}}function p(){return{proposalId:"0",depositor:"",amount:[]}}function f(e){return e.toString()}function g(e){return null!=e}r.protobufPackage="cosmos.gov.v1beta1",r.MsgSubmitProposal={encode(e,t=o.default.Writer.create()){for(let r of(void 0!==e.content&&s.Any.encode(e.content,t.uint32(10).fork()).ldelim(),e.initialDeposit))l.Coin.encode(r,t.uint32(18).fork()).ldelim();return""!==e.proposer&&t.uint32(26).string(e.proposer),t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=c();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.content=s.Any.decode(r,r.uint32());break;case 2:n.initialDeposit.push(l.Coin.decode(r,r.uint32()));break;case 3:n.proposer=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({content:g(e.content)?s.Any.fromJSON(e.content):void 0,initialDeposit:Array.isArray(null==e?void 0:e.initialDeposit)?e.initialDeposit.map(e=>l.Coin.fromJSON(e)):[],proposer:g(e.proposer)?String(e.proposer):""}),toJSON(e){let t={};return void 0!==e.content&&(t.content=e.content?s.Any.toJSON(e.content):void 0),e.initialDeposit?t.initialDeposit=e.initialDeposit.map(e=>e?l.Coin.toJSON(e):void 0):t.initialDeposit=[],void 0!==e.proposer&&(t.proposer=e.proposer),t},fromPartial(e){var t,r;let i=c();return i.content=void 0!==e.content&&null!==e.content?s.Any.fromPartial(e.content):void 0,i.initialDeposit=(null==(t=e.initialDeposit)?void 0:t.map(e=>l.Coin.fromPartial(e)))||[],i.proposer=null!=(r=e.proposer)?r:"",i}},r.MsgSubmitProposalResponse={encode:(e,t=o.default.Writer.create())=>("0"!==e.proposalId&&t.uint32(8).uint64(e.proposalId),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=d();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.proposalId=f(r.uint64()):r.skipType(7&e)}return n},fromJSON:e=>({proposalId:g(e.proposalId)?String(e.proposalId):"0"}),toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=e.proposalId),t},fromPartial(e){var t;let r=d();return r.proposalId=null!=(t=e.proposalId)?t:"0",r}},r.MsgVote={encode:(e,t=o.default.Writer.create())=>("0"!==e.proposalId&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),0!==e.option&&t.uint32(24).int32(e.option),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.proposalId=f(r.uint64());break;case 2:n.voter=r.string();break;case 3:n.option=r.int32();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({proposalId:g(e.proposalId)?String(e.proposalId):"0",voter:g(e.voter)?String(e.voter):"",option:g(e.option)?(0,a.voteOptionFromJSON)(e.option):0}),toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=e.proposalId),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.option&&(t.option=(0,a.voteOptionToJSON)(e.option)),t},fromPartial(e){var t,r,i;let n=u();return n.proposalId=null!=(t=e.proposalId)?t:"0",n.voter=null!=(r=e.voter)?r:"",n.option=null!=(i=e.option)?i:0,n}},r.MsgVoteResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgVoteWeighted={encode(e,t=o.default.Writer.create()){for(let r of("0"!==e.proposalId&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),e.options))a.WeightedVoteOption.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=h();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.proposalId=f(r.uint64());break;case 2:n.voter=r.string();break;case 3:n.options.push(a.WeightedVoteOption.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({proposalId:g(e.proposalId)?String(e.proposalId):"0",voter:g(e.voter)?String(e.voter):"",options:Array.isArray(null==e?void 0:e.options)?e.options.map(e=>a.WeightedVoteOption.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=e.proposalId),void 0!==e.voter&&(t.voter=e.voter),e.options?t.options=e.options.map(e=>e?a.WeightedVoteOption.toJSON(e):void 0):t.options=[],t},fromPartial(e){var t,r,i;let n=h();return n.proposalId=null!=(t=e.proposalId)?t:"0",n.voter=null!=(r=e.voter)?r:"",n.options=(null==(i=e.options)?void 0:i.map(e=>a.WeightedVoteOption.fromPartial(e)))||[],n}}
1,r.MsgVoteWeightedResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgDeposit={encode(e,t=o.default.Writer.create()){for(let r of("0"!==e.proposalId&&t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor),e.amount))l.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=p();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.proposalId=f(r.uint64());break;case 2:n.depositor=r.string();break;case 3:n.amount.push(l.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({proposalId:g(e.proposalId)?String(e.proposalId):"0",depositor:g(e.depositor)?String(e.depositor):"",amount:Array.isArray(null==e?void 0:e.amount)?e.amount.map(e=>l.Coin.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=e.proposalId),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(e=>e?l.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){var t,r,i;let n=p();return n.proposalId=null!=(t=e.proposalId)?t:"0",n.depositor=null!=(r=e.depositor)?r:"",n.amount=(null==(i=e.amount)?void 0:i.map(e=>l.Coin.fromPartial(e)))||[],n}},r.MsgDepositResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},15904,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.MsgFundCommunityPoolResponse=r.MsgFundCommunityPool=r.MsgWithdrawValidatorCommissionResponse=r.MsgWithdrawValidatorCommission=r.MsgWithdrawDelegatorRewardResponse=r.MsgWithdrawDelegatorReward=r.MsgSetWithdrawAddressResponse=r.MsgSetWithdrawAddress=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(50701);function s(){return{delegatorAddress:"",withdrawAddress:""}}function l(){return{delegatorAddress:"",validatorAddress:""}}function c(){return{validatorAddress:""}}function d(){return{amount:[],depositor:""}}function u(e){return null!=e}r.protobufPackage="cosmos.distribution.v1beta1",r.MsgSetWithdrawAddress={encode:(e,t=o.default.Writer.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.withdrawAddress&&t.uint32(18).string(e.withdrawAddress),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.withdrawAddress=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({delegatorAddress:u(e.delegatorAddress)?String(e.delegatorAddress):"",withdrawAddress:u(e.withdrawAddress)?String(e.withdrawAddress):""}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.withdrawAddress&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial(e){var t,r;let i=s();return i.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",i.withdrawAddress=null!=(r=e.withdrawAddress)?r:"",i}},r.MsgSetWithdrawAddressResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgWithdrawDelegatorReward={encode:(e,t=o.default.Writer.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.delegatorAddress=r.string();break;case 2:n.validatorAddress=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({delegatorAddress:u(e.delegatorAddress)?String(e.delegatorAddress):"",validatorAddress:u(e.validatorAddress)?String(e.validatorAddress):""}),toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){var t,r;let i=l();return i.delegatorAddress=null!=(t=e.delegatorAddress)?t:"",i.validatorAddress=null!=(r=e.validatorAddress)?r:"",i}},r.MsgWithdrawDelegatorRewardResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgWithdrawValidatorCommission={encode:(e,t=o.default.Writer.create())=>(""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=c();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.validatorAddress=r.string():r.skipType(7&e)}return n},fromJSON:e=>({validatorAddress:u(e.validatorAddress)?String(e.validatorAddress):""}),toJSON(e){let t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){var t;let r=c();return r.validatorAddress=null!=(t=e.validatorAddress)?t:"",r}},r.MsgWithdrawValidatorCommissionResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgFundCommunityPool={encode(e,t=o.default.Writer.create()){for(let r of e.amount)a.Coin.encode(r,t.uint32(10).fork()).ldelim();return""!==e.depositor&&t.uint32(18).string(e.depositor),t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=d();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.amount.push(a.Coin.decode(r,r.uint32()));break;case 2:n.depositor=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({amount:Array.isArray(null==e?void 0:e.amount)?e.amount.map(e=>a.Coin.fromJSON(e)):[],depositor:u(e.depositor)?String(e.depositor):""}),toJSON(e){let t={};return e.amount?t.amount=e.amount.map(e=>e?a.Coin.toJSON(e):void 0):t.amount=[],void 0!==e.depositor&&(t.depositor=e.depositor),t},fromPartial(e){var t,r;let i=d();return i.amount=(null==(t=e.amount)?void 0:t.map(e=>a.Coin.fromPartial(e)))||[],i.depositor=null!=(r=e.depositor)?r:"",i}},r.MsgFundCommunityPoolResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},654519,(e,t,r)=>{"use strict";var i,n,o,a,s=e.e&&e.e.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Model=r.AbsoluteTxPosition=r.ContractCodeHistoryEntry=r.ContractInfo=r.CodeInfo=r.Params=r.AccessConfig=r.AccessTypeParam=r.contractCodeHistoryOperationTypeToJSON=r.contractCodeHistoryOperationTypeFromJSON=r.ContractCodeHistoryOperationType=r.accessTypeToJSON=r.accessTypeFromJSON=r.AccessType=r.protobufPackage=void 0;let l=s(e.r(711385)),c=s(e.r(85884)),d=e.r(246324);function u(e){switch(e){case 0:case"ACCESS_TYPE_UNSPECIFIED":return o.ACCESS_TYPE_UNSPECIFIED;case 1:case"ACCESS_TYPE_NOBODY":return o.ACCESS_TYPE_NOBODY;case 2:case"ACCESS_TYPE_ONLY_ADDRESS":return o.ACCESS_TYPE_ONLY_ADDRESS;case 3:case"ACCESS_TYPE_EVERYBODY":return o.ACCESS_TYPE_EVERYBODY;default:return o.UNRECOGNIZED}}function h(e){switch(e){case o.ACCESS_TYPE_UNSPECIFIED:return"ACCESS_TYPE_UNSPECIFIED";case o.ACCESS_TYPE_NOBODY:return"ACCESS_TYPE_NOBODY";case o.ACCESS_TYPE_ONLY_ADDRESS:return"ACCESS_TYPE_ONLY_ADDRESS";case o.ACCESS_TYPE_EVERYBODY:return"ACCESS_TYPE_EVERYBODY";default:return"UNKNOWN"}}function p(e){switch(e){case 0:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED":return a.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED;case 1:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":return a.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT;case 2:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":return a.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE;case 3:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":return a.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS;default:return a.UNRECOGNIZED}}function f(e){switch(e){case a.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED";case a.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT";case a.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE";case a.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS";default:return"UNKNOWN"}}function g(){return{permission:0,address:""}}function m(){return{codeUploadAccess:void 0,instantiateDefaultPermission:0,maxWasmCodeSize:"0"}}function y(){return{codeHash:new Uint8Array,creator:"",instantiateConfig:void 0}}function b(){return{codeId:"0",creator:"",admin:"",label:"",created:void 0,ibcPortId:"",extension:void 0}}function v(){return{operation:0,codeId:"0",updated:void 0,msg:new Uint8Array}}function w(){return{blockHeight:"0",txIndex:"0"}}function x(){return{key:new Uint8Array,value:new Uint8Array}}r.protobufPackage="cosmwasm.wasm.v1",(i=o=r.AccessType||(r.AccessType={}))[i.ACCESS_TYPE_UNSPECIFIED=0]="ACCESS_TYPE_UNSPECIFIED",i[i.ACCESS_TYPE_NOBODY=1]="ACCESS_TYPE_NOBODY",i[i.ACCESS_TYPE_ONLY_ADDRESS=2]="ACCESS_TYPE_ONLY_ADDRESS",i[i.ACCESS_TYPE_EVERYBODY=3]="ACCESS_TYPE_EVERYBODY",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED",r.accessTypeFromJSON=u,r.accessTypeToJSON=h,(n=a=r.ContractCodeHistoryOperationType||(r.ContractCodeHistoryOperationType={}))[n.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",n[n.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",n[n.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",n[n.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",n[n.UNRECOGNIZED=-1]="UNRECOGNIZED",r.contractCodeHistoryOperationTypeFromJSON=p,r.contractCodeHistoryOperationTypeToJSON=f,r.AccessTypeParam={encode:(e,t=c.default.Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n={value:0};for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.value=r.int32():r.skipType(7&e)}return n},fromJSON:e=>({value:T(e.value)?u(e.value):0}),toJSON(e){let t={};return void 0!==e.value&&(t.value=h(e.value)),t},fromPartial(e){var t;let r={value:0};return r.value=null!=(t=e.value)?t:0,r}},r.AccessConfig={encode:(e,t=c.default.Writer.create())=>(0!==e.permission&&t.uint32(8).int32(e.permission),""!==e.address&&t.uint32(18).string(e.address),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=g();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.permission=r.int32();break;case 2:n.address=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({permission:T(e.permission)?u(e.permission):0,address:T(e.address)?String(e.address):""}),toJSON(e){let t={};return void 0!==e.permission&&(t.permission=h(e.permission)),void 0!==e.address&&(t.address=e.address),t},fromPartial(e){var t,r;let i=g();return i.permission=null!=(t=e.permission)?t:0,i.address=null!=(r=e.address)?r:"",i}},r.Params={encode:(e,t=c.default.Writer.create())=>(void 0!==e.codeUploadAccess&&r.AccessConfig.encode(e.codeUploadAccess,t.uint32(10).fork()).ldelim(),0!==e.instantiateDefaultPermission&&t.uint32(16).int32(e.instantiateDefaultPermission),"0"!==e.maxWasmCodeSize&&t.uint32(24).uint64(e.maxWasmCodeSize),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=m();for(;i.pos<n;){let e=i.uint32();switch(e>>>
13){case 1:o.codeUploadAccess=r.AccessConfig.decode(i,i.uint32());break;case 2:o.instantiateDefaultPermission=i.int32();break;case 3:o.maxWasmCodeSize=M(i.uint64());break;default:i.skipType(7&e)}}return o},fromJSON:e=>({codeUploadAccess:T(e.codeUploadAccess)?r.AccessConfig.fromJSON(e.codeUploadAccess):void 0,instantiateDefaultPermission:T(e.instantiateDefaultPermission)?u(e.instantiateDefaultPermission):0,maxWasmCodeSize:T(e.maxWasmCodeSize)?String(e.maxWasmCodeSize):"0"}),toJSON(e){let t={};return void 0!==e.codeUploadAccess&&(t.codeUploadAccess=e.codeUploadAccess?r.AccessConfig.toJSON(e.codeUploadAccess):void 0),void 0!==e.instantiateDefaultPermission&&(t.instantiateDefaultPermission=h(e.instantiateDefaultPermission)),void 0!==e.maxWasmCodeSize&&(t.maxWasmCodeSize=e.maxWasmCodeSize),t},fromPartial(e){var t,i;let n=m();return n.codeUploadAccess=void 0!==e.codeUploadAccess&&null!==e.codeUploadAccess?r.AccessConfig.fromPartial(e.codeUploadAccess):void 0,n.instantiateDefaultPermission=null!=(t=e.instantiateDefaultPermission)?t:0,n.maxWasmCodeSize=null!=(i=e.maxWasmCodeSize)?i:"0",n}},r.CodeInfo={encode:(e,t=c.default.Writer.create())=>(0!==e.codeHash.length&&t.uint32(10).bytes(e.codeHash),""!==e.creator&&t.uint32(18).string(e.creator),void 0!==e.instantiateConfig&&r.AccessConfig.encode(e.instantiateConfig,t.uint32(42).fork()).ldelim(),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=y();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.codeHash=i.bytes();break;case 2:o.creator=i.string();break;case 5:o.instantiateConfig=r.AccessConfig.decode(i,i.uint32());break;default:i.skipType(7&e)}}return o},fromJSON:e=>({codeHash:T(e.codeHash)?k(e.codeHash):new Uint8Array,creator:T(e.creator)?String(e.creator):"",instantiateConfig:T(e.instantiateConfig)?r.AccessConfig.fromJSON(e.instantiateConfig):void 0}),toJSON(e){let t={};return void 0!==e.codeHash&&(t.codeHash=I(void 0!==e.codeHash?e.codeHash:new Uint8Array)),void 0!==e.creator&&(t.creator=e.creator),void 0!==e.instantiateConfig&&(t.instantiateConfig=e.instantiateConfig?r.AccessConfig.toJSON(e.instantiateConfig):void 0),t},fromPartial(e){var t,i;let n=y();return n.codeHash=null!=(t=e.codeHash)?t:new Uint8Array,n.creator=null!=(i=e.creator)?i:"",n.instantiateConfig=void 0!==e.instantiateConfig&&null!==e.instantiateConfig?r.AccessConfig.fromPartial(e.instantiateConfig):void 0,n}},r.ContractInfo={encode:(e,t=c.default.Writer.create())=>("0"!==e.codeId&&t.uint32(8).uint64(e.codeId),""!==e.creator&&t.uint32(18).string(e.creator),""!==e.admin&&t.uint32(26).string(e.admin),""!==e.label&&t.uint32(34).string(e.label),void 0!==e.created&&r.AbsoluteTxPosition.encode(e.created,t.uint32(42).fork()).ldelim(),""!==e.ibcPortId&&t.uint32(50).string(e.ibcPortId),void 0!==e.extension&&d.Any.encode(e.extension,t.uint32(58).fork()).ldelim(),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=b();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.codeId=M(i.uint64());break;case 2:o.creator=i.string();break;case 3:o.admin=i.string();break;case 4:o.label=i.string();break;case 5:o.created=r.AbsoluteTxPosition.decode(i,i.uint32());break;case 6:o.ibcPortId=i.string();break;case 7:o.extension=d.Any.decode(i,i.uint32());break;default:i.skipType(7&e)}}return o},fromJSON:e=>({codeId:T(e.codeId)?String(e.codeId):"0",creator:T(e.creator)?String(e.creator):"",admin:T(e.admin)?String(e.admin):"",label:T(e.label)?String(e.label):"",created:T(e.created)?r.AbsoluteTxPosition.fromJSON(e.created):void 0,ibcPortId:T(e.ibcPortId)?String(e.ibcPortId):"",extension:T(e.extension)?d.Any.fromJSON(e.extension):void 0}),toJSON(e){let t={};return void 0!==e.codeId&&(t.codeId=e.codeId),void 0!==e.creator&&(t.creator=e.creator),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.label&&(t.label=e.label),void 0!==e.created&&(t.created=e.created?r.AbsoluteTxPosition.toJSON(e.created):void 0),void 0!==e.ibcPortId&&(t.ibcPortId=e.ibcPortId),void 0!==e.extension&&(t.extension=e.extension?d.Any.toJSON(e.extension):void 0),t},fromPartial(e){var t,i,n,o,a;let s=b();return s.codeId=null!=(t=e.codeId)?t:"0",s.creator=null!=(i=e.creator)?i:"",s.admin=null!=(n=e.admin)?n:"",s.label=null!=(o=e.label)?o:"",s.created=void 0!==e.created&&null!==e.created?r.AbsoluteTxPosition.fromPartial(e.created):void 0,s.ibcPortId=null!=(a=e.ibcPortId)?a:"",s.extension=void 0!==e.extension&&null!==e.extension?d.Any.fromPartial(e.extension):void 0,s}},r.ContractCodeHistoryEntry={encode:(e,t=c.default.Writer.create())=>(0!==e.operation&&t.uint32(8).int32(e.operation),"0"!==e.codeId&&t.uint32(16).uint64(e.codeId),void 0!==e.updated&&r.AbsoluteTxPosition.encode(e.updated,t.uint32(26).fork()).ldelim(),0!==e.msg.length&&t.uint32(34).bytes(e.msg),t),decode(e,t){let i=e instanceof c.default.Reader?e:new c.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=v();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.operation=i.int32();break;case 2:o.codeId=M(i.uint64());break;case 3:o.updated=r.AbsoluteTxPosition.decode(i,i.uint32());break;case 4:o.msg=i.bytes();break;default:i.skipType(7&e)}}return o},fromJSON:e=>({operation:T(e.operation)?p(e.operation):0,codeId:T(e.codeId)?String(e.codeId):"0",updated:T(e.updated)?r.AbsoluteTxPosition.fromJSON(e.updated):void 0,msg:T(e.msg)?k(e.msg):new Uint8Array}),toJSON(e){let t={};return void 0!==e.operation&&(t.operation=f(e.operation)),void 0!==e.codeId&&(t.codeId=e.codeId),void 0!==e.updated&&(t.updated=e.updated?r.AbsoluteTxPosition.toJSON(e.updated):void 0),void 0!==e.msg&&(t.msg=I(void 0!==e.msg?e.msg:new Uint8Array)),t},fromPartial(e){var t,i,n;let o=v();return o.operation=null!=(t=e.operation)?t:0,o.codeId=null!=(i=e.codeId)?i:"0",o.updated=void 0!==e.updated&&null!==e.updated?r.AbsoluteTxPosition.fromPartial(e.updated):void 0,o.msg=null!=(n=e.msg)?n:new Uint8Array,o}},r.AbsoluteTxPosition={encode:(e,t=c.default.Writer.create())=>("0"!==e.blockHeight&&t.uint32(8).uint64(e.blockHeight),"0"!==e.txIndex&&t.uint32(16).uint64(e.txIndex),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=w();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.blockHeight=M(r.uint64());break;case 2:n.txIndex=M(r.uint64());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({blockHeight:T(e.blockHeight)?String(e.blockHeight):"0",txIndex:T(e.txIndex)?String(e.txIndex):"0"}),toJSON(e){let t={};return void 0!==e.blockHeight&&(t.blockHeight=e.blockHeight),void 0!==e.txIndex&&(t.txIndex=e.txIndex),t},fromPartial(e){var t,r;let i=w();
1return i.blockHeight=null!=(t=e.blockHeight)?t:"0",i.txIndex=null!=(r=e.txIndex)?r:"0",i}},r.Model={encode:(e,t=c.default.Writer.create())=>(0!==e.key.length&&t.uint32(10).bytes(e.key),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){let r=e instanceof c.default.Reader?e:new c.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=x();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.key=r.bytes();break;case 2:n.value=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({key:T(e.key)?k(e.key):new Uint8Array,value:T(e.value)?k(e.value):new Uint8Array}),toJSON(e){let t={};return void 0!==e.key&&(t.key=I(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=I(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial(e){var t,r;let i=x();return i.key=null!=(t=e.key)?t:new Uint8Array,i.value=null!=(r=e.value)?r:new Uint8Array,i}};var S=void 0!==S?S:"u">typeof self?self:"u">typeof window?window:e.g;let A=S.atob||(e=>S.Buffer.from(e,"base64").toString("binary"));function k(e){let t=A(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}let E=S.btoa||(e=>S.Buffer.from(e,"binary").toString("base64"));function I(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return E(t.join(""))}function M(e){return e.toString()}function T(e){return null!=e}c.default.util.Long!==l.default&&(c.default.util.Long=l.default,c.default.configure())},457030,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.MsgClearAdminResponse=r.MsgClearAdmin=r.MsgUpdateAdminResponse=r.MsgUpdateAdmin=r.MsgMigrateContractResponse=r.MsgMigrateContract=r.MsgExecuteContractResponse=r.MsgExecuteContract=r.MsgInstantiateContractResponse=r.MsgInstantiateContract=r.MsgStoreCodeResponse=r.MsgStoreCode=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(654519),s=e.r(50701);function l(){return{sender:"",wasmByteCode:new Uint8Array,instantiatePermission:void 0}}function c(){return{codeId:"0"}}function d(){return{sender:"",admin:"",codeId:"0",label:"",msg:new Uint8Array,funds:[]}}function u(){return{address:"",data:new Uint8Array}}function h(){return{sender:"",contract:"",msg:new Uint8Array,funds:[]}}function p(){return{data:new Uint8Array}}function f(){return{sender:"",contract:"",codeId:"0",msg:new Uint8Array}}function g(){return{data:new Uint8Array}}function m(){return{sender:"",newAdmin:"",contract:""}}function y(){return{sender:"",contract:""}}r.protobufPackage="cosmwasm.wasm.v1",r.MsgStoreCode={encode:(e,t=o.default.Writer.create())=>(""!==e.sender&&t.uint32(10).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(18).bytes(e.wasmByteCode),void 0!==e.instantiatePermission&&a.AccessConfig.encode(e.instantiatePermission,t.uint32(42).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.sender=r.string();break;case 2:n.wasmByteCode=r.bytes();break;case 5:n.instantiatePermission=a.AccessConfig.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({sender:k(e.sender)?String(e.sender):"",wasmByteCode:k(e.wasmByteCode)?w(e.wasmByteCode):new Uint8Array,instantiatePermission:k(e.instantiatePermission)?a.AccessConfig.fromJSON(e.instantiatePermission):void 0}),toJSON(e){let t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=S(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),void 0!==e.instantiatePermission&&(t.instantiatePermission=e.instantiatePermission?a.AccessConfig.toJSON(e.instantiatePermission):void 0),t},fromPartial(e){var t,r;let i=l();return i.sender=null!=(t=e.sender)?t:"",i.wasmByteCode=null!=(r=e.wasmByteCode)?r:new Uint8Array,i.instantiatePermission=void 0!==e.instantiatePermission&&null!==e.instantiatePermission?a.AccessConfig.fromPartial(e.instantiatePermission):void 0,i}},r.MsgStoreCodeResponse={encode:(e,t=o.default.Writer.create())=>("0"!==e.codeId&&t.uint32(8).uint64(e.codeId),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=c();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.codeId=A(r.uint64()):r.skipType(7&e)}return n},fromJSON:e=>({codeId:k(e.codeId)?String(e.codeId):"0"}),toJSON(e){let t={};return void 0!==e.codeId&&(t.codeId=e.codeId),t},fromPartial(e){var t;let r=c();return r.codeId=null!=(t=e.codeId)?t:"0",r}},r.MsgInstantiateContract={encode(e,t=o.default.Writer.create()){for(let r of(""!==e.sender&&t.uint32(10).string(e.sender),""!==e.admin&&t.uint32(18).string(e.admin),"0"!==e.codeId&&t.uint32(24).uint64(e.codeId),""!==e.label&&t.uint32(34).string(e.label),0!==e.msg.length&&t.uint32(42).bytes(e.msg),e.funds))s.Coin.encode(r,t.uint32(50).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=d();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.sender=r.string();break;case 2:n.admin=r.string();break;case 3:n.codeId=A(r.uint64());break;case 4:n.label=r.string();break;case 5:n.msg=r.bytes();break;case 6:n.funds.push(s.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({sender:k(e.sender)?String(e.sender):"",admin:k(e.admin)?String(e.admin):"",codeId:k(e.codeId)?String(e.codeId):"0",label:k(e.label)?String(e.label):"",msg:k(e.msg)?w(e.msg):new Uint8Array,funds:Array.isArray(null==e?void 0:e.funds)?e.funds.map(e=>s.Coin.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.codeId&&(t.codeId=e.codeId),void 0!==e.label&&(t.label=e.label),void 0!==e.msg&&(t.msg=S(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map(e=>e?s.Coin.toJSON(e):void 0):t.funds=[],t},fromPartial(e){var t,r,i,n,o,a;let l=d();return l.sender=null!=(t=e.sender)?t:"",l.admin=null!=(r=e.admin)?r:"",l.codeId=null!=(i=e.codeId)?i:"0",l.label=null!=(n=e.label)?n:"",l.msg=null!=(o=e.msg)?o:new Uint8Array,l.funds=(null==(a=e.funds)?void 0:a.map(e=>s.Coin.fromPartial(e)))||[],l}},r.MsgInstantiateContractResponse={encode:(e,t=o.default.Writer.create())=>(""!==e.address&&t.uint32(10).string(e.address),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.address=r.string();break;case 2:n.data=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({address:k(e.address)?String(e.address):"",data:k(e.data)?w(e.data):new Uint8Array}),toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.data&&(t.data=S(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){var t,r;let i=u();return i.address=null!=(t=e.address)?t:"",i.data=null!=(r=e.data)?r:new Uint8Array,i}},r.MsgExecuteContract={encode(e,t=o.default.Writer.create()){for(let r of(""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),0!==e.msg.length&&t.uint32(26).bytes(e.msg),e.funds))s.Coin.encode(r,t.uint32(42).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=h();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.sender=r.string();break;case 2:n.contract=r.string();break;case 3:n.msg=r.bytes();break;case 5:n.funds.push(s.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({sender:k(e.sender)?String(e.sender):"",contract:k(e.contract)?String(e.contract):"",msg:k(e.msg)?w(e.msg):new Uint8Array,funds:Array.isArray(null==e?void 0:e.funds)?e.funds.map(e=>s.Coin.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.msg&&(t.msg=S(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map(e=>e?s.Coin.toJSON(e):void 0):t.funds=[],t},fromPartial(e){var t,r,i,n;let o=h();return o.sender=null!=(t=e.sender)?t:"",o.contract=null!=(r=e.contract)?r:"",o.msg=null!=(i=e.msg)?i:new Uint8Array,o.funds=(null==(n=e.funds)?void 0:n.map(e=>s.Coin.fromPartial(e)))||[],o}
1},r.MsgExecuteContractResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.data.length&&t.uint32(10).bytes(e.data),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=p();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.data=r.bytes():r.skipType(7&e)}return n},fromJSON:e=>({data:k(e.data)?w(e.data):new Uint8Array}),toJSON(e){let t={};return void 0!==e.data&&(t.data=S(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){var t;let r=p();return r.data=null!=(t=e.data)?t:new Uint8Array,r}},r.MsgMigrateContract={encode:(e,t=o.default.Writer.create())=>(""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),"0"!==e.codeId&&t.uint32(24).uint64(e.codeId),0!==e.msg.length&&t.uint32(34).bytes(e.msg),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=f();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.sender=r.string();break;case 2:n.contract=r.string();break;case 3:n.codeId=A(r.uint64());break;case 4:n.msg=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({sender:k(e.sender)?String(e.sender):"",contract:k(e.contract)?String(e.contract):"",codeId:k(e.codeId)?String(e.codeId):"0",msg:k(e.msg)?w(e.msg):new Uint8Array}),toJSON(e){let t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.codeId&&(t.codeId=e.codeId),void 0!==e.msg&&(t.msg=S(void 0!==e.msg?e.msg:new Uint8Array)),t},fromPartial(e){var t,r,i,n;let o=f();return o.sender=null!=(t=e.sender)?t:"",o.contract=null!=(r=e.contract)?r:"",o.codeId=null!=(i=e.codeId)?i:"0",o.msg=null!=(n=e.msg)?n:new Uint8Array,o}},r.MsgMigrateContractResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.data.length&&t.uint32(10).bytes(e.data),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=g();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.data=r.bytes():r.skipType(7&e)}return n},fromJSON:e=>({data:k(e.data)?w(e.data):new Uint8Array}),toJSON(e){let t={};return void 0!==e.data&&(t.data=S(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){var t;let r=g();return r.data=null!=(t=e.data)?t:new Uint8Array,r}},r.MsgUpdateAdmin={encode:(e,t=o.default.Writer.create())=>(""!==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 r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=m();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.sender=r.string();break;case 2:n.newAdmin=r.string();break;case 3:n.contract=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({sender:k(e.sender)?String(e.sender):"",newAdmin:k(e.newAdmin)?String(e.newAdmin):"",contract:k(e.contract)?String(e.contract):""}),toJSON(e){let t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial(e){var t,r,i;let n=m();return n.sender=null!=(t=e.sender)?t:"",n.newAdmin=null!=(r=e.newAdmin)?r:"",n.contract=null!=(i=e.contract)?i:"",n}},r.MsgUpdateAdminResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.MsgClearAdmin={encode:(e,t=o.default.Writer.create())=>(""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(26).string(e.contract),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=y();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.sender=r.string();break;case 3:n.contract=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({sender:k(e.sender)?String(e.sender):"",contract:k(e.contract)?String(e.contract):""}),toJSON(e){let t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial(e){var t,r;let i=y();return i.sender=null!=(t=e.sender)?t:"",i.contract=null!=(r=e.contract)?r:"",i}},r.MsgClearAdminResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})};var b=void 0!==b?b:"u">typeof self?self:"u">typeof window?window:e.g;let v=b.atob||(e=>b.Buffer.from(e,"base64").toString("binary"));function w(e){let t=v(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}let x=b.btoa||(e=>b.Buffer.from(e,"binary").toString("base64"));function S(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return x(t.join(""))}function A(e){return e.toString()}function k(e){return null!=e}o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},359054,(e,t,r)=>{"use strict";
1var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ModuleVersion=r.CancelSoftwareUpgradeProposal=r.SoftwareUpgradeProposal=r.Plan=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(982022),s=e.r(246324);function l(){return{name:"",time:void 0,height:"0",info:"",upgradedClientState:void 0}}function c(){return{title:"",description:"",plan:void 0}}function d(){return{title:"",description:""}}function u(){return{name:"",version:"0"}}function h(e){let t=1e3*Number(e.seconds);return new Date(t+=e.nanos/1e6)}function p(e){return e.toString()}function f(e){return null!=e}r.protobufPackage="cosmos.upgrade.v1beta1",r.Plan={encode:(e,t=o.default.Writer.create())=>{var r;return""!==e.name&&t.uint32(10).string(e.name),void 0!==e.time&&a.Timestamp.encode({seconds:Math.trunc((r=e.time).getTime()/1e3).toString(),nanos:r.getTime()%1e3*1e6},t.uint32(18).fork()).ldelim(),"0"!==e.height&&t.uint32(24).int64(e.height),""!==e.info&&t.uint32(34).string(e.info),void 0!==e.upgradedClientState&&s.Any.encode(e.upgradedClientState,t.uint32(42).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.name=r.string();break;case 2:n.time=h(a.Timestamp.decode(r,r.uint32()));break;case 3:n.height=p(r.int64());break;case 4:n.info=r.string();break;case 5:n.upgradedClientState=s.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>{var t;return{name:f(e.name)?String(e.name):"",time:f(e.time)?(t=e.time)instanceof Date?t:"string"==typeof t?new Date(t):h(a.Timestamp.fromJSON(t)):void 0,height:f(e.height)?String(e.height):"0",info:f(e.info)?String(e.info):"",upgradedClientState:f(e.upgradedClientState)?s.Any.fromJSON(e.upgradedClientState):void 0}},toJSON(e){let t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.time&&(t.time=e.time.toISOString()),void 0!==e.height&&(t.height=e.height),void 0!==e.info&&(t.info=e.info),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?s.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){var t,r,i,n;let o=l();return o.name=null!=(t=e.name)?t:"",o.time=null!=(r=e.time)?r:void 0,o.height=null!=(i=e.height)?i:"0",o.info=null!=(n=e.info)?n:"",o.upgradedClientState=void 0!==e.upgradedClientState&&null!==e.upgradedClientState?s.Any.fromPartial(e.upgradedClientState):void 0,o}},r.SoftwareUpgradeProposal={encode:(e,t=o.default.Writer.create())=>(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),void 0!==e.plan&&r.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),t),decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=c();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.title=i.string();break;case 2:a.description=i.string();break;case 3:a.plan=r.Plan.decode(i,i.uint32());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({title:f(e.title)?String(e.title):"",description:f(e.description)?String(e.description):"",plan:f(e.plan)?r.Plan.fromJSON(e.plan):void 0}),toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.plan&&(t.plan=e.plan?r.Plan.toJSON(e.plan):void 0),t},fromPartial(e){var t,i;let n=c();return n.title=null!=(t=e.title)?t:"",n.description=null!=(i=e.description)?i:"",n.plan=void 0!==e.plan&&null!==e.plan?r.Plan.fromPartial(e.plan):void 0,n}},r.CancelSoftwareUpgradeProposal={encode:(e,t=o.default.Writer.create())=>(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=d();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({title:f(e.title)?String(e.title):"",description:f(e.description)?String(e.description):""}),toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial(e){var t,r;let i=d();return i.title=null!=(t=e.title)?t:"",i.description=null!=(r=e.description)?r:"",i}},r.ModuleVersion={encode:(e,t=o.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),"0"!==e.version&&t.uint32(16).uint64(e.version),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.name=r.string();break;case 2:n.version=p(r.uint64());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({name:f(e.name)?String(e.name):"",version:f(e.version)?String(e.version):"0"}),toJSON(e){let t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.version&&(t.version=e.version),t},fromPartial(e){var t,r;let i=u();return i.name=null!=(t=e.name)?t:"",i.version=null!=(r=e.version)?r:"0",i}},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},610729,(e,t,r)=>{"use strict";
1var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Params=r.Height=r.UpgradeProposal=r.ClientUpdateProposal=r.ClientConsensusStates=r.ConsensusStateWithHeight=r.IdentifiedClientState=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(246324),s=e.r(359054);function l(){return{clientId:"",clientState:void 0}}function c(){return{height:void 0,consensusState:void 0}}function d(){return{clientId:"",consensusStates:[]}}function u(){return{title:"",description:"",subjectClientId:"",substituteClientId:""}}function h(){return{title:"",description:"",plan:void 0,upgradedClientState:void 0}}function p(){return{revisionNumber:"0",revisionHeight:"0"}}function f(){return{allowedClients:[]}}function g(e){return e.toString()}function m(e){return null!=e}r.protobufPackage="ibc.core.client.v1",r.IdentifiedClientState={encode:(e,t=o.default.Writer.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientState&&a.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.clientId=r.string();break;case 2:n.clientState=a.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({clientId:m(e.clientId)?String(e.clientId):"",clientState:m(e.clientState)?a.Any.fromJSON(e.clientState):void 0}),toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientState&&(t.clientState=e.clientState?a.Any.toJSON(e.clientState):void 0),t},fromPartial(e){var t;let r=l();return r.clientId=null!=(t=e.clientId)?t:"",r.clientState=void 0!==e.clientState&&null!==e.clientState?a.Any.fromPartial(e.clientState):void 0,r}},r.ConsensusStateWithHeight={encode:(e,t=o.default.Writer.create())=>(void 0!==e.height&&r.Height.encode(e.height,t.uint32(10).fork()).ldelim(),void 0!==e.consensusState&&a.Any.encode(e.consensusState,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,s=c();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:s.height=r.Height.decode(i,i.uint32());break;case 2:s.consensusState=a.Any.decode(i,i.uint32());break;default:i.skipType(7&e)}}return s},fromJSON:e=>({height:m(e.height)?r.Height.fromJSON(e.height):void 0,consensusState:m(e.consensusState)?a.Any.fromJSON(e.consensusState):void 0}),toJSON(e){let t={};return void 0!==e.height&&(t.height=e.height?r.Height.toJSON(e.height):void 0),void 0!==e.consensusState&&(t.consensusState=e.consensusState?a.Any.toJSON(e.consensusState):void 0),t},fromPartial(e){let t=c();return t.height=void 0!==e.height&&null!==e.height?r.Height.fromPartial(e.height):void 0,t.consensusState=void 0!==e.consensusState&&null!==e.consensusState?a.Any.fromPartial(e.consensusState):void 0,t}},r.ClientConsensusStates={encode(e,t=o.default.Writer.create()){for(let i of(""!==e.clientId&&t.uint32(10).string(e.clientId),e.consensusStates))r.ConsensusStateWithHeight.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=d();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.clientId=i.string();break;case 2:a.consensusStates.push(r.ConsensusStateWithHeight.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return a},fromJSON:e=>({clientId:m(e.clientId)?String(e.clientId):"",consensusStates:Array.isArray(null==e?void 0:e.consensusStates)?e.consensusStates.map(e=>r.ConsensusStateWithHeight.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),e.consensusStates?t.consensusStates=e.consensusStates.map(e=>e?r.ConsensusStateWithHeight.toJSON(e):void 0):t.consensusStates=[],t},fromPartial(e){var t,i;let n=d();return n.clientId=null!=(t=e.clientId)?t:"",n.consensusStates=(null==(i=e.consensusStates)?void 0:i.map(e=>r.ConsensusStateWithHeight.fromPartial(e)))||[],n}},r.ClientUpdateProposal={encode:(e,t=o.default.Writer.create())=>(""!==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 r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;case 3:n.subjectClientId=r.string();break;case 4:n.substituteClientId=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({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 void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.subjectClientId&&(t.subjectClientId=e.subjectClientId),void 0!==e.substituteClientId&&(t.substituteClientId=e.substituteClientId),t},fromPartial(e){var t,r,i,n;let o=u();return o.title=null!=(t=e.title)?t:"",o.description=null!=(r=e.description)?r:"",o.subjectClientId=null!=(i=e.subjectClientId)?i:"",o.substituteClientId=null!=(n=e.substituteClientId)?n:"",o}},r.UpgradeProposal={encode:(e,t=o.default.Writer.create())=>(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),void 0!==e.plan&&s.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),void 0!==e.upgradedClientState&&a.Any.encode(e.upgradedClientState,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=h();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;case 3:n.plan=s.Plan.decode(r,r.uint32());break;case 4:n.upgradedClientState=a.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({title:m(e.title)?String(e.title):"",description:m(e.description)?String(e.description):"",plan:m(e.plan)?s.Plan.fromJSON(e.plan):void 0,upgradedClientState:m(e.upgradedClientState)?a.Any.fromJSON(e.upgradedClientState):void 0}),toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.plan&&(t.plan=e.plan?s.Plan.toJSON(e.plan):void 0),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?a.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){var t,r;let i=h();return i.title=null!=(t=e.title)?t:"",i.description=null!=(r=e.description)?r:"",i.plan=void 0!==e.plan&&null!==e.plan?s.Plan.fromPartial(e.plan):void 0,i.upgradedClientState=void 0!==e.upgradedClientState&&null!==e.upgradedClientState?a.Any.fromPartial(e.upgradedClientState):void 0,i}},r.Height={encode:(e,t=o.default.Writer.create())=>("0"!==e.revisionNumber&&t.uint32(8).uint64(e.revisionNumber),"0"!==e.revisionHeight&&t.uint32(16).uint64(e.revisionHeight),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=p();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.revisionNumber=g(r.uint64());break;case 2:n.revisionHeight=g(r.uint64());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({revisionNumber:m(e.revisionNumber)?String(e.revisionNumber):"0",revisionHeight:m(e.revisionHeight)?String(e.revisionHeight):"0"}),toJSON(e){let t={};return void 0!==e.revisionNumber&&(t.revisionNumber=e.revisionNumber),void 0!==e.revisionHeight&&(t.revisionHeight=e.revisionHeight),t},fromPartial(e){var t,r;let i=p();
1return i.revisionNumber=null!=(t=e.revisionNumber)?t:"0",i.revisionHeight=null!=(r=e.revisionHeight)?r:"0",i}},r.Params={encode(e,t=o.default.Writer.create()){for(let r of e.allowedClients)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=f();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.allowedClients.push(r.string()):r.skipType(7&e)}return n},fromJSON:e=>({allowedClients:Array.isArray(null==e?void 0:e.allowedClients)?e.allowedClients.map(e=>String(e)):[]}),toJSON(e){let t={};return e.allowedClients?t.allowedClients=e.allowedClients.map(e=>e):t.allowedClients=[],t},fromPartial(e){var t;let r=f();return r.allowedClients=(null==(t=e.allowedClients)?void 0:t.map(e=>e))||[],r}},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},524578,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.MsgTransferResponse=r.MsgTransfer=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(50701),s=e.r(610729);function l(){return{sourcePort:"",sourceChannel:"",token:void 0,sender:"",receiver:"",timeoutHeight:void 0,timeoutTimestamp:"0",memo:""}}function c(e){return null!=e}r.protobufPackage="ibc.applications.transfer.v1",r.MsgTransfer={encode:(e,t=o.default.Writer.create())=>(""!==e.sourcePort&&t.uint32(10).string(e.sourcePort),""!==e.sourceChannel&&t.uint32(18).string(e.sourceChannel),void 0!==e.token&&a.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),void 0!==e.timeoutHeight&&s.Height.encode(e.timeoutHeight,t.uint32(50).fork()).ldelim(),"0"!==e.timeoutTimestamp&&t.uint32(56).uint64(e.timeoutTimestamp),""!==e.memo&&t.uint32(66).string(e.memo),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.sourcePort=r.string();break;case 2:n.sourceChannel=r.string();break;case 3:n.token=a.Coin.decode(r,r.uint32());break;case 4:n.sender=r.string();break;case 5:n.receiver=r.string();break;case 6:n.timeoutHeight=s.Height.decode(r,r.uint32());break;case 7:n.timeoutTimestamp=r.uint64().toString();break;case 8:n.memo=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({sourcePort:c(e.sourcePort)?String(e.sourcePort):"",sourceChannel:c(e.sourceChannel)?String(e.sourceChannel):"",token:c(e.token)?a.Coin.fromJSON(e.token):void 0,sender:c(e.sender)?String(e.sender):"",receiver:c(e.receiver)?String(e.receiver):"",timeoutHeight:c(e.timeoutHeight)?s.Height.fromJSON(e.timeoutHeight):void 0,timeoutTimestamp:c(e.timeoutTimestamp)?String(e.timeoutTimestamp):"0",memo:c(e.memo)?String(e.memo):""}),toJSON(e){let t={};return void 0!==e.sourcePort&&(t.sourcePort=e.sourcePort),void 0!==e.sourceChannel&&(t.sourceChannel=e.sourceChannel),void 0!==e.token&&(t.token=e.token?a.Coin.toJSON(e.token):void 0),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight?s.Height.toJSON(e.timeoutHeight):void 0),void 0!==e.timeoutTimestamp&&(t.timeoutTimestamp=e.timeoutTimestamp),void 0!==e.memo&&(t.memo=e.memo),t},fromPartial(e){var t,r,i,n,o,c;let d=l();return d.sourcePort=null!=(t=e.sourcePort)?t:"",d.sourceChannel=null!=(r=e.sourceChannel)?r:"",d.token=void 0!==e.token&&null!==e.token?a.Coin.fromPartial(e.token):void 0,d.sender=null!=(i=e.sender)?i:"",d.receiver=null!=(n=e.receiver)?n:"",d.timeoutHeight=void 0!==e.timeoutHeight&&null!==e.timeoutHeight?s.Height.fromPartial(e.timeoutHeight):void 0,d.timeoutTimestamp=null!=(o=e.timeoutTimestamp)?o:"0",d.memo=null!=(c=e.memo)?c:"",d}},r.MsgTransferResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t;for(;r.pos<i;){let e=r.uint32();r.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},657422,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.UnknownMessage=void 0;let i=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/");r.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:i.Buffer.from(this._value).toString("base64")}}}},199338,(e,t,r)=>{"use strict";var i,n,o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.StakeAuthorization_Validators=r.StakeAuthorization=r.authorizationTypeToJSON=r.authorizationTypeFromJSON=r.AuthorizationType=r.protobufPackage=void 0;let a=o(e.r(711385)),s=o(e.r(85884)),l=e.r(50701);function c(e){switch(e){case 0:case"AUTHORIZATION_TYPE_UNSPECIFIED":return n.AUTHORIZATION_TYPE_UNSPECIFIED;case 1:case"AUTHORIZATION_TYPE_DELEGATE":return n.AUTHORIZATION_TYPE_DELEGATE;case 2:case"AUTHORIZATION_TYPE_UNDELEGATE":return n.AUTHORIZATION_TYPE_UNDELEGATE;case 3:case"AUTHORIZATION_TYPE_REDELEGATE":return n.AUTHORIZATION_TYPE_REDELEGATE;default:return n.UNRECOGNIZED}}function d(e){switch(e){case n.AUTHORIZATION_TYPE_UNSPECIFIED:return"AUTHORIZATION_TYPE_UNSPECIFIED";case n.AUTHORIZATION_TYPE_DELEGATE:return"AUTHORIZATION_TYPE_DELEGATE";case n.AUTHORIZATION_TYPE_UNDELEGATE:return"AUTHORIZATION_TYPE_UNDELEGATE";case n.AUTHORIZATION_TYPE_REDELEGATE:return"AUTHORIZATION_TYPE_REDELEGATE";default:return"UNKNOWN"}}function u(){return{maxTokens:void 0,allowList:void 0,denyList:void 0,authorizationType:0}}function h(){return{address:[]}}r.protobufPackage="cosmos.staking.v1beta1",(i=n=r.AuthorizationType||(r.AuthorizationType={}))[i.AUTHORIZATION_TYPE_UNSPECIFIED=0]="AUTHORIZATION_TYPE_UNSPECIFIED",i[i.AUTHORIZATION_TYPE_DELEGATE=1]="AUTHORIZATION_TYPE_DELEGATE",i[i.AUTHORIZATION_TYPE_UNDELEGATE=2]="AUTHORIZATION_TYPE_UNDELEGATE",i[i.AUTHORIZATION_TYPE_REDELEGATE=3]="AUTHORIZATION_TYPE_REDELEGATE",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED",r.authorizationTypeFromJSON=c,r.authorizationTypeToJSON=d,r.StakeAuthorization={encode:(e,t=s.default.Writer.create())=>(void 0!==e.maxTokens&&l.Coin.encode(e.maxTokens,t.uint32(10).fork()).ldelim(),void 0!==e.allowList&&r.StakeAuthorization_Validators.encode(e.allowList,t.uint32(18).fork()).ldelim(),void 0!==e.denyList&&r.StakeAuthorization_Validators.encode(e.denyList,t.uint32(26).fork()).ldelim(),0!==e.authorizationType&&t.uint32(32).int32(e.authorizationType),t),decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=u();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.maxTokens=l.Coin.decode(i,i.uint32());break;case 2:o.allowList=r.StakeAuthorization_Validators.decode(i,i.uint32());break;case 3:o.denyList=r.StakeAuthorization_Validators.decode(i,i.uint32());break;case 4:o.authorizationType=i.int32();break;default:i.skipType(7&e)}}return o},fromJSON:e=>({maxTokens:null!=e.maxTokens?l.Coin.fromJSON(e.maxTokens):void 0,allowList:null!=e.allowList?r.StakeAuthorization_Validators.fromJSON(e.allowList):void 0,denyList:null!=e.denyList?r.StakeAuthorization_Validators.fromJSON(e.denyList):void 0,authorizationType:null!=e.authorizationType?c(e.authorizationType):0}),toJSON(e){let t={};return void 0!==e.maxTokens&&(t.maxTokens=e.maxTokens?l.Coin.toJSON(e.maxTokens):void 0),void 0!==e.allowList&&(t.allowList=e.allowList?r.StakeAuthorization_Validators.toJSON(e.allowList):void 0),void 0!==e.denyList&&(t.denyList=e.denyList?r.StakeAuthorization_Validators.toJSON(e.denyList):void 0),void 0!==e.authorizationType&&(t.authorizationType=d(e.authorizationType)),t},fromPartial(e){var t;let i=u();return i.maxTokens=void 0!==e.maxTokens&&null!==e.maxTokens?l.Coin.fromPartial(e.maxTokens):void 0,i.allowList=void 0!==e.allowList&&null!==e.allowList?r.StakeAuthorization_Validators.fromPartial(e.allowList):void 0,i.denyList=void 0!==e.denyList&&null!==e.denyList?r.StakeAuthorization_Validators.fromPartial(e.denyList):void 0,i.authorizationType=null!=(t=e.authorizationType)?t:0,i}},r.StakeAuthorization_Validators={encode(e,t=s.default.Writer.create()){for(let r of e.address)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=h();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.address.push(r.string()):r.skipType(7&e)}return n},fromJSON:e=>({address:Array.isArray(null==e?void 0:e.address)?e.address.map(e=>String(e)):[]}),toJSON(e){let t={};return e.address?t.address=e.address.map(e=>e):t.address=[],t},fromPartial(e){var t;let r=h();return r.address=(null==(t=e.address)?void 0:t.map(e=>e))||[],r}},s.default.util.Long!==a.default&&(s.default.util.Long=a.default,s.default.configure())},156983,(e,t,r)=>{"use strict";
1var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.SendAuthorization=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(50701);function s(){return{spendLimit:[]}}r.protobufPackage="cosmos.bank.v1beta1",r.SendAuthorization={encode(e,t=o.default.Writer.create()){for(let r of e.spendLimit)a.Coin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=s();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.spendLimit.push(a.Coin.decode(r,r.uint32())):r.skipType(7&e)}return n},fromJSON:e=>({spendLimit:Array.isArray(null==e?void 0:e.spendLimit)?e.spendLimit.map(e=>a.Coin.fromJSON(e)):[]}),toJSON(e){let t={};return e.spendLimit?t.spendLimit=e.spendLimit.map(e=>e?a.Coin.toJSON(e):void 0):t.spendLimit=[],t},fromPartial(e){var t;let r=s();return r.spendLimit=(null==(t=e.spendLimit)?void 0:t.map(e=>a.Coin.fromPartial(e)))||[],r}},o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},715087,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.defaultProtoCodec=r.ProtoCodec=void 0;let o=e.r(89808),a=e.r(640393),s=e.r(921677),l=e.r(458583),c=e.r(21021),d=e.r(15904),u=e.r(457030),h=e.r(524578),p=e.r(657422),f=e.r(256684),g=e.r(199338),m=e.r(156983),y=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/");n(e.r(657422),r);class b{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);
1if(!t)return new p.UnknownMessage(e.typeUrl,e.value);let r=t.decode(e.value);return Object.assign(Object.assign({},e),{unpacked:r})}unpackedAnyToJSONRecursive(e){if(e instanceof p.UnknownMessage)return e.toJSON();let t=this.unpackAnyFactory(e.typeUrl);if(t&&"unpacked"in e&&e.unpacked){let r=e=>{let t="object"==typeof e&&!(e instanceof p.UnknownMessage)&&"typeUrl"in e&&e.typeUrl&&"string"==typeof e.typeUrl&&"value"in e&&e.value&&"string"==typeof e.value;if(t)try{y.Buffer.from(e.value,"base64")}catch(e){return!1}return t},i=e=>{let t=this.unpackAnyFactory(e.typeUrl),r=y.Buffer.from(e.value,"base64");if(!t)return new p.UnknownMessage(e.typeUrl,r).toJSON();let i=t.decode(r);return{typeUrl:e.typeUrl,value:t.toJSON(i)}},n=e=>{if(Array.isArray(e))for(let t=0;t<e.length;t++){let o=e[t];r(o)?e[t]=i(o):"object"==typeof o&&(e[t]=n(o))}else for(let t in e){let o=e[t];r(o)?e[t]=i(o):"object"==typeof o&&(e[t]=n(o))}return e},o=t.toJSON(e.unpacked);if(o&&"object"==typeof o)return o=n(o),{typeUrl:e.typeUrl,value:o}}return new p.UnknownMessage(e.typeUrl,e.value).toJSON()}registerAny(e,t){this.typeUrlMap.set(e,t)}}r.ProtoCodec=b,r.defaultProtoCodec=new b,r.defaultProtoCodec.registerAny("/agoric.swingset.MsgWalletSpendAction",o.MsgWalletSpendAction),r.defaultProtoCodec.registerAny("/agoric.swingset.MsgProvision",o.MsgProvision),r.defaultProtoCodec.registerAny("/cosmos.bank.v1beta1.MsgSend",a.MsgSend),r.defaultProtoCodec.registerAny("/cosmos.bank.v1beta1.MsgMultiSend",a.MsgMultiSend),r.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.MsgDelegate",s.MsgDelegate),r.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.MsgUndelegate",s.MsgUndelegate),r.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.MsgBeginRedelegate",s.MsgBeginRedelegate),r.defaultProtoCodec.registerAny("/cosmwasm.wasm.v1.MsgExecuteContract",u.MsgExecuteContract),r.defaultProtoCodec.registerAny("/cosmwasm.wasm.v1.MsgInstantiateContract",u.MsgInstantiateContract),r.defaultProtoCodec.registerAny("/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",d.MsgWithdrawDelegatorReward),r.defaultProtoCodec.registerAny("/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",d.MsgSetWithdrawAddress),r.defaultProtoCodec.registerAny("/ibc.applications.transfer.v1.MsgTransfer",h.MsgTransfer),r.defaultProtoCodec.registerAny("/cosmos.gov.v1beta1.MsgVote",c.MsgVote),r.defaultProtoCodec.registerAny("/cosmos.authz.v1beta1.MsgGrant",l.MsgGrant),r.defaultProtoCodec.registerAny("/cosmos.authz.v1beta1.GenericAuthorization",f.GenericAuthorization),r.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.StakeAuthorization",g.StakeAuthorization),r.defaultProtoCodec.registerAny("/cosmos.bank.v1beta1.SendAuthorization",m.SendAuthorization),r.defaultProtoCodec.registerAny("/cosmos.authz.v1beta1.MsgRevoke",l.MsgRevoke),r.defaultProtoCodec.registerAny("/cosmos.authz.v1beta1.MsgExec",l.MsgExec)},678730,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.CompactBitArray=r.MultiSignature=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884));function a(){return{signatures:[]}}function s(){return{extraBitsStored:0,elems:new Uint8Array}}r.protobufPackage="cosmos.crypto.multisig.v1beta1",r.MultiSignature={encode(e,t=o.default.Writer.create()){for(let r of e.signatures)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=a();for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.signatures.push(r.bytes()):r.skipType(7&e)}return n},fromJSON:e=>({signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map(e=>d(e)):[]}),toJSON(e){let t={};return e.signatures?t.signatures=e.signatures.map(e=>h(void 0!==e?e:new Uint8Array)):t.signatures=[],t},fromPartial(e){var t;let r=a();return r.signatures=(null==(t=e.signatures)?void 0:t.map(e=>e))||[],r}},r.CompactBitArray={encode:(e,t=o.default.Writer.create())=>(0!==e.extraBitsStored&&t.uint32(8).uint32(e.extraBitsStored),0!==e.elems.length&&t.uint32(18).bytes(e.elems),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.extraBitsStored=r.uint32();break;case 2:n.elems=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({extraBitsStored:null!=e.extraBitsStored?Number(e.extraBitsStored):0,elems:null!=e.elems?d(e.elems):new Uint8Array}),toJSON(e){let t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=Math.round(e.extraBitsStored)),void 0!==e.elems&&(t.elems=h(void 0!==e.elems?e.elems:new Uint8Array)),t},fromPartial(e){var t,r;let i=s();return i.extraBitsStored=null!=(t=e.extraBitsStored)?t:0,i.elems=null!=(r=e.elems)?r:new Uint8Array,i}};var l=void 0!==l?l:"u">typeof self?self:"u">typeof window?window:e.g;let c=l.atob||(e=>l.Buffer.from(e,"base64").toString("binary"));function d(e){let t=c(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}let u=l.btoa||(e=>l.Buffer.from(e,"binary").toString("base64"));function h(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return u(t.join(""))}o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},783818,(e,t,r)=>{"use strict";var i,n,o=e.e&&e.e.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.SignatureDescriptor_Data_Multi=r.SignatureDescriptor_Data_Single=r.SignatureDescriptor_Data=r.SignatureDescriptor=r.SignatureDescriptors=r.signModeToJSON=r.signModeFromJSON=r.SignMode=r.protobufPackage=void 0;let a=o(e.r(711385)),s=o(e.r(85884)),l=e.r(246324),c=e.r(678730);function d(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return n.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return n.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return n.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return n.SIGN_MODE_LEGACY_AMINO_JSON;default:return n.UNRECOGNIZED}}function u(e){switch(e){case n.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case n.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case n.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case n.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";default:return"UNKNOWN"}}function h(){return{signatures:[]}}function p(){return{publicKey:void 0,data:void 0,sequence:"0"}}function f(){return{single:void 0,multi:void 0}}function g(){return{mode:0,signature:new Uint8Array}}function m(){return{bitarray:void 0,signatures:[]}}r.protobufPackage="cosmos.tx.signing.v1beta1",(i=n=r.SignMode||(r.SignMode={}))[i.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",i[i.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",i[i.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",i[i.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED",r.signModeFromJSON=d,r.signModeToJSON=u,r.SignatureDescriptors={encode(e,t=s.default.Writer.create()){for(let i of e.signatures)r.SignatureDescriptor.encode(i,t.uint32(10).fork()).ldelim();return t},decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=h();for(;i.pos<n;){let e=i.uint32();e>>>3==1?o.signatures.push(r.SignatureDescriptor.decode(i,i.uint32())):i.skipType(7&e)}return o},fromJSON:e=>({signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map(e=>r.SignatureDescriptor.fromJSON(e)):[]}),toJSON(e){let t={};return e.signatures?t.signatures=e.signatures.map(e=>e?r.SignatureDescriptor.toJSON(e):void 0):t.signatures=[],t},fromPartial(e){var t;let i=h();return i.signatures=(null==(t=e.signatures)?void 0:t.map(e=>r.SignatureDescriptor.fromPartial(e)))||[],i}},r.SignatureDescriptor={encode:(e,t=s.default.Writer.create())=>(void 0!==e.publicKey&&l.Any.encode(e.publicKey,t.uint32(10).fork()).ldelim(),void 0!==e.data&&r.SignatureDescriptor_Data.encode(e.data,t.uint32(18).fork()).ldelim(),"0"!==e.sequence&&t.uint32(24).uint64(e.sequence),t),decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=p();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.publicKey=l.Any.decode(i,i.uint32());break;case 2:o.data=r.SignatureDescriptor_Data.decode(i,i.uint32());break;case 3:o.sequence=i.uint64().toString();break;default:i.skipType(7&e)}}return o},fromJSON:e=>({publicKey:w(e.publicKey)?l.Any.fromJSON(e.publicKey):void 0,data:w(e.data)?r.SignatureDescriptor_Data.fromJSON(e.data):void 0,sequence:w(e.sequence)?String(e.sequence):"0"}),toJSON(e){let t={};return void 0!==e.publicKey&&(t.publicKey=e.publicKey?l.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(t.data=e.data?r.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(t.sequence=e.sequence),t},fromPartial(e){var t;let i=p();return i.publicKey=void 0!==e.publicKey&&null!==e.publicKey?l.Any.fromPartial(e.publicKey):void 0,i.data=void 0!==e.data&&null!==e.data?r.SignatureDescriptor_Data.fromPartial(e.data):void 0,i.sequence=null!=(t=e.sequence)?t:"0",
1i}},r.SignatureDescriptor_Data={encode:(e,t=s.default.Writer.create())=>(void 0!==e.single&&r.SignatureDescriptor_Data_Single.encode(e.single,t.uint32(10).fork()).ldelim(),void 0!==e.multi&&r.SignatureDescriptor_Data_Multi.encode(e.multi,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=f();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.single=r.SignatureDescriptor_Data_Single.decode(i,i.uint32());break;case 2:o.multi=r.SignatureDescriptor_Data_Multi.decode(i,i.uint32());break;default:i.skipType(7&e)}}return o},fromJSON:e=>({single:w(e.single)?r.SignatureDescriptor_Data_Single.fromJSON(e.single):void 0,multi:w(e.multi)?r.SignatureDescriptor_Data_Multi.fromJSON(e.multi):void 0}),toJSON(e){let t={};return void 0!==e.single&&(t.single=e.single?r.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(t.multi=e.multi?r.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),t},fromPartial(e){let t=f();return t.single=void 0!==e.single&&null!==e.single?r.SignatureDescriptor_Data_Single.fromPartial(e.single):void 0,t.multi=void 0!==e.multi&&null!==e.multi?r.SignatureDescriptor_Data_Multi.fromPartial(e.multi):void 0,t}},r.SignatureDescriptor_Data_Single={encode:(e,t=s.default.Writer.create())=>(0!==e.mode&&t.uint32(8).int32(e.mode),0!==e.signature.length&&t.uint32(18).bytes(e.signature),t),decode(e,t){let r=e instanceof s.default.Reader?e:new s.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=g();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.mode=r.int32();break;case 2:n.signature=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({mode:w(e.mode)?d(e.mode):0,signature:w(e.signature)?function(e){let t=b(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}(e.signature):new Uint8Array}),toJSON(e){let t={};return void 0!==e.mode&&(t.mode=u(e.mode)),void 0!==e.signature&&(t.signature=function(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return v(t.join(""))}(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial(e){var t,r;let i=g();return i.mode=null!=(t=e.mode)?t:0,i.signature=null!=(r=e.signature)?r:new Uint8Array,i}},r.SignatureDescriptor_Data_Multi={encode(e,t=s.default.Writer.create()){for(let i of(void 0!==e.bitarray&&c.CompactBitArray.encode(e.bitarray,t.uint32(10).fork()).ldelim(),e.signatures))r.SignatureDescriptor_Data.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof s.default.Reader?e:new s.default.Reader(e),n=void 0===t?i.len:i.pos+t,o=m();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:o.bitarray=c.CompactBitArray.decode(i,i.uint32());break;case 2:o.signatures.push(r.SignatureDescriptor_Data.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return o},fromJSON:e=>({bitarray:w(e.bitarray)?c.CompactBitArray.fromJSON(e.bitarray):void 0,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map(e=>r.SignatureDescriptor_Data.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.bitarray&&(t.bitarray=e.bitarray?c.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?t.signatures=e.signatures.map(e=>e?r.SignatureDescriptor_Data.toJSON(e):void 0):t.signatures=[],t},fromPartial(e){var t;let i=m();return i.bitarray=void 0!==e.bitarray&&null!==e.bitarray?c.CompactBitArray.fromPartial(e.bitarray):void 0,i.signatures=(null==(t=e.signatures)?void 0:t.map(e=>r.SignatureDescriptor_Data.fromPartial(e)))||[],i}};var y=void 0!==y?y:"u">typeof self?self:"u">typeof window?window:e.g;let b=y.atob||(e=>y.Buffer.from(e,"base64").toString("binary")),v=y.btoa||(e=>y.Buffer.from(e,"binary").toString("base64"));function w(e){return null!=e}s.default.util.Long!==a.default&&(s.default.util.Long=a.default,s.default.configure())},383218,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Fee=r.ModeInfo_Multi=r.ModeInfo_Single=r.ModeInfo=r.SignerInfo=r.AuthInfo=r.TxBody=r.SignDoc=r.TxRaw=r.Tx=r.protobufPackage=void 0;let n=i(e.r(711385)),o=i(e.r(85884)),a=e.r(783818),s=e.r(246324),l=e.r(678730),c=e.r(50701);function d(){return{body:void 0,authInfo:void 0,signatures:[]}}function u(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}function h(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:"0"}}function p(){return{messages:[],memo:"",timeoutHeight:"0",extensionOptions:[],nonCriticalExtensionOptions:[]}}function f(){return{signerInfos:[],fee:void 0}}function g(){return{publicKey:void 0,modeInfo:void 0,sequence:"0"}}function m(){return{single:void 0,multi:void 0}}function y(){return{bitarray:void 0,modeInfos:[]}}function b(){return{amount:[],gasLimit:"0",payer:"",granter:""}}r.protobufPackage="cosmos.tx.v1beta1",r.Tx={encode(e,t=o.default.Writer.create()){for(let i of(void 0!==e.body&&r.TxBody.encode(e.body,t.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&r.AuthInfo.encode(e.authInfo,t.uint32(18).fork()).ldelim(),e.signatures))t.uint32(26).bytes(i);return t},decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=d();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.body=r.TxBody.decode(i,i.uint32());break;case 2:a.authInfo=r.AuthInfo.decode(i,i.uint32());break;case 3:a.signatures.push(i.bytes());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({body:E(e.body)?r.TxBody.fromJSON(e.body):void 0,authInfo:E(e.authInfo)?r.AuthInfo.fromJSON(e.authInfo):void 0,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map(e=>x(e)):[]}),toJSON(e){let t={};return void 0!==e.body&&(t.body=e.body?r.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(t.authInfo=e.authInfo?r.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?t.signatures=e.signatures.map(e=>A(void 0!==e?e:new Uint8Array)):t.signatures=[],t},fromPartial(e){var t;let i=d();return i.body=void 0!==e.body&&null!==e.body?r.TxBody.fromPartial(e.body):void 0,i.authInfo=void 0!==e.authInfo&&null!==e.authInfo?r.AuthInfo.fromPartial(e.authInfo):void 0,i.signatures=(null==(t=e.signatures)?void 0:t.map(e=>e))||[],i}},r.TxRaw={encode(e,t=o.default.Writer.create()){for(let r of(0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),e.signatures))t.uint32(26).bytes(r);return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.bodyBytes=r.bytes();break;case 2:n.authInfoBytes=r.bytes();break;case 3:n.signatures.push(r.bytes());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({bodyBytes:E(e.bodyBytes)?x(e.bodyBytes):new Uint8Array,authInfoBytes:E(e.authInfoBytes)?x(e.authInfoBytes):new Uint8Array,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map(e=>x(e)):[]}),toJSON(e){let t={};return void 0!==e.bodyBytes&&(t.bodyBytes=A(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=A(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map(e=>A(void 0!==e?e:new Uint8Array)):t.signatures=[],t},fromPartial(e){var t,r,i;let n=u();
1return n.bodyBytes=null!=(t=e.bodyBytes)?t:new Uint8Array,n.authInfoBytes=null!=(r=e.authInfoBytes)?r:new Uint8Array,n.signatures=(null==(i=e.signatures)?void 0:i.map(e=>e))||[],n}},r.SignDoc={encode:(e,t=o.default.Writer.create())=>(0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),""!==e.chainId&&t.uint32(26).string(e.chainId),"0"!==e.accountNumber&&t.uint32(32).uint64(e.accountNumber),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=h();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.bodyBytes=r.bytes();break;case 2:n.authInfoBytes=r.bytes();break;case 3:n.chainId=r.string();break;case 4:n.accountNumber=k(r.uint64());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({bodyBytes:E(e.bodyBytes)?x(e.bodyBytes):new Uint8Array,authInfoBytes:E(e.authInfoBytes)?x(e.authInfoBytes):new Uint8Array,chainId:E(e.chainId)?String(e.chainId):"",accountNumber:E(e.accountNumber)?String(e.accountNumber):"0"}),toJSON(e){let t={};return void 0!==e.bodyBytes&&(t.bodyBytes=A(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=A(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=e.accountNumber),t},fromPartial(e){var t,r,i,n;let o=h();return o.bodyBytes=null!=(t=e.bodyBytes)?t:new Uint8Array,o.authInfoBytes=null!=(r=e.authInfoBytes)?r:new Uint8Array,o.chainId=null!=(i=e.chainId)?i:"",o.accountNumber=null!=(n=e.accountNumber)?n:"0",o}},r.TxBody={encode(e,t=o.default.Writer.create()){for(let r of e.messages)s.Any.encode(r,t.uint32(10).fork()).ldelim();for(let r of(""!==e.memo&&t.uint32(18).string(e.memo),"0"!==e.timeoutHeight&&t.uint32(24).uint64(e.timeoutHeight),e.extensionOptions))s.Any.encode(r,t.uint32(8186).fork()).ldelim();for(let r of e.nonCriticalExtensionOptions)s.Any.encode(r,t.uint32(16378).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=p();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.messages.push(s.Any.decode(r,r.uint32()));break;case 2:n.memo=r.string();break;case 3:n.timeoutHeight=k(r.uint64());break;case 1023:n.extensionOptions.push(s.Any.decode(r,r.uint32()));break;case 2047:n.nonCriticalExtensionOptions.push(s.Any.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return n},fromJSON:e=>({messages:Array.isArray(null==e?void 0:e.messages)?e.messages.map(e=>s.Any.fromJSON(e)):[],memo:E(e.memo)?String(e.memo):"",timeoutHeight:E(e.timeoutHeight)?String(e.timeoutHeight):"0",extensionOptions:Array.isArray(null==e?void 0:e.extensionOptions)?e.extensionOptions.map(e=>s.Any.fromJSON(e)):[],nonCriticalExtensionOptions:Array.isArray(null==e?void 0:e.nonCriticalExtensionOptions)?e.nonCriticalExtensionOptions.map(e=>s.Any.fromJSON(e)):[]}),toJSON(e){let t={};return e.messages?t.messages=e.messages.map(e=>e?s.Any.toJSON(e):void 0):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight),e.extensionOptions?t.extensionOptions=e.extensionOptions.map(e=>e?s.Any.toJSON(e):void 0):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map(e=>e?s.Any.toJSON(e):void 0):t.nonCriticalExtensionOptions=[],t},fromPartial(e){var t,r,i,n,o;let a=p();return a.messages=(null==(t=e.messages)?void 0:t.map(e=>s.Any.fromPartial(e)))||[],a.memo=null!=(r=e.memo)?r:"",a.timeoutHeight=null!=(i=e.timeoutHeight)?i:"0",a.extensionOptions=(null==(n=e.extensionOptions)?void 0:n.map(e=>s.Any.fromPartial(e)))||[],a.nonCriticalExtensionOptions=(null==(o=e.nonCriticalExtensionOptions)?void 0:o.map(e=>s.Any.fromPartial(e)))||[],a}},r.AuthInfo={encode(e,t=o.default.Writer.create()){for(let i of e.signerInfos)r.SignerInfo.encode(i,t.uint32(10).fork()).ldelim();return void 0!==e.fee&&r.Fee.encode(e.fee,t.uint32(18).fork()).ldelim(),t},decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=f();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.signerInfos.push(r.SignerInfo.decode(i,i.uint32()));break;case 2:a.fee=r.Fee.decode(i,i.uint32());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({signerInfos:Array.isArray(null==e?void 0:e.signerInfos)?e.signerInfos.map(e=>r.SignerInfo.fromJSON(e)):[],fee:E(e.fee)?r.Fee.fromJSON(e.fee):void 0}),toJSON(e){let t={};return e.signerInfos?t.signerInfos=e.signerInfos.map(e=>e?r.SignerInfo.toJSON(e):void 0):t.signerInfos=[],void 0!==e.fee&&(t.fee=e.fee?r.Fee.toJSON(e.fee):void 0),t},fromPartial(e){var t;let i=f();return i.signerInfos=(null==(t=e.signerInfos)?void 0:t.map(e=>r.SignerInfo.fromPartial(e)))||[],i.fee=void 0!==e.fee&&null!==e.fee?r.Fee.fromPartial(e.fee):void 0,i}},r.SignerInfo={encode:(e,t=o.default.Writer.create())=>(void 0!==e.publicKey&&s.Any.encode(e.publicKey,t.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&r.ModeInfo.encode(e.modeInfo,t.uint32(18).fork()).ldelim(),"0"!==e.sequence&&t.uint32(24).uint64(e.sequence),t),decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=g();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.publicKey=s.Any.decode(i,i.uint32());break;case 2:a.modeInfo=r.ModeInfo.decode(i,i.uint32());break;case 3:a.sequence=k(i.uint64());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({publicKey:E(e.publicKey)?s.Any.fromJSON(e.publicKey):void 0,modeInfo:E(e.modeInfo)?r.ModeInfo.fromJSON(e.modeInfo):void 0,sequence:E(e.sequence)?String(e.sequence):"0"}),toJSON(e){let t={};return void 0!==e.publicKey&&(t.publicKey=e.publicKey?s.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(t.modeInfo=e.modeInfo?r.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(t.sequence=e.sequence),t},fromPartial(e){var t;let i=g();return i.publicKey=void 0!==e.publicKey&&null!==e.publicKey?s.Any.fromPartial(e.publicKey):void 0,i.modeInfo=void 0!==e.modeInfo&&null!==e.modeInfo?r.ModeInfo.fromPartial(e.modeInfo):void 0,i.sequence=null!=(t=e.sequence)?t:"0",
1i}},r.ModeInfo={encode:(e,t=o.default.Writer.create())=>(void 0!==e.single&&r.ModeInfo_Single.encode(e.single,t.uint32(10).fork()).ldelim(),void 0!==e.multi&&r.ModeInfo_Multi.encode(e.multi,t.uint32(18).fork()).ldelim(),t),decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=m();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.single=r.ModeInfo_Single.decode(i,i.uint32());break;case 2:a.multi=r.ModeInfo_Multi.decode(i,i.uint32());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({single:E(e.single)?r.ModeInfo_Single.fromJSON(e.single):void 0,multi:E(e.multi)?r.ModeInfo_Multi.fromJSON(e.multi):void 0}),toJSON(e){let t={};return void 0!==e.single&&(t.single=e.single?r.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(t.multi=e.multi?r.ModeInfo_Multi.toJSON(e.multi):void 0),t},fromPartial(e){let t=m();return t.single=void 0!==e.single&&null!==e.single?r.ModeInfo_Single.fromPartial(e.single):void 0,t.multi=void 0!==e.multi&&null!==e.multi?r.ModeInfo_Multi.fromPartial(e.multi):void 0,t}},r.ModeInfo_Single={encode:(e,t=o.default.Writer.create())=>(0!==e.mode&&t.uint32(8).int32(e.mode),t),decode(e,t){let r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n={mode:0};for(;r.pos<i;){let e=r.uint32();e>>>3==1?n.mode=r.int32():r.skipType(7&e)}return n},fromJSON:e=>({mode:E(e.mode)?(0,a.signModeFromJSON)(e.mode):0}),toJSON(e){let t={};return void 0!==e.mode&&(t.mode=(0,a.signModeToJSON)(e.mode)),t},fromPartial(e){var t;let r={mode:0};return r.mode=null!=(t=e.mode)?t:0,r}},r.ModeInfo_Multi={encode(e,t=o.default.Writer.create()){for(let i of(void 0!==e.bitarray&&l.CompactBitArray.encode(e.bitarray,t.uint32(10).fork()).ldelim(),e.modeInfos))r.ModeInfo.encode(i,t.uint32(18).fork()).ldelim();return t},decode(e,t){let i=e instanceof o.default.Reader?e:new o.default.Reader(e),n=void 0===t?i.len:i.pos+t,a=y();for(;i.pos<n;){let e=i.uint32();switch(e>>>3){case 1:a.bitarray=l.CompactBitArray.decode(i,i.uint32());break;case 2:a.modeInfos.push(r.ModeInfo.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return a},fromJSON:e=>({bitarray:E(e.bitarray)?l.CompactBitArray.fromJSON(e.bitarray):void 0,modeInfos:Array.isArray(null==e?void 0:e.modeInfos)?e.modeInfos.map(e=>r.ModeInfo.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.bitarray&&(t.bitarray=e.bitarray?l.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?t.modeInfos=e.modeInfos.map(e=>e?r.ModeInfo.toJSON(e):void 0):t.modeInfos=[],t},fromPartial(e){var t;let i=y();return i.bitarray=void 0!==e.bitarray&&null!==e.bitarray?l.CompactBitArray.fromPartial(e.bitarray):void 0,i.modeInfos=(null==(t=e.modeInfos)?void 0:t.map(e=>r.ModeInfo.fromPartial(e)))||[],i}},r.Fee={encode(e,t=o.default.Writer.create()){for(let r of e.amount)c.Coin.encode(r,t.uint32(10).fork()).ldelim();
1return"0"!==e.gasLimit&&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 r=e instanceof o.default.Reader?e:new o.default.Reader(e),i=void 0===t?r.len:r.pos+t,n=b();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:n.amount.push(c.Coin.decode(r,r.uint32()));break;case 2:n.gasLimit=k(r.uint64());break;case 3:n.payer=r.string();break;case 4:n.granter=r.string();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({amount:Array.isArray(null==e?void 0:e.amount)?e.amount.map(e=>c.Coin.fromJSON(e)):[],gasLimit:E(e.gasLimit)?String(e.gasLimit):"0",payer:E(e.payer)?String(e.payer):"",granter:E(e.granter)?String(e.granter):""}),toJSON(e){let t={};return e.amount?t.amount=e.amount.map(e=>e?c.Coin.toJSON(e):void 0):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=e.gasLimit),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t},fromPartial(e){var t,r,i,n;let o=b();return o.amount=(null==(t=e.amount)?void 0:t.map(e=>c.Coin.fromPartial(e)))||[],o.gasLimit=null!=(r=e.gasLimit)?r:"0",o.payer=null!=(i=e.payer)?i:"",o.granter=null!=(n=e.granter)?n:"",o}};var v=void 0!==v?v:"u">typeof self?self:"u">typeof window?window:e.g;let w=v.atob||(e=>v.Buffer.from(e,"base64").toString("binary"));function x(e){let t=w(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}let S=v.btoa||(e=>v.Buffer.from(e,"binary").toString("base64"));function A(e){let t=[];for(let r of e)t.push(String.fromCharCode(r));return S(t.join(""))}function k(e){return e.toString()}function E(e){return null!=e}o.default.util.Long!==n.default&&(o.default.util.Long=n.default,o.default.configure())},86033,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ProtoSignDocDecoder=void 0;let i=e.r(383218),n=e.r(715087);r.ProtoSignDocDecoder=class e{static decode(t){return new e(i.SignDoc.decode(t))}constructor(e,t=n.defaultProtoCodec){this.signDoc=e,this.protoCodec=t}get txBody(){return this._txBody||(this._txBody=i.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||(this._authInfo=i.AuthInfo.decode(this.signDoc.authInfoBytes)),this._authInfo}get chainId(){return this.signDoc.chainId}get accountNumber(){return this.signDoc.accountNumber.toString()}toBytes(){return i.SignDoc.encode(this.signDoc).finish()}toJSON(){return{txBody:Object.assign(Object.assign({},i.TxBody.toJSON(this.txBody)),{messages:this.txMsgs.map(e=>this.protoCodec.unpackedAnyToJSONRecursive(e))}),authInfo:i.AuthInfo.toJSON(this.authInfo),chainId:this.chainId,accountNumber:this.accountNumber}}}},338448,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},417729,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.BaseKVStore=void 0,r.BaseKVStore=class{constructor(e,t){this.provider=e,this._prefix=t}get(e){return i(this,void 0,void 0,function*(){let t=this.prefix()+"/"+e;return(yield this.provider.get())[t]})}set(e,t){let r=this.prefix()+"/"+e;return this.provider.set({[r]:t})}prefix(){return this._prefix}}},567665,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.ExtensionKVStore=void 0;let n=e.r(417729);class o extends n.BaseKVStore{constructor(e){if(o.KVStoreProvider||("u"<typeof browser?console.log("You should use ExtensionKVStore on the extension environment."):browser.storage&&browser.storage.local?o.KVStoreProvider={get:browser.storage.local.get,set:browser.storage.local.set,multiGet:browser.storage.local.get}:console.log("The 'browser' exists, but it doesn't seem to be an extension environment. This can happen in Safari browser.")),!o.KVStoreProvider)throw Error("Can't initialize kv store for browser extension");super(o.KVStoreProvider,e)}multiGet(e){var t;return i(this,void 0,void 0,function*(){e=Array.from(new Set(e));let r=null!=(t=yield o.KVStoreProvider.multiGet(e.map(e=>this.prefix()+"/"+e)))?t:{};for(let e of Object.keys(r))r[e.slice(this.prefix().length+1)]=r[e],delete r[e];return r})}}r.ExtensionKVStore=o},823564,(e,t,r)=>{"use strict";
1e.i(494514),Object.defineProperty(r,"__esModule",{value:!0}),r.MemoryKVStore=void 0;let i=e.r(417729);class n{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 r=e[t];if(null!=r&&"object"==typeof r){if(r.constructor!==Object&&r.constructor!==Array)throw Error(`${t} may not be serializable: ${r.constructor.name}`);this.checkNotPrimitiveField(r)}})}}class o extends i.BaseKVStore{constructor(e){super(new n,e)}}r.MemoryKVStore=o},565602,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LocalKVStore=void 0,r.LocalKVStore=class{constructor(e){this._prefix=e}get(e){let t=this.prefix()+"/"+e,r=localStorage.getItem(t);return null===r?Promise.resolve(void 0):Promise.resolve(JSON.parse(r))}set(e,t){let r=this.prefix()+"/"+e;return null===t?Promise.resolve(localStorage.removeItem(r)):Promise.resolve(localStorage.setItem(r,JSON.stringify(t)))}prefix(){return this._prefix}}},530035,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.IndexedDBKVStore=void 0,r.IndexedDBKVStore=class{constructor(e){this._prefix=e}get(e){return i(this,void 0,void 0,function*(){let t=(yield this.getDB()).transaction([this.prefix()],"readonly").objectStore(this.prefix());return new Promise((r,i)=>{let n=t.get(e);n.onerror=e=>{e.stopPropagation(),i(e.target)},n.onsuccess=()=>{n.result?r(n.result.data):r(void 0)}})})}set(e,t){return i(this,void 0,void 0,function*(){if(null===t){let t=(yield this.getDB()).transaction([this.prefix()],"readwrite").objectStore(this.prefix());return new Promise((r,i)=>{let n=t.delete(e);n.onerror=e=>{e.stopPropagation(),i(e.target)},n.onsuccess=()=>{r()}})}{let r=(yield this.getDB()).transaction([this.prefix()],"readwrite").objectStore(this.prefix());return new Promise((i,n)=>{let o=r.put({key:e,data:t});o.onerror=e=>{e.stopPropagation(),n(e.target)},o.onsuccess=()=>{i()}})}})}prefix(){return this._prefix}getDB(){return i(this,void 0,void 0,function*(){return this.cachedDB?this.cachedDB:new Promise((e,t)=>{let r=window.indexedDB.open(this.prefix());r.onerror=e=>{e.stopPropagation(),t(e.target)},r.onupgradeneeded=e=>{e.target.result.createObjectStore(this.prefix(),{keyPath:"key"})},r.onsuccess=()=>{this.cachedDB=r.result,e(r.result)}})})}}},356076,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.PrefixKVStore=void 0,r.PrefixKVStore=class{constructor(e,t){this.kvStore=e,this._prefix=t}prefix(){return this._prefix}get(e){return i(this,void 0,void 0,function*(){let t=this.prefix()+"/"+e;return yield this.kvStore.get(t)})}set(e,t){return i(this,void 0,void 0,function*(){let r=this.prefix()+"/"+e;return yield this.kvStore.set(r,t)})}}},320245,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.WrapMultiGetKVStore=void 0,r.WrapMultiGetKVStore=class{constructor(e){this.kvStore=e}multiGet(e){return i(this,void 0,void 0,function*(){e=Array.from(new Set(e));let t={},r=[];for(let n of e)r.push(i(this,void 0,void 0,function*(){t[n]=yield this.kvStore.get(n)}));return yield Promise.all(r),t})}}},864967,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);
1(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(338448),r),n(e.r(567665),r),n(e.r(417729),r),n(e.r(823564),r),n(e.r(565602),r),n(e.r(530035),r),n(e.r(356076),r),n(e.r(320245),r)},48437,(e,t,r)=>{t.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","i
1dylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","
1nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","roz
1kaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","
1sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},731878,(e,t,r)=>{t.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","å°±","分","对","成","会","可","主","发","å¹´","动","同","å·¥","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","å­¦","法","所","民","得","经","十","三","之","进","着","等","部","度","å®¶","电","力","里","如","æ°´","化","高","自","二","理","èµ·","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","å¹³","å½¢","相","全","表","间","æ ·","与","关","å
1„","重","新","线","内","数","æ­£","心","反","ä½ ","明","看","原","又","么","利","比","或","但","è´¨","气","第","向","道","命","æ­¤","变","条","只","没","结","è§£","问","意","建","月","公","无","ç³»","军","很","情","者","最","立","代","想","å·²","通","å¹¶","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","æ´»","设","及","管","特","ä»¶","长","求","老","头","基","资","è¾¹","流","è·¯","级","少","图","å±±","统","接","知","较","将","组","见","计","别","她","手","角","期","æ ¹","论","运","农","指","几","九","区","强","放","决","西","被","å¹²","做","必","战","先","回","则","ä»»","取","据","处","队","南","给","色","光","门","即","保","æ²»","北","造","百","规","热","领","七","æµ·","口","东","导","器","压","志","世","金","增","争","济","阶","æ²¹","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","è¾¾","èµ°","积","示","è®®","声","报","斗","完","ç±»","八","离","华","名","ç¡®","才","科","å¼ ","ä¿¡","马","节","话","ç±³","整","空","元","况","今","集","温","ä¼ ","土","许","æ­¥","群","广","石","è®°","需","段","研","界","拉","林","律","叫","且","ç©¶","观","越","织","装","å½±","算","低","持","音","众","书","布","复","容","儿","é¡»","际","商","非","验","连","断","æ·±","难","近","矿","千","周","委","ç´ ","技","备","半","办","青","省","列","ä¹ ","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","ç§°","太","准","ç²¾","值","号","率","族","ç»´","划","选","标","写","存","候","毛","亲","å¿«","效","斯","院","查","江","型","眼","王","按","æ ¼","养","易","ç½®","æ´¾","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","ä»·","严","首","底","æ¶²","官","å¾·","随","病","苏","失","尔","æ­»","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","æ°§","势","告","李","台","落","木","帮","è½®","ç ´","亚","师","围","注","远","字","材","排","供","æ²³","态","封","另","施","减","树","溶","怎","æ­¢","案","言","士","均","æ­¦","固","叶","é±¼","æ³¢","视","仅","è´¹","ç´§","爱","å·¦","ç« ","早","朝","害","ç»­","è½»","服","试","食","充","兵","源","判","护","司","è¶³","某","练","å·®","致","板","田","降","黑","犯","负","击","范","ç»§","兴","ä¼¼","余","坚","曲","输","ä¿®","故","城","夫","够","送","笔","船","占","右","è´¢","吃","富","春","职","觉","汉","画","功","å·´","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","è´£","站","简","è¿°","钱","副","å°½","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","å¾®","让","控","州","良","è½´","找","否","纪","益","依","优","é¡¶","础","è½½","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","ç§»","频","逐","靠","æ··","母","短","皮","终","聚","æ±½","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","æ´²","刻","括","激","孔","搞","甚","室","待","æ ¸","æ ¡","散","ä¾µ","吧","甲","游","久","菜","味","旧","模","湖","è´§","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","è®­","愿","审","附","获","茶","鲜","ç²®","斤","å­©","脱","ç¡«","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","ä¹±","燃","矛","乎","杀","药","宁","鲁","è´µ","钟","煤","读","班","伯","香","介","è¿«","句","丰","培","握","兰","担","弦","蛋","沉","假","ç©¿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","ä¹°","染","井","概","慢","怕","磁","倍","祖","皇","促","静","è¡¥","评","ç¿»","肉","è·µ","å°¼","è¡£","宽","扬","棉","希","伤","操","垂","秋","宜","æ°¢","套","督","振","架","äº
1®","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","è¡¡","鸡","孙","å»¶","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","èµµ","è·³","哥","å­£","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","æ°¸","宗","苗","川","炉","岩","å¼±","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","èµ¶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","æ³½","脑","壤","碳","欧","遍","ä¾§","寨","敢","å½»","虑","斜","薄","庭","纳","å¼¹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","æ°¯","遇","份","毒","æ³¥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","å°º","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","ç´¯","偏","典","馆","ç´¢","秦","脂","æ½®","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","è°¢","奋","è´­","磨","君","æ± ","旁","碎","骨","监","捕","弟","暴","割","è´¯","殊","释","词","亡","壁","é¡¿","宝","午","尘","闻","揭","炮","残","冬","æ¡¥","妇","è­¦","综","招","吴","付","æµ®","遭","徐","您","摇","è°·","赞","ç®±","隔","订","男","吹","园","纷","唐","è´¥","宋","玻","å·¨","耕","坦","荣","闭","æ¹¾","键","凡","é©»","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","è´¸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","æ´ª","è´º","闪","柬","爆","烯","æ´¥","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","å°¾","è½§","冰","è´¡","登","黎","削","钻","勒","逃","障","æ°¨","郭","å³°","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","æ ª","健","售","股","岛","甘","泡","睡","ç«¥","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","æ·¡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","æ³µ","蓝","拖","洞","授","镜","辛","壮","锋","è´«","虚","弯","摩","æ³°","å¹¼","å»·","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","å°¤","琴","循","描","膜","违","夹","腰","缘","珠","ç©·","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","è´®","礼","滤","钠","纹","ç½¢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","è·¨","默","挖","链","扫","喝","袋","炭","污","幕","诸","å¼§","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","æ°®","兼","隐","碍","赫","拨","å¿ ","肃","缸","牵","抢","博","å·§","壳","兄","杜","讯","诚","碧","祥","柯","页","å·¡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","è¶£","抬","荒","腾","è´´","柔","æ»´","猛","阔","辆","妻","å¡«","撤","储","ç­¾","闹","扰","ç´«","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","å·©","挤","偶","弃","æ§½","劲","ä¹³","邓","吉","仁","烂","砖","租","乌","舰","ä¼´","瓜","浅","丙","暂","燥","æ©¡","柳","è¿·","暖","牌","ç§§","胆","详","ç°§","踏","瓷","è°±","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","å½¹","å½¼","悉","鸭","趋","凤","晨","畜","辈","ç§©","卵","ç½²","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","è´·","漏","稿","冠","å«©","胁","芯","牢","叛","蚀","奥","鸣","å²­","羊","凭","串","塘","绘","酵","融","盆","锡","庙","ç­¹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","æ·»","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","æ ½","炒","杯","患","馏","劝","豪","è¾½","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","ä¼°","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","é©¶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","å­¤","吐","孟","渠","屈","疾","妙","惜","ä»°","狠","胀","谐","抛","é
1œ‰","桑","岗","嘛","è¡°","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","é¼»","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","å°¸","凸","绅","坯","牺","焰","è½°","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","å¿§","酚","顽","ç¾½","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","å§»","èµ´","å®´","烦","债","帐","斑","铃","旨","醇","董","饼","雏","å§¿","拌","傅","腹","妥","揉","è´¤","拆","æ­ª","葡","胺","丢","浩","å¾½","昂","垫","挡","览","è´ª","慰","ç¼´","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","å¹»","柄","惠","惨","ä½³","仇","腊","窝","涤","剑","瞧","å ¡","æ³¼","葱","罩","霍","捞","胎","苍","滨","ä¿©","捅","湘","砍","霞","邵","萄","疯","æ·®","遂","熊","粪","烘","宿","æ¡£","戈","驳","嫂","裕","徙","ç®­","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","å µ","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","å··","饿","祸","丘","玄","溜","曰","逻","å½­","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},700721,(e,t,r)=>{t.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","å°±","分","對","成","會","可","主","發","å¹´","動","同","å·¥","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","å­¸","法","所","民","得","經","十","三","之","進","著","等","部","度","å®¶","電","力","裡","如","æ°´","化","高","自","二","理","èµ·","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","å¹³","å½¢","相","全","表","間","樣","與","關","各","重","新","線","內","數","æ­£","心","反","ä½ ","明","看","原","又","麼","利","比","或","但","質","æ°£","第","向","道","命","æ­¤","變","條","只","沒","結","è§£","問","意","建","月","公","無","ç³»","軍","很","情","者","最","立","代","想","å·²","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","æ´»","設","及","管","特","ä»¶","長","求","老","é ­","基","資","邊","流","è·¯","級","少","圖","å±±","çµ±","接","知","較","將","組","見","計","別","她","手","角","期","æ ¹","論","運","è¾²","指","å¹¾","九","區","å¼·","放","決","西","被","å¹¹","做","必","戰","先","回","則","ä»»","取","據","處","隊","南","給","色","光","門","即","保","æ²»","北","造","百","規","熱","領","七","æµ·","口","æ
1±","導","器","壓","志","世","金","增","爭","濟","階","æ²¹","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","å ´","身","車","例","真","務","具","萬","每","目","至","達","èµ°","積","示","è­°","聲","å ±","鬥","完","類","八","離","華","名","確","才","科","å¼µ","ä¿¡","馬","節","話","ç±³","整","空","元","況","今","集","溫","傳","土","許","æ­¥","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","ç©¶","觀","越","織","裝","å½±","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","æ·±","難","近","礦","千","週","委","ç´ ","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","æ­·","市","克","何","除","消","構","府","稱","太","準","ç²¾","值","號","率","族","ç¶­","劃","選","標","寫","存","候","毛","親","å¿«","效","斯","院","查","江","型","眼","王","按","æ ¼","養","易","ç½®","æ´¾","層","片","始","卻","專","狀","育","å» ","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","ç´°","引","聽","該","鐵","價","嚴","首","底","æ¶²","官","å¾·","隨","病","蘇","失","爾","æ­»","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","æ°§","勢","告","李","台","落","木","幫","輪","ç ´","亞","師","圍","注","遠","字","材","排","供","æ²³","態","封","另","施","減","樹","溶","怎","æ­¢","案","言","士","均","æ­¦","固","葉","魚","æ³¢","視","僅","è²»","緊","愛","å·¦","ç« ","早","朝","害","續","輕","服","試","食","充","兵","源","判","è­·","司","è¶³","某","ç·´","å·®","致","板","田","降","黑","犯","è² ","擊","范","ç¹¼","興","ä¼¼","餘","堅","曲","輸","ä¿®","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","æ¼¢","畫","功","å·´","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","ç°¡","è¿°","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","å¾®","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","çµ²","協","訴","念","陳","仍","羅","é¹½","友","洋","錯","苦","夜","刑","ç§»","é »","逐","靠","æ··","母","短","皮","終","聚","æ±½","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","æ´²","刻","括","激","孔","搞","甚","室","待","æ ¸","æ ¡","散","ä¾µ","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","ç©©","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","é®®","ç³§","斤","å­©","脫","ç¡«","肥","善","龍","演","父","漸","血","æ­¡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","é­¯","è²´","鐘","煤","讀","班","伯","香","介","è¿«","句","豐","培","握","蘭","擔","弦","蛋","沉","假","ç©¿","執","答","樂","誰","順","煙","縮","å¾µ","臉","喜","松","腳","困","異","免","背","星","福","è²·","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","ç¿»","肉","踐","å°¼","è¡£","寬","揚","棉","希","傷","操","垂","秋","宜","æ°«","套","督","振","架","亮","末","憲","慶","ç·¨","牛","觸","映","雷","銷","è©©","座","居","抓","裂","胞","呼","娘","景","威","ç¶ ","晶","厚","盟","è¡¡","雞","å­«","å»¶","危","膠","屋","鄉","臨","陸","é¡§","掉","呀","燈","æ­²","措","束","耐","劇","玉","趙","è·³","哥","å­£","課","凱","胡","額","款","ç´¹","卷","齊","偉","蒸","殖","æ°¸","宗","苗","川","爐","岩","å¼±","零","楊","奏","沿","露","æ¡¿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","è³½","æ­¸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","æ©«","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","å¾¹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","è·¡","卡","æ°¯","遇","份","毒","æ³¥","退","洗","擺","灰","彩","è³£","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","å°º","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","ç´¯","偏","典","館","ç´¢","秦","脂","æ½®","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","è³¼","磨","君","æ± ","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","è­¦","綜","招","吳","付","æµ®","遭","徐","您","搖","è°·","贊","ç®±","隔","訂","男","吹","園","紛","唐","敗","宋","玻","å·¨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","é¹¼","齒","截","煉","麻","ç´¡","禁","廢","盛","版","ç·©","æ·¨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","ç¶²","舞","店","噴","縱","寸","汗","掛","æ´ª","賀","閃","柬","爆","烯","æ´¥","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","å°¾","軋","冰","è²¢","登","黎","削","鑽","勒","逃","障","æ°¨","郭","å³°","å¹£","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","æ ª","健","售","股","å³¶","甘","泡","睡","ç«¥","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","æ·¡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","æ³µ","藍","拖","洞","授","鏡","辛","壯","鋒","è²§","虛","彎","摩","æ³°","å¹¼","å»·","尊","窗","ç¶±","弄","隸","疑","氏","å®®","姐","震","瑞","怪","å°¤","琴","循","描","膜","違","夾","腰","ç·£","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","ç½·","拍","咱","喊","袖","埃","勤","ç½°","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","è·¨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","å¼§","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","æ°®","兼","隱","礙","赫","撥","å¿ ","肅","缸","牽","搶","博","å·§","殼","兄","杜","訊","誠","碧","祥","柯","頁","å·¡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","è¶£","抬","荒","騰","è²¼","柔","æ»´","猛","闊","輛","妻","å¡«","撤","儲","ç°½","鬧","擾","ç´«","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","æ§½","勁","ä¹³","鄧","吉","仁","爛","磚","租","烏","艦","ä¼´","瓜","æ·º","丙","暫","燥","æ©¡","柳","è¿·","暖","牌","ç§§","膽","詳","ç°§","踏","瓷","譜","呆","賓","糊","洛","輝","憤","ç«¶","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","ç³¾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","å½¹","å½¼","悉","é´¨","趨","é³³","晨","畜","輩","ç§©","卵","ç½²","梯","炎","灘","棋","驅","篩","å³½","冒","啥","壽","è­¯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","å«©","脅","芯","牢","叛","蝕","奧","é³´","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","é³¥","漆","沈","眉","疏","æ·»","棒","穗","硝","韓","逼","扭","僑","æ¶¼","挺","碗","æ ½","炒","杯","患","餾","勸","豪","遼","勃","é´»","旦","吏","拜","狗","埋","è¼¥","掩","飲","搬","ç½µ","è¾­","勾","扣","ä¼°","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","å­¤","吐","孟","渠","屈","疾","妙","惜","ä»°","狠","脹","è«§","拋","é»´","桑","崗","嘛","è¡°","盜","滲","臟","è³´","æ¹§","甜","曹","閱","肌","哩","厲","烴","ç·¯","毅","昨","偽","症","煮","嘆","釘","搭","莖","ç± ","酷","偷","弓","錐","恆","傑","坑","é¼»","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","ç´³","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","ç¾½","æ¼²","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","å§»","èµ´","å®´","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","å§¿","拌","傅","腹","妥","揉","è³¢","拆","æ­ª","葡","胺","丟","浩","å¾½","昂","墊","擋","覽","貪","慰","ç¹³","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","è«®","刮","駕","纜","悟","摘","鉺","擲","頗","å¹»","柄","惠","慘","ä½³","仇","臘","窩","滌","劍","瞧","å ¡","潑","蔥","罩","é
1œ","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","æ·®","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","ç®­","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","å µ","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","å··","餓","禍","丘","玄","溜","曰","邏","å½­","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},508107,(e,t,r)=>{t.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합ᄉá…
1µá†¯","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산채á
1†¨","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","ᄉá…
1µá„‹á…µá†«","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","ᄉá…
1µá†¯á„’ᅥᆷ","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오ᄉá…
1µá†¸","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","채á
1†¨á„€á…¡á„‡á…¡á†¼","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},361210,(e,t,r)=>{t.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","a
1péritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galer
1ie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","o
1pale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","ster
1num","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},487246,(e,t,r)=>{t.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guid
1are","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugi
1o","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scie
1nza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},728403,(e,t,r)=>{t.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","alia
1do","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","
1informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","paus
1a","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},975446,(e,t,r)=>{t.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐã
1¾","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむã
1‚Š","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げさã
1‚™ã„","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょとã
1‚™ã†","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづã
1­","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほとã
1‚™","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなã
1¨","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},32827,(e,t,r)=>{t.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","am
1istoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deix
1ar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inch
1ar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","paus
1ar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","ver
1sar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},196364,(e,t,r)=>{t.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","de
1sk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","ric
1h","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},609326,(e,t,r)=>{"use strict";let i;
1Object.defineProperty(r,"__esModule",{value:!0});let n={};r.wordlists=n,r._default=i;try{r._default=i=e.r(48437),n.czech=i}catch(e){}try{r._default=i=e.r(731878),n.chinese_simplified=i}catch(e){}try{r._default=i=e.r(700721),n.chinese_traditional=i}catch(e){}try{r._default=i=e.r(508107),n.korean=i}catch(e){}try{r._default=i=e.r(361210),n.french=i}catch(e){}try{r._default=i=e.r(487246),n.italian=i}catch(e){}try{r._default=i=e.r(728403),n.spanish=i}catch(e){}try{r._default=i=e.r(975446),n.japanese=i,n.JA=i}catch(e){}try{r._default=i=e.r(32827),n.portuguese=i}catch(e){}try{r._default=i=e.r(196364),n.english=i,n.EN=i}catch(e){}},176450,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MessageRegistry=void 0,r.MessageRegistry=class{constructor(){this.registeredMsgType=new Map}registerMessage(e){if(this.registeredMsgType.has(e.type()))throw Error(`Already registered type ${e.type()}`);this.registeredMsgType.set(e.type(),e)}parseMessage(e){if(!e.type)throw Error("Null type");let t=this.registeredMsgType.get(e.type);if(!t)throw Error(`Unregistered msg type ${e.type}`);return Object.setPrototypeOf(e.msg,t.prototype)}}},6399,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fromHex=r.toHex=void 0,r.toHex=function(e){let t="";for(let r of e)t+=("0"+r.toString(16)).slice(-2);return t},r.fromHex=function(e){if(e.length%2!=0)throw Error("hex string length must be a multiple of 2");let t=[];for(let r=0;r<e.length;r+=2){let i=e.substr(r,2);if(!i.match(/[0-9a-f]{2}/i))throw Error("hex string contains invalid characters");t.push(parseInt(i,16))}return new Uint8Array(t)}},441561,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.JSONUint8Array=void 0;let i=e.r(6399);r.JSONUint8Array=class e{static parse(e){return JSON.parse(e,(e,t)=>{if("__proto__"===e)throw Error("__proto__ is disallowed");return t&&"string"==typeof t&&t.startsWith("__uint8array__")?(0,i.fromHex)(t.replace("__uint8array__","")):"u">typeof BigInt&&t&&"string"==typeof t&&t.startsWith("__bigint__")?BigInt(t.replace("__bigint__","")):t})}static stringify(e){return JSON.stringify(e,(e,t)=>{if("__proto__"===e)throw Error("__proto__ is disallowed");if(t&&(t instanceof Uint8Array||"object"==typeof t&&"type"in t&&"data"in t&&"Buffer"===t.type&&Array.isArray(t.data))){let e=t instanceof Uint8Array?t:new Uint8Array(t.data);return`__uint8array__${(0,i.toHex)(e)}`}return"bigint"==typeof t?`__bigint__${t.toString()}`:t})}static wrap(t){if(void 0!==t)return JSON.parse(e.stringify(t))}static unwrap(t){if(void 0!==t)return e.parse(e.stringify(t))}}},267186,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.Router=void 0;let n=e.r(176450),o=e.r(441561);r.Router=class{constructor(e){this.envProducer=e,this.msgRegistry=new n.MessageRegistry,this.registeredHandler=new Map,this.guards=[],this.port="",this._isInitialized=!1}get isInitialized(){return this._isInitialized}registerMessage(e){this.msgRegistry.registerMessage(e)}addHandler(e,t){if(this.registeredHandler.has(e))throw Error(`Already registered type ${e}`);this.registeredHandler.set(e,t)}addGuard(e){this.guards.push(e)}listen(e,t){return i(this,void 0,void 0,function*(){if(this.port=e,this.attachHandler(),t){let e;this._initWaiter=new Promise(t=>{e=t}),yield t(),e()}this._isInitialized=!0})}unlisten(){this.port="",this.detachHandler()}handleMessage(e,t){var r;return i(this,void 0,void 0,function*(){this.isInitialized||(yield this._initWaiter);let i=this.msgRegistry.parseMessage(o.JSONUint8Array.unwrap(e)),n=this.envProducer(t,null!=(r=i.routerMeta)?r:{});for(let e of this.guards)yield e(n,i,t);i.validateBasic();let a=i.route();if(!a)throw Error("Null router");let s=this.registeredHandler.get(a);if(!s)throw Error("Can't get handler");return o.JSONUint8Array.wrap((yield s(n,i)))})}}},799744,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0})},635862,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},777947,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},892081,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumProviderRpcError=r.KeplrError=void 0;class i extends Error{constructor(e,t,r){super(r),this.module=e,this.code=t,Object.setPrototypeOf(this,i.prototype)}}r.KeplrError=i,r.EthereumProviderRpcError=class e extends Error{constructor(t,r,i){super(r),this.code=t,this.data=i,Object.setPrototypeOf(this,e.prototype)}}},765773,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Message=void 0,r.Message=class{approveExternal(e,t){return!1}}},963226,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WEBPAGE_PORT=r.APP_PORT=r.BACKGROUND_PORT=void 0,r.BACKGROUND_PORT="background",r.APP_PORT="popup",r.WEBPAGE_PORT="webpage"},568208,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.sendSimpleMessage=r.SimpleMessage=void 0;let n=e.r(765773),o=Symbol(),a=Symbol();class s extends n.Message{constructor(e,t,r){for(const i of(super(),this[o]=e,this[a]=t,Object.keys(r)))this[i]=r[i]}route(){return this[o]}type(){return this[a]}validateBasic(){}approveExternal(){return!0}}r.SimpleMessage=s,r.sendSimpleMessage=function(e,t,r,n,o){return i(this,void 0,void 0,function*(){return yield e.sendMessage(t,new s(r,n,o))})}},774158,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(267186),r),n(e.r(799744),r),n(e.r(635862),r),n(e.r(777947),r),n(e.r(892081),r),n(e.r(765773),r),n(e.r(963226),r),n(e.r(176450),r),n(e.r(568208),r),n(e.r(441561),r)},820650,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.KeplrEnigmaUtils=void 0,r.KeplrEnigmaUtils=class{constructor(e,t){this.chainId=e,this.keplr=t}getPubkey(){return i(this,void 0,void 0,function*(){return yield this.keplr.getEnigmaPubKey(this.chainId)})}getTxEncryptionKey(e){return i(this,void 0,void 0,function*(){return yield this.keplr.getEnigmaTxEncryptionKey(this.chainId,e)})}encrypt(e,t){return i(this,void 0,void 0,function*(){return yield this.keplr.enigmaEncrypt(this.chainId,e,t)})}decrypt(e,t){return i(this,void 0,void 0,function*(){return yield this.keplr.enigmaDecrypt(this.chainId,e,t)})}}},44334,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.CosmJSOfflineSigner=r.CosmJSOfflineSignerOnlyAmino=void 0;class n{constructor(e,t,r){this.chainId=e,this.keplr=t,this.signOptions=r}getAccounts(){return i(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,t){return i(this,void 0,void 0,function*(){if(this.chainId!==t.chain_id)throw Error("Unmatched chain id with the offline signer");if((yield this.keplr.getKey(t.chain_id)).bech32Address!==e)throw Error("Unknown signer address");return yield this.keplr.signAmino(this.chainId,e,t,this.signOptions)})}sign(e,t){return i(this,void 0,void 0,function*(){return yield this.signAmino(e,t)})}}r.CosmJSOfflineSignerOnlyAmino=n,r.CosmJSOfflineSigner=class extends n{constructor(e,t,r){super(e,t,r)}signDirect(e,t){return i(this,void 0,void 0,function*(){if(this.chainId!==t.chainId)throw Error("Unmatched chain id with the offline signer");if((yield this.keplr.getKey(t.chainId)).bech32Address!==e)throw Error("Unknown signer address");return yield this.keplr.signDirect(this.chainId,e,t,this.signOptions)})}}},676894,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}
1,n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Keplr=void 0;let o=e.r(774158),a=e.r(820650),s=e.r(44334),l=n(e.r(12838)),c=n(e.r(711385)),d=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/"),u=n(e.r(379666));r.Keplr=class{constructor(e,t,r){this.version=e,this.mode=t,this.requester=r,this.enigmaUtils=new Map,this.defaultOptions={},this.ethereum=new p(this,this.requester),this.starknet=new g(this,this.requester),this.bitcoin=new m(this,this.requester)}ping(){return i(this,void 0,void 0,function*(){yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"chains","keplr-ping",{})})}enable(e){return"string"==typeof e&&(e=[e]),new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"permission-interactive","enable-access",{chainIds:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})}isEnabled(e){return i(this,void 0,void 0,function*(){return"string"==typeof e&&(e=[e]),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"permission-interactive","is-enabled-access",{chainIds:e})})}disable(e){return i(this,void 0,void 0,function*(){return"string"==typeof e&&(e=[e]),new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"permission-interactive","disable-access",{chainIds:null!=e?e:[]}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})}experimentalSuggestChain(e){return i(this,void 0,void 0,function*(){if(e.hideInUI)throw Error("hideInUI is not allowed");if(e.gasPriceStep){let t=Object.assign({},e.gasPriceStep);for(let r of e.feeCurrencies)r.gasPriceStep||(r.gasPriceStep=t);delete e.gasPriceStep,console.warn("The `gasPriceStep` field of the `ChainInfo` has been moved under `feeCurrencies`. This is automatically handled as of right now, but the upcoming update would potentially cause errors.")}return e.coinType&&(console.warn("The `coinType` field of the `ChainInfo` is removed. This is automatically handled as of right now, but the upcoming update would potentially cause errors."),delete e.coinType),new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"chains","need-suggest-chain-info-interaction",{chainInfo:e}).then(n=>{n||(i=!0),(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"chains","suggest-chain-info",{chainInfo:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})})}getKey(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","get-cosmos-key",{chainId:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})}getKeysSettled(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","get-cosmos-keys-settled",{chainIds:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})}getChainInfosWithoutEndpoints(){return i(this,void 0,void 0,function*(){return new Promise((e,t)=>{let r=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"chains","get-chain-infos-without-endpoints",{}).then(t=>e(t.chainInfos)).catch(t).finally(()=>r=!0),setTimeout(()=>{r||this.protectedTryOpenSidePanelIfEnabled()},300)})})}getChainInfoWithoutEndpoints(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"chains","get-chain-info-without-endpoints",{chainId:e}).then(e=>t(e.chainInfo)).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})}sendTx(e,t,r){return i(this,void 0,void 0,function*(){return yield this.enable(e),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"background-tx","send-tx-to-background",{chainId:e,tx:t,mode:r})})}signAmino(e,t,r,n={}){return i(this,void 0,void 0,function*(){return new Promise((i,a)=>{var s;let c=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","request-cosmos-sign-amino",{chainId:e,signer:t,signDoc:r,signOptions:(0,l.default)(null!=(s=this.defaultOptions.sign)?s:{},n)}).then(i).catch(a).finally(()=>c=!0),setTimeout(()=>{c||this.protectedTryOpenSidePanelIfEnabled()},300)})})}signDirect(e,t,r,n={}){return i(this,void 0,void 0,function*(){return new Promise((i,a)=>{var s;let d=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","request-cosmos-sign-direct",{chainId:e,signer:t,signDoc:{bodyBytes:r.bodyBytes,authInfoBytes:r.authInfoBytes,chainId:r.chainId,accountNumber:r.accountNumber?r.accountNumber.toString():null},signOptions:(0,l.default)(null!=(s=this.defaultOptions.sign)?s:{},n)}).then(e=>i({signed:{bodyBytes:e.signed.bodyBytes,authInfoBytes:e.signed.authInfoBytes,chainId:e.signed.chainId,accountNumber:c.default.fromString(e.signed.accountNumber)},signature:e.signature})).catch(a).finally(()=>d=!0),setTimeout(()=>{d||this.protectedTryOpenSidePanelIfEnabled()},300)})})}signDirectAux(e,t,r,n={}){return i(this,void 0,void 0,function*(){return new Promise((i,a)=>{var s;let d=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","request-cosmos-sign-direct-aux",{chainId:e,signer:t,signDoc:{bodyBytes:r.bodyBytes,publicKey:r.publicKey,chainId:r.chainId,accountNumber:r.accountNumber?r.accountNumber.toString():null,
1sequence:r.sequence?r.sequence.toString():null},signOptions:(0,l.default)({preferNoSetMemo:null==(s=this.defaultOptions.sign)?void 0:s.preferNoSetMemo},n)}).then(e=>i({signed:{bodyBytes:e.signed.bodyBytes,publicKey:e.signed.publicKey,chainId:e.signed.chainId,accountNumber:c.default.fromString(e.signed.accountNumber),sequence:c.default.fromString(e.signed.sequence)},signature:e.signature})).catch(a).finally(()=>d=!0),setTimeout(()=>{d||this.protectedTryOpenSidePanelIfEnabled()},300)})})}signArbitrary(e,t,r){return i(this,void 0,void 0,function*(){return new Promise((i,n)=>{let a=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","request-cosmos-sign-amino-adr-36",{chainId:e,signer:t,data:"string"==typeof r?d.Buffer.from(r):r,signOptions:{isADR36WithString:"string"==typeof r}}).then(i).catch(n).finally(()=>a=!0),setTimeout(()=>{a||this.protectedTryOpenSidePanelIfEnabled()},300)})})}verifyArbitrary(e,t,r,n){return i(this,void 0,void 0,function*(){return"string"==typeof r&&(r=d.Buffer.from(r)),new Promise((i,a)=>{let s=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","verify-cosmos-sign-amino-adr-36",{chainId:e,signer:t,data:r,signature:n}).then(i).catch(a).finally(()=>s=!0),setTimeout(()=>{s||this.protectedTryOpenSidePanelIfEnabled()},300)})})}signEthereum(e,t,r,n){return i(this,void 0,void 0,function*(){return new Promise((i,a)=>{let s=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-ethereum","request-sign-ethereum",{chainId:e,signer:t,message:"string"==typeof r?d.Buffer.from(r):r,signType:n}).then(i).catch(a).finally(()=>s=!0),setTimeout(()=>{s||this.protectedTryOpenSidePanelIfEnabled()},300)})})}signICNSAdr36(e,t,r,n,a){return i(this,void 0,void 0,function*(){return new Promise((i,s)=>{let l=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","request-icns-adr-36-signatures-v2",{chainId:e,contractAddress:t,owner:r,username:n,addressChainIds:a}).then(i).catch(s).finally(()=>l=!0),setTimeout(()=>{l||this.protectedTryOpenSidePanelIfEnabled()},300)})})}getOfflineSigner(e,t){return new s.CosmJSOfflineSigner(e,this,t)}getOfflineSignerOnlyAmino(e,t){return new s.CosmJSOfflineSignerOnlyAmino(e,this,t)}getOfflineSignerAuto(e,t){return i(this,void 0,void 0,function*(){return(yield this.getKey(e)).isNanoLedger?new s.CosmJSOfflineSignerOnlyAmino(e,this,t):new s.CosmJSOfflineSigner(e,this,t)})}suggestToken(e,t,r){return i(this,void 0,void 0,function*(){return new Promise((i,n)=>{let a=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"token-cw20","SuggestTokenMsg",{chainId:e,contractAddress:t,viewingKey:r}).then(i).catch(n).finally(()=>a=!0),setTimeout(()=>{a||this.protectedTryOpenSidePanelIfEnabled()},300)})})}getSecret20ViewingKey(e,t){return i(this,void 0,void 0,function*(){return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"token-cw20","get-secret20-viewing-key",{chainId:e,contractAddress:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{n||this.protectedTryOpenSidePanelIfEnabled()},300)})})}getEnigmaPubKey(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"secret-wasm","get-pubkey-msg",{chainId:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})}getEnigmaTxEncryptionKey(e,t){return i(this,void 0,void 0,function*(){return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"secret-wasm","get-tx-encryption-key-msg",{chainId:e,nonce:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{n||this.protectedTryOpenSidePanelIfEnabled()},300)})})}enigmaEncrypt(e,t,r){return i(this,void 0,void 0,function*(){return new Promise((i,n)=>{let a=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"secret-wasm","request-encrypt-msg",{chainId:e,contractCodeHash:t,msg:r}).then(i).catch(n).finally(()=>a=!0),setTimeout(()=>{a||this.protectedTryOpenSidePanelIfEnabled()},300)})})}enigmaDecrypt(e,t,r){return i(this,void 0,void 0,function*(){return t&&0!==t.length?new Promise((i,n)=>{let a=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"secret-wasm","request-decrypt-msg",{chainId:e,cipherText:t,nonce:r}).then(i).catch(n).finally(()=>a=!0),setTimeout(()=>{a||this.protectedTryOpenSidePanelIfEnabled()},300)}):new Uint8Array})}getEnigmaUtils(e){if(this.enigmaUtils.has(e))return this.enigmaUtils.get(e);let t=new a.KeplrEnigmaUtils(e,this);return this.enigmaUtils.set(e,t),t}experimentalSignEIP712CosmosTx_v0(e,t,r,n,a={}){return i(this,void 0,void 0,function*(){return new Promise((i,s)=>{var c;let d=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","request-sign-eip-712-cosmos-tx-v0",{chainId:e,signer:t,eip712:r,signDoc:n,signOptions:(0,l.default)(null!=(c=this.defaultOptions.sign)?c:{},a)}).then(i).catch(s).finally(()=>d=!0),setTimeout(()=>{d||this.protectedTryOpenSidePanelIfEnabled()},300)})})}__core__getAnalyticsId(){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"analytics","get-analytics-id",{})})}changeKeyRingName({defaultName:e,editable:t=!0}){return i(this,void 0,void 0,function*(){return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-v2","change-keyring-name-interactive",{defaultName:e,editable:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{n||this.protectedTryOpenSidePanelIfEnabled()},300)})})}__core__privilageSignAminoWithdrawRewards(e,t,r){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","PrivilegeCosmosSignAminoWithdrawRewards",{chainId:e,signer:t,signDoc:r})})}__core__privilageSignAminoDelegate(e,t,r){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","PrivilegeCosmosSignAminoDelegate",{chainId:e,signer:t,signDoc:r})})}__core__privilageSignAminoExecuteCosmWasm(e,t,r){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-cosmos","PrivilegeCosmosSignAminoExecuteCosmWasm",{chainId:e,signer:t,signDoc:r})})}sendEthereumTx(e,t){return i(this,void 0,void 0,function*(){return yield this.enable(e),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"background-tx-ethereum","send-ethereum-tx-to-background",{chainId:e,tx:t})})}suggestERC20(e,t){return i(this,void 0,void 0,function*(){return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"token-erc20","SuggestERC20TokenMsg",{chainId:e,contractAddress:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{n||this.protectedTryOpenSidePanelIfEnabled()},300)})})}__core__webpageClosed(){return i(this,void 0,void 0,function*(){yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"interaction","injected-webpage-closed",{})})}getStarknetKey(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-starknet","get-starknet-key",{chainId:e}
1).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})}getStarknetKeysSettled(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-starknet","get-starknet-keys-settled",{chainIds:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})}signStarknetTx(e,t,r){return i(this,void 0,void 0,function*(){return new Promise((i,n)=>{let a=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-starknet","request-sign-starknet-tx",{chainId:e,transactions:t,details:r}).then(i).catch(n).finally(()=>a=!0),setTimeout(()=>{a||this.protectedTryOpenSidePanelIfEnabled()},300)})})}signStarknetDeployAccountTransaction(e,t){return i(this,void 0,void 0,function*(){return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-starknet","request-sign-starknet-deploy-account-tx",{chainId:e,transaction:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{n||this.protectedTryOpenSidePanelIfEnabled()})})})}getBitcoinKey(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","get-bitcoin-key",{chainId:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})}getBitcoinKeysSettled(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","get-bitcoin-keys-settled",{chainIds:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.protectedTryOpenSidePanelIfEnabled()},300)})})}signPsbt(e,t,r){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-sign-bitcoin-psbt",{chainId:e,psbtHex:t,options:r})})}signPsbts(e,t,r){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-sign-bitcoin-psbts",{chainId:e,psbtsHexes:t,options:r})})}protectedTryOpenSidePanelIfEnabled(e=!1){return i(this,void 0,void 0,function*(){let t=!1;if("u">typeof window&&!0===window.__keplr_content_script&&(t=!0),t&&(yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"side-panel","GetSidePanelEnabledMsg",{})).enabled)try{return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"router-extension/src/router/extension.ts","tryOpenSidePanelIfEnabled",{})}catch(t){if(console.log(t),!e&&t.message&&t.message.includes("in response to a user gesture")&&!document.getElementById("__open_keplr_side_panel__")){if(yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"interaction","ping-content-script-tab-has-opened-side-panel",{}))return;let e=yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring","GetIsLockedMsg",{}),t=yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"settings","GetThemeOptionMsg",{}),r=chrome.runtime.getURL("/assets/Inter-SemiBold.ttf"),i=`
2                @font-face {
3                  font-family: 'Inter-SemiBold-Keplr';
4                  src: url('${r}') format('truetype');
5                  font-weight: 600;
6                  font-style: normal;
7                }
8
9                @keyframes slide-left {
10                  0% {
11                    transform: translateY(0%) translateX(100%);
12                  }
13                  100% {
14                    transform: translateY(0%) translateX(0);
15                  }
16                }
17                    
18                @keyframes tada {
19                  0% {
20                    transform: scale3d(1, 1, 1);
21                  }
22                  10%, 20% {
23                    transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
24                  }
25                  30%, 50%, 70%, 90% {
26                    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
27                  }
28                  40%, 60%, 80% {
29                    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
30                  }
31                  100% {
32                    transform: scale3d(1, 1, 1);
33                  }
34                }
35                  
36            `,n="auto"===t?!window.matchMedia("(prefers-color-scheme: dark)").matches:"light"===t,a=document.createElement("style");a.appendChild(document.createTextNode(i)),document.head.appendChild(a);let s=document.createElement("div");s.id="__open_keplr_side_panel__",s.style.boxSizing="border-box",s.style.animation="slide-left 0.5s forwards",s.style.position="fixed",s.style.right="1.5rem",s.style.top="1.5rem",s.style.padding="1rem 1.75rem 1rem 0.75rem",s.style.zIndex="2147483647",s.style.borderRadius="1rem",s.style.display="flex",s.style.alignItems="center",s.style.fontFamily="Inter-SemiBold-Keplr",s.style.fontWeight="600",s.style.background=n?"#FEFEFE":"#1D1D1F";let l=document.createElement("div");l.style.boxSizing="border-box",l.style.transform="translateY(-0.65rem)",l.style.marginRight="0.35rem",l.innerHTML=`
37                <svg width="31" height="31" viewBox="0 0 31 31" fill="none" xmlns="http://www.w3.org/2000/svg">
38                    <path d="M30 29.7522C25.1484 31.0691 16.7109 27.1184 18.6093 18.3391C20.5078 9.55979 25.5703 11.5351 26.414 12.852C27.2578 14.1689 28.3125 22.2898 15.8672 19.2171C5.9109 16.7589 7.15625 6.04811 8 1M8 1L14 8M8 1L1 7.5" stroke="${n?"#2C4BE2":"#72747B"}"/>
39                </svg>
40              `;let c=document.createElement("div");c.style.boxSizing="border-box",c.style.position="relative",c.style.marginRight="1rem";let d=document.createElement("img");d.src=chrome.runtime.getURL(`/assets/${e?"locked-keplr-logo":"icon"}-128.png`),d.style.boxSizing="border-box",d.style.width="3rem",d.style.height="3rem",c.appendChild(d);let u=document.createElement("img");u.src=chrome.runtime.getURL("assets/icon-click-cursor.png"),u.style.boxSizing="border-box",u.style.position="absolute",u.style.right="-0.2rem",u.style.bottom="-0.2rem",u.style.aspectRatio="78/98",u.style.height="1.375rem",c.appendChild(u);let h=document.createElement("span");if(h.style.boxSizing="border-box",h.style.fontSize="1rem",h.style.color=n?"#020202":"#FEFEFE",h.textContent=e?"Unlock Keplr to proceed":"Open Keplr to approve request(s)",s.appendChild(l),s.appendChild(c),s.appendChild(h),!document.getElementById("__open_keplr_side_panel__")){let e=!1,t=setInterval(()=>{(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"interaction","ping-content-script-tab-has-opened-side-panel",{}).then(r=>{r&&(clearInterval(t),e||(s.remove(),e=!0))})},300);document.body.appendChild(s)}}}})}};let h=["eth_signTransaction","eth_sendTransaction","personal_sign","eth_signTypedData_v3","eth_signTypedData_v4","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_watchAsset"];class p extends u.default{constructor(e,t){super(),this.keplr=e,this.requester=t,this.chainId=null,this.selectedAddress=null,this.networkVersion=null,this.isKeplr=!0,this.isMetaMask=!0}protectedEnableAccess(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"permission-interactive","enable-access-for-evm",{chainId:e}
40).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}protectedGetNewCurrentChainIdFromRequest(e,t){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-ethereum","get-new-current-chain-id-for-evm",{method:e,params:t})})}protectedCheckNeedEnableAccess(e){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-ethereum","check-need-enable-access-for-evm",{method:e})})}isConnected(){return!0}request({method:e,params:t,providerId:r,chainId:n}){return i(this,void 0,void 0,function*(){if("string"!=typeof e)throw Error("Invalid paramater: `method` must be a string");if(yield this.protectedCheckNeedEnableAccess(e)){let r=yield this.protectedGetNewCurrentChainIdFromRequest(e,t);yield this.protectedEnableAccess(r)}return new Promise((i,a)=>{let s=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-ethereum","request-json-rpc-to-evm",{method:e,params:t,providerId:r,chainId:n}).then(i).catch(a).finally(()=>s=!0),setTimeout(()=>{!s&&h.includes(e)&&this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}enable(){return i(this,void 0,void 0,function*(){return yield this.request({method:"eth_requestAccounts"})})}net_version(){return i(this,void 0,void 0,function*(){return yield this.request({method:"net_version"})})}}let f=["wallet_watchAsset","wallet_switchStarknetChain","wallet_addInvokeTransaction","wallet_addDeclareTransaction","wallet_signTypedData"];class g{constructor(e,t){this.keplr=e,this.requester=t,this.id="",this.name="",this.version="",this.icon="",this.isConnected=!1}protectedEnableAccess(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"permission-interactive","enable-access-for-starknet",{chainId:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}protectedGetNewCurrentChainIdFromRequest(e,t){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-starknet","get-new-current-chain-id-for-starknet",{method:e,params:t})})}protectedCheckNeedEnableAccess(e,t){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-starknet","check-need-enable-access-for-starknet",{method:e,params:t})})}request({type:e,params:t}){return i(this,void 0,void 0,function*(){if("string"!=typeof e)throw Error("Invalid parameter: `type` must be a string");if(yield this.protectedCheckNeedEnableAccess(e,t)){let r=yield this.protectedGetNewCurrentChainIdFromRequest(e,t);yield this.protectedEnableAccess(r)}return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-starknet","request-json-rpc-to-starknet",{method:e,params:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{!n&&f.includes(e)&&this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}enable(e){return i(this,void 0,void 0,function*(){throw Error("Method not implemented.")})}isPreauthorized(){throw Error("Method not implemented.")}on(e,t){throw Error("Method not implemented.")}off(e,t){throw Error("Method not implemented.")}}class m extends u.default{constructor(e,t){super(),this.keplr=e,this.requester=t}protectedEnableAccess(){return i(this,void 0,void 0,function*(){return new Promise((e,t)=>{let r=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"permission-interactive","enable-access-for-bitcoin",{}).then(e).catch(t).finally(()=>r=!0),setTimeout(()=>{r||this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}getAccounts(){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-get-accounts",{})})}requestAccounts(){return i(this,void 0,void 0,function*(){return yield this.protectedEnableAccess(),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-request-accounts",{})})}disconnect(){return i(this,void 0,void 0,function*(){return yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-disconnect",{})})}getNetwork(){return i(this,void 0,void 0,function*(){return yield this.protectedEnableAccess(),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-get-net
40work",{})})}switchNetwork(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-switch-network",{network:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}getChain(){return i(this,void 0,void 0,function*(){return yield this.protectedEnableAccess(),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-get-chain",{})})}switchChain(e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>{let i=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-switch-chain",{chainType:e}).then(t).catch(r).finally(()=>i=!0),setTimeout(()=>{i||this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}getPublicKey(){return i(this,void 0,void 0,function*(){return yield this.protectedEnableAccess(),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-get-public-key",{})})}getBalance(){return i(this,void 0,void 0,function*(){return yield this.protectedEnableAccess(),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-get-balance",{})})}getInscriptions(e,t){return i(this,void 0,void 0,function*(){return yield this.protectedEnableAccess(),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-get-inscriptions",{offset:e,limit:t})})}signMessage(e,t){return i(this,void 0,void 0,function*(){return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-sign-bitcoin-message",{message:e,signType:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{n||this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}sendBitcoin(e,t){return i(this,void 0,void 0,function*(){return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-send-bitcoin",{to:e,amount:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{n||this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}pushTx(e){return i(this,void 0,void 0,function*(){return yield this.protectedEnableAccess(),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-push-tx",{rawTxHex:e})})}pushPsbt(e){return i(this,void 0,void 0,function*(){return yield this.protectedEnableAccess(),yield(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-bitcoin-push-psbt",{psbtHex:e})})}signPsbt(e,t){return i(this,void 0,void 0,function*(){return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-sign-bitcoin-psbt",{psbtHex:e,options:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{n||this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}signPsbts(e,t){return i(this,void 0,void 0,function*(){return new Promise((r,i)=>{let n=!1;(0,o.sendSimpleMessage)(this.requester,o.BACKGROUND_PORT,"keyring-bitcoin","request-sign-bitcoin-psbts",{psbtsHexes:e,options:t}).then(r).catch(i).finally(()=>n=!0),setTimeout(()=>{n||this.keplr.protectedTryOpenSidePanelIfEnabled()},300)})})}getAddress(){return i(this,void 0,void 0,function*(){throw Error("This method should not be called")})}connectWallet(){return i(this,void 0,void 0,function*(){throw Error("This method should not be called")})}}},279418,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.BitcoinProvider=r.InjectedKeplr=r.injectKeplrToWindow=void 0;let o=e.r(354450),a=e.r(774158),s=e.r(820650),l=e.r(44334),c=n(e.r(12838)),d=n(e.r(711385)),u=n(e.r(379666));function h(e,t,r){let i=Object.getOwnPropertyDescriptor(e,t);!i||i.writable?!i||i.configurable?Object.defineProperty(e,t,{value:r,writable:!1}):e[t]=r:console.warn(`Failed to inject ${t} from keplr. Probably, other wallet is trying to intercept Keplr`)}r.injectKeplrToWindow=function(e){h(window,"keplr",e),h(window,"getOfflineSigner",e.getOfflineSigner),h(window,"getOfflineSignerOnlyAmino",e.getOfflineSignerOnlyAmino),h(window,"getOfflineSignerAuto",e.getOfflineSignerAuto),h(window,"getEnigmaUtils",e.getEnigmaUtils),h(window,"starknet_keplr",e.starknet),h(window,"bitcoin_keplr",e.bitcoin)};class p{static startProxy(e,t,r={addMessageListener:e=>window.addEventListener("message",e),removeMessageListener:e=>window.removeEventListener("message",e),postMessage:e=>window.postMessage(e,window.location.origin)},n){let o=`proxy-request${t?`-${t}`:""}`,s=t=>i(this,void 0,void 0,function*(){let s=n?n(t.data):t.data;
40if(s&&(s.type===o||"proxy-request"===s.type))try{if(!s.id)throw Error("Empty id");if(s.method.startsWith("protected"))throw Error("Rejected");if("version"===s.method)throw Error("Version is not function");if("mode"===s.method)throw Error("Mode is not function");if("defaultOptions"===s.method)throw Error("DefaultOptions is not function");if(!e[s.method]||"ethereum"!==s.method&&"starknet"!==s.method&&"bitcoin"!==s.method&&"function"!=typeof e[s.method])throw Error(`Invalid method: ${s.method}`);if("getOfflineSigner"===s.method)throw Error("GetOfflineSigner method can't be proxy request");if("getOfflineSignerOnlyAmino"===s.method)throw Error("GetOfflineSignerOnlyAmino method can't be proxy request");if("getOfflineSignerAuto"===s.method)throw Error("GetOfflineSignerAuto method can't be proxy request");if("getEnigmaUtils"===s.method)throw Error("GetEnigmaUtils method can't be proxy request");let t=s.method,n=yield i(this,void 0,void 0,function*(){var r,n;if("signDirect"===t)return yield i(this,void 0,void 0,function*(){let t=s.args[2],r=yield e.signDirect(s.args[0],s.args[1],{bodyBytes:t.bodyBytes,authInfoBytes:t.authInfoBytes,chainId:t.chainId,accountNumber:t.accountNumber?d.default.fromString(t.accountNumber):null},s.args[3]);return{signed:{bodyBytes:r.signed.bodyBytes,authInfoBytes:r.signed.authInfoBytes,chainId:r.signed.chainId,accountNumber:r.signed.accountNumber.toString()},signature:r.signature}});if("signDirectAux"===t)return yield i(this,void 0,void 0,function*(){let t=s.args[2],r=yield e.signDirectAux(s.args[0],s.args[1],{bodyBytes:t.bodyBytes,publicKey:t.publicKey,chainId:t.chainId,accountNumber:t.accountNumber?d.default.fromString(t.accountNumber):null,sequence:t.sequence?d.default.fromString(t.sequence):null},s.args[3]);return{signed:{bodyBytes:r.signed.bodyBytes,publicKey:r.signed.publicKey,chainId:r.signed.chainId,accountNumber:r.signed.accountNumber.toString(),sequence:r.signed.sequence.toString()},signature:r.signature}});if("ethereum"===t){let t=s.ethereumProviderMethod;if(null==t?void 0:t.startsWith("protected"))throw Error("Rejected");if("chainId"===t)throw Error("chainId is not function");if("selectedAddress"===t)throw Error("selectedAddress is not function");if("networkVersion"===t)throw Error("networkVersion is not function");if("isKeplr"===t)throw Error("isKeplr is not function");if("isMetaMask"===t)throw Error("isMetaMask is not function");if(void 0===t||"function"!=typeof e.ethereum[t])throw Error(`${s.ethereumProviderMethod} is not function or invalid Ethereum provider method`);let r=a.JSONUint8Array.unwrap(s.args);return"request"===t?yield e.ethereum.request("string"==typeof r?JSON.parse(r):r):yield e.ethereum[t](..."string"==typeof r?JSON.parse(r):r)}if("starknet"===t){let t=s.starknetProviderMethod;if(null==t?void 0:t.startsWith("protected"))throw Error("Rejected");if("id"===t)throw Error("id is not function");if("name"===t)throw Error("name is not function");if("version"===t)throw Error("version is not function");if("icon"===t)throw Error("icon is not function");if("chainId"===t)throw Error("chainId is not function");if("selectedAddress"===t)throw Error("selectedAddress is not function");if("isConnected"===t)throw Error("isConnected is not function");if("account"===t)throw Error("account is not function");if("provider"===t)throw Error("provider is not function");if(void 0===t||"function"!=typeof(null==(r=e.starknet)?void 0:r[t]))throw Error(`${s.starknetProviderMethod} is not function or invalid Starknet provider method`);let i=a.JSONUint8Array.unwrap(s.args);return"request"===t?yield e.starknet.request("string"==typeof i?JSON.parse(i):i):yield e.starknet[t](..."string"==typeof i?JSON.parse(i):i)}if("bitcoin"===t){let t=s.bitcoinProviderMethod;if(null==t?void 0:t.startsWith("protected"))throw Error("Rejected");if(void 0===t||"function"!=typeof(null==(n=e.bitcoin)?void 0:n[t]))throw Error(`${s.bitcoinProviderMethod} is not function or invalid Bitcoin provider method`);let r=a.JSONUint8Array.unwrap(s.args);return yield e.bitcoin[t](..."string"==typeof r?JSON.parse(r):r)}return yield e[t](...a.JSONUint8Array.unwrap(s.args))}),o={type:"proxy-request-response",id:s.id,result:{return:a.JSONUint8Array.wrap(n)}};r.postMessage(o)}catch(t){let e={type:"proxy-request-response",id:s.id,result:{error:t.code&&!t.module?{code:t.code,message:t.message,data:t.data}:t.message||t.toString()}};r.postMessage(e)}});return r.addMessageListener(s),()=>{r.removeMessageListener(s)}}requestMethod(e,t){let r=new Uint8Array(8),i=Array.from(crypto.getRandomValues(r)).map(e=>e.toString(16)).join(""),n={type:`proxy-request${this.metaId?`-${this.metaId}`:""}`,id:i,method:e,args:a.JSONUint8Array.wrap(t)};return new Promise((e,t)=>
40{let r=n=>{let o=this.parseMessage?this.parseMessage(n.data):n.data;if(!o||"proxy-request-response"!==o.type||o.id!==i)return;this.eventListener.removeMessageListener(r);let s=a.JSONUint8Array.unwrap(o.result);s?s.error?t(Error(s.error)):e(s.return):t(Error("Result is null"))};this.eventListener.addMessageListener(r),this.eventListener.postMessage(n)})}constructor(e,t,r,i,n,o={addMessageListener:e=>window.addEventListener("message",e),removeMessageListener:e=>window.removeEventListener("message",e),postMessage:e=>window.postMessage(e,window.location.origin)},a,s,l){for(const c of(this.metaId=e,this.version=t,this.mode=r,this.onStarknetStateChange=i,this.onStarknetAccountChange=n,this.eventListener=o,this.parseMessage=a,this.eip6963ProviderInfo=s,this.starknetProviderInfo=l,this.enigmaUtils=new Map,this.defaultOptions={},this.ethereum=new f(this.metaId,()=>this,this.eventListener,this.parseMessage,this.eip6963ProviderInfo),this.starknet=this.generateStarknetProvider(),this.bitcoin=new m(()=>this,this.eventListener,this.parseMessage),Object.keys(this)))if("defaultOptions"!==c&&Object.defineProperty(this,c,{value:this[c],writable:!1}),"eventListener"===c)for(const e of Object.keys(this.eventListener))Object.defineProperty(this.eventListener,e,{value:this.eventListener[e],writable:!1});for(const e of Object.getOwnPropertyNames(p.prototype))"constructor"!==e&&"function"==typeof this[e]&&Object.defineProperty(this,e,{value:this[e].bind(this),writable:!1})}ping(){return i(this,void 0,void 0,function*(){yield this.requestMethod("ping",[])})}enable(e){return i(this,void 0,void 0,function*(){yield this.requestMethod("enable",[e])})}disable(e){return i(this,void 0,void 0,function*(){yield this.requestMethod("disable",[e])})}experimentalSuggestChain(e){var t,r;return i(this,void 0,void 0,function*(){if(e.hideInUI)throw Error("hideInUI is not allowed");((null==(t=e.features)?void 0:t.includes("stargate"))||(null==(r=e.features)?void 0:r.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 i(this,void 0,void 0,function*(){return yield this.requestMethod("getKey",[e])})}getKeysSettled(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getKeysSettled",[e])})}sendTx(e,t,r){return i(this,void 0,void 0,function*(){return"length"in t||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,t,r])})}signAmino(e,t,r,n={}){var o;return i(this,void 0,void 0,function*(){return yield this.requestMethod("signAmino",[e,t,r,(0,c.default)(null!=(o=this.defaultOptions.sign)?o:{},n)])})}signDirect(e,t,r,n={}){var o;return i(this,void 0,void 0,function*(){let i=yield this.requestMethod("signDirect",[e,t,{bodyBytes:r.bodyBytes,authInfoBytes:r.authInfoBytes,chainId:r.chainId,accountNumber:r.accountNumber?r.accountNumber.toString():null},(0,c.default)(null!=(o=this.defaultOptions.sign)?o:{},n)]),a=i.signed;return{signed:{bodyBytes:a.bodyBytes,authInfoBytes:a.authInfoBytes,chainId:a.chainId,accountNumber:d.default.fromString(a.accountNumber)},signature:i.signature}})}signDirectAux(e,t,r,n={}){var o;return i(this,void 0,void 0,function*(){let i=yield this.requestMethod("signDirectAux",[e,t,{bodyBytes:r.bodyBytes,publicKey:r.publicKey,chainId:r.chainId,accountNumber:r.accountNumber?r.accountNumber.toString():null,sequence:r.sequence?r.sequence.toString():null},(0,c.default)({preferNoSetMemo:null==(o=this.defaultOptions.sign)?void 0:o.preferNoSetMemo},n)]),a=i.signed;return{signed:{bodyBytes:a.bodyBytes,publicKey:a.publicKey||void 0,chainId:a.chainId,accountNumber:d.default.fromString(a.accountNumber),sequence:d.default.fromString(a.sequence)},signature:i.signature}})}signArbitrary(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signArbitrary",[e,t,r])})}signICNSAdr36(e,t,r,i,n){return this.requestMethod("signICNSAdr36",[e,t,r,i,n])}verifyArbitrary(e,t,r,n){return i(this,void 0,void 0,function*(){return yield this.requestMethod("verifyArbitrary",[e,t,r,n])})}signEthereum(e,t,r,n){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signEthereum",[e,t,r,n])})}getOfflineSigner(e,t){return new l.CosmJSOfflineSigner(e,this,t)}getOfflineSignerOnlyAmino(e,t){return new l.CosmJSOfflineSignerOnlyAmino(e,this,t)}getOfflineSignerAuto(e,t){return i(this,void 0,void 0,function*(){return(yield this.getKey(e)).isNanoLedger?new l.CosmJSOfflineSignerOnlyAmino(e,this,t):new l.CosmJSOfflineSigner(e,this,t)})}suggestToken(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("suggestToken",[e,t,r])})}getSecret20ViewingKey(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getSecret20ViewingKey",[e,t])})}getEnigmaPubKey(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getEnigmaPubKey",[e])})}getEnigmaTxEncryptionKey(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getEnigmaTxEncryptionKey",[e,t])})}enigmaEncrypt(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("enigmaEncrypt",[e,t,r])})}enigmaDecrypt(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("enigmaDecrypt",[e,t,r])})}getEnigmaUtils(e){if(this.enigmaUtils.has(e))return this.enigmaUtils.get(e);let t=new s.KeplrEnigmaUtils(e,this);return this.enigmaUtils.set(e,t),t}experimentalSignEIP712CosmosTx_v0(e,t,r,n,o={}){var a;return i(this,void 0,void 0,function*(){return yield this.requestMethod("experimentalSignEIP712CosmosTx_v0",[e,t,r,n,(0,c.default)(null!=(a=this.defaultOptions.sign)?a:{},o)])})}getChainInfosWithoutEndpoints(){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getChainInfosWithoutEndpoints",[])})}getChainInfoWithoutEndpoints(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getChainInfoWithoutEndpoints",[e])})}__core__getAnalyticsId(){return this.requestMethod("__core__getAnalyticsId",[])}changeKeyRingName({defaultName:e,editable:t=!0}){return i(this,void 0,void 0,function*(){return yield this.requestMethod("changeKeyRingName",[{defaultName:e,editable:t}])})}__core__privilageSignAminoWithdrawRewards(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("__core__privilageSignAminoWithdrawRewards",[e,t,r])})}__core__privilageSignAminoDelegate(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("__core__privilageSignAminoDelegate",[e,t,r])})}__core__privilageSignAminoExecuteCosmWasm(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("__core__privilageSignAminoExecuteCosmWasm",[e,t,r])})}sendEthereumTx(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("sendEthereumTx",[e,t])})}suggestERC20(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("suggestERC20",[e,t])})}__core__webpageClosed(){return i(this,void 0,void 0,function*(){return yield this.requestMethod("__core__webpageClosed",[])})}getStarknetKey(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getStarknetKey",[e])})}getStarknetKeysSettled(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getStarknetKeysSettled",[e])})}signStarknetTx(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signStarknetTx",[e,t,r])})}signStarknetDeployAccountTransaction(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signStarknetDeployAccountTransaction",[e,t])})}generateStarknetProvider(){return new g(this.metaId,this.starknetProviderInfo.id,this.starknetProviderInfo.name,this.version,this.starknetProviderInfo.icon,()=>this,this.onStarknetStateChange,this.onStarknetAccountChange,this.eventListener,this.parseMessage)}getBitcoinKey(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getBitcoinKey",[e])})}getBitcoinKeysSettled(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getBitcoinKeysSettled",[e])})}signPsbt(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signPsbt",[e,t,r])})}signPsbts(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signPsbts",[e,t,r])})}}r.InjectedKeplr=p;class f extends u.default{constructor(e,t,r={addMessageListener:e=>window.addEventListener("message",e),removeMessageListener:e=>window.removeEventListener("message",e),postMessage:e=>window.postMessage(e,window.location.origin)},n,s){if(super(),this.metaId=e,this.injectedKeplr=t,this.eventListener=r,this.parseMessage=n,this.eip6963ProviderInfo=s,this.chainId=null,this.networkVersion=null,this.selectedAddress=null,this.isKeplr=!0,this.isMetaMask=!0,this._isConnected=!1,this._currentChainId=null,this._requestMethod=(e,t)=>i(this,void 0,void 0,function*(){let r=new Uint8Array(8),i=Array.from(crypto.getRandomValues(r)).map(e=>e.toString(16)).join(""),n={type:`proxy-request${this.metaId?`-${this.metaId}`:""}`,id:i,method:"ethereum",args:a.JSONUint8Array.wrap(t),ethereumProviderMethod:e};return new Promise((e,t)=>
40{let r=n=>{let o=this.parseMessage?this.parseMessage(n.data):n.data;if(!o||"proxy-request-response"!==o.type||o.id!==i)return;this.eventListener.removeMessageListener(r);let s=a.JSONUint8Array.unwrap(o.result);if(!s)return void t(Error("Result is null"));if(s.error){let e=s.error;t(e.code&&!e.module?new a.EthereumProviderRpcError(e.code,e.message,e.data):Error(e));return}e(s.return)};this.eventListener.addMessageListener(r),this.eventListener.postMessage(n)})}),this._initProviderState=()=>i(this,void 0,void 0,function*(){let e=yield this._requestMethod("request",{method:"keplr_initProviderState"});if(e){let{currentEvmChainId:t,currentChainId:r,selectedAddress:i}=e;null!=r&&null!=t&&null!=i&&(this._handleConnect(t),this._handleChainChanged(t),this._currentChainId=r,this._handleAccountsChanged(i))}}),this._handleConnect=e=>i(this,void 0,void 0,function*(){if(!this._isConnected){this._isConnected=!0;let t=`0x${e.toString(16)}`;this.emit("connect",{chainId:t})}}),this._handleDisconnect=()=>i(this,void 0,void 0,function*(){this._isConnected&&(yield this._requestMethod("request",{method:"keplr_disconnect"}),this._isConnected=!1,this.chainId=null,this.selectedAddress=null,this.networkVersion=null,this.emit("disconnect"))}),this._handleChainChanged=e=>i(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))}),this._handleAccountsChanged=e=>i(this,void 0,void 0,function*(){this.selectedAddress!==e&&(this.selectedAddress=e,e?this.emit("accountsChanged",[e]):this.emit("accountsChanged",[]))}),this.request=({method:e,params:t,chainId:r})=>i(this,void 0,void 0,function*(){var i;if("string"!=typeof e)throw Error("Invalid paramater: `method` must be a string");return this._isConnected||(yield this._initProviderState()),yield this._requestMethod("request",{method:e,params:t,providerId:null==(i=this.eip6963ProviderInfo)?void 0:i.uuid,chainId:r})}),this.enable=()=>i(this,void 0,void 0,function*(){return yield this.request({method:"eth_requestAccounts"})}),this.net_version=()=>i(this,void 0,void 0,function*(){return yield this.request({method:"net_version"})}),this._initProviderState(),window.addEventListener("keplr_keystorechange",()=>i(this,void 0,void 0,function*(){if(this._currentChainId&&(yield t().getChainInfoWithoutEndpoints(this._currentChainId))){let e=null;try{e=(yield t().getKey(this._currentChainId)).ethereumHexAddress}catch(e){(null==e?void 0: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=>{var t;let r=e.detail.origin,i=e.detail.providerId;if(r===window.location.origin&&i===(null==(t=this.eip6963ProviderInfo)?void 0:t.uuid)){let t=e.detail.data;this.emit("message",{type:"eth_subscription",data:t})}}),this.eip6963ProviderInfo){const e=new CustomEvent(o.EIP6963EventNames.Announce,{detail:Object.freeze({info:this.eip6963ProviderInfo,provider:this})});window.addEventListener(o.EIP6963EventNames.Request,()=>window.dispatchEvent(e)),window.dispatchEvent(e)}}isConnected(){return this._isConnected}}class g{constructor(e,t,r,n,o,a,s,l,c={addMessageListener:e=>window.addEventListener("message",e),removeMessageListener:e=>window.removeEventListener("message",e),postMessage:e=>window.postMessage(e,window.location.origin)},d){this.metaId=e,this.id=t,this.name=r,this.version=n,this.icon=o,this._injectedKeplr=a,this.onStateChange=s,this.onAccountChange=l,this._eventListener=c,this._parseMessage=d,this.isConnected=!1,this.chainId=void 0,this.selectedAddress=void 0,this.account=void 0,this.provider=void 0,this._currentChainId=void 0,this._userWalletEvents=[],this._initProviderState(),window.addEventListener("keplr_keystorechange",()=>i(this,void 0,void 0,function*(){if(this._currentChainId){let e=null;try{e=(yield this._injectedKeplr().getStarknetKey(this._currentChainId)).hexAddress}catch(e){(null==e?void 0:e.message.includes("on Ledger by selecting the chain in the extension"))||console.error(`Failed to get key for keystorechange event: ${e.message}`)}this.selectedAddress=null!=e?e:void 0,this.onAccountChange({selectedAddress:e}
40),this._userWalletEvents.forEach(t=>{"accountsChanged"===t.type&&t.handler(e?[e]:[""])})}})),window.addEventListener("keplr_starknetChainChanged",e=>{let t=e.detail.origin,r=e.detail.starknetChainId;this.chainId=r,t===window.location.origin&&this._userWalletEvents.forEach(e=>{"networkChanged"===e.type&&e.handler(r)})})}_requestMethod(e,t){return i(this,void 0,void 0,function*(){let r=new Uint8Array(8),i=Array.from(crypto.getRandomValues(r)).map(e=>e.toString(16)).join(""),n={type:`proxy-request${this.metaId?`-${this.metaId}`:""}`,id:i,method:"starknet",args:a.JSONUint8Array.wrap(t),starknetProviderMethod:e};return new Promise((e,t)=>{let r=n=>{let o=this._parseMessage?this._parseMessage(n.data):n.data;if(!o||"proxy-request-response"!==o.type||o.id!==i)return;this._eventListener.removeMessageListener(r);let s=a.JSONUint8Array.unwrap(o.result);if(!s)return void t(Error("Result is null"));if(s.error){let e=s.error;t(e.code&&!e.module?new a.EthereumProviderRpcError(e.code,e.message,e.data):Error(e));return}e(s.return)};this._eventListener.addMessageListener(r),this._eventListener.postMessage(n)})})}_initProviderState(){return i(this,void 0,void 0,function*(){let{currentChainId:e,selectedAddress:t,rpc:r}=yield this.request({type:"keplr_initStarknetProviderState"});null!=e&&null!=t&&null!=r?(this.onStateChange({selectedAddress:t,chainId:e,rpc:r}),this._currentChainId=e,this.chainId=e.replace("starknet:",""),this.selectedAddress=t,this.isConnected=!0):this.onStateChange({selectedAddress:null,chainId:null,rpc:null})})}request({type:e,params:t}){return i(this,void 0,void 0,function*(){if("string"!=typeof e)throw Error("Invalid parameter: `type` must be a string");return yield this._requestMethod("request",{type:e,params:t})})}enable(e){return i(this,void 0,void 0,function*(){let{currentChainId:e,selectedAddress:t,rpc:r}=yield this.request({type:"keplr_enableStarknetProvider"});return this.onStateChange({selectedAddress:t,chainId:e,rpc:r}),this._currentChainId=e,this.chainId=e.replace("starknet:",""),this.selectedAddress=t,this.isConnected=!0,[t]})}isPreauthorized(){return i(this,void 0,void 0,function*(){let{currentChainId:e,selectedAddress:t}=yield this.request({type:"keplr_initStarknetProviderState"});return null!=e&&null!=t})}on(e,t){if("accountsChanged"===e)this._userWalletEvents.push({type:"accountsChanged",handler:t});else if("networkChanged"===e)this._userWalletEvents.push({type:"networkChanged",handler:t});else throw Error("Invalid event type")}off(e,t){if("accountsChanged"!==e&&"networkChanged"!==e)throw Error("Invalid event type");let r=this._userWalletEvents.findIndex(r=>r.type===e&&r.handler===t);r>=0&&this._userWalletEvents.splice(r,1)}}class m extends u.default{constructor(e,t={addMessageListener:e=>window.addEventListener("message",e),removeMessageListener:e=>window.removeEventListener("message",e),postMessage:e=>window.postMessage(e,window.location.origin)},r){super(),this._injectedKeplr=e,this._eventListener=t,this._parseMessage=r,this._handleNetworkChanged=e=>i(this,void 0,void 0,function*(){this.emit("networkChanged",e)}),this._handleAccountsChanged=e=>i(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",()=>i(this,void 0,void 0,function*(){let e=null;try{e=yield this.getAccounts()}catch(e){(null==e?void 0: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=>i(this,void 0,void 0,function*(){if(e.detail.origin===window.location.origin){let t=e.detail.network,r=null;try{r=yield this.getAccounts()}catch(e){(null==e?void 0: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(r)}})),window.addEventListener("keplr_bitcoinAccountsChanged",()=>i(this,void 0,void 0,function*(){let e=null;try{e=yield this.getAccounts()}catch(e){(null==e?void 0: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)}))}_requestMethod(e,t){return i(this,void 0,void 0,function*(){let r=new Uint8Array(8),i=Array.from(crypto.getRandomValues(r)).map(e=>e.toString(16)).join(""),n={type:"proxy-request",id:i,method:"bitcoin",args:a.JSONUint8Array.wrap(t),bitcoinProviderMethod:e};return new Promise((e,t)=>
40{let r=n=>{let o=this._parseMessage?this._parseMessage(n.data):n.data;if(!o||"proxy-request-response"!==o.type||o.id!==i)return;this._eventListener.removeMessageListener(r);let s=a.JSONUint8Array.unwrap(o.result);s?s.error?t(Error(s.error)):e(s.return):t(Error("Result is null"))};this._eventListener.addMessageListener(r),this._eventListener.postMessage(n)})})}getAccounts(){return this._requestMethod("getAccounts",[])}requestAccounts(){return i(this,void 0,void 0,function*(){return this._requestMethod("requestAccounts",[])})}disconnect(){return i(this,void 0,void 0,function*(){return this._requestMethod("disconnect",[])})}getNetwork(){return i(this,void 0,void 0,function*(){return this._requestMethod("getNetwork",[])})}switchNetwork(e){return i(this,void 0,void 0,function*(){return this._requestMethod("switchNetwork",[e])})}getChain(){return i(this,void 0,void 0,function*(){return this._requestMethod("getChain",[])})}switchChain(e){return i(this,void 0,void 0,function*(){return this._requestMethod("switchChain",[e])})}getPublicKey(){return i(this,void 0,void 0,function*(){return this._requestMethod("getPublicKey",[])})}getBalance(){return i(this,void 0,void 0,function*(){return this._requestMethod("getBalance",[])})}getInscriptions(e,t){return i(this,void 0,void 0,function*(){return this._requestMethod("getInscriptions",[e,t])})}signMessage(e,t){return i(this,void 0,void 0,function*(){return this._requestMethod("signMessage",[e,t])})}sendBitcoin(e,t){return i(this,void 0,void 0,function*(){return this._requestMethod("sendBitcoin",[e,t])})}pushTx(e){return i(this,void 0,void 0,function*(){return this._requestMethod("pushTx",[e])})}pushPsbt(e){return i(this,void 0,void 0,function*(){return this._requestMethod("pushPsbt",[e])})}signPsbt(e,t){return i(this,void 0,void 0,function*(){return this._requestMethod("signPsbt",[e,t])})}signPsbts(e,t){return i(this,void 0,void 0,function*(){return this._requestMethod("signPsbts",[e,t])})}getAddress(){return i(this,void 0,void 0,function*(){return(yield this.getAccounts())[0]})}connectWallet(){return i(this,void 0,void 0,function*(){return this.requestAccounts()})}}r.BitcoinProvider=m},321472,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(676894),r),n(e.r(44334),r),n(e.r(820650),r),n(e.r(279418),r)},324190,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},459881,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},424784,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},372088,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},598592,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},755116,(e,t,r)=>{"use strict";var i;Object.defineProperty(r,"__esModule",{value:!0}),r.EIP6963EventNames=void 0,(i=r.EIP6963EventNames||(r.EIP6963EventNames={})).Announce="eip6963:announceProvider",i.Request="eip6963:requestProvider"},580145,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},595946,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},557926,(e,t,r)=>{"use strict";var i,n,o,a,s,l,c;Object.defineProperty(r,"__esModule",{value:!0}),r.CHAIN_TYPE_TO_GENESIS_HASH=r.GENESIS_HASH_TO_CHAIN_TYPE=r.NETWORK_TO_GENESIS_HASH=r.GENESIS_HASH_TO_NETWORK=r.ChainType=r.Network=r.GenesisHash=r.BitcoinSignMessageType=void 0,(a=r.BitcoinSignMessageType||(r.BitcoinSignMessageType={})).ECDSA="ecdsa",a.BIP322_SIMPLE="bip322-simple",(s=i=r.GenesisHash||(r.GenesisHash={})).MAINNET="000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",s.TESTNET="000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943",s.SIGNET="00000008819873e925422c1ff0f99f7cc9bbb232af63a077a480a3633bee1ef6",(l=n=r.Network||(r.Network={})).MAINNET="mainnet",l.LIVENET="livenet",l.TESTNET="testnet",l.SIGNET="signet",(c=o=r.ChainType||(r.ChainType={})).BITCOIN_MAINNET="BITCOIN_MAINNET",c.BITCOIN_TESTNET="BITCOIN_TESTNET",c.BITCOIN_SIGNET="BITCOIN_SIGNET",r.GENESIS_HASH_TO_NETWORK={[i.MAINNET]:n.MAINNET,[i.TESTNET]:n.TESTNET,[i.SIGNET]:n.SIGNET},r.NETWORK_TO_GENESIS_HASH={[n.MAINNET]:i.MAINNET,[n.LIVENET]:i.MAINNET,[n.TESTNET]:i.TESTNET,[n.SIGNET]:i.SIGNET},r.GENESIS_HASH_TO_CHAIN_TYPE={[i.MAINNET]:o.BITCOIN_MAINNET,[i.TESTNET]:o.BITCOIN_TESTNET,[i.SIGNET]:o.BITCOIN_SIGNET},r.CHAIN_TYPE_TO_GENESIS_HASH={[o.BITCOIN_MAINNET]:i.MAINNET,[o.BITCOIN_TESTNET]:i.TESTNET,[o.BITCOIN_SIGNET]:i.SIGNET}},127756,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);
40(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(598592),r),n(e.r(755116),r),n(e.r(580145),r),n(e.r(595946),r),n(e.r(557926),r)},633334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},975406,(e,t,r)=>{"use strict";var i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.EthTxStatus=r.EthSignType=void 0,(i=r.EthSignType||(r.EthSignType={})).MESSAGE="message",i.TRANSACTION="transaction",i.EIP712="eip-712",(n=r.EthTxStatus||(r.EthTxStatus={})).Success="0x1",n.Failure="0x0"},207331,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},165710,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},866318,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},129636,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},354450,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(324190),r),n(e.r(459881),r),n(e.r(424784),r),n(e.r(372088),r),n(e.r(127756),r),n(e.r(633334),r),n(e.r(975406),r),n(e.r(207331),r),n(e.r(165710),r),n(e.r(866318),r),n(e.r(129636),r)},653206,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fromHex=r.toHex=void 0,r.toHex=function(e){let t="";for(let r of e)t+=("0"+r.toString(16)).slice(-2);return t},r.fromHex=function(e){if(e.length%2!=0)throw Error("hex string length must be a multiple of 2");let t=[];for(let r=0;r<e.length;r+=2){let i=e.substr(r,2);if(!i.match(/[0-9a-f]{2}/i))throw Error("hex string contains invalid characters");t.push(parseInt(i,16))}return new Uint8Array(t)}},396256,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.JSONUint8Array=void 0;let i=e.r(653206);r.JSONUint8Array=class e{static parse(e){return JSON.parse(e,(e,t)=>{if("__proto__"===e)throw Error("__proto__ is disallowed");return t&&"string"==typeof t&&t.startsWith("__uint8array__")?(0,i.fromHex)(t.replace("__uint8array__","")):"u">typeof BigInt&&t&&"string"==typeof t&&t.startsWith("__bigint__")?BigInt(t.replace("__bigint__","")):t})}static stringify(e){return JSON.stringify(e,(e,t)=>{if("__proto__"===e)throw Error("__proto__ is disallowed");if(t&&(t instanceof Uint8Array||"object"==typeof t&&"type"in t&&"data"in t&&"Buffer"===t.type&&Array.isArray(t.data))){let e=t instanceof Uint8Array?t:new Uint8Array(t.data);return`__uint8array__${(0,i.toHex)(e)}`}return"bigint"==typeof t?`__bigint__${t.toString()}`:t})}static wrap(t){if(void 0!==t)return JSON.parse(e.stringify(t))}static unwrap(t){if(void 0!==t)return e.parse(e.stringify(t))}}},20270,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.KeplrWalletConnectV2=void 0;let o=e.r(321472),a=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/"),s=n(e.r(285156)),l=n(e.r(379666));r.KeplrWalletConnectV2=class{constructor(e,t){this.signClient=e,this.options=t,this.defaultOptions={},this.version="0.12.20",this.mode="walletconnect",this.storeKey="keplr_wallet_connect_v2_key",this.storeSuggestChainKey="keplr_wallet_connect_v2_suggest_chain_key",this.storeSuggestTokenKey="keplr_wallet_connect_v2_suggest_token_key",this.ethereum=new c,this.starknet={},this.bitcoin={},t.sessionProperties&&this.saveKeys(t.sessionProperties),e.on("session_event",e=>{"keplr_accountsChanged"===e.params.event.name&&(this.saveKeys(e.params.event.data),window.dispatchEvent(new Event("keplr_keystorechange")))}),e.on("session_delete",()=>i(this,void 0,void 0,function*(){localStorage.removeItem(this.getKeyLastSeenKey()),localStorage.removeItem(this.getSuggestChainKey()),localStorage.removeItem(this.getSuggestTokenKey())}))}saveKeys(e){if(e.hasOwnProperty("keys")){let t=JSON.parse(e.keys);t.length>
400&&t.forEach(e=>{e.hasOwnProperty("chainId")&&this.saveLastSeenKey(e.chainId,this.convertToKeplrGetKeyWalletConnectV2Response(e))})}}convertToKeplrGetKeyWalletConnectV2Response(e){if(!e.hasOwnProperty("name")||!e.hasOwnProperty("algo")||!e.hasOwnProperty("pubKey")||!e.hasOwnProperty("address")||!e.hasOwnProperty("bech32Address")||!e.hasOwnProperty("ethereumHexAddress")||!e.hasOwnProperty("isNanoLedger"))throw Error("Invalid data");return{name:e.name,algo:e.algo,pubKey:e.pubKey,address:e.address,bech32Address:e.bech32Address,ethereumHexAddress:e.ethereumHexAddress,isNanoLedger:"true"===e.isNanoLedger}}getLastSession(){let e=this.signClient.session.getAll().length-1;return this.signClient.session.getAll()[e]}getCurrentTopic(){let e=this.getLastSession();if(!e)throw Error("No session");return e.topic}getKeyLastSeenKey(){let e=this.getCurrentTopic();return`${this.storeKey}/${e}-key`}getLastSeenKey(e){let t=this.getAllLastSeenKey();if(t)return t[e]}getAllLastSeenKey(){let e=localStorage.getItem(this.getKeyLastSeenKey());if(e)return JSON.parse(e)}saveLastSeenKey(e,t){let r=this.getAllLastSeenKey();r||(r={}),r[e]=t,this.saveAllLastSeenKey(r)}saveAllLastSeenKey(e){localStorage.setItem(this.getKeyLastSeenKey(),JSON.stringify(e))}getSuggestChainKey(){let e=this.getCurrentTopic();return`${this.storeSuggestChainKey}/${e}-key`}getRegisteredSuggestChain(e){let t=this.getAllRegisteredSuggestChain();if(t)return t[e]}getAllRegisteredSuggestChain(){let e=localStorage.getItem(this.getSuggestChainKey());if(e)return JSON.parse(e)}saveRegisteredSuggestChain(e){let t=this.getAllRegisteredSuggestChain();t||(t={}),t[e.chainId]=e,this.saveAllRegisteredSuggestChain(t)}saveAllRegisteredSuggestChain(e){localStorage.setItem(this.getSuggestChainKey(),JSON.stringify(e))}getSuggestTokenKey(){let e=this.getCurrentTopic();return`${this.storeSuggestTokenKey}/${e}-key`}getRegisteredSuggestToken(e){let t=this.getAllRegisteredSuggestToken();if(t)return t[e]}getAllRegisteredSuggestToken(){let e=localStorage.getItem(this.getSuggestTokenKey());if(e)return JSON.parse(e)}saveRegisteredSuggestToken(e,t,r){let i=this.getAllRegisteredSuggestToken();i||(i={}),i[t]={chainId:e,contractAddress:t,viewingKey:r},this.saveAllRegisteredSuggestToken(i)}saveAllRegisteredSuggestToken(e){localStorage.setItem(this.getSuggestTokenKey(),JSON.stringify(e))}sendCustomRequest(e){return i(this,void 0,void 0,function*(){return yield this.signClient.request(e)})}getNamespaceChainId(){let e=this.getLastSession();if(e&&e.namespaces.hasOwnProperty("cosmos")&&e.namespaces.cosmos.hasOwnProperty("accounts")){let t=e.namespaces.cosmos.accounts[0].split(":");return`${t[0]}:${t[1]}`}return"cosmos:cosmoshub-4"}checkDeepLink(){let e=localStorage.getItem("wallet-connect-v2-mobile-link");e&&(window.location.href=JSON.parse(e).href)}ping(){return Promise.resolve()}changeKeyRingName(e){throw Error("Not yet implemented")}disable(e){throw Error("Not yet implemented")}enable(e){return i(this,void 0,void 0,function*(){"string"==typeof e&&(e=[e]);let t=yield this.getAllLastSeenKey();if(t&&e.every(e=>Object.keys(t).includes(e)))return;this.checkDeepLink();let r=this.getCurrentTopic();if(!this.getNamespaceChainId())throw Error("No Namespace chain id");let n={topic:r,chainId:this.getNamespaceChainId(),request:{method:"keplr_enable",params:{chainId:e}}};return yield this.sendCustomRequest(n),new Promise(t=>i(this,void 0,void 0,function*(){for(;;){yield new Promise(e=>setTimeout(e,100));let r=this.getLastSession();if(r&&r.namespaces.hasOwnProperty("cosmos")&&r.namespaces.cosmos.hasOwnProperty("accounts")&&r.namespaces.cosmos.accounts.some(t=>{let r=t.replace("cosmos:","").split(":")[0];return e.includes(r)}))return void t()}}))})}enigmaDecrypt(e,t,r){throw Error("Not yet implemented")}enigmaEncrypt(e,t,r){throw Error("Not yet implemented")}experimentalSignEIP712CosmosTx_v0(e,t,r,i,n={}){throw Error("Not yet implemented")}experimentalSuggestChain(e){var t,r;return i(this,void 0,void 0,function*(){if(((null==(t=e.features)?void 0:t.includes("stargate"))||(null==(r=e.features)?void 0:r.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."),this.getRegisteredSuggestChain(e.chainId))return;this.checkDeepLink();let i={topic:this.getCurrentTopic(),chainId:this.getNamespaceChainId(),request:{method:"keplr_experimentalSuggestChain",params:{chainInfo:e}}};
40yield this.sendCustomRequest(i),this.saveRegisteredSuggestChain(e)})}getChainInfosWithoutEndpoints(){throw Error("Not yet implemented")}getChainInfoWithoutEndpoints(e){throw Error("Not yet implemented")}getEnigmaPubKey(e){throw Error("Not yet implemented")}getEnigmaTxEncryptionKey(e,t){throw Error("Not yet implemented")}getEnigmaUtils(e){throw Error("Not yet implemented")}getKey(e){return i(this,void 0,void 0,function*(){let t=this.getLastSeenKey(e);if(t)return{algo:t.algo,bech32Address:t.bech32Address,ethereumHexAddress:t.ethereumHexAddress,address:a.Buffer.from(t.address,"base64"),name:t.name,pubKey:a.Buffer.from(t.pubKey,"base64"),isNanoLedger:t.isNanoLedger,isKeystone:!1};let r=this.getLastSession();if(r&&r.sessionProperties&&r.sessionProperties.chainId===e)return{algo:r.sessionProperties.algo,bech32Address:r.sessionProperties.bech32Address,ethereumHexAddress:r.sessionProperties.ethereumHexAddress,address:a.Buffer.from(r.sessionProperties.address,"base64"),name:r.sessionProperties.name,pubKey:a.Buffer.from(r.sessionProperties.pubKey,"base64"),isNanoLedger:"true"===r.sessionProperties.isNanoLedger,isKeystone:!1};let i={topic:this.getCurrentTopic(),chainId:this.getNamespaceChainId(),request:{method:"keplr_getKey",params:{chainId:e}}},n=yield this.sendCustomRequest(i);return Object.assign(Object.assign({},n),{pubKey:a.Buffer.from(n.pubKey,"base64"),address:a.Buffer.from(n.address,"base64"),isKeystone:!1})})}getKeysSettled(e){return i(this,void 0,void 0,function*(){let t=e.map(e=>i(this,void 0,void 0,function*(){return yield this.getKey(e)}));return yield Promise.allSettled(t)})}getOfflineSigner(e,t){return new o.CosmJSOfflineSigner(e,this,t)}getOfflineSignerAuto(e,t){return i(this,void 0,void 0,function*(){return(yield this.getKey(e)).isNanoLedger?new o.CosmJSOfflineSignerOnlyAmino(e,this,t):new o.CosmJSOfflineSigner(e,this,t)})}getOfflineSignerOnlyAmino(e,t){return new o.CosmJSOfflineSignerOnlyAmino(e,this,t)}getSecret20ViewingKey(e,t){throw Error("Not yet implemented")}sendTx(e,t,r){if(this.options.sendTx)return this.options.sendTx(e,t,r);throw Error("send tx is not delivered by options")}signAmino(e,t,r,n){return i(this,void 0,void 0,function*(){this.checkDeepLink();let i={topic:this.getCurrentTopic(),chainId:this.getNamespaceChainId(),request:{method:"keplr_signAmino",params:{chainId:e,signer:t,signDoc:r,signOptions:n}}};return yield this.sendCustomRequest(i)})}signArbitrary(e,t,r){this.checkDeepLink();let i={topic:this.getCurrentTopic(),chainId:this.getNamespaceChainId(),request:{method:"keplr_signArbitrary",params:{chainId:e,signer:t,type:"string"==typeof r?"string":"Uint8Array",data:"string"==typeof r?r:a.Buffer.from(r).toString("base64")}}};return this.sendCustomRequest(i)}signDirect(e,t,r,n){var o,l;return i(this,void 0,void 0,function*(){this.checkDeepLink();let i={topic:this.getCurrentTopic(),chainId:this.getNamespaceChainId(),request:{method:"keplr_signDirect",params:{chainId:e,signer:t,signDoc:{chainId:r.chainId,accountNumber:null==(o=r.accountNumber)?void 0:o.toString(),bodyBytes:r.bodyBytes?a.Buffer.from(r.bodyBytes).toString("base64"):null,authInfoBytes:r.authInfoBytes?a.Buffer.from(r.authInfoBytes).toString("base64"):null},signOptions:n}}},c=yield this.sendCustomRequest(i);return{signature:c.signature,signed:{chainId:null!=(l=c.signed.chainId)?l:"",accountNumber:c.signed.accountNumber?s.default.fromString(c.signed.accountNumber):new s.default(0),bodyBytes:c.signed.bodyBytes?a.Buffer.from(c.signed.bodyBytes,"base64"):new Uint8Array([]),authInfoBytes:c.signed.authInfoBytes?a.Buffer.from(c.signed.authInfoBytes,"base64"):new Uint8Array([])}}})}signDirectAux(e,t,r,i){throw Error("Not yet implemented")}signEthereum(e,t,r,n){return i(this,void 0,void 0,function*(){this.checkDeepLink();let i={topic:this.getCurrentTopic(),chainId:this.getNamespaceChainId(),request:{method:"keplr_signEthereum",params:{chainId:e,signer:t,data:r,type:n}}};return yield this.sendCustomRequest(i)})}signICNSAdr36(e,t,r,i,n){throw Error("Not yet implemented")}suggestToken(e,t,r){return i(this,void 0,void 0,function*(){if(this.getRegisteredSuggestToken(t))return;this.checkDeepLink();let i={topic:this.getCurrentTopic(),chainId:this.getNamespaceChainId(),request:{method:"keplr_suggestToken",params:{chainId:e,contractAddress:t,viewingKey:r}}};
40yield this.sendCustomRequest(i),this.saveRegisteredSuggestToken(e,t,r)})}verifyArbitrary(e,t,r,i){throw Error("Not yet implemented")}sendEthereumTx(e,t){throw Error("Not yet implemented")}suggestERC20(e,t){throw Error("Not yet implemented")}getStarknetKey(e){throw Error("Not yet implemented")}getStarknetKeysSettled(e){throw Error("Not yet implemented")}signStarknetTx(){throw Error("Not yet implemented")}signStarknetDeployAccountTransaction(e,t){throw Error("Not yet implemented")}getBitcoinKey(e){throw Error("Not yet implemented")}getBitcoinKeysSettled(e){throw Error("Not yet implemented")}signPsbt(e,t,r){throw Error("Method not implemented.")}signPsbts(e,t,r){throw Error("Method not implemented.")}};class c extends l.default{constructor(){super(),this.chainId=null,this.selectedAddress=null,this.networkVersion=null,this.isKeplr=!0,this.isMetaMask=!0}isConnected(){throw Error("Method not implemented.")}request({}){throw Error("Not yet implemented")}enable(){throw Error("Method not implemented.")}net_version(){throw Error("Method not implemented.")}}},694116,(e,t,r)=>{!function(r){"use strict";var i,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,a=Math.floor,s="[BigNumber Error] ",l=s+"Number primitive has more than 15 significant digits: ",c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function d(e){var t=0|e;return e>0||e===t?t:t-1}function u(e){for(var t,r,i=1,n=e.length,o=e[0]+"";i<n;){for(r=14-(t=e[i++]+"").length;r--;t="0"+t);o+=t}for(n=o.length;48===o.charCodeAt(--n););return o.slice(0,n+1||1)}function h(e,t){var r,i,n=e.c,o=t.c,a=e.s,s=t.s,l=e.e,c=t.e;if(!a||!s)return null;if(r=n&&!n[0],i=o&&!o[0],r||i)return r?i?0:-s:a;if(a!=s)return a;if(r=a<0,i=l==c,!n||!o)return i?0:!n^r?1:-1;if(!i)return l>c^r?1:-1;for(s=(l=n.length)<(c=o.length)?l:c,a=0;a<s;a++)if(n[a]!=o[a])return n[a]>o[a]^r?1:-1;return l==c?0:l>c^r?1:-1}function p(e,t,r,i){if(e<t||e>r||e!==a(e))throw Error(s+(i||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function f(e){var t=e.c.length-1;return d(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function m(e,t,r){var i,n;if(t<0){for(n=r+".";++t;n+=r);e=n+e}else if(i=e.length,++t>i){for(n=r,t-=i;--t;n+=r);e+=n}else t<i&&(e=e.slice(0,t)+"."+e.slice(t));return e}if((i=function e(t){var r,i,y,b,v,w,x,S,A,k=L.prototype={constructor:L,toString:null,valueOf:null},E=new L(1),I=20,M=4,T=-7,N=21,_=-1e7,C=1e7,O=!1,P=1,D=0,j={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},R="0123456789abcdefghijklmnopqrstuvwxyz",z=!0;function L(e,t){var r,i,o,s,c,d,u,h,f=this;if(!(f instanceof L))return new L(e,t);if(null==t){if(e&&!0===e._isBigNumber){f.s=e.s,!e.c||e.e>C?f.c=f.e=null:e.e<_?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice());return}if((d="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(s=0,c=e;c>=10;c/=10,s++);s>C?f.c=f.e=null:(f.e=s,f.c=[e]);return}h=String(e)}else{if(!n.test(h=String(e)))return A(f,h,d);f.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(s=h.indexOf("."))>-1&&(h=h.replace(".","")),(c=h.search(/e/i))>0?(s<0&&(s=c),s+=+h.slice(c+1),h=h.substring(0,c)):s<0&&(s=h.length)}else{if(p(t,2,R.length,"Base"),10==t&&z)return W(f=new L(e),I+f.e+1,M);if(h=String(e),d="number"==typeof e){if(0*e!=0)return A(f,h,d,t);if(f.s=1/e<0?(h=h.slice(1),-1):1,L.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(l+e)}else f.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(r=R.slice(0,t),s=c=0,u=h.length;c<u;c++)if(0>r.indexOf(i=h.charAt(c))){if("."==i){if(c>s){s=u;continue}}else if(!o&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){o=!0,c=-1,s=0;continue}return A(f,String(e),d,t)}d=!1,(s=(h=S(h,t,10,f.s)).indexOf("."))>-1?h=h.replace(".",""):s=h.length}for(c=0;48===h.charCodeAt(c);c++);for(u=h.length;48===h.charCodeAt(--u););if(h=h.slice(c,++u)){if(u-=c,d&&L.DEBUG&&u>15&&(e>0x1fffffffffffff||e!==a(e)))throw Error(l+f.s*e);if((s=s-c-1)>C)f.c=f.e=null;else if(s<_)f.c=[f.e=0];else{if(f.e=s,f.c=[],c=(s+1)%14,s<0&&(c+=14),c<u){for(c&&f.c.push(+h.slice(0,c)),u-=14;c<u;)f.c.push(+h.slice(c,c+=14));c=14-(h=h.slice(c)).length}else c-=u;for(;c--;h+="0");
40f.c.push(+h)}}else f.c=[f.e=0]}function B(e,t,r,i){var n,o,a,s,l;if(null==r?r=M:p(r,0,8),!e.c)return e.toString();if(n=e.c[0],a=e.e,null==t)l=u(e.c),l=1==i||2==i&&(a<=T||a>=N)?g(l,a):m(l,a,"0");else if(o=(e=W(new L(e),t,r)).e,s=(l=u(e.c)).length,1==i||2==i&&(t<=o||o<=T)){for(;s<t;l+="0",s++);l=g(l,o)}else if(t-=a+(2===i&&o>a),l=m(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&n?"-"+l:l}function U(e,t){for(var r,i,n=1,o=new L(e[0]);n<e.length;n++)(i=new L(e[n])).s&&(r=h(o,i))!==t&&(0!==r||o.s!==t)||(o=i);return o}function q(e,t,r){for(var i=1,n=t.length;!t[--n];t.pop());for(n=t[0];n>=10;n/=10,i++);return(r=i+14*r-1)>C?e.c=e.e=null:r<_?e.c=[e.e=0]:(e.e=r,e.c=t),e}function W(e,t,r,i){var n,s,l,d,u,h,p,f=e.c;if(f){e:{for(n=1,d=f[0];d>=10;d/=10,n++);if((s=t-n)<0)s+=14,l=t,p=a((u=f[h=0])/c[n-l-1]%10);else if((h=o((s+1)/14))>=f.length)if(i){for(;f.length<=h;f.push(0));u=p=0,n=1,s%=14,l=s-14+1}else break e;else{for(u=d=f[h],n=1;d>=10;d/=10,n++);s%=14,p=(l=s-14+n)<0?0:a(u/c[n-l-1]%10)}if(i=i||t<0||null!=f[h+1]||(l<0?u:u%c[n-l-1]),i=r<4?(p||i)&&(0==r||r==(e.s<0?3:2)):p>5||5==p&&(4==r||i||6==r&&(s>0?l>0?u/c[n-l]:0:f[h-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,i?(t-=e.e+1,f[0]=c[(14-t%14)%14],e.e=-t||0):f[0]=e.e=0,e;if(0==s?(f.length=h,d=1,h--):(f.length=h+1,d=c[14-s],f[h]=l>0?a(u/c[n-l]%c[l])*d:0),i)for(;;)if(0==h){for(s=1,l=f[0];l>=10;l/=10,s++);for(l=f[0]+=d,d=1;l>=10;l/=10,d++);s!=d&&(e.e++,1e14==f[0]&&(f[0]=1));break}else{if(f[h]+=d,1e14!=f[h])break;f[h--]=0,d=1}for(s=f.length;0===f[--s];f.pop());}e.e>C?e.c=e.e=null:e.e<_&&(e.c=[e.e=0])}return e}function H(e){var t,r=e.e;return null===r?e.toString():(t=u(e.c),t=r<=T||r>=N?g(t,r):m(t,r,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(p(r=e[t],0,1e9,t),I=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(p(r=e[t],0,8,t),M=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(p(r[0],-1e9,0,t),p(r[1],0,1e9,t),T=r[0],N=r[1]):(p(r,-1e9,1e9,t),T=-(N=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)p(r[0],-1e9,-1,t),p(r[1],1,1e9,t),_=r[0],C=r[1];else if(p(r,-1e9,1e9,t),r)_=-(C=r<0?-r:r);else throw Error(s+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))O=r;else throw O=!r,Error(s+"crypto unavailable");else O=r;else throw Error(s+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(p(r=e[t],0,9,t),P=r),e.hasOwnProperty(t="POW_PRECISION")&&(p(r=e[t],0,1e9,t),D=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))j=r;else throw Error(s+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(s+t+" invalid: "+r);z="0123456789"==r.slice(0,10),R=r}}else throw Error(s+"Object expected: "+e);return{DECIMAL_PLACES:I,ROUNDING_MODE:M,EXPONENTIAL_AT:[T,N],RANGE:[_,C],CRYPTO:O,MODULO_MODE:P,POW_PRECISION:D,FORMAT:j,ALPHABET:R}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,r,i=e.c,n=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(i)){if((1===o||-1===o)&&n>=-1e9&&n<=1e9&&n===a(n)){if(0===i[0]){if(0===n&&1===i.length)return!0;break e}if((t=(n+1)%14)<1&&(t+=14),String(i[0]).length==t){for(t=0;t<i.length;t++)if((r=i[t])<0||r>=1e14||r!==a(r))break e;if(0!==r)return!0}}}else if(null===i&&null===n&&(null===o||1===o||-1===o))return!0;throw Error(s+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return U(arguments,-1)},L.minimum=L.min=function(){return U(arguments,1)},r=0x20000000000000*Math.random()&2097151?function(){return a(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},L.random=function(e){var t,i,n,l,d,u=0,h=[],f=new L(E);if(null==e?e=I:p(e,0,1e9),l=o(e/14),O)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(l*=2));u<l;)(d=131072*t[u]+(t[u+1]>>>11))>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),t[u]=i[0],t[u+1]=i[1]):(h.push(d%1e14),u+=2);u=l/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(l*=7);u<l;)(d=(31&t[u])*0x1000000000000+0x10000000000*t[u+1]+0x100000000*t[u+2]+0x1000000*t[u+3]+(t[u+4]<<16)+(t[u+5]<<8)+t[u+6])>=9e15?crypto.randomBytes(7).copy(t,u):(h.push(d%1e14),u+=7);u=l/7}else throw O=!1,Error(s+"crypto unavailable");if(!O)for(;u<l;)(d=r())<9e15&&(h[u++]=d%1e14);for(l=h[--u],e%=14,l&&e&&(d=c[14-e],h[u]=a(l/d)*d);0===h[u];h.pop(),u--);if(u<0)h=[n=0];else{for(n=-1;0===h[0];h.splice(0,1),n-=14);for(u=1,d=h[0];d>=10;d/=10,u++);u<14&&(n-=14-u)}return f.e=n,f.c=h,f},L.sum=function(){for(var e=1,t=arguments,r=new L(t[0]);e<t.length;)r=r.plus(t[e++]);return r},S=function(){var e="0123456789";
40function t(e,t,r,i){for(var n,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=i.indexOf(e.charAt(s++)),n=0;n<a.length;n++)a[n]>r-1&&(null==a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}return function(r,i,n,o,a){var s,l,c,d,h,p,f,g,y=r.indexOf("."),b=I,v=M;for(y>=0&&(d=D,D=0,r=r.replace(".",""),p=(g=new L(i)).pow(r.length-y),D=d,g.c=t(m(u(p.c),p.e,"0"),10,n,e),g.e=g.c.length),c=d=(f=t(r,i,n,a?(s=R,e):(s=e,R))).length;0==f[--d];f.pop());if(!f[0])return s.charAt(0);if(y<0?--c:(p.c=f,p.e=c,p.s=o,f=(p=x(p,g,b,v,n)).c,h=p.r,c=p.e),y=f[l=c+b+1],d=n/2,h=h||l<0||null!=f[l+1],h=v<4?(null!=y||h)&&(0==v||v==(p.s<0?3:2)):y>d||y==d&&(4==v||h||6==v&&1&f[l-1]||v==(p.s<0?8:7)),l<1||!f[0])r=h?m(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(f.length=l,h)for(--n;++f[--l]>n;)f[l]=0,l||(++c,f=[1].concat(f));for(d=f.length;!f[--d];);for(y=0,r="";y<=d;r+=s.charAt(f[y++]));r=m(r,c,s.charAt(0))}return r}}(),x=function(){function e(e,t,r){var i,n,o,a,s=0,l=e.length,c=t%1e7,d=t/1e7|0;for(e=e.slice();l--;)i=d*(o=e[l]%1e7)+(a=e[l]/1e7|0)*c,s=((n=c*o+i%1e7*1e7+s)/r|0)+(i/1e7|0)+d*a,e[l]=n%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,i){var n,o;if(r!=i)o=r>i?1:-1;else for(n=o=0;n<r;n++)if(e[n]!=t[n]){o=e[n]>t[n]?1:-1;break}return o}function r(e,t,r,i){for(var n=0;r--;)e[r]-=n,n=+(e[r]<t[r]),e[r]=n*i+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,n,o,s,l){var c,u,h,p,f,g,m,y,b,v,w,x,S,A,k,E,I,M=i.s==n.s?1:-1,T=i.c,N=n.c;if(!T||!T[0]||!N||!N[0])return new L(!i.s||!n.s||(T?N&&T[0]==N[0]:!N)?NaN:T&&0==T[0]||!N?0*M:M/0);for(b=(y=new L(M)).c=[],M=o+(u=i.e-n.e)+1,l||(l=1e14,u=d(i.e/14)-d(n.e/14),M=M/14|0),h=0;N[h]==(T[h]||0);h++);if(N[h]>(T[h]||0)&&u--,M<0)b.push(1),p=!0;else{for(A=T.length,E=N.length,h=0,M+=2,(f=a(l/(N[0]+1)))>1&&(N=e(N,f,l),T=e(T,f,l),E=N.length,A=T.length),S=E,w=(v=T.slice(0,E)).length;w<E;v[w++]=0);I=[0].concat(I=N.slice()),k=N[0],N[1]>=l/2&&k++;do{if(f=0,(c=t(N,v,E,w))<0){if(x=v[0],E!=w&&(x=x*l+(v[1]||0)),(f=a(x/k))>1)for(f>=l&&(f=l-1),m=(g=e(N,f,l)).length,w=v.length;1==t(g,v,m,w);)f--,r(g,E<m?I:N,m,l),m=g.length,c=1;else 0==f&&(c=f=1),m=(g=N.slice()).length;if(m<w&&(g=[0].concat(g)),r(v,g,w,l),w=v.length,-1==c)for(;1>t(N,v,E,w);)f++,r(v,E<w?I:N,w,l),w=v.length}else 0===c&&(f++,v=[0]);b[h++]=f,v[0]?v[w++]=T[S]||0:(v=[T[S]],w=1)}while((S++<A||null!=v[0])&&M--)p=null!=v[0],b[0]||b.splice(0,1)}if(1e14==l){for(h=1,M=b[0];M>=10;M/=10,h++);W(y,o+(y.e=h+14*u-1)+1,s,p)}else y.e=u,y.r=+p;return y}}(),i=/^(-?)0([xbo])(?=\w[\w.]*$)/i,y=/^([^.]+)\.$/,b=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,w=/^\s*\+(?=[\w.])|^\s+|\s+$/g,A=function(e,t,r,n){var o,a=r?t:t.replace(w,"");if(v.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.replace(i,function(e,t,r){return o="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=o?e:t}),n&&(o=n,a=a.replace(y,"$1").replace(b,"0.$1")),t!=a))return new L(a,o);if(L.DEBUG)throw Error(s+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return h(this,new L(e,t))},k.decimalPlaces=k.dp=function(e,t){var r,i,n;if(null!=e)return p(e,0,1e9),null==t?t=M:p(t,0,8),W(new L(this),e+this.e+1,t);if(!(r=this.c))return null;if(i=((n=r.length-1)-d(this.e/14))*14,n=r[n])for(;n%10==0;n/=10,i--);return i<0&&(i=0),i},k.dividedBy=k.div=function(e,t){return x(this,new L(e,t),I,M)},k.dividedToIntegerBy=k.idiv=function(e,t){return x(this,new L(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var r,i,n,l,c,d,u,h,p,g=this;if((e=new L(e)).c&&!e.isInteger())throw Error(s+"Exponent not an integer: "+H(e));if(null!=t&&(t=new L(t)),d=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return p=new L(Math.pow(+H(g),d?e.s*(2-f(e)):+H(e))),t?p.mod(t):p;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(i=!u&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||d&&g.c[1]>=24e7:g.c[0]<8e13||d&&g.c[0]<=9999975e7)))return l=g.s<0&&f(e)?-0:0,g.e>-1&&(l=1/l),new L(u?1/l:l);D&&(l=o(D/14+2))}for(d?(r=new L(.5),u&&(e.s=1),h=f(e)):h=(n=Math.abs(+H(e)))%2,p=new L(E);;){if(h){if(!(p=p.times(g)).c)break;l?p.c.length>l&&(p.c.length=l):i&&(p=p.mod(t))}if(n){if(0===(n=a(n/2)))break;h=n%2}
40else if(W(e=e.times(r),e.e+1,1),e.e>14)h=f(e);else{if(0==(n=+H(e)))break;h=n%2}g=g.times(g),l?g.c&&g.c.length>l&&(g.c.length=l):i&&(g=g.mod(t))}return i?p:(u&&(p=E.div(p)),t?p.mod(t):l?W(p,D,M,c):p)},k.integerValue=function(e){var t=new L(this);return null==e?e=M:p(e,0,8),W(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===h(this,new L(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return h(this,new L(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=h(this,new L(e,t)))||0===t},k.isInteger=function(){return!!this.c&&d(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>h(this,new L(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=h(this,new L(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var r,i,n,o,a=this.s;if(t=(e=new L(e,t)).s,!a||!t)return new L(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,c=this.c,u=e.c;if(!s||!l){if(!c||!u)return c?(e.s=-t,e):new L(u?this:NaN);if(!c[0]||!u[0])return u[0]?(e.s=-t,e):new L(c[0]?this:3==M?-0:0)}if(s=d(s),l=d(l),c=c.slice(),a=s-l){for((o=a<0)?(a=-a,n=c):(l=s,n=u),n.reverse(),t=a;t--;n.push(0));n.reverse()}else for(i=(o=(a=c.length)<(t=u.length))?a:t,a=t=0;t<i;t++)if(c[t]!=u[t]){o=c[t]<u[t];break}if(o&&(n=c,c=u,u=n,e.s=-e.s),(t=(i=u.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;i>a;){if(c[--i]<u[i]){for(r=i;r&&!c[--r];c[r]=t);--c[r],c[i]+=1e14}c[i]-=u[i]}for(;0==c[0];c.splice(0,1),--l);return c[0]?q(e,c,l):(e.s=3==M?-1:1,e.c=[e.e=0],e)},k.modulo=k.mod=function(e,t){var r,i;return(e=new L(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==P?(i=e.s,e.s=1,r=x(this,e,0,3),e.s=i,r.s*=i):r=x(this,e,0,P),(e=this.minus(r.times(e))).c[0]||1!=P||(e.s=this.s),e):new L(this):new L(NaN)},k.multipliedBy=k.times=function(e,t){var r,i,n,o,a,s,l,c,u,h,p,f,g,m=this.c,y=(e=new L(e,t)).c;if(!m||!y||!m[0]||!y[0])return this.s&&e.s&&(!m||m[0]||y)&&(!y||y[0]||m)?(e.s*=this.s,m&&y?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(i=d(this.e/14)+d(e.e/14),e.s*=this.s,(l=m.length)<(h=y.length)&&(g=m,m=y,y=g,n=l,l=h,h=n),n=l+h,g=[];n--;g.push(0));for(n=h;--n>=0;){for(r=0,p=y[n]%1e7,f=y[n]/1e7|0,o=n+(a=l);o>n;)s=f*(c=m[--a]%1e7)+(u=m[a]/1e7|0)*p,r=((c=p*c+s%1e7*1e7+g[o]+r)/1e14|0)+(s/1e7|0)+f*u,g[o--]=c%1e14;g[o]=r}return r?++i:g.splice(0,1),q(e,g,i)},k.negated=function(){var e=new L(this);return e.s=-e.s||null,e},k.plus=function(e,t){var r,i=this.s;if(t=(e=new L(e,t)).s,!i||!t)return new L(NaN);if(i!=t)return e.s=-t,this.minus(e);var n=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!n||!o){if(!a||!s)return new L(i/0);if(!a[0]||!s[0])return s[0]?e:new L(a[0]?this:0*i)}if(n=d(n),o=d(o),a=a.slice(),i=n-o){for(i>0?(o=n,r=s):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=i),i=0;t;)i=(a[--t]=a[t]+s[t]+i)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return i&&(a=[i].concat(a),++o),q(e,a,o)},k.precision=k.sd=function(e,t){var r,i,n;if(null!=e&&!!e!==e)return p(e,1,1e9),null==t?t=M:p(t,0,8),W(new L(this),e,t);if(!(r=this.c))return null;if(i=14*(n=r.length-1)+1,n=r[n]){for(;n%10==0;n/=10,i--);for(n=r[0];n>=10;n/=10,i++);}return e&&this.e+1>i&&(i=this.e+1),i},k.shiftedBy=function(e){return p(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,r,i,n,o=this.c,a=this.s,s=this.e,l=I+4,c=new L("0.5");if(1!==a||!o||!o[0])return new L(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=u(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=d((s+1)/2)-(s<0||s%2),r=new L(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new L(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(n=r,r=c.times(n.plus(x(this,n,l,1))),u(n.c).slice(0,a)===(t=u(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(W(r,r.e+I+2,1),e=!r.times(r).eq(this));break}if(!i&&(W(n,n.e+I+2,0),n.times(n).eq(this))){r=n;break}l+=4,a+=4,i=1}}return W(r,r.e+I+1,M,e)},k.toExponential=function(e,t){return null!=e&&(p(e,0,1e9),e++),B(this,e,t,1)},k.toFixed=function(e,t){return null!=e&&(p(e,0,1e9),e=e+this.e+1),B(this,e,t)},k.toFormat=function(e,t,r){var i;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=j;else if("object"!=typeof r)throw Error(s+"Argument not an object: "+r);if(i=this.toFixed(e,t),this.c){var n,o=i.split("."),a=+r.groupSize,l=+r.secondaryGroupSize,c=r.groupSeparator||"",d=o[0],u=o[1],h=this.s<0,p=h?d.slice(1):d,f=p.length;if(l&&(n=a,a=l,l=n,f-=n),a>0&&f>0){for(n=f%a||a,d=p.substr(0,n);n<f;n+=a)d+=c+p.substr(n,a);l>0&&(d+=c+p.slice(n)),h&&(d="-"+d)}i=u?d+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?u.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):u):d}return(r.prefix||"")+i+(r.suffix||"")},k.toFraction=function(e){var t,r,i,n,o,a,l,d,h,p,f,g,m=this.c;if(null!=e&&(!(l=new L(e)).isInteger()&&(l.c||1!==l.s)||l.lt(E)))throw Error(s+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+H(l));if(!m)return new L(this);
40for(t=new L(E),h=r=new L(E),i=d=new L(E),g=u(m),o=t.e=g.length-this.e-1,t.c[0]=c[(a=o%14)<0?14+a:a],e=!e||l.comparedTo(t)>0?o>0?t:h:l,a=C,C=1/0,l=new L(g),d.c[0]=0;p=x(l,t,0,1),1!=(n=r.plus(p.times(i))).comparedTo(e);)r=i,i=n,h=d.plus(p.times(n=h)),d=n,t=l.minus(p.times(n=t)),l=n;return n=x(e.minus(r),i,0,1),d=d.plus(n.times(h)),r=r.plus(n.times(i)),d.s=h.s=this.s,o*=2,f=1>x(h,i,o,M).minus(this).abs().comparedTo(x(d,r,o,M).minus(this).abs())?[h,i]:[d,r],C=a,f},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&p(e,1,1e9),B(this,e,t,2)},k.toString=function(e){var t,r=this,i=r.s,n=r.e;return null===n?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=n<=T||n>=N?g(u(r.c),n):m(u(r.c),n,"0"):10===e&&z?t=m(u((r=W(new L(r),I+n+1,M)).c),r.e,"0"):(p(e,2,R.length,"Base"),t=S(m(u(r.c),n,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&L.set(t),L}()).default=i.BigNumber=i,"function"==typeof define&&define.amd)e.r,void 0!==i&&e.v(i);else t.exports?t.exports=i:(r||(r="u">typeof self&&self?self:window),r.BigNumber=i)}(e.e)},913359,(e,t,r)=>{"use strict";var i,n=e.i(494514);Object.defineProperty(r,"__esModule",{value:!0}),r.defaultSnapOrigin=void 0,r.defaultSnapOrigin=null!=(i=n.default.env.SNAP_ORIGIN)?i:"npm:@leapwallet/metamask-cosmos-snap"},561140,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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}
40,"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}}},172612,(e,t,r)=>{"use strict";
40var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.toSmall=r.getGasPriceForChainName=void 0;let n=i(e.r(694116));r.getGasPriceForChainName=async(e,t="average")=>{var r;let i=await fetch("https://assets.leapwallet.io/cosmos-registry/v1/gas/gas-prices.json");if(!i.ok)throw Error(`Failed to get Gas price ${i.status}`);let n=await i.json();return console.log(n,e,t),null==(r=null==n?void 0:n[e])?void 0:r[t]},r.toSmall=function(e,t=6){return new n.default(e).times(Math.pow(10,t)).toFixed().toString()}},984631,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.experimentalSuggestChain=r.suggestChain=r.isLocalSnap=r.getKey=r.requestSignAmino=r.requestSignature=r.getSnap=r.connectSnap=r.getSnaps=void 0;let n=i(e.r(694116)),o=i(e.r(285156)),a=e.r(913359),s=i(e.r(561140)),l=e.r(172612),c=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(e){}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(e){}return window.ethereum},d=async(e,t)=>(await c()).request({method:"wallet_invokeSnap",params:{snapId:a.defaultSnapOrigin,request:{method:e,params:t}}});r.getSnaps=async()=>{let e=await c();return await e.request({method:"wallet_getSnaps"})},r.connectSnap=async(e=a.defaultSnapOrigin,t={})=>(await c()).request({method:"wallet_requestSnaps",params:{[e]:t}});let u=async e=>{try{let t=await (0,r.getSnaps)();return Object.values(t).find(t=>t.id===a.defaultSnapOrigin&&(!e||t.version===e))}catch(e){console.log("Failed to obtain installed snap",e);return}};r.getSnap=u,r.requestSignature=async(e,t,r)=>{let i=await d("signDirect",{chainId:e,signerAddress:t,signDoc:Object.assign(Object.assign({},r),{accountNumber:o.default.fromString(r.accountNumber.toString(),!0)})});return{signature:i.signature,signed:Object.assign(Object.assign({},i.signed),{accountNumber:r.accountNumber.toString(),authInfoBytes:new Uint8Array(Object.values(i.signed.authInfoBytes)),bodyBytes:new Uint8Array(Object.values(i.signed.bodyBytes))})}},r.requestSignAmino=async(e,t,r,i)=>{let{isADR36:o=!1,enableExtraEntropy:a=!1}=i||{};if(!o&&e!==r.chain_id)throw Error("Chain ID does not match signer chain ID");let c=s.default[e];if(!(null==i?void 0:i.preferNoSetFee)&&c&&c.denom){let e=await (0,l.getGasPriceForChainName)(c.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:c.denom}];r.fee.amount=i}}return await d("signAmino",{chainId:e,signerAddress:t,signDoc:r,isADR36:o,enableExtraEntropy:a})},r.getKey=async e=>{let t=await d("getKey",{chainId:e});if(!t)throw Error("No account data found");return t.pubkey=Uint8Array.from(Object.values(t.pubkey)),t},r.isLocalSnap=e=>e.startsWith("local:"),r.suggestChain=async(e,t)=>t&&t.force?await d("suggestChain",{chainInfo:e}):(await d("getSupportedChains",{})||{})[e.chainId]?Promise.resolve({message:"Chain already added successfully",chainInfo:e}):await d("suggestChain",{chainInfo:e}),r.experimentalSuggestChain=r.suggestChain},178286,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},213364,(e,t,r)=>{"use strict";var i=e.i(29510);Object.defineProperty(r,"__esModule",{value:!0}),r.signArbitrary=r.getOfflineSigner=r.CosmjsOfflineSigner=void 0;let n=e.r(984631);class o{constructor(e){this.chainId=e}async getAccounts(){let e=await (0,n.getKey)(this.chainId);return[{address:e.address,algo:"secp256k1",pubkey:e.pubkey}]}async signDirect(e,t){if(this.chainId!==t.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,n.requestSignature)(this.chainId,e,t)}async signAmino(e,t,r){if(this.chainId!==t.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,n.requestSignAmino)(this.chainId,e,t,r)}}r.CosmjsOfflineSigner=o,r.getOfflineSigner=function(e){return new o(e)},r.signArbitrary=async function(e,t,r,o){var a,s;let l,c,{signDoc:d}=(a=t,l=!1,c="","string"==typeof(s=r)?(c=i.Buffer.from(s).toString("base64"),l=!0):c=i.Buffer.from(s).toString("base64"),{signDoc:{chain_id:"",account_number:"0",sequence:"0",fee:{gas:"0",amount:[]},msgs:[{type:"sign/MsgSignData",value:{signer:a,b64Data:c}}],memo:""},isADR36WithString:l});return(await (0,n.requestSignAmino)(e,t,d,{isADR36:!0,preferNoSetFee:!0,enableExtraEntropy:null==o?void 0:o.enableExtraEntropy})).signature}},617425,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);
40(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(984631),r),n(e.r(178286),r),n(e.r(213364),r)},306427,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WalletWindowClosedError=r.WalletWindowBlockedError=r.WalletTimeoutError=r.WalletSignInError=r.WalletSignMessageError=r.WalletSignTransactionError=r.WalletSendTransactionError=r.WalletNotConnectedError=r.WalletKeypairError=r.WalletPublicKeyError=r.WalletAccountError=r.WalletDisconnectionError=r.WalletDisconnectedError=r.WalletConnectionError=r.WalletConfigError=r.WalletLoadError=r.WalletNotReadyError=r.WalletError=void 0;class i extends Error{constructor(e,t){super(e),this.error=t}}r.WalletError=i,r.WalletNotReadyError=class extends i{constructor(){super(...arguments),this.name="WalletNotReadyError"}},r.WalletLoadError=class extends i{constructor(){super(...arguments),this.name="WalletLoadError"}},r.WalletConfigError=class extends i{constructor(){super(...arguments),this.name="WalletConfigError"}},r.WalletConnectionError=class extends i{constructor(){super(...arguments),this.name="WalletConnectionError"}},r.WalletDisconnectedError=class extends i{constructor(){super(...arguments),this.name="WalletDisconnectedError"}},r.WalletDisconnectionError=class extends i{constructor(){super(...arguments),this.name="WalletDisconnectionError"}},r.WalletAccountError=class extends i{constructor(){super(...arguments),this.name="WalletAccountError"}},r.WalletPublicKeyError=class extends i{constructor(){super(...arguments),this.name="WalletPublicKeyError"}},r.WalletKeypairError=class extends i{constructor(){super(...arguments),this.name="WalletKeypairError"}},r.WalletNotConnectedError=class extends i{constructor(){super(...arguments),this.name="WalletNotConnectedError"}},r.WalletSendTransactionError=class extends i{constructor(){super(...arguments),this.name="WalletSendTransactionError"}},r.WalletSignTransactionError=class extends i{constructor(){super(...arguments),this.name="WalletSignTransactionError"}},r.WalletSignMessageError=class extends i{constructor(){super(...arguments),this.name="WalletSignMessageError"}},r.WalletSignInError=class extends i{constructor(){super(...arguments),this.name="WalletSignInError"}},r.WalletTimeoutError=class extends i{constructor(){super(...arguments),this.name="WalletTimeoutError"}},r.WalletWindowBlockedError=class extends i{constructor(){super(...arguments),this.name="WalletWindowBlockedError"}},r.WalletWindowClosedError=class extends i{constructor(){super(...arguments),this.name="WalletWindowClosedError"}}},319127,(e,t,r)=>{"use strict";var i,n,o=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.BaseWalletAdapter=r.WalletReadyState=r.EventEmitter=void 0,r.scopePollingDetectionStrategy=function(e){if("u"<typeof window||"u"<typeof document)return;let t=[];function r(){if(e())for(let e of t)e()}let i=setInterval(r,1e3);t.push(()=>clearInterval(i)),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",r,{once:!0}),t.push(()=>document.removeEventListener("DOMContentLoaded",r))),"complete"!==document.readyState&&(window.addEventListener("load",r,{once:!0}),t.push(()=>window.removeEventListener("load",r))),r()},r.isIosAndRedirectable=function(){let e=navigator.userAgent.toLowerCase(),t=e.includes("iphone")||e.includes("ipad"),r=e.includes("safari");return t&&r};let s=a(e.r(888273));r.EventEmitter=s.default;let l=e.r(306427);(i=n||(r.WalletReadyState=n={})).Installed="Installed",i.NotDetected="NotDetected",i.Loadable="Loadable",i.Unsupported="Unsupported";class c extends s.default{get connected(){return!!this.publicKey}autoConnect(){return o(this,void 0,void 0,function*(){yield this.connect()})}prepareTransaction(e,t){return o(this,arguments,void 0,function*(e,t,r={}){let i=this.publicKey;if(!i)throw new l.WalletNotConnectedError;return e.feePayer=e.feePayer||i,e.recentBlockhash=e.recentBlockhash||(yield t.getLatestBlockhash({commitment:r.preflightCommitment,minContextSlot:r.minContextSlot})).blockhash,e})}}r.BaseWalletAdapter=c},592152,(e,t,r)=>{"use strict";
40Object.defineProperty(r,"__esModule",{value:!0}),r.isVersionedTransaction=function(e){return"version"in e}},275085,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},n=e.e&&e.e.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};Object.defineProperty(r,"__esModule",{value:!0}),r.BaseSignInMessageSignerWalletAdapter=r.BaseMessageSignerWalletAdapter=r.BaseSignerWalletAdapter=void 0;let o=e.r(319127),a=e.r(306427),s=e.r(592152);class l extends o.BaseWalletAdapter{sendTransaction(e,t){return i(this,arguments,void 0,function*(e,t,r={}){let i=!0;try{if((0,s.isVersionedTransaction)(e)){if(!this.supportedTransactionVersions)throw new a.WalletSendTransactionError("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(e.version))throw new a.WalletSendTransactionError(`Sending transaction version ${e.version} isn't supported by this wallet`);try{let i=(e=yield this.signTransaction(e)).serialize();return yield t.sendRawTransaction(i,r)}catch(e){if(e instanceof a.WalletSignTransactionError)throw i=!1,e;throw new a.WalletSendTransactionError(null==e?void 0:e.message,e)}}try{let{signers:i}=r,o=n(r,["signers"]);e=yield this.prepareTransaction(e,t,o),(null==i?void 0:i.length)&&e.partialSign(...i);let a=(e=yield this.signTransaction(e)).serialize();return yield t.sendRawTransaction(a,o)}catch(e){if(e instanceof a.WalletSignTransactionError)throw i=!1,e;throw new a.WalletSendTransactionError(null==e?void 0:e.message,e)}}catch(e){throw i&&this.emit("error",e),e}})}signAllTransactions(e){return i(this,void 0,void 0,function*(){for(let t of e)if((0,s.isVersionedTransaction)(t)){if(!this.supportedTransactionVersions)throw new a.WalletSignTransactionError("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(t.version))throw new a.WalletSignTransactionError(`Signing transaction version ${t.version} isn't supported by this wallet`)}let t=[];for(let r of e)t.push((yield this.signTransaction(r)));return t})}}r.BaseSignerWalletAdapter=l;class c extends l{}r.BaseMessageSignerWalletAdapter=c,r.BaseSignInMessageSignerWalletAdapter=class extends c{}},673629,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SolanaSignAndSendTransaction=void 0,r.SolanaSignAndSendTransaction="solana:signAndSendTransaction"},264687,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SolanaSignIn=void 0,r.SolanaSignIn="solana:signIn"},823971,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SolanaSignMessage=void 0,r.SolanaSignMessage="solana:signMessage"},280206,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SolanaSignTransaction=void 0,r.SolanaSignTransaction="solana:signTransaction"},920642,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SignAndSendAllTransactions=void 0,r.SignAndSendAllTransactions="solana:signAndSendAllTransactions"},911578,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SolanaSignOffchainMessage=void 0,r.SolanaSignOffchainMessage="solana:signOffchainMessage"},551558,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};
40Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(673629),r),n(e.r(264687),r),n(e.r(823971),r),n(e.r(280206),r),n(e.r(920642),r),n(e.r(911578),r)},807381,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Connect=r.StandardConnect=void 0,r.StandardConnect="standard:connect",r.Connect=r.StandardConnect},586387,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Disconnect=r.StandardDisconnect=void 0,r.StandardDisconnect="standard:disconnect",r.Disconnect=r.StandardDisconnect},203687,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Events=r.StandardEvents=void 0,r.StandardEvents="standard:events",r.Events=r.StandardEvents},574243,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(807381),r),n(e.r(586387),r),n(e.r(203687),r)},504040,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isWalletAdapterCompatibleStandardWallet=function(e){return n.StandardConnect in e.features&&n.StandardEvents in e.features&&(i.SolanaSignAndSendTransaction in e.features||i.SolanaSignTransaction in e.features)};let i=e.r(551558),n=e.r(574243)},975025,(e,t,r)=>{"use strict";var i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.WalletAdapterNetwork=void 0,(n=i||(r.WalletAdapterNetwork=i={})).Mainnet="mainnet-beta",n.Testnet="testnet",n.Devnet="devnet"},714433,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(319127),r),n(e.r(306427),r),n(e.r(275085),r),n(e.r(504040),r),n(e.r(592152),r),n(e.r(975025),r)},646777,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SNAP_VERSION=void 0,r.SNAP_VERSION="0.3.0"},251834,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default="data:image/svg+xml,%3Csvg width='256' height='256' viewBox='0 0 256 256' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M209.25 127.625L217.875 117.5L214.125 114.75L220.125 109.25L215.5 105.75L221.5 101.25L217.625 98.25L223.875 67.75L214.375 39.5M214.375 39.5L153.375 62.125H102.5L41.5 39.5L32 67.75L38.375 98.25L34.375 101.25L40.5 105.75L35.875 109.25L41.875 114.75L38.125 117.5L46.75 127.625L33.625 168.125L45.75 209.5L88.375 197.75L96.625 204.5L113.5 216H142.375L159.25 204.5L167.5 197.75L210.25 209.5L222.5 168.125L209.25 127.625' fill='%23F5841F'/%3E%3Cpath d='M214.375 39.5L139.5 94.625L153.375 62.125L214.375 39.5Z' fill='%23E27625'/%3E%3Cpath d='M41.5 39.5L115.75 95.125L102.5 62.125L41.5 39.5Z' fill='%23E27625'/%3E%3Cpath d='M187.5 167.375L167.5 197.625L210.25 209.375L222.5 168L187.5 167.375Z' fill='%23E27625'/%3E%3Cpath d='M33.625 168L45.75 209.375L88.375 197.625L68.5 167.375L33.625 168Z' fill='%23E27625'/%3E%3Cpath d='M86.125 116.125L74.25 134L116.5 135.875L115.125 90.625L86.125 116.125Z' fill='%23E27625'/%3E%3Cpath d='M169.875 116.125L140.375 90.125L139.5 135.875L181.75 134L169.875 116.125Z' fill='%23E27625'/%3E%3Cpath d='M88.375 197.625L114 185.375L91.875 168.375L88.375 197.625Z' fill='%23E27625'/%3E%3Cpath d='M142 185.375L167.5 197.625L164 168.375L142 185.375Z' fill='%23E27625'/%3E%3Cpath d='M167.5 197.625L142 185.375L144.125 201.875L143.875 208.875L167.5 197.625Z' fill='%23D7C1B3'/%3E%3Cpath d='M88.375 197.625L112.125 208.875L112 201.875L114 185.375L88.375 197.625Z' fill='%23D7C1B3'/%3E%3Cpath d='M112.5 157.375L91.375 151.25L106.375 144.375L112.5 157.375Z' fill='%232F343B'/%3E%3Cpath d='M143.375 157.375L149.625 144.375L164.625 151.25L143.375 157.375Z' fill='%232F343B'/%3E%3Cpath d='M88.375 197.625L92.125 167.375L68.5 168L88.375 197.625Z' fill='%23CC6228'/%3E%3Cpath d='M163.875 167.375L167.5 197.625L187.5 168L163.875 167.375Z' fill='%23CC6228'/%3E%3Cpath d='M181.75 134L139.5 135.875L143.375 157.375L149.625 144.375L164.625 151.25L181.75 134Z' fill='%23CC6228'/%3E%3Cpath d='M91.375 151.25L106.375 144.375L112.5 157.375L116.5 135.875L74.25 134L91.375 151.25Z' fill='%23CC6228'/%3E%3Cpath d='M74.25 134L91.875 168.375L91.375 151.25L74.25 134Z' fill='%23E27625'/%3E%3Cpath d='M164.625 151.25L164 168.375L181.75 134L164.625 151.25Z' fill='%23E27625'/%3E%3Cpath d='M116.5 135.875L112.5 157.375L117.5 182.875L118.625 149.375L116.5 135.875Z' fill='%23E27625'/%3E%3Cpath d='M139.5 135.875L137.375 149.25L138.375 182.875L143.375 157.375L139.5 135.875Z' fill='%23E27625'/%3E%3Cpath d='M143.375 157.375L138.375 182.875L142 185.375L164 168.375L164.625 151.25L143.375 157.375Z' fill='%23F5841F'/%3E%3Cpath d='M91.375 151.25L91.875 168.375L114 185.375L117.5 182.875L112.5 157.375L91.375 151.25Z' fill='%23F5841F'/%3E%3Cpath d='M143.875 208.875L144.125 201.875L142.125 200.25H113.75L112 201.875L112.125 208.875L88.375 197.625L96.625 204.375L113.5 216H142.375L159.25 204.375L167.5 197.625L143.875 208.875Z' fill='%23C0AD9E'/%3E%3Cpath d='M142 185.375L138.375 182.875H117.5L114 185.375L112 201.875L113.75 200.25H142.125L144.125 201.875L142 185.375Z' fill='%232F343B'/%3E%3Cpath d='M217.625 98.25L223.875 67.75L214.375 39.5L142 92.75L169.875 116.125L209.25 127.625L217.875 117.5L214.125 114.75L220.125 109.375L215.5 105.75L221.5 101.25L217.625 98.25Z' fill='%23763E1A'/%3E%3Cpath d='M32 67.75L38.375 98.25L34.375 101.25L40.375 105.875L35.75 109.375L41.75 114.75L38 117.5L46.75 127.625L86.125 116.125L114 92.75L41.5 39.5L32 67.75Z' fill='%23763E1A'/%3E%3Cpath d='M209.25 127.625L169.875 116.125L181.75 134L164 168.375L187.5 168H222.5L209.25 127.625Z' fill='%23F5841F'/%3E%3Cpath d='M86.125 116.125L46.75 127.625L33.625 168H68.5L91.875 168.375L74.25 134L86.125 116.125Z' fill='%23F5841F'/%3E%3Cpath d='M139.5 135.875L142 92.75L153.375 62.125H102.5L114 92.75L116.5 135.875L117.5 149.375V182.875H138.375L138.5 149.375L139.5 135.875Z' fill='%23F5841F'/%3E%3C/svg%3E"},412327,(e,t,r)=>{"use strict";var i=e.i(29510),n=e.e&&e.e.__importDefault||function(e){return e&&e.__esMo
40dule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.SnapWalletAdapter=void 0;let o=e.r(21713),a=e.r(714433),s=e.r(646777),l=n(e.r(251834));class c extends a.BaseMessageSignerWalletAdapter{constructor(e){var t;super(),this.name="Connect by Drift",this.url="https://github.com/drift-labs/snap-solana",this.snapId="npm:@drift-labs/snap-solana",this.icon=l.default,this.versionToUse=s.SNAP_VERSION,this.connect=async e=>{var t;if(!window.ethereum)throw Error("Metamask not detected");let r=await window.ethereum.request({method:"wallet_getSnaps"});(!r[this.snapId]||(null==(t=r[this.snapId])?void 0:t.version)!==this.versionToUse||e)&&await window.ethereum.request({method:"wallet_requestSnaps",params:{[this.snapId]:{version:this.versionToUse}}});let i=new o.PublicKey(await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId:this.snapId,request:{method:"getPublicKey"}}}));this.publicKey=i,this.emit("connect",i)},this.disconnect=async()=>{this.publicKey=void 0,this.emit("disconnect")},e&&"u">typeof window&&(null==(t=null==window?void 0:window.location)?void 0:t.hostname)==="localhost"&&(this.snapId=e),this.checkIfSnapsAreSupported()}async checkIfSnapsAreSupported(){var e,t;if("u">typeof window&&(null==(e=null==window?void 0:window.ethereum)?void 0:e.isMetaMask))try{let e=await window.ethereum.request({method:"wallet_getSnaps"});e[this.snapId]&&(null==(t=e[this.snapId])?void 0:t.version)===this.versionToUse?this.readyState=a.WalletReadyState.Installed:this.readyState=a.WalletReadyState.Loadable}catch(e){this.readyState=a.WalletReadyState.Unsupported}else this.readyState=a.WalletReadyState.NotDetected;this.emit("readyStateChange",this.readyState)}async signMessage(e){var t;let r=await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId:this.snapId,request:{method:"signMessage",params:{message:e}}}});return i.Buffer.from(null==(t=null==r?void 0:r.message)?void 0:t.data)}async signTransaction(e){var t,r;let n=(0,a.isVersionedTransaction)(e),s=n?void 0:{requireAllSignatures:!1,verifySignatures:!1},l=e.serialize(s),c=await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId:this.snapId,request:{method:"signTransaction",params:{transaction:l,isVersionedTransaction:n,serializeConfig:s}}}});return n?o.VersionedTransaction.deserialize(i.Buffer.from(null==(t=null==c?void 0:c.transaction)?void 0:t.data)):o.Transaction.from(i.Buffer.from(null==(r=null==c?void 0:c.transaction)?void 0:r.data))}async signAllTransactions(e){let t=e.map(e=>{let t=(0,a.isVersionedTransaction)(e),r=t?void 0:{requireAllSignatures:!1,verifySignatures:!1};return{isVersionedTransaction:t,transaction:e.serialize(r),serializeConfig:r}});return(await window.ethereum.request({method:"wallet_invokeSnap",params:{snapId:this.snapId,request:{method:"signAllTransactions",params:{transactions:t}}}})).map((t,r)=>{var n,s;return(0,a.isVersionedTransaction)(e[r])?o.VersionedTransaction.deserialize(i.Buffer.from(null==(n=null==t?void 0:t.transaction)?void 0:n.data)):o.Transaction.from(i.Buffer.from(null==(s=null==t?void 0:t.transaction)?void 0:s.data))})}}r.SnapWalletAdapter=c,c.defaultVersion=s.SNAP_VERSION,c.icon=l.default},21713,e=>{"use strict";var t,r,i,n,o,a=e.i(738254),s=e.i(241961),l=e.i(336078),c=e.i(783113),d=e.i(281851),u=e.i(747285),h=e.i(845142);function p([e,t]){return`${e}=${function e(t){return Array.isArray(t)?"%5B"+t.map(e).join("%2C%20")+"%5D":"bigint"==typeof t?`${t}n`:encodeURIComponent(String(null!=t&&null===Object.getPrototypeOf(t)?{...t}:t))}(t)}`}var f=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;if(t){const{cause:e,...n}=t;e&&(i={cause:e}),Object.keys(n).length>0&&(r=n)}super(function(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${btoa(Object.entries(t).map(p).join("&"))}'`),`${r}\``}}(e,r),i),this.context={__code:e,...r},this.name="SolanaError"}};function g(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}var m=((t=m||{})[t.Little=0]="Little",t[t.Big=1]="Big",t);function y(e){return e?.endian!==1}var b=(e={})=>{var t,r;return Object.freeze({...r={fixedSize:(t={config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(e,t,r)=>e.setBigUint64(0,BigInt(t),r),size:8}).size,write(e,r,i){t.range&&function(e,t,r,i){if(i<t||i>r)throw new f(8078011,{codecDescription:e,max:r,min:t,value:i})}(t.name,t.range[0],t.range[1],e);let n=new ArrayBuffer(t.size);return t.set(new DataView(n),e,y(t.config)),r.set(new Uint8Array(n),i),i+t.size}},encode:e=>{let t=new Uint8Array("fixedSize"in r?r.fixedSize:r.getSizeFromValue(e));return r.write(e,t,0),t}})},v=e.i(654298),w=e.i(59317),x=e.i(904258),S=e.i(918196),A=e.i(39367);let k=s.ed25519.utils.randomPrivateKey,E=()=>{let e=s.ed25519.utils.randomPrivateKey(),t=I(e),r=new Uint8Array(64);return r.set(e),r.set(t,32),{publicKey:t,secretKey:r}},I=s.ed25519.getPublicKey;function M(e){try{return s.ed25519.ExtendedPoint.fromHex(e),!0}catch{return!1}}let T=(e,t)=>
vendor: 37,718 bytes, lines 40-46
40s.ed25519.sign(e,t.slice(0,32)),N=s.ed25519.verify,_=e=>a.Buffer.isBuffer(e)?e:e instanceof Uint8Array?a.Buffer.from(e.buffer,e.byteOffset,e.byteLength):a.Buffer.from(e);class C{constructor(e){Object.assign(this,e)}encode(){return a.Buffer.from((0,u.serialize)(O,this))}static decode(e){return(0,u.deserialize)(O,this,e)}static decodeUnchecked(e){return(0,u.deserializeUnchecked)(O,this,e)}}let O=new Map,P=1;class D extends C{constructor(e){if(super({}),this._bn=void 0,function(e){return void 0!==e._bn}(e))this._bn=e._bn;else{if("string"==typeof e){const t=c.default.decode(e);if(32!=t.length)throw Error("Invalid public key input");this._bn=new l.default(t)}else this._bn=new l.default(e);if(this._bn.byteLength()>32)throw Error("Invalid public key input")}}static unique(){let e=new D(P);return P+=1,new D(e.toBuffer())}equals(e){return this._bn.eq(e._bn)}toBase58(){return c.default.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){let e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}toBuffer(){let e=this._bn.toArrayLike(a.Buffer);if(32===e.length)return e;let t=a.Buffer.alloc(32);return e.copy(t,32-e.length),t}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(e,t,r){let i=a.Buffer.concat([e.toBuffer(),a.Buffer.from(t),r.toBuffer()]);return new D((0,d.sha256)(i))}static createProgramAddressSync(e,t){let r=a.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw TypeError("Max seed length exceeded");r=a.Buffer.concat([r,_(e)])}),r=a.Buffer.concat([r,t.toBuffer(),a.Buffer.from("ProgramDerivedAddress")]);let i=(0,d.sha256)(r);if(M(i))throw Error("Invalid seeds, address must fall off the curve");return new D(i)}static async createProgramAddress(e,t){return this.createProgramAddressSync(e,t)}static findProgramAddressSync(e,t){let r,i=255;for(;0!=i;){try{let n=e.concat(a.Buffer.from([i]));r=this.createProgramAddressSync(n,t)}catch(e){if(e instanceof TypeError)throw e;i--;continue}return[r,i]}throw Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,t){return this.findProgramAddressSync(e,t)}static isOnCurve(e){return M(new D(e).toBytes())}}D.default=new D("11111111111111111111111111111111"),O.set(D,{kind:"struct",fields:[["_bn","u256"]]});let j=new D("BPFLoader1111111111111111111111111111111111");class R extends Error{constructor(e){super(`Signature ${e} has expired: block height exceeded.`),this.signature=void 0,this.signature=e}}Object.defineProperty(R.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class z extends Error{constructor(e,t){super(`Transaction was not confirmed in ${t.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${e} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=e}}Object.defineProperty(z.prototype,"name",{value:"TransactionExpiredTimeoutError"});class L extends Error{constructor(e){super(`Signature ${e} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=e}}Object.defineProperty(L.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class B{constructor(e,t){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=e,this.accountKeysFromLookups=t}keySegments(){let e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}get(e){for(let t of this.keySegments())if(e<t.length)return t[e];else e-=t.length}get length(){return this.keySegments().flat().length}compileInstructions(e){if(this.length>256)throw Error("Account index overflow encountered during compilation");let t=new Map;this.keySegments().flat().forEach((e,r)=>{t.set(e.toBase58(),r)});let r=e=>{let r=t.get(e.toBase58());if(void 0===r)throw Error("Encountered an unknown instruction account key during compilation");return r};return e.map(e=>({programIdIndex:r(e.programId),accountKeyIndexes:e.keys.map(e=>r(e.pubkey)),data:e.data}))}}let U=(e="publicKey")=>h.blob(32,e),q=(e="string")=>{let t=h.struct([h.u32("length"),h.u32("lengthPadding"),h.blob(h.offset(h.u32(),-8),"chars")],e),r=t.decode.bind(t),i=t.encode.bind(t);return t.decode=(e,t)=>r(e,t).chars.toString(),t.encode=(e,t,r)=>i({chars:a.Buffer.from(e,"utf8")},t,r),t.alloc=e=>h.u32().span+h.u32().span+a.Buffer.from(e,"utf8").length,t};function W(e){let t=0,r=0;for(;;){let i=e.shift();if(t|=(127&i)<<7*r,r+=1,(128&i)==0)break}return t}function H(e,t){let r=t;for(;;){let t=127&r;if(0==(r>>=7)){e.push(t);break}t|=128,e.push(t)}}function V(e,t){if(!e)throw Error(t||"Assertion failed")}class K{constructor(e,t){this.payer=void 0,this.keyMetaMap=void 0,this.payer=e,this.keyMetaMap=t}static compile(e,t){let r=new Map,i=e=>{let t=e.toBase58(),i=r.get(t);return void 0===i&&(i={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(t,i)),i},n=i(t);for(let t of(n.isSigner=!0,n.isWritable=!0,e))for(let e of(i(t.programId).isInvoked=!0,t.keys)){let t=i(e.pubkey);t.isSigner||=e.isSigner,t.isWritable||=e.isWritable}return new K(t,r)}getMessageComponents(){let e=[...this.keyMetaMap.entries()];V(e.length<=256,"Max static account keys length exceeded");let t=e.filter(([,e])=>e.isSigner&&e.isWritable),r=e.filter(([,e])=>e.isSigner&&!e.isWritable),i=e.filter(([,e])=>!e.isSigner&&e.isWritable),n=e.filter(([,e])=>!e.isSigner&&!e.isWritable),o={numRequiredSignatures:t.length+r.length,numReadonlySignedAccounts:r.length,numReadonlyUnsignedAccounts:n.length};{V(t.length>0,"Expected at least one writable signer key");let[e]=t[0];V(e===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}return[o,[...t.map(([e])=>new D(e)),...r.map(([e])=>new D(e)),...i.map(([e])=>new D(e)),...n.map(([e])=>new D(e))]]}extractTableLookup(e){let[t,r]=this.drainKeysFoundInLookupTable(e.state.addresses,e=>!e.isSigner&&!e.isInvoked&&e.isWritable),[i,n]=this.drainKeysFoundInLookupTable(e.state.addresses,e=>!e.isSigner&&!e.isInvoked&&!e.isWritable);if(0!==t.length||0!==i.length)return[{accountKey:e.key,writableIndexes:t,readonlyIndexes:i},{writable:r,readonly:n}]}drainKeysFoundInLookupTable(e,t){let r=[],i=[];for(let[n,o]of this.keyMetaMap.entries())if(t(o)){let t=new D(n),o=e.findIndex(e=>e.equals(t));o>=0&&(V(o<256,"Max lookup table index exceeded"),r.push(o),i.push(t),this.keyMetaMap.delete(n))}return[r,i]}}let F="Reached end of buffer unexpectedly";function Y(e){if(0===e.length)throw Error(F);return e.shift()}function J(e,...t){let[r]=t;if(2===t.length?r+(t[1]??0)>e.length:r>=e.length)throw Error(F);return e.splice(...t)}class G{constructor(e){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=e.header,this.accountKeys=e.accountKeys.map(e=>new D(e)),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions,this.instructions.forEach(e=>this.indexToProgramIds.set(e.programIdIndex,this.accountKeys[e.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:c.default.decode(e.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new B(this.staticAccountKeys)}static compile(e){let[t,r]=K.compile(e.instructions,e.payerKey).getMessageComponents(),i=new B(r).compileInstructions(e.instructions).map(e=>({programIdIndex:e.programIdIndex,accounts:e.accountKeyIndexes,data:c.default.encode(e.data)}));return new G({header:t,accountKeys:r,recentBlockhash:e.recentBlockhash,instructions:i})}isAccountSigner(e){return e<this.header.numRequiredSignatures}isAccountWritable(e){let t=this.header.numRequiredSignatures;if(!(e>=this.header.numRequiredSignatures))return e<t-this.header.numReadonlySignedAccounts;{let r=this.accountKeys.length-t-this.header.numReadonlyUnsignedAccounts;return e-t<r}}isProgramId(e){return this.indexToProgramIds.has(e)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((e,t)=>!this.isProgramId(t))}serialize(){let e=this.accountKeys.length,t=[];H(t,e);let r=this.instructions.map(e=>{let{accounts:t,programIdIndex:r}=e,i=Array.from(c.default.decode(e.data)),n=[];H(n,t.length);let o=[];return H(o,i.length),{programIdIndex:r,keyIndicesCount:a.Buffer.from(n),keyIndices:t,dataLength:a.Buffer.from(o),data:i}}),i=[];H(i,r.length);let n=a.Buffer.alloc(1232);a.Buffer.from(i).copy(n);let o=i.length;r.forEach(e=>{let t=h.struct([h.u8("programIdIndex"),h.blob(e.keyIndicesCount.length,"keyIndicesCount"),h.seq(h.u8("keyIndex"),e.keyIndices.length,"keyIndices"),h.blob(e.dataLength.length,"dataLength"),h.seq(h.u8("userdatum"),e.data.length,"data")]).encode(e,n,o);o+=t}),n=n.slice(0,o);let s=h.struct([h.blob(1,"numRequiredSignatures"),h.blob(1,"numReadonlySignedAccounts"),h.blob(1,"numReadonlyUnsignedAccounts"),h.blob(t.length,"keyCount"),h.seq(U("key"),e,"keys"),U("recentBlockhash")]),l={numRequiredSignatures:a.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:a.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:a.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:a.Buffer.from(t),keys:this.accountKeys.map(e=>_(e.toBytes())),recentBlockhash:c.default.decode(this.recentBlockhash)},d=a.Buffer.alloc(2048),u=s.encode(l,d);return n.copy(d,u),d.slice(0,u+n.length)}static from(e){let t=[...e],r=Y(t);if(r!==(127&r))throw Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");let i=Y(t),n=Y(t),o=W(t),s=[];for(let e=0;e<o;e++){let e=J(t,0,32);s.push(new D(a.Buffer.from(e)))}let l=J(t,0,32),d=W(t),u=[];for(let e=0;e<d;e++){let e=Y(t),r=W(t),i=J(t,0,r),n=W(t),o=J(t,0,n),s=c.default.encode(a.Buffer.from(o));u.push({programIdIndex:e,accounts:i,data:s})}return new G({header:{numRequiredSignatures:r,numReadonlySignedAccounts:i,numReadonlyUnsignedAccounts:n},recentBlockhash:c.default.encode(a.Buffer.from(l)),accountKeys:s,instructions:u})}}class Q{constructor(e){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=e.header,this.staticAccountKeys=e.staticAccountKeys,this.recentBlockhash=e.recentBlockhash,this.compiledInstructions=e.compiledInstructions,this.addressTableLookups=e.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let e=0;for(let t of this.addressTableLookups)e+=t.readonlyIndexes.length+t.writableIndexes.length;return e}getAccountKeys(e){let t;if(e&&"accountKeysFromLookups"in e&&e.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=e.accountKeysFromLookups.writable.length+e.accountKeysFromLookups.readonly.length)throw Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");t=e.accountKeysFromLookups}else if(e&&"addressLookupTableAccounts"in e&&e.addressLookupTableAccounts)t=this.resolveAddressTableLookups(e.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw Error("Failed to get account keys because address table lookups were not resolved");return new B(this.staticAccountKeys,t)}isAccountSigner(e){return e<this.header.numRequiredSignatures}isAccountWritable(e){let t=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(e>=r)return e-r<this.addressTableLookups.reduce((e,t)=>e+t.writableIndexes.length,0);if(!(e>=this.header.numRequiredSignatures))return e<t-this.header.numReadonlySignedAccounts;{let i=r-t-this.header.numReadonlyUnsignedAccounts;return e-t<i}}resolveAddressTableLookups(e){let t={writable:[],readonly:[]};for(let r of this.addressTableLookups){let i=e.find(e=>e.key.equals(r.accountKey));if(!i)throw Error(`Failed to find address lookup table account for table key ${r.accountKey.toBase58()}`);for(let e of r.writableIndexes)if(e<i.state.addresses.length)t.writable.push(i.state.addresses[e]);else throw Error(`Failed to find address for index ${e} in address lookup table ${r.accountKey.toBase58()}`);for(let e of r.readonlyIndexes)if(e<i.state.addresses.length)t.readonly.push(i.state.addresses[e]);else throw Error(`Failed to find address for index ${e} in address lookup table ${r.accountKey.toBase58()}`)}return t}static compile(e){let t=K.compile(e.instructions,e.payerKey),r=[],i={writable:[],readonly:[]};for(let n of e.addressLookupTableAccounts||[]){let e=t.extractTableLookup(n);if(void 0!==e){let[t,{writable:n,readonly:o}]=e;r.push(t),i.writable.push(...n),i.readonly.push(...o)}}let[n,o]=t.getMessageComponents(),a=new B(o,i).compileInstructions(e.instructions);return new Q({header:n,staticAccountKeys:o,recentBlockhash:e.recentBlockhash,compiledInstructions:a,addressTableLookups:r})}serialize(){let e=[];H(e,this.staticAccountKeys.length);let t=this.serializeInstructions(),r=[];H(r,this.compiledInstructions.length);let i=this.serializeAddressTableLookups(),n=[];H(n,this.addressTableLookups.length);let o=h.struct([h.u8("prefix"),h.struct([h.u8("numRequiredSignatures"),h.u8("numReadonlySignedAccounts"),h.u8("numReadonlyUnsignedAccounts")],"header"),h.blob(e.length,"staticAccountKeysLength"),h.seq(U(),this.staticAccountKeys.length,"staticAccountKeys"),U("recentBlockhash"),h.blob(r.length,"instructionsLength"),h.blob(t.length,"serializedInstructions"),h.blob(n.length,"addressTableLookupsLength"),h.blob(i.length,"serializedAddressTableLookups")]),a=new Uint8Array(1232),s=o.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(e),staticAccountKeys:this.staticAccountKeys.map(e=>e.toBytes()),recentBlockhash:c.default.decode(this.recentBlockhash),instructionsLength:new Uint8Array(r),serializedInstructions:t,addressTableLookupsLength:new Uint8Array(n),serializedAddressTableLookups:i},a);return a.slice(0,s)}serializeInstructions(){let e=0,t=new Uint8Array(1232);for(let r of this.compiledInstructions){let i=[];H(i,r.accountKeyIndexes.length);let n=[];H(n,r.data.length);let o=h.struct([h.u8("programIdIndex"),h.blob(i.length,"encodedAccountKeyIndexesLength"),h.seq(h.u8(),r.accountKeyIndexes.length,"accountKeyIndexes"),h.blob(n.length,"encodedDataLength"),h.blob(r.data.length,"data")]);e+=o.encode({programIdIndex:r.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(i),accountKeyIndexes:r.accountKeyIndexes,encodedDataLength:new Uint8Array(n),data:r.data},t,e)}return t.slice(0,e)}serializeAddressTableLookups(){let e=0,t=new Uint8Array(1232);for(let r of this.addressTableLookups){let i=[];H(i,r.writableIndexes.length);let n=[];H(n,r.readonlyIndexes.length);let o=h.struct([U("accountKey"),h.blob(i.length,"encodedWritableIndexesLength"),h.seq(h.u8(),r.writableIndexes.length,"writableIndexes"),h.blob(n.length,"encodedReadonlyIndexesLength"),h.seq(h.u8(),r.readonlyIndexes.length,"readonlyIndexes")]);e+=o.encode({accountKey:r.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(i),writableIndexes:r.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(n),readonlyIndexes:r.readonlyIndexes},t,e)}return t.slice(0,e)}static deserialize(e){let t=[...e],r=Y(t),i=127&r;V(r!==i,"Expected versioned message but received legacy message"),V(0===i,`Expected versioned message with version 0 but found version ${i}`);let n={numRequiredSignatures:Y(t),numReadonlySignedAccounts:Y(t),numReadonlyUnsignedAccounts:Y(t)},o=[],a=W(t);for(let e=0;e<a;e++)o.push(new D(J(t,0,32)));let s=c.default.encode(J(t,0,32)),l=W(t),d=[];for(let e=0;e<l;e++){let e=Y(t),r=W(t),i=J(t,0,r),n=W(t),o=new Uint8Array(J(t,0,n));d.push({programIdIndex:e,accountKeyIndexes:i,data:o})}let u=W(t),h=[];for(let e=0;e<u;e++){let e=new D(J(t,0,32)),r=W(t),i=J(t,0,r),n=W(t),o=J(t,0,n);h.push({accountKey:e,writableIndexes:i,readonlyIndexes:o})}return new Q({header:n,staticAccountKeys:o,recentBlockhash:s,compiledInstructions:d,addressTableLookups:h})}}let Z={deserializeMessageVersion(e){let t=e[0],r=127&t;return r===t?"legacy":r},deserialize:e=>{let t=Z.deserializeMessageVersion(e);if("legacy"===t)return G.from(e);if(0===t)return Q.deserialize(e);throw Error(`Transaction message version ${t} deserialization is not supported`)}},X=((r={})[r.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",r[r.PROCESSED=1]="PROCESSED",r[r.TIMED_OUT=2]="TIMED_OUT",r[r.NONCE_INVALID=3]="NONCE_INVALID",r),$=a.Buffer.alloc(64).fill(0);class ee{constructor(e){this.keys=void 0,this.programId=void 0,this.data=a.Buffer.alloc(0),this.programId=e.programId,this.keys=e.keys,e.data&&(this.data=e.data)}toJSON(){return{keys:this.keys.map(({pubkey:e,isSigner:t,isWritable:r})=>({pubkey:e.toJSON(),isSigner:t,isWritable:r})),programId:this.programId.toJSON(),data:[...this.data]}}}class et{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(e){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!e)return;if(e.feePayer&&(this.feePayer=e.feePayer),e.signatures&&(this.signatures=e.signatures),Object.prototype.hasOwnProperty.call(e,"nonceInfo")){const{minContextSlot:t,nonceInfo:r}=e;this.minNonceContextSlot=t,this.nonceInfo=r}else if(Object.prototype.hasOwnProperty.call(e,"lastValidBlockHeight")){const{blockhash:t,lastValidBlockHeight:r}=e;this.recentBlockhash=t,this.lastValidBlockHeight=r}else{const{recentBlockhash:t,nonceInfo:r}=e;r&&(this.nonceInfo=r),this.recentBlockhash=t}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(e=>e.toJSON()),signers:this.signatures.map(({publicKey:e})=>e.toJSON())}}add(...e){if(0===e.length)throw Error("No instructions");return e.forEach(e=>{"instructions"in e?this.instructions=this.instructions.concat(e.instructions):"data"in e&&"programId"in e&&"keys"in e?this.instructions.push(e):this.instructions.push(new ee(e))}),this}compileMessage(){let e,t,r;if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;if(this.nonceInfo?(e=this.nonceInfo.nonce,t=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(e=this.recentBlockhash,t=this.instructions),!e)throw Error("Transaction recentBlockhash required");if(t.length<1&&console.warn("No instructions provided"),this.feePayer)r=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)r=this.signatures[0].publicKey;else throw Error("Transaction fee payer required");for(let e=0;e<t.length;e++)if(void 0===t[e].programId)throw Error(`Transaction instruction index ${e} has undefined program id`);let i=[],n=[];t.forEach(e=>{e.keys.forEach(e=>{n.push({...e})});let t=e.programId.toString();i.includes(t)||i.push(t)}),i.forEach(e=>{n.push({pubkey:new D(e),isSigner:!1,isWritable:!1})});let o=[];n.forEach(e=>{let t=e.pubkey.toString(),r=o.findIndex(e=>e.pubkey.toString()===t);r>-1?(o[r].isWritable=o[r].isWritable||e.isWritable,o[r].isSigner=o[r].isSigner||e.isSigner):o.push(e)}),o.sort(function(e,t){return e.isSigner!==t.isSigner?e.isSigner?-1:1:e.isWritable!==t.isWritable?e.isWritable?-1:1:e.pubkey.toBase58().localeCompare(t.pubkey.toBase58(),"en",{localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"})});let a=o.findIndex(e=>e.pubkey.equals(r));if(a>-1){let[e]=o.splice(a,1);e.isSigner=!0,e.isWritable=!0,o.unshift(e)}else o.unshift({pubkey:r,isSigner:!0,isWritable:!0});for(let e of this.signatures){let t=o.findIndex(t=>t.pubkey.equals(e.publicKey));if(t>-1)o[t].isSigner||(o[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw Error(`unknown signer: ${e.publicKey.toString()}`)}let s=0,l=0,d=0,u=[],h=[];o.forEach(({pubkey:e,isSigner:t,isWritable:r})=>{t?(u.push(e.toString()),s+=1,r||(l+=1)):(h.push(e.toString()),r||(d+=1))});let p=u.concat(h),f=t.map(e=>{let{data:t,programId:r}=e;return{programIdIndex:p.indexOf(r.toString()),accounts:e.keys.map(e=>p.indexOf(e.pubkey.toString())),data:c.default.encode(t)}});return f.forEach(e=>{V(e.programIdIndex>=0),e.accounts.forEach(e=>V(e>=0))}),new G({header:{numRequiredSignatures:s,numReadonlySignedAccounts:l,numReadonlyUnsignedAccounts:d},accountKeys:p,recentBlockhash:e,instructions:f})}_compile(){let e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);return this.signatures.length===t.length&&this.signatures.every((e,r)=>t[r].equals(e.publicKey))?e:(this.signatures=t.map(e=>({signature:null,publicKey:e})),e)}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(e){return(await e.getFeeForMessage(this.compileMessage())).value}setSigners(...e){if(0===e.length)throw Error("No signers");let t=new Set;this.signatures=e.filter(e=>{let r=e.toString();return!t.has(r)&&(t.add(r),!0)}).map(e=>({signature:null,publicKey:e}))}sign(...e){if(0===e.length)throw Error("No signers");let t=new Set,r=[];for(let i of e){let e=i.publicKey.toString();t.has(e)||(t.add(e),r.push(i))}this.signatures=r.map(e=>({signature:null,publicKey:e.publicKey}));let i=this._compile();this._partialSign(i,...r)}partialSign(...e){if(0===e.length)throw Error("No signers");let t=new Set,r=[];for(let i of e){let e=i.publicKey.toString();t.has(e)||(t.add(e),r.push(i))}let i=this._compile();this._partialSign(i,...r)}_partialSign(e,...t){let r=e.serialize();t.forEach(e=>{let t=T(r,e.secretKey);this._addSignature(e.publicKey,_(t))})}addSignature(e,t){this._compile(),this._addSignature(e,t)}_addSignature(e,t){V(64===t.length);let r=this.signatures.findIndex(t=>e.equals(t.publicKey));if(r<0)throw Error(`unknown signer: ${e.toString()}`);this.signatures[r].signature=a.Buffer.from(t)}verifySignatures(e=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),e)}_getMessageSignednessErrors(e,t){let r={};for(let{signature:i,publicKey:n}of this.signatures)null===i?t&&(r.missing||=[]).push(n):N(i,e,n.toBytes())||(r.invalid||=[]).push(n);return r.invalid||r.missing?r:void 0}serialize(e){let{requireAllSignatures:t,verifySignatures:r}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},e),i=this.serializeMessage();if(r){let e=this._getMessageSignednessErrors(i,t);if(e){let t="Signature verification failed.";throw e.invalid&&(t+=`
41Invalid signature for public key${1===e.invalid.length?"":"(s)"} [\`${e.invalid.map(e=>e.toBase58()).join("`, `")}\`].`),e.missing&&(t+=`
42Missing signature for public key${1===e.missing.length?"":"(s)"} [\`${e.missing.map(e=>e.toBase58()).join("`, `")}\`].`),Error(t)}}return this._serialize(i)}_serialize(e){let{signatures:t}=this,r=[];H(r,t.length);let i=r.length+64*t.length+e.length,n=a.Buffer.alloc(i);return V(t.length<256),a.Buffer.from(r).copy(n,0),t.forEach(({signature:e},t)=>{null!==e&&(V(64===e.length,"signature has invalid length"),a.Buffer.from(e).copy(n,r.length+64*t))}),e.copy(n,r.length+64*t.length),V(n.length<=1232,`Transaction too large: ${n.length} > 1232`),n}get keys(){return V(1===this.instructions.length),this.instructions[0].keys.map(e=>e.pubkey)}get programId(){return V(1===this.instructions.length),this.instructions[0].programId}get data(){return V(1===this.instructions.length),this.instructions[0].data}static from(e){let t=[...e],r=W(t),i=[];for(let e=0;e<r;e++){let e=J(t,0,64);i.push(c.default.encode(a.Buffer.from(e)))}return et.populate(G.from(t),i)}static populate(e,t=[]){let r=new et;return r.recentBlockhash=e.recentBlockhash,e.header.numRequiredSignatures>0&&(r.feePayer=e.accountKeys[0]),t.forEach((t,i)=>{let n={signature:t==c.default.encode($)?null:c.default.decode(t),publicKey:e.accountKeys[i]};r.signatures.push(n)}),e.instructions.forEach(t=>{let i=t.accounts.map(t=>{let i=e.accountKeys[t];return{pubkey:i,isSigner:r.signatures.some(e=>e.publicKey.toString()===i.toString())||e.isAccountSigner(t),isWritable:e.isAccountWritable(t)}});r.instructions.push(new ee({keys:i,programId:e.accountKeys[t.programIdIndex],data:c.default.decode(t.data)}))}),r._message=e,r._json=r.toJSON(),r}}let er=new D("SysvarC1ock11111111111111111111111111111111"),ei=new D("SysvarEpochSchedu1e111111111111111111111111"),en=new D("Sysvar1nstructions1111111111111111111111111"),eo=new D("SysvarRecentB1ockHashes11111111111111111111"),ea=new D("SysvarRent111111111111111111111111111111111"),es=new D("SysvarRewards111111111111111111111111111111"),el=new D("SysvarS1otHashes111111111111111111111111111"),ec=new D("SysvarS1otHistory11111111111111111111111111"),ed=new D("SysvarStakeHistory1111111111111111111111111");class eu extends Error{constructor({action:e,signature:t,transactionMessage:r,logs:i}){let n;const o=i?`Logs: 
43${JSON.stringify(i.slice(-10),null,2)}. `:"",a="\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.";switch(e){case"send":n=`Transaction ${t} resulted in an error. 
44${r}. `+o+a;break;case"simulate":n=`Simulation failed. 
45Message: ${r}. 
46`+o+a;break;default:n=`Unknown action '${(e=>e)(e)}'`}super(n),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=t,this.transactionMessage=r,this.transactionLogs=i||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){let e=this.transactionLogs;if(null==e||"object"!=typeof e||!("then"in e))return e}async getLogs(e){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((t,r)=>{e.getTransaction(this.signature).then(e=>{if(e&&e.meta&&e.meta.logMessages){let r=e.meta.logMessages;this.transactionLogs=r,t(r)}else r(Error("Log messages not found"))}).catch(r)})),await this.transactionLogs}}class eh extends Error{constructor({code:e,message:t,data:r},i){super(null!=i?`${i}: ${t}`:t),this.code=void 0,this.data=void 0,this.code=e,this.data=r,this.name="SolanaJSONRPCError"}}async function ep(e,t,r,i){let n,o=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,maxRetries:i.maxRetries,minContextSlot:i.minContextSlot},a=await e.sendTransaction(t,r,o);if(null!=t.recentBlockhash&&null!=t.lastValidBlockHeight)n=(await e.confirmTransaction({abortSignal:i?.abortSignal,signature:a,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},i&&i.commitment)).value;else if(null!=t.minNonceContextSlot&&null!=t.nonceInfo){let{nonceInstruction:r}=t.nonceInfo,o=r.keys[0].pubkey;n=(await e.confirmTransaction({abortSignal:i?.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:o,nonceValue:t.nonceInfo.nonce,signature:a},i&&i.commitment)).value}else i?.abortSignal!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),n=(await e.confirmTransaction(a,i&&i.commitment)).value;if(n.err){if(null!=a)throw new eu({action:"send",signature:a,transactionMessage:`Status: (${JSON.stringify(n)})`});throw Error(`Transaction ${a} failed (${JSON.stringify(n)})`)}return a}function ef(e){return new Promise(t=>setTimeout(t,e))}function eg(e,t){let r=e.layout.span>=0?e.layout.span:function e(t,r){let i=t=>{if(t.span>=0)return t.span;if("function"==typeof t.alloc)return t.alloc(r[t.property]);if("count"in t&&"elementLayout"in t){let e=r[t.property];if(Array.isArray(e))return e.length*i(t.elementLayout)}else if("fields"in t)return e({layout:t},r[t.property]);return 0},n=0;return t.layout.fields.forEach(e=>{n+=i(e)}),n}(e,t),i=a.Buffer.alloc(r),n=Object.assign({instruction:e.index},t);return e.layout.encode(n,i),i}function em(e,t){let r;try{r=e.layout.decode(t)}catch(e){throw Error("invalid instruction; "+e)}if(r.instruction!==e.index)throw Error(`invalid instruction; instruction index mismatch ${r.instruction} != ${e.index}`);return r}let ey=h.nu64("lamportsPerSignature"),eb=h.struct([h.u32("version"),h.u32("state"),U("authorizedPubkey"),U("nonce"),h.struct([ey],"feeCalculator")]),ev=eb.span;class ew{constructor(e){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=e.authorizedPubkey,this.nonce=e.nonce,this.feeCalculator=e.feeCalculator}static fromAccountData(e){let t=eb.decode(_(e),0);return new ew({authorizedPubkey:new D(t.authorizedPubkey),nonce:new D(t.nonce).toString(),feeCalculator:t.feeCalculator})}}function ex(e){let t=(0,h.blob)(8,e),r=t.decode.bind(t),i=t.encode.bind(t),n=((e={})=>(function(e,t){if(g(e)!==g(t))throw new f(8078004);if(g(e)&&g(t)&&e.fixedSize!==t.fixedSize)throw new f(8078005,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!g(e)&&!g(t)&&e.maxSize!==t.maxSize)throw new f(8078006,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}})(b(e),((e={})=>{var t,r;return Object.freeze({...r={fixedSize:(t={config:e,get:(e,t)=>e.getBigUint64(0,t),name:"u64",size:8}).size,read(e,r=0){var i,n,o;let a,s;!function(e,t,r=0){if(t.length-r<=0)throw new f(8078e3,{codecDescription:e})}(t.name,e,r),function(e,t,r,i=0){let n=r.length-i;if(n<t)throw new f(8078001,{bytesLength:n,codecDescription:e,expected:t})}(t.name,t.size,e,r);let l=new DataView((i=e,n=r,o=t.size,a=i.byteOffset+(n??0),s=o??i.byteLength,i.buffer.slice(a,a+s)));return[t.get(l,y(t.config)),r+t.size]}},decode:(e,t=0)=>r.read(e,t)[0]})})(e)))();return t.decode=(e,t)=>{let i=r(e,t);return n.decode(i)},t.encode=(e,t,r)=>i(n.encode(e),t,r),t}let eS=Object.freeze({Create:{index:0,layout:h.struct([h.u32("instruction"),h.ns64("lamports"),h.ns64("space"),U("programId")])},Assign:{index:1,layout:h.struct([h.u32("instruction"),U("programId")])},Transfer:{index:2,layout:h.struct([h.u32("instruction"),ex("lamports")])},CreateWithSeed:{index:3,layout:h.struct([h.u32("instruction"),U("base"),q("seed"),h.ns64("lamports"),h.ns64("space"),U("programId")])},AdvanceNonceAccount:{index:4,layout:h.struct([h.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:h.struct([h.u32("instruction"),U("authorized")])},AuthorizeNonceAccount:{index:7,layout:h.struct([h.u32("instruction"),U("authorized")])},Allocate:{index:8,layout:h.struct([h.u32("instruction"),h.ns64("space")])},AllocateWithSeed:{index:9,layout:h.struct([h.u32("instruction"),U("base"),q("seed"),h.ns64("space"),U("programId")])},AssignWithSeed:{index:10,layout:h.struct([h.u32("instruction"),U("base"),q("seed"),U("programId")])},TransferWithSeed:{index:11,layout:h.struct([h.u32("instruction"),ex("lamports"),q("seed"),U("programId")])},UpgradeNonceAccount:{index:12,layout:h.struct([h.u32("instruction")])}});class eA{static createAccount(e){let t=eg(eS.Create,{lamports:e.lamports,space:e.space,programId:_(e.programId.toBuffer())});return new ee({keys:[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:t})}static transfer(e){let t,r;return"basePubkey"in e?(t=eg(eS.TransferWithSeed,{lamports:BigInt(e.lamports),seed:e.seed,programId:_(e.programId.toBuffer())}),r=[{pubkey:e.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]):(t=eg(eS.Transfer,{lamports:BigInt(e.lamports)}),r=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]),new ee({keys:r,programId:this.programId,data:t})}static assign(e){let t,r;return"basePubkey"in e?(t=eg(eS.AssignWithSeed,{base:_(e.basePubkey.toBuffer()),seed:e.seed,programId:_(e.programId.toBuffer())}),r=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]):(t=eg(eS.Assign,{programId:_(e.programId.toBuffer())}),r=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]),new ee({keys:r,programId:this.programId,data:t})}static createAccountWithSeed(e){let t=eg(eS.CreateWithSeed,{base:_(e.basePubkey.toBuffer()),seed:e.seed,lamports:e.lamports,space:e.space,programId:_(e.programId.toBuffer())}),r=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!1,isWritable:!0}];return e.basePubkey.equals(e.fromPubkey)||r.push({pubkey:e.basePubkey,isSigner:!0,isWritable:!1}),new ee({keys:r,programId:this.programId,data:t})}static createNonceAccount(e){let t=new et;"basePubkey"in e&&"seed"in e?t.add(eA.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:ev,programId:this.programId})):t.add(eA.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,lamports:e.lamports,space:ev,programId:this.programId}));let r={noncePubkey:e.noncePubkey,authorizedPubkey:e.authorizedPubkey};return t.add(this.nonceInitialize(r)),t}static nonceInitialize(e){let t=eg(eS.InitializeNonceAccount,{authorized:_(e.authorizedPubkey.toBuffer())});return new ee({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:eo,isSigner:!1,isWritable:!1},{pubkey:ea,isSigner:!1,isWritable:!1}],programId:this.programId,data:t})}static nonceAdvance(e){let t=eg(eS.AdvanceNonceAccount);return new ee({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:eo,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:t})}static nonceWithdraw(e){let t=eg(eS.WithdrawNonceAccount,{lamports:e.lamports});return new ee({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0},{pubkey:eo,isSigner:!1,isWritable:!1},{pubkey:ea,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:t})}static nonceAuthorize(e){let t=eg(eS.AuthorizeNonceAccount,{authorized:_(e.newAuthorizedPubkey.toBuffer())});return new ee({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:t})}static allocate(e){let t,r;return"basePubkey"in e?(t=eg(eS.AllocateWithSeed,{base:_(e.basePubkey.toBuffer()),seed:e.seed,space:e.space,programId:_(e.programId.toBuffer())}),r=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]):(t=eg(eS.Allocate,{space:e.space}),r=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]),new ee({keys:r,programId:this.programId,data:t})}}eA.programId=new D("11111111111111111111111111111111");class ek{static getMinNumSignatures(e){return 2*(Math.ceil(e/ek.chunkSize)+1+1)}static async load(e,t,r,i,n){{let o=await e.getMinimumBalanceForRentExemption(n.length),a=await e.getAccountInfo(r.publicKey,"confirmed"),s=null;if(null!==a){if(a.executable)return console.error("Program load failed, account is already executable"),!1;a.data.length!==n.length&&(s=s||new et).add(eA.allocate({accountPubkey:r.publicKey,space:n.length})),a.owner.equals(i)||(s=s||new et).add(eA.assign({accountPubkey:r.publicKey,programId:i})),a.lamports<o&&(s=s||new et).add(eA.transfer({fromPubkey:t.publicKey,toPubkey:r.publicKey,lamports:o-a.lamports}))}else s=new et().add(eA.createAccount({fromPubkey:t.publicKey,newAccountPubkey:r.publicKey,lamports:o>0?o:1,space:n.length,programId:i}));null!==s&&await ep(e,s,[t,r],{commitment:"confirmed"})}let o=h.struct([h.u32("instruction"),h.u32("offset"),h.u32("bytesLength"),h.u32("bytesLengthPadding"),h.seq(h.u8("byte"),h.offset(h.u32(),-8),"bytes")]),s=ek.chunkSize,l=0,c=n,d=[];for(;c.length>0;){let n=c.slice(0,s),u=a.Buffer.alloc(s+16);o.encode({instruction:0,offset:l,bytes:n,bytesLength:0,bytesLengthPadding:0},u);let h=new et().add({keys:[{pubkey:r.publicKey,isSigner:!0,isWritable:!0}],programId:i,data:u});d.push(ep(e,h,[t,r],{commitment:"confirmed"})),e._rpcEndpoint.includes("solana.com")&&await ef(250),l+=s,c=c.slice(s)}await Promise.all(d);{let n=h.struct([h.u32("instruction")]),o=a.Buffer.alloc(n.span);n.encode({instruction:1},o);let s=new et().add({keys:[{pubkey:r.publicKey,isSigner:!0,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!1}],programId:i,data:o}),l="processed",c=await e.sendTransaction(s,[t,r],{preflightCommitment:l}),{context:d,value:u}=await e.confirmTransaction({signature:c,lastValidBlockHeight:s.lastValidBlockHeight,blockhash:s.recentBlockhash},l);if(u.err)throw Error(`Transaction ${c} failed (${JSON.stringify(u)})`);for(;;){try{if(await e.getSlot({commitment:l})>d.slot)break}catch{}await new Promise(e=>setTimeout(e,Math.round(200)))}}return!0}}ek.chunkSize=932;let eE=new D("BPFLoader2111111111111111111111111111111111");var eI=(i=function(){if(o)return n;o=1;var e=Object.prototype.toString,t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};return n=function(r){var i=function r(i,n){var o,a,s,l,c,d,u;if(!0===i)return"true";if(!1===i)return"false";switch(typeof i){case"object":if(null===i)return null;if(i.toJSON&&"function"==typeof i.toJSON)return r(i.toJSON(),n);if("[object Array]"===(u=e.call(i))){for(s="[",a=i.length-1,o=0;o<a;o++)s+=r(i[o],!0)+",";return a>-1&&(s+=r(i[o],!0)),s+"]"}if("[object Object]"!==u)return JSON.stringify(i);for(a=(l=t(i).sort()).length,s="",o=0;o<a;)void 0!==(d=r(i[c=l[o]],!1))&&(s&&(s+=","),s+=JSON.stringify(c)+":"+d),o++;return"{"+s+"}";
46case"function":case"undefined":return n?null:void 0;case"string":return JSON.stringify(i);default:return isFinite(i)?i:null}}(r,!1);if(void 0!==i)return""+i}}())&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i;function eM(e){let t=0;for(;e>1;)e/=2,t++;return t}class eT{constructor(e,t,r,i,n){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=e,this.leaderScheduleSlotOffset=t,this.warmup=r,this.firstNormalEpoch=i,this.firstNormalSlot=n}getEpoch(e){return this.getEpochAndSlotIndex(e)[0]}getEpochAndSlotIndex(e){if(e<this.firstNormalSlot){var t;let r=eM(0===(t=e+32+1)?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,(t|=t>>32)+1))-eM(32)-1,i=this.getSlotsInEpoch(r);return[r,e-(i-32)]}{let t=e-this.firstNormalSlot,r=Math.floor(t/this.slotsPerEpoch);return[this.firstNormalEpoch+r,t%this.slotsPerEpoch]}}getFirstSlotInEpoch(e){return e<=this.firstNormalEpoch?(Math.pow(2,e)-1)*32:(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}getSlotsInEpoch(e){return e<this.firstNormalEpoch?Math.pow(2,e+eM(32)):this.slotsPerEpoch}}var eN=globalThis.fetch;class e_ extends x.CommonClient{constructor(e,t,r){super(e=>{let r=(0,x.WebSocket)(e,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...t});return"socket"in r?this.underlyingSocket=r.socket:this.underlyingSocket=r,r},e,t,r),this.underlyingSocket=void 0}call(...e){let t=this.underlyingSocket?.readyState;return 1===t?super.call(...e):Promise.reject(Error("Tried to call a JSON-RPC method `"+e[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+t+")"))}notify(...e){let t=this.underlyingSocket?.readyState;return 1===t?super.notify(...e):Promise.reject(Error("Tried to send a JSON-RPC notification `"+e[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+t+")"))}}class eC{constructor(e){this.key=void 0,this.state=void 0,this.key=e.key,this.state=e.state}isActive(){let e=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===e}static deserialize(e){let t=function(e,t){let r;try{r=e.layout.decode(t)}catch(e){throw Error("invalid instruction; "+e)}if(r.typeIndex!==e.index)throw Error(`invalid account data; account type mismatch ${r.typeIndex} != ${e.index}`);return r}(eO,e),r=e.length-56;V(r>=0,"lookup table is invalid"),V(r%32==0,"lookup table is invalid");let{addresses:i}=h.struct([h.seq(U(),r/32,"addresses")]).decode(e.slice(56));return{deactivationSlot:t.deactivationSlot,lastExtendedSlot:t.lastExtendedSlot,lastExtendedSlotStartIndex:t.lastExtendedStartIndex,authority:0!==t.authority.length?new D(t.authority[0]):void 0,addresses:i.map(e=>new D(e))}}}let eO={index:1,layout:h.struct([h.u32("typeIndex"),ex("deactivationSlot"),h.nu64("lastExtendedSlot"),h.u8("lastExtendedStartIndex"),h.u8(),h.seq(U(),h.offset(h.u8(),-1),"authority")])},eP=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i,eD=(0,v.coerce)((0,v.instance)(D),(0,v.string)(),e=>new D(e)),ej=(0,v.tuple)([(0,v.string)(),(0,v.literal)("base64")]),eR=(0,v.coerce)((0,v.instance)(a.Buffer),ej,e=>a.Buffer.from(e[0],"base64"));function ez(e){let t,r;if("string"==typeof e)t=e;
46else if(e){let{commitment:i,...n}=e;t=i,r=n}return{commitment:t,config:r}}function eL(e){return e.map(e=>"memcmp"in e?{...e,memcmp:{...e.memcmp,encoding:e.memcmp.encoding??"base58"}}:e)}function eB(e){return(0,v.union)([(0,v.type)({jsonrpc:(0,v.literal)("2.0"),id:(0,v.string)(),result:e}),(0,v.type)({jsonrpc:(0,v.literal)("2.0"),id:(0,v.string)(),error:(0,v.type)({code:(0,v.unknown)(),message:(0,v.string)(),data:(0,v.optional)((0,v.any)())})})])}let eU=eB((0,v.unknown)());function eq(e){return(0,v.coerce)(eB(e),eU,t=>"error"in t?t:{...t,result:(0,v.create)(t.result,e)})}function eW(e){return eq((0,v.type)({context:(0,v.type)({slot:(0,v.number)()}),value:e}))}function eH(e){return(0,v.type)({context:(0,v.type)({slot:(0,v.number)()}),value:e})}function eV(e,t){return 0===e?new Q({header:t.header,staticAccountKeys:t.accountKeys.map(e=>new D(e)),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map(e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:c.default.decode(e.data)})),addressTableLookups:t.addressTableLookups}):new G(t)}let eK=(0,v.type)({foundation:(0,v.number)(),foundationTerm:(0,v.number)(),initial:(0,v.number)(),taper:(0,v.number)(),terminal:(0,v.number)()}),eF=eq((0,v.array)((0,v.nullable)((0,v.type)({epoch:(0,v.number)(),effectiveSlot:(0,v.number)(),amount:(0,v.number)(),postBalance:(0,v.number)(),commission:(0,v.optional)((0,v.nullable)((0,v.number)()))})))),eY=(0,v.array)((0,v.type)({slot:(0,v.number)(),prioritizationFee:(0,v.number)()})),eJ=(0,v.type)({total:(0,v.number)(),validator:(0,v.number)(),foundation:(0,v.number)(),epoch:(0,v.number)()}),eG=(0,v.type)({epoch:(0,v.number)(),slotIndex:(0,v.number)(),slotsInEpoch:(0,v.number)(),absoluteSlot:(0,v.number)(),blockHeight:(0,v.optional)((0,v.number)()),transactionCount:(0,v.optional)((0,v.number)())}),eQ=(0,v.type)({slotsPerEpoch:(0,v.number)(),leaderScheduleSlotOffset:(0,v.number)(),warmup:(0,v.boolean)(),firstNormalEpoch:(0,v.number)(),firstNormalSlot:(0,v.number)()}),eZ=(0,v.record)((0,v.string)(),(0,v.array)((0,v.number)())),eX=(0,v.nullable)((0,v.union)([(0,v.type)({}),(0,v.string)()])),e$=(0,v.type)({err:eX}),e0=(0,v.literal)("receivedSignature"),e1=(0,v.type)({"solana-core":(0,v.string)(),"feature-set":(0,v.optional)((0,v.number)())}),e2=(0,v.type)({program:(0,v.string)(),programId:eD,parsed:(0,v.unknown)()}),e3=(0,v.type)({programId:eD,accounts:(0,v.array)(eD),data:(0,v.string)()}),e4=eW((0,v.type)({err:(0,v.nullable)((0,v.union)([(0,v.type)({}),(0,v.string)()])),logs:(0,v.nullable)((0,v.array)((0,v.string)())),accounts:(0,v.optional)((0,v.nullable)((0,v.array)((0,v.nullable)((0,v.type)({executable:(0,v.boolean)(),owner:(0,v.string)(),lamports:(0,v.number)(),data:(0,v.array)((0,v.string)()),rentEpoch:(0,v.optional)((0,v.number)())}))))),unitsConsumed:(0,v.optional)((0,v.number)()),returnData:(0,v.optional)((0,v.nullable)((0,v.type)({programId:(0,v.string)(),data:(0,v.tuple)([(0,v.string)(),(0,v.literal)("base64")])}))),innerInstructions:(0,v.optional)((0,v.nullable)((0,v.array)((0,v.type)({index:(0,v.number)(),instructions:(0,v.array)((0,v.union)([e2,e3]))}))))})),e5=eW((0,v.type)({byIdentity:(0,v.record)((0,v.string)(),(0,v.array)((0,v.number)())),range:(0,v.type)({firstSlot:(0,v.number)(),lastSlot:(0,v.number)()})})),e8=eq(eK),e6=eq(eJ),e7=eq(eY),e9=eq(eG),te=eq(eQ),tt=eq(eZ),tr=eq((0,v.number)()),ti=eW((0,v.type)({total:(0,v.number)(),circulating:(0,v.number)(),nonCirculating:(0,v.number)(),nonCirculatingAccounts:(0,v.array)(eD)})),tn=(0,v.type)({amount:(0,v.string)(),uiAmount:(0,v.nullable)((0,v.number)()),decimals:(0,v.number)(),uiAmountString:(0,v.optional)((0,v.string)())}),to=eW((0,v.array)((0,v.type)({address:eD,amount:(0,v.string)(),uiAmount:(0,v.nullable)((0,v.number)()),decimals:(0,v.number)(),uiAmountString:(0,v.optional)((0,v.string)())}))),ta=eW((0,v.array)((0,v.type)({pubkey:eD,account:(0,v.type)({executable:(0,v.boolean)(),owner:eD,lamports:(0,v.number)(),data:eR,rentEpoch:(0,v.number)()})}))),ts=(0,v.type)({program:(0,v.string)(),parsed:(0,v.unknown)(),space:(0,v.number)()}),tl=eW((0,v.array)((0,v.type)({pubkey:eD,account:(0,v.type)({executable:(0,v.boolean)(),owner:eD,lamports:(0,v.number)(),data:ts,rentEpoch:(0,v.number)()})}))),tc=eW((0,v.array)((0,v.type)({lamports:(0,v.number)(),address:eD}))),td=(0,v.type)({executable:(0,v.boolean)(),owner:eD,lamports:(0,v.number)(),data:eR,rentEpoch:(0,v.number)()}),tu=(0,v.type)({pubkey:eD,account:td}),th=(0,v.coerce)((0,v.union)([(0,v.instance)(a.Buffer),ts]),(0,v.union)([ej,ts]),e=>Array.isArray(e)?(0,v.create)(e,eR):e),tp=(0,v.type)({executable:(0,v.boolean)(),owner:eD,lamports:(0,v.number)(),data:th,rentEpoch:(0,v.number)()}),tf=(0,v.type)({pubkey:eD,account:tp}),tg=(0,v.type)({state:(0,v.union)([(0,v.literal)("active"),(0,v.literal)("inactive"),(0,v.literal)("activating"),(0,v.literal)("deactivating")]),active:(0,v.number)(),inactive:(0,v.number)()}),tm=eq((0,v.array)((0,v.type)({signature:(0,v.string)(),slot:(0,v.number)(),err:eX,memo:(0,v.nullable)((0,v.string)()),blockTime:(0,v.optional)((0,v.nullable)((0,v.number)()))}))),ty=eq((0,v.array)((0,v.type)({signature:(0,v.string)(),slot:(0,v.number)(),err:eX,memo:(0,v.nullable)((0,v.string)()),blockTime:(0,v.optional)((0,v.nullable)((0,v.number)()))}))),tb=(0,v.type)({subscription:(0,v.number)(),result:eH(td)}),tv=(0,v.type)({pubkey:eD,account:td}),tw=(0,v.type)({subscription:(0,v.number)(),result:eH(tv)}),tx=(0,v.type)({parent:(0,v.number)(),slot:(0,v.number)(),root:(0,v.number)()}),tS=(0,v.type)({subscription:(0,v.number)(),result:tx}),tA=(0,v.union)([(0,v.type)({type:(0,v.union)([(0,v.literal)("firstShredReceived"),(0,v.literal)("completed"),(0,v.literal)("optimisticConfirmation"),(0,v.literal)("root")
46]),slot:(0,v.number)(),timestamp:(0,v.number)()}),(0,v.type)({type:(0,v.literal)("createdBank"),parent:(0,v.number)(),slot:(0,v.number)(),timestamp:(0,v.number)()}),(0,v.type)({type:(0,v.literal)("frozen"),slot:(0,v.number)(),timestamp:(0,v.number)(),stats:(0,v.type)({numTransactionEntries:(0,v.number)(),numSuccessfulTransactions:(0,v.number)(),numFailedTransactions:(0,v.number)(),maxTransactionsPerEntry:(0,v.number)()})}),(0,v.type)({type:(0,v.literal)("dead"),slot:(0,v.number)(),timestamp:(0,v.number)(),err:(0,v.string)()})]),tk=(0,v.type)({subscription:(0,v.number)(),result:tA}),tE=(0,v.type)({subscription:(0,v.number)(),result:eH((0,v.union)([e$,e0]))}),tI=(0,v.type)({subscription:(0,v.number)(),result:(0,v.number)()}),tM=(0,v.type)({pubkey:(0,v.string)(),gossip:(0,v.nullable)((0,v.string)()),tpu:(0,v.nullable)((0,v.string)()),rpc:(0,v.nullable)((0,v.string)()),version:(0,v.nullable)((0,v.string)())}),tT=(0,v.type)({votePubkey:(0,v.string)(),nodePubkey:(0,v.string)(),activatedStake:(0,v.number)(),epochVoteAccount:(0,v.boolean)(),epochCredits:(0,v.array)((0,v.tuple)([(0,v.number)(),(0,v.number)(),(0,v.number)()])),commission:(0,v.number)(),lastVote:(0,v.number)(),rootSlot:(0,v.nullable)((0,v.number)())}),tN=eq((0,v.type)({current:(0,v.array)(tT),delinquent:(0,v.array)(tT)})),t_=(0,v.union)([(0,v.literal)("processed"),(0,v.literal)("confirmed"),(0,v.literal)("finalized")]),tC=(0,v.type)({slot:(0,v.number)(),confirmations:(0,v.nullable)((0,v.number)()),err:eX,confirmationStatus:(0,v.optional)(t_)}),tO=eW((0,v.array)((0,v.nullable)(tC))),tP=eq((0,v.number)()),tD=(0,v.type)({accountKey:eD,writableIndexes:(0,v.array)((0,v.number)()),readonlyIndexes:(0,v.array)((0,v.number)())}),tj=(0,v.type)({signatures:(0,v.array)((0,v.string)()),message:(0,v.type)({accountKeys:(0,v.array)((0,v.string)()),header:(0,v.type)({numRequiredSignatures:(0,v.number)(),numReadonlySignedAccounts:(0,v.number)(),numReadonlyUnsignedAccounts:(0,v.number)()}),instructions:(0,v.array)((0,v.type)({accounts:(0,v.array)((0,v.number)()),data:(0,v.string)(),programIdIndex:(0,v.number)()})),recentBlockhash:(0,v.string)(),addressTableLookups:(0,v.optional)((0,v.array)(tD))})}),tR=(0,v.type)({pubkey:eD,signer:(0,v.boolean)(),writable:(0,v.boolean)(),source:(0,v.optional)((0,v.union)([(0,v.literal)("transaction"),(0,v.literal)("lookupTable")]))}),tz=(0,v.type)({accountKeys:(0,v.array)(tR),signatures:(0,v.array)((0,v.string)())}),tL=(0,v.type)({parsed:(0,v.unknown)(),program:(0,v.string)(),programId:eD}),tB=(0,v.type)({accounts:(0,v.array)(eD),data:(0,v.string)(),programId:eD}),tU=(0,v.union)([tB,tL]),tq=(0,v.union)([(0,v.type)({parsed:(0,v.unknown)(),program:(0,v.string)(),programId:(0,v.string)()}),(0,v.type)({accounts:(0,v.array)((0,v.string)()),data:(0,v.string)(),programId:(0,v.string)()})]),tW=(0,v.coerce)(tU,tq,e=>"accounts"in e?(0,v.create)(e,tB):(0,v.create)(e,tL)),tH=(0,v.type)({signatures:(0,v.array)((0,v.string)()),message:(0,v.type)({accountKeys:(0,v.array)(tR),instructions:(0,v.array)(tW),recentBlockhash:(0,v.string)(),addressTableLookups:(0,v.optional)((0,v.nullable)((0,v.array)(tD)))})}),tV=(0,v.type)({accountIndex:(0,v.number)(),mint:(0,v.string)(),owner:(0,v.optional)((0,v.string)()),programId:(0,v.optional)((0,v.string)()),uiTokenAmount:tn}),tK=(0,v.type)({writable:(0,v.array)(eD),readonly:(0,v.array)(eD)}),tF=(0,v.type)({err:eX,fee:(0,v.number)(),innerInstructions:(0,v.optional)((0,v.nullable)((0,v.array)((0,v.type)({index:(0,v.number)(),instructions:(0,v.array)((0,v.type)({accounts:(0,v.array)((0,v.number)()),data:(0,v.string)(),programIdIndex:(0,v.number)()}))})))),preBalances:(0,v.array)((0,v.number)()),postBalances:(0,v.array)((0,v.number)()),logMessages:(0,v.optional)((0,v.nullable)((0,v.array)((0,v.string)()))),preTokenBalances:(0,v.optional)((0,v.nullable)((0,v.array)(tV))),postTokenBalances:(0,v.optional)((0,v.nullable)((0,v.array)(tV))),loadedAddresses:(0,v.optional)(tK),computeUnitsConsumed:(0,v.optional)((0,v.number)()),costUnits:(0,v.optional)((0,v.number)())}),tY=(0,v.type)({err:eX,fee:(0,v.number)(),innerInstructions:(0,v.optional)((0,v.nullable)((0,v.array)((0,v.type)({index:(0,v.number)(),instructions:(0,v.array)(tW)})))),preBalances:(0,v.array)((0,v.number)()),postBalances:(0,v.array)((0,v.number)()),logMessages:(0,v.optional)((0,v.nullable)((0,v.array)((0,v.string)()))),preTokenBalances:(0,v.optional)((0,v.nullable)((0,v.array)(tV))),postTokenBalances:(0,v.optional)((0,v.nullable)((0,v.array)(tV))),loadedAddresses:(0,v.optional)(tK),computeUnitsConsumed:(0,v.optional)((0,v.number)()),costUnits:(0,v.optional)((0,v.number)())}),tJ=(0,v.union)([(0,v.literal)(0),(0,v.literal)("legacy")]),tG=(0,v.type)({pubkey:(0,v.string)(),lamports:(0,v.number)(),postBalance:(0,v.nullable)((0,v.number)()),rewardType:(0,v.nullable)((0,v.string)()),commission:(0,v.optional)((0,v.nullable)((0,v.number)()))}),tQ=eq((0,v.nullable)((0,v.type)({blockhash:(0,v.string)(),previousBlockhash:(0,v.string)(),parentSlot:(0,v.number)(),transactions:(0,v.array)((0,v.type)({transaction:tj,meta:(0,v.nullable)(tF),version:(0,v.optional)(tJ)})),rewards:(0,v.optional)((0,v.array)(tG)),blockTime:(0,v.nullable)((0,v.number)()),blockHeight:(0,v.nullable)((0,v.number)())}))),tZ=eq((0,v.nullable)((0,v.type)({blockhash:(0,v.string)(),previousBlockhash:(0,v.string)(),parentSlot:(0,v.number)(),rewards:(0,v.optional)((0,v.array)(tG)),blockTime:(0,v.nullable)((0,v.number)()),blockHeight:(0,v.nullable)((0,v.number)())}))),tX=eq((0,v.nullable)((0,v.type)({blockhash:(0,v.string)(),previousBlockhash:(0,v.string)(),parentSlot:(0,v.number)(),transactions:(0,v.array)((0,v.type)({transaction:tz,meta:(0,v.nullable)(tF),version:(0,v.optional)(tJ)})),rewards:(0,v.optional)((0,v.array)(tG)),blockTime:(0,v.nullable)((0,v.number)()),blockHeight:(0,v.nullable)((0,v.number)())}))),t$=eq((0,v.nullable)((0,v.type)({blockhash:(0,v.string)(),previousBlockhash:(0,v.string)(),parentSlot:(0,v.number)(),transactions:(0,v.array)((0,v.type)({transaction:tH,meta:(0,v.nullable)(tY),version:(0,v.optional)(tJ)})),rewards:(0,v.optional)((0,v.array)(tG)),blockTime:(0,v.nullable)((0,v.number)()),blockHeight:(0,v.nullable)((0,v.number)())}))),t0=eq((0,v.nullable)((0,v.type)({blockhash:(0,v.string)(),previousBlockhash:(0,v.string)(),parentSlot:(0,v.number)(),transactions:(0,v.array)((0,v.type)({transaction:tz,meta:(0,v.nullable)(tY),version:(0,v.optional)(tJ)})),rewards:(0,v.optional)((0,v.array)(tG)),blockTime:(0,v.nullable)((0,v.number)()),blockHeight:(0,v.nullable)((0,v.number)())}))),t1=eq((0,v.nullable)((0,v.type)({blockhash:(0,v.string)(),previousBlockhash:(0,v.string)(),parentSlot:(0,v.number)(),rewards:(0,v.optional)((0,v.array)(tG)),blockTime:(0,v.nullable)((0,v.number)()),blockHeight:(0,v.nullable)((0,v.number)())}))),t2=eq((0,v.nullable)((0,v.type)({blockhash:(0,v.string)(),previousBlockhash:(0,v.string)(),parentSlot:(0,v.number)(),transactions:(0,v.array)((0,v.type)({transaction:tj,meta:(0,v.nullable)(tF)})),rewards:(0,v.optional)((0,v.array)(tG)),blockTime:(0,v.nullable)((0,v.number)())}))),t3=eq((0,v.nullable)((0,v.type)({blockhash:(0,v.string)(),previousBlockhash:(0,v.string)(),parentSlot:(0,v.number)(),signatures:(0,v.array)((0,v.string)()),blockTime:(0,v.nullable)((0,v.number)())}))),t4=eq((0,v.nullable)((0,v.type)({slot:(0,v.number)(),meta:(0,v.nullable)(tF),blockTime:(0,v.optional)((0,v.nullable)((0,v.number)())),transaction:tj,version:(0,v.optional)(tJ)}))),t5=eq((0,v.nullable)((0,v.type)({slot:(0,v.number)(),transaction:tH,meta:(0,v.nullable)(tY),blockTime:(0,v.optional)((0,v.nullable)((0,v.number)())),version:(0,v.optional)(tJ)}
46))),t8=eW((0,v.type)({blockhash:(0,v.string)(),lastValidBlockHeight:(0,v.number)()})),t6=eW((0,v.boolean)()),t7=(0,v.type)({slot:(0,v.number)(),numTransactions:(0,v.number)(),numSlots:(0,v.number)(),samplePeriodSecs:(0,v.number)()}),t9=eq((0,v.array)(t7)),re=eW((0,v.nullable)((0,v.type)({feeCalculator:(0,v.type)({lamportsPerSignature:(0,v.number)()})}))),rt=eq((0,v.string)()),rr=eq((0,v.string)()),ri=(0,v.type)({err:eX,logs:(0,v.array)((0,v.string)()),signature:(0,v.string)()}),rn=(0,v.type)({result:eH(ri),subscription:(0,v.number)()}),ro={"solana-client":"js/1.0.0-maintenance"};class ra{constructor(e){this._keypair=void 0,this._keypair=e??E()}static generate(){return new ra(E())}static fromSecretKey(e,t){if(64!==e.byteLength)throw Error("bad secret key size");let r=e.slice(32,64);if(!t||!t.skipValidation){let t=I(e.slice(0,32));for(let e=0;e<32;e++)if(r[e]!==t[e])throw Error("provided secretKey is invalid")}return new ra({publicKey:r,secretKey:e})}static fromSeed(e){let t=I(e),r=new Uint8Array(64);return r.set(e),r.set(t,32),new ra({publicKey:t,secretKey:r})}get publicKey(){return new D(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}let rs=Object.freeze({CreateLookupTable:{index:0,layout:h.struct([h.u32("instruction"),ex("recentSlot"),h.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:h.struct([h.u32("instruction")])},ExtendLookupTable:{index:2,layout:h.struct([h.u32("instruction"),ex(),h.seq(U(),h.offset(h.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:h.struct([h.u32("instruction")])},CloseLookupTable:{index:4,layout:h.struct([h.u32("instruction")])}});class rl{static createLookupTable(e){let[t,r]=D.findProgramAddressSync([e.authority.toBuffer(),b().encode(e.recentSlot)],this.programId),i=eg(rs.CreateLookupTable,{recentSlot:BigInt(e.recentSlot),bumpSeed:r}),n=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:eA.programId,isSigner:!1,isWritable:!1}];return[new ee({programId:this.programId,keys:n,data:i}),t]}static freezeLookupTable(e){let t=eg(rs.FreezeLookupTable),r=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new ee({programId:this.programId,keys:r,data:t})}static extendLookupTable(e){let t=eg(rs.ExtendLookupTable,{addresses:e.addresses.map(e=>e.toBytes())}),r=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return e.payer&&r.push({pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:eA.programId,isSigner:!1,isWritable:!1}),new ee({programId:this.programId,keys:r,data:t})}static deactivateLookupTable(e){let t=eg(rs.DeactivateLookupTable),r=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new ee({programId:this.programId,keys:r,data:t})}static closeLookupTable(e){let t=eg(rs.CloseLookupTable),r=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.recipient,isSigner:!1,isWritable:!0}];return new ee({programId:this.programId,keys:r,data:t})}}rl.programId=new D("AddressLookupTab1e1111111111111111111111111");let rc=Object.freeze({RequestUnits:{index:0,layout:h.struct([h.u8("instruction"),h.u32("units"),h.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:h.struct([h.u8("instruction"),h.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:h.struct([h.u8("instruction"),h.u32("units")])},SetComputeUnitPrice:{index:3,layout:h.struct([h.u8("instruction"),ex("microLamports")])}});class rd{static requestUnits(e){let t=eg(rc.RequestUnits,e);return new ee({keys:[],programId:this.programId,data:t})}static requestHeapFrame(e){let t=eg(rc.RequestHeapFrame,e);return new ee({keys:[],programId:this.programId,data:t})}static setComputeUnitLimit(e){let t=eg(rc.SetComputeUnitLimit,e);return new ee({keys:[],programId:this.programId,data:t})}static setComputeUnitPrice(e){let t=eg(rc.SetComputeUnitPrice,{microLamports:BigInt(e.microLamports)});return new ee({keys:[],programId:this.programId,data:t})}}rd.programId=new D("ComputeBudget111111111111111111111111111111");let ru=h.struct([h.u8("numSignatures"),h.u8("padding"),h.u16("signatureOffset"),h.u16("signatureInstructionIndex"),h.u16("publicKeyOffset"),h.u16("publicKeyInstructionIndex"),h.u16("messageDataOffset"),h.u16("messageDataSize"),h.u16("messageInstructionIndex")]
vendor: 8,866 bytes, line 46
46);class rh{static createInstructionWithPublicKey(e){let{publicKey:t,message:r,signature:i,instructionIndex:n}=e;V(32===t.length,`Public Key must be 32 bytes but received ${t.length} bytes`),V(64===i.length,`Signature must be 64 bytes but received ${i.length} bytes`);let o=ru.span,s=o+t.length,l=s+i.length,c=a.Buffer.alloc(l+r.length),d=null==n?65535:n;return ru.encode({numSignatures:1,padding:0,signatureOffset:s,signatureInstructionIndex:d,publicKeyOffset:o,publicKeyInstructionIndex:d,messageDataOffset:l,messageDataSize:r.length,messageInstructionIndex:d},c),c.fill(t,o),c.fill(i,s),c.fill(r,l),new ee({keys:[],programId:rh.programId,data:c})}static createInstructionWithPrivateKey(e){let{privateKey:t,message:r,instructionIndex:i}=e;V(64===t.length,`Private key must be 64 bytes but received ${t.length} bytes`);try{let e=ra.fromSecretKey(t),n=e.publicKey.toBytes(),o=T(r,e.secretKey);return this.createInstructionWithPublicKey({publicKey:n,message:r,signature:o,instructionIndex:i})}catch(e){throw Error(`Error creating instruction; ${e}`)}}}rh.programId=new D("Ed25519SigVerify111111111111111111111111111"),A.secp256k1.utils.isValidPrivateKey;let rp=A.secp256k1.getPublicKey,rf=h.struct([h.u8("numSignatures"),h.u16("signatureOffset"),h.u8("signatureInstructionIndex"),h.u16("ethAddressOffset"),h.u8("ethAddressInstructionIndex"),h.u16("messageDataOffset"),h.u16("messageDataSize"),h.u8("messageInstructionIndex"),h.blob(20,"ethAddress"),h.blob(64,"signature"),h.u8("recoveryId")]);class rg{static publicKeyToEthAddress(e){V(64===e.length,`Public key must be 64 bytes but received ${e.length} bytes`);try{return a.Buffer.from((0,S.keccak_256)(_(e))).slice(-20)}catch(e){throw Error(`Error constructing Ethereum address: ${e}`)}}static createInstructionWithPublicKey(e){let{publicKey:t,message:r,signature:i,recoveryId:n,instructionIndex:o}=e;return rg.createInstructionWithEthAddress({ethAddress:rg.publicKeyToEthAddress(t),message:r,signature:i,recoveryId:n,instructionIndex:o})}static createInstructionWithEthAddress(e){let t,{ethAddress:r,message:i,signature:n,recoveryId:o,instructionIndex:s=0}=e;V(20===(t="string"==typeof r?r.startsWith("0x")?a.Buffer.from(r.substr(2),"hex"):a.Buffer.from(r,"hex"):r).length,`Address must be 20 bytes but received ${t.length} bytes`);let l=12+t.length,c=l+n.length+1,d=a.Buffer.alloc(rf.span+i.length);return rf.encode({numSignatures:1,signatureOffset:l,signatureInstructionIndex:s,ethAddressOffset:12,ethAddressInstructionIndex:s,messageDataOffset:c,messageDataSize:i.length,messageInstructionIndex:s,signature:_(n),ethAddress:_(t),recoveryId:o},d),d.fill(_(i),rf.span),new ee({keys:[],programId:rg.programId,data:d})}static createInstructionWithPrivateKey(e){let{privateKey:t,message:r,instructionIndex:i}=e;V(32===t.length,`Private key must be 32 bytes but received ${t.length} bytes`);try{var n;let e,o=_(t),s=rp(o,!1).slice(1),[l,c]=(n=a.Buffer.from((0,S.keccak_256)(_(r))),[(e=A.secp256k1.sign(n,o)).toCompactRawBytes(),e.recovery]);return this.createInstructionWithPublicKey({publicKey:s,message:r,signature:l,recoveryId:c,instructionIndex:i})}catch(e){throw Error(`Error creating instruction; ${e}`)}}}rg.programId=new D("KeccakSecp256k11111111111111111111111111111");let rm=new D("StakeConfig11111111111111111111111111111111");class ry{constructor(e,t){this.staker=void 0,this.withdrawer=void 0,this.staker=e,this.withdrawer=t}}class rb{constructor(e,t,r){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=t,this.custodian=r}}rb.default=new rb(0,0,D.default);let rv=Object.freeze({Initialize:{index:0,layout:h.struct([h.u32("instruction"),((e="authorized")=>h.struct([U("staker"),U("withdrawer")],e))(),((e="lockup")=>h.struct([h.ns64("unixTimestamp"),h.ns64("epoch"),U("custodian")],e))()])},Authorize:{index:1,layout:h.struct([h.u32("instruction"),U("newAuthorized"),h.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:h.struct([h.u32("instruction")])},Split:{index:3,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},Withdraw:{index:4,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},Deactivate:{index:5,layout:h.struct([h.u32("instruction")])},Merge:{index:7,layout:h.struct([h.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:h.struct([h.u32("instruction"),U("newAuthorized"),h.u32("stakeAuthorizationType"),q("authoritySeed"),U("authorityOwner")])}}),rw=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class rx{static initialize(e){let{stakePubkey:t,authorized:r,lockup:i}=e,n=i||rb.default,o=eg(rv.Initialize,{authorized:{staker:_(r.staker.toBuffer()),withdrawer:_(r.withdrawer.toBuffer())},lockup:{unixTimestamp:n.unixTimestamp,epoch:n.epoch,custodian:_(n.custodian.toBuffer())}});return new ee({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!1}],programId:this.programId,data:o})}static createAccountWithSeed(e){let t=new et;t.add(eA.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));let{stakePubkey:r,authorized:i,lockup:n}=e;return t.add(this.initialize({stakePubkey:r,authorized:i,lockup:n}))}static createAccount(e){let t=new et;t.add(eA.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));let{stakePubkey:r,authorized:i,lockup:n}=e;return t.add(this.initialize({stakePubkey:r,authorized:i,lockup:n}))}static delegate(e){let{stakePubkey:t,authorizedPubkey:r,votePubkey:i}=e,n=eg(rv.Delegate);return new et().add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!1},{pubkey:er,isSigner:!1,isWritable:!1},{pubkey:ed,isSigner:!1,isWritable:!1},{pubkey:rm,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static authorize(e){let{stakePubkey:t,authorizedPubkey:r,newAuthorizedPubkey:i,stakeAuthorizationType:n,custodianPubkey:o}=e,a=eg(rv.Authorize,{newAuthorized:_(i.toBuffer()),stakeAuthorizationType:n.index}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:er,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!0,isWritable:!1}),new et().add({keys:s,programId:this.programId,data:a})}static authorizeWithSeed(e){let{stakePubkey:t,authorityBase:r,authoritySeed:i,authorityOwner:n,newAuthorizedPubkey:o,stakeAuthorizationType:a,custodianPubkey:s}=e,l=eg(rv.AuthorizeWithSeed,{newAuthorized:_(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:i,authorityOwner:_(n.toBuffer())}),c=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:er,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!0,isWritable:!1}),new et().add({keys:c,programId:this.programId,data:l})}static splitInstruction(e){let{stakePubkey:t,authorizedPubkey:r,splitStakePubkey:i,lamports:n}=e,o=eg(rv.Split,{lamports:n});return new ee({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static split(e,t){let r=new et;return r.add(eA.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:t,space:this.space,programId:this.programId})),r.add(this.splitInstruction(e))}static splitWithSeed(e,t){let{stakePubkey:r,authorizedPubkey:i,splitStakePubkey:n,basePubkey:o,seed:a,lamports:s}=e,l=new et;return l.add(eA.allocate({accountPubkey:n,basePubkey:o,seed:a,space:this.space,programId:this.programId})),t&&t>0&&l.add(eA.transfer({fromPubkey:e.authorizedPubkey,toPubkey:n,lamports:t})),l.add(this.splitInstruction({stakePubkey:r,authorizedPubkey:i,splitStakePubkey:n,lamports:s}))}static merge(e){let{stakePubkey:t,sourceStakePubKey:r,authorizedPubkey:i}=e,n=eg(rv.Merge);return new et().add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:er,isSigner:!1,isWritable:!1},{pubkey:ed,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static withdraw(e){let{stakePubkey:t,authorizedPubkey:r,toPubkey:i,lamports:n,custodianPubkey:o}=e,a=eg(rv.Withdraw,{lamports:n}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:er,isSigner:!1,isWritable:!1},{pubkey:ed,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!0,isWritable:!1}),new et().add({keys:s,programId:this.programId,data:a})}static deactivate(e){let{stakePubkey:t,authorizedPubkey:r}=e,i=eg(rv.Deactivate);return new et().add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:er,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}}rx.programId=new D("Stake11111111111111111111111111111111111111"),rx.space=200;
46class rS{constructor(e,t,r,i){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=e,this.authorizedVoter=t,this.authorizedWithdrawer=r,this.commission=i}}let rA=Object.freeze({InitializeAccount:{index:0,layout:h.struct([h.u32("instruction"),((e="voteInit")=>h.struct([U("nodePubkey"),U("authorizedVoter"),U("authorizedWithdrawer"),h.u8("commission")],e))()])},Authorize:{index:1,layout:h.struct([h.u32("instruction"),U("newAuthorized"),h.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:h.struct([h.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:h.struct([h.u32("instruction"),((e="voteAuthorizeWithSeedArgs")=>h.struct([h.u32("voteAuthorizationType"),U("currentAuthorityDerivedKeyOwnerPubkey"),q("currentAuthorityDerivedKeySeed"),U("newAuthorized")],e))()])}}),rk=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class rE{static initializeAccount(e){let{votePubkey:t,nodePubkey:r,voteInit:i}=e,n=eg(rA.InitializeAccount,{voteInit:{nodePubkey:_(i.nodePubkey.toBuffer()),authorizedVoter:_(i.authorizedVoter.toBuffer()),authorizedWithdrawer:_(i.authorizedWithdrawer.toBuffer()),commission:i.commission}});return new ee({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ea,isSigner:!1,isWritable:!1},{pubkey:er,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static createAccount(e){let t=new et;return t.add(eA.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}static authorize(e){let{votePubkey:t,authorizedPubkey:r,newAuthorizedPubkey:i,voteAuthorizationType:n}=e,o=eg(rA.Authorize,{newAuthorized:_(i.toBuffer()),voteAuthorizationType:n.index}),a=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:er,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new et().add({keys:a,programId:this.programId,data:o})}static authorizeWithSeed(e){let{currentAuthorityDerivedKeyBasePubkey:t,currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:i,newAuthorizedPubkey:n,voteAuthorizationType:o,votePubkey:a}=e,s=eg(rA.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:_(r.toBuffer()),currentAuthorityDerivedKeySeed:i,newAuthorized:_(n.toBuffer()),voteAuthorizationType:o.index}}),l=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:er,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!0,isWritable:!1}];return new et().add({keys:l,programId:this.programId,data:s})}static withdraw(e){let{votePubkey:t,authorizedWithdrawerPubkey:r,lamports:i,toPubkey:n}=e,o=eg(rA.Withdraw,{lamports:i});return new et().add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static safeWithdraw(e,t,r){if(e.lamports>t-r)throw Error("Withdraw will leave vote account with insufficient funds.");return rE.withdraw(e)}static updateValidatorIdentity(e){let{votePubkey:t,authorizedWithdrawerPubkey:r,nodePubkey:i}=e,n=eg(rA.UpdateValidatorIdentity);return new et().add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}}rE.programId=new D("Vote111111111111111111111111111111111111111"),rE.space=3762;let rI=new D("Va1idator1nfo111111111111111111111111111111"),rM=(0,v.type)({name:(0,v.string)(),website:(0,v.optional)((0,v.string)()),details:(0,v.optional)((0,v.string)()),iconUrl:(0,v.optional)((0,v.string)()),keybaseUsername:(0,v.optional)((0,v.string)())}),rT=new D("Vote111111111111111111111111111111111111111"),rN=h.struct([U("nodePubkey"),U("authorizedWithdrawer"),h.u8("commission"),h.nu64(),h.seq(h.struct([h.nu64("slot"),h.u32("confirmationCount")]),h.offset(h.u32(),-8),"votes"),h.u8("rootSlotValid"),h.nu64("rootSlot"),h.nu64(),h.seq(h.struct([h.nu64("epoch"),U("authorizedVoter")]),h.offset(h.u32(),-8),"authorizedVoters"),h.struct([h.seq(h.struct([U("authorizedPubkey"),h.nu64("epochOfLastAuthorizedSwitch"),h.nu64("targetEpoch")]),32,"buf"),h.nu64("idx"),h.u8("isEmpty")],"priorVoters"),h.nu64(),h.seq(h.struct([h.nu64("epoch"),h.nu64("credits"),h.nu64("prevCredits")]),h.offset(h.u32(),-8),"epochCredits"),h.struct([h.nu64("slot"),h.nu64("timestamp")],"lastTimestamp")]);function r_({authorizedVoter:e,epoch:t}){return{epoch:t,authorizedVoter:new D(e)}}function rC({authorizedPubkey:e,epochOfLastAuthorizedSwitch:t,targetEpoch:r}){return{authorizedPubkey:new D(e),epochOfLastAuthorizedSwitch:t,targetEpoch:r}}let rO={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};
46async function rP(e,t,r,i){let n,o;r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(n=r,o=i):o=r;let a=o&&{skipPreflight:o.skipPreflight,preflightCommitment:o.preflightCommitment||o.commitment,minContextSlot:o.minContextSlot},s=await e.sendRawTransaction(t,a),l=o&&o.commitment,c=n?e.confirmTransaction(n,l):e.confirmTransaction(s,l),d=(await c).value;if(d.err){if(null!=s)throw new eu({action:a?.skipPreflight?"send":"simulate",signature:s,transactionMessage:`Status: (${JSON.stringify(d)})`});throw Error(`Raw transaction ${s} failed (${JSON.stringify(d)})`)}return s}e.s(["Account",0,class{constructor(e){if(this._publicKey=void 0,this._secretKey=void 0,e){const t=_(e);if(64!==e.length)throw Error("bad secret key size");this._publicKey=t.slice(32,64),this._secretKey=t.slice(0,32)}else this._secretKey=_(k()),this._publicKey=_(I(this._secretKey))}get publicKey(){return new D(this._publicKey)}get secretKey(){return a.Buffer.concat([this._secretKey,this._publicKey],64)}},"AddressLookupTableAccount",0,eC,"AddressLookupTableInstruction",0,class{static decodeInstructionType(e){let t;this.checkProgramId(e.programId);let r=h.u32("instruction").decode(e.data);for(let[e,i]of Object.entries(rs))if(i.index==r){t=e;break}if(!t)throw Error("Invalid Instruction. Should be a LookupTable Instruction");return t}static decodeCreateLookupTable(e){this.checkProgramId(e.programId),this.checkKeysLength(e.keys,4);let{recentSlot:t}=em(rs.CreateLookupTable,e.data);return{authority:e.keys[1].pubkey,payer:e.keys[2].pubkey,recentSlot:Number(t)}}static decodeExtendLookupTable(e){if(this.checkProgramId(e.programId),e.keys.length<2)throw Error(`invalid instruction; found ${e.keys.length} keys, expected at least 2`);let{addresses:t}=em(rs.ExtendLookupTable,e.data);return{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,payer:e.keys.length>2?e.keys[2].pubkey:void 0,addresses:t.map(e=>new D(e))}}static decodeCloseLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}static decodeFreezeLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static decodeDeactivateLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(rl.programId))throw Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(e,t){if(e.length<t)throw Error(`invalid instruction; found ${e.length} keys, expected at least ${t}`)}},"AddressLookupTableProgram",0,rl,"Authorized",0,ry,"BLOCKHASH_CACHE_TIMEOUT_MS",0,3e4,"BPF_LOADER_DEPRECATED_PROGRAM_ID",0,j,"BPF_LOADER_PROGRAM_ID",0,eE,"BpfLoader",0,class{static getMinNumSignatures(e){return ek.getMinNumSignatures(e)}static load(e,t,r,i,n){return ek.load(e,t,r,n,i)}},"COMPUTE_BUDGET_INSTRUCTION_LAYOUTS",0,rc,"ComputeBudgetInstruction",0,class{static decodeInstructionType(e){let t;this.checkProgramId(e.programId);let r=h.u8("instruction").decode(e.data);for(let[e,i]of Object.entries(rc))if(i.index==r){t=e;break}if(!t)throw Error("Instruction type incorrect; not a ComputeBudgetInstruction");return t}static decodeRequestUnits(e){this.checkProgramId(e.programId);let{units:t,additionalFee:r}=em(rc.RequestUnits,e.data);return{units:t,additionalFee:r}}static decodeRequestHeapFrame(e){this.checkProgramId(e.programId);let{bytes:t}=em(rc.RequestHeapFrame,e.data);return{bytes:t}}static decodeSetComputeUnitLimit(e){this.checkProgramId(e.programId);let{units:t}=em(rc.SetComputeUnitLimit,e.data);return{units:t}}static decodeSetComputeUnitPrice(e){this.checkProgramId(e.programId);let{microLamports:t}=em(rc.SetComputeUnitPrice,e.data);return{microLamports:t}}static checkProgramId(e){if(!e.equals(rd.programId))throw Error("invalid instruction; programId is not ComputeBudgetProgram")}},"ComputeBudgetProgram",0,rd,"Connection",0,class{constructor(e,t){let r,i,n,o,a,s;this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={}
vendor: 5,179 bytes, line 46
46,this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{let e={};return async t=>{let{commitment:r,config:i}=ez(t),n=this._buildArgs([],r,void 0,i),o=eI(n);return e[o]=e[o]??(async()=>{try{let e=await this._rpcRequest("getBlockHeight",n),t=(0,v.create)(e,eq((0,v.number)()));if("error"in t)throw new eh(t.error,"failed to get block height information");return t.result}finally{delete e[o]}})(),await e[o]}})(),t&&"string"==typeof t?this._commitment=t:t&&(this._commitment=t.commitment,this._confirmTransactionInitialTimeout=t.confirmTransactionInitialTimeout,r=t.wsEndpoint,i=t.httpHeaders,n=t.fetch,o=t.fetchMiddleware,a=t.disableRetryOnRateLimit,s=t.httpAgent),this._rpcEndpoint=function(e){if(!1===/^https?:/.test(e))throw TypeError("Endpoint URL must start with `http:` or `https:`.");return e}(e),this._rpcWsEndpoint=r||function(e){let t=e.match(eP);if(null==t)throw TypeError(`Failed to validate endpoint URL \`${e}\``);let[r,i,n,o]=t,a=e.startsWith("https:")?"wss:":"ws:",s=null==n?null:parseInt(n.slice(1),10),l=null==s?"":`:${s+1}`;return`${a}//${i}${l}${o}`}(e),this._rpcClient=function(e,t,r,i,n,o){let a,s,l=r||eN;return null!=o&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments."),i&&(s=async(e,t)=>{let r=await new Promise((r,n)=>{try{i(e,t,(e,t)=>r([e,t]))}catch(e){n(e)}});return await l(...r)}),new w.default(async(r,i)=>{let o={method:"POST",body:r,agent:a,headers:Object.assign({"Content-Type":"application/json"},t||{},ro)};try{let t,r=5,a=500;for(;(t=s?await s(e,o):await l(e,o),429===t.status&&!0!==n)&&(r-=1,0!==r);){;console.error(`Server responded with ${t.status} ${t.statusText}.  Retrying after ${a}ms delay...`),await ef(a),a*=2}let c=await t.text();t.ok?i(null,c):i(Error(`${t.status} ${t.statusText}: ${c}`))}catch(e){e instanceof Error&&i(e)}},{})}(e,i,n,o,a,s),this._rpcRequest=function(e){return(t,r)=>new Promise((i,n)=>{e.request(t,r,(e,t)=>{e?n(e):i(t)})})}(this._rpcClient),this._rpcBatchRequest=function(e){return t=>new Promise((r,i)=>{0===t.length&&r([]);let n=t.map(t=>e.request(t.methodName,t.args));e.request(n,(e,t)=>{e?i(e):r(t)})})}(this._rpcClient),this._rpcWebSocket=new e_(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(e,t){let{commitment:r,config:i}=ez(t),n=this._buildArgs([e.toBase58()],r,void 0,i),o=await this._rpcRequest("getBalance",n),a=(0,v.create)(o,eW((0,v.number)()));if("error"in a)throw new eh(a.error,`failed to get balance for ${e.toBase58()}`);return a.result}async getBalance(e,t){return await this.getBalanceAndContext(e,t).then(e=>e.value).catch(t=>{throw Error("failed to get balance of account "+e.toBase58()+": "+t)})}async getBlockTime(e){let t=await this._rpcRequest("getBlockTime",[e]),r=(0,v.create)(t,eq((0,v.nullable)((0,v.number)())));if("error"in r)throw new eh(r.error,`failed to get block time for slot ${e}`);return r.result}async getMinimumLedgerSlot(){let e=await this._rpcRequest("minimumLedgerSlot",[]),t=(0,v.create)(e,eq((0,v.number)()));if("error"in t)throw new eh(t.error,"failed to get minimum ledger slot");return t.result}async getFirstAvailableBlock(){let e=await this._rpcRequest("getFirstAvailableBlock",[]),t=(0,v.create)(e,tr);if("error"in t)throw new eh(t.error,"failed to get first available block");return t.result}async getSupply(e){let t={};t="string"==typeof e?{commitment:e}:e?{...e,commitment:e&&e.commitment||this.commitment}:{commitment:this.commitment};let r=await this._rpcRequest("getSupply",[t]),i=(0,v.create)(r,ti);if("error"in i)throw new eh(i.error,"failed to get supply");return i.result}async getTokenSupply(e,t){let r=this._buildArgs([e.toBase58()],t),i=await this._rpcRequest("getTokenSupply",r),n=(0,v.create)(i,eW(tn));if("error"in n)throw new eh(n.error,"failed to get token supply");return n.result}async getTokenAccountBalance(e,t){let r=this._buildArgs([e.toBase58()],t),i=await this._rpcRequest("getTokenAccountBalance",r),n=(0,v.create)(i,eW(tn));if("error"in n)throw new eh(n.error,"failed to get token account balance");return n.result}
46async getTokenAccountsByOwner(e,t,r){let{commitment:i,config:n}=ez(r),o=[e.toBase58()];"mint"in t?o.push({mint:t.mint.toBase58()}):o.push({programId:t.programId.toBase58()});let a=this._buildArgs(o,i,"base64",n),s=await this._rpcRequest("getTokenAccountsByOwner",a),l=(0,v.create)(s,ta);if("error"in l)throw new eh(l.error,`failed to get token accounts owned by account ${e.toBase58()}`);return l.result}async getParsedTokenAccountsByOwner(e,t,r){let i=[e.toBase58()];"mint"in t?i.push({mint:t.mint.toBase58()}):i.push({programId:t.programId.toBase58()});let n=this._buildArgs(i,r,"jsonParsed"),o=await this._rpcRequest("getTokenAccountsByOwner",n),a=(0,v.create)(o,tl);if("error"in a)throw new eh(a.error,`failed to get token accounts owned by account ${e.toBase58()}`);return a.result}async getLargestAccounts(e){let t={...e,commitment:e&&e.commitment||this.commitment},r=t.filter||t.commitment?[t]:[],i=await this._rpcRequest("getLargestAccounts",r),n=(0,v.create)(i,tc);if("error"in n)throw new eh(n.error,"failed to get largest accounts");return n.result}async getTokenLargestAccounts(e,t){let r=this._buildArgs([e.toBase58()],t),i=await this._rpcRequest("getTokenLargestAccounts",r),n=(0,v.create)(i,to);if("error"in n)throw new eh(n.error,"failed to get token largest accounts");return n.result}async getAccountInfoAndContext(e,t){let{commitment:r,config:i}=ez(t),n=this._buildArgs([e.toBase58()],r,"base64",i),o=await this._rpcRequest("getAccountInfo",n),a=(0,v.create)(o,eW((0,v.nullable)(td)));if("error"in a)throw new eh(a.error,`failed to get info about account ${e.toBase58()}`);return a.result}async getParsedAccountInfo(e,t){let{commitment:r,config:i}=ez(t),n=this._buildArgs([e.toBase58()],r,"jsonParsed",i),o=await this._rpcRequest("getAccountInfo",n),a=(0,v.create)(o,eW((0,v.nullable)(tp)));if("error"in a)throw new eh(a.error,`failed to get info about account ${e.toBase58()}`);return a.result}async getAccountInfo(e,t){try{return(await this.getAccountInfoAndContext(e,t)).value}catch(t){throw Error("failed to get info about account "+e.toBase58()+": "+t)}}async getMultipleParsedAccounts(e,t){let{commitment:r,config:i}=ez(t),n=e.map(e=>e.toBase58()),o=this._buildArgs([n],r,"jsonParsed",i),a=await this._rpcRequest("getMultipleAccounts",o),s=(0,v.create)(a,eW((0,v.array)((0,v.nullable)(tp))));if("error"in s)throw new eh(s.error,`failed to get info for accounts ${n}`);return s.result}async getMultipleAccountsInfoAndContext(e,t){let{commitment:r,config:i}=ez(t),n=e.map(e=>e.toBase58()),o=this._buildArgs([n],r,"base64",i),a=await this._rpcRequest("getMultipleAccounts",o),s=(0,v.create)(a,eW((0,v.array)((0,v.nullable)(td))));if("error"in s)throw new eh(s.error,`failed to get info for accounts ${n}`);return s.result}async getMultipleAccountsInfo(e,t){return(await this.getMultipleAccountsInfoAndContext(e,t)).value}async getStakeActivation(e,t,r){let{commitment:i,config:n}=ez(t),o=this._buildArgs([e.toBase58()],i,void 0,{...n,epoch:null!=r?r:n?.epoch}),a=await this._rpcRequest("getStakeActivation",o),s=(0,v.create)(a,eq(tg));if("error"in s)throw new eh(s.error,`failed to get Stake Activation ${e.toBase58()}`);return s.result}async getProgramAccounts(e,t){let{commitment:r,config:i}=ez(t),{encoding:n,...o}=i||{},a=this._buildArgs([e.toBase58()],r,n||"base64",{...o,...o.filters?{filters:eL(o.filters)}:null}),s=await this._rpcRequest("getProgramAccounts",a),l=(0,v.array)(tu),c=!0===o.withContext?(0,v.create)(s,eW(l)):(0,v.create)(s,eq(l));if("error"in c)throw new eh(c.error,`failed to get accounts owned by program ${e.toBase58()}`);return c.result}async getParsedProgramAccounts(e,t){let{commitment:r,config:i}=ez(t),n=this._buildArgs([e.toBase58()],r,"jsonParsed",i),o=await this._rpcRequest("getProgramAccounts",n),a=(0,v.create)(o,eq((0,v.array)(tf)));if("error"in a)throw new eh(a.error,`failed to get accounts owned by program ${e.toBase58()}`);return a.result}async confirmTransaction(e,t){let r,i;if("string"==typeof e)r=e;else{if(e.abortSignal?.aborted)return Promise.reject(e.abortSignal.reason);r=e.signature}try{i=c.default.decode(r)}catch(e){throw Error("signature must be base58 encoded: "+r)}
vendor: 2,806 bytes, line 46
46return(V(64===i.length,"signature has invalid length"),"string"==typeof e)?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:t||this.commitment,signature:r}):"lastValidBlockHeight"in e?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t||this.commitment,strategy:e}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:t||this.commitment,strategy:e})}getCancellationPromise(e){return new Promise((t,r)=>{null!=e&&(e.aborted?r(e.reason):e.addEventListener("abort",()=>{r(e.reason)}))})}getTransactionConfirmationPromise({commitment:e,signature:t}){let r,i,n=!1;return{abortConfirmation:()=>{i&&(i(),i=void 0),null!=r&&(this.removeSignatureListener(r),r=void 0)},confirmationPromise:new Promise((o,a)=>{try{r=this.onSignature(t,(e,t)=>{r=void 0,o({__type:X.PROCESSED,response:{context:t,value:e}})},e);let s=new Promise(e=>{null==r?e():i=this._onSubscriptionStateChange(r,t=>{"subscribed"===t&&e()})});(async()=>{if(await s,n)return;let r=await this.getSignatureStatus(t);if(n||null==r)return;let{context:i,value:l}=r;if(null!=l)if(l?.err)a(l.err);else{switch(e){case"confirmed":case"single":case"singleGossip":if("processed"===l.confirmationStatus)return;break;case"finalized":case"max":case"root":if("processed"===l.confirmationStatus||"confirmed"===l.confirmationStatus)return}n=!0,o({__type:X.PROCESSED,response:{context:i,value:l}})}})()}catch(e){a(e)}})}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:e,strategy:{abortSignal:t,lastValidBlockHeight:r,signature:i}}){let n,o=!1,a=new Promise(t=>{let i=async()=>{try{return await this.getBlockHeight(e)}catch(e){return -1}};(async()=>{let e=await i();if(!o){for(;e<=r;)if(await ef(1e3),o||(e=await i(),o))return;t({__type:X.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:s,confirmationPromise:l}=this.getTransactionConfirmationPromise({commitment:e,signature:i}),c=this.getCancellationPromise(t);try{let e=await Promise.race([c,l,a]);if(e.__type===X.PROCESSED)n=e.response;else throw new R(i)}finally{o=!0,s()}return n}async confirmTransactionUsingDurableNonceStrategy({commitment:e,strategy:{abortSignal:t,minContextSlot:r,nonceAccountPubkey:i,nonceValue:n,signature:o}}){let a,s=!1,l=new Promise(t=>{let o=n,a=null,l=async()=>{try{let{context:t,value:n}=await this.getNonceAndContext(i,{commitment:e,minContextSlot:r});return a=t.slot,n?.nonce}catch(e){return o}};(async()=>{if(o=await l(),!s)for(;;){if(n!==o)return void t({__type:X.NONCE_INVALID,slotInWhichNonceDidAdvance:a});if(await ef(2e3),s||(o=await l(),s))return}})()}),{abortConfirmation:c,confirmationPromise:d}=this.getTransactionConfirmationPromise({commitment:e,signature:o}),u=this.getCancellationPromise(t);try{let t=await Promise.race([u,d,l]);if(t.__type===X.PROCESSED)a=t.response;else{let i;for(;;
46){let e=await this.getSignatureStatus(o);if(null==e)break;if(e.context.slot<(t.slotInWhichNonceDidAdvance??r)){await ef(400);continue}i=e;break}if(i?.value){let t=e||"finalized",{confirmationStatus:r}=i.value;switch(t){case"processed":case"recent":if("processed"!==r&&"confirmed"!==r&&"finalized"!==r)throw new L(o);break;case"confirmed":case"single":case"singleGossip":if("confirmed"!==r&&"finalized"!==r)throw new L(o);break;case"finalized":case"max":case"root":if("finalized"!==r)throw new L(o)}a={context:i.context,value:{err:i.value.err}}}else throw new L(o)}}finally{s=!0,c()}return a}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:e,signature:t}){let r,i,n=new Promise(t=>{let i=this._confirmTransactionInitialTimeout||6e4;switch(e){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":i=this._confirmTransactionInitialTimeout||3e4}r=setTimeout(()=>t({__type:X.TIMED_OUT,timeoutMs:i}),i)}),{abortConfirmation:o,confirmationPromise:a}=this.getTransactionConfirmationPromise({commitment:e,signature:t});try{let e=await Promise.race([a,n]);if(e.__type===X.PROCESSED)i=e.response;else throw new z(t,e.timeoutMs/1e3)}finally{clearTimeout(r),o()}return i}async getClusterNodes(){let e=await this._rpcRequest("getClusterNodes",[]),t=(0,v.create)(e,eq((0,v.array)(tM)));if("error"in t)throw new eh(t.error,"failed to get cluster nodes");return t.result}async getVoteAccounts(e){let t=this._buildArgs([],e),r=await this._rpcRequest("getVoteAccounts",t),i=(0,v.create)(r,tN);if("error"in i)throw new eh(i.error,"failed to get vote accounts");return i.result}async getSlot(e){let{commitment:t,config:r}=ez(e),i=this._buildArgs([],t,void 0,r),n=await this._rpcRequest("getSlot",i),o=(0,v.create)(n,eq((0,v.number)()));if("error"in o)throw new eh(o.error,"failed to get slot");return o.result}async getSlotLeader(e){let{commitment:t,config:r}=ez(e),i=this._buildArgs([],t,void 0,r),n=await this._rpcRequest("getSlotLeader",i),o=(0,v.create)(n,eq((0,v.string)()));if("error"in o)throw new eh(o.error,"failed to get slot leader");return o.result}async getSlotLeaders(e,t){let r=await this._rpcRequest("getSlotLeaders",[e,t]),i=(0,v.create)(r,eq((0,v.array)(eD)));if("error"in i)throw new eh(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(e,t){let{context:r,value:i}
46=await this.getSignatureStatuses([e],t);return V(1===i.length),{context:r,value:i[0]}}async getSignatureStatuses(e,t){let r=[e];t&&r.push(t);let i=await this._rpcRequest("getSignatureStatuses",r),n=(0,v.create)(i,tO);if("error"in n)throw new eh(n.error,"failed to get signature status");return n.result}async getTransactionCount(e){let{commitment:t,config:r}=ez(e),i=this._buildArgs([],t,void 0,r),n=await this._rpcRequest("getTransactionCount",i),o=(0,v.create)(n,eq((0,v.number)()));if("error"in o)throw new eh(o.error,"failed to get transaction count");return o.result}async getTotalSupply(e){return(await this.getSupply({commitment:e,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(e){let t=this._buildArgs([],e),r=await this._rpcRequest("getInflationGovernor",t),i=(0,v.create)(r,e8);if("error"in i)throw new eh(i.error,"failed to get inflation");return i.result}async getInflationReward(e,t,r){let{commitment:i,config:n}=ez(r),o=this._buildArgs([e.map(e=>e.toBase58())],i,void 0,{...n,epoch:null!=t?t:n?.epoch}),a=await this._rpcRequest("getInflationReward",o),s=(0,v.create)(a,eF);if("error"in s)throw new eh(s.error,"failed to get inflation reward");return s.result}async getInflationRate(){let e=await this._rpcRequest("getInflationRate",[]),t=(0,v.create)(e,e6);if("error"in t)throw new eh(t.error,"failed to get inflation rate");return t.result}async getEpochInfo(e){let{commitment:t,config:r}=ez(e),i=this._buildArgs([],t,void 0,r),n=await this._rpcRequest("getEpochInfo",i),o=(0,v.create)(n,e9);if("error"in o)throw new eh(o.error,"failed to get epoch info");return o.result}async getEpochSchedule(){let e=await this._rpcRequest("getEpochSchedule",[]),t=(0,v.create)(e,te);if("error"in t)throw new eh(t.error,"failed to get epoch schedule");let r=t.result;return new eT(r.slotsPerEpoch,r.leaderScheduleSlotOffset,r.warmup,r.firstNormalEpoch,r.firstNormalSlot)}async getLeaderSchedule(){let e=await this._rpcRequest("getLeaderSchedule",[]),t=(0,v.create)(e,tt);if("error"in t)throw new eh(t.error,"failed to get leader schedule");return t.result}async getMinimumBalanceForRentExemption(e,t){let r=this._buildArgs([e],t),i=await this._rpcRequest("getMinimumBalanceForRentExemption",r),n=(0,v.create)(i,tP);return"error"in n?(console.warn("Unable to fetch minimum balance for rent exemption"),0):n.result}async getRecentBlockhashAndContext(e){let{context:t,value:{blockhash:r}}=await this.getLatestBlockhashAndContext(e);return{context:t,value:{blockhash:r,feeCalculator:{get lamportsPerSignature(){throw Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON:()=>({})}}}}async getRecentPerformanceSamples(e){let t=await this._rpcRequest("getRecentPerformanceSamples",e?[e]:[]),r=(0,v.create)(t,t9);if("error"in r)throw new eh(r.error,"failed to get recent performance samples");return r.result}async getFeeCalculatorForBlockhash(e,t){let r=this._buildArgs([e],t),i=await this._rpcRequest("getFeeCalculatorForBlockhash",r),n=(0,v.create)(i,re);if("error"in n)throw new eh(n.error,"failed to get fee calculator");let{context:o,value:a}=n.result;return{context:o,value:null!==a?a.feeCalculator:null}}async getFeeForMessage(e,t){let r=_(e.serialize()).toString("base64"),i=this._buildArgs([r],t),n=await this._rpcRequest("getFeeForMessage",i),o=(0,v.create)(n,eW((0,v.nullable)((0,v.number)())));if("error"in o)throw new eh(o.error,"failed to get fee for message");if(null===o.result)throw Error("invalid blockhash");return o.result}async getRecentPrioritizationFees(e){let t=e?.lockedWritableAccounts?.map(e=>e.toBase58()),r=t?.length?[t]:[],i=await this._rpcRequest("getRecentPrioritizationFees",r),n=(0,v.create)(i,e7);if("error"in n)throw new eh(n.error,"failed to get recent prioritization fees");return n.result}async getRecentBlockhash(e){try{return(await this.getRecentBlockhashAndContext(e)).value}catch(e){throw Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(e){try{return(await this.getLatestBlockhashAndContext(e)).value}catch(e){throw Error("failed to get recent blockhash: "+e)}}
46async getLatestBlockhashAndContext(e){let{commitment:t,config:r}=ez(e),i=this._buildArgs([],t,void 0,r),n=await this._rpcRequest("getLatestBlockhash",i),o=(0,v.create)(n,t8);if("error"in o)throw new eh(o.error,"failed to get latest blockhash");return o.result}async isBlockhashValid(e,t){let{commitment:r,config:i}=ez(t),n=this._buildArgs([e],r,void 0,i),o=await this._rpcRequest("isBlockhashValid",n),a=(0,v.create)(o,t6);if("error"in a)throw new eh(a.error,"failed to determine if the blockhash `"+e+"`is valid");return a.result}async getVersion(){let e=await this._rpcRequest("getVersion",[]),t=(0,v.create)(e,eq(e1));if("error"in t)throw new eh(t.error,"failed to get version");return t.result}async getGenesisHash(){let e=await this._rpcRequest("getGenesisHash",[]),t=(0,v.create)(e,eq((0,v.string)()));if("error"in t)throw new eh(t.error,"failed to get genesis hash");return t.result}async getBlock(e,t){let{commitment:r,config:i}=ez(t),n=this._buildArgsAtLeastConfirmed([e],r,void 0,i),o=await this._rpcRequest("getBlock",n);try{switch(i?.transactionDetails){case"accounts":{let e=(0,v.create)(o,tX);if("error"in e)throw e.error;return e.result}case"none":{let e=(0,v.create)(o,tZ);if("error"in e)throw e.error;return e.result}default:{let e=(0,v.create)(o,tQ);if("error"in e)throw e.error;let{result:t}=e;return t?{...t,transactions:t.transactions.map(({transaction:e,meta:t,version:r})=>({meta:t,transaction:{...e,message:eV(r,e.message)},version:r}))}:null}}}catch(e){throw new eh(e,"failed to get confirmed block")}}async getParsedBlock(e,t){let{commitment:r,config:i}=ez(t),n=this._buildArgsAtLeastConfirmed([e],r,"jsonParsed",i),o=await this._rpcRequest("getBlock",n);try{switch(i?.transactionDetails){case"accounts":{let e=(0,v.create)(o,t0);if("error"in e)throw e.error;return e.result}case"none":{let e=(0,v.create)(o,t1);if("error"in e)throw e.error;return e.result}default:{let e=(0,v.create)(o,t$);if("error"in e)throw e.error;return e.result}}}catch(e){throw new eh(e,"failed to get block")}}async getBlockProduction(e){let t,r;if("string"==typeof e)r=e;
46else if(e){let{commitment:i,...n}=e;r=i,t=n}let i=this._buildArgs([],r,"base64",t),n=await this._rpcRequest("getBlockProduction",i),o=(0,v.create)(n,e5);if("error"in o)throw new eh(o.error,"failed to get block production information");return o.result}async getTransaction(e,t){let{commitment:r,config:i}=ez(t),n=this._buildArgsAtLeastConfirmed([e],r,void 0,i),o=await this._rpcRequest("getTransaction",n),a=(0,v.create)(o,t4);if("error"in a)throw new eh(a.error,"failed to get transaction");let s=a.result;return s?{...s,transaction:{...s.transaction,message:eV(s.version,s.transaction.message)}}:s}async getParsedTransaction(e,t){let{commitment:r,config:i}=ez(t),n=this._buildArgsAtLeastConfirmed([e],r,"jsonParsed",i),o=await this._rpcRequest("getTransaction",n),a=(0,v.create)(o,t5);if("error"in a)throw new eh(a.error,"failed to get transaction");return a.result}async getParsedTransactions(e,t){let{commitment:r,config:i}=ez(t),n=e.map(e=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([e],r,"jsonParsed",i)}));return(await this._rpcBatchRequest(n)).map(e=>{let t=(0,v.create)(e,t5);if("error"in t)throw new eh(t.error,"failed to get transactions");return t.result})}async getTransactions(e,t){let{commitment:r,config:i}=ez(t),n=e.map(e=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([e],r,void 0,i)}));return(await this._rpcBatchRequest(n)).map(e=>{let t=(0,v.create)(e,t4);if("error"in t)throw new eh(t.error,"failed to get transactions");let r=t.result;return r?{...r,transaction:{...r.transaction,message:eV(r.version,r.transaction.message)}}:r})}async getConfirmedBlock(e,t){let r=this._buildArgsAtLeastConfirmed([e],t),i=await this._rpcRequest("getBlock",r),n=(0,v.create)(i,t2);if("error"in n)throw new eh(n.error,"failed to get confirmed block");let o=n.result;if(!o)throw Error("Confirmed block "+e+" not found");let a={...o,transactions:o.transactions.map(({transaction:e,meta:t})=>{let r=new G(e.message);return{meta:t,transaction:{...e,message:r}}})};return{...a,transactions:a.transactions.map(({transaction:e,meta:t})=>({meta:t,transaction:et.populate(e.message,e.signatures)}))}}async getBlocks(e,t,r){let i=this._buildArgsAtLeastConfirmed(void 0!==t?[e,t]:[e],r),n=await this._rpcRequest("getBlocks",i),o=(0,v.create)(n,eq((0,v.array)((0,v.number)())));if("error"in o)throw new eh(o.error,"failed to get blocks");return o.result}async getBlockSignatures(e,t){let r=this._buildArgsAtLeastConfirmed([e],t,void 0,{transactionDetails:"signatures",rewards:!1}),i=await this._rpcRequest("getBlock",r),n=(0,v.create)(i,t3);if("error"in n)throw new eh(n.error,"failed to get block");let o=n.result;if(!o)throw Error("Block "+e+" not found");return o}async getConfirmedBlockSignatures(e,t){let r=this._buildArgsAtLeastConfirmed([e],t,void 0,{transactionDetails:"signatures",rewards:!1}),i=await this._rpcRequest("getBlock",r),n=(0,v.create)(i,t3);if("error"in n)throw new eh(n.error,"failed to get confirmed block");let o=n.result;if(!o)throw Error("Confirmed block "+e+" not found");return o}async getConfirmedTransaction(e,t){let r=this._buildArgsAtLeastConfirmed([e],t),i=await this._rpcRequest("getTransaction",r),n=(0,v.create)(i,t4);
46if("error"in n)throw new eh(n.error,"failed to get transaction");let o=n.result;if(!o)return o;let a=new G(o.transaction.message),s=o.transaction.signatures;return{...o,transaction:et.populate(a,s)}}async getParsedConfirmedTransaction(e,t){let r=this._buildArgsAtLeastConfirmed([e],t,"jsonParsed"),i=await this._rpcRequest("getTransaction",r),n=(0,v.create)(i,t5);if("error"in n)throw new eh(n.error,"failed to get confirmed transaction");return n.result}async getParsedConfirmedTransactions(e,t){let r=e.map(e=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([e],t,"jsonParsed")}));return(await this._rpcBatchRequest(r)).map(e=>{let t=(0,v.create)(e,t5);if("error"in t)throw new eh(t.error,"failed to get confirmed transactions");return t.result})}async getConfirmedSignaturesForAddress(e,t,r){let i={},n=await this.getFirstAvailableBlock();for(;!("until"in i)&&!(--t<=0)&&!(t<n);)try{let e=await this.getConfirmedBlockSignatures(t,"finalized");e.signatures.length>0&&(i.until=e.signatures[e.signatures.length-1].toString())}catch(e){if(e instanceof Error&&e.message.includes("skipped"))continue;throw e}
vendor: 13,761 bytes, line 46
46let o=await this.getSlot("finalized");for(;!("before"in i)&&!(++r>o);)try{let e=await this.getConfirmedBlockSignatures(r);e.signatures.length>0&&(i.before=e.signatures[e.signatures.length-1].toString())}catch(e){if(e instanceof Error&&e.message.includes("skipped"))continue;throw e}return(await this.getConfirmedSignaturesForAddress2(e,i)).map(e=>e.signature)}async getConfirmedSignaturesForAddress2(e,t,r){let i=this._buildArgsAtLeastConfirmed([e.toBase58()],r,void 0,t),n=await this._rpcRequest("getConfirmedSignaturesForAddress2",i),o=(0,v.create)(n,tm);if("error"in o)throw new eh(o.error,"failed to get confirmed signatures for address");return o.result}async getSignaturesForAddress(e,t,r){let i=this._buildArgsAtLeastConfirmed([e.toBase58()],r,void 0,t),n=await this._rpcRequest("getSignaturesForAddress",i),o=(0,v.create)(n,ty);if("error"in o)throw new eh(o.error,"failed to get signatures for address");return o.result}async getAddressLookupTable(e,t){let{context:r,value:i}=await this.getAccountInfoAndContext(e,t),n=null;return null!==i&&(n=new eC({key:e,state:eC.deserialize(i.data)})),{context:r,value:n}}async getNonceAndContext(e,t){let{context:r,value:i}=await this.getAccountInfoAndContext(e,t),n=null;return null!==i&&(n=ew.fromAccountData(i.data)),{context:r,value:n}}async getNonce(e,t){return await this.getNonceAndContext(e,t).then(e=>e.value).catch(t=>{throw Error("failed to get nonce for account "+e.toBase58()+": "+t)})}async requestAirdrop(e,t){let r=await this._rpcRequest("requestAirdrop",[e.toBase58(),t]),i=(0,v.create)(r,rt);if("error"in i)throw new eh(i.error,`airdrop to ${e.toBase58()} failed`);return i.result}async _blockhashWithExpiryBlockHeight(e){if(!e){for(;this._pollingBlockhash;)await ef(100);let e=Date.now()-this._blockhashInfo.lastFetch;if(null!==this._blockhashInfo.latestBlockhash&&!(e>=3e4))return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{let e=Date.now(),t=this._blockhashInfo.latestBlockhash,r=t?t.blockhash:null;for(let e=0;e<50;e++){let e=await this.getLatestBlockhash("finalized");if(r!==e.blockhash)return this._blockhashInfo={latestBlockhash:e,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e;await ef(200)}throw Error(`Unable to obtain a new blockhash after ${Date.now()-e}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(e){let{commitment:t,config:r}=ez(e),i=this._buildArgs([],t,"base64",r),n=await this._rpcRequest("getStakeMinimumDelegation",i),o=(0,v.create)(n,eW((0,v.number)()));if("error"in o)throw new eh(o.error,"failed to get stake minimum delegation");return o.result}async simulateTransaction(e,t,r){let i;if("message"in e){let i=e.serialize(),n=a.Buffer.from(i).toString("base64");if(Array.isArray(t)||void 0!==r)throw Error("Invalid arguments");let o=t||{};o.encoding="base64","commitment"in o||(o.commitment=this.commitment),t&&"object"==typeof t&&"innerInstructions"in t&&(o.innerInstructions=t.innerInstructions);let s=[n,o],l=await this._rpcRequest("simulateTransaction",s),c=(0,v.create)(l,e4);if("error"in c)throw Error("failed to simulate transaction: "+c.error.message);return c.result}if(e instanceof et?((i=new et).feePayer=e.feePayer,i.instructions=e.instructions,i.nonceInfo=e.nonceInfo,i.signatures=e.signatures):(i=et.populate(e))._message=i._json=void 0,void 0!==t&&!Array.isArray(t))throw Error("Invalid arguments");if(i.nonceInfo&&t)i.sign(...t);else{let e=this._disableBlockhashCaching;for(;;){let r=await this._blockhashWithExpiryBlockHeight(e);if(i.lastValidBlockHeight=r.lastValidBlockHeight,i.recentBlockhash=r.blockhash,!t)break;if(i.sign(...t),!i.signature)throw Error("!signature");let n=i.signature.toString("base64");if(this._blockhashInfo.simulatedSignatures.includes(n)||this._blockhashInfo.transactionSignatures.includes(n))e=!0;else{this._blockhashInfo.simulatedSignatures.push(n);break}}}let n=i._compile(),o=n.serialize(),s=i._serialize(o).toString("base64"),l={encoding:"base64",commitment:this.commitment};r&&(l.accounts={encoding:"base64",addresses:(Array.isArray(r)?r:n.nonProgramIds()).map(e=>e.toBase58())}),t&&(l.sigVerify=!0),t&&"object"==typeof t&&"innerInstructions"in t&&(l.innerInstructions=t.innerInstructions);let c=[s,l],d=await this._rpcRequest("simulateTransaction",c),u=(0,v.create)(d,e4);if("error"in u){let e;if("data"in u.error&&(e=u.error.data.logs)&&Array.isArray(e)){let t="\n    ",r=t+e.join(t);console.error(u.error.message,r)}throw new eu({action:"simulate",signature:"",transactionMessage:u.error.message,logs:e})}return u.result}async sendTransaction(e,t,r){if("version"in e){if(t&&Array.isArray(t))throw Error("Invalid arguments");let r=e.serialize();return await this.sendRawTransaction(r,t)}if(void 0===t||!Array.isArray(t))throw Error("Invalid arguments");if(e.nonceInfo)e.sign(...t);else{let r=this._disableBlockhashCaching;for(;;){let i=await this._blockhashWithExpiryBlockHeight(r);if(e.lastValidBlockHeight=i.lastValidBlockHeight,e.recentBlockhash=i.blockhash,e.sign(...t),!e.signature)throw Error("!signature");let n=e.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(n))r=!0;else{this._blockhashInfo.transactionSignatures.push(n);break}}}let i=e.serialize();return await this.sendRawTransaction(i,r)}async sendRawTransaction(e,t){let r=_(e).toString("base64");return await this.sendEncodedTransaction(r,t)}async sendEncodedTransaction(e,t){let r={encoding:"base64"},i=t&&t.skipPreflight,n=!0===i?"processed":t&&t.preflightCommitment||this.commitment;t&&null!=t.maxRetries&&(r.maxRetries=t.maxRetries),t&&null!=t.minContextSlot&&(r.minContextSlot=t.minContextSlot),i&&(r.skipPreflight=i),n&&(r.preflightCommitment=n);let o=[e,r],a=await this._rpcRequest("sendTransaction",o),s=(0,v.create)(a,rr);if("error"in s){let e;throw"data"in s.error&&(e=s.error.data.logs),new eu({action:i?"send":"simulate",signature:"",transactionMessage:s.error.message,logs:e})}return s.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}_wsOnClose(e){(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3===e)?this._updateSubscriptions():(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([e,t])=>{this._setSubscription(e,{...t,state:"pending"})}))}_setSubscription(e,t){let r=this._subscriptionsByHash[e]?.state;if(this._subscriptionsByHash[e]=t,r!==t.state){let r=this._subscriptionStateChangeCallbacksByHash[e];r&&r.forEach(e=>{try{e(t.state)}catch{}})}}_onSubscriptionStateChange(e,t){let r=this._subscriptionHashByClientSubscriptionId[e];if(null==r)return()=>{};let i=this._subscriptionStateChangeCallbacksByHash[r]||=new Set;return i.add(t),()=>{i.delete(t),0===i.size&&delete this._subscriptionStateChangeCallbacksByHash[r]}}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log(`Error when closing socket connection: ${e.message}`)}},500));return}if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected)return void this._rpcWebSocket.connect();let e=this._rpcWebSocketGeneration,t=()=>e===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async e=>{let r=this._subscriptionsByHash[e];if(void 0!==r)switch(r.state){case"pending":case"unsubscribed":if(0===r.callbacks.size){delete this._subscriptionsByHash[e],"unsubscribed"===r.state&&delete this._subscriptionCallbacksByServerSubscriptionId[r.serverSubscriptionId],await this._updateSubscriptions();return}await (async()=>{let{args:i,method:n}=r;try{this._setSubscription(e,{...r,state:"subscribing"});let t=await this._rpcWebSocket.call(n,i);this._setSubscription(e,{...r,serverSubscriptionId:t,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[t]=r.callbacks,await this._updateSubscriptions()}catch(o){if(console.error(`Received ${o instanceof Error?"":"JSON-RPC "}error calling \`${n}\``,{args:i,error:o}),!t())return;this._setSubscription(e,{...r,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":0===r.callbacks.size&&await (async()=>{let{serverSubscriptionId:i,unsubscribeMethod:n}=r;if(this._subscriptionsAutoDisposedByRpc.has(i))this._subscriptionsAutoDisposedByRpc.delete(i);else{this._setSubscription(e,{...r,state:"unsubscribing"}),this._setSubscription(e,{...r,state:"unsubscribing"});try{await this._rpcWebSocket.call(n,[i])}catch(i){if(i instanceof Error&&console.error(`${n} error:`,i.message),!t())return;this._setSubscription(e,{...r,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(e,{...r,state:"unsubscribed"}),await this._updateSubscriptions()})()}}))}_handleServerNotification(e,t){let r=this._subscriptionCallbacksByServerSubscriptionId[e];void 0!==r&&r.forEach(e=>{try{e(...t)}catch(e){console.error(e)}})}_wsOnAccountNotification(e){let{result:t,subscription:r}=(0,v.create)(e,tb);this._handleServerNotification(r,[t.value,t.context])}_makeSubscription(e,t){let r=this._nextClientSubscriptionId++,i=eI([e.method,t]),n=this._subscriptionsByHash[i];return void 0===n?this._subscriptionsByHash[i]={...e,args:t,callbacks:new Set([e.callback]),state:"pending"}:n.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[r]=i,this._subscriptionDisposeFunctionsByClientSubscriptionId[r]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[r],delete this._subscriptionHashByClientSubscriptionId[r];let t=this._subscriptionsByHash[i];V(void 0!==t,`Could not find a \`Subscription\` when tearing down client subscription #${r}`),t.callbacks.delete(e.callback),await this._updateSubscriptions()},this._updateSubscriptions(),r}onAccountChange(e,t,r){let{commitment:i,config:n}=ez(r),o=this._buildArgs([e.toBase58()],i||this._commitment||"finalized","base64",n);return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},o)}async removeAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"account change")}_wsOnProgramAccountNotification(e){let{result:t,subscription:r}=(0,v.create)(e,tw);this._handleServerNotification(r,[{accountId:t.value.pubkey,accountInfo:t.value.account},t.context])}onProgramAccountChange(e,t,r,i){let{commitment:n,config:o}=ez(r),a=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64",o||(i?{filters:eL(i)}:void 0));return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},a)}async removeProgramAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"program account change")}onLogs(e,t,r){let i=this._buildArgs(["object"==typeof e?{mentions:[e.toString()]}:e],r||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},i)}async removeOnLogsListener(e){await this._unsubscribeClientSubscription(e,"logs")}_wsOnLogsNotification(e){let{result:t,subscription:r}=(0,v.create)(e,rn);this._handleServerNotification(r,[t.value,t.context])}_wsOnSlotNotification(e){let{result:t,subscription:r}=(0,v.create)(e,tS);this._handleServerNotification(r,[t])}onSlotChange(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(e){await this._unsubscribeClientSubscription(e,"slot change")}_wsOnSlotUpdatesNotification(e){let{result:t,subscription:r}=(0,v.create)(e,tk);this._handleServerNotification(r,[t])}onSlotUpdate(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(e){await this._unsubscribeClientSubscription(e,"slot update")}async _unsubscribeClientSubscription(e,t){let r=this._subscriptionDisposeFunctionsByClientSubscriptionId[e];r?await r():console.warn(`Ignored unsubscribe request because an active subscription with id \`${e}\` for '${t}' events could not be found.`)}_buildArgs(e,t,r,i){let n=t||this._commitment;if(n||r||i){let t={};r&&(t.encoding=r),n&&(t.commitment=n),i&&(t=Object.assign(t,i)),e.push(t)}return e}_buildArgsAtLeastConfirmed(e,t,r,i){let n=t||this._commitment;if(n&&!["confirmed","finalized"].includes(n))throw Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,r,i)}_wsOnSignatureNotification(e){let{result:t,subscription:r}=(0,v.create)(e,tE);"receivedSignature"!==t.value&&this._subscriptionsAutoDisposedByRpc.add(r),this._handleServerNotification(r,"receivedSignature"===t.value?[{type:"received"},t.context]:[{type:"status",result:t.value},t.context])}onSignature(e,t,r){let i=this._buildArgs([e],r||this._commitment||"finalized"),n=this._makeSubscription({callback:(e,r)=>{if("status"===e.type){t(e.result,r);try{this.removeSignatureListener(n)}catch(e){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},i);return n}
46onSignatureWithOptions(e,t,r){let{commitment:i,...n}={...r,commitment:r&&r.commitment||this._commitment||"finalized"},o=this._buildArgs([e],i,void 0,n),a=this._makeSubscription({callback:(e,r)=>{t(e,r);try{this.removeSignatureListener(a)}catch(e){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return a}async removeSignatureListener(e){await this._unsubscribeClientSubscription(e,"signature result")}_wsOnRootNotification(e){let{result:t,subscription:r}=(0,v.create)(e,tI);this._handleServerNotification(r,[t])}onRootChange(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(e){await this._unsubscribeClientSubscription(e,"root change")}},"Ed25519Program",0,rh,"Enum",0,class extends C{constructor(e){if(super(e),this.enum="",1!==Object.keys(e).length)throw Error("Enum can only take single value");Object.keys(e).map(e=>{this.enum=e})}},"EpochSchedule",0,eT,"FeeCalculatorLayout",0,ey,"Keypair",0,ra,"LAMPORTS_PER_SOL",0,1e9,"LOOKUP_TABLE_INSTRUCTION_LAYOUTS",0,rs,"Loader",0,ek,"Lockup",0,rb,"MAX_SEED_LENGTH",0,32,"Message",0,G,"MessageAccountKeys",0,B,"MessageV0",0,Q,"NONCE_ACCOUNT_LENGTH",0,ev,"NonceAccount",0,ew,"PACKET_DATA_SIZE",0,1232,"PUBLIC_KEY_LENGTH",0,32,"PublicKey",0,D,"SIGNATURE_LENGTH_IN_BYTES",0,64,"SOLANA_SCHEMA",0,O,"STAKE_CONFIG_ID",0,rm,"STAKE_INSTRUCTION_LAYOUTS",0,rv,"SYSTEM_INSTRUCTION_LAYOUTS",0,eS,"SYSVAR_CLOCK_PUBKEY",0,er,"SYSVAR_EPOCH_SCHEDULE_PUBKEY",0,ei,"SYSVAR_INSTRUCTIONS_PUBKEY",0,en,"SYSVAR_RECENT_BLOCKHASHES_PUBKEY",0,eo,"SYSVAR_RENT_PUBKEY",0,ea,"SYSVAR_REWARDS_PUBKEY",0,es,"SYSVAR_SLOT_HASHES_PUBKEY",0,el,"SYSVAR_SLOT_HISTORY_PUBKEY",0,ec,"SYSVAR_STAKE_HISTORY_PUBKEY",0,ed,"Secp256k1Program",0,rg,"SendTransactionError",0,eu,"SolanaJSONRPCError",0,eh,"SolanaJSONRPCErrorCode",0,{JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016},"StakeAuthorizationLayout",0,rw,"StakeInstruction",0,class{static decodeInstructionType(e){let t;this.checkProgramId(e.programId);let r=h.u32("instruction").decode(e.data);for(let[e,i]of Object.entries(rv))if(i.index==r){t=e;break}if(!t)throw Error("Instruction type incorrect; not a StakeInstruction");return t}static decodeInitialize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{authorized:t,lockup:r}=em(rv.Initialize,e.data);return{stakePubkey:e.keys[0].pubkey,authorized:new ry(new D(t.staker),new D(t.withdrawer)),lockup:new rb(r.unixTimestamp,r.epoch,new D(r.custodian))}}static decodeDelegate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,6),em(rv.Delegate,e.data),{stakePubkey:e.keys[0].pubkey,votePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[5].pubkey}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{newAuthorized:t,stakeAuthorizationType:r}=em(rv.Authorize,e.data),i={stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new D(t),stakeAuthorizationType:{index:r}};return e.keys.length>3&&(i.custodianPubkey=e.keys[3].pubkey),i}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{newAuthorized:t,stakeAuthorizationType:r,authoritySeed:i,authorityOwner:n}=em(rv.AuthorizeWithSeed,e.data),o={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:i,authorityOwner:new D(n),newAuthorizedPubkey:new D(t),stakeAuthorizationType:{index:r}};return e.keys.length>3&&(o.custodianPubkey=e.keys[3].pubkey),o}static decodeSplit(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{lamports:t}=em(rv.Split,e.data);return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:t}}static decodeMerge(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),em(rv.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);let{lamports:t}=em(rv.Withdraw,e.data),r={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:t};return e.keys.length>5&&(r.custodianPubkey=e.keys[5].pubkey),r}static decodeDeactivate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),em(rv.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}static checkProgramId(e){if(!e.equals(rx.programId))throw Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(e,t){if(e.length<t)throw Error(`invalid instruction; found ${e.length} keys, expected at least ${t}`)}},"StakeProgram",0,rx,"Struct",0,C,"SystemInstruction",0,class{static decodeInstructionType(e){let t;this.checkProgramId(e.programId);let r=h.u32("instruction").decode(e.data);for(let[e,i]of Object.entries(eS))if(i.index==r){t=e;break}if(!t)throw Error("Instruction type incorrect; not a SystemInstruction");return t}static decodeCreateAccount(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);
46let{lamports:t,space:r,programId:i}=em(eS.Create,e.data);return{fromPubkey:e.keys[0].pubkey,newAccountPubkey:e.keys[1].pubkey,lamports:t,space:r,programId:new D(i)}}static decodeTransfer(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{lamports:t}=em(eS.Transfer,e.data);return{fromPubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,lamports:t}}static decodeTransferWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{lamports:t,seed:r,programId:i}=em(eS.TransferWithSeed,e.data);return{fromPubkey:e.keys[0].pubkey,basePubkey:e.keys[1].pubkey,toPubkey:e.keys[2].pubkey,lamports:t,seed:r,programId:new D(i)}}static decodeAllocate(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);let{space:t}=em(eS.Allocate,e.data);return{accountPubkey:e.keys[0].pubkey,space:t}}static decodeAllocateWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);let{base:t,seed:r,space:i,programId:n}=em(eS.AllocateWithSeed,e.data);return{accountPubkey:e.keys[0].pubkey,basePubkey:new D(t),seed:r,space:i,programId:new D(n)}}static decodeAssign(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);let{programId:t}=em(eS.Assign,e.data);return{accountPubkey:e.keys[0].pubkey,programId:new D(t)}}static decodeAssignWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);let{base:t,seed:r,programId:i}=em(eS.AssignWithSeed,e.data);return{accountPubkey:e.keys[0].pubkey,basePubkey:new D(t),seed:r,programId:new D(i)}}static decodeCreateWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{base:t,seed:r,lamports:i,space:n,programId:o}=em(eS.CreateWithSeed,e.data);return{fromPubkey:e.keys[0].pubkey,newAccountPubkey:e.keys[1].pubkey,basePubkey:new D(t),seed:r,lamports:i,space:n,programId:new D(o)}}static decodeNonceInitialize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{authorized:t}=em(eS.InitializeNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,authorizedPubkey:new D(t)}}static decodeNonceAdvance(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),em(eS.AdvanceNonceAccount,e.data),{noncePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}static decodeNonceWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);let{lamports:t}=em(eS.WithdrawNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:t}}static decodeNonceAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{authorized:t}=em(eS.AuthorizeNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[1].pubkey,newAuthorizedPubkey:new D(t)}}static checkProgramId(e){if(!e.equals(eA.programId))throw Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(e,t){if(e.length<t)throw Error(`invalid instruction; found ${e.length} keys, expected at least ${t}`)}},"SystemProgram",0,eA,"Transaction",0,et,"TransactionExpiredBlockheightExceededError",0,R,"TransactionExpiredNonceInvalidError",0,L,"TransactionExpiredTimeoutError",0,z,"TransactionInstruction",0,ee,"TransactionMessage",0,class e{constructor(e){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=e.payerKey,this.instructions=e.instructions,this.recentBlockhash=e.recentBlockhash}static decompile(t,r){let{header:i,compiledInstructions:n,recentBlockhash:o}=t,{numRequiredSignatures:a,numReadonlySignedAccounts:s,numReadonlyUnsignedAccounts:l}=i,c=a-s;V(c>0,"Message header is invalid");let d=t.staticAccountKeys.length-a-l;V(d>=0,"Message header is invalid");let u=t.getAccountKeys(r),h=u.get(0);if(void 0===h)throw Error("Failed to decompile message because no account keys were found");let p=[];for(let e of n){let t=[];for(let r of e.accountKeyIndexes){let e,n=u.get(r);if(void 0===n)throw Error(`Failed to find key for account key index ${r}`);e=r<a?r<c:r<u.staticAccountKeys.length?r-a<d:r-u.staticAccountKeys.length<u.accountKeysFromLookups.writable.length,t.push({pubkey:n,isSigner:r<i.numRequiredSignatures,isWritable:e})}let r=u.get(e.programIdIndex);if(void 0===r)throw Error(`Failed to find program id for program id index ${e.programIdIndex}`);p.push(new ee({programId:r,data:_(e.data),keys:t}))}return new e({payerKey:h,instructions:p,recentBlockhash:o})}compileToLegacyMessage(){return G.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}compileToV0Message(e){return Q.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:e})}},"TransactionStatus",0,X,"VALIDATOR_INFO_KEY",0,rI,"VERSION_PREFIX_MASK",0,127,"VOTE_PROGRAM_ID",0,rT,"ValidatorInfo",0,class e{constructor(e,t){this.key=void 0,this.info=void 0,this.key=e,this.info=t}static fromConfigData(t){let r=[...t];if(2!==W(r))return null;let i=[];for(let e=0;e<2;e++){let e=new D(J(r,0,32)),t=1===Y(r);i.push({publicKey:e,isSigner:t})}if(i[0].publicKey.equals(rI)&&i[1].isSigner){let t=JSON.parse(q().decode(a.Buffer.from(r)));return(0,v.assert)(t,rM),new e(i[1].publicKey,t)}return null}},"VersionedMessage",0,Z,"VersionedTransaction",0,class e{get version(){return this.message.version}constructor(e,t){if(this.signatures=void 0,this.message=void 0,void 0!==t)V(t.length===e.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=t;else{const t=[];for(let r=0;r<e.header.numRequiredSignatures;r++)t.push(new Uint8Array(64));this.signatures=t}this.message=e}serialize(){let e=this.message.serialize(),t=[];H(t,this.signatures.length);let r=h.struct([h.blob(t.length,"encodedSignaturesLength"),h.seq(((e="signature")=>h.blob(64,e))(),this.signatures.length,"signatures"),h.blob(e.length,"serializedMessage")]),i=new Uint8Array(2048),n=r.encode({encodedSignaturesLength:new Uint8Array(t),signatures:this.signatures,serializedMessage:e},i);return i.slice(0,n)}static deserialize(t){let r=[...t],i=[],n=W(r);for(let e=0;e<n;e++)i.push(new Uint8Array(J(r,0,64)));return new e(Z.deserialize(new Uint8Array(r)),i)}sign(e){let t=this.message.serialize(),r=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(let i of e){let e=r.findIndex(e=>e.equals(i.publicKey));V(e>=0,`Cannot sign with non signer key ${i.publicKey.toBase58()}`),this.signatures[e]=T(t,i.secretKey)}}addSignature(e,t){V(64===t.byteLength,"Signature must be 64 bytes long");let r=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(t=>t.equals(e));V(r>=0,`Can not add signature; \`${e.toBase58()}\` is not required to sign this transaction`),this.signatures[r]=t}},"VoteAccount",0,class e{constructor(e){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=e.nodePubkey,this.authorizedWithdrawer=e.authorizedWithdrawer,this.commission=e.commission,this.rootSlot=e.rootSlot,this.votes=e.votes,this.authorizedVoters=e.authorizedVoters,this.priorVoters=e.priorVoters,this.epochCredits=e.epochCredits,this.lastTimestamp=e.lastTimestamp}static fromAccountData(t){let r=rN.decode(_(t),4),i=r.rootSlot;return r.rootSlotValid||(i=null),new e({nodePubkey:new D(r.nodePubkey),authorizedWithdrawer:new D(r.authorizedWithdrawer),commission:r.commission,votes:r.votes,rootSlot:i,authorizedVoters:r.authorizedVoters.map(r_),priorVoters:function({buf:e,idx:t,isEmpty:r}){return r?[]:[...e.slice(t+1).map(rC),...e.slice(0,t).map(rC)]}(r.priorVoters),epochCredits:r.epochCredits,lastTimestamp:r.lastTimestamp})}},"VoteAuthorizationLayout",0,rk,"VoteInit",0,rS,"VoteInstruction",0,class{static decodeInstructionType(e){let t;this.checkProgramId(e.programId);let r=h.u32("instruction").decode(e.data);for(let[e,i]of Object.entries(rA))if(i.index==r){t=e;break}if(!t)throw Error("Instruction type incorrect; not a VoteInstruction");return t}static decodeInitializeAccount(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,4);let{voteInit:t}=em(rA.InitializeAccount,e.data);return{votePubkey:e.keys[0].pubkey,nodePubkey:e.keys[3].pubkey,voteInit:new rS(new D(t.nodePubkey),new D(t.authorizedVoter),new D(t.authorizedWithdrawer),t.commission)}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{newAuthorized:t,voteAuthorizationType:r}=em(rA.Authorize,e.data);return{votePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new D(t),voteAuthorizationType:{index:r}}}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:t,currentAuthorityDerivedKeySeed:r,newAuthorized:i,voteAuthorizationType:n}}=em(rA.AuthorizeWithSeed,e.data);return{currentAuthorityDerivedKeyBasePubkey:e.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new D(t),currentAuthorityDerivedKeySeed:r,newAuthorizedPubkey:new D(i),voteAuthorizationType:{index:n},votePubkey:e.keys[0].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{lamports:t}=em(rA.Withdraw,e.data);return{votePubkey:e.keys[0].pubkey,authorizedWithdrawerPubkey:e.keys[2].pubkey,lamports:t,toPubkey:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(rE.programId))throw Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(e,t){if(e.length<t)throw Error(`invalid instruction; found ${e.length} keys, expected at least ${t}`)}},"VoteProgram",0,rE,"clusterApiUrl",0,function(e,t){let r=!1===t?"http":"https";if(!e)return rO[r].devnet;let i=rO[r][e];if(!i)throw Error(`Unknown ${r} cluster: ${e}`);return i},"sendAndConfirmRawTransaction",0,rP,"sendAndConfirmTransaction",0,ep],21713)},899042,(e,t,r)=>{"use strict";var i=e.i(29510);
46Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(691954),o=e.r(872030),a=e.r(50358),s=e.r(443829),l=e.r(609326),c=l._default,d="Invalid mnemonic",u="Invalid entropy",h="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function p(e){return(e||"").normalize("NFKD")}function f(e,t,r){for(;e.length<r;)e=t+e;return e}function g(e){return parseInt(e,2)}function m(e){return e.map(e=>f(e.toString(2),"0",8)).join("")}function y(e){let t=8*e.length;return m(Array.from(n.sha256(Uint8Array.from(e)))).slice(0,t/32)}function b(e){return"mnemonic"+(e||"")}function v(e,t){if(!(t=t||c))throw Error(h);let r=p(e).split(" ");if(r.length%3!=0)throw Error(d);let n=r.map(e=>{let r=t.indexOf(e);if(-1===r)throw Error(d);return f(r.toString(2),"0",11)}).join(""),o=32*Math.floor(n.length/33),a=n.slice(0,o),s=n.slice(o),l=a.match(/(.{1,8})/g).map(g);if(l.length<16||l.length>32||l.length%4!=0)throw Error(u);let m=i.Buffer.from(l);if(y(m)!==s)throw Error("Invalid mnemonic checksum");return m.toString("hex")}function w(e,t){if(i.Buffer.isBuffer(e)||(e=i.Buffer.from(e,"hex")),!(t=t||c))throw Error(h);if(e.length<16||e.length>32||e.length%4!=0)throw TypeError(u);let r=(m(Array.from(e))+y(e)).match(/(.{1,11})/g).map(e=>t[g(e)]);return"あいこくしん"===t[0]?r.join(" "):r.join(" ")}r.mnemonicToSeedSync=function(e,t){let r=Uint8Array.from(i.Buffer.from(p(e),"utf8")),n=Uint8Array.from(i.Buffer.from(b(p(t)),"utf8")),s=a.pbkdf2(o.sha512,r,n,{c:2048,dkLen:64});return i.Buffer.from(s)},r.mnemonicToSeed=function(e,t){let r=Uint8Array.from(i.Buffer.from(p(e),"utf8")),n=Uint8Array.from(i.Buffer.from(b(p(t)),"utf8"));return a.pbkdf2Async(o.sha512,r,n,{c:2048,dkLen:64}).then(e=>i.Buffer.from(e))},r.mnemonicToEntropy=v,r.entropyToMnemonic=w,r.generateMnemonic=function(e,t,r){if((e=e||128)%32!=0)throw TypeError(u);return w((t=t||(e=>i.Buffer.from(s.randomBytes(e))))(e/8),r)},r.validateMnemonic=function(e,t){try{v(e,t)}catch(e){return!1}return!0},r.setDefaultWordlist=function(e){let t=l.wordlists[e];if(t)c=t;else throw Error('Could not find wordlist for language "'+e+'"')},r.getDefaultWordlist=function(){if(!c)throw Error("No Default Wordlist set");return Object.keys(l.wordlists).filter(e=>"JA"!==e&&"EN"!==e&&l.wordlists[e].every((e,t)=>e===c[t]))[0]},r.wordlists=e.r(609326).wordlists},951150,(e,t,r)=>{"use strict";var i=e.r(783113),n=e.r(697138).Buffer;t.exports=function(e){function t(t){var r=t.slice(0,-4),i=t.slice(-4),n=e(r);if(!(i[0]^n[0]|i[1]^n[1]|i[2]^n[2]|i[3]^n[3]))return r}return{encode:function(t){var r=e(t);return i.encode(n.concat([t,r],t.length+4))},decode:function(e){var r=t(i.decode(e));if(!r)throw Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=i.decodeUnsafe(e);if(r)return t(r)}}}},703395,(e,t,r)=>{"use strict";var i=e.r(963980);t.exports=e.r(951150)(function(e){var t=i("sha256").update(e).digest();return i("sha256").update(t).digest()})},940198,(e,t,r)=>{"use strict";var i=e.r(697138).Buffer,n=e.r(974417).Transform,o=e.r(703341).StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e.r(737011)(a,n);var s="u">typeof Uint8Array,l="u">typeof ArrayBuffer&&"u">typeof Uint8Array&&ArrayBuffer.isView&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);a.prototype.update=function(e,t,r){if(e instanceof i)n=e;else if("string"==typeof e)n=i.from(e,t);else if(l&&ArrayBuffer.isView(e))n=i.from(e.buffer,e.byteOffset,e.byteLength);else if(s&&e instanceof Uint8Array)n=i.from(e);else if(i.isBuffer(e)&&e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))n=i.from(e);else throw Error('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.');var n,o=this._update(n);return this.hashMode?this:(r&&(o=this._toString(o,r)),o)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw Error("can’t switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},t.exports=a},963980,(e,t,r)=>{"use strict";var i=e.r(737011),n=e.r(527241),o=e.r(578201),a=e.r(539862),s=e.r(940198);function l(e){s.call(this,"digest"),this._hash=e}i(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new n:"rmd160"===e||"ripemd160"===e?new o:new l(a(e))}},554989,(e,t,r)=>{"use strict";var i=e.r(737011),n=e.r(697138).Buffer,o=e.r(940198),a=n.alloc(128);function s(e,t){o.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=n.concat([t,a],64));for(var r=this._ipad=n.allocUnsafe(64),i=this._opad=n.allocUnsafe(64),s=0;s<64;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash=[r]}i(s,o),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,e]))},t.exports=s}
46,540830,(e,t,r)=>{var i=e.r(527241);t.exports=function(e){return new i().update(e).digest()}},145864,(e,t,r)=>{"use strict";var i=e.r(737011),n=e.r(554989),o=e.r(940198),a=e.r(697138).Buffer,s=e.r(540830),l=e.r(578201),c=e.r(539862),d=a.alloc(128);function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,d],r));for(var i=this._ipad=a.allocUnsafe(r),n=this._opad=a.allocUnsafe(r),s=0;s<r;s++)i[s]=54^t[s],n[s]=92^t[s];this._hash="rmd160"===e?new l:c(e),this._hash.update(i)}i(u,o),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new u("rmd160",t):"md5"===e?new n(s,t):new u(e,t)}},932474,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let i=e.r(963980),n=e.r(145864);r.hash160=function(e){let t=i("sha256").update(e).digest();try{return i("rmd160").update(t).digest()}catch(e){return i("ripemd160").update(t).digest()}},r.hmacSHA512=function(e,t){return n("sha512",e).update(t).digest()}},289951,(e,t,r)=>{"use strict";var i=e.r(697138).Buffer,n=e.r(974417).Transform;function o(e){n.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e.r(737011)(o,n),o.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)};var a="u">typeof Uint8Array,s="u">typeof ArrayBuffer&&"u">typeof Uint8Array&&ArrayBuffer.isView&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);o.prototype.update=function(e,t){if(this._finalized)throw Error("Digest already called");e=function(e,t){if(e instanceof i)return e;if("string"==typeof e)return i.from(e,t);if(s&&ArrayBuffer.isView(e)){if(0===e.byteLength)return i.alloc(0);var r=i.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(a&&e instanceof Uint8Array||i.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return i.from(e);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(e,t);for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var l=0,c=8*e.length;c>0;++l)this._length[l]+=c,(c=this._length[l]/0x100000000|0)>0&&(this._length[l]-=0x100000000*c);return this},o.prototype._update=function(){throw Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=o},527241,(e,t,r)=>{"use strict";var i=e.r(737011),n=e.r(289951),o=e.r(697138).Buffer,a=Array(16);function s(){n.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function l(e,t){return e<<t|e>>>32-t}function c(e,t,r,i,n,o,a){return l(e+(t&r|~t&i)+n+o|0,a)+t|0}function d(e,t,r,i,n,o,a){return l(e+(t&i|r&~i)+n+o|0,a)+t|0}function u(e,t,r,i,n,o,a){return l(e+(t^r^i)+n+o|0,a)+t|0}function h(e,t,r,i,n,o,a){return l(e+(r^(t|~i))+n+o|0,a)+t|0}i(s,n),s.prototype._update=function(){for(var e=0;e<16;++e)a[e]=this._block.readInt32LE(4*e);var t=this._a,r=this._b,i=this._c,n=this._d;t=c(t,r,i,n,a[0],0xd76aa478,7),n=c(n,t,r,i,a[1],0xe8c7b756,12),i=c(i,n,t,r,a[2],0x242070db,17),r=c(r,i,n,t,a[3],0xc1bdceee,22),t=c(t,r,i,n,a[4],0xf57c0faf,7),n=c(n,t,r,i,a[5],0x4787c62a,12),i=c(i,n,t,r,a[6],0xa8304613,17),r=c(r,i,n,t,a[7],0xfd469501,22),t=c(t,r,i,n,a[8],0x698098d8,7),n=c(n,t,r,i,a[9],0x8b44f7af,12),i=c(i,n,t,r,a[10],0xffff5bb1,17),r
46=c(r,i,n,t,a[11],0x895cd7be,22),t=c(t,r,i,n,a[12],0x6b901122,7),n=c(n,t,r,i,a[13],0xfd987193,12),i=c(i,n,t,r,a[14],0xa679438e,17),r=c(r,i,n,t,a[15],0x49b40821,22),t=d(t,r,i,n,a[1],0xf61e2562,5),n=d(n,t,r,i,a[6],0xc040b340,9),i=d(i,n,t,r,a[11],0x265e5a51,14),r=d(r,i,n,t,a[0],0xe9b6c7aa,20),t=d(t,r,i,n,a[5],0xd62f105d,5),n=d(n,t,r,i,a[10],0x2441453,9),i=d(i,n,t,r,a[15],0xd8a1e681,14),r=d(r,i,n,t,a[4],0xe7d3fbc8,20),t=d(t,r,i,n,a[9],0x21e1cde6,5),n=d(n,t,r,i,a[14],0xc33707d6,9),i=d(i,n,t,r,a[3],0xf4d50d87,14),r=d(r,i,n,t,a[8],0x455a14ed,20),t=d(t,r,i,n,a[13],0xa9e3e905,5),n=d(n,t,r,i,a[2],0xfcefa3f8,9),i=d(i,n,t,r,a[7],0x676f02d9,14),r=d(r,i,n,t,a[12],0x8d2a4c8a,20),t=u(t,r,i,n,a[5],0xfffa3942,4),n=u(n,t,r,i,a[8],0x8771f681,11),i=u(i,n,t,r,a[11],0x6d9d6122,16),r=u(r,i,n,t,a[14],0xfde5380c,23),t=u(t,r,i,n,a[1],0xa4beea44,4),n=u(n,t,r,i,a[4],0x4bdecfa9,11),i=u(i,n,t,r,a[7],0xf6bb4b60,16),r=u(r,i,n,t,a[10],0xbebfbc70,23),t=u(t,r,i,n,a[13],0x289b7ec6,4),n=u(n,t,r,i,a[0],0xeaa127fa,11),i=u(i,n,t,r,a[3],0xd4ef3085,16),r=u(r,i,n,t,a[6],0x4881d05,23),t=u(t,r,i,n,a[9],0xd9d4d039,4),n=u(n,t,r,i,a[12],0xe6db99e5,11),i=u(i,n,t,r,a[15],0x1fa27cf8,16),r=u(r,i,n,t,a[2],0xc4ac5665,23),t=h(t,r,i,n,a[0],0xf4292244,6),n=h(n,t,r,i,a[7],0x432aff97,10),i=h(i,n,t,r,a[14],0xab9423a7,15),r=h(r,i,n,t,a[5],0xfc93a039,21),t=h(t,r,i,n,a[12],0x655b59c3,6),n=h(n,t,r,i,a[3],0x8f0ccc92,10),i=h(i,n,t,r,a[10],0xffeff47d,15),r=h(r,i,n,t,a[1],0x85845dd1,21),t=h(t,r,i,n,a[8],0x6fa87e4f,6),n=h(n,t,r,i,a[15],0xfe2ce6e0,10),i=h(i,n,t,r,a[6],0xa3014314,15),r=h(r,i,n,t,a[13],0x4e0811a1,21),t=h(t,r,i,n,a[4],0xf7537e82,6),n=h(n,t,r,i,a[11],0xbd3af235,10),i=h(i,n,t,r,a[2],0x2ad7d2bb,15),r=h(r,i,n,t,a[9],0xeb86d391,21),this._a=this._a+t|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+n|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},306498,(e,t,r)=>{"use strict";var i=e.r(697138).Buffer,n=e.r(828629),o="u">typeof Uint8Array,a=o&&"u">typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(e,t){if("string"==typeof e||i.isBuffer(e)||o&&e instanceof Uint8Array||a&&a(e))return n(e,t);throw TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},82875,(e,t,r)=>{"use strict";var i=e.i(494514);void 0!==i.default&&i.default.version&&0!==i.default.version.indexOf("v0.")&&(0!==i.default.version.indexOf("v1.")||0===i.default.version.indexOf("v1.8."))?t.exports=i.default:t.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return i.default.nextTick(e);case 2:return i.default.nextTick(function(){e.call(null,t)});case 3:return i.default.nextTick(function(){e.call(null,t,r)});case 4:return i.default.nextTick(function(){e.call(null,t,r,n)});default:for(o=Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return i.default.nextTick(function(){e.apply(null,o)})}}}},204261,(e,t,r)=>{var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},146802,(e,t,r)=>{t.exports=e.r(379666).EventEmitter},599863,(e,t,r)=>{var i=e.r(738254),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(o(i,r),r.Buffer=a),o(n,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},503399,(e,t,r)=>{function i(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e}
46,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===i(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===i(e)},r.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e.r(738254).Buffer.isBuffer},970809,(e,t,r)=>{"use strict";var i=e.r(599863).Buffer,n={};t.exports=function(){function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);for(var t,r,n=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,t.copy(n,r),a+=o.data.length,o=o.next;return n},e}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},973713,(e,t,r)=>{"use strict";var i=e.r(82875);function n(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,i.nextTick(n,r,e)):i.nextTick(n,r,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},503716,(e,t,r)=>{"use strict";let i=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;i.writable=e=>i(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,i.readable=e=>i(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,i.duplex=e=>i.writable(e)&&i.readable(e),i.transform=e=>i.duplex(e)&&"function"==typeof e._transform,t.exports=i},910612,(e,t,r)=>{"use strict";t.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((i=t.length)!=r.length)return!1;for(n=i;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((i=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=i;0!=n--;){var i,n,o,a=o[n];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},312336,(e,t,r)=>{BigInt.prototype.toJSON=function(){return this.toString()}},316027,e=>{"use strict";let t,r,i,n,o,a,s,l,c,d,u,h,p,f,g,m,y,b;var v,w,x,S,A,k,E,I,M,T,N,_,C,O,P,D,j,R,z,L,B,U,q,W,H,V,K,F,Y,J,G,Q,Z,X,$,ee,et,er,ei,en,eo,ea,es,el,ec,ed,eu,eh,ep,ef,eg,em,ey,eb,ev,ew,ex,eS,eA,ek,eE,eI,eM,eT,eN=e.i(380447),e_=e.i(999161);function eC(){let[e,t]=(0,e_.useState)(!0);return(0,e_.useEffect)(()=>{t(!1)},[]),e}var eO=e.i(814383),eP=e.i(128889),eD=e.i(494514);function ej(){return"u">typeof window}function eR(){return"production"}function ez(){return"development"===((ej()?window.vam:eR())||"production")}function eL(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function eB(e){return(0,e_.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,e_.useEffect)(()=>{!function(e={debug:!0},t){var r;if(!ej())return;let{beforeSend:i,src:n,dataset:o}=function(e,t){var r,i;let n=e;if(t)try{n={...null==(r=JSON.parse(t))?void 0:r.analytics,...e}}catch{}!function(e="auto"){if("auto"===e){window.vam=eR();return}window.vam=e}(n.mode);
46let o={sdkn:"@vercel/analytics"+(n.framework?`/${n.framework}`:""),sdkv:"2.0.1"};return n.disableAutoTrack&&(o.disableAutoTrack="1"),n.viewEndpoint&&(o.viewEndpoint=eL(n.viewEndpoint)),n.eventEndpoint&&(o.eventEndpoint=eL(n.eventEndpoint)),n.sessionEndpoint&&(o.sessionEndpoint=eL(n.sessionEndpoint)),ez()&&!1===n.debug&&(o.debug="false"),n.dsn&&(o.dsn=n.dsn),n.endpoint?o.endpoint=n.endpoint:n.basePath&&(o.endpoint=eL(`${n.basePath}/insights`)),{beforeSend:n.beforeSend,src:(i=n).scriptSrc?eL(i.scriptSrc):ez()?"https://va.vercel-scripts.com/v1/script.debug.js":i.basePath?eL(`${i.basePath}/insights/script.js`):"/_vercel/insights/script.js",dataset:o}}(e,t);if(window.va||(window.va=function(...e){window.vaq||(window.vaq=[]),window.vaq.push(e)}),i&&(null==(r=window.va)||r.call(window,"beforeSend",i)),document.head.querySelector(`script[src*="${n}"]`))return;let a=document.createElement("script");for(let[e,t]of(a.src=n,Object.entries(o)))a.dataset[e]=t;a.defer=!0,a.onerror=()=>{let e=ez()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${n}. ${e}`)},document.head.appendChild(a)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==eD.default&&void 0!==eD.default.env)return eD.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e},e.configString??function(){if(void 0!==eD.default&&void 0!==eD.default.env)return eD.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,e_.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}var eU=e.i(262353),eq=e.i(240748),eW=e.i(732208),eH=e.i(19670),eV=e.i(181479),eK=e.i(681830),eF=e.i(937837),eY=e.i(225974);let eJ=eD.default.env.NEXT_PUBLIC_INTERCOM_APP_ID||"",eG=!1;var eQ=e.i(859606),eZ=e.i(98858),eX=e.i(311778),e$=e.i(760079),e0=e.i(693182),e1=e.i(194833),e2=e.i(937227),e3=e.i(964927),e4=e.i(918081),e5=e.i(154519),e8=e.i(197649),e6=e.i(971857);function e7(e){let{className:t,children:r,...i}=e,n=(0,e8.clsx)("htw-flex htw-items-center htw-justify-center htw-rounded-sm htw-transition-all htw-outline-none focus:htw-outline-none","hover:htw-opacity-80","disabled:htw-opacity-30 disabled:htw-cursor-default","active:htw-scale-95",t);return e_.default.createElement("button",{type:"button",className:n,...i},r)}var e9=e.i(268898),te=e.i(982455);let tt=(0,e_.memo)(function({color:e=te.ColorPalette.Black,width:t=48,height:r=48,...i}){return e_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",height:r,width:t,...i},e_.default.createElement("path",{fill:e,d:"M9 42q-1.2 0-2.1-.9Q6 40.2 6 39V9q0-1.2.9-2.1Q7.8 6 9 6h14.55v3H9v30h14.55v3Zm24.3-9.25-2.15-2.15 5.1-5.1h-17.5v-3h17.4l-5.1-5.1 2.15-2.15 8.8 8.8Z"}))}),tr=(0,e_.memo)(function({color:e,...t}){return e_.default.createElement("svg",{viewBox:"0 0 17 14",xmlns:"http://www.w3.org/2000/svg",...t},e_.default.createElement("path",{d:"M3.33333 13.4737C2.41667 13.4737 1.63194 13.1439 0.979167 12.4842C0.326389 11.8246 0 11.0316 0 10.1053V3.36842C0 2.44211 0.326389 1.64912 0.979167 0.989474C1.63194 0.329825 2.41667 0 3.33333 0H13.3333C14.25 0 15.0347 0.329825 15.6875 0.989474C16.3403 1.64912 16.6667 2.44211 16.6667 3.36842V10.1053C16.6667 11.0316 16.3403 11.8246 15.6875 12.4842C15.0347 13.1439 14.25 13.4737 13.3333 13.4737H3.33333ZM3.33333 3.57895H13.3333C13.7361 3.57895 14.1146 3.64211 14.4687 3.76842C14.8229 3.89474 15.1389 4.07719 15.4167 4.31579V3.36842C15.4167 2.77895 15.2153 2.2807 14.8125 1.87368C14.4097 1.46667 13.9167 1.26316 13.3333 1.26316H3.33333C2.75 1.26316 2.25694 1.46667 1.85417 1.87368C1.45139 2.2807 1.25 2.77895 1.25 3.36842V4.31579C1.52778 4.07719 1.84375 3.89474 2.19792 3.76842C2.55208 3.64211 2.93056 3.57895 3.33333 3.57895ZM1.3125 6.4421L11.25 8.86316C11.3472 8.89123 11.4479 8.89474 11.5521 8.87368C11.6562 8.85263 11.7431 8.80702 11.8125 8.73684L15.1458 5.91579C14.9653 5.59298 14.7153 5.33333 14.3958 5.13684C14.0764 4.94035 13.7222 4.84211 13.3333 4.84211H3.33333C2.84722 4.84211 2.41667 4.99298 2.04167 5.29474C1.66667 5.59649 1.42361 5.97895 1.3125 6.4421Z",fill:e||te.ColorPalette.Black}))});var ti=e.i(54913),tn=e.i(867468),to=e.i(918982);let ta=(0,e_.memo)(function(e){return e_.default.createElement("svg",{viewBox:"0 0 126.61 126.61",xmlns:"http://www.w3.org/2000/svg",...e},e_.default.createElement("g",{fill:"#f3ba2f"},e_.default.createElement("path",{d:"m38.73 53.2 24.59-24.58 24.6 24.6 14.3-14.31-38.9-38.91-38.9 38.9z"}),e_.default.createElement("path",{d:"m0 63.31 14.3-14.31 14.31 14.31-14.31 14.3z"}),e_.default.createElement("path",{d:"m38.73 73.41 24.59 24.59 24.6-24.6 14.31 14.29-38.9 38.91-38.91-38.88z"}
46),e_.default.createElement("path",{d:"m98 63.31 14.3-14.31 14.31 14.3-14.31 14.32z"}),e_.default.createElement("path",{d:"m77.83 63.3-14.51-14.52-10.73 10.73-1.24 1.23-2.54 2.54 14.51 14.5 14.51-14.47z"})))}),ts=(0,e_.memo)(function(e){return e_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"400",height:"400",fill:"none",viewBox:"0 0 400 400",...e},e_.default.createElement("clipPath",{id:"walletConnectClip"},e_.default.createElement("path",{d:"M0 0h400v400H0z"})),e_.default.createElement("g",{clipPath:"url(#walletConnectClip)"},e_.default.createElement("circle",{cx:"200",cy:"200",r:"199.5",fill:"#3396ff",stroke:"#66b1ff"}),e_.default.createElement("path",{fill:"#fff",d:"M122.519 148.965c42.791-41.729 112.171-41.729 154.962 0l5.15 5.022a5.25 5.25 0 0 1 0 7.555l-17.617 17.18a2.79 2.79 0 0 1-3.874 0l-7.087-6.911c-29.853-29.111-78.253-29.111-108.106 0l-7.59 7.401a2.79 2.79 0 0 1-3.874 0l-17.617-17.18a5.25 5.25 0 0 1 0-7.555zm191.397 35.529 15.679 15.29a5.25 5.25 0 0 1 0 7.555l-70.7 68.944c-2.139 2.087-5.608 2.087-7.748 0l-50.178-48.931a1.394 1.394 0 0 0-1.937 0l-50.178 48.931c-2.139 2.087-5.608 2.087-7.748 0l-70.701-68.945a5.25 5.25 0 0 1 0-7.555l15.679-15.29c2.14-2.086 5.609-2.086 7.748 0l50.179 48.932a1.394 1.394 0 0 0 1.937 0l50.177-48.932c2.139-2.087 5.608-2.087 7.748 0l50.179 48.932a1.394 1.394 0 0 0 1.937 0l50.179-48.931c2.139-2.087 5.608-2.087 7.748 0"})))});function tl({walletDetails:e,size:t}){let r=e.logoUrl?.trim(),i=e.name?.toLowerCase();return r?e_.default.createElement("img",{src:r,width:t,height:t}):"walletconnect"===i?e_.default.createElement(ts,{width:t,height:t}):"binance wallet"===i?e_.default.createElement(ta,{width:t,height:t}):e_.default.createElement(tr,{width:t,height:t})}var tc=e.i(451944),td=e.i(179684);let tu=tn.widgetLogger.child({module:"walletIntegrations/AccountList"});function th({multiProvider:e,onClickConnectWallet:t,onCopySuccess:r,className:i,chainName:n}){let{readyAccounts:o}=(0,e$.useAccounts)(e),a=(0,td.useDisconnectFns)(),s=(0,e0.useWalletDetails)(),l=async e=>{try{let t=a[e];t&&await t()}catch(e){tu.error("Error disconnecting wallet",e)}},c=async()=>{for(let e of(0,e6.objKeys)(a))await l(e)};return e_.default.createElement("div",{className:(0,e8.clsx)("htw-space-y-2",i)},o.map((e,t)=>e_.default.createElement(tp,{key:t,account:e,walletDetails:s[e.protocol],onCopySuccess:r,onClickDisconnect:()=>l(e.protocol),chainName:n})),e_.default.createElement(e7,{onClick:t,className:(0,e8.clsx)(tf.btn,"htw-py-2 htw-px-2.5")},e_.default.createElement(tr,{width:18,height:18}),e_.default.createElement("div",{className:"htw-ml-2 htw-text-sm"},"Connect wallet")),e_.default.createElement(e7,{onClick:c,className:(0,e8.clsx)(tf.btn,"htw-py-2 htw-px-2.5")},e_.default.createElement(tt,{width:18,height:18}),e_.default.createElement("div",{className:"htw-ml-2 htw-text-sm"},"Disconnect all wallets")))}function tp({account:e,onCopySuccess:t,walletDetails:r,onClickDisconnect:i,className:n,chainName:o,...a}){let s=(0,tc.getAddressFromAccountAndChain)(e,o),l=async()=>{await (0,to.tryClipboardSet)(s),t?.()};return e_.default.createElement("div",{className:"htw-relative"},e_.default.createElement(e7,{onClick:l,className:(0,e8.clsx)(tf.btn,"htw-py-2 htw-pl-1 htw-pr-3",n),...a},e_.default.createElement("div",{className:"htw-shrink-0 htw-overflow-hidden htw-rounded-full"},e_.default.createElement(tl,{walletDetails:r,size:38})),e_.default.createElement("div",{className:"htw-mx-3 htw-flex htw-shrink htw-flex-col htw-items-start htw-overflow-hidden"},e_.default.createElement("div",{className:"htw-text-sm htw-font-normal htw-text-gray-800"},r.name||"Wallet"),e_.default.createElement("div",{className:"htw-w-full htw-truncate htw-text-left htw-text-xs"},s))),e_.default.createElement("div",{className:"htw-absolute htw-right-1 htw-top-1/2 htw--translate-y-1/2 htw-rounded-full"},e_.default.createElement(e9.IconButton,{onClick:i,title:"Disconnect",className:"hover:htw-rotate-90"},e_.default.createElement(ti.XCircleIcon,{width:15,height:15}))))}let tf={btn:"htw-flex htw-w-full htw-items-center all:htw-justify-start htw-rounded-sm htw-text-sm hover:htw-bg-gray-200 all:hover:htw-opacity-100"};var tg=e.i(509647),tm=e.i(336204),ty=e.i(811421),tb=e.i(783134);let tv={src:e.i(409492).default,width:15,height:25,blurWidth:0,blurHeight:0};var tw=e.i(948294),tx=e.i(829918),tS=e.i(306876),tA=e.i(853581),tk=e.i(994647),tE=e.i(509972);function tI({onClickConnectWallet:e,isOpen:t,onClose:r}){let i=(0,e_.useRef)(null),[n,o]=(0,e_.useState)(!1),[a,s]=(0,e_.useState)(()=>Date.now()),l=(0,e1.useMultiProvider)(),{transactionHistory:c,originChainName:d,knownTokens:u}=(0,e3.useStore)(e=>({transactionHistory:e.transactionHistory,originChainName:e.originChainName,knownTokens:e.knownTokens})),h=(0,e3.useStore)(e=>e.setSelectedTransactionId);(0,e$.useAccounts)(l,eK.config.addressBlacklist);let p=(0,e_.useMemo)(()=>c.filter(e=>e.type===e3.TransactionHistoryItemType.Transfer).sort((e,t)=>
46t.data.timestamp-e.data.timestamp),[c]);return(0,e_.useEffect)(()=>{o(t)},[t]),(0,e_.useEffect)(()=>{if(n)return function({onTick:e,intervalMs:t=3e4,documentObject:r=document,timerApi:i=globalThis}){e();let n=i.setInterval(e,t),o=()=>{"visible"===r.visibilityState&&e()};return r.addEventListener("visibilitychange",o),()=>{i.clearInterval(n),r.removeEventListener("visibilitychange",o)}}({onTick:()=>s(Date.now())})},[n]),(0,eN.jsxs)("div",{className:`sidebar-menu fixed right-0 top-0 h-full w-88 transform bg-white/95 shadow-lg transition-transform duration-100 ease-in dark:border-l dark:border-primary-300/35 dark:bg-surface/95 ${n?"z-10 translate-x-0 dark:shadow-[-8px_0_32px_rgba(0,0,0,0.45)]":"z-0 translate-x-full"}`,children:[n&&(0,eN.jsx)("button",{className:"sidebar-menu-collapse absolute left-0 top-0 flex h-full w-9 -translate-x-full items-center justify-center rounded-l bg-accent-50/30 backdrop-blur-[1.5px] transition-all dark:border-r dark:border-primary-300/25 dark:bg-surface/70",onClick:()=>r(),children:(0,eN.jsx)(tg.default,{src:tv,width:15,height:24,alt:"",className:"dark:opacity-85 dark:brightness-0 dark:invert"})}),(0,eN.jsxs)("div",{ref:i,className:"flex h-full w-full flex-col overflow-y-auto",children:[(0,eN.jsx)("div",{className:"sidebar-menu-header w-full bg-accent-gradient px-3.5 py-2 text-base font-normal tracking-wider text-white shadow-accent-glow dark:!shadow-none",children:"Connected Wallets"}),(0,eN.jsx)(th,{multiProvider:l,onClickConnectWallet:e,onCopySuccess:()=>{eq.toast.success("Address copied to clipboard",{autoClose:2e3})},className:"",chainName:d}),(0,eN.jsx)("div",{className:"sidebar-menu-header flex w-full items-center justify-between bg-accent-gradient px-3.5 py-2 shadow-accent-glow dark:!shadow-none",children:(0,eN.jsx)("span",{className:"text-base font-normal tracking-wider text-white",children:"Transaction History"})}),(0,eN.jsx)("div",{className:"flex grow flex-col pb-4",children:(0,eN.jsxs)("div",{className:"sidebar-menu-list flex w-full grow flex-col divide-y",children:[0===p.length&&(0,eN.jsx)("div",{className:"sidebar-menu-empty px-3.5 py-6 text-center text-sm text-gray-500 dark:text-foreground-primary",children:"No transactions yet"}),p.map(e=>(0,eN.jsx)(tM,{item:e,onClick:()=>h(e.id),multiProvider:l,knownTokens:u,nowMs:a},e.id))]})})]})]})}function tM({item:e,onClick:t,multiProvider:r,knownTokens:i,nowMs:n}){var o;let a=e.data,s=(0,tA.getTokenByKeyFromMap)(i,(0,tk.tokenKey)(a.srcChain,a.srcToken)),l=(0,tA.getTokenByKeyFromMap)(i,(0,tk.tokenKey)(a.dstChain,a.dstToken)),c=s?.chainName??a.srcTokenMeta?.chainName??r.tryGetChainName(a.srcChain)??"",d=l?.chainName??a.dstTokenMeta?.chainName??r.tryGetChainName(a.dstChain)??"",u=s?.decimals??a.srcTokenMeta?.decimals,h=l?.decimals??a.dstTokenMeta?.decimals,p=tT(a.amountIn,u),f=tT(a.amountOut,h),g=s?.symbol??a.srcTokenMeta?.symbol??"Unknown token",m=l?.symbol??a.dstTokenMeta?.symbol;return(0,eN.jsxs)("button",{onClick:t,className:`${tN.btn} justify-between py-3`,children:[(0,eN.jsxs)("div",{className:"flex gap-2.5",children:[(0,eN.jsx)("div",{className:"flex h-[2.25rem] w-[2.25rem] items-center justify-center",children:s?(0,eN.jsx)(ty.TokenChainIcon,{token:s,size:32}):(0,eN.jsx)(tm.ChainLogo,{chainName:c,size:32})}),(0,eN.jsxs)("div",{className:"flex flex-col",children:[(0,eN.jsxs)("div",{className:"flex items-baseline",children:[p&&(0,eN.jsx)("span",{className:"sidebar-menu-token-text text-sm font-normal text-gray-800 dark:text-foreground-primary",children:p}),(0,eN.jsx)("span",{className:`sidebar-menu-token-text text-sm font-normal text-gray-800 dark:text-foreground-primary ${p?"ml-1":""}`,children:g}),m&&(0,eN.jsxs)(eN.Fragment,{children:[(0,eN.jsx)(tg.default,{className:"sidebar-menu-arrow mx-1 dark:opacity-85 dark:brightness-0 dark:invert",src:tb.default,width:10,height:10,alt:""}),f&&(0,eN.jsx)("span",{className:"sidebar-menu-token-text text-sm font-normal text-gray-800 dark:text-foreground-primary",children:f}),(0,eN.jsx)("span",{className:"sidebar-menu-token-text ml-1 text-sm font-normal text-gray-800 dark:text-foreground-primary",children:m})]})]}),(0,eN.jsxs)("div",{className:"mt-1 flex h-4 items-center",children:[(0,eN.jsx)("span",{className:"sidebar-menu-route-text text-xxs font-normal leading-4 tracking-wide text-gray-900 dark:text-foreground-primary",children:(0,tS.getChainDisplayName)(r,c,!0)}),(0,eN.jsx)(tg.default,{className:"sidebar-menu-arrow mx-1 dark:opacity-85 dark:brightness-0 dark:invert",src:tb.default,width:10,height:10,alt:""}),(0,eN.jsx)("span",{className:"sidebar-menu-route-text text-xxs font-normal leading-4 tracking-wide text-gray-900 dark:text-foreground-primary",children:(0,tS.getChainDisplayName)(r,d,!0)}),(0,eN.jsx)("span",{className:"sidebar-menu-type-badge ml-1.5 inline-flex h-3.5 shrink-0 items-center rounded border border-accent-500/35 bg-accent-50/25 px-1.5 text-[0.55rem] font-medium leading-none text-accent-500 dark:border-primary-300/45 dark:bg-primary-300/15 dark:text-foreground-primary",children:"Transfer"})]}
46),(0,eN.jsx)("div",{className:"sidebar-menu-time mt-1 w-full text-left text-xxs font-normal text-gray-500 dark:text-foreground-primary",children:(0,tw.formatTransferHistoryTimestamp)(a.timestamp,n)})]})]}),(0,eN.jsx)("div",{className:"ml-2 flex shrink-0 items-center",children:tE.FinalTransferStatuses.includes(a.status)?(0,eN.jsx)("span",{className:"text-xs text-gray-500 dark:text-foreground-secondary",children:(o=a.status)===tE.TransferStatus.ConfirmedDestination?"Done":o===tE.TransferStatus.FailedRecovered?"Recovered":o===tE.TransferStatus.DestTransferFailed||o===tE.TransferStatus.DestFailed?"Stranded":"Failed"}):(0,eN.jsx)(e5.SpinnerIcon,{className:"-ml-1 mr-3 h-5 w-5"})})]})}function tT(e,t){if(null==t)return"";try{return(0,tx.formatBalance)(BigInt(e),t)}catch{return""}}let tN={btn:"sidebar-menu-item flex w-full cursor-pointer items-center px-3.5 py-2 text-sm transition-all duration-500 hover:bg-gray-200 active:scale-95 dark:hover:bg-primary-300/10"};var t_=e.i(232101);let tC=(0,e_.memo)(function(e){return e_.default.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1079.72 1080",...e},e_.default.createElement("polygon",{style:{fill:"#121212"},points:"612.33 247.34 547.82 247.34 477.26 247.34 360 589.53 431.41 589.53 526.38 310.37 560.76 310.37 655.72 589.53 524.82 589.53 431.41 589.53 409.31 652.56 546.1 652.56 677.01 652.56 738.4 832.66 812.08 832.66 612.33 247.34"}),e_.default.createElement("polygon",{style:{fill:"#121212"},points:"276.69 832.66 347.91 832.66 409.31 652.56 338.4 652.56 276.69 832.66"}),e_.default.createElement("polygon",{style:{fill:"#121212"},points:"289.24 589.53 267.64 652.56 338.4 652.56 360 589.53 289.24 589.53"}))}),tO=(0,e_.memo)(function(e){return e_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1024 1024",...e},e_.default.createElement("path",{fill:"#171717",fillRule:"evenodd",d:"M512 1a511 511 0 1 1 0 1022A511 511 0 0 1 512 1",clipRule:"evenodd"}),e_.default.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M511 217.2a294.8 294.8 0 1 1 0 589.6 294.8 294.8 0 0 1 0-589.6",clipRule:"evenodd"}),e_.default.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M520 88.4c-4-3.7-6.1-3.8-6.5-3.8-.3 0-2.4 0-6.5 3.8a77.3 77.3 0 0 0-14.5 20.6c-10.7 20.4-21 51.2-29.8 91A1204 1204 0 0 0 440 360.4c23.9 11.6 48.5 24.2 73.5 37.7 25-13.5 49.7-26 73.6-37.7-5-61.1-12.8-115.7-22.8-160.4-8.8-39.8-19-70.6-29.8-91A77.3 77.3 0 0 0 520 88.4m-27.4 321.2a1837 1837 0 0 0-54.2-27.7c-1.4 19.7-2.4 40-3.2 60.8a2039 2039 0 0 1 57.4-33.1m-72-58.4c14.4-167.6 50.6-286.6 93-286.6 42.3 0 78.4 119 92.8 286.6 152.5-71.4 273.7-99.6 294.8-63 21.2 36.7-63.8 127.5-202 223.8 138.2 96.3 223.2 187 202 223.7-21.1 36.7-142.3 8.5-294.8-63-14.4 167.7-50.5 286.7-92.9 286.7-42.3 0-78.5-119-92.9-286.6-152.4 71.4-273.6 99.6-294.8 63-21.2-36.7 63.8-127.5 202-223.8-138.2-96.3-223.2-187-202-223.7s142.4-8.5 294.8 63ZM345.4 500c-50.5-34.9-94-69-127.7-100-30-27.5-51.6-51.7-63.9-71.2a77.3 77.3 0 0 1-10.6-22.9c-1.2-5.4-.3-7.2 0-7.5 0-.3 1.2-2 6.5-3.7a77.4 77.4 0 0 1 25.1-2.3c23 1 54.9 7.5 93.7 19.7 43.7 13.8 95 34.3 150.5 60.6q-3 39.75-4.2 82.5a1906 1906 0 0 0-69.4 44.8m0 24.2c-50.5 34.9-94 69-127.7 100-30 27.5-51.6 51.7-63.9 71.2a77.3 77.3 0 0 0-10.6 22.9c-1.2 5.4-.3 7.2 0 7.5 0 .3 1.2 2 6.5 3.7a77.4 77.4 0 0 0 25.1 2.3c23-1 54.9-7.5 93.7-19.7 43.7-13.8 95-34.3 150.5-60.6q-3-39.75-4.2-82.5a1861 1861 0 0 1-69.4
46-44.8m68.9 21c-17.7-11-34.7-22-51.1-33.1 16.4-11 33.4-22 51.1-33a2032 2032 0 0 0 0 66Zm20.2 12.5a2007 2007 0 0 1 0-91.2 2008 2008 0 0 1 79-45.5 2008 2008 0 0 1 79 45.5 2006 2006 0 0 1 0 91.2 2008 2008 0 0 1-79 45.5 2008 2008 0 0 1-79-45.5m.7 23.7c.8 20.8 1.8 41.1 3.2 60.8 17.7-8.7 35.8-18 54.2-27.7a2036 2036 0 0 1-57.4-33Zm78.3 44.6c-25 13.5-49.6 26-73.5 37.7 5 61.1 12.8 115.7 22.7 160.4 8.8 39.8 19 70.6 29.8 91a77.3 77.3 0 0 0 14.5 20.6c4 3.7 6.2 3.8 6.5 3.8.4 0 2.5 0 6.5-3.8a77.3 77.3 0 0 0 14.5-20.6c10.8-20.4 21-51.2 29.8-91 10-44.7 17.8-99.3 22.8-160.4-24-11.6-48.6-24.2-73.6-37.7m94.6 25.5A1206 1206 0 0 0 758.5 712c38.9 12.2 70.7 18.7 93.7 19.7 11.5.4 19.8-.6 25.2-2.3 5.2-1.6 6.3-3.4 6.5-3.7s1.2-2.1 0-7.5a77.3 77.3 0 0 0-10.7-22.9c-12.3-19.5-33.8-43.7-63.9-71.3-33.7-31-77.1-65-127.7-99.9-22 15-45.2 30-69.4 44.8-.8 28.5-2.2 56-4.1 82.5ZM681.6 500c50.6-34.9 94-69 127.7-100 30-27.5 51.6-51.7 64-71.2a77.3 77.3 0 0 0 10.6-22.9c1.2-5.4.2-7.2 0-7.5s-1.3-2-6.5-3.7a77.5 77.5 0 0 0-25.2-2.3c-23 1-54.8 7.5-93.7 19.7-43.7 13.8-95 34.3-150.4 60.6 2 26.5 3.3 54 4.1 82.5a1906 1906 0 0 1 69.4 44.8m-68.9-21c17.7 11 34.8 22.1 51.1 33.1-16.3 11-33.4 22-51 33a2042 2042 0 0 0 0-66Zm-20.9-36.2c-.7-20.8-1.8-41.1-3.1-60.8-17.7 8.7-35.9 18-54.2 27.7a2030 2030 0 0 1 57.3 33ZM588.7 642c-17.7-8.7-35.9-18-54.2-27.7a2030 2030 0 0 0 57.3-33c-.7 20.7-1.8 41-3.1 60.7",clipRule:"evenodd",opacity:"0.7"}),e_.default.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M227.5 386.7a31.5 31.5 0 1 1 0 63 31.5 31.5 0 0 1 0-63M727.6 279a31.5 31.5 0 1 1 0 62.9 31.5 31.5 0 0 1 0-63ZM450.1 773a31.5 31.5 0 1 1 0 63 31.5 31.5 0 0 1 0-63M511.8 458.5a53.3 53.3 0 1 1 0 106.6 53.3 53.3 0 0 1 0-106.6",clipRule:"evenodd"}))}),tP=(0,e_.memo)(function(e){return e_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",viewBox:"-150 0 1100 1277.4",...e},e_.default.createElement("g",{fillRule:"nonzero"},e_.default.createElement("path",{fill:"#343434",d:"m392.1 0-8.6 29.1v844.6l8.6 8.6 392-231.8z"}),e_.default.createElement("path",{fill:"#8C8C8C",d:"M392.1 0 0 650.5l392.1 231.8v-410z"}),e_.default.createElement("path",{fill:"#3C3C3B",d:"m392.1 956.5-4.9 5.9v300.9l4.9 14.1 392.3-552.5z"}),e_.default.createElement("path",{fill:"#8C8C8C",d:"M392.1 1277.4V956.5L0 724.9z"}),e_.default.createElement("path",{fill:"#141414",d:"m392.1 882.3 392-231.8-392-178.2z"}),e_.default.createElement("path",{fill:"#393939",d:"m0 650.5 392.1 231.8v-410z"})))}),tD=(0,e_.memo)(function(e){return e_.default.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},e_.default.createElement("circle",{cx:"100",cy:"100",r:"100",fill:"#052CC0"}),e_.default.createElement("path",{d:"M86.9684 148C85.1094 148 83.3419 147.111 82.2338 145.581L59.0921 113.497H44V101.816H62.0775C63.9549 101.816 65.7132 102.713 66.8121 104.234L85.723 130.446L114.579 64.4998C115.513 62.3743 117.61 61 119.927 61H156V72.6812H123.746L92.3166 144.5C91.4741 146.424 89.67 147.743 87.582 147.963C87.3897 147.991 87.1791 148 86.9684 148Z",fill:"#00C389"}))}),tj=(0,e_.memo)(function(e){return e_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 397.7 311.7",...e},e_.default.createElement("linearGradient",{id:"solGrad1",x1:"360.88",x2:"141.21",y1:"351.46",y2:"-69.29",gradientTransform:"matrix(1 0 0 -1 0 314)",gradientUnits:"userSpaceOnUse"},e_.default.createElement("stop",{offset:"0",stopColor:"#00ffa3"}),e_.default.createElement("stop",{offset:"1",stopColor:"#dc1fff"})),e_.default.createElement("path",{fill:"url(#solGrad1)",d:"M64.6 237.9c2.4-2.4 5.7-3.8 9.2-3.8h317.4c5.8 0 8.7 7 4.6 11.1l-62.7 62.7c-2.4 2.4-5.7 3.8-9.2 3.8H6.5c-5.8 0-8.7-7-4.6-11.1z"}),e_.default.createElement("linearGradient",{id:"solGrad2",x1:"264.83",x2:"45.16",y1:"401.6",y2:"-19.15",gradientTransform:"matrix(1 0 0 -1 0 314)",gradientUnits:"userSpaceOnUse"},e_.default.createElement("stop",{offset:"0",stopColor:"#00ffa3"}),e_.default.createElement("stop",{offset:"1",stopColor:"#dc1fff"})),e_.default.createElement("path",{fill:"url(#solGrad2)",d:"M64.6 3.8C67.1 1.4 70.4 0 73.8 0h317.4c5.8 0 8.7 7 4.6 11.
461l-62.7 62.7c-2.4 2.4-5.7 3.8-9.2 3.8H6.5c-5.8 0-8.7-7-4.6-11.1z"}),e_.default.createElement("linearGradient",{id:"solGrad3",x1:"312.55",x2:"92.88",y1:"376.69",y2:"-44.06",gradientTransform:"matrix(1 0 0 -1 0 314)",gradientUnits:"userSpaceOnUse"},e_.default.createElement("stop",{offset:"0",stopColor:"#00ffa3"}),e_.default.createElement("stop",{offset:"1",stopColor:"#dc1fff"})),e_.default.createElement("path",{fill:"url(#solGrad3)",d:"M333.1 120.1c-2.4-2.4-5.7-3.8-9.2-3.8H6.5c-5.8 0-8.7 7-4.6 11.1l62.7 62.7c2.4 2.4 5.7 3.8 9.2 3.8h317.4c5.8 0 8.7-7 4.6-11.1z"}))}),tR=(0,e_.memo)(function(e){return e_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 160 160",...e},e_.default.createElement("path",{fill:"#0c0c4f",stroke:"#ec796b",strokeWidth:"4",d:"M2 79a77 77 0 1 0 154 0A77 77 0 0 0 2 79z"}),e_.default.createElement("g",{fillRule:"evenodd"},e_.default.createElement("path",{fill:"#fafafa",d:"m44.2 60.4 1.9-6a4 4 0 0 1 2.6-2.6l6-1.9a.9.9 0 0 0 0-1.7l-6-2a4 4 0 0 1-2.5-2.5l-1.9-6a.9.9 0 0 0-1.7 0l-2 6a4 4 0 0 1-2.5 2.5l-6 1.9a.9.9 0 0 0 0 1.7l6 2a4 4 0 0 1 2.5 2.5l1.8 6c.3 1 1.5 1 1.8 0z"}),e_.default.createElement("path",{fill:"#ec796b",d:"M139.8 56.9a17.7 17.7 0 0 0-10.1-5 35 35 0 0 0-11.6 0 55.2 55.2 0 0 0-20.6 8.4c-3.1 2-5.8 4.1-8.6 6.4l-3.8 3.5-3.5 3.5c-3.7 4-7.5 7.5-11 10.5-3.7 3-7 5.2-10.3 6.8a27.8 27.8 0 0 1-11.6 2.6c-4.5.2-10-.7-15.8-2-5.8-1.4-12-3.3-18.8-5 2.4 6.6 6 12.5 10.6 17.9a50 50 0 0 0 18 13.2 43.6 43.6 0 0 0 25.4 2.6A55 55 0 0 0 90.6 110c6.2-4.7 11.2-10 15.5-15.6a106 106 0 0 0 2.6-3.6l2.3-3.5c1.6-2.1 3.1-4.5 4.7-6.7 3.2-4.4 6.3-8.8 9.9-12.9a55.1 55.1 0 0 1 9.7-8.6 17.5 17.5 0 0 1 4.5-2.1Z"}),e_.default.createElement("path",{fill:"#fafafa",d:"M139.8 56.9a35.1 35.1 0 0 0-39.3-21.2 41 41 0 0 0-12.8 4.8 53.4 53.4 0 0 0-14.4 12.3L70 57.2l-5.4 7.2c-6.8 9.1-14.2 19.8-26.2 23-11.8 3.1-17 .3-24.2-.8a39 39 0 0 0 18.3 21 36 36 0 0 0 6.1 2.4c4.3 1.2 9.2 1.6 13.9 1 4.7-.7 9.2-2.2 13.1-4.1 4-2 7.4-4.4 10.5-7a84 84 0 0 0 15-16.3 116.2 116.2 0 0 0 5.5-8.6l2-3.5a85.9 85.9 0 0 1 1.9-3c2.5-3.7 5-6.8 8-9 3-2.4 7-4.1 12.6-4.5 5.5-.4 11.9.3 18.8 1.9Z"}),e_.default.createElement("path",{fill:"#ec796b",d:"M110 113.1c0 5 4.1 9 9 9a9 9 0 1 0 0-18c-4.9 0-9 4-9 9z"})))}),tz=(0,e_.memo)(function(e){return e_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",...e},e_.default.createElement("path",{fill:"#ff060a",d:"M61.55,19.28c-3-2.77-7.15-7-10.53-10l-.2-.14a3.82,3.82,0,0,0-1.11-.62l0,0C41.56,7,3.63-.09,2.89,0a1.4,1.4,0,0,0-.58.22L2.12.37a2.23,2.23,0,0,0-.52.84l-.05.13v.71l0,.11C5.82,14.05,22.68,53,26,62.14c.2.62.58,1.8,1.29,1.86h.16c.38,0,2-2.14,2-2.14S58.41,26.74,61.34,23a9.46,9.46,0,0,0,1-1.48A2.41,2.41,0,0,0,61.55,19.28ZM36.88,23.37,49.24,13.12l7.25,6.68Zm-4.8-.67L10.8,5.26l34.43,6.35ZM34,27.27l21.78-3.51-24.9,30ZM7.91,7,30.3,26,27.06,53.78Z"}))}),tL={[eX.ProtocolType.Ethereum]:tP,[eX.ProtocolType.Sealevel]:tj,[eX.ProtocolType.Cosmos]:tO,[eX.ProtocolType.CosmosNative]:tO,[eX.ProtocolType.Starknet]:tR,[eX.ProtocolType.Radix]:tD,[eX.ProtocolType.Aleo]:tC,[eX.ProtocolType.Tron]:tz};var tB=e.i(205006);let tU=[{protocol:eX.ProtocolType.Ethereum,title:"EVM",subtitle:"an EVM"},{protocol:eX.ProtocolType.Sealevel,title:"Solana",subtitle:"a Solana"},{protocol:eX.ProtocolType.Cosmos,title:"Cosmos",subtitle:"a Cosmos"},{protocol:eX.ProtocolType.Starknet,title:"Starknet",subtitle:"a Starknet"},{protocol:eX.ProtocolType.Radix,title:"Radix",subtitle:"a Radix"},{protocol:eX.ProtocolType.Tron,title:"Tron",subtitle:"a Tron"},{protocol:eX.ProtocolType.Aleo,title:"Aleo",subtitle:"an Aleo",logoClassName:"wallet-protocol-aleo-logo"}];function tq({isOpen:e,close:t,protocols:r,onProtocolSelected:i}){let n=(0,tB.useConnectFns)();return(0,eN.jsx)(t_.Modal,{isOpen:e,close:t,dialogClassname:"wallet-protocol-dialog",panelClassname:"wallet-protocol-modal max-w-[44rem] p-4 dark:border dark:border-edge/60 dark:bg-surface dark:text-foreground-primary dark:shadow-[0_16px_40px_rgba(0,0,0,0.45)]",children:(0,eN.jsx)("div",{className:"wallet-protocol-grid flex flex-wrap justify-center gap-2.5 py-2",children:tU.filter(e=>{let t;return t=e.protocol,!r||r.includes(t)}).map(e=>{let r=tL[e.protocol];return r?(0,eN.jsxs)("button",{type:"button",onClick:()=>{var r;let o;
46!(o=n[r=e.protocol])?console.error(`No wallet connect function configured for protocol: ${r}`):(t(),i?.(r),o())},className:"wallet-protocol-card flex basis-[calc(50%-0.5rem)] flex-col items-center space-y-2.5 rounded-lg border border-gray-200 py-3.5 transition-all hover:bg-gray-100 active:scale-95 sm:basis-[calc(33.333%-0.5rem)] dark:border-edge/60 dark:bg-background/80 dark:hover:bg-surface/85",children:[(0,eN.jsx)(r,{width:34,height:34,className:(0,e8.default)(e.logoClassName,e.protocol===eX.ProtocolType.Aleo&&"dark:text-foreground-primary dark:[&_polygon]:fill-current")}),(0,eN.jsx)("div",{className:"wallet-protocol-title tracking-wide text-gray-800 dark:text-foreground-primary",children:e.title}),(0,eN.jsx)("div",{className:"wallet-protocol-subtitle text-sm text-gray-500 dark:text-foreground-secondary",children:`Connect to ${e.subtitle}-compatible wallet`})]},e.protocol):(eY.logger.error("Missing protocol logo mapping for",e.protocol),null)})})})}let tW=(0,e_.memo)(function({...e}){return(0,eN.jsxs)("svg",{viewBox:"0 0 219 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,eN.jsx)("path",{d:"M18.6184 1.34497L21.4768 8.5871C21.5798 8.84574 21.5798 9.13026 21.4768 9.3889L18.6184 16.631C18.3094 17.4328 17.5111 17.976 16.6613 17.976H9.9401V17.1742H11.3049C12.5668 17.1742 13.6741 16.3983 14.1376 15.2343L16.4552 9.3889H11.5367L8.67828 16.631C8.36926 17.4328 7.57096 17.976 6.72116 17.976H0V17.1742H1.36483C2.62666 17.1742 3.73398 16.3983 4.1975 15.2343L6.51515 9.3889C6.61815 9.13026 6.61815 8.84574 6.51515 8.5871L4.1975 2.74166C3.73398 1.57775 2.60091 0.801807 1.36483 0.801807H0V0H6.72116C7.59671 0 8.36926 0.54316 8.67828 1.34497L11.5367 8.5871H16.4552L14.1376 2.74166C13.6741 1.57775 12.541 0.801807 11.3049 0.801807H9.9401V0H16.6613C17.5368 0 18.3094 0.54316 18.6184 1.34497ZM34.4298 14.1222C35.0994 14.1222 35.6659 13.9928 36.1552 13.7342C36.6445 13.4755 37.005 13.0876 37.2883 12.5703C37.5458 12.053 37.7003 11.3805 37.7003 10.5787H36.5157C36.5157 11.4839 36.3612 12.1047 36.0264 12.4668C35.6917 12.8289 35.1766 13.01 34.4556 13.01H34.4041C33.683 13.01 33.168 12.8289 32.8332 12.4668C32.4985 12.1047 32.344 11.4581 32.344 10.5787V7.52664C32.344 6.64724 32.4985 6.02649 32.8332 5.63852C33.168 5.27641 33.683 5.09536 34.4041 5.09536H34.4556C35.1766 5.09536 35.6917 5.27641 36.0264 5.63852C36.3612 6.00062 36.5157 6.62138 36.5157 7.52664H37.7003C37.7003 6.72484 37.5715 6.07822 37.2883 5.53506C37.0307 5.01776 36.6445 4.62979 36.1552 4.37114C35.6659 4.1125 35.0994 3.98317 34.4298 3.98317H34.3783C33.7088 3.98317 33.1423 4.1125 32.653 4.37114C32.1637 4.62979 31.8032 5.01776 31.5199 5.53506C31.2624 6.05235 31.1079 6.72484 31.1079 7.52664V10.5787C31.1079 11.3805 31.2366 12.053 31.5199 12.5703C31.7774 13.0876 32.1637 13.5014 32.653 13.7342C33.1423 13.9928 33.7088 14.1222 34.3783 14.1222H34.4298ZM43.0566 14.1222C43.7262 14.1222 44.2927 13.9928 44.782 13.7342C45.2712 13.4755 45.6318 13.0876 45.915 12.5703C46.1726 12.053 46.3271 11.3805 46.3271 10.5787V7.52664C46.3271 6.72484 46.1983 6.07822 45.915 5.53506C45.6575 5.01776 45.2712 4.62979 44.782 4.37114C44.2927 4.1125 43.7262 3.98317 43.0566 3.98317H43.0051C42.3356 3.98317 41.769 4.1125 41.2798 4.37114C40.7905 4.62979 40.43 5.01776 40.1467 5.53506C39.8892 6.05235 39.7347 6.72484 39.7347 7.52664V10.5787C39.7347 11.3805 39.8634 12.053 40.1467 12.5703C40.4042 13.0876 40.7905 13.5014 41.2798 13.7342C41.769 13.9928 42.3356 14.1222 43.0051 14.1222H43.0566ZM43.0051 13.0358C42.2841 13.0358 41.769 12.8548 41.4343 12.4927C41.0995 12.1306 40.945 11.4839 40.945 10.6045V7.55251C40.945 6.67311 41.0995 6.05235 41.4343 5.66438C41.769 5.30227 42.2841 5.12122 43.0051 5.12122H43.0566C43.7777 5.12122 44.2927 5.30227 44.6275 5.66438C44.9622 6.02649 45.1167 6.64724 45.1167 7.55251V10.6045C45.1167 11.5098 44.9622 12.1306 44.6275 12.4927C44.2927 12.8548 43.7777 13.0358 43.0566 13.0358H43.0051ZM49.752 13.9928V5.92303H49.8808L52.9452 13.9928H54.6963V4.13836H53.5375V12.2082H53.4087L50.3443 4.13836H48.5932V13.9928H49.752ZM58.3788 13.9928V5.92303H58.5076L61.572 13.9928H63.3231V4.13836H62.1643V12.2082H62.0355L58.9711 4.13836H57.22V13.9928H58.3788ZM72.1301 13.9928V12.8806H66.8253L67.2888 13.3203V9.23372L66.8253 9.62169H71.0228V8.5095H66.8253L67.2888 8.89747V4.83671L66.8253 5.27641H72.1301V4.16422H66.1043V14.0187H72.1301V13.9928ZM77.538 14.1222C78.2075 14.1222 78.774 13.9928 79.2633 13.7342C79.7526 13.4755 80.1131 13.0876 80.3964 12.5703C80.6539 12.053 80.8084 11.3805 80.8084 10.5787H79.6238C79.6238 11.4839 79.4693 12.1047 79.1346 12.4668C78.7998 12.8289 78.2848 13.01 77.5637 13.01H77.5122C76.7912 13.01 76.2761 12.8289 75.9414 12.4668C75.6066 12.1047 75.4521 11.4581 7
465.4521 10.5787V7.52664C75.4521 6.64724 75.6066 6.02649 75.9414 5.63852C76.2761 5.27641 76.7912 5.09536 77.5122 5.09536H77.5637C78.2848 5.09536 78.7998 5.27641 79.1346 5.63852C79.4693 6.00062 79.6238 6.62138 79.6238 7.52664H80.8084C80.8084 6.72484 80.6797 6.07822 80.3964 5.53506C80.1389 5.01776 79.7526 4.62979 79.2633 4.37114C78.774 4.1125 78.2075 3.98317 77.538 3.98317H77.4865C76.8169 3.98317 76.2504 4.1125 75.7611 4.37114C75.2718 4.62979 74.9113 5.01776 74.628 5.53506C74.3705 6.05235 74.216 6.72484 74.216 7.52664V10.5787C74.216 11.3805 74.3448 12.053 74.628 12.5703C74.8855 13.0876 75.2718 13.5014 75.7611 13.7342C76.2504 13.9928 76.8169 14.1222 77.4865 14.1222H77.538ZM86.7313 13.9928V4.83671L86.2677 5.27641H89.6927V4.16422H82.5853V5.27641H86.0102L85.5467 4.83671V13.9928H86.7313ZM98.0105 13.9928V12.8806H92.7056L93.1692 13.3203V9.23372L92.7056 9.62169H96.9031V8.5095H92.7056L93.1692 8.89747V4.83671L92.7056 5.27641H98.0105V4.16422H91.9846V14.0187H98.0105V13.9928ZM103.393 13.9928C104.062 13.9928 104.629 13.8635 105.118 13.6049C105.607 13.3462 105.968 12.9582 106.251 12.4409C106.508 11.9236 106.663 11.2512 106.663 10.4494V7.68183C106.663 6.88002 106.534 6.2334 106.251 5.71611C105.993 5.19881 105.607 4.78498 105.118 4.5522C104.629 4.29355 104.062 4.16422 103.393 4.16422H100.225V14.0187H103.393V13.9928ZM101.435 4.75911L100.946 5.25054H103.393C103.856 5.25054 104.242 5.32814 104.551 5.48333C104.86 5.63852 105.066 5.89716 105.221 6.25927C105.375 6.62138 105.453 7.08694 105.453 7.68183V10.4494C105.453 11.0442 105.375 11.5357 105.221 11.8978C105.066 12.2599 104.835 12.4927 104.551 12.6737C104.242 12.8289 103.856 12.9065 103.393 12.9065H100.946L101.435 13.3979V4.75911ZM121.213 13.9928C122.14 13.9928 122.835 13.76 123.324 13.2945C123.814 12.8289 124.045 12.1823 124.045 11.3288V11.2253C124.045 10.6045 123.891 10.1131 123.608 9.75101C123.324 9.3889 122.886 9.13026 122.32 8.97507V8.81988C123.221 8.5095 123.659 7.83702 123.659 6.80243V6.64724C123.659 5.84543 123.427 5.25054 122.938 4.81084C122.449 4.37114 121.753 4.13836 120.826 4.13836H117.685V13.9928H121.213ZM118.895 4.83671L118.431 5.25054H120.852C121.444 5.25054 121.882 5.37987 122.14 5.61265C122.397 5.84543 122.526 6.2334 122.526 6.7507V6.85416C122.526 7.39732 122.397 7.81115 122.14 8.04394C121.882 8.30258 121.444 8.43191 120.852 8.43191H118.431L118.895 8.84574V4.83671ZM118.895 9.13026L118.431 9.54409H121.213C121.805 9.54409 122.217 9.67342 122.474 9.93206C122.732 10.1907 122.861 10.5787 122.861 11.1477V11.2253C122.861 11.7943 122.732 12.234 122.474 12.4927C122.217 12.7513 121.779 12.8806 121.187 12.8806H118.406L118.869 13.2686V9.13026H118.895ZM129.839 13.9928V9.93206L133.007 4.16422H131.719L129.299 8.69056H129.144L126.749 4.16422H125.462L128.629 9.93206V14.0187H129.814L129.839 13.9928ZM144.544 13.9928V9.31131L144.054 9.67342H148.921L148.432 9.31131V13.9928H149.617V4.13836H148.432V8.89747L148.921 8.53537H144.054L144.544 8.89747V4.13836H143.359V13.9928H144.544ZM155.694 13.9928V9.93206L158.861 4.16422H157.574L155.153 8.69056H154.999L152.604 4.16422H151.316L154.484 9.93206V14.0187H155.668L155.694 13.9928ZM161.977 13.9928V9.72515L161.514 10.1648H164.269C165.248 10.1648 165.969 9.93206 166.484 9.44063C166.999 8.9492 167.256 8.19913 167.256 7.1904V7.13867C167.256 6.12995 166.999 5.37987 166.484 4.88844C165.969 4.39701 165.222 4.16422 164.269 4.16422H160.793V14.0187H161.977V13.9928ZM161.977 4.81084L161.514 5.25054H164.269C164.707 5.25054 165.068 5.30227 165.325 5.4316C165.583 5.53506 165.789 5.74197 165.917 6.00062C166.046 6.25927 166.098 6.64724 166.098 7.13867V7.1904C166.098 7.68183 166.046 8.04394 165.917 8.32845C165.789 8.5871 165.608 8.79402 165.351 8.89747C165.093 9.00093 164.733 9.07853 164.295 9.07853H161.54L162.003 9.51823V4.86257L161.977 4.81084ZM175.6 13.9928V12.8806H170.295L170.759 13.3203V9.23372L170.295 9.62169H174.493V8.5095H170.295L170.759 8.89747V4.83671L170.295 5.27641H175.6V4.16422H169.574V14.0187H175.6V13.9928ZM179.282 13.9928V9.72515L178.793 10.1648H181.343C182.321 10.1648 183.042 9.93206 183.557 9.44063C184.072 8.9492 184.33 8.19913 184.33 7.1904V7.13867C184.33 6.12995 184.072 5.37987 183.557 4.88844C183.042 4.39701 182.295 4.16422 181.343 4.16422H178.072V14.0187H179.257L179.282 13.9928ZM179.282 4.81084L178.793 5.25054H181.343C181.78 5.25054 182.141 5.30227 182.424 5.4316C182.682 5.53506 182.888 5.74197 182.991 6.00062C183.119 6.25927 183.171 6.64724 183.171 7.13867V7.1904C183.171 7.68183 183.119 8.04394 182.991 8.32845C182.862 8.5871 182.682 8.79402 182.424 8.89747C182.167 9.00093 181.806 9.07853 181.343 9.07853H178.793L179.282 9.51823V4.81084ZM184.252 13.9928L181.935 10.2166V9.3889L180.158 9.4665L182.913 13.967H184.252V13.9928ZM192.853 13.9928V12.8806H187.703L188.167 13.3203V4.16422H186.982V14.0187H192.828L192.853 13.9928ZM194.527 13.9928H195.815L198.184 5.27641H198.313L200.682 13.9928H201.944L199.188 4.13836H197.36L194.553 13.9928H194.527ZM200.321 10.9925L200.038 9.88033H196.407L196.124 10.9925H200.321ZM204.931 13.9928V5.92303H205.06L208.124 13.9928H209.875V4.13836H208.716V12.2082H208.588L205.523 4.13836H203.772V13.9928H204.931ZM218.708 13.9928V12.8806H213.403L213.867 13.3203V9.23372L213.403 9.62169H217.601V8.5095H213.403L213.867 8.89747V4.83671L213.403 5.27641H218.708V4.16422H212.682V14.0187H2
4618.708V13.9928Z",fill:"url(#paint0_linear_279_1224)"}),(0,eN.jsx)("defs",{children:(0,eN.jsxs)("linearGradient",{id:"paint0_linear_279_1224",x1:"0",y1:"8.988",x2:"218.708",y2:"8.988",gradientUnits:"userSpaceOnUse",children:[(0,eN.jsx)("stop",{stopColor:"#4C52FF"}),(0,eN.jsx)("stop",{offset:"0.3",stopColor:"#9A0DFF"}),(0,eN.jsx)("stop",{offset:"0.6",stopColor:"#9A0DFF"}),(0,eN.jsx)("stop",{offset:"1",stopColor:"#FF4FE9"})]})})]})}),tH=(0,e_.memo)(function({color:e,...t}){return e_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...t},e_.default.createElement("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z",fill:e||te.ColorPalette.Black}))});var tV=e.i(560936),tK=e.i(959496),tF=e.i(525093);let tY=(0,e_.memo)(function({color:e,...t}){return(0,eN.jsx)("svg",{viewBox:"0 0 23 16",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,eN.jsx)("path",{d:"M21.688 6.90571C20.9608 6.90571 20.3759 7.53466 20.3759 8.3166C20.3759 8.38459 20.4076 8.45259 20.4076 8.52059L11.2708 13.5692C11.0337 13.3312 10.7175 13.1612 10.3698 13.1612C9.99038 13.1612 9.65842 13.3312 9.42131 13.6202L1.86529 9.96547L1.61237 9.84648C1.13814 9.6085 0.837801 9.13254 0.837801 8.57158C0.837801 8.07862 1.02749 7.65365 1.39107 7.38167C1.4543 7.33068 1.51753 7.29668 1.58076 7.26268L1.69141 7.21169L2.00756 7.36468L10.2117 11.3424C10.2117 11.3424 10.3223 11.3764 10.3856 11.3764C10.4488 11.3764 10.512 11.3764 10.5753 11.3254L21.8935 5.06985C22.0357 4.98486 22.1306 4.83187 22.1148 4.66189C22.1148 4.4919 22.0199 4.33891 21.8619 4.25392L13.1835 0.038247C13.0729 -0.012749 12.9306 -0.012749 12.8199 0.038247L1.50172 6.31076L1.37526 6.36175L1.20137 6.44675C0.442612 6.85471 0 7.67065 0 8.58858C0 9.48951 0.505842 10.2884 1.2646 10.6794L9.08935 14.4701C9.08935 14.4701 9.05773 14.5551 9.05773 14.5891C9.05773 15.371 9.64261 16 10.3698 16C11.0969 16 11.6818 15.371 11.6818 14.5891C11.6818 14.5211 11.6502 14.4531 11.6502 14.3851L20.7869 9.33652C21.0241 9.5745 21.3402 9.72749 21.688 9.72749C22.4151 9.72749 23 9.09854 23 8.3166C23 7.53466 22.4151 6.90571 21.688 6.90571ZM10.3698 15.0821C10.2275 15.0821 10.101 15.0141 10.022 14.8951C9.95876 14.8101 9.91134 14.6911 9.91134 14.5721C9.91134 14.3001 10.1168 14.0792 10.3698 14.0622C10.6227 14.0622 10.844 14.2831 10.844 14.5721C10.844 14.6911 10.7966 14.7931 10.7333 14.8781C10.6543 14.9971 10.5278 15.0821 10.3698 15.0821ZM21.7196 8.82656C21.7196 8.82656 21.7196 8.82656 21.7038 8.82656C21.4509 8.82656 21.2296 8.60558 21.2296 8.3166C21.2296 8.19761 21.277 8.09562 21.3402 8.01062C21.4192 7.89163 21.5615 7.80664 21.7038 7.80664C21.9567 7.80664 22.178 8.02762 22.178 8.3166C22.178 8.60558 21.9725 8.80956 21.7354 8.80956L21.7196 8.82656Z",fill:e||tF.Color.primary[500]})})}),tJ=(0,e_.memo)(function({color:e,width:t=20,height:r=20,...i}){return(0,eN.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 90",width:t,height:r,fill:"none",...i,children:(0,eN.jsx)("path",{d:"M45 0C20.147 0 0 20.147 0 45c0 24.853 20.147 45 45 45s45-20.147 45-45C90 20.147 69.853 0 45 0zM49.083 68.404C47.884 69.469 46.389 70 44.597 70c-1.792 0-3.288-.531-4.486-1.596-1.199-1.063-1.798-2.424-1.798-4.082 0-1.657.599-3.018 1.798-4.082 1.198-1.064 2.693-1.596 4.486-1.596 1.792 0 3.287.532 4.486 1.596 1.199 1.064 1.799 2.425 1.799 4.082 0 1.658-.6 3.019-1.799 4.082zM59.718 38.381c-.739 1.524-1.928 3.081-3.562 4.671l-3.864 3.595c-1.099 1.053-1.861 2.133-2.285 3.242-.425 1.109-.66 2.515-.706 4.217h-9.61c0-3.271.369-5.852 1.109-7.746.739-1.893 1.937-3.533 3.595-4.923 1.658-1.388 2.918-2.66 3.781-3.813.862-1.154 1.293-2.425 1.293-3.814 0-3.382-1.456-5.074-4.368-5.074-1.344 0-2.431.493-3.259 1.479-.829.986-1.266 2.318-1.311 3.999H29.174c.044-4.48 1.456-7.969 4.234-10.467C36.185 21.249 40.083 20 45.101 20c4.996 0 8.865 1.154 11.609 3.461 2.745 2.308 4.116 5.59 4.116 9.846 0 1.859-.369 3.551-1.108 5.074z",fill:e||tF.Color.primary[500]})})}),tG=(0,e_.memo)(function({...e}){return(0,eN.jsxs)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,eN.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:"#9A0DFF"}),(0,eN.jsx)("path",{d:"M6.91687 9.90641L4.87399 4.56765C4.80806 4.39535 4.93528 4.21045 5.11977 4.21045H7.65818C7.7658 4.21045 7.86258 4.27598 7.90253 4.37591L9.65836 8.76722H12.5701L10.8771 4.57209C10.8073 4.39913 10.9346 4.21045 11.1211 4.21045H13.7572C13.8633 4.21045 13.959 4.27415 14 4.37201L16.3163 9.90641L14.0157 15.6245C13.9756 15.7241 13.879 15.7894 13.7716 15.7894H11.2942C11.1116 15.7894 10.9845 15.6079 11.0469 15.4363L12.5701 11.2496H9.65836L7.90265 15.6243C7.86262 15.724 7.76593 15.7894 7.65843 15.7894H5.11544C4.93214 15.7894 4.80499 15.6067 4.86867 15.4348L6.91687 9.90641Z",fill:"#EBD3FF"}),(0,eN.jsx)("path",{d:"M0 10H20",stroke:"#EBD3FF",strokeWidth:"1.25"})]})}),tQ=(0,e_.memo)(function({color:e,...t}){return(0,eN.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,eN.jsx)("path",{d:"M0.75 9.75H5.75M0.75 9.75C0.75 14.7206 4.77944 18.75 9.75 18.75M0.75 9.75C0.75 4.77944 4.77944 0.75 9.75 0.75M5.75 9.75H13.75M5.75 9.75C5.75 14.7206 7.54086 18.75 9.75 18.75M5.75 9.75C5.75 4.77944 7.54086 0.75 9.75 0.75M13.75 9.75H18.75M13.75 9.75C13.75 4.77944 11.9591 0.75 9.75 0.75M13.75 9.75C13.75 14.7206 11.9591 18.75 9.75 18.75M18.75 9.75C18.75 4.77944 14.7206 0.75 9.75 0.75M18.75 9.75C18.75 14.7206 14.7206 18.75 9.75 18.75",stroke:e||tF.Color.primary[500],strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),tZ=(0,e_.memo)(function({color:e,...t}){return(0,eN.jsx)("svg",{viewBox:"0 0 19 17",xmlns:"http://www.w3.org/2000/svg",fill:"none",...t,children:(0,eN.jsx)("path",{d:"M14.4386 0H17.2498L11.1081 7.01958L18.3333 16.5716H12.676L8.24503 10.7784L3.17496 16.5716H0.362027L6.9312 9.06341L0 0H5.80092L9.80616 5.29528L14.4386 0ZM13.4519 14.889H15.0097L4.9545 1.59428H3.28288L13.4519 14.889Z",fill:e||tF.Color.primary[500]})})}),tX=[{title:"Stake",url:tK.links.stake,icon:(0,eN.jsx)(tG,{width:20,height:20})},{title:"X.com",url:tK.links.twitter,icon:(0,eN.jsx)(tZ,{width:19,height:17})},{title:"Hyperlane",url:tK.links.home,icon:(0,eN.jsx)(tQ,{width:20,height:20})},{title:"Support",url:tK.links.support,icon:(0,eN.jsx)(tJ,{width:20,height:20,color:tF.Color.primary[500]})},{title:"Docs",url:tK.links.docs,icon:(0,eN.jsx)(tY,{color:tF.Color.primary[500],width:23,height:16})},{title:"Github",url:tK.links.github,icon:(0,eN.jsx)(tH,{width:20,height:20,color:tF.Color.primary[500]})}],t$=(0,e_.forwardRef)(function({item:e,className:t},r){return(0,eN.jsxs)(tV.default,{ref:r,className:(0,e8.default)("flex items-center gap-2 text-primary-500 decoration-primary-500 underline-offset-2 hover:underline",t),target:"_blank",rel:"noopener noreferrer",href:e.url,children:[(0,eN.jsx)("div",{className:"w-5",children:e.icon}),(0,eN.jsx)("span",{children:e.title})]})});function t0(){return(0,eN.jsx)("footer",{className:"footer-root relative text-white",children:(0,eN.jsx)("div",{className:"footer-inner relative px-8 pb-5 pt-2 sm:pt-0",children:(0,eN.jsxs)("div",{className:"flex flex-col items-center justify-between gap-4",children:[(0,eN.jsx)(t1,{}),(0,eN.jsx)(t2,{})]})})})}function t1(){return(0,eN.jsx)("div",{className:"flex items-center justify-center rounded-full border border-transparent bg-transparent px-[0.8rem] py-[0.35rem] dark:border-primary-300/40 dark:bg-white/[0.08] dark:shadow-[0_0_22px_rgba(154,13,255,0.24)]",children:(0,eN.jsx)(tW,{className:"dark:[filter:saturate(1.2)_brightness(1.2)_drop-shadow(0_0_10px_rgba(185,89,255,0.45))]",width:219,height:18})})}function t2(){return(0,eN.jsx)("nav",{className:"hidden text-md font-medium lg:block",children:(0,eN.jsx)("ul",{className:"flex gap-9",children:tX.map(e=>(0,eN.jsx)("li",{children:(0,eN.jsx)(t$,{item:e,className:"dark:text-primary-50 dark:hover:text-white"})},e.title))})})}var t3=e.i(152038),t4=e.i(982042);function t5(e){return"light"===e||"dark"===e?e:null}let t8=(0,e_.createContext)(null);function t6(){try{return t5(window.localStorage.getItem(eV.UI_THEME_STORAGE_KEY))}catch{return null}}function t7({children:e}){let[t,r]=(0,e_.useState)(()=>{let e=t5(document.documentElement.dataset.themeMode);return e||(t6()??("function"!=typeof window.matchMedia?eV.DEFAULT_UI_THEME_MODE:window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
46k":"light"))}),[i,n]=(0,e_.useState)(()=>null!==t6()),o=(0,e_.useCallback)(()=>{document.documentElement.dataset.themeSwitching="true",r(e=>"dark"===e?"light":"dark"),n(!0)},[]);return(0,e_.useLayoutEffect)(()=>{document.documentElement.dataset.themeMode=t,i&&function(e){try{window.localStorage.setItem(eV.UI_THEME_STORAGE_KEY,e)}catch{}}(t),document.querySelectorAll('img[data-logo-handlers-bound="true"], img[data-logo-original-src], img[data-logo-dark-src]').forEach(e=>(0,t4.processDarkLogoImage)(e));let e=window.requestAnimationFrame(()=>{delete document.documentElement.dataset.themeSwitching});return()=>window.cancelAnimationFrame(e)},[t,i]),(0,e_.useEffect)(()=>{if(i||"function"!=typeof window.matchMedia)return;let e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{r(e.matches?"dark":"light")};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[i]),(0,eN.jsx)(t8.Provider,{value:{themeMode:t,toggleThemeMode:o},children:e})}var t9=e.i(337894),re=e.i(96086);function rt({multiProvider:e,onClickWhenConnected:t,onClickWhenUnconnected:r,className:i,countClassName:n,chainName:o,...a}){let s=eC(),{readyAccounts:l}=(0,e$.useAccounts)(e),c=(0,e0.useWalletDetails)(),d=l.length,u=l[0],h=(0,t9.shortenAddress)((0,tc.getAddressFromAccountAndChain)(u,o),!0),p=c[u?.protocol||eX.ProtocolType.Ethereum];return s?null:e_.default.createElement("div",{className:"htw-relative"},e_.default.createElement("div",{className:"htw-relative"},0===d&&e_.default.createElement(e7,{className:(0,e8.clsx)("htw-py-2 htw-px-3",i),onClick:r,title:"Choose wallet",...a},e_.default.createElement("div",{className:"htw-flex htw-items-center htw-gap-2"},e_.default.createElement(tr,{width:16,height:16}),e_.default.createElement("div",{className:"htw-text-xs sm:htw-text-sm"},"Connect wallet"))),1===d&&e_.default.createElement(e7,{onClick:t,className:(0,e8.clsx)("htw-px-2.5 htw-py-1",i),...a},e_.default.createElement("div",{className:"htw-flex htw-w-36 htw-items-center htw-justify-center xs:htw-w-auto"},e_.default.createElement(tl,{walletDetails:p,size:26}),e_.default.createElement("div",{className:"htw-mx-3 htw-flex htw-flex-col htw-items-start"},e_.default.createElement("div",{className:"htw-text-xs htw-text-gray-500"},p.name||"Wallet"),e_.default.createElement("div",{className:"htw-text-xs"},h)),e_.default.createElement(re.ChevronIcon,{direction:"s",width:10,height:6}))),d>1&&e_.default.createElement(e7,{onClick:t,className:(0,e8.clsx)("htw-px-2.5 htw-py-1",i),...a},e_.default.createElement("div",{className:"htw-flex htw-items-center htw-justify-center"},e_.default.createElement("div",{style:{height:26,width:26},className:(0,e8.clsx)("htw-flex htw-items-center htw-justify-center htw-rounded-full htw-bg-gray-600 htw-text-white",n)},d),e_.default.createElement("div",{className:"htw-mx-3 htw-flex htw-flex-col htw-items-start"},e_.default.createElement("div",{className:"htw-text-xs htw-text-gray-500"},"Wallets"),e_.default.createElement("div",{className:"htw-text-xs"},`${d} Connected`)),e_.default.createElement(re.ChevronIcon,{direction:"s",width:10,height:6})))))}function rr(){let e=(0,e1.useMultiProvider)(),{originChainName:t}=(0,e3.useStore)(e=>({originChainName:e.originChainName})),{setShowEnvSelectModal:r,setIsSideBarOpen:i}=(0,e3.useStore)(e=>({setShowEnvSelectModal:e.setShowEnvSelectModal,setIsSideBarOpen:e.setIsSideBarOpen}));return(0,eN.jsx)(rt,{multiProvider:e,onClickWhenUnconnected:()=>r(!0),onClickWhenConnected:()=>i(!0),className:"rounded-lg bg-accent-gradient shadow-accent-glow [&_*]:text-white [&_path]:fill-white",countClassName:"bg-white/20",chainName:t})}let ri={src:e.i(631423).default,width:69,height:58,blurWidth:0,blurHeight:0},rn={src:e.i(805183).default,width:229,height:53,blurWidth:0,blurHeight:0},ro={src:e.i(574822).default,width:35,height:11,blurWidth:0,blurHeight:0},ra=(0,e_.memo)(function({color:e,...t}){return(0,eN.jsx)("svg",{viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,eN.jsx)("path",{d:"M10 18H1M19 9.5H1M19 1H1",stroke:e||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})});function rs(){let{themeMode:e,toggleThemeMode:t}=function(){let e=(0,e_.useContext)(t8);if(!e)throw Error("useTheme must be used within ThemeProvider");return e}(),r="dark"===e?"light":"dark";return(0,eN.jsxs)("header",{className:"relative flex w-full items-center justify-between bg-primary-25 px-4 py-3 shadow-app-header lg:justify-center lg:bg-transparent lg:px-6 lg:pb-2 lg:pt-3 lg:shadow-none dark:border-b dark:border-primary-300/[0.24] dark:bg-background/[0.88] dark:shadow-app-header-dark lg:dark:border-b-0 lg:dark:bg-transparent lg:dark:shadow-none",children:[(0,eN.jsxs)("div",{className:"flex items-center gap-3 lg:hidden",children:[(0,eN.jsx)(tV.default,{href:"/","aria-label":"Homepage",children:(0,eN.jsx)(tg.default,{src:ri,width:36,alt:"",className:"h-auto"})}),(0,eN.jsx)(t3.DropdownMenu,{button:(0,eN.jsx)(ra,{width:20,height:19}),buttonClassname:"rounded p-2 text-primary-500 data-[open]:bg-primary-25 data-[open]:shadow-[inset_4px_4px_4px_rgba(154,13,255,0.1)] data-[open]:text-white dark:bg-white/[0.08] dark:text-foreground-primary dark:data-[open]:bg-primary-300/25 dark:data-[open]:ring-1 dark:data-[open]:ring-primary-300/45 dark:data-[open]:text-white",menuClassname:"py-4 dark:border dark:border-primary-300/35 dar
46k:bg-surface dark:shadow-menu-dark",menuItems:tX.map(e=>(0,eN.jsx)(t$,{item:e,className:"w-full gap-3 px-6 py-2 hover:bg-primary-50/30 dark:text-foreground-primary dark:hover:bg-primary-300/[0.16] dark:[&_path]:fill-current dark:[&_path]:stroke-current"},e.title))})]}),(0,eN.jsxs)(tV.default,{href:"/","aria-label":"Homepage",className:"hidden flex-col py-2 lg:flex",children:[(0,eN.jsxs)("div",{className:"flex items-end",children:[(0,eN.jsx)(tg.default,{src:ri,width:46,alt:"",className:"h-auto"}),(0,eN.jsx)(tg.default,{src:rn,width:150,alt:"",className:"ml-1.5"})]}),(0,eN.jsx)(tg.default,{src:ro,width:43,alt:"",className:"self-end"})]}),(0,eN.jsxs)("div",{className:"flex items-center gap-2 lg:absolute lg:right-12",children:[(0,eN.jsx)("button",{type:"button",className:`${rl.themeToggle} theme-toggle`,onClick:t,"aria-label":`Switch to ${r} mode`,title:`Switch to ${r} mode`,children:"dark"===r?"Lights out":"Lights on"}),(0,eN.jsx)(rr,{})]})]})}let rl={themeToggle:"rounded-md border border-primary-500/35 bg-white/85 px-2.5 py-1 text-xs font-medium capitalize text-primary-900 transition-[background-color,border-color,color,box-shadow] duration-200 hover:border-primary-300/70 hover:bg-gray-950/90 hover:text-primary-25 focus-visible:outline-none focus-visible:shadow-[0_0_0_2px_rgba(154,13,255,0.25)] dark:border-primary-300/45 dark:bg-black/75 dark:text-primary-50 dark:hover:border-primary-500/55 dark:hover:bg-white/95 dark:hover:text-primary-900 dark:focus-visible:shadow-[0_0_0_2px_rgba(185,89,255,0.35)]"};function rc({children:e}){let{showEnvSelectModal:t,setShowEnvSelectModal:r,isSideBarOpen:i,setIsSideBarOpen:n}=(0,e3.useStore)(e=>({showEnvSelectModal:e.showEnvSelectModal,setShowEnvSelectModal:e.setShowEnvSelectModal,isSideBarOpen:e.isSideBarOpen,setIsSideBarOpen:e.setIsSideBarOpen}));return!function(){let e=(0,e1.useMultiProvider)(),{accounts:t}=(0,e$.useAccounts)(e,eK.config.addressBlacklist),r=(0,e0.useWalletDetails)(),i=(0,e_.useRef)(new Set);(0,e_.useEffect)(()=>{Object.entries(t).forEach(([e,t])=>{let{addresses:n}=t;if(e!==eX.ProtocolType.Cosmos&&n&&n.length>0){let t=n[0].address,o=r[e]?.name;if(e===eX.ProtocolType.CosmosNative&&!t.includes("cosmos"))return;let a=`${e}:${t}`;i.current.has(a)||(i.current.add(a),(0,e2.trackEvent)(eZ.EVENT_NAME.WALLET_CONNECTED,{protocol:e,walletAddress:t,walletName:o||"Unknown"}))}})},[t,r])}(),(0,e_.useEffect)(()=>{if(eJ&&!eG)try{(0,eF.default)({app_id:eJ,alignment:"right"}),eG=!0}catch(e){eY.logger.warn("Failed to initialize Intercom:",e)}(0,eQ.initRefiner)(),(0,e2.trackEvent)(eZ.EVENT_NAME.PAGE_VIEWED,{})},[]),(0,eN.jsxs)(eN.Fragment,{children:[(0,eN.jsxs)(eH.default,{children:[(0,eN.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,eN.jsx)("title",{children:eV.APP_NAME})]}),(0,eN.jsxs)("div",{id:"app-content",className:"min-w-screen relative flex h-full min-h-screen w-full flex-col justify-between",children:[(0,eN.jsx)(rs,{}),(0,eN.jsx)("div",{className:"mx-auto flex max-w-screen-xl grow items-center sm:px-4",children:(0,eN.jsx)("main",{className:"my-4 flex w-full flex-1 items-center justify-center",children:e})}),(0,eN.jsx)(t0,{})]}),(0,eN.jsx)(tq,{isOpen:t,close:()=>r(!1),protocols:eK.config.walletProtocols,onProtocolSelected:e=>(0,e2.trackEvent)(eZ.EVENT_NAME.WALLET_CONNECTION_INITIATED,{protocol:e})}),(0,eN.jsx)(tI,{onClose:()=>n(!1),isOpen:i,onClickConnectWallet:()=>r(!0)}),(0,eN.jsx)(e4.TransferDetailsModal,{})]})}var rd=e.i(244759);function ru({children:e}){let t=!!(0,e1.useReadyMultiProvider)(),[r,i]=(0,e_.useState)(!1);if((0,rd.useTimeout)(()=>i(!0),1e4),!t)if(!r)return(0,eN.jsx)("div",{className:"warp-init-gate flex h-screen items-center justify-center",children:(0,eN.jsx)(e5.SpinnerIcon,{width:80,height:80,color:tF.Color.primary["500"]})});else throw Error("Failed to initialize app context. Please check your registry URL and connection status.");return(0,eN.jsx)(eN.Fragment,{children:e})}async function rh(e,t,r,i,n,o){let a=await e.getTransactionReceipt(t);if(!a)throw Error("Destination transaction receipt not found");let s=r.toLowerCase(),l=i.toLowerCase(),c=o??(0,t9.isZeroishAddress)(n),d=n.toLowerCase(),u=!1,h=!1;for(let e of a.logs){if("0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"!==e.topics[0]||e.topics.length<3)continue;let t=`0x${e.topics[2].slice(26)}`.toLowerCase(),r=e.address.toLowerCase();r===d&&t===s&&(u=!0),r===l&&t===s&&(h=!0)}return c?h?"failed_recovered":"success":u?"success":h?"failed_recovered":"dest_failed"}var rp=e.i(649782),rf=e.i(226063),rg=e.i(416772),rm=e.i(69256),ry=e.i(244899);let rb=(0,rm.parseAbi)(["function delivered(bytes32) view returns (bool)","function processedAt(bytes32) view returns (uint256)","event ProcessId(bytes32 indexed messageId)"]),rv=(0,ry.toEventSelector)("ProcessId(bytes32)");async function rw({msgId:e,destinationChain:t,chainAddresses:r,multiProvider:i}){try{let n,o=i.tryGetProtocol(t);if(o!==eX.ProtocolType.Ethereum&&o!==eX.ProtocolType.Tron)return{isDelivered:!1,destinationTxHash:void 0};let a=r[t]?.mailbox;if(!a)return{isDelivered:!1,destinationTxHash:void 0};let s=i.getProvider(t);if("ethers-v5"!==s.type&&"tron"!==s.type)return{isDelivered:!1,destinationTxHash:void 0};let l=s.provider;if(!await rx(l,a,"delivered",e))return{isDelivered:!1,destinationTxHash:void 0};try{let t=await rS(l,a,"processedAt",e),r=function(e){let t=BigInt(e);if(!(t<=0n||t>BigInt(Number.MAX_SAFE_INTEGER)))return Number(t)}(t);n=r?await rA(l,a,e,r):void 0}catch(e){eY.logger.warn("Mailbox delivered but process transaction lookup failed",e)}return{isDelivered:!0,destinationTxHash:n}}catch(e){return eY.logger.warn("Fast mailbox delivery check failed",e),{isDelivered:!1,destinationTxHash:void 0}}}async function rx(e,t,r,i){let n=await e.call({to:t,data:rk(r,i)});return(0,rf.decodeFunctionResult)({abi:rb,functionName:r,data:n})}async function rS(e,t,r,i){let n=await e.call({to:t,data:rk(r,i)});return(0,rf.decodeFunctionResult)({abi:rb,functionName:r,data:n})}
46async function rA(e,t,r,i){let[n]=await e.getLogs({address:t,fromBlock:i,toBlock:i,topics:[rv,r]});return n?.transactionHash}function rk(e,t){return(0,rg.encodeFunctionData)({abi:rb,functionName:e,args:[t]})}async function rE(e,t){try{let r=await fetch(eK.config.explorerApiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e,variables:t})});if(!r.ok)return{type:"error",error:Error(`HTTP error: ${r.status}`)};let i=await r.json(),[n]=i.errors??[];if(n)return{type:"error",error:Error(n.message)};return{type:"success",data:i.data}}catch(e){return{type:"error",error:e instanceof Error?e:Error("Unknown error")}}}var rI=e.i(29510),rM=e.i(349487);function rT(e){let t=(0,t9.strip0x)(e).toLowerCase();return`\\x${t}`}function rN(e){if(!e||e.length<4)throw Error("Invalid byte string");return(0,t9.ensure0x)(e.substring(2))}function r_(e,t){let r=rN(e);switch(t?.protocol){case eX.ProtocolType.Sealevel:var i;return i=rI.Buffer.from((0,t9.strip0x)(r),"hex"),rM.utils.base58.encode(i);case eX.ProtocolType.Radix:return(0,t9.hexToRadixCustomPrefix)(r,"txid",t.bech32Prefix);case eX.ProtocolType.Cosmos:case eX.ProtocolType.CosmosNative:case eX.ProtocolType.Tron:return(0,t9.strip0x)(r);case eX.ProtocolType.Aleo:return(0,t9.hexToBech32mPrefix)(r,"at");default:return r}}function rC(e){return new Date("Z"===e.at(-1)?e:e+"Z").getTime()}let rO=`
47  id
48  msg_id
49  nonce
50  sender
51  recipient
52  is_delivered
53  send_occurred_at
54  delivery_occurred_at
55  origin_chain_id
56  origin_domain_id
57  origin_tx_hash
58  origin_tx_sender
59  origin_tx_recipient
60  destination_chain_id
61  destination_domain_id
62  destination_tx_hash
63  destination_tx_sender
64  destination_tx_recipient
65  message_body
66`,rP=`
67  ${rO}
68  origin_block_height
69`,rD=`
70  query MessageById($msgId: bytea!) @cached(ttl: 5) {
71    message_view(
72      where: {msg_id: {_eq: $msgId}},
73      limit: 1
74    ) {
75      ${rP}
76    }
77  }
78`,rj=`
79  query MessagesByOriginTx($originTxHash: bytea!, $originDomainId: Int!) @cached(ttl: 5) {
80    message_view(
81      where: {
82        _and: [
83          {origin_tx_hash: {_eq: $originTxHash}},
84          {origin_domain_id: {_eq: $originDomainId}}
85        ]
86      },
87      order_by: {id: asc}
88    ) {
89      ${rP}
90    }
91  }
92`;var rR=e.i(209373),rz=e.i(102427),rL=e.i(625090);let rB=new Map;async function rU({pdaAddress:e,destinationChain:t,multiProvider:r}){try{let i=r.tryGetChainMetadata(t)?.rpcUrls?.[0]?.http;if(!i)return{exists:!1,errored:!0};let n=function(e){let t=rB.get(e);if(t)return t;let r=new rL.Connection(e,"confirmed");return rB.set(e,r),r}(i),o=await n.getAccountInfo(new rL.PublicKey(e));return{exists:null!==o}}catch(e){return eY.logger.warn("Solana dest swap PDA check failed",e),{exists:!1,errored:!0}}}var rq=e.i(749140);async function rW({msgId:e,destinationChain:t,chainAddresses:r,multiProvider:i}){try{if(i.tryGetProtocol(t)!==eX.ProtocolType.Sealevel)return{isDelivered:!1,destinationTxHash:void 0};let n=r[t]?.mailbox;if(!n)return{isDelivered:!1,destinationTxHash:void 0};let o=new rq.SealevelCoreAdapter(t,i,{mailbox:n});return{isDelivered:await o.isDelivered(e),destinationTxHash:void 0}}catch(e){return eY.logger.warn("Solana mailbox delivery check failed",e),{isDelivered:!1,destinationTxHash:void 0}}}function rH(){let e=(0,e1.useMultiProvider)(),t=(0,e3.useStore)(e=>e.chainAddresses),r=(0,e3.useStore)(e=>e.selectedTransactionId),i=(0,e3.useStore)(e=>e.transferRouteByTransactionId),n=(0,e3.useStore)(e=>e.transactionHistory),o=(0,e_.useMemo)(()=>(function(e,t){if(!t)return e;let r=e.findIndex(e=>e.id===t);return -1===r?e:[...e.slice(0,r),...e.slice(r+1),e[r]]})(n.flatMap(t=>{var r;if(t.type!==e3.TransactionHistoryItemType.Transfer||tE.FinalTransferStatuses.includes(t.data.status)&&!((r=t.data).status===tE.TransferStatus.Failed?!!r.originTxHash||!!(0,rz.getTransferDeliveryMsgId)(r.msgIds):r.status===tE.TransferStatus.ConfirmedDestination&&!r.destinationTxHash&&!r.solanaDestSwapPda))return[];let n=e.tryGetChainName(t.data.dstChain);if(!n)return[];let o=(0,rz.getTransferDeliveryMsgId)(t.data.msgIds);return o||t.data.originTxHash?[{id:t.id,type:t.type,msgId:o,originTxHash:t.data.originTxHash,originDomainId:t.data.srcChain,destinationChain:n,status:t.data.status,solanaDestSwapPda:t.data.solanaDestSwapPda,requiresDestinationOutcome:!!t.data.destinationOutcome||!!i.get(t.id)?.callCommitment}]:[]}),r).slice(-5),[e,r,i,n]);return(0,eN.jsx)(eN.Fragment,{children:o.map(e=>(0,eN.jsx)(rV,{target:e,chainAddresses:t},e.id))})}function rV({target:e,chainAddresses:t}){let r=(0,e1.useMultiProvider)(),i=(0,e3.useStore)(e=>e.updateTransferTransactionStatus),n=(0,e3.useStore)(e=>e.transferRouteByTransactionId),o=(0,e3.useStore)(t=>{if(e.type!==e3.TransactionHistoryItemType.Transfer)return;let r=t.transactionHistory.find(t=>
92t.id===e.id);return r?.type===e3.TransactionHistoryItemType.Transfer?r.data:void 0}),a=function(e,t,r){let i=(0,e_.useRef)(void 0),n=r.getKnownChainNames().length>0;(0,e_.useEffect)(()=>{i.current=void 0},[e]);let{data:o,isLoading:a}=(0,rp.useQuery)({queryKey:["messageDelivery",e,n],queryFn:async()=>{var t;let i;if(!e)return null;let n={query:rD,variables:{msgId:rT(e)}},o=await rE(n.query,n.variables);if("error"===o.type)return eY.logger.error("Failed to query message delivery status",o.error),null;let a=o.data.message_view?.[0];return a?(t=a,i=r.tryGetChainMetadata(t.destination_domain_id),{isDelivered:t.is_delivered,destinationTxHash:t.is_delivered&&t.destination_tx_hash?r_(t.destination_tx_hash,i):void 0,originTimestamp:rC(t.send_occurred_at),originBlockHeight:t.origin_block_height}):null},enabled:!!e&&t&&n,staleTime:3e4,refetchInterval:e=>{let t=e.state.data;return t?.isDelivered?!t.destinationTxHash&&(i.current??=Date.now(),!(Date.now()-i.current>=12e4)&&1e4):(i.current=void 0,1e4)},refetchOnWindowFocus:!1});return{isDelivered:o?.isDelivered??!1,destinationTxHash:o?.destinationTxHash,originTimestamp:o?.originTimestamp,originBlockHeight:o?.originBlockHeight,isLoading:a}}(e.msgId,!0,r),s=function(e,t,r,i,n){let o=n.getKnownChainNames().length>0,{data:a,isLoading:s}=(0,rp.useQuery)({queryKey:["originTxMessages",e,t,o],queryFn:async()=>{let i;if(!e||!t)return null;let o=n.tryGetChainMetadata(t),a=(i=function(e,t){try{var r,i;if(t?.protocol===eX.ProtocolType.Sealevel)return rT(rI.Buffer.from(rM.utils.base58.decode(e)).toString("hex"));if(t?.protocol&&(r=t.protocol,[eX.ProtocolType.Aleo,eX.ProtocolType.Radix].includes(r))&&(0,t9.isValidTransactionHash)(e,t.protocol))return rT((0,t9.addressToByteHexString)(e,t.protocol));if(t?.protocol&&(i=t.protocol,[eX.ProtocolType.Ethereum,eX.ProtocolType.Cosmos,eX.ProtocolType.CosmosNative,eX.ProtocolType.Starknet,eX.ProtocolType.Tron].includes(i))&&(0,t9.isValidTransactionHash)(e,t.protocol)||/^(0x)?[0-9a-fA-F]+$/.test(e))return rT(e);return}catch{return}}(e,o))?{query:rj,variables:{originTxHash:i,originDomainId:t}}:null;if(!a)return null;let s=await rE(a.query,a.variables);return"error"===s.type?(eY.logger.error("Failed to query origin transaction messages",s.error),null):function(e,t,r){if(!e.length)return{isDelivered:!1};let i=r.tryGetChainMetadata(e[0].origin_domain_id),n=e.map(e=>({msgId:rN(e.msg_id),sender:function(e,t){let r=rN(e);if(!t)return r;let i=rI.Buffer.from((0,t9.strip0x)(r),"hex");return!i.length||i.every(e=>0===e)?r:(0,t9.bytesToProtocolAddress)(i,t.protocol,t.bech32Prefix)}(e.sender,i),body:e.message_body?rN(e.message_body):void 0})),o=(0,rR.labelTransferMessages)(n,t),a=(0,rz.getTransferDeliveryMsgId)(o),s=e.find(e=>rN(e.msg_id)===a)??e.at(-1),l=r.tryGetChainMetadata(s.destination_domain_id);return{msgIds:o,isDelivered:s.is_delivered,destinationTxHash:s.is_delivered&&s.destination_tx_hash?r_(s.destination_tx_hash,l):void 0,originTimestamp:rC(e[0].send_occurred_at),originBlockHeight:e[0].origin_block_height}}(s.data.message_view??[],r,n)},enabled:i&&!!e&&!!t&&o,staleTime:3e4,refetchInterval:e=>{let t=e.state.data;return(!t?.msgIds?.length||!t.isDelivered||!t.destinationTxHash)&&1e4},refetchOnWindowFocus:!1});return{msgIds:a?.msgIds,isDelivered:a?.isDelivered??!1,destinationTxHash:a?.destinationTxHash,originTimestamp:a?.originTimestamp,originBlockHeight:a?.originBlockHeight,isLoading:s}}(e.msgId?void 0:e.originTxHash,e.originDomainId,n.get(e.id),!e.msgId,r),l=function({msgId:e,destinationChain:t,chainAddresses:r,multiProvider:i,enabled:n}){let o=t?r[t]?.mailbox:void 0,{data:a}=(0,rp.useQuery)({queryKey:["evmMailboxDelivery",t,o,e],queryFn:async()=>t&&e?rw({msgId:e,destinationChain:t,chainAddresses:r,multiProvider:i}):{isDelivered:!1,destinationTxHash:void 0},enabled:n&&!!e&&!!t&&!!o,refetchInterval:e=>(!e.state.data?.isDelivered||!e.state.data.destinationTxHash)&&3e3,refetchOnWindowFocus:!1});return{isDelivered:a?.isDelivered??!1,destinationTxHash:a?.destinationTxHash}}({msgId:e.msgId,destinationChain:e.destinationChain,chainAddresses:t,multiProvider:r,enabled:!!e.msgId&&!a.destinationTxHash}),c=function({msgId:e,destinationChain:t,chainAddresses:r,multiProvider:i,enabled:n}){let o=t?r[t]?.mailbox:void 0,a=t?i.tryGetProtocol(t):null,{data:s}=(0,rp.useQuery)({queryKey:["solanaMailboxDelivery",t,o,e],queryFn:async()=>t&&e?rW({msgId:e,destinationChain:t,chainAddresses:r,multiProvider:i}):{isDelivered:!1,destinationTxHash:void 0},enabled:n&&!!e&&!!t&&!!o&&a===eX.ProtocolType.Sealevel,refetchInterval:e=>!e.state.data?.isDelivered&&5e3,refetchOnWindowFocus:!1});return{isDelivered:s?.isDelivered??!1,destinationTxHash:s?.destinationTxHash}}({msgId:e.msgId,destinationChain:e.destinationChain,chainAddresses:t,multiProvider:r,enabled:!!e.msgId&&!a.isDelivered&&!l.isDelivered}),d=a.isDelivered||l.isDelivered||c.isDelivered||e.status===tE.TransferStatus.ConfirmingDestination,u=function({pdaAddress:e,destinationChain:t,multiProvider:r,enabled:i}){let n=(0,e_.useRef)(0),o=(0,e_.useRef)(0),a=(0,e_.useRef)(!1),s=(0,e_.useRef)(0),l=(0,e_.useRef)(null),[c,d]=(0,e_.useState)(!1),{data:u,dataUpdatedAt:h}=(0,rp.useQuery)({queryKey:["solanaDestSwapStatus",t,e],queryFn:async()=>e&&t?rU({pdaAddress:e,destinationChain:t,multiProvider:r}):{exists:!1},enabled:i&&!!e&&!!t,refetchInterval:e=>!a.current&&(o.current>=24?6e4:5e3),refetchOnWindowFocus:!1});return(0,e_.useEffect)(()=>{let r=`${i}:${t??""}:${e??""}`;r!==l.current&&(l.current=r,n.current=0,o.current=0,a.current=!1,s.current=i?h:0,d(!1))},[h,t,i,e]),(0,e_.useEffect)(()=>{var e,t;if(!i||!u||(e=s.current,!((t=h)>0)||t===e))return;s.current=h;let r=function(e,t){let r=e.pollCount+1;if(t.errored)return{...e,pollCount:r};let i=t.exists?0:e.cleanMissingCount+1;return{pollCount:r,cleanMissingCount:i,isDone:e.isDone||i>=2}}({cleanMissingCount:n.current,pollCount:o.current,isDone:a.current},u);n.current=r.cleanMissingCount,o.current=r.pollCount,r.isDone&&!a.current&&(a.current=!0,d(!0))},[u,h,i]),{isDone:c}}({pdaAddress:e.solanaDestSwapPda,destinationChain:e.destinationChain,multiProvider:r,enabled:!!e.solanaDestSwapPda&&d});!function(e,t){let r=(0,e3.useStore)(e=>t?e.transferRouteByTransactionId.get(t):void 0),i=(0,e3.useStore)(e=>e.updateTransferTransactionStatus),n=(0,e1.useMultiProvider)(),o=(0,e_.useRef)(null),a=(0,e_.useRef)(null),s=(0,e_.useRef)(0),[l,c]=(0,e_.useState)(0);(0,e_.useEffect)(()=>{let l,d=!1,u=()=>{let e=s.current>=24?6e4:5e3;s.current+=1,l=setTimeout(()=>{d||c(e=>e+1)},e)},{destinationTxHash:h,destinationOutcome:p,status:f,dstChain:g,recipient:m}=e??{};if(!h||!t||(a.current!==h&&(a.current=h,s.current=0),f&&tE.FinalTransferStatuses.includes(f)||o.current===h))return;o.current=h;let y=r?.steps.find(e=>"swap"===e.type&&e.chain===g);if(!p&&(!r?.callCommitment||!y||"swap"!==y.type)){i(t,tE.TransferStatus.ConfirmedDestination),eq.toast.success("Transfer complete! Funds have arrived.");return}let b=p?.bridgeToken??y.tokenIn,v=p?.dstToken??y.tokenOut,w=null;try{let e=n.tryGetChainName(g);e&&(w=n.getEthersV5Provider(e))}catch{}if(!w)return o.current=null,u(),()=>{d=!0,l&&clearTimeout(l)};let x=p?.dstIsNative??(0,t9.isZeroishAddress)(e?.dstToken??v);return rh(w,h,m,b,v,x).then(e=>{d||("success"===e?(i(t,tE.TransferStatus.ConfirmedDestination),eq.toast.success("Transfer complete! Funds have arrived.")):"failed_recovered"===e?(i(t,tE.TransferStatus.FailedRecovered),eq.toast.success("Transfer failed — intermediate token returned to your wallet.")):(i(t,tE.TransferStatus.DestFailed),eq.toast.error("Transfer failed — please contact support, your funds may be in your ICA.")))}).catch(()=>{d||(o.current=null,u())}),()=>{d=!0,l&&clearTimeout(l)}},[e?.destinationTxHash,e?.destinationOutcome,e?.status,e?.dstChain,e?.dstToken,e?.recipient,t,r,n,i,l])}(o,e.type===e3.TransactionHistoryItemType.Transfer?e.id:null);let h=(0,e_.useRef)(!1),p=(0,e_.useRef)(!1),f=(0,e_.useRef)(!1),g=(0,e_.useRef)(!1),m=(0,e_.useRef)(!1),y=(0,e_.useRef)(!1);return(0,e_.useEffect)(()=>{h.current=!1,p.current=!1,f.current=!1,g.current=!1,m.current=!1,y.current=!1},[e.id,e.msgId,e.originTxHash]),(0,e_.useEffect)(()=>
92{if(s.msgIds?.length){let t=s.isDelivered?e.requiresDestinationOutcome?tE.TransferStatus.ConfirmingDestination:tE.TransferStatus.ConfirmedDestination:tE.TransferStatus.Bridging;(function(e,t,r){var i,n;if(!e)return!0;let o=r.originTimestamp?Math.floor(r.originTimestamp/1e3):void 0;return e.status!==t||(i=e.msgIds,n=r.msgIds,!!n?.length&&(!i||0===i.length))||null==e.originBlockNumber&&null!=r.originBlockHeight||null==e.originTxTimestamp&&null!=o||null==e.destinationTxHash&&null!=r.destinationTxHash})(o,t,s)&&i(e.id,t,{msgIds:s.msgIds,originBlockNumber:s.originBlockHeight,originTxTimestamp:s.originTimestamp?Math.floor(s.originTimestamp/1e3):void 0,destinationTxHash:s.destinationTxHash}),!s.isDelivered||e.requiresDestinationOutcome||e.status===tE.TransferStatus.ConfirmedDestination||h.current||(h.current=!0,eq.toast.success("Transfer complete! Funds have arrived."));return}if(a.isDelivered&&rK(p,f,a.destinationTxHash)){p.current=!0,a.destinationTxHash&&(f.current=!0);let t=e.requiresDestinationOutcome?tE.TransferStatus.ConfirmingDestination:tE.TransferStatus.ConfirmedDestination;i(e.id,t,{destinationTxHash:a.destinationTxHash}),e.requiresDestinationOutcome||e.status===tE.TransferStatus.ConfirmedDestination||h.current||(h.current=!0,eq.toast.success("Transfer complete! Funds have arrived."));return}let t=l.isDelivered||c.isDelivered,r=l.isDelivered?l.destinationTxHash:c.destinationTxHash;if(t&&rK(g,m,r)){g.current=!0,r&&(m.current=!0);let t=e.requiresDestinationOutcome?tE.TransferStatus.ConfirmingDestination:tE.TransferStatus.ConfirmedDestination;i(e.id,t,{destinationTxHash:r}),e.requiresDestinationOutcome||e.status===tE.TransferStatus.ConfirmedDestination||h.current||(h.current=!0,eq.toast.success("Transfer complete! Funds have arrived."))}},[a.destinationTxHash,a.isDelivered,l.destinationTxHash,l.isDelivered,s,s.destinationTxHash,s.isDelivered,s.msgIds,s.originBlockHeight,s.originTimestamp,c.destinationTxHash,c.isDelivered,e,o,i]),(0,e_.useEffect)(()=>{u.isDone&&!y.current&&(y.current=!0,i(e.id,tE.TransferStatus.ConfirmedDestination),e.status===tE.TransferStatus.ConfirmedDestination||h.current||(h.current=!0,eq.toast.success("Transfer complete! Funds have arrived.")))},[u.isDone,e,i]),null}function rK(e,t,r){return!e.current||!!r&&!t.current}var rF=e.i(450698),rY=e.i(579121),rY=rY,rJ=e.i(691640),rG=e.i(249549);function rQ({children:e}){return(0,eN.jsx)(rG.AleoPopupProvider,{children:e})}function rZ(e,t={}){let r=!1;function i(t){let r=(["container","root"].includes(t??"")?[e]:[e,t]).filter(Boolean).join("__"),i=`chakra-${r}`;return{className:i,selector:`.${i}`,toString:()=>t}}return{parts:function(...n){for(let e of(!function(){if(!r){r=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),n))t[e]=i(e);return rZ(e,t)},toPart:i,extend:function(...r){for(let e of r)e in t||(t[e]=i(e));return rZ(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}(0,rJ.setAleoNetwork)("mainnet"===eK.config.aleoNetwork?rY.Network.MAINNET:rY.Network.TESTNET);let rX=rZ("accordion").parts("root","container","button","panel","icon"),r$=rZ("alert").parts("title","description","container","icon","spinner"),r0=rZ("avatar").parts("label","badge","container","excessLabel","group"),r1=rZ("breadcrumb").parts("link","item","container","separator");rZ("button").parts();let r2=rZ("checkbox").parts("control","icon","container","label");rZ("progress").parts("track","filledTrack","label");let r3=rZ("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),r4=rZ("editable").parts("preview","input","textarea"),r5=rZ("form").parts("container","requiredIndicator","helperText"),r8=rZ("formError").parts("text","icon"),r6=rZ("input").parts("addon","field","element","group"),r7=rZ("list").parts("container","item","icon"),r9=rZ("menu").parts("button","list","item","groupTitle","icon","command","divider"),ie=rZ("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),it=rZ("numberinput").parts("root","field","stepperGroup","stepper");rZ("pininput").parts("field");let ir=rZ("popover").parts("content","header","body","footer","popper","arrow","closeButton"),ii=rZ("progress").parts("label","filledTrack","track"),io=rZ("radio").parts("container","control","label"),ia=rZ("select").parts("field","icon"),is=rZ("slider").parts("container","track","thumb","filledTrack","mark"),il=rZ("stat").parts("container","label","helpText","number","icon"),ic=rZ("switch").parts("container","track","thumb","label"),id=rZ("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),iu=rZ("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),ih=rZ("tag").parts("container","label","closeButton"),ip=rZ("card").parts("container","header","body","footer");function ig(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}rZ("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");let{definePartsStyle:im,defineMultiStyleConfig:iy}=ig(rX.keys),ib=iy({baseStyle:im({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})});function iv(e,t,r){let i=function(e,t=""){var r;return((r=function(e,t="-"){return e.replace(/\s+/g,t)}
92(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")||Number.isInteger(parseFloat(r.toString()))?r:r.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,r);return{variable:i,reference:`var(${i}${t?`, ${t}`:""})`}}function iw(e,t,r){return Math.min(Math.max(e,r),t)}class ix extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function iS(e){if("string"!=typeof e)throw new ix(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=i_.test(e)?function(e){let t=ik[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new ix(e);return`#${t}`}(e):e;let r=iI.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(iE(e,2),16)),parseInt(iE(e[3]||"f",2),16)/255]}let i=iM.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let n=iT.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=iN.exec(t);if(o){let[t,r,i,n]=Array.from(o).slice(1).map(parseFloat);if(iw(0,100,r)!==r||iw(0,100,i)!==i)throw new ix(e);return[...iO(t,r,i),Number.isNaN(n)?1:n]}throw new ix(e)}let iA=e=>parseInt(e.replace(/_/g,""),36),ik="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let r=iA(t.substring(0,3)),i=iA(t.substring(3)).toString(16),n="";for(let e=0;e<6-i.length;e++)n+="0";return e[r]=`${n}${i}`,e},{}),iE=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),iI=RegExp(`^#${iE("([a-f0-9])",3)}([a-f0-9])?$`,"i"),iM=RegExp(`^#${iE("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),iT=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${iE(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),iN=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,i_=/^[a-z]+$/i,iC=e=>Math.round(255*e),iO=(e,t,r)=>{let i=r/100;if(0===t)return[i,i,i].map(iC);let n=(e%360+360)%360/60,o=t/100*(1-Math.abs(2*i-1)),a=o*(1-Math.abs(n%2-1)),s=0,l=0,c=0;n>=0&&n<1?(s=o,l=a):n>=1&&n<2?(s=a,l=o):n>=2&&n<3?(l=o,c=a):n>=3&&n<4?(l=a,c=o):n>=4&&n<5?(s=a,c=o):n>=5&&n<6&&(s=o,c=a);let d=i-o/2;return[s+d,l+d,c+d].map(iC)},iP=(e,t,r)=>{let i=function(e,t,r,i){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:void 0;return void 0===e?r:e}(e,`colors.${t}`,t);try{return!function(e){let[t,r,i,n]=iS(e),o=e=>{let t=iw(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(i),n<1&&o(Math.round(255*n))}(i),i}catch{return r??"#000000"}},iD=(e,t)=>r=>(function(e,t){var r;let[i,n,o,a]=iS(e);return r=a-t,`rgba(${iw(0,255,i).toFixed()}, ${iw(0,255,n).toFixed()}, ${iw(0,255,o).toFixed()}, ${parseFloat(iw(0,1,r).toFixed(3))})`})(iP(r,e),1-t);function ij(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
93    45deg,
94    ${t} 25%,
95    transparent 25%,
96    transparent 50%,
97    ${t} 50%,
98    ${t} 75%,
99    transparent 75%,
100    transparent
101  )`,backgroundSize:`${e} ${e}`}}let{definePartsStyle:iR,defineMultiStyleConfig:iz}=ig(r$.keys),iL=iv("alert-fg"),iB=iv("alert-bg");function iU(e){let{theme:t,colorScheme:r}=e,i=iD(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:i}}let iq=iz({baseStyle:iR({container:{bg:iB.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:iL.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:iL.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:iR(e=>{let{colorScheme:t}=e,r=iU(e);return{container:{[iL.variable]:`colors.${t}.600`,[iB.variable]:r.light,_dark:{[iL.variable]:`colors.${t}.200`,[iB.variable]:r.dark}}}}),"left-accent":iR(e=>{let{colorScheme:t}=e,r=iU(e);return{container:{[iL.variable]:`colors.${t}.600`,[iB.variable]:r.light,_dark:{[iL.variable]:`colors.${t}.200`,[iB.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:iL.reference}}}),"top-accent":iR(e=>{let{colorScheme:t}=e,r=iU(e);return{container:{[iL.variable]:`colors.${t}.600`,[iB.variable]:r.light,_dark:{[iL.variable]:`colors.${t}.200`,[iB.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:iL.reference}}}),solid:iR(e=>{let{colorScheme:t}=e;return{container:{[iL.variable]:"colors.white",[iB.variable]:`colors.${t}
101.600`,_dark:{[iL.variable]:"colors.gray.900",[iB.variable]:`colors.${t}.200`},color:iL.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),iW={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},iH={...iW,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}};function iV(e,...t){return"function"==typeof e?e(...t):e}let{definePartsStyle:iK,defineMultiStyleConfig:iF}=ig(r0.keys),iY=iv("avatar-border-color"),iJ=iv("avatar-bg"),iG=iv("avatar-font-size"),iQ=iv("avatar-size"),iZ={borderRadius:"full",border:"0.2em solid",borderColor:iY.reference,[iY.variable]:"white",_dark:{[iY.variable]:"colors.gray.800"}},iX={bg:iJ.reference,fontSize:iG.reference,width:iQ.reference,height:iQ.reference,lineHeight:"1",[iJ.variable]:"colors.gray.200",_dark:{[iJ.variable]:"colors.whiteAlpha.400"}},i$=e=>{var t,r;let i,{name:n,theme:o}=e,a=n?(t={string:n},i=`#${Math.floor(0xffffff*Math.random()).toString(16).padEnd(6,"0")}`,t&&0!==Object.keys(t).length?t.string&&t.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;return r=(r%t.length+t.length)%t.length,t[r]}(t.string,t.colors):t.string&&!t.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t&=t;let r="#";for(let e=0;e<3;e+=1){let i=t>>8*e&255;r+=`00${i.toString(16)}`.substr(-2)}return r}(t.string):t.colors&&!t.string?(r=t.colors)[Math.floor(Math.random()*r.length)]:i:i):"colors.gray.400",s=(e=>"dark"===(e=>128>(e=>{let[t,r,i]=iS(e);return(299*t+587*r+114*i)/1e3})(iP(e,a))?"dark":"light")(e))(o),l="white";return s||(l="gray.800"),{bg:iJ.reference,fontSize:iG.reference,color:l,borderColor:iY.reference,verticalAlign:"top",width:iQ.reference,height:iQ.reference,"&:not([data-loaded])":{[iJ.variable]:a},[iY.variable]:"colors.white",_dark:{[iY.variable]:"colors.gray.800"}}},i0={fontSize:iG.reference,lineHeight:"1"};function i1(e){let t="100%"!==e?iH[e]:void 0;return iK({container:{[iQ.variable]:t??e,[iG.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[iQ.variable]:t??e,[iG.variable]:`calc(${t??e} / 2.5)`}})}let i2=iF({baseStyle:iK(e=>({badge:iV(iZ,e),excessLabel:iV(iX,e),container:iV(i$,e),label:i0})),sizes:{"2xs":i1(4),xs:i1(6),sm:i1(8),md:i1(12),lg:i1(16),xl:i1(24),"2xl":i1(32),full:i1("100%")},defaultProps:{size:"md"}}),i3=function(e,t){let r={};for(let i of t){if(Array.isArray(i)){let[t,n]=i;r[t]=iv(`${e}-${t}`,n);continue}r[i]=iv(`${e}-${i}`)}return r}("badge",["bg","color","shadow"]),i4={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:i3.bg.reference,color:i3.color.reference,boxShadow:i3.shadow.reference},variants:{solid:e=>{let{colorScheme:t,theme:r}=e,i=iD(`${t}.500`,.6)(r);return{[i3.bg.variable]:`colors.${t}.500`,[i3.color.variable]:"colors.white",_dark:{[i3.bg.variable]:i,[i3.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{let{colorScheme:t,theme:r}=e,i=iD(`${t}.200`,.16)(r);return{[i3.bg.variable]:`colors.${t}.100`,[i3.color.variable]:`colors.${t}.800`,_dark:{[i3.bg.variable]:i,[i3.color.variable]:`colors.${t}.200`}}},outline:e=>{let{colorScheme:t,theme:r}=e,i=iD(`${t}.200`,.8)(r);return{[i3.color.variable]:`colors.${t}.500`,_dark:{[i3.color.variable]:i},[i3.shadow.variable]:`inset 0 0 0px 1px ${i3.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:i5,definePartsStyle:i8}=ig(r1.keys),i6=iv("breadcrumb-link-decor"),i7=i5({baseStyle:i8({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-
101out",outline:"none",color:"inherit",textDecoration:i6.reference,[i6.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[i6.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})});function i9(e,t){return r=>"dark"===r.colorMode?t:e}function ne(e){let{orientation:t,vertical:r,horizontal:i}=e;return t?"vertical"===t?r:i:{}}let nt=e=>{let{colorScheme:t,theme:r}=e;if("gray"===t)return{color:i9("gray.800","whiteAlpha.900")(e),_hover:{bg:i9("gray.100","whiteAlpha.200")(e)},_active:{bg:i9("gray.200","whiteAlpha.300")(e)}};let i=iD(`${t}.200`,.12)(r),n=iD(`${t}.200`,.24)(r);return{color:i9(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:i9(`${t}.50`,i)(e)},_active:{bg:i9(`${t}.100`,n)(e)}}},nr={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},{definePartsStyle:ni,defineMultiStyleConfig:nn}=ig(ip.keys),no=iv("card-bg"),na=iv("card-padding"),ns=iv("card-shadow"),nl=iv("card-radius"),nc=iv("card-border-width","0"),nd=iv("card-border-color"),nu=ni({container:{[no.variable]:"colors.chakra-body-bg",backgroundColor:no.reference,boxShadow:ns.reference,borderRadius:nl.reference,color:"chakra-body-text",borderWidth:nc.reference,borderColor:nd.reference},body:{padding:na.reference,flex:"1 1 0%"},header:{padding:na.reference},footer:{padding:na.reference}}),nh={sm:ni({container:{[nl.variable]:"radii.base",[na.variable]:"space.3"}}),md:ni({container:{[nl.variable]:"radii.md",[na.variable]:"space.5"}}),lg:ni({container:{[nl.variable]:"radii.xl",[na.variable]:"space.7"}})},np=nn({baseStyle:nu,variants:{elevated:ni({container:{[ns.variable]:"shadows.base",_dark:{[no.variable]:"colors.gray.700"}}}),outline:ni({container:{[nc.variable]:"1px",[nd.variable]:"colors.chakra-border-color"}}),filled:ni({container:{[no.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[na.variable]:0},header:{[na.variable]:0},footer:{[na.variable]:0}}},sizes:nh,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:nf,defineMultiStyleConfig:ng}=ig(r2.keys),nm=iv("checkbox-size"),ny=e=>{let{colorScheme:t}=e;return{w:nm.reference,h:nm.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:i9(`${t}.500`,`${t}.200`)(e),borderColor:i9(`${t}.500`,`${t}.200`)(e),color:i9("white","gray.900")(e),_hover:{bg:i9(`${t}.600`,`${t}.300`)(e),borderColor:i9(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:i9("gray.200","transparent")(e),bg:i9("gray.200","whiteAlpha.300")(e),color:i9("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:i9(`${t}.500`,`${t}.200`)(e),borderColor:i9(`${t}.500`,`${t}.200`)(e),color:i9("white","gray.900")(e)},_disabled:{bg:i9("gray.100","whiteAlpha.100")(e),borderColor:i9("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:i9("red.500","red.300")(e)}}},nb={_disabled:{cursor:"not-allowed"}},nv={userSelect:"none",_disabled:{opacity:.4}},nw={transitionProperty:"transform",transitionDuration:"normal"},nx=ng({baseStyle:nf(e=>({icon:nw,container:nb,control:iV(ny,e),label:nv})),sizes:{sm:nf({control:{[nm.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:nf({control:{[nm.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:nf({control:{[nm.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}});function nS(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function nA(e,t){var r,i;let n=function(e,t=""){return`--${function(e,t=""){return[t,nS(e)].filter(Boolean).join("-")}(e,t)}`}(e,t?.prefix);return{variable:n,reference:(r="string"==typeof(i=t?.fallback)?i:i?.reference,`var(${nS(n)}${r?`, ${r}`:""})`)}}let nk=nA("close-button-size"),nE=nA("close-button-bg"),nI={w:[nk.reference],h:[nk.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[nE.variable]:"colors.blackAlpha.100",_dark:{[nE.variable]:"colors.whiteAlpha.100"}},_active:{[nE.variable]:"colors.blackAlpha.200",_dark:{[nE.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:nE.reference},nM={lg:{[nk.variable]:"sizes.10",fontSize:"md"},md:{[nk.variable]:"sizes.8",fontSize:"xs"},sm:{[nk.variable]:"sizes.6",fontSize:"2xs"}},{variants:nT,defaultProps:nN}=i4,n_={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:i3.bg.reference,color:i3.color.reference,boxShadow:i3.shadow.reference},{definePartsStyle:nC,defineMultiStyleConfig:nO}=ig(r3.keys),nP=iv("drawer-bg"),nD=iv("drawer-box-shadow");function nj(e){return"full"===e?nC({dialog:{maxW:"100vw",h:"100vh"}}):nC({dialog:{maxW:e}})}let nR={bg:"blackAlpha.600",zIndex:"modal"},nz={display:"flex",zIndex:"modal",justifyContent:"center"},nL=e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[nP.variable]:"colors.white",[nD.variable]:"shadows.lg",_dark:{[nP.variable]:"colors.gray.700",[nD.variable]:"shadows.dark-lg"},bg:nP.reference,boxShadow:nD.reference}},nB={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},nU={position:"absolute",top:"2",insetEnd:"3"},nq={px:"6",py:"2",flex:"1",overflow:"auto"},nW={px:"6",py:"4"},nH=nO({baseStyle:nC(e=>({overlay:nR,dialogContainer:nz,dialog:iV(nL,e),header:nB,closeButton:nU,body:nq,footer:nW})),sizes:{xs:nj("xs"),sm:nj("md"),md:nj("lg"),lg:nj("2xl"),xl:nj("4xl"),full:nj("full")},defaultProps:{size:"xs"}}
101),{definePartsStyle:nV,defineMultiStyleConfig:nK}=ig(r4.keys),nF=nK({baseStyle:nV({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:nY,defineMultiStyleConfig:nJ}=ig(r5.keys),nG=iv("form-control-color"),nQ=nJ({baseStyle:nY({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[nG.variable]:"colors.red.500",_dark:{[nG.variable]:"colors.red.300"},color:nG.reference},helperText:{mt:"2",[nG.variable]:"colors.gray.600",_dark:{[nG.variable]:"colors.whiteAlpha.600"},color:nG.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:nZ,defineMultiStyleConfig:nX}=ig(r8.keys),n$=iv("form-error-color"),n0=nX({baseStyle:nZ({text:{[n$.variable]:"colors.red.500",_dark:{[n$.variable]:"colors.red.300"},color:n$.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[n$.variable]:"colors.red.500",_dark:{[n$.variable]:"colors.red.300"},color:n$.reference}})}),{definePartsStyle:n1,defineMultiStyleConfig:n2}=ig(r6.keys),n3=iv("input-height"),n4=iv("input-font-size"),n5=iv("input-padding"),n8=iv("input-border-radius"),n6=n1({addon:{height:n3.reference,fontSize:n4.reference,px:n5.reference,borderRadius:n8.reference},field:{width:"100%",height:n3.reference,fontSize:n4.reference,px:n5.reference,borderRadius:n8.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),n7={[n4.variable]:"fontSizes.lg",[n5.variable]:"space.4",[n8.variable]:"radii.md",[n3.variable]:"sizes.12"},n9={[n4.variable]:"fontSizes.md",[n5.variable]:"space.4",[n8.variable]:"radii.md",[n3.variable]:"sizes.10"},oe={[n4.variable]:"fontSizes.sm",[n5.variable]:"space.3",[n8.variable]:"radii.sm",[n3.variable]:"sizes.8"},ot={[n4.variable]:"fontSizes.xs",[n5.variable]:"space.2",[n8.variable]:"radii.sm",[n3.variable]:"sizes.6"};function or(e){let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||i9("blue.500","blue.300")(e),errorBorderColor:r||i9("red.500","red.300")(e)}}let oi=n2({baseStyle:n6,sizes:{lg:n1({field:n7,group:n7}),md:n1({field:n9,group:n9}),sm:n1({field:oe,group:oe}),xs:n1({field:ot,group:ot})},variants:{outline:n1(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=or(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:i9("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:iP(t,i),boxShadow:`0 0 0 1px ${iP(t,i)}`},_focusVisible:{zIndex:1,borderColor:iP(t,r),boxShadow:`0 0 0 1px ${iP(t,r)}`}},addon:{border:"1px solid",borderColor:i9("inherit","whiteAlpha.50")(e),bg:i9("gray.100","whiteAlpha.300")(e)}}}),filled:n1(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=or(e);return{field:{border:"2px solid",borderColor:"transparent",bg:i9("gray.100","whiteAlpha.50")(e),_hover:{bg:i9("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:iP(t,i)},_focusVisible:{bg:"transparent",borderColor:iP(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:i9("gray.100","whiteAlpha.50")(e)}}}),flushed:n1(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=or(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:iP(t,i),boxShadow:`0px 1px 0px 0px ${iP(t,i)}`},_focusVisible:{borderColor:iP(t,r),boxShadow:`0px 1px 0px 0px ${iP(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:n1({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),on=iv("kbd-bg"),oo={[on.variable]:"colors.gray.100",_dark:{[on.variable]:"colors.whiteAlpha.100"},bg:on.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},{defineMultiStyleConfig:oa,definePartsStyle:os}
101=ig(r7.keys),ol=oa({baseStyle:os({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:oc,definePartsStyle:od}=ig(r9.keys),ou=iv("menu-bg"),oh=iv("menu-shadow"),op=oc({baseStyle:od({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[ou.variable]:"#fff",[oh.variable]:"shadows.sm",_dark:{[ou.variable]:"colors.gray.700",[oh.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:ou.reference,boxShadow:oh.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[ou.variable]:"colors.gray.100",_dark:{[ou.variable]:"colors.whiteAlpha.100"}},_active:{[ou.variable]:"colors.gray.200",_dark:{[ou.variable]:"colors.whiteAlpha.200"}},_expanded:{[ou.variable]:"colors.gray.100",_dark:{[ou.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:ou.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:of,definePartsStyle:og}=ig(ie.keys),om=iv("modal-bg"),oy=iv("modal-shadow"),ob={bg:"blackAlpha.600",zIndex:"modal"},ov=e=>{let{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}},ow=e=>{let{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[om.variable]:"colors.white",[oy.variable]:"shadows.lg",_dark:{[om.variable]:"colors.gray.700",[oy.variable]:"shadows.dark-lg"},bg:om.reference,boxShadow:oy.reference}},ox={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},oS={position:"absolute",top:"2",insetEnd:"3"},oA=e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},ok={px:"6",py:"4"};function oE(e){return"full"===e?og({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):og({dialog:{maxW:e}})}let oI=of({baseStyle:og(e=>({overlay:ob,dialogContainer:iV(ov,e),dialog:iV(ow,e),header:ox,closeButton:oS,body:iV(oA,e),footer:ok})),sizes:{xs:oE("xs"),sm:oE("sm"),md:oE("md"),lg:oE("lg"),xl:oE("xl"),"2xl":oE("2xl"),"3xl":oE("3xl"),"4xl":oE("4xl"),"5xl":oE("5xl"),"6xl":oE("6xl"),full:oE("full")},defaultProps:{size:"md"}});function oM(e){return Array.isArray(e)}function oT(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!oM(e)}function oN(e){return oT(e)&&e.reference?e.reference:String(e)}let o_=(e,...t)=>t.map(oN).join(` ${e} `).replace(/calc/g,""),oC=(...e)=>`calc(${o_("+",...e)})`,oO=(...e)=>`calc(${o_("-",...e)})`,oP=(...e)=>`calc(${o_("*",...e)})`,oD=(...e)=>`calc(${o_("/",...e)})`,oj=e=>{let t=oN(e);return null==t||Number.isNaN(parseFloat(t))?oP(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},oR=Object.assign(e=>({add:(...t)=>oR(oC(e,...t)),subtract:(...t)=>oR(oO(e,...t)),multiply:(...t)=>oR(oP(e,...t)),divide:(...t)=>oR(oD(e,...t)),negate:()=>oR(oj(e)),toString:()=>e.toString()}),{add:oC,subtract:oO,multiply:oP,divide:oD,negate:oj}),oz={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:oL,definePartsStyle:oB}=ig(it.keys),oU=nA("number-input-stepper-width"),oq=nA("number-input-input-padding"),oW=oR(oU).add("0.5rem").toString(),oH=nA("number-input-bg"),oV=nA("number-input-color"),oK=nA("number-input-border-color"),oF={[oU.variable]:"sizes.6",[oq.variable]:oW},oY=e=>iV(oi.baseStyle,e)?.field??{}
101,oJ={width:oU.reference},oG={borderStart:"1px solid",borderStartColor:oK.reference,color:oV.reference,bg:oH.reference,[oV.variable]:"colors.chakra-body-text",[oK.variable]:"colors.chakra-border-color",_dark:{[oV.variable]:"colors.whiteAlpha.800",[oK.variable]:"colors.whiteAlpha.300"},_active:{[oH.variable]:"colors.gray.200",_dark:{[oH.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}};function oQ(e){let t=oi.sizes?.[e],r={lg:"md",md:"md",sm:"sm",xs:"sm"},i=t.field?.fontSize??"md",n=oz.fontSizes[i];return oB({field:{...t.field,paddingInlineEnd:oq.reference,verticalAlign:"top"},stepper:{fontSize:oR(n).multiply(.75).toString(),_first:{borderTopEndRadius:r[e]},_last:{borderBottomEndRadius:r[e],mt:"-1px",borderTopWidth:1}}})}let oZ=oL({baseStyle:oB(e=>({root:oF,field:iV(oY,e)??{},stepperGroup:oJ,stepper:oG})),sizes:{xs:oQ("xs"),sm:oQ("sm"),md:oQ("md"),lg:oQ("lg")},variants:oi.variants,defaultProps:oi.defaultProps}),oX={baseStyle:{...oi.baseStyle?.field,textAlign:"center"},sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:{outline:e=>iV(oi.variants?.outline,e)?.field??{},flushed:e=>iV(oi.variants?.flushed,e)?.field??{},filled:e=>iV(oi.variants?.filled,e)?.field??{},unstyled:oi.variants?.unstyled.field??{}},defaultProps:oi.defaultProps},{defineMultiStyleConfig:o$,definePartsStyle:o0}=ig(ir.keys),o1=nA("popper-bg"),o2=nA("popper-arrow-bg"),o3=nA("popper-arrow-shadow-color"),o4=o$({baseStyle:o0({popper:{zIndex:"popover"},content:{[o1.variable]:"colors.white",bg:o1.reference,[o2.variable]:o1.reference,[o3.variable]:"colors.gray.200",_dark:{[o1.variable]:"colors.gray.700",[o3.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{defineMultiStyleConfig:o5,definePartsStyle:o8}=ig(ii.keys),o6={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},o7=o8(e=>({label:o6,filledTrack:{transitionProperty:"common",transitionDuration:"slow",...(e=>{let{colorScheme:t,theme:r,isIndeterminate:i,hasStripe:n}=e,o=i9(ij(),ij("1rem","rgba(0,0,0,0.1)"))(e),a=i9(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
102    to right,
103    transparent 0%,
104    ${iP(r,a)} 50%,
105    transparent 100%
106  )`;return{...!i&&n&&o,...i?{bgImage:s}:{bgColor:a}}})(e)},track:{bg:i9("gray.100","whiteAlpha.300")(e)}})),o9=o5({sizes:{xs:o8({track:{h:"1"}}),sm:o8({track:{h:"2"}}),md:o8({track:{h:"3"}}),lg:o8({track:{h:"4"}})},baseStyle:o7,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ae,definePartsStyle:at}=ig(io.keys),ar=ae({baseStyle:at(e=>{let t;return{label:nx.baseStyle?.(e).label,container:nx.baseStyle?.(e).container,control:{...t=iV(nx.baseStyle,e)?.control,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}}),sizes:{md:at({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:at({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:at({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ai,definePartsStyle:an}=ig(ia.keys),ao=iv("select-bg"),aa=an({field:{...oi.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ao.reference,[ao.variable]:"colors.white",_dark:{[ao.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ao.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),as={paddingInlineEnd:"8"},al=ai({baseStyle:aa,sizes:{lg:{...oi.sizes?.lg,field:{...oi.sizes?.lg.field,...as}},md:{...oi.sizes?.md,field:{...oi.sizes?.md.field,...as}},sm:{...oi.sizes?.sm,field:{...oi.sizes?.sm.field,...as}},xs:{...oi.sizes?.xs,field:{...oi.sizes?.xs.field,...as},icon:{insetEnd:"1"}}},variants:oi.variants,defaultProps:oi.defaultProps}),ac=iv("skeleton-start-color"),ad=iv("skeleton-end-color"),au={[ac.variable]:"colors.gray.100",[ad.variable]:"colors.gray.400",_dark:{[ac.variable]:"colors.gray.800",[ad.variable]:"colors.gray.600"},background:ac.reference,borderColor:ad.reference,opacity:.7,borderRadius:"sm"},ah=iv("skip-link-bg"),ap={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[ah.variable]:"colors.white",_dark:{[ah.variable]:"colors.gray.700"},bg:ah.reference}};function af(e){return oT(e)&&e.reference?e.reference:String(e)}let ag=(e,...t)=>t.map(af).join(` ${e} `).replace(/calc/g,""),am=(...e)=>`calc(${ag("+",...e)})`,ay=(...e)=>`calc(${ag("-",...e)})`,ab=(...e)=>`calc(${ag("*",...e)})`,av=(...e)=>`calc(${ag("/",...e)})`,aw=e=>{let t=af(e);return null==t||Number.isNaN(parseFloat(t))?ab(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ax=Object.assign(e=>({add:(...t)=>ax(am(e,...t)),subtract:(...t)=>ax(ay(e,...t)),multiply:(...t)=>ax(ab(e,...t)),divide:(...t)=>ax(av(e,...t)),negate:()=>ax(aw(e)),toString:()=>e.toString()}),{add:am,subtract:ay,multiply:ab,divide:av,negate:aw}),{defineMultiStyleConfig:aS,definePartsStyle:aA}=ig(is.keys),ak=iv("slider-thumb-size"),aE=iv("slider-track-size"),aI=iv("slider-bg"),aM=aS({baseStyle:aA(e=>({container:(e=>{let{orientation:t}=e;
106return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ne({orientation:t,vertical:{h:"100%",px:ax(ak.reference).divide(2).toString()},horizontal:{w:"100%",py:ax(ak.reference).divide(2).toString()}})}})(e),track:{...ne({orientation:e.orientation,horizontal:{h:aE.reference},vertical:{w:aE.reference}}),overflow:"hidden",borderRadius:"sm",[aI.variable]:"colors.gray.200",_dark:{[aI.variable]:"colors.whiteAlpha.200"},_disabled:{[aI.variable]:"colors.gray.300",_dark:{[aI.variable]:"colors.whiteAlpha.300"}},bg:aI.reference},thumb:(e=>{let{orientation:t}=e;return{...ne({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:ak.reference,h:ak.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}})(e),filledTrack:(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[aI.variable]:`colors.${t}.500`,_dark:{[aI.variable]:`colors.${t}.200`},bg:aI.reference}})(e)})),sizes:{lg:aA({container:{[ak.variable]:"sizes.4",[aE.variable]:"sizes.1"}}),md:aA({container:{[ak.variable]:"sizes.3.5",[aE.variable]:"sizes.1"}}),sm:aA({container:{[ak.variable]:"sizes.2.5",[aE.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),aT=nA("spinner-size"),aN={width:[aT.reference],height:[aT.reference]},a_={xs:{[aT.variable]:"sizes.3"},sm:{[aT.variable]:"sizes.4"},md:{[aT.variable]:"sizes.6"},lg:{[aT.variable]:"sizes.8"},xl:{[aT.variable]:"sizes.12"}},{defineMultiStyleConfig:aC,definePartsStyle:aO}=ig(il.keys),aP=aC({baseStyle:aO({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:aO({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),{defineMultiStyleConfig:aD,definePartsStyle:aj}=ig(["stepper","step","title","description","indicator","separator","icon","number"]),aR=iv("stepper-indicator-size"),az=iv("stepper-icon-size"),aL=iv("stepper-title-font-size"),aB=iv("stepper-description-font-size"),aU=iv("stepper-accent-color"),aq=aD({baseStyle:aj(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[aU.variable]:`colors.${e}.500`,_dark:{[aU.variable]:`colors.${e}.200`}},title:{fontSize:aL.reference,fontWeight:"medium"},description:{fontSize:aB.reference,color:"chakra-subtle-text"},number:{fontSize:aL.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:az.reference,height:az.reference},indicator:{flexShrink:0,borderRadius:"full",width:aR.reference,height:aR.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:aU.reference},"&[data-status=complete]":{bg:aU.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:aU.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${aR.reference} - 8px)`,top:`calc(${aR.reference} + 4px)`,insetStart:`calc(${aR.reference} / 2 - 1px)`}}})),sizes:{xs:aj({stepper:{[aR.variable]:"sizes.4",[az.variable]:"sizes.3",[aL.variable]:"fontSizes.xs",[aB.variable]:"fontSizes.xs"}}),sm:aj({stepper:{[aR.variable]:"sizes.6",[az.variable]:"sizes.4",[aL.variable]:"fontSizes.sm",[aB.variable]:"fontSizes.xs"}}),md:aj({stepper:{[aR.variable]:"sizes.8",[az.variable]:"sizes.5",[aL.variable]:"fontSizes.md",[aB.variable]:"fontSizes.sm"}}),lg:aj({stepper:{[aR.variable]:"sizes.10",[az.variable]:"sizes.6",[aL.variable]:"fontSizes.lg",[aB.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aW,definePartsStyle:aH}=ig(ic.keys),aV=nA("switch-track-width"),aK=nA("switch-track-height"),aF=nA("switch-track-diff"),aY=oR.subtract(aV,aK),aJ=nA("switch-thumb-x"),aG=nA("switch-bg"),aQ={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[aK.reference],height:[aK.reference],_checked:{transform:`translateX(${aJ.reference})`}},aZ=aW({baseStyle:aH(e=>({container:{[aF.variable]:aY,[aJ.variable]:aF.reference,_rtl:{[aJ.variable]:oR(aF).negate().toString()}},track:(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[aV.reference],height:[aK.reference],transitionProperty:"common",transitionDuration:"fast",[aG.variable]:"colors.gray.300",_dark:{[aG.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[aG.variable]:`colors.${t}.500`,_dark:{[aG.variable]:`colors.${t}.200`}},bg:aG.reference}})(e),thumb:aQ})),sizes:{sm:aH({container:{[aV.variable]:"1.375rem",[aK.variable]:"sizes.3"}}),md:aH({container:{[aV.variable]:"1.875rem",[aK.variable]:"sizes.4"}}),lg:aH({container:{[aV.variable]:"2.875rem",[aK.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aX,definePartsStyle:a$}=ig(id.keys),a0=a$({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),a1={"&[data-is-numeric=true]":{textAlign:"end"}},a2=aX({baseStyle:a0,variants:{simple:a$(e=>{let{colorScheme:t}=e;return{th:{color:i9("gray.600","gray.400")(e),borderBottom:"1px",borderColor:i9(`${t}.100`,`${t}.700`)(e),...a1},td:{borderBottom:"1px",borderColor:i9(`${t}.100`,`${t}.700`)(e),...a1},caption:{color:i9("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:a$(e=>{let{colorScheme:t}=e;return{th:{color:i9("gray.600","gray.400")(e),borderBottom:"1px",borderColor:i9(`${t}.100`,`${t}.700`)(e),...a1},td:{borderBottom:"1px",borderColor:i9(`${t}.100`,`${t}.700`)(e),...a1},caption:{color:i9("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:i9(`${t}.100`,`${t}.700`)(e)},td:{background:i9(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:{}},sizes:{sm:a$({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}
106),md:a$({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:a$({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),a3=iv("tabs-color"),a4=iv("tabs-bg"),a5=iv("tabs-border-color"),{defineMultiStyleConfig:a8,definePartsStyle:a6}=ig(iu.keys),a7={p:4},a9=a8({baseStyle:a6(e=>({root:(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}})(e),tab:(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}})(e),tablist:(e=>{let{align:t="start",orientation:r}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===r?"column":"row"}})(e),tabpanel:a7})),sizes:{sm:a6({tab:{py:1,px:4,fontSize:"sm"}}),md:a6({tab:{fontSize:"md",py:2,px:4}}),lg:a6({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:a6(e=>{let{colorScheme:t,orientation:r}=e,i="vertical"===r,n=i?"borderStart":"borderBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",[i?"marginStart":"marginBottom"]:"-2px",_selected:{[a3.variable]:`colors.${t}.600`,_dark:{[a3.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[a4.variable]:"colors.gray.200",_dark:{[a4.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:a3.reference,bg:a4.reference}}}),enclosed:a6(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[a5.variable]:"transparent",_selected:{[a3.variable]:`colors.${t}.600`,[a5.variable]:"colors.white",_dark:{[a3.variable]:`colors.${t}.300`,[a5.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:a5.reference},color:a3.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":a6(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[a4.variable]:"colors.gray.50",_dark:{[a4.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[a4.variable]:"colors.white",[a3.variable]:`colors.${t}.600`,_dark:{[a4.variable]:"colors.gray.800",[a3.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:a3.reference,bg:a4.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":a6(e=>{let{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:iP(r,`${t}.700`),bg:iP(r,`${t}.100`)}}}}),"solid-rounded":a6(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[a3.variable]:"colors.gray.600",_dark:{[a3.variable]:"inherit"},_selected:{[a3.variable]:"colors.white",[a4.variable]:`colors.${t}.600`,_dark:{[a3.variable]:"colors.gray.800",[a4.variable]:`colors.${t}.300`}},color:a3.reference,bg:a4.reference}}}),unstyled:a6({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:se,definePartsStyle:st}=ig(ih.keys),sr=iv("tag-bg"),si=iv("tag-color"),sn=iv("tag-shadow"),so=iv("tag-min-height"),sa=iv("tag-min-width"),ss=iv("tag-font-size"),sl=iv("tag-padding-inline"),sc=st({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[si.variable]:i3.color.reference,[sr.variable]:i3.bg.reference,[sn.variable]:i3.shadow.reference,color:si.reference,bg:sr.reference,boxShadow:sn.reference,borderRadius:"md",minH:so.reference,minW:sa.reference,fontSize:ss.reference,px:sl.reference,_focusVisible:{[sn.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),sd={sm:st({container:{[so.variable]:"sizes.5",[sa.variable]:"sizes.5",[ss.variable]:"fontSizes.xs",[sl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:st({container:{[so.variable]:"sizes.6",[sa.variable]:"sizes.6",[ss.variable]:"fontSizes.sm",[sl.variable]:"space.2"}}),lg:st({container:{[so.variable]:"sizes.8",[sa.variable]:"sizes.8",[ss.variable]:"fontSizes.md",[sl.variable]:"space.3"}})},su=se({variants:{subtle:st(e=>({container:i4.variants?.subtle(e)})),solid:st(e=>({container:i4.variants?.solid(e)})),outline:st(e=>({container:i4.variants?.outline(e)}))},baseStyle:sc,sizes:sd,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),sh={...oi.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},sp={outline:e=>oi.variants?.outline(e).field??{},flushed:e=>oi.variants?.flushed(e).field??{},filled:e=>oi.variants?.filled(e).field??{},unstyled:oi.variants?.unstyled.field??{}},sf={xs:oi.sizes?.xs.field??{},sm:oi.sizes?.sm.field??{},md:oi.sizes?.md.field??{},lg:oi.sizes?.lg.field??{}},sg=nA("tooltip-bg"),sm=nA("tooltip-fg"),sy=nA("popper-arrow-bg"),sb={bg:sg.reference,color:sm.reference,[sg.variable]:"colors.gray.700",[sm.variable]:"colors.whiteAlpha.900",_dark:{[sg.variable]:"colors.gray.300",[sm.variable]:"colors.gray.9
10600"},[sy.variable]:sg.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},sv={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},...oz,sizes:iH,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:iW,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},sw={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},sx={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"}
106,"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, *::after":{borderColor:"chakra-border-color"}}},sS={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},sA={semanticTokens:sw,direction:"ltr",...sv,components:{Accordion:ib,Alert:iq,Avatar:i2,Badge:i4,Breadcrumb:i7,Button:{baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:nt,outline:e=>{let{colorScheme:t}=e,r=i9("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...iV(nt,e)}},solid:e=>{let{colorScheme:t}=e;if("gray"===t){let t=i9("gray.100","whiteAlpha.200")(e);return{bg:t,color:i9("gray.800","whiteAlpha.900")(e),_hover:{bg:i9("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:i9("gray.300","whiteAlpha.400")(e)}}}let{bg:r=`${t}.500`,color:i="white",hoverBg:n=`${t}.600`,activeBg:o=`${t}.700`}=nr[t]??{},a=i9(r,`${t}.200`)(e);return{bg:a,color:i9(i,"gray.800")(e),_hover:{bg:i9(n,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:i9(o,`${t}.400`)(e)}}},link:e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:i9(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:i9(`${t}.700`,`${t}.500`)(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},Checkbox:nx,CloseButton:{baseStyle:nI,sizes:nM,defaultProps:{size:"md"}},Code:{baseStyle:n_,variants:nT,defaultProps:nN},Container:{baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Divider:{baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},Drawer:nH,Editable:nF,Form:nQ,FormError:n0,FormLabel:{baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Heading:{baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},Input:oi,Kbd:{baseStyle:oo},Link:{baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},List:ol,Menu:op,Modal:oI,NumberInput:oZ,PinInput:oX,Popover:o4,Progress:o9,Radio:ar,Select:al,Skeleton:{baseStyle:au},SkipLink:{baseStyle:ap},Slider:aM,Spinner:{baseStyle:aN,sizes:a_,defaultProps:{size:"md"}},Stat:aP,Switch:aZ,Table:a2,Tabs:a9,Tag:su,Textarea:{baseStyle:sh,sizes:sf,variants:sp,defaultProps:{size:"md",variant:"outline"}},Tooltip:{baseStyle:sb},Card:np,Stepper:aq},styles:sx,config:sS},sk={semanticTokens:sw,direction:"ltr",components:{},...sv,styles:sx,config:sS};var sE=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{i.insertRule(e,i.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,132 bytes, line 106
106,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),sI=Math.abs,sM=String.fromCharCode,sT=Object.assign;function sN(e,t,r){return e.replace(t,r)}function s_(e,t){return e.indexOf(t)}function sC(e,t){return 0|e.charCodeAt(t)}function sO(e,t,r){return e.slice(t,r)}function sP(e){return e.length}function sD(e,t){return t.push(e),e}var sj=1,sR=1,sz=0,sL=0,sB=0,sU="";function sq(e,t,r,i,n,o,a){return{value:e,root:t,parent:r,type:i,props:n,children:o,line:sj,column:sR,length:a,return:""}}function sW(e,t){return sT(sq("",null,null,"",null,null,0),e,{length:-e.length},t)}function sH(){return sB=sL<sz?sC(sU,sL++):0,sR++,10===sB&&(sR=1,sj++),sB}function sV(){return sC(sU,sL)}function sK(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sF(e){return sj=sR=1,sz=sP(sU=e),sL=0,[]}function sY(e){var t,r;return(t=sL-1,r=function e(t){for(;sH();)switch(sB){case t:return sL;case 34:case 39:34!==t&&39!==t&&e(sB);break;case 40:41===t&&e(t);break;case 92:sH()}return sL}(91===e?e+2:40===e?e+1:e),sO(sU,t,r)).trim()}var sJ="-ms-",sG="-moz-",sQ="-webkit-",sZ="comm",sX="rule",s$="decl",s0="@keyframes";function s1(e,t){for(var r="",i=e.length,n=0;n<i;n++)r+=t(e[n],n,e,t)||"";return r}function s2(e,t,r,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case s$:return e.return=e.return||e.value;case sZ:return"";case s0:return e.return=e.value+"{"+s1(e.children,i)+"}";case sX:e.value=e.props.join(",")}return sP(r=s1(e.children,i))?e.return=e.value+"{"+r+"}":""}function s3(e,t,r,i,n,o,a,s,l,c,d){for(var u=n-1,h=0===n?o:[""],p=h.length,f=0,g=0,m=0;f<i;++f)for(var y=0,b=sO(e,u+1,u=sI(g=a[f])),v=e;y<p;++y)(v=(g>0?h[y]+" "+b:sN(b,/&\f/g,h[y])).trim())&&(l[m++]=v);return sq(e,t,r,0===n?sX:s,l,c,d)}function s4(e,t,r,i){return sq(e,t,r,s$,sO(e,0,i),sO(e,i+1,-1),i)}var s5=function(e,t,r){for(var i=0,n=0;i=n,n=sV(),38===i&&12===n&&(t[r]=1),!sK(n);)sH();return sO(sU,e,sL)},s8=function(e,t){var r=-1,i=44;do switch(sK(i)){case 0:38===i&&12===sV()&&(t[r]=1),e[r]+=s5(sL-1,t,r);break;case 2:e[r]+=sY(i);break;case 4:if(44===i){e[++r]=58===sV()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=sM(i)}while(i=sH())return e},s6=function(e,t){var r;return r=s8(sF(e),t),sU="",r},s7=new WeakMap,s9=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||s7.get(r))&&!i){s7.set(e,!0);for(var n=[],o=s6(t,n),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=n[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},le=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},lt=[function(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case s$:e.return=function e(t,r){switch(45^sC(t,0)?(((r<<2^sC(t,0))<<2^sC(t,1))<<2^sC(t,2))<<2^sC(t,3):0){case 5103:return sQ+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return sQ+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return sQ+t+sG+t+sJ+t+t;case 6828:case 4268:return sQ+t+sJ+t+t;case 6165:return sQ+t+sJ+"flex-"+t+t;case 5187:return sQ+t+sN(t,/(\w+).+(:[^]+)/,sQ+"box-$1$2"+sJ+"flex-$1$2")+t;case 5443:return sQ+t+sJ+"flex-item-"+sN(t,/flex-|-self/,"")+t;case 4675:return sQ+t+sJ+"flex-line-pack"+sN(t,/align-content|flex-|-self/,"")+t;case 5548:return sQ+t+sJ+sN(t,"shrink","negative")+t;case 5292:return sQ+t+sJ+sN(t,"basis","preferred-size")+t;case 6060:return sQ+"box-"+sN(t,"-grow","")+sQ+t+sJ+sN(t,"grow","positive")+t;case 4554:return sQ+sN(t,/([^-])(transform)/g,"$1"+sQ+"$2")+t;case 6187:return sN(sN(sN(t,/(zoom-|grab)/,sQ+"$1"),/(image-set)/,sQ+"$1"),t,"")+t;case 5495:case 3959:return sN(t,/(image-set\([^]*)/,sQ+"$1$`$1");case 4968:return sN(sN(t,/(.+:)(flex-)?(.*)/,sQ+"box-pack:$3"+sJ+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+sQ+t+t;case 4095:case 3583:case 4068:case 2532:return sN(t,/(.+)-inline(.+)/,sQ+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(sP(t)-1-r>6)switch(sC(t,r+1)){case 109:if(45!==sC(t,r+4))break;case 102:return sN(t,/(.+:)(.+)-([^]+)/,"$1"+sQ+"$2-$3$1"+sG+(108==sC(t,r+3)?"$3":"$2-$3"))+t;case 115:return~s_(t,"stretch")?e(sN(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==sC(t,r+1))break;case 6444:switch(sC(t,sP(t)-3-(~s_(t,"!important")&&10))){case 107:return sN(t,":",":"+sQ)+t;case 101:return sN(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+sQ+(45===sC(t,14)?"inline-":"")+"box$3$1"+sQ+"$2$3$1"+sJ+"$2box$3")+t}break;case 5936:switch(sC(t,r+11)){case 114:return sQ+t+sJ+sN(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 6,412 bytes, line 106
106case 108:return sQ+t+sJ+sN(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return sQ+t+sJ+sN(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return sQ+t+sJ+t+t}return t}(e.value,e.length);break;case s0:return s1([sW(e,{value:sN(e.value,"@","@"+sQ)})],i);case sX:if(e.length){var n,o;return n=e.props,o=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return s1([sW(e,{props:[sN(t,/:(read-\w+)/,":"+sG+"$1")]})],i);case"::placeholder":return s1([sW(e,{props:[sN(t,/:(plac\w+)/,":"+sQ+"input-$1")]}),sW(e,{props:[sN(t,/:(plac\w+)/,":"+sG+"$1")]}),sW(e,{props:[sN(t,/:(plac\w+)/,sJ+"input-$1")]})],i)}return""},n.map(o).join("")}}}];function lr(){return(lr=Object.assign.bind()).apply(null,arguments)}var li=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var i=e(r);return t.set(r,i),i}};function ln(e,t,r){var i="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(i+=r+" ")}),i}e.i(781979);var lo=function(e,t,r){var i=e.key+"-"+t.name;!1===r&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},la=function(e,t,r){lo(e,t,r);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do e.insert(t===n?"."+i:"",n,e.sheet,!0),n=n.next;while(void 0!==n)}},ls=e.i(302212),ll={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lc=e.i(26277),ld=/[A-Z]|^ms/g,lu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lh=function(e){return 45===e.charCodeAt(1)},lp=function(e){return null!=e&&"boolean"!=typeof e},lf=(0,lc.default)(function(e){return lh(e)?e:e.replace(ld,"-$&").toLowerCase()}),lg=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(lu,function(e,t,r){return B={name:t,styles:r,next:B},t})}return 1===ll[e]||lh(e)||"number"!=typeof t||0===t?t:t+"px"};function lm(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return B={name:r.name,styles:r.styles,next:B},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)B={name:i.name,styles:i.styles,next:B},i=i.next;return r.styles+";"}return function(e,t,r){var i="";if(Array.isArray(r))for(var n=0;n<r.length;n++)i+=lm(e,t,r[n])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?i+=o+"{"+t[a]+"}":lp(a)&&(i+=lf(o)+":"+lg(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)lp(a[s])&&(i+=lf(o)+":"+lg(o,a[s])+";");else{var l=lm(e,t,a);switch(o){case"animation":case"animationName":i+=lf(o)+":"+l+";";break;default:i+=o+"{"+l+"}"}}}return i}(e,t,r);case"function":if(void 0!==e){var n=B,o=r(e);return B=n,lm(e,t,o)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var ly=/label:\s*([^\s;{]+)\s*(;|$)/g;function lb(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,n=!0,o="";B=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=lm(r,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=lm(r,t,e[s]),n&&(o+=a[s]);ly.lastIndex=0;for(var l="";null!==(i=ly.exec(o));)l+="-"+i[1];return{name:(0,ls.default)(o)+l,styles:o,next:B}}var lv=!!e_.useInsertionEffect&&e_.useInsertionEffect,lw=lv||function(e){return e()},lx=lv||e_.useLayoutEffect,lS=e_.createContext("u">typeof HTMLElement?function(e){var t,r,i,n,o,a=e.key;if("css"===a){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var l=e.stylisPlugins||lt,c={},d=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)c[t[r]]=!0;d.push(e)});var u=(r=(t=[s9,le].concat(l,[s2,(i=function(e){o.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,i,n,o){for(var a="",s=0;s<r;s++)a+=t[s](e,i,n,o)||"";return a}),h=function(e){var t,r;return s1((r=function e(t,r,i,n,o,a,s,l,c){for(var d,u=0,h=0,p=s,f=0,g=0,m=0,y=1,b=1,v=1,w=0,x="",S=o,A=a,k=n,E=x;b;)switch(m=w,w=sH()){case 40:if(108!=m&&58==sC(E,p-1)){-1!=s_(E+=sN(sY(w),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=sY(w);break;case 9:case 10:case 13:case 32:E+=function(e){for(;sB=sV();)if(sB<33)sH();else break;return sK(e)>2||sK(sB)>3?"":" "}(m);break;case 92:E+=function(e,t){for(var r;--t&&sH()&&!(sB<48)&&!(sB>102)&&(!(sB>57)||!(sB<65))&&(!(sB>70)||!(sB<97)););return r=sL+(t<6&&32==sV()&&32==sH()),sO(sU,e,r)}(sL-1,7);continue;case 47:switch(sV()){case 42:case 47:sD((d=function(e,t){for(;sH();)if(e+sB===57)break;else if(e+sB===84&&47===sV())break;return"/*"+sO(sU,t,sL-1)+"*"+sM(47===e?e:sH())}(sH(),sL),sq(d,r,i,sZ,sM(sB),sO(d,2,-2),0)),c);break;default:E+="/"}break;case 123*y:l[u++]=sP(E)*v;case 125*y:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+h:-1==v&&(E=sN(E,/\f/g,"")),g>0&&sP(E)-p&&sD(g>32?s4(E+";",n,i,p-1):s4(sN(E," ","")+";",n,i,p-2),c);break;case 59:E+=";";default:if(sD(k=s3(E,r,i,u,h,o,l,x,S=[],A=[],p),a),123===w)if(0===h)e(E,r,k,k,S,a,p,l,A);else switch(99===f&&110===sC(E,3)?100:f){case 100:case 108:case 109:case 115:e(t,k,k,n&&sD(s3(t,k,k,0,0,o,l,x,o,S=[],p),A),o,A,p,l,n?S:A);break;default:e(E,k,k,k,[""],A,0,l,A)}}u=h=g=0,y=v=1,x=E="",p=s;break;case 58:p=1+sP(E),g=m;default:if(y<1){if(123==w)--y;else if(125==w&&0==y++&&125==(sB=sL>0?sC(sU,--sL):0,sR--,10===sB&&(sR=1,sj--),sB))continue}switch(E+=sM(w),w*y){case 38:v=h>0?1:(E+="\f",-1);break;case 44:l[u++]=(sP(E)-1)*v,v=1;break;case 64:45===sV()&&(E+=sY(sH())),f=sV(),h=p=sP(x=E+=function(e){for(;!sK(sV());)sH();return sO(sU,e,sL)}(sL)),w++;break;case 45:45===m&&2==sP(E)&&(y=0)}}return a}("",null,null,null,[""],t=sF(t=e),0,[0],t),sU="",r),u)}
106,p={key:a,sheet:new sE({key:a,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:c,registered:{},insert:function(e,t,r,i){o=r,h(e?e+"{"+t.styles+"}":t.styles),i&&(p.inserted[t.name]=!0)}};return p.sheet.hydrate(d),p}({key:"css"}):null);lS.Provider;var lA=function(e){return(0,e_.forwardRef)(function(t,r){return e(t,(0,e_.useContext)(lS),r)})},lk=e_.createContext({}),lE=li(function(e){return li(function(t){return"function"==typeof t?t(e):lr({},e,t)})}),lI=function(e){var t=e_.useContext(lk);return e.theme!==t&&(t=lE(t)(e.theme)),e_.createElement(lk.Provider,{value:t},e.children)},lM={}.hasOwnProperty,lT="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lN=function(e,t){var r={};for(var i in t)lM.call(t,i)&&(r[i]=t[i]);return r[lT]=e,r},l_=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return lo(t,r,i),lw(function(){return la(t,r,i)}),null},lC=lA(function(e,t,r){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var n=e[lT],o=[i],a="";"string"==typeof e.className?a=ln(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=lb(o,void 0,e_.useContext(lk));a+=t.key+"-"+s.name;var l={};for(var c in e)lM.call(e,c)&&"css"!==c&&c!==lT&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),e_.createElement(e_.Fragment,null,e_.createElement(l_,{cache:t,serialized:s,isStringTag:"string"==typeof n}),e_.createElement(n,l))});let lO=(0,e_.createContext)({});function lP(){let e=(0,e_.useContext)(lO);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}lO.displayName="ColorModeContext";let lD="chakra-ui-light",lj="chakra-ui-dark",lR="chakra-ui-color-mode",lz={ssr:!1,type:"localStorage",get(e){let t;if(!globalThis?.document)return e;try{t=localStorage.getItem(lR)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(lR,e)}catch(e){}}},lL=()=>{},lB=globalThis?.document?e_.useLayoutEffect:e_.useEffect;function lU(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}let lq=function(e){let{value:t,children:r,options:{useSystemColorMode:i,initialColorMode:n,disableTransitionOnChange:o}={},colorModeManager:a=lz}=e,s=(0,e_.useContext)(lS),l="dark"===n?"dark":"light",[c,d]=(0,e_.useState)(()=>lU(a,l)),[u,h]=(0,e_.useState)(()=>lU(a)),{getSystemTheme:p,setClassName:f,setDataset:g,addListener:m}=(0,e_.useMemo)(()=>(function(e={}){let{preventTransition:t=!0,nonce:r}=e,i={setDataset:e=>{let r=t?i.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,r?.()},setClassName(e){document.body.classList.add(e?lj:lD),document.body.classList.remove(e?lD:lj)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme:e=>i.query().matches??"dark"===e?"dark":"light",addListener(e){let t=i.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),void 0!==r&&(e.nonce=r),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return i})({preventTransition:o,nonce:s?.nonce}),[o,s?.nonce]),y="system"!==n||c?c:u,b=(0,e_.useCallback)(e=>{let t="system"===e?p():e;d(t),f("dark"===t),g(t),a.set(t)},[a,p,f,g]);lB(()=>{"system"===n&&h(p())},[]),(0,e_.useEffect)(()=>{let e=a.get();e?b(e):"system"===n?b("system"):b(l)},[a,l,n,b]);let v=(0,e_.useCallback)(()=>{b("dark"===y?"light":"dark")},[y,b]);(0,e_.useEffect)(()=>{if(i)return m(b)},[i,m,b]);let w=(0,e_.useMemo)(()=>({colorMode:t??y,toggleColorMode:t?lL:v,setColorMode:t?lL:b,forced:void 0!==t}),[y,v,b,t]);return(0,eN.jsx)(lO.Provider,{value:w,children:r})};lq.displayName="ColorModeProvider";var lW=function(e,t){var r=arguments;if(null==t||!lM.call(t,"css"))return e_.createElement.apply(void 0,r);var i=r.length,n=Array(i);n[0]=lC,n[1]=lN(e,t);for(var o=2;o<i;o++)n[o]=r[o];return e_.createElement.apply(null,n)};w=lW||(lW={}),x||(x=w.JSX||(w.JSX={}));var lH=lA(function(e,t){var r=lb([e.styles],void 0,e_.useContext(lk)),i=e_.useRef();return lx(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}},[t]),lx(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&la(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)},[t,r.name]),null});function lV(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return lb(t)}let lK=String.raw,lF=lK`
107  :root,
108  :host {
109    --chakra-vh: 100vh;
110  }
111
112  @supports (height: -webkit-fill-available) {
113    :root,
114    :host {
115      --chakra-vh: -webkit-fill-available;
116    }
117  }
118
119  @supports (height: -moz-fill-available) {
120    :root,
121    :host {
122      --chakra-vh: -moz-fill-available;
123    }
124  }
125
126  @supports (height: 100dvh) {
127    :root,
128    :host {
129      --chakra-vh: 100dvh;
130    }
131  }
132`,lY=()=>(0,eN.jsx)(lH,{styles:lF}),lJ=({scope:e=""})=>(0,eN.jsx)(lH,{styles:lK`
133      html {
134        line-height: 1.5;
135        -webkit-text-size-adjust: 100%;
136        font-family: system-ui, sans-serif;
137        -webkit-font-smoothing: antialiased;
138        text-rendering: optimizeLegibility;
139        -moz-osx-font-smoothing: grayscale;
140        touch-action: manipulation;
141      }
142
143      body {
144        position: relative;
145        min-height: 100%;
146        margin: 0;
147        font-feature-settings: "kern";
148      }
149
150      ${e} :where(*, *::before, *::after) {
151        border-width: 0;
152        border-style: solid;
153        box-sizing: border-box;
154        word-wrap: break-word;
155      }
156
157      main {
158        display: block;
159      }
160
161      ${e} hr {
162        border-top-width: 1px;
163        box-sizing: content-box;
164        height: 0;
165        overflow: visible;
166      }
167
168      ${e} :where(pre, code, kbd,samp) {
169        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
170        font-size: 1em;
171      }
172
173      ${e} a {
174        background-color: transparent;
175        color: inherit;
176        text-decoration: inherit;
177      }
178
179      ${e} abbr[title] {
180        border-bottom: none;
181        text-decoration: underline;
182        -webkit-text-decoration: underline dotted;
183        text-decoration: underline dotted;
184      }
185
186      ${e} :where(b, strong) {
187        font-weight: bold;
188      }
189
190      ${e} small {
191        font-size: 80%;
192      }
193
194      ${e} :where(sub,sup) {
195        font-size: 75%;
196        line-height: 0;
197        position: relative;
198        vertical-align: baseline;
199      }
200
201      ${e} sub {
202        bottom: -0.25em;
203      }
204
205      ${e} sup {
206        top: -0.5em;
207      }
208
209      ${e} img {
210        border-style: none;
211      }
212
213      ${e} :where(button, input, optgroup, select, textarea) {
214        font-family: inherit;
215        font-size: 100%;
216        line-height: 1.15;
217        margin: 0;
218      }
219
220      ${e} :where(button, input) {
221        overflow: visible;
222      }
223
224      ${e} :where(button, select) {
225        text-transform: none;
226      }
227
228      ${e} :where(
229          button::-moz-focus-inner,
230          [type="button"]::-moz-focus-inner,
231          [type="reset"]::-moz-focus-inner,
232          [type="submit"]::-moz-focus-inner
233        ) {
234        border-style: none;
235        padding: 0;
236      }
237
238      ${e} fieldset {
239        padding: 0.35em 0.75em 0.625em;
240      }
241
242      ${e} legend {
243        box-sizing: border-box;
244        color: inherit;
245        display: table;
246        max-width: 100%;
247        padding: 0;
248        white-space: normal;
249      }
250
251      ${e} progress {
252        vertical-align: baseline;
253      }
254
255      ${e} textarea {
256        overflow: auto;
257      }
258
259      ${e}
259 :where([type="checkbox"], [type="radio"]) {
260        box-sizing: border-box;
261        padding: 0;
262      }
263
264      ${e} input[type="number"]::-webkit-inner-spin-button,
265      ${e} input[type="number"]::-webkit-outer-spin-button {
266        -webkit-appearance: none !important;
267      }
268
269      ${e} input[type="number"] {
270        -moz-appearance: textfield;
271      }
272
273      ${e} input[type="search"] {
274        -webkit-appearance: textfield;
275        outline-offset: -2px;
276      }
277
278      ${e} input[type="search"]::-webkit-search-decoration {
279        -webkit-appearance: none !important;
280      }
281
282      ${e} ::-webkit-file-upload-button {
283        -webkit-appearance: button;
284        font: inherit;
285      }
286
287      ${e} details {
288        display: block;
289      }
290
291      ${e} summary {
292        display: list-item;
293      }
294
295      template {
296        display: none;
297      }
298
299      [hidden] {
300        display: none !important;
301      }
302
303      ${e} :where(
304          blockquote,
305          dl,
306          dd,
307          h1,
308          h2,
309          h3,
310          h4,
311          h5,
312          h6,
313          hr,
314          figure,
315          p,
316          pre
317        ) {
318        margin: 0;
319      }
320
321      ${e} button {
322        background: transparent;
323        padding: 0;
324      }
325
326      ${e} fieldset {
327        margin: 0;
328        padding: 0;
329      }
330
331      ${e} :where(ol, ul) {
332        margin: 0;
333        padding: 0;
334      }
335
336      ${e} textarea {
337        resize: vertical;
338      }
339
340      ${e} :where(button, [role="button"]) {
341        cursor: pointer;
342      }
343
344      ${e} button::-moz-focus-inner {
345        border: 0 !important;
346      }
347
348      ${e} table {
349        border-collapse: collapse;
350      }
351
352      ${e} :where(h1, h2, h3, h4, h5, h6) {
353        font-size: inherit;
354        font-weight: inherit;
355      }
356
357      ${e} :where(button, input, optgroup, select, textarea) {
358        padding: 0;
359        line-height: inherit;
360        color: inherit;
361      }
362
363      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
364        display: block;
365      }
366
367      ${e} :where(img, video) {
368        max-width: 100%;
369        height: auto;
370      }
371
372      [data-js-focus-visible]
373        :focus:not([data-focus-visible-added]):not(
374          [data-focus-visible-disabled]
375        ) {
376        outline: none;
377        box-shadow: none;
378      }
379
380      ${e} select::-ms-expand {
381        display: none;
382      }
383
384      ${lF}
385    `});function lG(e){let t,r;if(null==e)return e;let{unitless:i}=(t=parseFloat(e.toString()),{unitless:!(r=e.toString().replace(String(t),"")),value:t,unit:r});return i||"number"==typeof e?`${e}px`:e}let lQ=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,lZ=e=>Object.fromEntries(Object.entries(e).sort(lQ));function lX(e){let t=lZ(e);return Object.assign(Object.values(t),t)}function l$(e){return e?"number"==typeof(e=lG(e)??e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function l0(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${lG(e)})`),t&&r.push("and",`(max-width: ${lG(t)})`),r.join(" ")}var l1=e.i(451543),l1=l1;function l2(e,t,r={}){let{stop:i,getKey:n}=r;return function e(r,o=[]){if(oT(r)||Array.isArray(r)){let a={};for(let[s,l]of Object.entries(r)){let c=n?.(s)??s,d=[...o,c];if(i?.(r,d))return t(r,o);a[c]=e(l,d)}return a}return t(r,o)}(e)}let l3=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,l4=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,l5=(e,t)=>`${e}:focus-visible ${t}`,l8=(e,t)=>
385`${e}:focus-within ${t}`,l6=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,l7=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,l9=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,ce=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,ct=e=>ci(t=>e(t,"&"),"[role=group]","[data-group]",".group"),cr=e=>ci(t=>e(t,"~ &"),"[data-peer]",".peer"),ci=(e,...t)=>t.map(e).join(", "),cn={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:ct((e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`),_groupClosed:ct((e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`),_groupHover:ct(l3),_peerHover:cr(l3),_groupFocus:ct(l4),_peerFocus:cr(l4),_groupFocusVisible:ct(l5),_peerFocusVisible:cr(l5),_groupActive:ct(l6),_peerActive:cr(l6),_groupDisabled:ct(l7),_peerDisabled:cr(l7),_groupInvalid:ct(l9),_peerInvalid:cr(l9),_groupChecked:ct(ce),_peerChecked:cr(ce),_groupFocusWithin:ct(l8),_peerFocusWithin:cr(l8),_peerPlaceholderShown:cr((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},co=Object.keys(cn),ca=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function cs(e,t){return iv(String(e).replace(/\./g,"-"),void 0,t)}function cl(e,...t){return"function"==typeof e?e(...t):e}var l1=l1,l1=l1;let cc=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function cd(e){let{scale:t,transform:r,compose:i}=e;return(e,n)=>{let o=(r=>{let i=String(e),n=/!(important)?$/.test(i),o=cc(i),a=t?`${t}.${o}`:o,s=oT(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:e;return s=cc(s),n?`${s} !important`:s})(n),a=r?.(o,n)??o;return i&&(a=i(a,n)),a}}let cu=(...e)=>t=>e.reduce((e,t)=>t(e),t);function ch(e,t){return r=>{let i={property:r,scale:e};return i.transform=cd({scale:e,transform:t}),i}}let cp=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],cf={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},cg={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"}
385,cm={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},cy={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},cb=new Set(Object.values(cy)),cv=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),cw=e=>e.trim(),cx=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),cS=e=>t=>`${e}(${t})`,cA={filter:e=>"auto"!==e?e:cf,backdropFilter:e=>"auto"!==e?e:cg,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":cA.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...cp].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...cp].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){let t,r;if(null==e)return e;let{unitless:i}=(t=parseFloat(e.toString()),{unitless:!(r=e.toString().replace(String(t),"")),value:t,unit:r});return i||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||cv.has(e))return e;if(!(cx(e)||cv.has(e)))return`url('${e}')`;let r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=r?.[1],n=r?.[2];if(!i||!n)return e;let o=i.includes("-gradient")?i:`${i}-gradient`,[a,...s]=n.split(",").map(cw).filter(Boolean);if(s?.length===0)return e;let l=a in cy?cy[a]:a;s.unshift(l);let c=s.map(e=>{if(cb.has(e))return e;let r=e.indexOf(" "),[i,n]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=cx(n)?n:n&&n.split(" "),a=`colors.${i}`,s=a in t.__cssMap?t.__cssMap[a].varRef:i;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${o}(${c.join(", ")})`})(e,t??{}),blur:cS("blur"),opacity:cS("opacity"),brightness:cS("brightness"),contrast:cS("contrast"),dropShadow:cS("drop-shadow"),grayscale:cS("grayscale"),hueRotate:e=>cS("hue-rotate")(cA.degree(e)),invert:cS("invert"),saturate:cS("saturate"),sepia:cS("sepia"),bgImage:e=>null==e||cx(e)||cv.has(e)?e:`url(${e})`,outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){let{space:t,divide:r}=cm[e]??{},i={flexDirection:e};return t&&(i[t]=1),r&&(i[r]=1),i}},ck={borderWidths:ch("borderWidths"),borderStyles:ch("borderStyles"),colors:ch("colors"),borders:ch("borders"),gradients:ch("gradients",cA.gradient),radii:ch("radii",cA.px),space:ch("space",cu(cA.vh,cA.px)),spaceT:ch("space",cu(cA.vh,cA.px)),degreeT:e=>({property:e,transform:cA.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:cd({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:ch("sizes",cu(cA.vh,cA.px)),sizesT:ch("sizes",cu(cA.vh,cA.fraction)),shadows:ch("shadows"),logical:function(e){let{property:t,scale:r,transform:i}=e;return{scale:r,property:(({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t)(t),transform:r?cd({scale:r,compose:i}):i}},blur:ch("blur",cA.blur)},cE={background:ck.colors("background"),backgroundColor:ck.colors("backgroundColor"),backgroundImage:ck.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:cA.bgClip},bgSize:ck.prop("backgroundSize"),bgPosition:ck.prop("backgroundPosition"),bg:ck.colors("background"),bgColor:ck.colors("backgroundColor"),bgPos:ck.prop("backgroundPosition"),bgRepeat:ck.prop("backgroundRepeat"),bgAttachment:ck.prop("backgroundAttachment"),bgGradient:ck.gradients("backgroundImage"),bgClip:{transform:cA.bgClip}};Object.assign(cE,{bgImage:cE.backgroundImage,bgImg:cE.backgroundImage});let cI={border:ck.borders("border"),borderWidth:ck.borderWidths("borderWidth"),borderStyle:ck.borderStyles("borderStyle"),borderColor:ck.colors("borderColor"),borderRadius:ck.radii("borderRadius"),borderTop:ck.borders("borderTop"),borderBlockStart:ck.borders("borderBlockStart"),borderTopLeftRadius:ck.radii("borderTopLeftRadius"),borderStartStartRadius:ck.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ck.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ck.radii("borderTopRightRadius"),borderStartEndRadius:ck.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ck.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ck.borders("borderRight"),borderInlineEnd:ck.borders("borderInlineEnd"),borderBottom:ck.borders("borderBottom"),borderBlockEnd:ck.borders("borderBlockEnd"),borderBottomLeftRadius:ck.radii("borderBottomLeftRadius"),borderBottomRightRadius:ck.radii("borderBottomRightRadius"),borderLeft:ck.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ck.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ck.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ck.borders(["borderLeft","borderRight"]),borderInline:ck.borders("borderInline"),borderY:ck.borders(["borderTop","borderBottom"]),borderBlock:ck.borders("borderBlock"),borderTopWidth:ck.borderWidths("borderTopWidth"),borderBlockStartWidth:ck.borderWidths("borderBlockStartWidth"),borderTopColor:ck.colors("borderTopColor"),borderBlockStartColor:ck.colors("borderBlockStartColor"),borderTopStyle:ck.borderStyles("borderTopStyle"),borderBlockStartStyle:ck.borderStyles("borderBlockStartStyle"),borderBottomWidth:ck.borderWidths("borderBottomWidth"),borderBlockEndWidth:ck.borderWidths("borderBlockEndWidth"),borderBottomColor:ck.colors("borderBottomColor"),borderBlockEndColor:ck.colors("borderBlockEndColor"),borderBottomStyle:ck.borderStyles("borderBottomStyle"),borderBlockEndStyle:ck.borderStyles("borderBlockEndStyle"),borderLeftWidth:ck.borderWidths("borderLeftWidth"),borderInlineStartWidth:ck.borderWidths("borderInlineStartWidth"),borderLeftColor:ck.colors("borderLeftColor"),borderInlineStartColor:ck.colors("borderInlineStartColor"),borderLeftStyle:ck.borderStyles("borderLeftStyle"),borderInlineStartStyle:ck.borderStyles("borderInlineStartStyle"),borderRightWidth:ck.borderWidths("borderRightWidth"),borderInlineEndWidth:ck.borderWidths("borderInlineEndWidth"),borderRightColor:ck.colors("borderRightColor"),borderInlineEndColor:ck.colors("borderInlineEndColor"),borderRightStyle:ck.borderStyles("borderRightStyle"),borderInlineEndStyle:ck.borderStyles("borderInlineEndStyle"),borderTopRadius:ck.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ck.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ck.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ck.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(cI,{rounded:cI.borderRadius,roundedTop:cI.borderTopRadius,roundedTopLeft:cI.borderTopLeftRadius,roundedTopRight:cI.borderTopRightRadius,roundedTopStart:cI.borderStartStartRadius,roundedTopEnd:cI.borderStartEndRadius,roundedBottom:cI.borderBottomRadius,roundedBottomLeft:cI.borderBottomLeftRadius,roundedBottomRight:cI.borderBottomRightRadius,roundedBottomStart:cI.borderEndStartRadius,roundedBottomEnd:cI.borderEndEndRadius,roundedLeft:cI.borderLeftRadius,roundedRight:cI.borderRightRadius,roundedStart:cI.borderInlineStartRadius,roundedEnd:cI.borderInlineEndRadius,borderStart:cI.borderInlineStart,borderEnd:cI.borderInlineEnd,borderTopStartRadius:cI.borderStartStartRadius,borderTopEndRadius:cI.borderStartEndRadius,borderBottomStartRadius:cI.borderEndStartRadius,borderBottomEndRadius:cI.borderEndEndRadius,borderStartRadius:cI.borderInlineStartRadius,borderEndRadius:cI.borderInlineEndRadius,borderStartWidth:cI.borderInlineStartWidth,borderEndWidth:cI.borderInlineEndWidth,borderStartColor:cI.borderInlineStartColor,borderEndColor:cI.borderInlineEndColor,borderStartStyle:cI.borderInlineStartStyle,borderEndStyle:cI.borderInlineEndStyle});let cM={color:ck.colors("color"),textColor:ck.colors("color"),fill:ck.colors("fill"),stroke:ck.colors("stroke"),accentColor:ck.colors("accentColor"),textFillColor:ck.colors("textFillColor")},cT={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:cA.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ck.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ck.space("gap"),rowGap:ck.space("rowGap"),columnGap:ck.space("columnGap")};Object.assign(cT,{flexDir:cT.flexDirection});let cN={width:ck.sizesT("width"),inlineSize:ck.sizesT("inlineSize"),height:ck.sizes("height"),blockSize:ck.sizes("blockSize"),boxSize:ck.sizes(["width","height"]),minWidth:ck.sizes("minWidth"),minInlineSize:ck.sizes("minInlineSize"),minHeight:ck.sizes("minHeight"),minBlockSize:ck.sizes("minBlockSize"),maxWidth:ck.sizes("maxWidth"),maxInlineSize:ck.sizes("maxInlineSize"),maxHeight:ck.sizes("maxHeight"),maxBlockSize:ck.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>
385{let r=t.__breakpoints?.get(e)?.minW??e;return{[`@media screen and (min-width: ${r})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{let r=t.__breakpoints?.get(e)?._minW??e;return{[`@media screen and (max-width: ${r})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ck.propT("float",cA.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(cN,{w:cN.width,h:cN.height,minW:cN.minWidth,maxW:cN.maxWidth,minH:cN.minHeight,maxH:cN.maxHeight,overscroll:cN.overscrollBehavior,overscrollX:cN.overscrollBehaviorX,overscrollY:cN.overscrollBehaviorY});let c_={filter:{transform:cA.filter},blur:ck.blur("--chakra-blur"),brightness:ck.propT("--chakra-brightness",cA.brightness),contrast:ck.propT("--chakra-contrast",cA.contrast),hueRotate:ck.propT("--chakra-hue-rotate",cA.hueRotate),invert:ck.propT("--chakra-invert",cA.invert),saturate:ck.propT("--chakra-saturate",cA.saturate),dropShadow:ck.propT("--chakra-drop-shadow",cA.dropShadow),backdropFilter:{transform:cA.backdropFilter},backdropBlur:ck.blur("--chakra-backdrop-blur"),backdropBrightness:ck.propT("--chakra-backdrop-brightness",cA.brightness),backdropContrast:ck.propT("--chakra-backdrop-contrast",cA.contrast),backdropHueRotate:ck.propT("--chakra-backdrop-hue-rotate",cA.hueRotate),backdropInvert:ck.propT("--chakra-backdrop-invert",cA.invert),backdropSaturate:ck.propT("--chakra-backdrop-saturate",cA.saturate)},cC={ring:{transform:cA.ring},ringColor:ck.colors("--chakra-ring-color"),ringOffset:ck.prop("--chakra-ring-offset-width"),ringOffsetColor:ck.colors("--chakra-ring-offset-color"),ringInset:ck.prop("--chakra-ring-inset")},cO={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:cA.outline},outlineOffset:!0,outlineColor:ck.colors("outlineColor")},cP={gridGap:ck.space("gridGap"),gridColumnGap:ck.space("gridColumnGap"),gridRowGap:ck.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},cD=(S=function(e,t,r,i){let n="string"==typeof t?t.split("."):[t];for(i=0;i<n.length&&e;i+=1)e=e[n[i]];return void 0===e?r:e},l=new WeakMap,(e,t,r,i)=>{if(void 0===e)return S(e,t,r);l.has(e)||l.set(e,new Map);let n=l.get(e);if(n.has(t))return n.get(t);let o=S(e,t,r,i);return n.set(t,o),o}),cj={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},cR={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},cz=(e,t,r)=>{let i={},n=cD(e,t,{});for(let e in n)e in r&&null!=r[e]||(i[e]=n[e]);return i},cL={position:!0,pos:ck.prop("position"),zIndex:ck.prop("zIndex","zIndices"),inset:ck.spaceT("inset"),insetX:ck.spaceT(["left","right"]),insetInline:ck.spaceT("insetInline"),insetY:ck.spaceT(["top","bottom"]),insetBlock:ck.spaceT("insetBlock"),top:ck.spaceT("top"),insetBlockStart:ck.spaceT("insetBlockStart"),bottom:ck.spaceT("bottom"),insetBlockEnd:ck.spaceT("insetBlockEnd"),left:ck.spaceT("left"),insetInlineStart:ck.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ck.spaceT("right"),insetInlineEnd:ck.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(cL,{insetStart:cL.insetInlineStart,insetEnd:cL.insetInlineEnd});let cB={boxShadow:ck.shadows("boxShadow"),mixBlendMode:!0,blendMode:ck.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ck.prop("backgroundBlendMode"),opacity:!0};Object.assign(cB,{shadow:cB.boxShadow});let cU={margin:ck.spaceT("margin"),marginTop:ck.spaceT("marginTop"),marginBlockStart:ck.spaceT("marginBlockStart"),marginRight:ck.spaceT("marginRight"),marginInlineEnd:ck.spaceT("marginInlineEnd"),marginBottom:ck.spaceT("marginBottom"),marginBlockEnd:ck.spaceT("marginBlockEnd"),marginLeft:ck.spaceT("marginLeft"),marginInlineStart:ck.spaceT("marginInlineStart"),marginX:ck.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ck.spaceT("marginInline"),marginY:ck.spaceT(["marginTop","marginBottom"]),marginBlock:ck.spaceT("marginBlock"),padding:ck.space("padding"),paddingTop:ck.space("paddingTop"),paddingBlockStart:ck.space("paddingBlockStart"),paddingRight:ck.space("paddingRight"),paddingBottom:ck.space("paddingBottom"),paddingBlockEnd:ck.space("paddingBlockEnd"),paddingLeft:ck.space("paddingLeft"),paddingInlineStart:ck.space("paddingInlineStart"),paddingInlineEnd:ck.space("paddingInlineEnd"),paddingX:ck.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ck.space("paddingInline"),paddingY:ck.space(["paddingTop","paddingBottom"]),paddingBlock:ck.space("paddingBlock")};Object.assign(cU,{m:cU.margin,mt:cU.marginTop,mr:cU.marginRight,me:cU.marginInlineEnd,marginEnd:cU.marginInlineEnd,mb:cU.marginBottom,ml:cU.marginLeft,ms:cU.marginInlineStart,marginStart:cU.marginInlineStart,mx:cU.marginX,my:cU.marginY,p:cU.padding,pt:cU.paddingTop,py:cU.paddingY,px:cU.paddingX,pb:cU.paddingBottom,pl:cU.paddingLeft,ps:cU.paddingInlineStart,paddingStart:cU.paddingInlineStart,pr:cU.paddingRight,pe:cU.paddingInlineEnd,paddingEnd:cU.paddingInlineEnd});let cq={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ck.spaceT("scrollMargin"),scrollMarginTop:ck.spaceT("scrollMarginTop"),scrollMarginBottom:ck.spaceT("scrollMarginBottom"),scrollMarginLeft:ck.spaceT("scrollMarginLeft"),scrollMarginRight:ck.spaceT("scrollMarginRight"),scrollMarginX:ck.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ck.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ck.spaceT("scrollPadding"),scrollPaddingTop:ck.spaceT("scrollPaddingTop"),scrollPaddingBottom:ck.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ck.spaceT("scrollPaddingLeft"),scrollPaddingRight:ck.spaceT("scrollPaddingRight"),scrollPaddingX:ck.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ck.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},cW={fontFamily:ck.prop("fontFamily","fonts"),fontSize:ck.prop("fontSize","fontSizes",cA.px),fontWeight:ck.prop("fontWeight","fontWeights"),lineHeight:ck.prop("lineHeight","lineHeights"),letterSpacing:ck.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"}
385,property:"--chakra-line-clamp"}},cH={textDecorationColor:ck.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ck.shadows("textShadow")},cV={clipPath:!0,transform:ck.propT("transform",cA.transform),transformOrigin:!0,translateX:ck.spaceT("--chakra-translate-x"),translateY:ck.spaceT("--chakra-translate-y"),skewX:ck.degreeT("--chakra-skew-x"),skewY:ck.degreeT("--chakra-skew-y"),scaleX:ck.prop("--chakra-scale-x"),scaleY:ck.prop("--chakra-scale-y"),scale:ck.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ck.degreeT("--chakra-rotate")},cK={listStyleType:!0,listStylePosition:!0,listStylePos:ck.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ck.prop("listStyleImage")},cF={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ck.prop("transitionDuration","transition.duration"),transitionProperty:ck.prop("transitionProperty","transition.property"),transitionTimingFunction:ck.prop("transitionTimingFunction","transition.easing")},cY=(0,l1.default)({},cE,cI,cM,cT,cN,c_,cC,cO,cP,{srOnly:{transform:e=>!0===e?cj:"focusable"===e?cR:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>cz(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>cz(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>cz(t,e,r)}},cL,cB,cU,cq,cW,cH,cV,cK,cF);Object.keys(Object.assign({},cU,cN,cT,cP,cL));let cJ=[...Object.keys(cY),...co],cG={...cY,...cn},cQ=e=>e in cG,cZ=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),cX=(e,t)=>{let r;if(null==t)return t;let i=t=>e.__cssMap?.[t]?.varRef,[n,o]=function(e){let t=[],r="",i=!1;for(let n=0;n<e.length;n++){let o=e[n];"("===o?(i=!0,r+=o):")"===o?(i=!1,r+=o):","!==o||i?r+=o:(t.push(r),r="")}return(r=r.trim())&&t.push(r),t}(t);return i(n)??i(o)??o??i(r=t)??r},c$=e=>t=>(function(e){let{configs:t={},pseudos:r={},theme:i}=e,n=(e,o=!1)=>{let a=cl(e,i),s=(e=>{if(!e.__breakpoints)return a;let{isResponsive:t,toArrayValue:r,media:i}=e.__breakpoints,n={};for(let o in a){let s=cl(a[o],e);if(null==s)continue;if(!Array.isArray(s=oT(s)&&t(s)?r(s):s)){n[o]=s;continue}let l=s.slice(0,i.length).length;for(let e=0;e<l;e+=1){let t=i?.[e];if(!t){n[o]=s[e];continue}n[t]=n[t]||{},null!=s[e]&&(n[t][o]=s[e])}}return n})(i),l={};for(let e in s){let c=cl(s[e],i);e in r&&(e=r[e]),cZ(e,c)&&(c=cX(i,c));let d=t[e];if(!0===d&&(d={property:e}),oT(c)){l[e]=l[e]??{},l[e]=(0,l1.default)({},l[e],n(c,!0));continue}let u=d?.transform?.(c,i,a)??c;u=d?.processResult?n(u,!0):u;let h=cl(d?.property,i);if(!o&&d?.static){let e=cl(d.static,i);l=(0,l1.default)({},l,e)}if(h&&Array.isArray(h)){for(let e of h)l[e]=u;continue}if(h){"&"===h&&oT(u)?l=(0,l1.default)({},l,u):l[h]=u;continue}if(oT(u)){l=(0,l1.default)({},l,u);continue}l[e]=u}return l};return n})({theme:t,pseudos:cn,configs:cY})(e);function c0(e={}){let{name:t,strict:r=!0,hookName:i="useContext",providerName:n="Provider",errorMessage:o,defaultValue:a}=e,s=(0,e_.createContext)(a);return s.displayName=t,[s.Provider,function e(){let t=(0,e_.useContext)(s);if(!t&&r){let t=Error(o??`${i} returned \`undefined\`. Seems you forgot to wrap component within ${n}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}let c1=(A=function(e,t,r,i){let n="string"==typeof t?t.split("."):[t];for(i=0;i<n.length&&e;i+=1)e=e[n[i]];return void 0===e?r:e},c=new WeakMap,(e,t,r,i)=>{if(void 0===e)return A(e,t,r);c.has(e)||c.set(e,new Map);let n=c.get(e);if(n.has(t))return n.get(t);let o=A(e,t,r,i);return n.set(t,o),o});function c2(e){let{cssVarsRoot:t,theme:r,children:i}=e,n=(0,e_.useMemo)(()=>(function(e){let t=function(e){let{__cssMap:t,__cssVars:r,__breakpoints:i,...n}=e;return n}(e),{cssMap:r,cssVars:i}=function(e){var t;let r,i,n,o,a=(r=function(e){let t={};for(let r of ca)r in e&&(t[r]=e[r]);return t}(t=e),i=t.semanticTokens,n=e=>co.includes(e)||"default"===e,o={},l2(r,(e,t)=>{null!=e&&(o[t.join(".")]={isSemantic:!1,value:e})}),l2(i,(e,t)=>{null!=e&&(o[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(n)}),o),s=e.config?.cssVarPrefix,l={},c={};for(let[e,t]of Object.entries(a)){let{isSemantic:r,value:i}=t,{variable:n,reference:o}=cs(e,s);if(!r){if(e.startsWith("space")){let[t,...r]=e.split("."),a=`${t}.-${r.join(".")}`,s=ax.negate(i),l=ax.negate(o);c[a]={value:s,var:n,varRef:l}}l[n]=i,c[e]={value:i,var:n,varRef:o};continue}let d=oT(i)?i:{default:i};l=(0,l1.default)(l,Object.entries(d).reduce((t,[r,i])=>{if(!i)return t;let o=function(e,t){let r=[String(e).split(".")[0],t].join(".");if(!a[r])return t;let{reference:i}=cs(r,s);return i}(e,`${i}`);
385return"default"===r?t[n]=o:t[cn?.[r]??r]={[n]:o},t},{})),c[e]={value:o,var:n,varRef:o}}return{cssVars:l,cssMap:c}}(t);return Object.assign(t,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...i},__cssMap:r,__breakpoints:function(e){if(!e)return null;e.base=e.base??"0px";let t=lX(e),r=Object.entries(e).sort(lQ).map(([e,t],r,i)=>{let[,n]=i[r+1]??[];return n=parseFloat(n)>0?l$(n):void 0,{_minW:l$(t),breakpoint:e,minW:t,maxW:n,maxWQuery:l0(null,n),minWQuery:l0(t),minMaxQuery:l0(t,n)}}),i=new Set(Object.keys(lZ(e))),n=Array.from(i.values());return{keys:i,normalized:t,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>i.has(e))},asObject:lZ(e),asArray:lX(e),details:r,get:e=>r.find(t=>t.breakpoint===e),media:[null,...t.map(e=>l0(e)).slice(1)],toArrayValue(e){let t;if(!oT(e))throw Error("toArrayValue: value must be an object");let r=n.map(t=>e[t]??null);for(;null===((t=null==r?0:r.length)?r[t-1]:void 0);)r.pop();return r},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,r)=>{let i=n[r];return null!=i&&null!=t&&(e[i]=t),e},{})}}}(t.breakpoints)}),t})(r),[r]);return(0,eN.jsxs)(lI,{theme:n,children:[(0,eN.jsx)(c3,{root:t}),i]})}function c3({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,eN.jsx)(lH,{styles:e=>({[t]:e.__cssVars})})}let[c4,c5]=c0({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function c8(){let{colorMode:e}=lP();return(0,eN.jsx)(lH,{styles:t=>{let r=cl(c1(t,"styles.global"),{theme:t,colorMode:e});if(r)return c$(r)(t)}})}let[c6,c7]=c0({strict:!1,name:"PortalManagerContext"});function c9(e){let{children:t,zIndex:r}=e;return(0,eN.jsx)(c6,{value:{zIndex:r},children:t})}c9.displayName="PortalManager";let de=globalThis?.document?e_.useLayoutEffect:e_.useEffect,dt=(0,e_.createContext)({getDocument:()=>document,getWindow:()=>window});function dr(e){let{children:t,environment:r,disabled:i}=e,n=(0,e_.useRef)(null),o=(0,e_.useMemo)(()=>r||{getDocument:()=>n.current?.ownerDocument??document,getWindow:()=>n.current?.ownerDocument.defaultView??window},[r]),a=!i||!r;return(0,eN.jsxs)(dt.Provider,{value:o,children:[t,a&&(0,eN.jsx)("span",{id:"__chakra_env",hidden:!0,ref:n})]})}dt.displayName="EnvironmentContext",dr.displayName="EnvironmentProvider";let di=e=>{let{children:t,colorModeManager:r,portalZIndex:i,resetScope:n,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:d}=e,u=(0,eN.jsx)(dr,{environment:s,disabled:c,children:t});return(0,eN.jsx)(c2,{theme:a,cssVarsRoot:l,children:(0,eN.jsxs)(lq,{colorModeManager:r,options:a.config,children:[o?(0,eN.jsx)(lJ,{scope:n}):(0,eN.jsx)(lY,{}),!d&&(0,eN.jsx)(c8,{}),i?(0,eN.jsx)(c9,{zIndex:i,children:u}):u]})})},dn=(0,e_.createContext)({});function da(e){let t=(0,e_.useRef)(null);return null===t.current&&(t.current=e()),t.current}let ds="u">typeof window?e_.useLayoutEffect:e_.useEffect,dl=(0,e_.createContext)(null),dc=e=>"object"==typeof e&&null!==e;function dd(e){return dc(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var du=e_;let dh=(0,e_.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function dp(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class df extends du.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(dd(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=dd(e)&&e.offsetWidth||0,i=dd(e)&&e.offsetHeight||0,n=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(n.height),o.width=parseFloat(n.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=r-o.width-o.left,o.bottom=i-o.height-o.top,o.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function dg({children:e,isPresent:t,anchorX:r,anchorY:i,root:n,pop:o}){let a=(0,du.useId)(),s=(0,du.useRef)(null),l=(0,du.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=(0,du.useContext)(dh),d=function(...e){return e_.useCallback(function(...e){return t=>{let r=!1,i=e.map(e=>{let i=dp(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){let r=i[t];"function"==typeof r?r():dp(e[t],null)}}}}(...e),e)}(s,!1!==o?e.props?.ref??e?.ref:void 0);return(0,du.useInsertionEffect)(()=>{let{width:e,height:d,top:u,left:h,right:p,bottom:f,direction:g}=l.current;if(t||!1===o||!s.current||!e||!d)return;let m="rtl"===g,y="left"===r?m?`right: ${p}`:`left: ${h}`:m?`left: ${h}`:`right: ${p}`,b="bottom"===i?`bottom: ${f}`:`top: ${u}`;s.current.dataset.motionPopId=a;
385let v=document.createElement("style");c&&(v.nonce=c);let w=n??document.head;return w.appendChild(v),v.sheet&&v.sheet.insertRule(`
386          [data-motion-pop-id="${a}"] {
387            position: absolute !important;
388            width: ${e}px !important;
389            height: ${d}px !important;
390            ${y}px !important;
391            ${b}px !important;
392          }
393        `),()=>{s.current?.removeAttribute("data-motion-pop-id"),w.contains(v)&&w.removeChild(v)}},[t]),(0,eN.jsx)(df,{isPresent:t,childRef:s,sizeRef:l,pop:o,children:!1===o?e:du.cloneElement(e,{ref:d})})}let dm=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:n,presenceAffectsLayout:o,mode:a,anchorX:s,anchorY:l,root:c})=>{let d=da(dy),u=(0,e_.useId)(),h=(0,e_.useRef)(r),p=(0,e_.useRef)(i);ds(()=>{h.current=r,p.current=i});let f=!0,g=(0,e_.useMemo)(()=>(f=!1,{id:u,initial:t,isPresent:r,custom:n,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;i&&i()},register:e=>(d.set(e,!1),()=>{d.delete(e),h.current||d.size||p.current?.()})}),[r,d,i]);return o&&f&&(g={...g}),(0,e_.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[r]),e_.useEffect(()=>{r||d.size||!i||i()},[r]),e=(0,eN.jsx)(dg,{pop:"popLayout"===a,isPresent:r,anchorX:s,anchorY:l,root:c,children:e}),(0,eN.jsx)(dl.Provider,{value:g,children:e})};function dy(){return new Map}function db(e=!0){let t=(0,e_.useContext)(dl);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:i,register:n}=t,o=(0,e_.useId)();(0,e_.useEffect)(()=>{if(e)return n(o)},[e]);let a=(0,e_.useCallback)(()=>e&&i&&i(o),[o,i,e]);return!r&&i?[!1,a]:[!0]}let dv=e=>e.key||"";function dw(e){let t=[];return e_.Children.forEach(e,e=>{(0,e_.isValidElement)(e)&&t.push(e)}),t}let dx=({children:e,custom:t,initial:r=!0,onExitComplete:i,presenceAffectsLayout:n=!0,mode:o="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:c})=>{let[d,u]=db(a),h=(0,e_.useMemo)(()=>dw(e),[e]),p=a&&!d?[]:h.map(dv),f=(0,e_.useRef)(!0),g=(0,e_.useRef)(h),m=da(()=>new Map),y=(0,e_.useRef)(new Set),[b,v]=(0,e_.useState)(h),[w,x]=(0,e_.useState)(h);ds(()=>{f.current=!1,g.current=h;for(let e=0;e<w.length;e++){let t=dv(w[e]);p.includes(t)?(m.delete(t),y.current.delete(t)):!0!==m.get(t)&&m.set(t,!1)}},[w,p.length,p.join("-")]);let S=[];if(h!==b){let e=[...h];for(let t=0;t<w.length;t++){let r=w[t],i=dv(r);p.includes(i)||(e.splice(t,0,r),S.push(r))}return"wait"===o&&S.length&&(e=S),x(dw(e)),v(h),null}let{forceRender:A}=(0,e_.useContext)(dn);return(0,eN.jsx)(eN.Fragment,{children:w.map(e=>{let b=dv(e),v=(!a||!!d)&&(h===w||p.includes(b));return(0,eN.jsx)(dm,{isPresent:v,initial:(!f.current||!!r)&&void 0,custom:t,presenceAffectsLayout:n,mode:o,root:c,onExitComplete:v?void 0:()=>{if(y.current.has(b)||!m.has(b))return;y.current.add(b),m.set(b,!0);let e=!0;m.forEach(t=>{t||(e=!1)}),e&&(A?.(),x(g.current),a&&u?.(),i&&i())},anchorX:s,anchorY:l,children:e},b)})})},dS=(e,t)=>{let r=(0,e_.useRef)(!1),i=(0,e_.useRef)(!1);(0,e_.useEffect)(()=>{if(r.current&&i.current)return e();i.current=!0},t),(0,e_.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])},dA=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dk=new Set([...dA,"pathRotation"]),dE=(e,t,r)=>r>t?t:r<e?e:r,dI={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},dM={...dI,transform:e=>dE(0,1,e)},dT={...dI,default:1},dN=e=>Math.round(1e5*e)/1e5,d_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,dC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dO=(e,t)=>r=>!!("string"==typeof r&&dC.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),dP=(e,t,r)=>i=>{if("string"!=typeof i)return i;let[n,o,a,s]=i.match(d_);return{[e]:parseFloat(n),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},dD={...dI,transform:e=>Math.round(dE(0,255,e))},dj={test:dO("rgb","red"),parse:dP("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+dD.transform(e)+", "+dD.transform(t)+", "+dD.transform(r)+", "+dN(dM.transform(i))+")"},dR={test:dO("#"),parse:function(e){let t="",r="",i="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alph
393a:n?parseInt(n,16)/255:1}},transform:dj.transform},dz=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),dL=dz("deg"),dB=dz("%"),dU=dz("px"),dq=dz("vh"),dW=dz("vw"),dH={...dB,parse:e=>dB.parse(e)/100,transform:e=>dB.transform(100*e)},dV={test:dO("hsl","hue"),parse:dP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+dB.transform(dN(t))+", "+dB.transform(dN(r))+", "+dN(dM.transform(i))+")"},dK={test:e=>dj.test(e)||dR.test(e)||dV.test(e),parse:e=>dj.test(e)?dj.parse(e):dV.test(e)?dV.parse(e):dR.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?dj.transform(e):dV.transform(e),getAnimatableNone:e=>{let t=dK.parse(e);return t.alpha=0,dK.transform(t)}},dF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,dY="number",dJ="color",dG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function dQ(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},n=[],o=0,a=t.replace(dG,e=>(dK.test(e)?(i.color.push(o),n.push(dJ),r.push(dK.parse(e))):e.startsWith("var(")?(i.var.push(o),n.push("var"),r.push(e)):(i.number.push(o),n.push(dY),r.push(parseFloat(e))),++o,"${}")).split("${}");return{values:r,split:a,indexes:i,types:n}}function dZ({split:e,types:t}){let r=e.length;return i=>{let n="";for(let o=0;o<r;o++)if(n+=e[o],void 0!==i[o]){let e=t[o];e===dY?n+=dN(i[o]):e===dJ?n+=dK.transform(i[o]):n+=i[o]}return n}}let dX={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(d_)?.length||0)+(e.match(dF)?.length||0)>0},parse:function(e){return dQ(e).values},createTransformer:function(e){return dZ(dQ(e))},getAnimatableNone:function(e){let t=dQ(e);return dZ(t)(t.values.map((e,r)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:dK.test(e)?dK.getAnimatableNone(e):e)(e,t.split[r])))}},d$=new Set(["brightness","contrast","saturate","opacity"]);function d0(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=r.match(d_)||[];if(!i)return e;let n=r.replace(i,""),o=+!!d$.has(t);return i!==r&&(o*=100),t+"("+o+n+")"}let d1=/\b([a-z-]*)\(.*?\)/gu,d2={...dX,getAnimatableNone:e=>{let t=e.match(d1);return t?t.map(d0).join(" "):e}},d3={...dX,getAnimatableNone:e=>{let t=dX.parse(e);return dX.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},d4={...dI,transform:Math.round},d5={borderWidth:dU,borderTopWidth:dU,borderRightWidth:dU,borderBottomWidth:dU,borderLeftWidth:dU,borderRadius:dU,borderTopLeftRadius:dU,borderTopRightRadius:dU,borderBottomRightRadius:dU,borderBottomLeftRadius:dU,width:dU,maxWidth:dU,height:dU,maxHeight:dU,top:dU,right:dU,bottom:dU,left:dU,inset:dU,insetBlock:dU,insetBlockStart:dU,insetBlockEnd:dU,insetInline:dU,insetInlineStart:dU,insetInlineEnd:dU,padding:dU,paddingTop:dU,paddingRight:dU,paddingBottom:dU,paddingLeft:dU,paddingBlock:dU,paddingBlockStart:dU,paddingBlockEnd:dU,paddingInline:dU,paddingInlineStart:dU,paddingInlineEnd:dU,margin:dU,marginTop:dU,marginRight:dU,marginBottom:dU,marginLeft:dU,marginBlock:dU,marginBlockStart:dU,marginBlockEnd:dU,marginInline:dU,marginInlineStart:dU,marginInlineEnd:dU,fontSize:dU,backgroundPositionX:dU,backgroundPositionY:dU,rotate:dL,pathRotation:dL,rotateX:dL,rotateY:dL,rotateZ:dL,scale:dT,scaleX:dT,scaleY:dT,scaleZ:dT,skew:dL,skewX:dL,skewY:dL,distance:dU,translateX:dU,translateY:dU,translateZ:dU,x:dU,y:dU,z:dU,perspective:dU,transformPerspective:dU,opacity:dM,originX:dH,originY:dH,originZ:dU,zIndex:d4,fillOpacity:dM,strokeOpacity:dM,numOctaves:d4},d8={...d5,color:dK,backgroundColor:dK,outlineColor:dK,fill:dK,stroke:dK,borderColor:dK,borderTopColor:dK,borderRightColor:dK,borderBottomColor:dK,borderLeftColor:dK,filter:d2,WebkitFilter:d2,mask:d3,WebkitMask:d3},d6=e=>d8[e],d7=()=>({translate:0,scale:1,origin:0,originPoint:0}),d9=()=>({x:d7(),y:d7()}),ue=()=>({min:0,max:0}),ut=()=>({x:ue(),y:ue()}),ur=e=>!!(e&&e.getVelocity),ui=new Set(["width","height","top","left","right","bottom",...dA]),un=e=>t=>t.test(e),uo=[dI,dU,dB,dL,dW,dq,{test:e=>"auto"===e,parse:e=>e}],ua=e=>uo.find(un(e)),us=()=>{},ul=()=>{};eD.default;let uc=e=>t=>"string"==typeof t&&t.startsWith(e),ud=uc("--"),uu=uc("var(--"),uh=e
393=>!!uu(e)&&up.test(e.split("/*")[0].trim()),up=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function uf(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ug=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,um=e=>180*e/Math.PI,uy=e=>uv(um(Math.atan2(e[1],e[0]))),ub={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:uy,rotateZ:uy,skewX:e=>um(Math.atan(e[1])),skewY:e=>um(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uv=e=>((e%=360)<0&&(e+=360),e),uw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ux=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uw,scaleY:ux,scale:e=>(uw(e)+ux(e))/2,rotateX:e=>uv(um(Math.atan2(e[6],e[5]))),rotateY:e=>uv(um(Math.atan2(-e[2],e[0]))),rotateZ:uy,rotate:uy,skewX:e=>um(Math.atan(e[4])),skewY:e=>um(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function uA(e){return+!!e.includes("scale")}function uk(e,t){let r,i;if(!e||"none"===e)return uA(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)r=uS,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ub,i=t}if(!i)return uA(t);let o=r[t],a=i[1].split(",").map(uE);return"function"==typeof o?o(a):a[o]}function uE(e){return parseFloat(e.trim())}let uI=e=>e===dI||e===dU,uM=new Set(["x","y","z"]),uT=dA.filter(e=>!uM.has(e)),uN={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:i})=>{let n=e.max-e.min;return"border-box"===i?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:i})=>{let n=e.max-e.min;return"border-box"===i?n:n-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uk(t,"x"),y:(e,{transform:t})=>uk(t,"y")};uN.translateX=uN.x,uN.translateY=uN.y;let u_=e=>e,uC={},uO=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uP(e,t){let r=!1,i=!0,n={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,a=uO.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,i=!1,n=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,n=!1,a=!1)=>{let s=a&&i?t:r;return n&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(a=e,i){n=!0;return}i=!0;let o=t;t=r,r=o,t.forEach(s),t.clear(),i=!1,n&&(n=!1,l.process(e))}};return l}(o),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:f}=a,g=()=>{let o=uC.useManualTiming,a=o?n.timestamp:performance.now();r=!1,o||(n.delta=i?1e3/60:Math.max(Math.min(a-n.timestamp,40),1)),n.timestamp=a,n.isProcessing=!0,s.process(n),l.process(n),c.process(n),d.process(n),u.process(n),h.process(n),p.process(n),f.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(g))};return{schedule:uO.reduce((t,o)=>{let s=a[o];return t[o]=(t,o=!1,a=!1)=>(!r&&(r=!0,i=!0,n.isProcessing||e(g)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<uO.length;t++)a[uO[t]].cancel(e)},state:n,steps:a}}let{schedule:uD,cancel:uj,state:uR,steps:uz}=uP("u">typeof requestAnimationFrame?requestAnimationFrame:u_,!0),uL=new Set,uB=!1,uU=!1,uq=!1;function uW(){if(uU){let e=Array.from(uL).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t,i=(t=[],uT.forEach(r=>{let i=e.getValue(r);void 0!==i&&(t.push([r,i.get()]),i.set(+!!r.startsWith("scale")))}),t);i.length&&(r.set(e,i),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}uU=!1,uB=!1,uL.forEach(e=>e.complete(uq)),uL.clear()}function uH(){uL.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uU=!0)})}class uV{constructor(e,t,r,i,n,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=i,this.element=n,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(uL.add(this),uB||(uB=!0,uD.read(uH),uD.resolveKeyframes(uW))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:i}=this;if(null===e[0]){let n=i?.get(),o=e[e.length-1];if(void 0!==n)e[0]=n;else if(r&&t){let i=r.readValue(t,o);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=o),i&&void 0===n&&i.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),uL.delete(this)}cancel(){"scheduled"===this.state&&(uL.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let uK=new Set([d2,d3]);function uF(e,t){let r=d6(e);return uK.has(r)||(r=dX),r.getAnimatableNone?r.getAnimatableNone(t):void 0}
393let uY=new Set(["auto","none","0"]);class uJ extends uV{constructor(e,t,r,i,n){super(e,t,r,i,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let i=e[r];if("string"==typeof i&&uh(i=i.trim())){let n=function e(t,r,i=1){ul(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,o]=function(e){let t=ug.exec(e);if(!t)return[,];let[,r,i,n]=t;return[`--${r??i}`,n]}(t);if(!n)return;let a=window.getComputedStyle(r).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return uh(o)?e(o,r,i+1):o}(i,t.current);void 0!==n&&(e[r]=n),r===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!ui.has(r)||2!==e.length)return;let[i,n]=e,o=ua(i),a=ua(n);if(uf(i)!==uf(n)&&uN[r]){this.needsMeasurement=!0;return}if(o!==a)if(uI(o)&&uI(a))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else uN[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&r.push(t);r.length&&function(e,t,r){let i,n=0;for(;n<e.length&&!i;){let t=e[n];"string"==typeof t&&!uY.has(t)&&dQ(t).values.length&&(i=e[n]),n++}if(i&&r)for(let n of t)e[n]=uF(r,i)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=uN[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(r,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let n=r.length-1,o=r[n];r[n]=uN[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
393h(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let uG=e=>1e3*e;function uQ(e,t){-1===e.indexOf(t)&&e.push(t)}function uZ(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class uX{constructor(){this.subscriptions=[]}add(e){return uQ(this.subscriptions,e),()=>uZ(this.subscriptions,e)}notify(e,t,r){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,r);else for(let n=0;n<i;n++){let i=this.subscriptions[n];i&&i(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function u$(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}function u0(e){let t;return()=>(void 0===t&&(t=e()),t)}let u1={};function u2(e,t){let r=u0(e);return()=>u1[t]??r()}let u3=u2(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),u4=e=>null!==e;function u5(e,{repeat:t,repeatType:r="loop"},i,n=1){let o=e.filter(u4),a=n<0||t&&"loop"!==r&&t%2==1?0:o.length-1;return a&&void 0!==i?i:o[a]}class u8{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let u6=e=>Array.isArray(e)&&"number"==typeof e[0],u7=u2(()=>{try{document.createElement("div").animate({opacity:0}
393,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),u9=(e,t,r=10)=>{let i="",n=Math.max(Math.round(t/r),2);for(let t=0;t<n;t++)i+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},he=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,ht={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:he([0,.65,.55,1]),circOut:he([.55,0,1,.45]),backIn:he([.31,.01,.66,-.59]),backOut:he([.33,1.53,.69,.99])};function hr(e){return"function"==typeof e&&"applyToOptions"in e}class hi extends u8{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:r,keyframes:i,pseudoElement:n,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!n,this.allowFlatten=o,this.options=e,ul(e.type);const l=function({type:e,...t}){return hr(e)&&u7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:i=0,duration:n=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c){let d={[t]:r};l&&(d.offset=l);let u=function e(t,r){if(t)return"function"==typeof t?u7()?u9(t,r):"ease-out":u6(t)?he(t):Array.isArray(t)?t.map(t=>e(t,r)||ht.easeOut):ht[t]}(s,n);Array.isArray(u)&&(d.easing=u);let h={delay:i,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}(t,r,i,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=u5(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),u$(t,r,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=uG(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&u3())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),u_):i(this)}}let hn=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:ho}=uP(queueMicrotask,!1);function ha(){t=void 0}let hs={now:()=>(void 0===t&&hs.set(uR.isProcessing||uC.useManualTiming?uR.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(ha)}},hl=(e,t)=>t?1e3/t*e:0,hc;class hd{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=hs.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=hs.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new uX);let r=this.events[e].add(t);return"change"===e?()=>{r(),uD.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return hc&&hc.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=hs.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return hl(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hu(e,t){return new hd(e,t)}let hh=[...uo,dK,dX],hp=new WeakMap;function hf(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function hg(e){return"string"==typeof e||Array.isArray(e)}let hm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hy=["initial",...hm];function hb(e){return hf(e.animate)||hy.some(t=>hg(e[t]))}function hv(e){return!!(hb(e)||e.variants)}let hw={current:null},hx={current:!1},hS="u">typeof window;function hA(e){let t=[{},{}];
393return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function hk(e,t,r,i){if("function"==typeof t){let[n,o]=hA(i);t=t(void 0!==r?r:e.custom,n,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,o]=hA(i);t=t(void 0!==r?r:e.custom,n,o)}return t}let hE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],hI={};class hM{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:i,skipAnimations:n,blockInitialAnimation:o,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=uV,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=hs.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,uD.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=n,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=hb(t),this.isVariantNode=hv(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==l[e]&&ur(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,hp.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(hx.current||function(){if(hx.current=!0,hS)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hw.current=e.matches;e.addEventListener("change",t),t()}else hw.current=!1}(),this.shouldReduceMotion=hw.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),uj(this.notifyUpdate),uj(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&hn.has(e)&&this.current instanceof HTMLElement){let{factory:r,keyframes:i,times:n,ease:o,duration:a}=t.accelerate,s=new hi({element:this.current,name:e,keyframes:i,times:n,ease:o,duration:uG(a)}),l=r(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let i=dk.has(e);i&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&uD.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),r&&r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in hI){let t=hI[e];if(!t)continue;let{isEnabled:r,Feature:i}=t;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];
393t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ut()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<hE.length;t++){let r=hE[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let i=e["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(e,t,r){for(let i in t){let n=t[i],o=r[i];if(ur(n))e.addValue(i,n);else if(ur(o))e.addValue(i,hu(n,{owner:e}));else if(o!==n)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(i);e.addValue(i,hu(void 0!==t?t:n,{owner:e}))}}for(let i in r)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=hu(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let i,n;if("string"==typeof r&&(i=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(n=r,/^0[^.\s]+$/u.test(n))))r=parseFloat(r);else{let i;i=r,!hh.find(un(i))&&dX.test(t)&&(r=uF(e,t))}this.setBaseTarget(e,ur(r)?r.get():r)}return ur(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=hk(this.props,r,this.presenceContext?.custom);i&&(t=i[e])}if(r&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||ur(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new uX),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ho.render(this.render)}}class hT extends hM{constructor(){super(...arguments),this.KeyframeResolver=uJ}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;ur(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function hN(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let h_=(e,t)=>t&&"number"==typeof e?t.transform(e):e,hC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hO=dA.length;function hP(e,t,r){let{style:i,vars:n,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let r=t[e];if(dk.has(e)){a=!0;continue}if(ud(e)){n[e]=r;continue}{let t=h_(r,d5[e]);e.startsWith("origin")?(s=!0,o[e]=t):i[e]=t}}if(!t.transform&&(a||r?i.transform=function(e,t,r){let i="",n=!0;for(let o=0;o<hO;o++){let a=dA[o],s=e[a];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!a.startsWith("scale");else{let e=parseFloat(s);l=a.startsWith("scale")?1===e:0===e}if(!l||r){let e=h_(s,d5[a]);if(!l){n=!1;let t=hC[a]||a;i+=`${t}(${e}) `}r&&(t[a]=e)}}let o=e.pathRotation;return o&&(n=!1,i+=`rotate(${h_(o,d5.pathRotation)}) `),i=i.trim(),r?i=r(t,n?"":i):n&&(i="none"),i}(t,e.transform,r):i.transform&&(i.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;i.transformOrigin=`${e} ${t} ${r}`}}let hD={offset:"stroke-dashoffset",array:"stroke-dasharray"},hj={offset:"strokeDashoffset",array:"strokeDasharray"},hR=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function hz(e,{attrX:t,attrY:r,attrScale:i,pathLength:n,pathSpacing:o=1,pathOffset:a=0,...s}
393,l,c,d){if(hP(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:u,style:h}=e;for(let e of(u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete u.transformBox),hR))void 0!==u[e]&&(h[e]=u[e],delete u[e]);void 0!==t&&(u.x=t),void 0!==r&&(u.y=r),void 0!==i&&(u.scale=i),void 0!==n&&function(e,t,r=1,i=0,n=!0){e.pathLength=1;let o=n?hD:hj;e[o.offset]=`${-i}`,e[o.array]=`${t} ${r}`}(u,n,o,a,!1)}let hL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),hB=e=>"string"==typeof e&&"svg"===e.toLowerCase();function hU(e,{style:t,vars:r},i,n){let o,a=e.style;for(o in t)a[o]=t[o];for(o in n?.applyProjectionStyles(a,i),r)a.setProperty(o,r[o])}let hq=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function hW(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let hH={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!dU.test(e))return e;else e=parseFloat(e);let r=hW(e,t.target.x),i=hW(e,t.target.y);return`${r}% ${i}%`}},hV=(e,t,r)=>e+(t-e)*r,hK={borderRadius:{...hH,applyTo:[...hq]},borderTopLeftRadius:hH,borderTopRightRadius:hH,borderBottomLeftRadius:hH,borderBottomRightRadius:hH,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let i=dX.parse(e);if(i.length>5)return e;let n=dX.createTransformer(e),o=+("number"!=typeof i[0]),a=r.x.scale*t.x,s=r.y.scale*t.y;i[0+o]/=a,i[1+o]/=s;let l=hV(a,s,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),n(i)}}};function hF(e,{layout:t,layoutId:r}){return dk.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!hK[e]||"opacity"===e)}function hY(e,t,r){let i=e.style,n=t?.style,o={};if(!i)return o;for(let t in i)(ur(i[t])||n&&ur(n[t])||hF(t,e)||r?.getValue(t)?.liveStyle!==void 0)&&(o[t]=i[t]);return o}function hJ(e,t,r){let i=hY(e,t,r);for(let r in e)(ur(e[r])||ur(t[r]))&&(i[-1!==dA.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return i}class hG extends hT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ut}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(dk.has(t)){let e=d6(t);return e&&e.default||0}return t=hL.has(t)?t:hN(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return hJ(e,t,r)}build(e,t,r){hz(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,i){for(let r in hU(e,t,void 0,i),t.attrs)e.setAttribute(hL.has(r)?r:hN(r),t.attrs[r])}mount(e){this.isSVGTag=hB(e.tagName),super.mount(e)}}function hQ({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function hZ(e){return void 0===e||1===e}function hX({scale:e,scaleX:t,scaleY:r}){return!hZ(e)||!hZ(t)||!hZ(r)}function h$(e){return hX(e)||h0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function h0(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function h1(e,t,r,i,n){return void 0!==n&&(e=i+n*(e-i)),i+r*(e-i)+t}function h2(e,t=0,r=1,i,n){e.min=h1(e.min,t,r,i,n),e.max=h1(e.max,t,r,i,n)}function h3(e,{x:t,y:r}){h2(e.x,t.translate,t.scale,t.originPoint),h2(e.y,r.translate,r.scale,r.originPoint)}function h4(e,t){e.min+=t,e.max+=t}function h5(e,t,r,i,n=.5){let o=hV(e.min,e.max,n);h2(e,t,r,o,i)}function h8(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function h6(e,t,r){let i=r??e;h5(e.x,h8(t.x,i.x),t.scaleX,t.scale,t.originX),h5(e.y,h8(t.y,i.y),t.scaleY,t.scale,t.originY)}function h7(e,t){return hQ(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}class h9 extends hT{constructor(){super(...arguments),this.type="html",this.renderInstance=hU}mount(e){ul(e.style),super.mount(e)}readValueFromInstance(e,t){if(dk.has(t))return this.projection?.isProjecting?uA(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return uk(r,t)})(e,t);{let r=window.getComputedStyle(e),i=(ud(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return h7(e,t)}build(e,t,r){hP(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return hY(e,t,r)}}let pe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function pt(e){if("string"!=typeof e||e.includes("-"));else if(pe.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let pr=(0,e_.createContext)({strict:!1}),pi=(0,e_.createContext)({});function pn(e){return Array.isArray(e)?e.join(" "):e}let po=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pa(e,t,r){for(let i in t)ur(t[i])||hF(i,r)||(e[i]=t[i])}let ps=()=>({...po(),attrs:{}}),pl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function pc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||pl.has(e)}let pd=e=>!pc(e);try{k=e.r(14653).default,"function"==typeof k&&(pd=e=>e.startsWith("on")?!pc(e):k(e))}catch{}function pu(e){return ur(e)?e.get():e}let ph=e=>(t,r)=>{let i=(0,e_.useContext)(pi),n=(0,e_.useContext)(dl),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,i,n){return{latestValues:function(e,t,r,i){let n={},o=i(e,{});for(let e in o)n[e]=pu(o[e]);let{initial:a,animate:s}=e,l=hb(e),c=hv(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let d=!!r&&!1===r.initial,u=(d=d||!1===a)?s:a;if(u&&"boolean"!=typeof u&&!hf(u)){let t=Array.isArray(u)?u:[u];for(let r=0;r<t.length;r++){let i=hk(e,t[r]);if(i){let{transitionEnd:e,transition:t,...r}=i;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(r,i,n,e),renderState:t()}})(e,t,i,n);return r?o():da(o)},pp=ph({scrapeMotionValuesFromProps:hY,createRenderState:po}),pf=ph({scrapeMotionValuesFromProps:hJ,createRenderState:ps}),pg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},pm=!1;function py(){return!function(){if(pm)return;let e={};for(let t in pg)e[t]={isEnabled:e=>pg[t].some(t=>!!e[t])};hI=e,pm=!0}(),hI}let pb=Symbol.for("motionComponentSymbol"),pv="data-"+hN("framerAppearId"),pw=(0,e_.createContext)({});function px(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function pS(e,{forwardMotionProps:t=!1,type:r}={},i,n){i&&function(e){let t=py();for(let r in e)t[r]={...t[r],...e[r]};hI=t}(i);let o=r?"svg"===r:pt(e),a=o?pf:pp;function s(r,i){var s;let l,c,d,u={...(0,e_.useContext)(dh),...r,layoutId:function({layoutId:e}){let t=(0,e_.useContext)(dn).id;return t&&void 0!==e?t+"-"+e:e}(r)}
393,{isStatic:h}=u,p=function(e){let{initial:t,animate:r}=function(e,t){if(hb(e)){let{initial:t,animate:r}=e;return{initial:!1===t||hg(t)?t:void 0,animate:hg(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,e_.useContext)(pi));return(0,e_.useMemo)(()=>({initial:t,animate:r}),[pn(t),pn(r)])}(r),f=a(r,h);if(!h&&"u">typeof window){(0,e_.useContext)(pr).strict;let t=function(e){let{drag:t,layout:r}=py();if(!t&&!r)return{};let i={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(u);l=t.MeasureLayout,p.visualElement=function(e,t,r,i,n,o){let{visualElement:a}=(0,e_.useContext)(pi),s=(0,e_.useContext)(pr),l=(0,e_.useContext)(dl),c=(0,e_.useContext)(dh),d=c.reducedMotion,u=c.skipAnimations,h=(0,e_.useRef)(null),p=(0,e_.useRef)(!1);i=i||s.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:a,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:d,skipAnimations:u,isSVG:o}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let f=h.current,g=(0,e_.useContext)(pw);f&&!f.projection&&n&&("html"===f.type||"svg"===f.type)&&function(e,t,r,i){let{layoutId:n,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutAnchor:d,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!a||s&&px(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:u,layoutScroll:l,layoutRoot:c,layoutAnchor:d})}(h.current,r,n,g);let m=(0,e_.useRef)(!1);(0,e_.useInsertionEffect)(()=>{f&&m.current&&f.update(r,l)});let y=r[pv],b=(0,e_.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return ds(()=>{p.current=!0,f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),(0,e_.useEffect)(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),b.current=!1),f.enteringChildren=void 0)}),f}(e,f,u,n,t.ProjectionNode,o)}return(0,eN.jsxs)(pi.Provider,{value:p,children:[l&&p.visualElement?(0,eN.jsx)(l,{visualElement:p.visualElement,...u}):null,function(e,t,r,{latestValues:i},n,o=!1,a){let s=(a??pt(e)?function(e,t,r,i){let n=(0,e_.useMemo)(()=>{let r=ps();return hz(r,t,hB(i),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};pa(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let r,i,n={},o=(r=e.style||{},pa(i={},r,e),Object.assign(i,function({transformTemplate:e},t){return(0,e_.useMemo)(()=>{let r=po();return hP(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),i);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n})(t,i,n,e),l=function(e,t,r){let i={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&!ur(e[n])&&(pd(n)||!0===r&&pc(n)||!t&&!pc(n)||e.draggable&&n.startsWith("onDrag"))&&(i[n]=e[n]);return i}(t,"string"==typeof e,o),c=e!==e_.Fragment?{...l,...s,ref:r}:{},{children:d}=t,u=(0,e_.useMemo)(()=>ur(d)?d.get():d,[d]);return(0,e_.createElement)(e,{...c,children:u})}(e,r,(s=p.visualElement,c=(0,e_.useRef)(i),(0,e_.useInsertionEffect)(()=>{c.current=i}),d=(0,e_.useRef)(null),(0,e_.useCallback)(e=>{e&&f.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=c.current;if("function"==typeof t)if(e){let r=t(e);"function"==typeof r&&(d.current=r)}else d.current?(d.current(),d.current=null):t(e);else t&&(t.current=e)},[s])),f,h,t,o)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,e_.forwardRef)(s);return l[pb]=e,l}class pA{constructor(e){this.isMounted=!1,this.node=e}update(){}}function pk(e,t,r){let i=e.getProps();return hk(i,t,void 0!==r?r:i.custom,e)}function pE(e,t){if(e?.inherit&&t){let{inherit:r,...i}=e;return{...t,...i}}return e}function pI(e,t){let r=e?.[t]??e?.default??e;return r!==e?pE(r,e):r}let pM=e=>Array.isArray(e);function pT(e,t){let r=e.getValue("willChange");if(ur(r)&&r.add)return r.add(t);if(!r&&uC.WillChange){let r=new uC.WillChange("auto");e.addValue("willChange",r),r.add(t)}}let pN=(...e)=>e.reduce((e,t)=>
393r=>t(e(r)));function p_(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function pC(e,t){return r=>r>0?t:e}let pO=(e,t,r)=>{let i=e*e,n=r*(t*t-i)+i;return n<0?0:Math.sqrt(n)},pP=[dR,dj,dV];function pD(e){let t=pP.find(t=>t.test(e));if(us(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===dV&&(r=function({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,r/=100;let n=0,o=0,a=0;if(t/=100){let i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=p_(s,i,e+1/3),o=p_(s,i,e),a=p_(s,i,e-1/3)}else n=o=a=r;return{red:Math.round(255*n),green:Math.round(255*o),blue:Math.round(255*a),alpha:i}}(r)),r}let pj=(e,t)=>{let r=pD(e),i=pD(t);if(!r||!i)return pC(e,t);let n={...r};return e=>(n.red=pO(r.red,i.red,e),n.green=pO(r.green,i.green,e),n.blue=pO(r.blue,i.blue,e),n.alpha=hV(r.alpha,i.alpha,e),dj.transform(n))},pR=new Set(["none","hidden"]);function pz(e,t){return r=>hV(e,t,r)}function pL(e){return"number"==typeof e?pz:"string"==typeof e?uh(e)?pC:dK.test(e)?pj:pq:Array.isArray(e)?pB:"object"==typeof e?dK.test(e)?pj:pU:pC}function pB(e,t){let r=[...e],i=r.length,n=e.map((e,r)=>pL(e)(e,t[r]));return e=>{for(let t=0;t<i;t++)r[t]=n[t](e);return r}}function pU(e,t){let r={...e,...t},i={};for(let n in r)void 0!==e[n]&&void 0!==t[n]&&(i[n]=pL(e[n])(e[n],t[n]));return e=>{for(let t in i)r[t]=i[t](e);return r}}let pq=(e,t)=>{let r=dX.createTransformer(t),i=dQ(e),n=dQ(t);if(!(i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length))return us(`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),pC(e,t);if(pR.has(e)&&!n.values.length||pR.has(t)&&!i.values.length)return pR.has(e)?r=>r<=0?e:t:r=>r>=1?t:e;return pN(pB(function(e,t){let r=[],i={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let o=t.types[n],a=e.indexes[o][i[o]],s=e.values[a]??0;r[n]=s,i[o]++}return r}(i,n),n.values),r)};function pW(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?hV(e,t,r):pL(e)(e,t)}let pH=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>uD.update(t,e),stop:()=>uj(t),now:()=>uR.isProcessing?uR.timestamp:hs.now()}};function pV(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let pK=.01,pF=2,pY=.005,pJ=.5;function pG(e,t){return e*Math.sqrt(1-t*t)}let pQ=["duration","bounce"],pZ=["stiffness","damping","mass"];function pX(e,t){return t.some(t=>void 0!==e[t])}function p$(e=.3,t=.3){let r,i,n,o,a,s,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:c,restDelta:d}=l,u=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],p={done:!1,value:u},{stiffness:f,damping:g,mass:m,duration:y,velocity:b,isResolvedFromDuration:v}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!pX(e,pZ)&&pX(e,pQ))if(t.velocity=0,e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),i=r*r,n=2*dE(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:n}}else{let r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:i=1}){let n,o;us(uG(10));let a=1-t;a=dE(.05,1,a),e=dE(.01,10,e/1e3),a<1?(n=t=>{let i=t*a,n=i*e;return .001-(i-r)/pG(t,a)*Math.exp(-n)},o=t=>{let i=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-i),l=pG(Math.pow(t,2),a);return(i*r+r-o)*s*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let i=r;for(let r=1;r<12;r++)i-=e(i)/t(i);return i}(n,o,5/e);if(e=uG(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*i;return{stiffness:t,damping:2*a*Math.sqrt(i*t),duration:e}}}({...e,velocity:0});(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),w=b||0,x=g/(2*Math.sqrt(f*m)),S=h-u,A=Math.sqrt(f/m)/1e3,k=5>Math.abs(S);if(c||(c=k?pK:pF),d||(d=k?pY:pJ),x<1)n=pG(A,x),o=(w+x*A*S)/n,r=e=>
393h-Math.exp(-x*A*e)*(o*Math.sin(n*e)+S*Math.cos(n*e)),a=x*A*o+S*n,s=x*A*S-o*n,i=e=>Math.exp(-x*A*e)*(a*Math.sin(n*e)+s*Math.cos(n*e));else if(1===x){r=e=>h-Math.exp(-A*e)*(S+(w+A*S)*e);let e=w+A*S;i=t=>Math.exp(-A*t)*(A*e*t-w)}else{let e=A*Math.sqrt(x*x-1);r=t=>{let r=Math.exp(-x*A*t),i=Math.min(e*t,300);return h-r*((w+x*A*S)*Math.sinh(i)+e*S*Math.cosh(i))/e};let t=(w+x*A*S)/e,n=x*A*t-S*e,o=x*A*S-t*e;i=t=>{let r=Math.exp(-x*A*t),i=Math.min(e*t,300);return r*(n*Math.sinh(i)+o*Math.cosh(i))}}let E={calculatedDuration:v&&y||null,velocity:e=>uG(i(e)),next:e=>{if(!v&&x<1){let t=Math.exp(-x*A*e),r=Math.sin(n*e),i=Math.cos(n*e),l=h-t*(o*r+S*i);return p.done=Math.abs(uG(t*(a*r+s*i)))<=c&&Math.abs(h-l)<=d,p.value=p.done?h:l,p}let t=r(e);return v?p.done=e>=y:p.done=Math.abs(uG(i(e)))<=c&&Math.abs(h-t)<=d,p.value=p.done?h:t,p},toString:()=>{let e=Math.min(pV(E),2e4),t=u9(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}function p0(e,t,r){let i=Math.max(t-5,0);return hl(r-e(i),t-i)}function p1({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:d}){let u,h,p=e[0],f={done:!1,value:p},g=r*t,m=p+g,y=void 0===a?m:a(m);y!==m&&(g=y-p);let b=e=>-g*Math.exp(-e/i),v=e=>y+b(e),w=e=>{let t=b(e),r=v(e);f.done=Math.abs(t)<=c,f.value=f.done?y:r},x=e=>{let t;if(t=f.value,void 0!==s&&t<s||void 0!==l&&t>l){var r;u=e,h=p$({keyframes:[f.value,(r=f.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:p0(v,e,f.value),damping:n,stiffness:o,restDelta:c,restSpeed:d})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==u||(t=!0,w(e),x(e)),void 0!==u&&e>=u)?h.next(e-u):(t||w(e),f)}}}p$.applyToOptions=e=>{let t=function(e,t=100,r){let i=r({...e,keyframes:[0,t]}),n=Math.min(pV(i),2e4);return{type:"keyframes",ease:e=>i.next(n*e).value/t,duration:n/1e3}}(e,100,p$);return e.ease=t.ease,e.duration=uG(t.duration),e.type="keyframes",e};let p2=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function p3(e,t,r,i){return e===t&&r===i?u_:n=>0===n||1===n?n:p2(function(e,t,r,i,n){let o,a,s=0;do(o=p2(a=t+(r-t)/2,i,n)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<12)return a}(n,0,1,e,r),t,i)}let p4=p3(.42,0,1,1),p5=p3(0,0,.58,1),p8=p3(.42,0,.58,1),p6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,p7=e=>t=>1-e(1-t),p9=p3(.33,1.53,.69,.99),fe=p7(p9),ft=p6(fe),fr=e=>e>=1?1:(e*=2)<1?.5*fe(e):.5*(2-Math.pow(2,-10*(e-1))),fi=e=>1-Math.sin(Math.acos(e)),fn=p7(fi),fo=p6(fi),fa={linear:u_,easeIn:p4,easeInOut:p8,easeOut:p5,circIn:fi,circInOut:fo,circOut:fn,backIn:fe,backInOut:ft,backOut:p9,anticipate:fr},fs=e=>{if(u6(e)){ul(e.length);let[t,r,i,n]=e;return p3(t,r,i,n)}return"string"==typeof e?(ul(fa[e],`Invalid easing type '${e}'`),fa[e]):e},fl=(e,t,r)=>{let i=t-e;return i?(r-e)/i:1};function fc({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){var n;let o,a=Array.isArray(i)&&"number"!=typeof i[0]?i.map(fs):fs(i),s={done:!1,value:t[0]},l=function(e,t,{clamp:r=!0,ease:i,mixer:n}={}){let o=e.length;if(ul(t.length),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let i=[],n=r||uC.mix||pW,o=e.length-1;for(let r=0;r<o;r++){let o=n(e[r],e[r+1]);t&&(o=pN(Array.isArray(t)?t[r]||u_:t,o)),i.push(o)}return i}(t,i,n),l=s.length,c=r=>{if(a&&r<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(r<e[i+1]);i++);let n=fl(e[i],e[i+1],r);return s[i](n)};return r?t=>c(dE(e[0],e[o-1],t)):c}((n=r&&r.length===t.length?r:(!function(e,t){let r=e[e.length-1];for(let i=1;i<=t;i++){let n=fl(0,t,i);e.push(hV(r,1,n))}}(o=[0],t.length-1),o),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||p8).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let fd={decay:p1,inertia:p1,tween:fc,keyframes:fc,spring:p$};function fu(e){"string"==typeof e.type&&(e.type=fd[e.type])}let fh=e=>e/100;class fp extends u8{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==hs.now()&&this.tick(hs.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;fu(e);let{type:t=fc,repeat:r=0,repeatDelay:i=0,repeatType:n,velocity:o=0}=e,{keyframes:a}=e,s=t||fc;s!==fc&&"number"!=typeof a[0]&&(this.mixKeyframes=pN(fh,pW(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===n&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=pV(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let r,{generator:i,totalDuration:n,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:c=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:p,type:f,onUpdate:g,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,w=i;if(u){let e=Math.min(this.currentTime,n)/s,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,u+1))%2&&("reverse"===h?(r=1-r,p&&(r-=p/s)):"mirror"===h&&(w=a)),v=dE(0,1,r)*s}b?(this.delayState.value=d[0],r=this.delayState):r=w.next(v),o&&!b&&(r.value=o(r.value));let{done:x}=r;b||null===l||(x=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&f!==p1&&(r.value=u5(d,this.options,m,this.speed)),g&&g(r.value),S&&this.finish(),r}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=uG(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return p0(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(hs.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=pH,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(hs.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let ff={anticipate:fr,backInOut:ft,circInOut:fo};class fg extends hi{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in ff&&(e.ease=ff[e.ease])}(e),fu(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:i,element:n,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new fp({...o,autoplay:!1}),s=Math.max(10,hs.now()-this.startTime),l=dE(0,10,s-10),c=a.sample(s).value,{name:d}=this.options;n&&d&&u$(n,d,c),t.setWithVelocity(a.sample(Math.max(0,s-l)).value,c,l),a.stop()}}let fm=(e,t)=>
393"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(dX.test(e)||"0"===e)&&!e.startsWith("url("));function fy(e){e.duration=0,e.type="keyframes"}let fb=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,fv=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fw=u0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class fx extends u8{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=hs.now();const u={autoplay:e,delay:t,type:r,repeat:i,repeatDelay:n,repeatType:o,name:s,motionValue:l,element:c,...d},h=c?.KeyframeResolver||uV;this.keyframeResolver=new h(a,(e,t,r)=>this.onKeyframesResolved(e,t,u,!r),s,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,i){let n;this.keyframeResolver=void 0;let{name:o,type:a,velocity:s,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=hs.now();let u=!0;!function(e,t,r,i){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=fm(n,t),s=fm(o,t);return us(`You are trying to animate ${t} from "${n}" to "${o}". "${a?o:n}" is not an animatable value.`),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||hr(r))&&i)}(e,o,a,s)&&(u=!1,(uC.instantAnimations||!l)&&d?.(u5(e,r,t)),e[0]=e[e.length-1],fy(r),r.repeat=0);let h={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},p=u&&!c&&function(e){let{motionValue:t,name:r,repeatDelay:i,repeatType:n,damping:o,type:a,keyframes:s}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:c,transformTemplate:d}=t.owner.getProps();return fw()&&r&&(hn.has(r)||fv.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&fb.test(e[t]))return!0;return!1}(s))&&("transform"!==r||!d)&&!c&&!i&&"mirror"!==n&&0!==o&&"inertia"!==a}(h),f=h.motionValue?.owner?.current;if(p)try{n=new fg({...h,element:f})}catch{n=new fp(h)}else n=new fp(h);n.finished.then(()=>{this.notifyFinished()}).catch(u_),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uq=!0,uH(),uW(),uq=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let fS={type:"spring",stiffness:500,damping:25,restSpeed:10},fA={type:"keyframes",duration:.8},fk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fE=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),fI=(e,t,r,i={},n,o)=>a=>{let s=pI(i,e)||{},l=s.delay||i.delay||0,{elapsed:c=0}=i;c-=uG(l);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:n};!function(e){for(let t in e)if(!fE.has(t))return!0;return!1}(s)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?fA:dk.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:fS:fk)(e,d)),d.duration&&(d.duration=uG(d.duration)),d.repeatDelay&&(d.repeatDelay=uG(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let u=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(fy(d),0===d.delay&&(u=!0)),(uC.instantAnimations||uC.skipAnimations||n?.shouldSkipAnimations||s.skipAnimations)&&(u=!0,fy(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,u&&!o&&void 0!==t.get()){let e=u5(d.keyframes,s);if(void 0!==e)return void uD.update(()=>{d.onUpdate(e),d.onComplete()})}return s.isSync?new fp(d):new fx(d)};function fM(e,t,{delay:r=0,transitionOverride:i,type:n}={}){let{transition:o,transitionEnd:a,...s}=t,l=e.getDefaultTransition();o=o?pE(o,l):l;let c=o?.reduceMotion,d=o?.skipAnimations;i&&(o=i);let u=[],h=n&&e.animationState&&e.animationState.getState()[n],p=o?.path;for(let t in p&&p.animateVisualElement(e,s,o,r,u),s){let i=e.getValue(t,e.latestValues[t]??null),n=s[t];if(void 0===n||h&&function({protectedKeys:e,needsAnimating:t},r){let i=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,i}(h,t))continue;let a={delay:r,...pI(o||{},t)};d&&(a.skipAnimations=!0);let l=i.get();if(void 0!==l&&!i.isAnimating()&&!Array.isArray(n)&&n===l&&!a.velocity){uD.update(()=>i.set(n));continue}let p=!1;if(window.MotionHandoffAnimation){let r=e.props[pv];if(r){let e=window.MotionHandoffAnimation(r,t,uD);null!==e&&(a.startTime=e,p=!0)}}pT(e,t);let f=c??e.shouldReduceMotion;i.start(fI(t,i,n,f&&ui.has(t)?{type:!1}:a,e,p));let g=i.animation;g&&u.push(g)}if(a){let t=()=>uD.update(()=>{a&&function(e,t){let{transitionEnd:r={},transition:i={},...n}=pk(e,t)||{};for(let t in n={...n,...r}){var o;let r=pM(o=n[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,hu(r))}}(e,a)});u.length?Promise.all(u).then(t):t()}return u}function fT(e,t,r,i=0,n=1){let o=Array.from(e).sort((e,t)=>
393e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*i;return"function"==typeof r?r(o,a):1===n?o*i:s-o*i}function fN(e,t,r={}){let i=pk(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(n=r.transitionOverride);let o=i?()=>Promise.all(fM(e,i,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=n;return function(e,t,r=0,i=0,n=0,o=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(fN(l,t,{...a,delay:r+("function"==typeof i?0:i)+fT(e.variantChildren,l,i,n,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,i,o,a,s,r)}:()=>Promise.resolve(),{when:s}=n;if(!s)return Promise.all([o(),a(r.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}let f_=hy.length;function fC(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}let fO=[...hm].reverse(),fP=hm.length;function fD(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fj(){return{animate:fD(!0),whileInView:fD(),whileHover:fD(),whileTap:fD(),whileDrag:fD(),whileFocus:fD(),exit:fD()}}let fR=0;function fz(e){return[e("x"),e("y")]}function fL(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}let fB={x:!1,y:!1};function fU(e){return e.max-e.min}function fq(e,t,r,i=.5){e.origin=i,e.originPoint=hV(t.min,t.max,e.origin),e.scale=fU(r)/fU(t),e.translate=hV(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function fW(e,t,r,i){fq(e.x,t.x,r.x,i?i.originX:void 0),fq(e.y,t.y,r.y,i?i.originY:void 0)}function fH(e,t,r,i=0){e.min=(i?hV(r.min,r.max,i):r.min)+t.min,e.max=e.min+fU(t)}function fV(e,t,r,i=0){let n=i?hV(r.min,r.max,i):r.min;e.min=t.min-n,e.max=e.min+fU(t)}function fK(e,t,r,i){fV(e.x,t.x,r.x,i?.x),fV(e.y,t.y,r.y,i?.y)}function fF(e){return dc(e)&&"ownerSVGElement"in e}function fY(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let n=r?.[e]??i.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let fJ=new WeakMap,fG=(e,t,r)=>(i,n)=>n&&n[0]?n[0][e+"Size"]:fF(i)&&"getBBox"in i?i.getBBox()[t]:i[r],fQ=fG("inline","width","offsetWidth"),fZ=fG("block","height","offsetHeight");function fX({target:e,borderBoxSize:t}){fJ.get(e)?.forEach(r=>{r(e,{get width(){return fQ(e,t)},get height(){return fZ(e,t)}})})}function f$(e){e.forEach(fX)}let f0=new Set;function f1(e,t){let n;return"function"==typeof e?(f0.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};
393f0.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{f0.delete(e),f0.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!r&&"u">typeof ResizeObserver&&(r=new ResizeObserver(f$)),(n=fY(e)).forEach(e=>{let i=fJ.get(e);i||(i=new Set,fJ.set(e,i)),i.add(t),r?.observe(e)}),()=>{n.forEach(e=>{let i=fJ.get(e);i?.delete(t),i?.size||r?.unobserve(e)})})}let f2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),f3=new Set(["INPUT","SELECT","TEXTAREA"]),f4=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function f5(e){return{point:{x:e.pageX,y:e.pageY}}}function f8(e,t,r,i){return fL(e,t,e=>f4(e)&&r(e,f5(e)),i)}let f6=({current:e})=>e?e.ownerDocument.defaultView:null,f7=(e,t)=>Math.abs(e-t),f9=new Set(["auto","scroll"]);class ge{constructor(e,t,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:n=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=gt(this.lastRawMoveEventInfo,this.transformPagePoint));let r=gi(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,n=(e=r.offset,t={x:0,y:0},Math.sqrt(f7(e.x,t.x)**2+f7(e.y,t.y)**2)>=this.distanceThreshold);if(!i&&!n)return;let{point:o}=r,{timestamp:a}=uR;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;
393i||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=gt(t,this.transformPagePoint),uD.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:i,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=gi("pointercancel"===e.type?this.lastMoveEventInfo:gt(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),i&&i(e,o)},!f4(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const s=gt(f5(e),this.transformPagePoint),{point:l}=s,{timestamp:c}=uR;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=t;d&&d(e,gi(s,this.history));const u={passive:!0,capture:!0};this.removeListeners=pN(f8(this.contextWindow,"pointermove",this.handlePointerMove,u),f8(this.contextWindow,"pointerup",this.handlePointerUp,u),f8(this.contextWindow,"pointercancel",this.handlePointerUp,u)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(f9.has(e.overflowX)||f9.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let r=e===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:i.x-t.x,y:i.y-t.y};(0!==n.x||0!==n.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,i),uD.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),uj(this.updatePoint)}}function gt(e,t){return t?{point:t(e.point)}:e}function gr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gi({point:e},t){return{point:e,delta:gr(e,gn(t)),offset:gr(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,i=gn(e);for(;t>=0&&(r=e[t],!(i.timestamp-r.timestamp>uG(.1)));)t--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*uG(.1)&&(r=e[1]);let n=(i.timestamp-r.timestamp)/1e3;if(0===n)return{x:0,y:0};let o={x:(i.x-r.x)/n,y:(i.y-r.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function gn(e){return e[e.length-1]}function go(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function ga(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function gs(e,t,r){return{min:gl(e,t),max:gl(e,r)}}function gl(e,t){return"number"==typeof e?e:e[t]||0}let gc=new WeakMap;class gd{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ut(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=e=>{t&&this.snapToCursor(f5(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:r,dragPropagation:i,onDragStart:n}=this.getProps();if(r&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(fB[e])return null;else return fB[e]=!0,()=>{fB[e]=!1};return fB.x||fB.y?null:(fB.x=fB.y=!0,()=>{fB.x=fB.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fz(e=>{let t=this.getAxisMotionValue(e).get()||0;if(dB.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let i=r.layout.layoutBox[e];i&&(t=fU(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&uD.update(()=>n(e,t),!1,!0),pT(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:i,onDirectionLock:n,onDrag:o}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:a}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&uD.update(()=>o(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();
393this.panSession=new ge(e,{onSessionStart:n,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:f6(this.visualElement),element:this.visualElement.current})}stop(e,t){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!i||!r)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&uD.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){let{drag:i}=this.getProps();if(!r||!gh(e,i,this.currentDirection))return;let n=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},i){return void 0!==t&&e<t?e=i?hV(t,e,i.min):Math.max(e,t):void 0!==r&&e>r&&(e=i?hV(r,e,i.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),n.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&px(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:i,right:n}){return{x:go(e.x,r,n),y:go(e.y,t,i)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:gs(e,"left","right"),y:gs(e,"top","bottom")}}(t),i!==this.constraints&&!px(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&fz(e=>{var t,i;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],i=this.constraints[e],n={},void 0!==i.min&&(n.min=i.min-t.min),void 0!==i.max&&(n.max=i.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!px(t))return!1;let i=t.current;ul();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let o=function(e,t,r){let i=h7(e,r),{scroll:n}=t;return n&&(h4(i.x,n.offset.x),h4(i.y,n.offset.y)),i}(i,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:ga(e.x,o.x),y:ga(e.y,o.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=hQ(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:i,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(fz(a=>{if(!gh(a,t,this.currentDirection))return;let l=s&&s[a]||{};(!0===o||o===a)&&(l={min:0,max:0});let c={type:"inertia",velocity:r?e[a]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return pT(this.visualElement,e),r.start(fI(e,r,0,t,this.visualElement,!1))}stopAnimation(){fz(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){fz(t=>{let{drag:r}=this.getProps();if(!gh(t,r,this.currentDirection))return;let{projection:i}=this.visualElement,n=this.getAxisMotionValue(t);if(i&&i.layout){let{min:r,max:o}=i.layout.layoutBox[t],a=n.get()||0;n.set(e[t]-hV(r,o,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!px(t)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};fz(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var r,n;let o,a,s,l=t.get();i[e]=(r={min:l,max:l},n=this.constraints[e],o=.5,a=fU(r),(s=fU(n))>a?o=fl(n.min,n.max-a,r.min):a>s&&(o=fl(r.min,r.max-s,n.min)),dE(0,1,o))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),fz(t=>{if(!gh(t,e,null))return;let r=this.getAxisMotionValue(t),{min:n,max:o}=this.constraints[t];r.set(hV(n,o,i[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;gc.set(this.visualElement,this);let t=this.visualElement.current,r=f8(t,"pointerdown",e=>{let{drag:r,dragListener:i=!0}=this.getProps(),n=e.target,o=n!==t&&(f3.has(n.tagName)||!0===n.isContentEditable);r&&i&&!o&&this.start(e)}),i=()=>{var r,i,n;let o,a,{dragConstraints:s}=this.getProps();px(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(r=t,
393i=s.current,o=f1(r,gu(n=()=>this.scalePositionWithinConstraints())),a=f1(i,gu(n)),e=()=>{o(),a()}))},{projection:n}=this.visualElement,o=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),uD.read(i);let a=fL(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(fz(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:i,dragConstraints:n,dragElastic:o,dragMomentum:a}}}function gu(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function gh(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let gp=e=>(t,r)=>{e&&uD.update(()=>e(t,r),!1,!0)},gf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var gg=e_;let gm=!1;class gy extends gg.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:i}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),r&&r.register&&i&&r.register(n),gm&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),gf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:i,isPresent:n}=this.props,{projection:o}=r;return o&&(o.isPresent=n,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),gm=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==n?o.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?o.promote():o.relegate()||uD.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),ho.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:i}=e;gm=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function gb(e){let[t,r]=db(),i=(0,gg.useContext)(dn);return(0,eN.jsx)(gy,{...e,layoutGroup:i,switchLayoutGroup:(0,gg.useContext)(pw),isPresent:t,safeToRemove:r})}let gv=hq.length,gw=e=>"string"==typeof e?parseFloat(e):e,gx=e=>"number"==typeof e||dU.test(e);function gS(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let gA=gE(0,.5,fn),gk=gE(.5,.95,u_);function gE(e,t,r){return i=>i<e?0:i>t?1:r(fl(e,t,i))}function gI(e,t){e.min=t.min,e.max=t.max}function gM(e,t){gI(e.x,t.x),gI(e.y,t.y)}function gT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function gN(e,t,r,i,n){return e-=t,e=i+1/r*(e-i),void 0!==n&&(e=i+1/n*(e-i)),e}function g_(e,t,[r,i,n],o,a){!function(e,t=0,r=1,i=.5,n,o=e,a=e){if(dB.test(t)&&(t=parseFloat(t),t=hV(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=hV(o.min,o.max,i);e===o&&(s-=t),e.min=gN(e.min,t,r,s,n),e.max=gN(e.max,t,r,s,n)}(e,t[r],t[i],t[n],t.scale,o,a)}let gC=["x","scaleX","originX"],gO=["y","scaleY","originY"];function gP(e,t,r,i){g_(e.x,t,gC,r?r.x:void 0,i?i.x:void 0),g_(e.y,t,gO,r?r.y:void 0,i?i.y:void 0)}function gD(e){return 0===e.translate&&1===e.scale}function gj(e){return gD(e.x)&&gD(e.y)}function gR(e,t){return e.min===t.min&&e.max===t.max}function gz(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gL(e,t){return gz(e.x,t.x)&&gz(e.y,t.y)}function gB(e){return fU(e.x)/fU(e.y)}function gU(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class gq{constructor(){this.members=[]}add(e){uQ(this.members,e);for(let t=this.members.length-1;t>=0;t--){let r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;let i=r.instance;i&&!1!==i.isConnected||r.snapshot||(uZ(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(uZ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();let{layoutDependency:i}=r.options,{layoutDependency:n}=e.options;(void 0===i||i!==n)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isU
393pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let gW=(e,t)=>e.depth-t.depth;class gH{constructor(){this.children=[],this.isDirty=!1}add(e){uQ(this.children,e),this.isDirty=!0}remove(e){uZ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gW),this.isDirty=!1,this.children.forEach(e)}}let gV=["","X","Y","Z"],gK=0;function gF(e,t,r,i){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),i&&(i[e]=0))}function gY({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(e={},r=t?.()){this.id=gK++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(gQ),this.nodes.forEach(g5),this.nodes.forEach(g8),this.nodes.forEach(gZ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new gH)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new uX),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=fF(t)&&!(fF(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:i,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||r)&&(this.isLayoutDirty=!0),e){let r,i=0,n=()=>this.root.updateBlockedByResize=!1;uD.read(()=>{i=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==i){let t,o;i=e,this.root.updateBlockedByResize=!0,r&&r(),t=hs.now(),o=({timestamp:e})=>{let r=e-t;r>=250&&(uj(o),n())},uD.setup(o,!0),r=()=>uj(o),gf.hasAnimatedSinceResize&&(gf.hasAnimatedSinceResize=!1,this.nodes.forEach(g4))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&n&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||n.getDefaultTransition()||mr,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=n.getProps(),l=!this.targetLayout||!gL(this.targetLayout,i),c=!t&&r;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...pI(o,"layout"),onPlay:a,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||g4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),uj(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
393h(g6),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let i=r.props[pv];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",uD,!(e||r))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(g0),this.nodes.forEach(g$);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(g1);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(g2),this.nodes.forEach(g3),this.nodes.forEach(gJ),this.nodes.forEach(gG)):this.nodes.forEach(g1),this.clearAllSnapshots();let e=hs.now();uR.delta=dE(0,1e3/60,e-uR.timestamp),uR.timestamp=e,uR.isProcessing=!0,uz.update.process(uR),uz.preRender.process(uR),uz.render.process(uR),uR.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ho.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gX),this.sharedNodes.forEach(g7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,uD.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){uD.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||fU(this.snapshot.measuredBox.x)||fU(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ut()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!gj(this.projectionDelta),r=this.getTransformTemplate(),i=r?r(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||h$(this.latestValues)||o)&&(n(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),i=this.removeElementScroll(r);return e&&(i=this.removeTransform(i)),mo((t=i).x),mo(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return ut();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ms))){let{scroll:e}=this.root;e&&(h4(t.x,e.offset.x),h4(t.y,e.offset.y))}return t}removeElementScroll(e){let t=ut();if(gM(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let i=this.path[r],{scroll:n,options:o}=i;i!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&gM(t,e),h4(t.x,n.offset.x),h4(t.y,n.offset.y))}return t}applyTransform(e,t=!1,r){let i=r||ut();gM(i,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(h4(i.x,-r.scroll.offset.x),h4(i.y,-r.scroll.offset.y)),h$(r.latestValues)&&h6(i,r.latestValues,r.layout?.layoutBox)}return h$(this.latestValues)&&h6(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=ut();gM(t,e);for(let e=0;e<this.path.length;e++){let r,i=this.path[e];h$(i.latestValues)&&(i.instance&&(hX(i.latestValues)&&i.updateSnapshot(),gM(r=ut(),i.measurePageBox())),gP(t,i.latestValues,i.snapshot?.layoutBox,r))}return h$(this.latestValues)&&gP(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==uR.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
393isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:n}=this.options;if(!this.layout||!(i||n))return;this.resolvedRelativeTargetAt=uR.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=ut(),this.targetWithTransforms=ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,s,l,c;this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,fH(a.x,s.x,l.x,c?.x),fH(a.y,s.y,l.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):gM(this.target,this.layout.layoutBox),h3(this.target,this.targetDelta)):gM(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||hX(this.parent.latestValues)||h0(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,r){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),fK(this.relativeTargetOrigin,t,r,this.options.layoutAnchor||void 0),gM(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===uR.timestamp&&(r=!1),r)return;let{layout:i,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||n))return;gM(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,i=!1){let n,o,a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(n=r[s]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(i&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(h4(e.x,-n.scroll.offset.x),h4(e.y,-n.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,h3(e,o)),i&&h$(n.latestValues)&&h6(e,n.latestValues,n.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ut());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(gT(this.prevProjectionDelta.x,this.projectionDelta.x),gT(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),fW(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&gU(this.projectionDelta.x,this.prevProjectionDelta.x)&&gU(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=d9(),this.projectionDelta=d9(),this.projectionDeltaWithTransform=d9()}setAnimationOrigin(e,t=!1,r){let i,n=this.snapshot,o=n?n.latestValues:{},a={...this.latestValues},s=d9();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=ut(),c=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),u=!d||d.members.length<=1,h=!!(c&&!u&&!0===this.options.crossfade&&!this.path.some(mt));this.animationProgress=0;let p=r?.interpolateProjection(e);this.mixTargetDelta=t=>{let r=t/1e3,n=p?.(r);if(n?(s.x.translate=n.x,s.x.scale=hV(e.x.scale,1,r),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=n.y,s.y.scale=hV(e.y.scale,1,r),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(g9(s.x,e.x,r),g9(s.y,e.y,r)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,f,g,m,y,b;fK(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),g=this.relativeTarget,m=this.relativeTargetOrigin,y=l,b=r,me(g.x,m.x,y.x,b),me(g.y,m.y,y.y,b),i&&(d=this.relativeTarget,f=i,gR(d.x,f.x)&&gR(d.y,f.y))&&(this.isProjectionDirty=!1),i||(i=ut()),gM(i,this.relativeTarget)}c&&(this.animationValues=a,function(e,t,r,i,n,o){n?(e.opacity=hV(0,r.opacity??1,gA(i)),e.opacityExit=hV(t.opacity??1,0,gk(i))):o&&(e.opacity=hV(t.opacity??1,r.opacity??1,i));for(let n=0;n<gv;n++){let o=hq[n],a=gS(t,o),s=gS(r,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||gx(a)===gx(s)?(e[o]=Math.max(hV(gw(a),gw(s),i),0),(dB.test(s)||dB.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||r.rotate)&&(e.rotate=hV(t.rotate||0,r.rotate||0,i))}(a,o,this.latestValues,r,h,u)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(uj(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uD.update(()=>{var t,r,i;let n;gf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=hu(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,r=[0,1e3],i={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=ur(t)?t:hu(t)).start(fI("",n,r,i)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:i,latestValues:n}=e;if(t&&r&&i){if(this!==e&&this.layout&&i&&ma(this.options.animationType,this.layout.layoutBox,i.layoutBox)){r=this.target||ut();let t=fU(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let i=fU(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+i}gM(t,r),h6(t,n),fW(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new gq),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;
393return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let i=this.getStack();i&&i.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let i={};r.z&&gF("z",e,i,this.animationValues);for(let t=0;t<gV.length;t++)gF(`rotate${gV[t]}`,e,i,this.animationValues),gF(`skew${gV[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=pu(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=pu(t?.pointerEvents)||""),this.hasProjected&&!h$(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=i.animationValues||i.latestValues;this.applyTransformsToTarget();
393let o=function(e,t,r){let i="",n=e.x.translate/t.x,o=e.y.translate/t.y,a=r?.z||0;if((n||o||a)&&(i=`translate3d(${n}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,pathRotation:n,rotateX:o,rotateY:a,skewX:s,skewY:l}=r;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),n&&(i+=`rotate(${n}deg) `),o&&(i+=`rotateX(${o}deg) `),a&&(i+=`rotateY(${a}deg) `),s&&(i+=`skewX(${s}deg) `),l&&(i+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(i+=`scale(${s}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);r&&(o=r(n,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,i.animationValues?e.opacity=i===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=i===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,hK){if(void 0===n[t])continue;let{correct:r,applyTo:a,isCSSVariable:s}=hK[t],l="none"===o?n[t]:r(n[t],i);if(a){let t=a.length;for(let r=0;r<t;r++)e[a[r]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=i===this?pu(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(g$),this.root.sharedNodes.clear()}}}function gJ(e){e.updateLayout()}function gG(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:i}=e.layout,{animationType:n}=e.options,o=t.source!==e.layout.source;if("size"===n)fz(e=>{let i=o?t.measuredBox[e]:t.layoutBox[e],n=fU(i);i.min=r[e].min,i.max=i.min+n});else if("x"===n||"y"===n){let e="x"===n?"y":"x";gI(o?t.measuredBox[e]:t.layoutBox[e],r[e])}else ma(n,t.layoutBox,r)&&fz(i=>{let n=o?t.measuredBox[i]:t.layoutBox[i],a=fU(r[i]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+a)});let a=d9();fW(a,r,t.layoutBox);let s=d9();o?fW(s,e.applyTransform(i,!0),t.measuredBox):fW(s,r,t.layoutBox);let l=!gj(a),c=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:n,layout:o}=i;if(n&&o){let a=e.options.layoutAnchor||void 0,s=ut();fK(s,t.layoutBox,n.layoutBox,a);let l=ut();fK(l,r,o.layoutBox,a),gL(s,l)||(c=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function gQ(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function gZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gX(e){e.clearSnapshot()}function g$(e){e.clearMeasurements()}function g0(e){e.isLayoutDirty=!0,e.updateLayout()}function g1(e){e.isLayoutDirty=!1}function g2(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function g3(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function g4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function g5(e){e.resolveTargetDelta()}function g8(e){e.calcProjection()}function g6(e){e.resetSkewAndRotation()}function g7(e){e.removeLeadSnapshot()}function g9(e,t,r){e.translate=hV(t.translate,0,r),e.scale=hV(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function me(e,t,r,i){e.min=hV(t.min,r.min,i),e.max=hV(t.max,r.max,i)}function mt(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let mr={duration:.45,ease:[.4,0,.1,1]},mi=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mn=mi("applewebkit/")&&!mi("chrome/")?Math.round:u_;function mo(e){e.min=mn(e.min),e.max=mn(e.max)}function ma(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(gB(t)-gB(r)))}function ms(e){return e!==e.root&&e.scroll?.wasRoot}let ml=gY({attachResizeListener:(e,t)=>fL(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),mc={current:void 0},md=gY({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mc.current){let e=new ml({});e.mount(window),e.setOptions({layoutScroll:!0}),mc.current=e}return mc.current},resetTransform:(e,t)=>
393{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function mu(e,t){let r=fY(e),i=new AbortController;return[r,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function mh(e,t,r){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===r);let n=i["onHover"+r];n&&uD.postRender(()=>n(t,f5(t)))}let mp=(e,t)=>!!t&&(e===t||mp(e,t.parentElement)),mf=new WeakSet;function mg(e){return t=>{"Enter"===t.key&&e(t)}}function mm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function my(e){return f4(e)&&!(fB.x||fB.y)}let mb=new WeakSet;function mv(e,t,r){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===r);let n=i["onTap"+("End"===r?"":r)];n&&uD.postRender(()=>n(t,f5(t)))}let mw=new WeakMap,mx=new WeakMap,mS=e=>{let t=mw.get(e.target);t&&t(e)},mA=e=>{e.forEach(mS)},mk={some:0,all:1},mE=function(e,t){if("u"<typeof Proxy)return pS;let r=new Map,i=(r,i)=>pS(r,i,e,t);return new Proxy((e,t)=>i(e,t),{get:(n,o)=>"create"===o?i:(r.has(o)||r.set(o,pS(o,void 0,e,t)),r.get(o))})}({animation:{Feature:class extends pA{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>fN(e,t,r)));else if("string"==typeof t)i=fN(e,t,r);else{let n="function"==typeof t?pk(e,t,r.custom):t;i=Promise.all(fM(e,n,r))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=fj(),i=!0,n=!1,o=t=>(r,i)=>{let n=pk(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...i}=n;r={...r,...i,...t}}return r};function a(a){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<f_;e++){let i=hy[e],n=t.props[i];(hg(n)||!1===n)&&(r[i]=n)}return r}(e.parent)||{},c=[],d=new Set,u={},h=1/0;for(let t=0;t<fP;t++){var p,f;let g=fO[t],m=r[g],y=void 0!==s[g]?s[g]:l[g],b=hg(y),v=g===a?m.isActive:null;!1===v&&(h=t);let w=y===l[g]&&y!==s[g]&&b;if(w&&(i||n)&&e.manuallyAnimateOnMount&&(w=!1),m.protectedKeys={...u},!m.isActive&&null===v||!y&&!m.prevProp||hf(y)||"boolean"==typeof y)continue;if("exit"===g&&m.isActive&&!0!==v){m.prevResolvedValues&&(u={...u,...m.prevResolvedValues});continue}let x=(p=m.prevProp,"string"==typeof(f=y)?f!==p:!!Array.isArray(f)&&!fC(f,p)),S=x||g===a&&m.isActive&&!w&&b||t>h&&b,A=!1,k=Array.isArray(y)?y:[y],E=k.reduce(o(g),{});!1===v&&(E={});let{prevResolvedValues:I={}}=m,M={...I,...E},T=t=>{S=!0,d.has(t)&&(A=!0,d.delete(t)),m.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in M){let t=E[e],r=I[e];if(!u.hasOwnProperty(e))(pM(t)&&pM(r)?!fC(t,r)||x:t!==r)?null!=t?T(e):d.add(e):void 0!==t&&d.has(e)?T(e):m.protectedKeys[e]=!0}m.prevProp=y,m.prevResolvedValues=E,m.isActive&&(u={...u,...E}),(i||n)&&e.blockInitialAnimation&&(S=!1);let N=w&&x,_=!N||A;S&&_&&c.push(...k.map(t=>{let r={type:g};if("string"==typeof t&&(i||n)&&!N&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,n=pk(i,t);if(i.enteringChildren&&n){let{delayChildren:t}=n.transition||{};r.delay=fT(i.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(d.size){let t={};if("boolean"!=typeof s.initial){let r=pk(e,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(t.transition=r.transition)}d.forEach(r=>{let i=e.getBaseTarget(r),n=e.getValue(r);n&&(n.liveStyle=!0),t[r]=i??null}),c.push({animation:t})}let g=!!c.length;return i&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,n=!1,g?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(t,i){if(r[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),r[t].isActive=i;let n=a(t);for(let e in r)r[e].protectedKeys={};return n},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=fj(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();hf(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends pA{constructor(){super(...arguments),this.id=fR++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&!1===r){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let r=pk(this.node,e,t);if(r){let{transition:e,transitionEnd:t,...i}=r;for(let e in i)this.node.getValue(e)?.jump(i[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>
393{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends pA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:i,margin:n,amount:o="some",once:a}=r,s={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:mk[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:i}=this.node.getProps(),n=t?r:i;n&&n(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let r=e||document;mx.has(r)||mx.set(r,{});let i=mx.get(r),n=JSON.stringify(t);return i[n]||(i[n]=new IntersectionObserver(mA,{root:e,...t})),i[n]}(s),mw.set(e,l),t.observe(e),()=>{mw.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends pA{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=function(e,t,r={}){let[i,n,o]=mu(e,r),a=e=>{let i=e.currentTarget;if(!my(e)||mb.has(e))return;mf.add(i),r.stopPropagation&&mb.add(e);let o=t(i,e),a={...n,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,a),window.removeEventListener("pointercancel",c,a),mf.has(i)&&mf.delete(i),my(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{s(e,i===window||i===document||r.useGlobalTarget||mp(i,e.target))},c=e=>{s(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",c,a)};return i.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),dd(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let i=mg(()=>{if(mf.has(r))return;mm(r,"down");let e=mg(()=>{mm(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>mm(r,"cancel"),t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)})(e,n)),f2.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(mv(this.node,t,"Start"),(e,{success:t})=>mv(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}}},focus:{Feature:class extends pA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pN(fL(this.node.current,"focus",()=>this.onFocus()),fL(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends pA{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[i,n,o]=mu(e,r);return i.forEach(e=>{let r,i=!1,o=!1,a=t=>{r&&(r(t),r=void 0),e.removeEventListener("pointerleave",l)},s=e=>{i=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),o&&(o=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(i){o=!0;return}a(e)}};e.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||fB.x||fB.y)return;o=!1;let a=t(e,i);"function"==typeof a&&(r=a,e.addEventListener("pointerleave",l,n))},n),e.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",s,n),window.addEventListener("pointercancel",s,n)},n)}),o}(e,(e,t)=>(mh(this.node,t,"Start"),e=>mh(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends pA{constructor(){super(...arguments),this.removePointerDownListener=u_}onPointerDown(e){this.session=new ge(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:f6(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:gp(e),onStart:gp(t),onMove:gp(r),onEnd:(e,t)=>{delete this.session,i&&uD.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=f8(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends pA{constructor(e){super(e),this.removeGroupControls=u_,this.removeListeners=u_,this.controls=new gd(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||u_}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:md,MeasureLayout:gb},layout:{ProjectionNode:md,MeasureLayout:gb}},(e,t)=>t.isSVG??pt(e)?new hG(t):new h9(t,{allowProjection:e!==e_.Fragment})),mI=(e,t)=>e.find(e=>e.id===t);function mM(e,t){let r=mT(e,t),i=r?e[r].findIndex(e=>e.id===t):-1;return{position:r,index:i}}function mT(e,t){for(let[r,i]of Object.entries(e))if(mI(i,t))return r}var mN=e.i(14653).default,m_=function(e){return"theme"!==e},mC=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?mN:m_},mO=function(e,t,r){var i;if(t){var n=t.shouldForwardProp;i=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},mP=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return lo(t,r,i),lw(function(){return la(t,r,i)}),null},mD=(function e(t,r){var i,n,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==r&&(i=r.label,n=r.target);var s=mO(t,r,o),l=s||mC(a),c=!l("as");return function(){var d=arguments,u=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&u.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var h=d[0];u.push(h[0]);for(var p=d.length,f=1;f<p;f++)u.push(d[f],h[f])}var g=lA(function(e,t,r){var i=c&&e.as||a,o="",d=[],h=e;if(null==e.theme){for(var p in h={},e)h[p]=e[p];h.theme=e_.useContext(lk)}"string"==typeof e.className?o=ln(t.registered,d,e.className):null!=e.className&&(o=e.className+" ");var f=lb(u.concat(d),t.registered,h);o+=t.key+"-"+f.name,void 0!==n&&(o+=" "+n);var g=c&&void 0===s?mC(i):l,m={};for(var y in e)(!c||"as"!==y)&&g(y)&&(m[y]=e[y]);return m.className=o,r&&(m.ref=r),e_.createElement(e_.Fragment,null,e_.createElement(mP,{cache:t,serialized:f,isStringTag:"string"==typeof i}),e_.createElement(i,m))});return g.displayName=void 0!==i?i:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=u,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+n}}),g.withComponent=function(t,i){return e(t,lr({},r,i,{shouldForwardProp:mO(g,i,!0)})).apply(void 0,u)},g}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){mD[e]=mD(e)});let mj=new Set([...cJ,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),mR=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function mz(e){return(mR.has(e)||!mj.has(e))&&"_"!==e[0]}let mL=mD.default||mD;function mB(e,t){let{baseStyle:r,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=mz);let n=(({baseStyle:e})=>t=>{let{theme:r,css:i,__css:n,sx:o,...a}=t,[s]=function(e,...t){let r=Object.getOwnPropertyDescriptors(e),i=Object.keys(r),n=e=>{let t={};for(let i=0;i<e.length;i++){let n=e[i];r[n]&&(Object.defineProperty(t,n,r[n]),delete r[n])}return t};return t.map(e=>n(Array.isArray(e)?e:i.filter(e))).concat(n(i))}(a,cQ),l=c$(function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let r={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in r&&delete r[t],r[t]=e[t]);return r}({},n,cl(e,t),function(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}(s),o))(t.theme);return i?[l,i]:l})({baseStyle:r}),o=mL(e,i)(n);return(0,e_.forwardRef)(function(e,t){let{children:r,...i}=e,{colorMode:n,forced:a}=lP();return(0,e_.createElement)(o,{ref:t,"data-theme":a?n:void 0,...i},r)})}let mU=(d=new Map,new Proxy(mB,{apply:(e,t,r)=>mB(...r),get:(e,t)=>(d.has(t)||d.set(t,mB(t)),d.get(t))})),mq={initial:e=>{let{position:t}=e,r=["top","bottom"].includes(t)?"y":"x",i=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(i=1),{opacity:0,[r]:24*i}}
393,animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},mW=(0,e_.memo)(e=>{var t;let r,{id:i,message:n,onCloseComplete:o,onRequestRemove:a,requestClose:s=!1,position:l="bottom",duration:c=5e3,containerStyle:d,motionVariants:u=mq,toastSpacing:h="0.5rem"}=e,[p,f]=(0,e_.useState)(c),g=null===(t=(0,e_.useContext)(dl))||t.isPresent;dS(()=>{g||o?.()},[g]),dS(()=>{f(c)},[c]);let m=()=>{g&&a()};(0,e_.useEffect)(()=>{g&&s&&a()},[g,s,a]),r=function(e,t=[]){let r=(0,e_.useRef)(e);return(0,e_.useEffect)(()=>{r.current=e}),(0,e_.useCallback)((...e)=>r.current?.(...e),t)}(m),(0,e_.useEffect)(()=>{if(null==p)return;let e=null;return e=window.setTimeout(()=>{r()},p),()=>{e&&window.clearTimeout(e)}},[p,r]);let y=(0,e_.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:h,...d}),[d,h]),b=(0,e_.useMemo)(()=>{let e,t,r;return e=l.includes("right"),t=l.includes("left"),r="center",e&&(r="flex-end"),t&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}},[l]);return(0,eN.jsx)(mE.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(c),custom:{position:l},style:b,children:(0,eN.jsx)(mU.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:cl(n,{id:i,onClose:m})})})});function mH(e){return function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(e,["styleConfig","size","variant","colorScheme"])}mW.displayName="ToastComponent";let mV=(...e)=>e.filter(Boolean).join(" ");function mK(e){return(0,e_.forwardRef)(e)}var l1=l1,l1=l1,mF=e.i(319778);function mY(e,t={}){let r,i,{styleConfig:n,...o}=t,{theme:a,colorMode:s}=(r=lP(),i=function(){let e=(0,e_.useContext)(lk);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}(),{...r,theme:i}),l=e?c1(a,`components.${e}`):void 0,c=n||l,d=(0,l1.default)({theme:a,colorMode:s},c?.defaultProps??{},Object.fromEntries(Object.entries(o).filter(([e,t])=>void 0!==t&&"children"!==e&&!(0,e_.isValidElement)(t))),(e,t)=>e?void 0:t),u=(0,e_.useRef)({});if(c){let e=(e=>{let t,{variant:r,size:i,theme:n}=e,o=(t=n.__breakpoints,function(e,r,i,n){var o;if(!t)return;let a={},s=(o=t.toArrayValue,Array.isArray(i)?i:oT(i)?o(i):null!=i?[i]:void 0);if(!s)return a;let l=s.length,c=1===l,d=!!e.parts;for(let i=0;i<l;i++){let o=t.details[i],l=t.details[function(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return -1}(s,i)],u=l0(o.minW,l?._minW),h=cl(e[r]?.[s[i]],n);if(h){if(d){e.parts?.forEach(e=>{(0,l1.default)(a,{[e]:c?h[e]:{[u]:h[e]}})});continue}if(!d){c?(0,l1.default)(a,h):a[u]=h;continue}a[u]=h}}return a});return(0,l1.default)({},cl(c.baseStyle??{},e),o(c,"sizes",i,e),o(c,"variants",r,e))})(d);(0,mF.default)(u.current,e)||(u.current=e)}return u.current}function mJ(e,t={}){return mY(e,t)}let mG={path:(0,eN.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,eN.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,eN.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,eN.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},mQ=mK((e,t)=>{let{as:r,viewBox:i,color:n="currentColor",focusable:o=!1,children:a,className:s,__css:l,...c}=e,d=mV("chakra-icon",s),u=mJ("Icon",e),h={ref:t,focusable:o,className:d,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:n,...l,...u}},p=i??mG.viewBox;if(r&&"string"!=typeof r)return(0,eN.jsx)(mU.svg,{as:r,...h,...c});let f=a??mG.path;return(0,eN.jsx)(mU.svg,{verticalAlign:"middle",viewBox:p,...h,...c,children:f})});function mZ(e){return(0,eN.jsx)(mQ,{viewBox:"0 0 24 24",...e,children:(0,eN.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.
393027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}mQ.displayName="Icon";let mX=function(){var e=lV.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),m$=mK((e,t)=>{let r=mJ("Spinner",e),{label:i="Loading...",thickness:n="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=mH(e),c=mV("chakra-spinner",s),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:n,borderBottomColor:a,borderLeftColor:a,animation:`${mX} ${o} linear infinite`,...r};return(0,eN.jsx)(mU.div,{ref:t,__css:d,className:c,...l,children:i&&(0,eN.jsx)(mU.span,{srOnly:!0,children:i})})});m$.displayName="Spinner";let[m0,m1]=c0({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[m2,m3]=c0({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),m4={info:{icon:function(e){return(0,eN.jsx)(mQ,{viewBox:"0 0 24 24",...e,children:(0,eN.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:mZ,colorScheme:"orange"},success:{icon:function(e){return(0,eN.jsx)(mQ,{viewBox:"0 0 24 24",...e,children:(0,eN.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:mZ,colorScheme:"red"},loading:{icon:m$,colorScheme:"blue"}},m5=mK(function(e,t){let{status:r="info",addRole:i=!0,...n}=mH(e),o=e.colorScheme??m4[r].colorScheme,a=function(e,t={}){return mY(e,t)}("Alert",{...e,colorScheme:o}),s={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return(0,eN.jsx)(m0,{value:{status:r},children:(0,eN.jsx)(m2,{value:a,children:(0,eN.jsx)(mU.div,{"data-status":r,role:i?"alert":void 0,ref:t,...n,className:mV("chakra-alert",e.className),__css:s})})})});function m8(e){let{status:t}=m1(),r=m4[t].icon,i=m3(),n="loading"===t?i.spinner:i.icon;return(0,eN.jsx)(mU.span,{display:"inherit","data-status":t,...e,className:mV("chakra-alert__icon",e.className),__css:n,children:e.children||(0,eN.jsx)(r,{h:"100%",w:"100%"})})}m5.displayName="Alert",m8.displayName="AlertIcon";let m6=mK(function(e,t){let r=m3(),{status:i}=m1();return(0,eN.jsx)(mU.div,{ref:t,"data-status":i,...e,className:mV("chakra-alert__title",e.className),__css:r.title})});m6.displayName="AlertTitle";let m7=mK(function(e,t){let{status:r}=m1(),i={display:"inline",...m3().description};return(0,eN.jsx)(mU.div,{ref:t,"data-status":r,...e,className:mV("chakra-alert__desc",e.className),__css:i})});function m9(e){return(0,eN.jsx)(mQ,{focusable:"false","aria-hidden":!0,...e,children:(0,eN.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,
39311.823a.25.25,0,0,1,0,.354Z"})})}m7.displayName="AlertDescription";let ye=mK(function(e,t){let r=mJ("CloseButton",e),{children:i,isDisabled:n,__css:o,...a}=mH(e);return(0,eN.jsx)(mU.button,{type:"button","aria-label":"Close",ref:t,disabled:n,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...o},...a,children:i||(0,eN.jsx)(m9,{width:"1em",height:"1em"})})});ye.displayName="CloseButton";let yt=e=>{let{status:t,variant:r="solid",id:i,title:n,isClosable:o,onClose:a,description:s,colorScheme:l,icon:c}=e,d=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return(0,eN.jsxs)(m5,{addRole:!1,status:t,variant:r,id:d?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,eN.jsx)(m8,{children:c}),(0,eN.jsxs)(mU.div,{flex:"1",maxWidth:"100%",children:[n&&(0,eN.jsx)(m6,{id:d?.title,children:n}),s&&(0,eN.jsx)(m7,{id:d?.description,display:"block",children:s})]}),o&&(0,eN.jsx)(ye,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})},yr=(m=v={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},y=new Set,b=e=>{m=e(m),y.forEach(e=>e())},{getState:()=>m,subscribe:e=>(y.add(e),()=>{b(()=>v),y.delete(e)}),removeToast:(e,t)=>{b(r=>({...r,[t]:r[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let r=function(e,t={}){yi+=1;let r=t.id??yi,i=t.position??"bottom";return{id:r,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>yr.removeToast(String(r),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:i,id:n}=r;return b(e=>{let t=i.includes("top")?[r,...e[i]??[]]:[...e[i]??[],r];return{...e,[i]:t}}),n},update:(e,t)=>{e&&b(r=>{let i={...r},{position:n,index:o}=mM(i,e);return n&&-1!==o&&(i[n][o]={...i[n][o],...t,message:function(e={}){let{render:t,toastComponent:r=yt}=e;return i=>"function"==typeof t?t({...i,...e}):(0,eN.jsx)(r,{...i,...e})}(t)}),i})},closeAll:({positions:e}={})=>{b(t=>(e??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,r)=>(e[r]=t[r].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{b(t=>{let r=mT(t,e);return r?{...t,[r]:t[r].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!mM(yr.getState(),e).position}),yi=0;var yn=e.i(783164);let[yo,ya]=c0({strict:!1,name:"PortalContext"}),ys="chakra-portal",yl=e=>(0,eN.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),yc=e=>{let{appendToParentPortal:t,children:r}=e,[i,n]=(0,e_.useState)(null),o=(0,e_.useRef)(null),[,a]=(0,e_.useState)({});(0,e_.useEffect)(()=>a({}),[]);let s=ya(),l=c7();de(()=>{if(!i)return;let e=i.ownerDocument,r=t?s??e.body:e.body;if(!r)return;o.current=e.createElement("div"),o.current.className=ys,r.appendChild(o.current),a({});let n=o.current;return()=>{r.contains(n)&&r.removeChild(n)}},[i]);let c=l?.zIndex?(0,eN.jsx)(yl,{zIndex:l?.zIndex,children:r}):r;return o.current?(0,yn.createPortal)((0,eN.jsx)(yo,{value:o.current,children:c}),o.current):(0,eN.jsx)("span",{ref:e=>{e&&n(e)}})},yd=e=>{let{children:t,containerRef:r,appendToParentPortal:i}=e,n=r.current,o=n??("u">typeof window?document.body:void 0),a=(0,e_.useMemo)(()=>{let e=n?.ownerDocument.createElement("div");return e&&(e.className=ys),e},[n]),[,s]=(0,e_.useState)({});return(de(()=>s({}),[]),de(()=>{if(a&&o)return o.appendChild(a),()=>{o.removeChild(a)}},[a,o]),o&&a)?(0,yn.createPortal)((0,eN.jsx)(yo,{value:i?a:null,children:t}),a):null};function yu(e){let{containerRef:t,...r}={appendToParentPortal:!0,...e};return t?(0,eN.jsx)(yd,{containerRef:t,...r}):(0,eN.jsx)(yc,{...r})}yu.className=ys,yu.selector=".chakra-portal",yu.displayName="Portal";let[yh,yp]=c0({name:"ToastOptionsContext",strict:!1}),yf=e=>{let t=(0,e_.useSyncExternalStore)(yr.subscribe,yr.getState,yr.getState),{motionVariants:r,component:i=mW,portalProps:n,animatePresenceProps:o}=e,a=Object.keys(t).map(e=>{let n,a,s,l=t[e];return(0,eN.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,"aria-hidden":!l.length,id:`chakra-toast-manager-${e}`,style:(n="top"===e||"bottom"===e,a=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,s=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n?"0 auto":void 0,top:a,bottom:s,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}),children:(0,eN.jsx)(dx,{...o,initial:!1,children:l.map(e=>(0,eN.jsx)(i,{motionVariants:r,...e},e.id))})},e)});return(0,eN.jsx)(yu,{...n,children:a})},yg=function({children:e,theme:t=sA,toastOptions:r,...i}){return(0,eN.jsxs)(di,{theme:t,...i,children:[(0,eN.jsx)(yh,{value:r?.defaultOptions,children:e}),(0,eN.jsx)(yf,{...r})]})},ym=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];var l1=l1;function yy(e){return"function"==typeof e}let yb=e=>function(...t){var r;let i=[...t],n=t[t.length-1];return oT(r=n)&&ym.every(e=>Object.prototype.hasOwnProperty.call(r,e))&&i.length>1?i=i.slice(0,i.length-1):n=e,(function(...e){return t=>e.reduce((e,t)=>
393t(e),t)})(...i.map(e=>t=>yy(e)?e(t):function(...e){return(0,l1.default)({},...e,yw)}(t,e)))(n)},yv=yb(sA);function yw(e,t,r,i){return(yy(e)||yy(t))&&Object.prototype.hasOwnProperty.call(i,r)?(...r)=>{let i=yy(e)?e(...r):e,n=yy(t)?t(...r):t;return(0,l1.default)({},i,n,yw)}:oT(e)&&oM(t)||oM(e)&&oT(t)?t:void 0}yb(sk);var yx=e.i(407258);e.i(326261);var yS=e.i(864471);class yA extends yS.ChainWalletBase{constructor(e,t){super(e,t)}}var yk=e.i(519289);e.i(763793),e.i(515707);let yE=e=>e.apis?.rest[0]?.address;var yI=e.i(388494);class yM{client;eventMap=new Map;_defaultSignOptions={preferNoSetFee:!1,preferNoSetMemo:!0,disableBalanceCheck:!0};get defaultSignOptions(){return this._defaultSignOptions}setDefaultSignOptions(e){this._defaultSignOptions=e}constructor(e){this.client=e}get cosmos(){return this.client.cosmos}get ikeplr(){return this.client.providers.keplr}async suggestToken({chainName:e,tokens:t,type:r}){"cw20"===r&&await this.cosmos.request({method:"cos_addTokensCW20",params:{chainName:e,tokens:t}})}async getSimpleAccount(e){let{address:t,username:r}=await this.getAccount(e);return{namespace:"cosmos",chainId:e,address:t,username:r}}async getAccount(e){let t=await this.cosmos.request({method:"cos_requestAccount",params:{chainName:e}});return{username:t.name,address:t.address,pubkey:t.publicKey,algo:t.algo}}async disconnect(){await this.cosmos.request({method:"cos_disconnect"})}on(e,t){let r=this.cosmos.on(e,t),i=this.eventMap.get(e)||new Map;i.set(t,r),this.eventMap.set(e,i)}off(e,t){let r=this.eventMap.get(e)?.get(t);r&&this.cosmos.off(r)}getOfflineSigner(e,t){switch(t){case"amino":default:return this.getOfflineSignerAmino(e);case"direct":return this.getOfflineSignerDirect(e)}}getOfflineSignerAmino(e){return this.ikeplr.getOfflineSignerOnlyAmino(e)}getOfflineSignerDirect(e){return{getAccounts:async()=>[await this.getAccount(e)],signDirect:(t,r)=>this.signDirect(e,t,r)}}async addChain(e){let t=((e,t,r={getRestEndpoint:yE})=>{let i;r.getRestEndpoint||(r.getRestEndpoint=yE);let n=t.find(t=>t.chain_name===e.chain_name)?.assets||[],o=e.staking?.staking_tokens.map(e=>e.denom)||[],a=n.map(e=>({displayDenom:e.symbol,baseDenom:e.base,coinGeckoId:e.coingecko_id,imageURL:e.logo_URIs?.svg??e.logo_URIs?.png})),s=a.find(e=>o.includes(e.baseDenom))??a[0],l=(i=e.fees?.fee_tokens?.[0],{low:i?.low_gas_price??.01,average:i?.average_gas_price??.025,high:i?.high_gas_price??.04});return{chainId:e.chain_id,chainName:e.pretty_name,restURL:r.getRestEndpoint(e),imageURL:s.imageURL,baseDenom:s.baseDenom,displayDenom:s.displayDenom,coinType:e.slip44.toString(),addressPrefix:e.bech32_prefix,coinGeckoId:a[0].coinGeckoId,gasRate:{average:l.average.toString(),low:l.low.toString(),tiny:"0.00025"}}})(e.chain,e.assetList?[e.assetList]:[]);if(e.preferredEndpoints?.rest?.[0]&&(t.restURL=e.preferredEndpoints?.rest?.[0]),!await this.cosmos.request({method:"cos_addChain",params:t}))throw Error(`Failed to add chain ${e.name}.`)}async signAmino(e,t,r,i){return this.ikeplr?.signAmino?await this.ikeplr.signAmino(e,t,r,i||this.defaultSignOptions):await this.cosmos.request({method:"cos_signAmino",params:{chainName:e,doc:r,isEditMemo:(i||this.defaultSignOptions).preferNoSetMemo,isEditFee:(i||this.defaultSignOptions).preferNoSetFee}})}
393async signDirect(e,t,r,i){if(this.ikeplr?.signDirect){let n=await this.ikeplr.signDirect(e,t,{...r,accountNumber:yI.default.fromString(r.accountNumber.toString(),!1)},i||this.defaultSignOptions);return{...n,signed:{...n.signed,accountNumber:BigInt(n.signed.accountNumber.toString())}}}return await this.cosmos.request({method:"cos_signDirect",params:{chainName:e,doc:r,isEditMemo:(i||this.defaultSignOptions).preferNoSetMemo,isEditFee:(i||this.defaultSignOptions).preferNoSetFee}})}async signArbitrary(e,t,r){try{return await this.ikeplr.signArbitrary(e,t,r)}catch(n){let i="string"==typeof r?r:new TextDecoder("utf-8").decode(r);return await this.cosmos.request({method:"cos_signMessage",params:{chainName:e,signer:t,message:i}})}}async sendTx(e,t,r){return await this.ikeplr.sendTx(e,t,r)}}var yT=e.i(589551);let yN=async()=>{if("u"<typeof window)return;let e=window.cosmostation;if(e)return e;if("complete"===document.readyState)if(e)return e;else throw yT.ClientNotExistError;return new Promise((e,t)=>{let r=i=>{if(i.target&&"complete"===i.target.readyState){let i=window.cosmostation;i?e(i):t(yT.ClientNotExistError.message),document.removeEventListener("readystatechange",r)}};document.addEventListener("readystatechange",r)})};class y_ extends yk.MainWalletBase{constructor(e){super(e,yA)}async initClient(){this.initingClient();try{let e=await yN();this.initClientDone(e?new yM(e):void 0)}catch(e){this.initClientError(e)}}}let yC=new y_({name:"cosmostation-extension",prettyName:"Cosmostation",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfnBgwLCwTqzzmxAABce0lEQVR42u29eZglR3Un+ovIe/OudW8tvahbvajVLanVkpBaCEkghLyzg2cMNhjEYhDYjGf8+c17M5+fjf2MZ948z3gen58ZZkDYYIyNjfGCQdb4PTweBJJACC1IrWpJ3V3qXb3VcuvuNzPO+yNvVmdlZWRGZsatutV9f9/XXVW5RJw4eeLEiYhzTgAjjDDCCCOMMMIII4wwwggjjDDCCCOMMMIlDbbWBAwTZmZmMDMzg23btsGyLBARGFvOoqBrIwwHwr5XJpPBiRMnsGvXLuzatWutSR0aXPaSPDMzg8nJSZw+fRpCCACAbdswDMMgIpMxZgIoAdhCRJuIaApAhTE2TkRlALn+fVrrtlxmYAAaAJqMsSYRNQHMATjHGHuZMXYGQIOIeoyxjm3btmEYAADDMFCtVtFqtS57ZXDZKYDp6WkAzsjgotfrwTTNMSHEFgDbGGM7iWgvgJ2MsasAbDEMI28Yhsk5zzLGMv2fHMDIIlhDEBGIyCYiYdt2TwjRFUJ0bdtuAzhLRDMAjjDGnieiEwBOGIZxrN1uN0zTXCrH/YbXX3/9WjdpVXFZSO7MzAyq1SrOnj0L27Zx6NAh7NmzZ5xzvkk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dzPpfLoVqtgjGGhYWFdTXHj8JwfRWN8G4fAsCePXtw6NChzUR0C4BbGWOvY4y9wjCMyUwmk89kMm4WY+/BJsr1DaOQrxbdSZTCatHqjd7r9XqwLAuWZbm/t23bniWiHxLRQ0T0mGEYz27evPnM6dOnl8nApdTpvVh/EpsAMzMzmJqawsmTJ0FEePbZZ3HjjTeOA9hCRDcDeBVjbC9jbCfnfCvnfMK1DNyffWekZT8B9VDcYcV6VVwu7e5PInITzSz9dEd4y7Lc3BNzRHSCiE4R0TRj7DHG2A+I6OxTTz01f/PNN8MwDGzatAkLCwvrdl4fB+vzy6eA3zIAnH3dfD5fsm17O4ArGWM7AFwH4GoAuwBs4pznOecmY8zknGcBcMaYAQxH2q7LER4FIIioR0QWEfWEEF0hRBvAaQAvATgK4CARHQVwgnN+utvtLmaz2aWyLvWRXobLXnJnZmZQKBSwsLAA27YBOFs/mUzGIKIcnMjEEoDNRHQFgI0AJgAUPf9K8CXZGGHgYAAaADoA6gDmAdSYk1jzLJzO3wDQZYx1Lcuy3V0gzjm2bNmC2dnZy2KUD8NlrwC8mJmZwczMDLZt2wbLstIXOMLQIJPJ4MSJE9i1a9dl3+lHGGGEEUYYYYQRRhhhhBFGGGGEEUYYYYTLCP8/PXe+4Jr7p48AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjMtMDYtMTJUMTE6MDg6NTgrMDA6MDCAfxaFAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTA1LTE2VDA4OjM4OjI3KzAwOjAw+bCQeAAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyMy0wNi0xMlQxMToxMTowNCswMDowMBTsH/wAAAAASUVORK5CYII=",mode:"extension",downloads:[{device:"desktop",browser:"chrome",link:"https://chrome.google.com/webstore/detail/cosmostation/fpkhgmpbidmiogeglndfbkegfdlnajnf?hl=en"},{link:"https://cosmostation.io/wallet/#extension"}],mobileDisabled:()=>!("cosmostation"in window||/Cosmostation/i.test(navigator.userAgent)),rejectMessage:{source:"The requested account and/or method has not been authorized by the user."},rejectCode:4001,connectEventNamesOnWindow:["cosmostation_keystorechange"]});var yO=yS,yP=e.i(612207);class yD extends yO.ChainWalletBase{WCClient;clientMutable={state:yP.State.Init};options;constructor(e,t,r){super(e,t),this.WCClient=r}setClientNotExist(){this.setState(yP.State.Error),this.setMessage(this.clientMutable.message)}}var yj=e.i(379666),yR=e.i(383972),yz=e.i(463383),yL=e.i(128130),yB=e.i(920020);class yU extends yB.IEvents{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class yq extends yB.IEvents{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class yW{constructor(e,t){this.logger=e,this.core=t}}class yH extends yB.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}}class yV extends yB.IEvents{constructor(e){super()}}
393class yK{constructor(e,t,r,i){this.core=e,this.logger=t,this.name=r}}class yF extends yB.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}}class yY extends yB.IEvents{constructor(e,t){super(),this.core=e,this.logger=t}}class yJ{constructor(e,t,r){this.core=e,this.logger=t,this.store=r}}class yG{constructor(e,t){this.projectId=e,this.logger=t}}class yQ{constructor(e,t,r){this.core=e,this.logger=t,this.telemetryEnabled=r}}yj.default;class yZ{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}yj.EventEmitter;class yX{constructor(e){this.client=e}}var y$=e.i(367069),y0=e.i(786863),y1=e.i(355055),y2=e.i(634417),y3=e.i(506538);e.i(843010);var y4=e.i(72716),y5=e.i(234939);e.i(578244);var y8=e.i(309758),y6=e.i(571269),y7=e.i(751020);function y9(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function be(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function bt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let br="[object Arguments]",bi="[object Object]";function bn(){}var bo=e.i(896119);let ba="core",bs=`wc@2:${ba}:`,bl={database:":memory:"},bc="client_ed25519_seed",bd=y$.ONE_DAY,bu=y$.SIX_HOURS,bh="wss://relay.walletconnect.org",bp="relayer_message",bf="relayer_message_ack",bg="relayer_connection_stalled",bm="relayer_publish",by="payload",bb="connect",bv="disconnect",bw="error",bx="2.23.10",bS="link_mode",bA="relay",bk="inbound",bE="WALLETCONNECT_LINK_MODE_APPS",bI="subscription_created",bM="subscription_deleted",bT=(y$.THIRTY_DAYS,y$.FIVE_SECONDS,y$.THIRTY_DAYS,{wc_pairingDelete:{req:{ttl:y$.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:y$.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:y$.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:y$.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:y$.ONE_DAY,prompt:!1,tag:0},res:{ttl:y$.ONE_DAY,prompt:!1,tag:0}}}),bN="pairing_create",b_="pairing_delete",bC="history_created",bO="history_updated",bP="history_deleted",bD="expirer_created",bj="expirer_deleted",bR="expirer_expired",bz=(y$.ONE_DAY,"https://verify.walletconnect.org"),bL=`${bz}/v3`,bB=["https://verify.walletconnect.com",bz],bU="malformed_pairing_uri",bq="session_approve_started";class bW{constructor(e,t){this.core=e,this.logger=t,this.keychain=new Map,this.name="keychain",this.version="0.3",this.initialized=!1,this.storagePrefix=bs,this.init=async()=>{if(!this.initialized){let e=await this.getKeyChain();"u">typeof e&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();let t=this.keychain.get(e);if(typeof t>"u"){let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=(0,yL.generateChildLogger)(t,this.name)}get context(){return(0,yL.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,(0,y3.mapToObj)(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?(0,y3.objToMap)(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}}class bH{constructor(e,t,r){this.core=e,this.logger=t,this.name="crypto",this.randomSessionIdentifier=(0,y3.generateRandomBytes32)(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>{if(this.isInitialized(),this.clientId)return this.clientId;let e=await this.getClientSeed(),t=y1.generateKeyPair(e),r=y1.encodeIss(t.publicKey);return this.clientId=r,r},this.generateKeyPair=()=>{this.isInitialized();let e=(0,y3.generateKeyPair)();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();let t=await this.getClientSeed(),r=y1.generateKeyPair(t),i=this.randomSessionIdentifier;return await y1.signJWT(i,e,bd,r)},this.generateSharedKey=(e,t,r)=>{this.isInitialized();let i=this.getPrivateKey(e),n=(0,y3.deriveSymKey)(i,t);return this.setSymKey(n,r)},this.setSymKey=async(e,t)=>{this.isInitialized();let r=t||(0,y3.hashKey)(e);return await this.keychain.set(r,e),r},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,r)=>{this.isInitialized();let i=(0,y3.validateEncoding)(r),n=(0,y0.safeJsonStringify)(t);if((0,y3.isTypeTwoEnvelope)(i))return(0,y3.encodeTypeTwoEnvelope)(n,r?.encoding);
393if((0,y3.isTypeOneEnvelope)(i)){let t=i.senderPublicKey,r=i.receiverPublicKey;e=await this.generateSharedKey(t,r)}let o=this.getSymKey(e),{type:a,senderPublicKey:s}=i;return(0,y3.encrypt)({type:a,symKey:o,message:n,senderPublicKey:s,encoding:r?.encoding})},this.decode=async(e,t,r)=>{this.isInitialized();let i=(0,y3.validateDecoding)(t,r);if((0,y3.isTypeTwoEnvelope)(i)){let e=(0,y3.decodeTypeTwoEnvelope)(t,r?.encoding);return(0,y0.safeJsonParse)(e)}if((0,y3.isTypeOneEnvelope)(i)){let t=i.receiverPublicKey,r=i.senderPublicKey;e=await this.generateSharedKey(t,r)}try{let i=this.getSymKey(e),n=(0,y3.decrypt)({symKey:i,encoded:t,encoding:r?.encoding});return(0,y0.safeJsonParse)(n)}catch(t){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(t)}},this.getPayloadType=(e,t=y3.BASE64)=>{let r=(0,y3.deserialize)({encoded:e,encoding:t});return(0,y3.decodeTypeByte)(r.type)},this.getPayloadSenderPublicKey=(e,t=y3.BASE64)=>{let r=(0,y3.deserialize)({encoded:e,encoding:t});return r.senderPublicKey?(0,y4.toString)(r.senderPublicKey,y3.BASE16):void 0},this.core=e,this.logger=(0,yL.generateChildLogger)(t,this.name),this.keychain=r||new bW(this.core,this.logger)}get context(){return(0,yL.getLoggerContext)(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(bc)}catch{e=(0,y3.generateRandomBytes32)(),await this.keychain.set(bc,e)}return(0,y2.fromString)(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}}class bV extends yW{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.messagesWithoutClientAck=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=bs,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let e=await this.getRelayerMessages();"u">typeof e&&(this.messages=e);let t=await this.getRelayerMessagesWithoutClientAck();"u">typeof t&&(this.messagesWithoutClientAck=t),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}finally{this.initialized=!0}}},this.set=async(e,t,r)=>{this.isInitialized();let i=(0,y3.hashMessage)(t),n=this.messages.get(e);if(typeof n>"u"&&(n={}),"u">typeof n[i])return i;if(n[i]=t,this.messages.set(e,n),r===bk){let r=this.messagesWithoutClientAck.get(e)||{};this.messagesWithoutClientAck.set(e,{...r,[i]:t})}return await this.persist(),i},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.getWithoutAck=e=>{this.isInitialized();let t={};for(let r of e){let e=this.messagesWithoutClientAck.get(r)||{};t[r]=Object.values(e)}return t},this.has=(e,t)=>(this.isInitialized(),"u">typeof this.get(e)[(0,y3.hashMessage)(t)]),this.ack=async(e,t)=>{this.isInitialized();let r=this.messagesWithoutClientAck.get(e);if(typeof r>"u")return;let i=(0,y3.hashMessage)(t);delete r[i],0===Object.keys(r).length?this.messagesWithoutClientAck.delete(e):this.messagesWithoutClientAck.set(e,r),await this.persist()},this.del=async e=>{this.isInitialized(),this.messages.delete(e),this.messagesWithoutClientAck.delete(e),await this.persist()},this.logger=(0,yL.generateChildLogger)(e,this.name),this.core=t}get context(){return(0,yL.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get storageKeyWithoutClientAck(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name+"_withoutClientAck"}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,(0,y3.mapToObj)(e))}async setRelayerMessagesWithoutClientAck(e){await this.core.storage.setItem(this.storageKeyWithoutClientAck,(0,y3.mapToObj)(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?(0,y3.objToMap)(e):void 0}async getRelayerMessagesWithoutClientAck(){let e=await this.core.storage.getItem(this.storageKeyWithoutClientAck);return"u">typeof e?(0,y3.objToMap)(e):void 0}async persist(){await this.setRelayerMessages(this.messages),await this.setRelayerMessagesWithoutClientAck(this.messagesWithoutClientAck)}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}}class bK extends yH{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new yj.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,y$.toMiliseconds)(y$.ONE_MINUTE),this.initialPublishTimeout=(0,y$.toMiliseconds)(15*y$.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,r)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:r}});let i=r?.ttl||bu,n=r?.prompt||!1,o=r?.tag||0,a=r?.id||(0,y8.getBigIntRpcId)().toString(),s=(0,y3.getRelayProtocolApi)((0,y3.getRelayProtocolName)().protocol),l={id:a,method:r?.publishMethod||s.publish,params:{topic:e,message:t,ttl:i,prompt:n,tag:o,attestation:r?.attestation,...r?.tvf}},c=`Failed to publish payload, please try again. id:${a} tag:${o}`;try{(0,y3.isUndefined)(l.params?.prompt)&&delete l.params?.prompt,(0,y3.isUndefined)(l.params?.tag)&&delete l.params?.tag;let i=new Promise(async e=>{let t=({id:r})=>
393{l.id?.toString()===r.toString()&&(this.removeRequestFromQueue(r),this.relayer.events.removeListener(bm,t),e())};this.relayer.events.on(bm,t);let i=(0,y3.createExpiringPromise)(new Promise((e,t)=>{this.rpcPublish(l,r).then(e).catch(e=>{this.logger.warn(e,e?.message),t(e)})}),this.initialPublishTimeout,`Failed initial publish, retrying.... id:${a} tag:${o}`);try{await i,this.events.removeListener(bm,t)}catch(e){this.queue.set(a,{request:l,opts:r,attempt:1}),this.logger.warn(e,e?.message)}});this.logger.trace({type:"method",method:"publish",params:{id:a,topic:e,message:t,opts:r}}),await (0,y3.createExpiringPromise)(i,this.publishTimeout,c)}catch(e){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(e),r?.internal?.throwOnFailedPublish)throw e}finally{this.queue.delete(a)}},this.publishCustom=async e=>{this.logger.debug("Publishing custom payload"),this.logger.trace({type:"method",method:"publishCustom",params:e});let{payload:t,opts:r={}}=e,{attestation:i,tvf:n,publishMethod:o,prompt:a,tag:s,ttl:l=y$.FIVE_MINUTES}=r,c=r.id||(0,y8.getBigIntRpcId)().toString(),d=(0,y3.getRelayProtocolApi)((0,y3.getRelayProtocolName)().protocol),u=o||d.publish,h={id:c,method:u,params:{...t,ttl:l,prompt:a,tag:s,attestation:i,...n}},p=`Failed to publish custom payload, please try again. id:${c} tag:${s}`;try{(0,y3.isUndefined)(h.params?.prompt)&&delete h.params?.prompt,(0,y3.isUndefined)(h.params?.tag)&&delete h.params?.tag;let e=new Promise(async e=>{let t=({id:r})=>{h.id?.toString()===r.toString()&&(this.removeRequestFromQueue(r),this.relayer.events.removeListener(bm,t),e())};this.relayer.events.on(bm,t);let i=(0,y3.createExpiringPromise)(new Promise((e,t)=>{this.rpcPublish(h,r).then(e).catch(e=>{this.logger.warn(e,e?.message),t(e)})}),this.initialPublishTimeout,`Failed initial custom payload publish, retrying.... method:${u} id:${c} tag:${s}`);try{await i,this.events.removeListener(bm,t)}catch(e){this.queue.set(c,{request:h,opts:r,attempt:1}),this.logger.warn(e,e?.message)}});this.logger.trace({type:"method",method:"publish",params:{id:c,payload:t,opts:r}}),await (0,y3.createExpiringPromise)(e,this.publishTimeout,p)}catch(e){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(e),r?.internal?.throwOnFailedPublish)throw e}finally{this.queue.delete(c)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=(0,yL.generateChildLogger)(t,this.name),this.registerEventListeners()}get context(){return(0,yL.getLoggerContext)(this.logger)}async rpcPublish(e,t){this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:e});let r=await this.relayer.request(e);return this.relayer.events.emit(bm,{...e,...t}),this.logger.debug("Successfully Published Payload"),r}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async(e,t)=>{let r=e.attempt+1;this.queue.set(t,{...e,attempt:r}),this.logger.warn({},`Publisher: queue->publishing: ${e.request.id}, tag: ${e.request.params?.tag}, attempt: ${r}`),await this.rpcPublish(e.request,e.opts),this.logger.warn({},`Publisher: queue->published: ${e.request.id}`)})}registerEventListeners(){this.relayer.core.heartbeat.on(yR.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(bg);return}this.checkQueue()}),this.relayer.on(bf,e=>{this.removeRequestFromQueue(e.id.toString())})}}class bF{constructor(){this.map=new Map,this.set=(e,t)=>{let r=this.get(e);this.exists(e,t)||this.map.set(e,[...r,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u")return void this.map.delete(e);if(!this.map.has(e))return;let r=this.get(e);if(!this.exists(e,t))return;let i=r.filter(e=>e!==t);i.length?this.map.set(e,i):this.map.delete(e)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}class bY extends yF{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new bF,this.events=new yj.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.storagePrefix=bs,this.subscribeTimeout=(0,y$.toMiliseconds)(y$.ONE_MINUTE),this.initialSubscribeTimeout=(0,y$.toMiliseconds)(15*y$.ONE_SECOND),this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),await this.restore(
393)),this.initialized=!0},this.subscribe=async(e,t)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{let r=(0,y3.getRelayProtocolName)(t),i={topic:e,relay:r,transportType:t?.transportType};t?.internal?.skipSubscribe||this.pending.set(e,i);let n=await this.rpcSubscribe(e,r,t);return"string"==typeof n&&(this.onSubscribe(n,i),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),n}catch(e){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(e),e}},this.unsubscribe=async(e,t)=>{this.isInitialized(),"u">typeof t?.id?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=e=>new Promise(t=>{t(this.topicMap.topics.includes(e))}),this.isKnownTopic=e=>new Promise(t=>{t(this.topicMap.topics.includes(e)||this.pending.has(e)||this.cached.some(t=>t.topic===e))}),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{await this.restore(),await this.onRestart()},this.checkPending=async()=>{if(0===this.pending.size&&(!this.initialized||!this.relayer.connected))return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e)},this.registerEventListeners=()=>{this.relayer.core.heartbeat.on(yR.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.events.on(bI,async e=>{this.logger.info(`Emitting ${bI}`),this.logger.debug({type:"event",event:bI,data:e}),await this.persist()}),this.events.on(bM,async e=>{this.logger.info(`Emitting ${bM}`),this.logger.debug({type:"event",event:bM,data:e}),await this.persist()})},this.relayer=e,this.logger=(0,yL.generateChildLogger)(t,this.name),this.clientId=""}get context(){return(0,yL.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}get hasAnyTopics(){return this.topicMap.topics.length>0||this.pending.size>0||this.cached.length>0||this.subscriptions.size>0}hasSubscription(e,t){let r=!1;try{r=this.getSubscription(e).topic===t}catch{}return r}reset(){this.cached=[],this.initialized=!0}onDisable(){this.values.length>0&&(this.cached=this.values),this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let r=this.topicMap.get(e);await Promise.all(r.map(async r=>await this.unsubscribeById(e,r,t)))}async unsubscribeById(e,t,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}});try{let i=(0,y3.getSdkError)("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i);let n=(0,y3.getRelayProtocolName)(r);await this.restartToComplete({topic:e,id:t,relay:n}),await this.rpcUnsubscribe(e,t,n),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}})}catch(e){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(e),e}}
393async rpcSubscribe(e,t,r){let i=await this.getSubscriptionId(e);if(r?.internal?.skipSubscribe)return i;r&&r?.transportType!==bA||await this.restartToComplete({topic:e,id:e,relay:t});let n={method:(0,y3.getRelayProtocolApi)(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});let o=r?.internal?.throwOnFailedPublish;try{if(r?.transportType===bS)return setTimeout(()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(n).catch(e=>this.logger.warn(e))},(0,y$.toMiliseconds)(y$.ONE_SECOND)),i;let t=new Promise(async t=>{let r=i=>{i.topic===e&&(this.events.removeListener(bI,r),t(i.id))};this.events.on(bI,r);try{let i=await (0,y3.createExpiringPromise)(new Promise((e,t)=>{this.relayer.request(n).catch(e=>{this.logger.warn(e,e?.message),t(e)}).then(e)}),this.initialSubscribeTimeout,`Subscribing to ${e} failed, please try again`);this.events.removeListener(bI,r),t(i)}catch{}}),a=await (0,y3.createExpiringPromise)(t,this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!a&&o)throw Error(`Subscribing to ${e} failed, please try again`);return a?i:null}catch(e){if(this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(bg),o)throw e}return null}async rpcBatchSubscribe(e){if(!e.length)return!0;let t=e[0].relay,r={method:(0,y3.getRelayProtocolApi)(t.protocol).batchSubscribe,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{return await (0,y3.createExpiringPromise)(new Promise((e,t)=>{this.relayer.request(r).then(e).catch(e=>{this.logger.warn(e),t(e)})}),this.subscribeTimeout,"rpcBatchSubscribe failed, please try again"),!0}catch{return this.relayer.events.emit(bg),!1}}async rpcBatchFetchMessages(e){let t;if(!e.length)return;let r=e[0].relay,i={method:(0,y3.getRelayProtocolApi)(r.protocol).batchFetchMessages,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i});try{t=await await (0,y3.createExpiringPromise)(new Promise((e,t)=>{this.relayer.request(i).catch(e=>{this.logger.warn(e),t(e)}).then(e)}),this.subscribeTimeout,"rpcBatchFetchMessages failed, please try again")}catch{this.relayer.events.emit(bg)}return t}rpcUnsubscribe(e,t,r){let i={method:(0,y3.getRelayProtocolApi)(r.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}onSubscribe(e,t){this.setSubscription(e,{...t,id:e}),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(e=>{this.setSubscription(e.id,{...e}),this.pending.delete(e.topic)})}async onUnsubscribe(e,t,r){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,{...t}),this.topicMap.set(t.topic,e),this.events.emit(bI,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(bM,{...r,reason:t})}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit("subscription_sync")}
393async onRestart(){if(this.cached.length){let e=[...this.cached],t=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let r=0;r<t;r++){let t=e.splice(0,this.batchSubscribeTopicsLimit);await this.batchSubscribe(t)}}this.events.emit("subscription_resubscribed")}async restore(){try{let e=await this.getRelayerSubscriptions();if(typeof e>"u"||!e.length)return;if(this.subscriptions.size&&!e.every(e=>e.topic===this.subscriptions.get(e.id)?.topic)){let{message:e}=(0,y3.getInternalError)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(e.length){if(!await this.rpcBatchSubscribe(e)){this.logger.warn(`Batch subscribe failed for ${e.length} topics, adding to pending for retry`),e.forEach(e=>{this.pending.set(e.topic,e)});return}this.onBatchSubscribe(await Promise.all(e.map(async e=>
393({...e,id:await this.getSubscriptionId(e.topic)}))))}}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);let t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(await (0,y3.sleep)((0,y$.toMiliseconds)(y$.ONE_SECOND)),await this.relayer.handleBatchMessageEvents(t.messages))}async onConnect(){await this.restart(),this.reset()}onDisconnect(){this.onDisable()}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}async restartToComplete(e){this.relayer.connected||this.relayer.connecting||(this.cached.push(e),await this.relayer.transportOpen())}async getClientId(){return this.clientId||(this.clientId=await this.relayer.core.crypto.getClientId()),this.clientId}async getSubscriptionId(e){return(0,y3.hashMessage)(e+await this.getClientId())}}class bJ extends yV{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new yj.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1,this.heartBeatTimeout=(0,y$.toMiliseconds)(y$.THIRTY_SECONDS+y$.FIVE_SECONDS),this.reconnectInProgress=!1,this.requestsInFlight=[],this.connectTimeout=(0,y$.toMiliseconds)(15*y$.ONE_SECOND),this.stalledRestartInProgress=!1,this.stalledRestartBackoff=0,this.stalledRestartBaseInterval=(0,y$.toMiliseconds)(2*y$.ONE_SECOND),this.stalledRestartMaxInterval=(0,y$.toMiliseconds)(y$.THIRTY_SECONDS),this.request=async e=>{this.logger.debug("Publishing Request Payload");let t=e.id||(0,y8.getBigIntRpcId)().toString();await this.toEstablishConnection();try{this.logger.trace({id:t,method:e.method,topic:e.params?.topic},"relayer.request - publishing...");let r=`${t}:${e.params?.tag||""}`;this.requestsInFlight.push(r);let i=await this.provider.request(e);return this.requestsInFlight=this.requestsInFlight.filter(e=>e!==r),i}catch(e){throw this.logger.debug(`Failed to Publish Request: ${t}`),e}},this.resetPingTimeout=()=>{(0,y3.isNode)()&&(clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{try{this.logger.debug({},"pingTimeout: Connection stalled, terminating..."),this.provider?.connection?.socket?.terminate?.()}catch(e){this.logger.warn(e,e?.message)}},this.heartBeatTimeout))},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.warn({},"Relayer connected 🛜"),this.startPingTimeout(),this.stalledRestartBackoff=0,this.events.emit("relayer_connect")},this.onDisconnectHandler=()=>{this.logger.warn({},"Relayer disconnected 🛑"),this.requestsInFlight=[],this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.fatal(`Fatal socket error: ${e.message}`),this.events.emit("relayer_error",e),this.logger.fatal("Fatal socket error received, closing transport"),this.transportExplicitlyClosed=!0,clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.reconnectInProgress=!1,this.transportClose().catch(e=>this.logger.warn(e))},this.registerProviderListeners=()=>{this.provider.on(by,this.onPayloadHandler),this.provider.on(bb,this.onConnectHandler),this.provider.on(bv,this.onDisconnectHandler),this.provider.on(bw,this.onProviderErrorHandler)},this.core=e.core,this.logger=(0,y3.createLogger)({logger:e.logger??"error",name:this.name}),this.messages=new bV(this.logger,e.core),this.subscriber=new bY(this,this.logger),this.publisher=new bK(this,this.logger),this.projectId=e.projectId,this.relayUrl=e.relayUrl||bh,(0,y3.isAndroid)()?this.packageName=(0,y3.getAppId)():(0,y3.isIos)()&&(this.bundleId=(0,y3.getAppId)()),this.provider={}}
393async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.transportOpen().catch(e=>this.logger.warn(e,e?.message))}get context(){return(0,yL.getLoggerContext)(this.logger)}get connected(){return this.provider?.connection?.socket?.readyState===1}get connecting(){return this.provider?.connection?.socket?.readyState===0||void 0!==this.connectPromise}async publish(e,t,r){this.isInitialized(),await this.publisher.publish(e,t,r),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now(),transportType:bA},"outbound")}async publishCustom(e){this.isInitialized(),await this.publisher.publishCustom(e)}async subscribe(e,t){this.isInitialized(),t?.transportType&&t?.transportType!=="relay"||await this.toEstablishConnection();let r=t?.internal?.throwOnFailedPublish??!0,i=this.subscriber.topicMap.get(e)?.[0]||"",n,o=t=>{t.topic===e&&(this.subscriber.off(bI,o),n())};return await Promise.all([new Promise(e=>{n=e,this.subscriber.on(bI,o)}),new Promise((n,o)=>{this.subscriber.subscribe(e,{internal:{throwOnFailedPublish:r},...t}).then(e=>{i=e||i,n()}).catch(e=>{r?o(e):n()})})]),i}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?await (0,y3.createExpiringPromise)(this.provider.disconnect(),2e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,clearTimeout(this.stalledRestartTimeout),this.stalledRestartInProgress=!1,this.stalledRestartBackoff=0,await this.resetTransport()}async transportOpen(e){if(!this.subscriber.hasAnyTopics)return void this.logger.info("Starting WS connection skipped because the client has no topics to work with.");if(this.connectPromise?(this.logger.debug({},"Waiting for existing connection attempt to resolve..."),await this.connectPromise,this.logger.debug({},"Existing connection attempt resolved")):(this.connectPromise=this.connect(e).finally(()=>{this.connectPromise=void 0}),await this.connectPromise),!this.connected)throw Error(`Couldn't establish socket connection to the relay server: ${this.relayUrl}`)}async restartTransport(e){this.logger.debug({},"Restarting transport..."),this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.resetTransport(),await this.transportOpen())}async resetTransport(){this.reconnectInProgress=!0,clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,await this.transportDisconnect(),await this.subscriber.stop(),this.reconnectInProgress=!1}async confirmOnlineStateOrThrow(){if(!await (0,y3.isOnline)())throw Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(e?.length===0)return void this.logger.trace("Batch message events is empty. Ignoring...");let t=e.sort((e,t)=>e.publishedAt-t.publishedAt);for(let e of(this.logger.debug(`Batch of ${t.length} message events sorted`),t))try{await this.onMessageEvent(e)}catch(e){this.logger.warn(e,"Error while processing batch message event: "+e?.message)}this.logger.trace(`Batch of ${t.length} message events processed`)}async onLinkMessageEvent(e,t){let{topic:r}=e;if(!t.sessionExists){let e=(0,y3.calcExpiry)(y$.FIVE_MINUTES);await this.core.pairing.pairings.set(r,{topic:r,expiry:e,relay:{protocol:"irn"},active:!1})}this.events.emit(bp,e),await this.recordMessageEvent(e,bk)}async connect(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),this.transportExplicitlyClosed=!1;let t=1;try{for(;t<6;){this.connectionAttemptInProgress=!0;try{if(this.transportExplicitlyClosed)break;this.logger.debug({},`Connecting to ${this.relayUrl}, attempt: ${t}...`),await this.createProvider(),await new Promise((e,t)=>
393{let r=()=>{t(Error("Connection interrupted while trying to connect"))};this.provider.once(bv,r),(0,y3.createExpiringPromise)(this.provider.connect(),this.connectTimeout,`Socket stalled when trying to connect to ${this.relayUrl}`).then(()=>e()).catch(t).finally(()=>{this.provider.off(bv,r),clearTimeout(this.reconnectTimeout)})}),await new Promise((e,t)=>{let r=()=>{t(Error("Connection interrupted while trying to subscribe"))};this.provider.once(bv,r),this.subscriber.start().then(e).catch(t).finally(()=>{this.provider.off(bv,r)})}),this.hasExperiencedNetworkDisruption=!1}catch(e){await this.subscriber.stop(),this.logger.warn({},e.message),this.hasExperiencedNetworkDisruption=!0}if(this.connected){this.logger.debug({},`Connected to ${this.relayUrl} successfully on attempt: ${t}`);break}await new Promise(e=>setTimeout(e,(0,y$.toMiliseconds)(+t))),t++}}finally{this.connectionAttemptInProgress=!1,clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.reconnectInProgress=!1}}startPingTimeout(){if((0,y3.isNode)())try{this.provider?.connection?.socket?.on("ping",()=>{this.resetPingTimeout()}),this.resetPingTimeout()}catch(e){this.logger.warn(e,e?.message)}}
393async createProvider(){if(this.provider.connection&&(this.unregisterProviderListeners(),this.connected))try{await (0,y3.createExpiringPromise)(this.provider.disconnect(),1e3,"Closing previous provider")}catch{}let e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new y5.JsonRpcProvider(new y7.default((0,y3.formatRelayRpcUrl)({sdkVersion:bx,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId,packageName:this.packageName}))),this.registerProviderListeners()}async recordMessageEvent(e,t){let{topic:r,message:i}=e;await this.messages.set(r,i,t)}async shouldIgnoreMessageEvent(e){let{topic:t,message:r}=e;if(!r||0===r.length)return this.logger.warn(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isKnownTopic(t))return this.logger.warn(`Ignoring message for unknown topic ${t}`),!0;let i=this.messages.has(t,r);return i&&this.logger.warn(`Ignoring duplicate message: ${r}`),i}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),(0,y6.isJsonRpcRequest)(e)){if(!e.method.endsWith("_subscription"))return;let t=e.params,{topic:r,message:i,publishedAt:n,attestation:o}=t.data,a={topic:r,message:i,publishedAt:n,transportType:bA,attestation:o};this.logger.debug("Emitting Relayer Payload"),this.logger.trace({type:"event",event:t.id,...a}
393),this.events.emit(t.id,a),await this.acknowledgePayload(e),await this.onMessageEvent(a)}else(0,y6.isJsonRpcResponse)(e)&&this.events.emit(bf,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(await this.recordMessageEvent(e,bk),this.events.emit(bp,e))}async acknowledgePayload(e){let t=(0,y8.formatJsonRpcResult)(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(by,this.onPayloadHandler),this.provider.off(bb,this.onConnectHandler),this.provider.off(bv,this.onDisconnectHandler),this.provider.off(bw,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await (0,y3.isOnline)();(0,y3.subscribeToNetworkChange)(async t=>{e!==t&&(e=t,t?await this.transportOpen().catch(e=>this.logger.error(e,e?.message)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))}),this.core.heartbeat.on(yR.HEARTBEAT_EVENTS.pulse,async()=>{if(!this.transportExplicitlyClosed&&!this.connected&&(0,y3.isAppVisible)())try{await this.confirmOnlineStateOrThrow(),await this.transportOpen()}catch(e){this.logger.warn(e,e?.message)}}),this.events.on(bg,()=>{if(this.transportExplicitlyClosed||this.stalledRestartInProgress)return;this.stalledRestartInProgress=!0;let e=0===this.stalledRestartBackoff?0:Math.min(Math.pow(2,this.stalledRestartBackoff-1)*this.stalledRestartBaseInterval,this.stalledRestartMaxInterval);this.stalledRestartBackoff++,this.logger.warn(`Connection stalled, restarting transport${e?` in ${e}ms`:""}...`),this.stalledRestartTimeout=setTimeout(async()=>{try{if(this.transportExplicitlyClosed)return;await this.restartTransport()}catch(e){this.logger.error(e,e?.message)}finally{this.stalledRestartInProgress=!1}},e)})}async onProviderDisconnect(){if(clearTimeout(this.pingTimeout),this.events.emit("relayer_disconnect"),!this.reconnectInProgress){this.reconnectInProgress=!0;try{await this.subscriber.stop()}catch(e){this.logger.warn(e,"subscriber.stop() failed during disconnect")}if(!this.subscriber.hasAnyTopics||this.transportExplicitlyClosed){this.reconnectInProgress=!1;return}this.reconnectTimeout=setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e,e?.message)),this.reconnectTimeout=void 0,this.reconnectInProgress=!1},(0,y$.toMiliseconds)(.1))}}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectPromise)return void await this.connectPromise;this.connectPromise=this.connect().finally(()=>{this.connectPromise=void 0}),await this.connectPromise}}}class bG extends yK{constructor(e,t,r,i=bs,n){super(e,t,r,i),this.core=e,this.logger=t,this.name=r,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=bs,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>{this.getKey&&null!==e&&!(0,y3.isUndefined)(e)?this.map.set(this.getKey(e),e):(0,y3.isProposalStruct)(e)?this.map.set(e.id,e):(0,y3.isSessionStruct)(e)&&this.map.set(e.topic,e)}),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter(t=>Object.keys(e).every(r=>{var i;return i=t[r],function e(t,r,i,n,o,a,s){let l=s(t,r,i,n,o,a);if(void 0!==l)return l;if(typeof t==typeof r)switch(typeof t){case"bigint":case"string":case"boolean":case"symbol":case"undefined":case"function":return t===r;case"number":return t===r||Object.is(t,r)}return function t(r,i,n,o){if(Object.is(r,i))return!0;let a=bt(r),s=bt(i);if(a===br&&(a=bi),s===br&&(s=bi),a!==s)return!1;switch(a){case"[object String]":return r.toString()===i.toString();case"[object Number]":{let e=r.valueOf(),t=i.valueOf();return e===t||Number.isNaN(e)&&Number.isNaN(t)}case"[object Boolean]":case"[object Date]":case"[object Symbol]":return Object.is(r.valueOf(),i.valueOf());case"[object RegExp]":return r.source===i.source&&r.flags===i.flags;case"[object Function]":return r===i}let l=(n=n??new Map).get(r),c=n.get(i);if(null!=l&&null!=c)return l===i;n.set(r,i),n.set(i,r);try{switch(a){case"[object Map]":if(r.size!==i.size)return!1;for(let[t,a]of r.entries())if(!i.has(t)||!e(a,i.get(t),t,r,i,n,o))return!1;return!0;case"[object Set]":{if(r.size!==i.size)return!1;let t=Array.from(r.values()),a=Array.from(i.values());for(let s=0;s<t.length;s++){let l=t[s],c=a.findIndex(t=>e(l,t,void 0,r,i,n,o));if(-1===c)return!1;a.splice(c,1)}return!0}case"[object Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":case"[object BigUint64Array
393]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object BigInt64Array]":case"[object Float32Array]":case"[object Float64Array]":if(void 0!==rI.Buffer&&rI.Buffer.isBuffer(r)!==rI.Buffer.isBuffer(i)||r.length!==i.length)return!1;for(let t=0;t<r.length;t++)if(!e(r[t],i[t],t,r,i,n,o))return!1;return!0;case"[object ArrayBuffer]":if(r.byteLength!==i.byteLength)return!1;return t(new Uint8Array(r),new Uint8Array(i),n,o);case"[object DataView]":if(r.byteLength!==i.byteLength||r.byteOffset!==i.byteOffset)return!1;return t(new Uint8Array(r),new Uint8Array(i),n,o);case"[object Error]":return r.name===i.name&&r.message===i.message;case bi:{if(!(t(r.constructor,i.constructor,n,o)||y9(r)&&y9(i)))return!1;let a=[...Object.keys(r),...be(r)],s=[...Object.keys(i),...be(i)];if(a.length!==s.length)return!1;for(let t=0;t<a.length;t++){let s=a[t],l=r[s];if(!Object.hasOwn(i,s))return!1;let c=i[s];if(!e(l,c,s,r,i,n,o))return!1}return!0}default:return!1}}finally{n.delete(r),n.delete(i)}}(t,r,a,s)}(i,e[r],void 0,void 0,void 0,void 0,bn)})):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});let r={...this.getData(e),...t};this.map.set(e,r),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=(0,yL.generateChildLogger)(t,this.name),this.storagePrefix=i,this.getKey=n}get context(){return(0,yL.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(t),Error(t)}let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:e}=(0,y3.getInternalError)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}}class bQ{constructor(e,t){this.core=e,this.logger=t,this.name="pairing",this.version="0.3",this.events=new yj.default,this.initialized=!1,this.storagePrefix=bs,this.ignoredPayloadTypes=[y3.TYPE_1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{this.isInitialized();let t=(0,y3.generateRandomBytes32)(),r=await this.core.crypto.setSymKey(t),i=(0,y3.calcExpiry)(y$.FIVE_MINUTES),n={protocol:"irn"},o={topic:r,expiry:i,relay:n,active:!1,methods:e?.methods},a=(0,y3.formatUri)({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:t,relay:n,expiryTimestamp:i,methods:e?.methods});return this.events.emit(bN,o),this.core.expirer.set(r,i),await this.pairings.set(r,o),await this.core.relayer.subscribe(r,{transportType:e?.transportType,internal:e?.internal}),{topic:r,uri:a}},this.pair=async e=>{let t;this.isInitialized();let r=this.core.eventClient.createEvent({properties:{topic:e?.uri,trace:["pairing_started"]}});this.isValidPair(e,r);let{topic:i,symKey:n,relay:o,expiryTimestamp:a,methods:s}=(0,y3.parseUri)(e.uri);if(r.props.properties.topic=i,r.addTrace("pairing_uri_validation_success"),r.addTrace("pairing_uri_not_expired"),this.pairings.keys.includes(i)){if(t=this.pairings.get(i),r.addTrace("existing_pairing"),t.active)throw r.setError("active_pairing_already_exists"),Error(`Pairing already exists: ${i}. Please try again with a new connection URI.`);r.addTrace("pairing_not_expired")}let l=a||(0,y3.calcExpiry)(y$.FIVE_MINUTES),c={topic:i,relay:o,expiry:l,active:!1,methods:s};this.core.expirer.set(i,l),await this.pairings.set(i,c),r.addTrace("store_new_pairing"),e.activatePairing&&await this.activate({topic:i}),this.events.emit(bN,c),r.addTrace("emit_inactive_pairing"),this.core.crypto.keychain.has(i)||await this.core.crypto.setSymKey(n,i),r.addTrace("subscribing_pairing_topic");try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{r.setError("no_internet_connection")}try{await this.core.relayer.subscribe(i,{relay:o})}catch(e){throw r.setError("subscribe_pairing_topic_failure"),e}return r.addTrace("subscribe_pairing_topic_success"),c},this.activate=async({topic:e})=>{this.isInitialized();let t=(0,y3.calcExpiry)(y$.FIVE_MINUTES);this.core.expirer.set(e,t),await this.pairings.update(e,{active:!0,expiry:t})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e),this.logger.warn("ping() is deprecated and will be removed in the next major release.");let{topic:t}=e;if(this.pairings.keys.includes(t)){let e=await this.sendRequest(t,"wc_pairingPing",{}),{done:r,resolve:i,reject:n}=(0,y3.createDelayedPromise)();this.events.once((0,y3.engineEvent)("pairing_ping",e),({error:e})=>{e?n(e):i()}),await r()}},this.updateExpiry=async({topic:e,expiry:t})=>{this.isInitialized(),await this.pairings.update(e,{expiry:t})},this.updateMetadata=async({topic:e,metadata:t})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:t})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);let{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,"wc_pairingDelete",(0,y3.getSdkError)("USER_DISCONNECTED")),await this.deletePairing(t))},this.formatUriFromPairing=e=>{this.isInitialized();let{topic:t,relay:r,expiry:i,methods:n}=e,o=this.core.crypto.keychain.get(t);return(0,y3.formatUri)({protocol:this.core.protocol,version:this.core.version,topic:t,symKey:o,relay:r,expiryTimestamp:i,methods:n})},this.sendRequest=async(e,t,r)=>{let i=(0,y8.formatJsonRpcRequest)(t,r),n=await this.core.crypto.encode(e,i),o=bT[t].req;return this.core.history.set(e,i),this.core.relayer.publish(e,n,o),i.id},this.sendResult=async(e,t,r)=>{let i=(0,y8.formatJsonRpcResult)(e,r),n=await this.core.crypto.encode(t,i),o=bT[(await this.core.history.get(t,e)).request.method].res;await this.core.relayer.publish(t,n,o),await this.core.history.resolve(i)},this.sendError=async(e,t,r)=>{let i=(0,y8.formatJsonRpcError)(e,r),n=await this.core.crypto.encode(t,i),o=(await this.core.history.get(t,e)).request.method,a=bT[o]?bT[o].res:bT.unregistered_method.res;await this.core.relayer.publish(t,n,a),await this.core.history.resolve(i)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,(0,y3.getSdkError)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{let e=this.pairings.getAll().filter(e=>(0,y3.isExpired)(e.expiry));await Promise.all(e.map(e=>this.deletePairing(e.topic)))},this.onRelayEventRequest=async e=>{let{topic:t,payload:r}=e;switch(r.method){case"wc_pairingPing":return await this.onPairingPingRequest(t,r);case"wc_pairingDelete":return await this.onPairingDeleteRequest(t,r);default:return await this.onUnknownRpcMethodRequest(t,r)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r}=e,i=(await this.core.history.get(t,r.id)).request.method;return"wc_pairingPing"===i?this.onPairingPingResponse(t,r):this.onUnknownRpcMethodResponse(i)},this.onPairingPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult(r,e,!0),this.events.emit("pairing_ping",{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onPairingPingResponse=(e,t)=>{let{id:r}=t;setTimeout(()=>{(0,y6.isJsonRpcResult)(t)?this.events.emit((0,y3.engineEvent)("pairing_ping",r),{}):(0,y6.isJsonRpcError)(t)&&this.events.emit((0,y3.engineEvent)("pairing_ping",r),{error:t.error})},500)},this.onPairingDeleteRequest=async(e,t)=>{let{id:r}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(b_,{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodRequest=async(e,t)=>{let{id:r,method:i}=t;try{if(this.registeredMethods.includes(i))return;let t=(0,y3.getSdkError)("WC_METHOD_UNSUPPORTED",i);await this.sendError(r,e,t),this.logger.error(t)}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error((0,y3.getSdkError)("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=(e,t)=>
393{if(!(0,y3.isValidParams)(e)){let{message:r}=(0,y3.getInternalError)("MISSING_OR_INVALID",`pair() params: ${e}`);throw t.setError(bU),Error(r)}if(!(0,y3.isValidUrl)(e.uri)){let{message:r}=(0,y3.getInternalError)("MISSING_OR_INVALID",`pair() uri: ${e.uri}`);throw t.setError(bU),Error(r)}let r=(0,y3.parseUri)(e?.uri);if(!r?.relay?.protocol){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID","pair() uri#relay-protocol");throw t.setError(bU),Error(e)}if(!r?.symKey){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID","pair() uri#symKey");throw t.setError(bU),Error(e)}if(r?.expiryTimestamp&&(0,y$.toMiliseconds)(r?.expiryTimestamp)<Date.now()){t.setError("pairing_expired");let{message:e}=(0,y3.getInternalError)("EXPIRED","pair() URI has expired. Please try again with a new connection URI.");throw Error(e)}},this.isValidPing=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!(0,y3.isValidString)(e,!1)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.pairings.keys.includes(e)){let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,y3.isExpired)(this.pairings.get(e).expiry)){await this.deletePairing(e);let{message:t}=(0,y3.getInternalError)("EXPIRED",`pairing topic: ${e}`);throw Error(t)}},this.core=e,this.logger=(0,yL.generateChildLogger)(t,this.name),this.pairings=new bG(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,yL.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}registerRelayerEvents(){this.core.relayer.on(bp,async e=>{let{topic:t,message:r,transportType:i}=e;if(this.pairings.keys.includes(t)&&i!==bS){try{if(this.core.crypto.getPayloadType(r,y3.BASE64URL)===y3.TYPE_2)return void this.logger.warn(`registerRelayerEvents() -> non-link mode TYPE_2 payload ignored: ${r}`)}catch{}if(!this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))try{let e=await this.core.crypto.decode(t,r);(0,y6.isJsonRpcRequest)(e)?(this.core.history.set(t,e),await this.onRelayEventRequest({topic:t,payload:e})):(0,y6.isJsonRpcResponse)(e)&&(await this.core.history.resolve(e),await this.onRelayEventResponse({topic:t,payload:e}),this.core.history.delete(t,e.id)),await this.core.relayer.messages.ack(t,r)}catch(e){this.logger.error(e)}}})}registerExpirerEvents(){this.core.expirer.on(bR,async e=>{let{topic:t}=(0,y3.parseExpirerTarget)(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))})}}class bZ extends yq{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new yj.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=bs,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.records.set(e.id,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:r}),this.records.has(t.id))return;let i={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:r,expiry:(0,y3.calcExpiry)(y$.THIRTY_DAYS)};this.records.set(i.id,i),this.persist(),this.events.emit(bC,i)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;let t=await this.getRecord(e.id);"u">typeof t.response||(t.response=(0,y6.isJsonRpcError)(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(bO,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>
393{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach(r=>{r.topic===e&&("u">typeof t&&r.id!==t||(this.records.delete(r.id),this.events.emit(bP,r)))}),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=(0,yL.generateChildLogger)(t,this.name)}get context(){return(0,yL.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(t=>{if("u">typeof t.response)return;let r={topic:t.topic,request:(0,y8.formatJsonRpcRequest)(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(r)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit("history_sync")}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:e}=(0,y3.getInternalError)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(bC,e=>{this.logger.info(`Emitting ${bC}`),this.logger.debug({type:"event",event:bC,record:e})}),this.events.on(bO,e=>{this.logger.info(`Emitting ${bO}`),this.logger.debug({type:"event",event:bO,record:e})}),this.events.on(bP,e=>{this.logger.info(`Emitting ${bP}`),this.logger.debug({type:"event",event:bP,record:e})}),this.core.heartbeat.on(yR.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(t=>{(0,y$.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(bP,t,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}}class bX extends yY{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new yj.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=bs,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.expirations.set(e.target,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{let t=this.formatTarget(e);return"u">typeof this.getExpiration(t)}catch{return!1}},this.set=(e,t)=>{this.isInitialized();let r=this.formatTarget(e),i={target:r,expiry:t};this.expirations.set(r,i),this.checkExpiry(r,i),this.events.emit(bD,{target:r,expiration:i})},this.get=e=>{this.isInitialized();let t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){let t=this.formatTarget(e),r=this.getExpiration(t);this.expirations.delete(t),this.events.emit(bj,{target:t,expiration:r})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=(0,yL.generateChildLogger)(t,this.name)}get context(){return(0,yL.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return(0,y3.formatTopicTarget)(e);if("number"==typeof e)return(0,y3.formatIdTarget)(e);let{message:t}=(0,y3.getInternalError)("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit("expirer_sync")}
393async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:e}=(0,y3.getInternalError)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(t),Error(t)}return t}checkExpiry(e,t){let{expiry:r}=t;(0,y$.toMiliseconds)(r)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(bR,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(yR.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(bD,e=>{this.logger.info(`Emitting ${bD}`),this.logger.debug({type:"event",event:bD,data:e}),this.persist()}),this.events.on(bR,e=>{this.logger.info(`Emitting ${bR}`),this.logger.debug({type:"event",event:bR,data:e}),this.persist()}),this.events.on(bj,e=>{this.logger.info(`Emitting ${bj}`),this.logger.debug({type:"event",event:bj,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}}class b$ extends yJ{constructor(e,t,r){super(e,t,r),this.core=e,this.logger=t,this.store=r,this.name="verify-api",this.verifyUrlV3=bL,this.storagePrefix=bs,this.version=2,this.init=async()=>{this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&(0,y$.toMiliseconds)(this.publicKey?.expiresAt)<Date.now()&&(this.logger.debug("verify v2 public key expired"),await this.removePublicKey()))},this.register=async e=>{if(!(0,y3.isBrowser)()||this.isDevEnv)return;let t=window.location.origin,{id:r,decryptedId:i}=e,n=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${t}&id=${r}&decryptedId=${i}`;try{let e=(0,bo.getDocument)(),t=this.startAbortTimer(5*y$.ONE_SECOND),i=await new Promise((i,o)=>{let a=()=>{window.removeEventListener("message",l),e.body.removeChild(s),o("attestation aborted")};this.abortController.signal.addEventListener("abort",a);let s=e.createElement("iframe");s.src=n,s.style.display="none",s.addEventListener("error",a,{signal:this.abortController.signal});let l=n=>{if(n.data&&"string"==typeof n.data)try{let o=JSON.parse(n.data);if("verify_attestation"===o.type){if((0,y1.decodeJWT)(o.attestation).payload.id!==r)return;clearInterval(t),e.body.removeChild(s),this.abortController.signal.removeEventListener("abort",a),window.removeEventListener("message",l),i(null===o.attestation?"":o.attestation)}}catch(e){this.logger.warn(e)}};e.body.appendChild(s),window.addEventListener("message",l,{signal:this.abortController.signal})});return this.logger.debug(i,"jwt attestation"),i}catch(e){this.logger.warn(e)}return""},this.resolve=async e=>{if(this.isDevEnv)return"";let{attestationId:t,hash:r,encryptedId:i}=e;if(""===t)return void this.logger.debug("resolve: attestationId is empty, skipping");if(t){if((0,y1.decodeJWT)(t).payload.id!==i)return;let e=await this.isValidJwtAttestation(t);if(e)return e.isVerified?e:void this.logger.warn("resolve: jwt attestation: origin url not verified")}if(!r)return;let n=this.getVerifyUrl(e?.verifyUrl);return this.fetchAttestation(r,n)},this.fetchAttestation=async(e,t)=>{this.logger.debug(`resolving attestation: ${e} from url: ${t}`);let r=this.startAbortTimer(5*y$.ONE_SECOND),i=await fetch(`${t}/attestation/${e}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(r),200===i.status?await i.json():void 0},this.getVerifyUrl=e=>{let t=e||bz;return bB.includes(t)||(this.logger.info(`verify url: ${t}, not included in trusted list, assigning default: ${bz}`),t=bz),t},this.fetchPublicKey=async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);let e=this.startAbortTimer(y$.FIVE_SECONDS),t=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(e),await t.json()}catch(e){this.logger.warn(e)}},this.persistPublicKey=async e=>{this.logger.debug(e,"persisting public key to local storage"),await this.store.setItem(this.storeKey,e),this.publicKey=e},this.removePublicKey=async()=>{this.logger.debug("removing verify v2 public key from storage"),await this.store.removeItem(this.storeKey),this.publicKey=void 0},this.isValidJwtAttestation=async e=>{let t=await this.getPublicKey();try{if(t)return this.validateAttestation(e,t)}catch(e){this.logger.error(e),this.logger.warn("error validating attestation")}let r=await this.fetchAndPersistPublicKey();try{if(r)return this.validateAttestation(e,r)}catch(e){this.logger.error(e),this.logger.warn("error validating attestation")}},this.getPublicKey=async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey(),this.fetchAndPersistPublicKey=async()=>
393{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise(async e=>{let t=await this.fetchPublicKey();t&&(await this.persistPublicKey(t),e(t))});let e=await this.fetchPromise;return this.fetchPromise=void 0,e},this.validateAttestation=(e,t)=>{let r=(0,y3.verifyP256Jwt)(e,t.publicKey),i={hasExpired:(0,y$.toMiliseconds)(r.exp)<Date.now(),payload:r};if(i.hasExpired)throw this.logger.warn("resolve: jwt attestation expired"),Error("JWT attestation expired");return{origin:i.payload.origin,isScam:i.payload.isScam,isVerified:i.payload.isVerified}},this.logger=(0,yL.generateChildLogger)(t,this.name),this.abortController=new AbortController,this.isDevEnv=(0,y3.isTestRun)(),this.init()}get storeKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//verify:public:key"}get context(){return(0,yL.getLoggerContext)(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,y$.toMiliseconds)(e))}}class b0 extends yG{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context="echo",this.registerDeviceToken=async e=>{let{clientId:t,token:r,notificationType:i,enableEncrypted:n=!1}=e,o=`https://echo.walletconnect.com/${this.projectId}/clients`;await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:t,type:i,token:r,always_raw:n})})},this.logger=(0,yL.generateChildLogger)(t,this.context)}}class b1 extends yQ{constructor(e,t,r=!0){super(e,t,r),this.core=e,this.logger=t,this.context="event-client",this.storagePrefix=bs,this.storageVersion=.1,this.events=new Map,this.shouldPersist=!1,this.init=async()=>{if(!(0,y3.isTestRun)())try{let e={eventId:(0,y3.uuidv4)(),timestamp:Date.now(),domain:this.getAppDomain(),props:{event:"INIT",type:"",properties:{client_id:await this.core.crypto.getClientId(),user_agent:(0,y3.formatUA)(this.core.relayer.protocol,this.core.relayer.version,bx)}}};await this.sendEvent([e])}catch(e){this.logger.warn(e)}},this.createEvent=e=>{let{event:t="ERROR",type:r="",properties:{topic:i,trace:n}}=e,o=(0,y3.uuidv4)(),a=this.core.projectId||"",s={eventId:o,timestamp:Date.now(),props:{event:t,type:r,properties:{topic:i,trace:n}},bundleId:a,domain:this.getAppDomain(),...this.setMethods(o)};return this.telemetryEnabled&&(this.events.set(o,s),this.shouldPersist=!0),s},this.getEvent=e=>{let{eventId:t,topic:r}=e;if(t)return this.events.get(t);let i=Array.from(this.events.values()).find(e=>e.props.properties.topic===r);if(i)return{...i,...this.setMethods(i.eventId)}},this.deleteEvent=e=>{let{eventId:t}=e;this.events.delete(t),this.shouldPersist=!0},this.setEventListeners=()=>{this.core.heartbeat.on(yR.HEARTBEAT_EVENTS.pulse,async()=>{this.shouldPersist&&await this.persist(),this.events.forEach(e=>{(0,y$.fromMiliseconds)(Date.now())-(0,y$.fromMiliseconds)(e.timestamp)>86400&&(this.events.delete(e.eventId),this.shouldPersist=!0)})})},this.setMethods=e=>({addTrace:t=>this.addTrace(e,t),setError:t=>this.setError(e,t)}),this.addTrace=(e,t)=>{let r=this.events.get(e);r&&(r.props.properties.trace.push(t),this.events.set(e,r),this.shouldPersist=!0)},this.setError=(e,t)=>{let r=this.events.get(e);r&&(r.props.type=t,r.timestamp=Date.now(),this.events.set(e,r),this.shouldPersist=!0)},this.persist=async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1},this.restore=async()=>{try{let e=await this.core.storage.getItem(this.storageKey)||[];if(!e.length)return;e.forEach(e=>{this.events.set(e.eventId,{...e,...this.setMethods(e.eventId)})})}catch(e){this.logger.warn(e)}},this.submit=async()=>{if(!this.telemetryEnabled||0===this.events.size)return;let e=[];for(let[t,r]of this.events)r.props.type&&e.push(r);if(0!==e.length)try{if((await this.sendEvent(e)).ok)for(let t of e)this.events.delete(t.eventId),this.shouldPersist=!0}catch(e){this.logger.warn(e)}},this.sendEvent=async e=>{let t=this.getAppDomain()?"":"&sp=desktop";return await fetch(`https://pulse.walletconnect.org/batch?projectId=${this.core.projectId}&st=events_sdk&sv=js-${bx}${t}`,{method:"POST",body:JSON.stringify(e)})},this.getAppDomain=()=>(0,y3.getAppMetadata)().url,this.logger=(0,yL.generateChildLogger)(t,this.context),this.telemetryEnabled=r,r?this.restore(
393).then(async()=>{await this.submit(),this.setEventListeners()}):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}let b2=class e extends yU{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=ba,this.events=new yj.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.dispatchEnvelope=({topic:e,message:t,sessionExists:r})=>{if(!e||!t)return;let i={topic:e,message:t,publishedAt:Date.now(),transportType:bS};this.relayer.onLinkMessageEvent(i,{sessionExists:r})};const t=this.getGlobalCore(e?.customStoragePrefix);if(t)try{return this.customStoragePrefix=t.customStoragePrefix,this.logger=t.logger,this.heartbeat=t.heartbeat,this.crypto=t.crypto,this.history=t.history,this.expirer=t.expirer,this.storage=t.storage,this.relayer=t.relayer,this.pairing=t.pairing,this.verify=t.verify,this.echoClient=t.echoClient,this.linkModeSupportedApps=t.linkModeSupportedApps,this.eventClient=t.eventClient,this.initialized=t.initialized,this.logChunkController=t.logChunkController,t}catch(e){console.warn("Failed to copy global core",e)}this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||bh,this.customStoragePrefix=e?.customStoragePrefix?`:${e.customStoragePrefix}`:"";const r=(0,yL.getDefaultLoggerOptions)({level:"string"==typeof e?.logger&&e.logger?e.logger:"error",name:ba}),{logger:i,chunkLoggerController:n}=(0,yL.generatePlatformLogger)({opts:r,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=n,this.logChunkController?.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{this.logChunkController?.downloadLogsBlobInBrowser&&this.logChunkController?.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()})}),this.logger=(0,yL.generateChildLogger)(i,this.name),this.heartbeat=new yR.HeartBeat,this.crypto=new bH(this,this.logger,e?.keychain),this.history=new bZ(this,this.logger),this.expirer=new bX(this,this.logger),this.storage=e?.storage?e.storage:new yz.default({...bl,...e?.storageOptions}),this.relayer=new bJ({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new bQ(this,this.logger),this.verify=new b$(this,this.logger,this.storage),this.echoClient=new b0(this.projectId||"",this.logger),this.linkModeSupportedApps=[],this.eventClient=new b1(this,this.logger,e?.telemetryEnabled),this.setGlobalCore(this)}static async init(t){let r=new e(t);await r.initialize();let i=await r.crypto.getClientId();return await r.storage.setItem("WALLETCONNECT_CLIENT_ID",i),r}get context(){return(0,yL.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){return this.logChunkController?.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(bE,this.linkModeSupportedApps))}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.linkModeSupportedApps=await this.storage.getItem(bE)||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(e,`Core Initialization Failure at epoch ${Date.now()}`),this.logger.error(e.message),e}}getGlobalCore(e=""){try{if(this.isGlobalCoreDisabled())return;let t=`_walletConnectCore_${e}`,r=`${t}_count`;return globalThis[r]=(globalThis[r]||0)+1,globalThis[r]>1&&console.warn(`WalletConnect Core is already initialized. This is probably a mistake and can lead to unexpected behavior. Init() was called ${globalThis[r]} times.`),globalThis[t]}catch(e){console.warn("Failed to get global WalletConnect core",e);return}}setGlobalCore(e){try{if(this.isGlobalCoreDisabled())return;let t=`_walletConnectCore_${e.opts?.customStoragePrefix||""}`;globalThis[t]=e}catch(e){console.warn("Failed to set global WalletConnect core",e)}}isGlobalCoreDisabled(){try{return"u">typeof eD.default&&"true"===eD.default.env.DISABLE_GLOBAL_CORE}catch{return!0}}},b3="client",b4=`wc@2:${b3}:`,b5="WALLETCONNECT_DEEPLINK_CHOICE",b8=(y$.THIRTY_DAYS,"Proposal expired"),b6=y$.SEVEN_DAYS,b7={wc_sessionPropose:{req:{ttl:y$.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:y$.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:y$.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:y$.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:y$.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:y$.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:y$.ONE_DAY,prompt:!1,tag:1104},res:{ttl:y$.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:y$.ONE_DAY,prompt:!1,tag:1106},res:{ttl:y$.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:3*y$.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:3*y$.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:y$.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:y$.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:y$.ONE_DAY,prompt:!1,tag:1112},res:{ttl:y$.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:y$.ONE_DAY,prompt:!1,tag:1114},res:{ttl:y$.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:y$.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:y$.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:y$.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:y$.FIVE_MINUTES,prompt:!1,tag:1119}}},b9={min:y$.FIVE_MINUTES,max:y$.SEVEN_DAYS},ve="IDLE",vt="ACTIVE",vr={eth_sendTransaction:{key:""},eth_sendRawTransaction:{key:""},wallet_sendCalls:{key:""},solana_signTransaction:{key:"signature"},solana_signAllTransactions:{key:"transactions"},solana_signAndSendTransaction:{key:"signature"},sui_signAndExecuteTransaction:{key:"digest"},sui_signTransaction:{key:""},hedera_signAndExecuteTransaction:{key:"transactionId"},hedera_executeTransaction:{key:"transactionId"},near_signTransaction:{key:""},near_signTransactions:{key:""},tron_signTransaction:{key:"txID"},xrpl_signTransaction:{key:""},xrpl_signTransactionFor:{key:""},algo_signTxn:{key:""},sendTransfer:{key:"txid"},stacks_stxTransfer:{key:"txId"},polkadot_signTransaction:{key:""}
393,cosmos_signDirect:{key:""},canton_prepareSignExecute:{key:""}},vi=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],vn="[email protected]:auth:",vo=`${vn}:PUB_KEY`;class va extends yX{constructor(t){super(t),this.name="engine",this.events=new yj.default,this.initialized=!1,this.requestQueue={state:ve,queue:[]},this.sessionRequestQueue={state:ve,queue:[]},this.emittedSessionRequests=new y3.LimitedSet({limit:500}),this.requestQueueDelay=y$.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.pendingSessions=new Map,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.registerSubscriptionCleanup(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(b7)}),this.initialized=!0,setTimeout(async()=>{await this.processPendingMessageEvents(),this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,y$.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();let t={...e,requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}};await this.isValidConnect(t),t.optionalNamespaces=(0,y3.mergeRequiredAndOptionalNamespaces)(t.requiredNamespaces,t.optionalNamespaces),t.requiredNamespaces={};let{pairingTopic:r,requiredNamespaces:i,optionalNamespaces:n,sessionProperties:o,scopedProperties:a,relays:s,authentication:l,walletPay:c}=t,d=l?.[0]?.ttl||b7.wc_sessionPropose.req.ttl||y$.FIVE_MINUTES;this.validateRequestExpiry(d);let u=r,h,p=!1;try{if(u){let e=this.client.core.pairing.pairings.get(u);this.client.logger.warn("connect() with existing pairing topic is deprecated and will be removed in the next major release."),p=e.active}}catch(e){throw this.client.logger.error(`connect() -> pairing.get(${u}) failed`),e}if(!u||!p){let{topic:e,uri:t}=await this.client.core.pairing.create({internal:{skipSubscribe:!0}});u=e,h=t}if(!u){let{message:e}=(0,y3.getInternalError)("NO_MATCHING_KEY",`connect() pairing topic: ${u}`);throw Error(e)}let f=await this.client.core.crypto.generateKeyPair(),g=(0,y3.calcExpiry)(d),m={requiredNamespaces:i,optionalNamespaces:n,relays:s??[{protocol:"irn"}],proposer:{publicKey:f,metadata:this.client.metadata},expiryTimestamp:g,pairingTopic:u,...o&&{sessionProperties:o},...a&&{scopedProperties:a},id:(0,y8.payloadId)(),...(l||c)&&{requests:{authentication:l?.map(e=>{let{domain:t,chains:r,nonce:i,uri:n,exp:o,nbf:a,type:s,statement:l,requestId:c,resources:d,signatureTypes:u}=e;return{domain:t,chains:r,nonce:i,type:s??"caip122",aud:n,version:"1",iat:new Date().toISOString(),exp:o,nbf:a,statement:l,requestId:c,resources:d,signatureTypes:u}}),walletPay:c}}},y=(0,y3.engineEvent)("session_connect",m.id),{reject:b,resolve:v,done:w}=(0,y3.createDelayedPromise)(d,b8),x=({id:e})=>{if(e===m.id){this.client.events.off("proposal_expire",x);let e=this.pendingSessions.get(m.id);if(e){let{sessionTopic:t,publicKey:r}=e;Promise.all([this.client.core.relayer.unsubscribe(t),this.client.core.crypto.keychain.has(t)?this.client.core.crypto.deleteSymKey(t):Promise.resolve(),this.client.core.crypto.keychain.has(r)?this.client.core.crypto.deleteKeyPair(r):Promise.resolve()]).catch(e=>this.client.logger.warn(e))}this.pendingSessions.delete(m.id),this.events.emit(y,{error:{message:b8,code:0}})}};return this.client.events.on("proposal_expire",x),this.events.once(y,({error:e,session:t})=>{this.client.events.off("proposal_expire",x),e?b(e):t&&v(t)}),await this.setProposal(m.id,m),await this.sendProposeSession({proposal:m,publishOpts:{internal:{throwOnFailedPublish:!0},tvf:{correlationId:m.id}}}).catch(e=>{throw this.deleteProposal(m.id),e}),{uri:h,approval:w}},this.pair=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(e)}catch(e){throw this.client.logger.error("pair() failed"),e}},this.approve=async e=>{let t=this.client.core.eventClient.createEvent({properties:{topic:e?.id?.toString(),trace:[bq]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch(e){throw t.setError("no_internet_connection"),e}try{await this.isValidProposalId(e?.id)}catch(r){throw this.client.logger.error(`approve() -> proposal.get(${e?.id}) failed`),t.setError("proposal_not_found"),r}try{await this.isValidApprove(e)}catch(e){throw this.client.logger.error("approve() -> isValidApprove() failed"),t.setError("session_approve_namespace_validation_failure"),e}let{id:r,relayProtocol:i,namespaces:n,sessionProperties:o,scopedProperties:a,sessionConfig:s,proposalRequestsResponses:l}=e,c=this.client.proposal.get(r);this.client.core.eventClient.deleteEvent({eventId:t.eventId});let{pairingTopic:d,proposer:u,requiredNamespaces:h,optionalNamespaces:p}=c,f=this.client.core.eventClient?.getEvent({topic:d});f||(f=this.client.core.eventClient?.createEvent({type:bq,properties:{topic:d,trace:[bq,"session_namespaces_validation_success"]}}));let g=await this.client.core.crypto.generateKeyPair(),m=u.publicKey,y=await this.client.core.crypto.generateSharedKey(g,m),b={relay:{protocol:i??"irn"},namespaces:n,controller:{publicKey:g,metadata:this.client.metadata},expiry:(0,y3.calcExpiry)(b6),...o&&{sessionProperties:o},...a&&{scopedProperties:a},...s&&{sessionConfig:s},proposalRequestsResponses:l};f.addTrace("subscribing_session_topic");try{await this.client.core.relayer.subscribe(y,{transportType:bA,internal:{skipSubscribe:!0}})}catch(e){throw f.setError("subscribe_session_topic_failure"),e}f.addTrace("subscribe_session_topic_success");let v={...b,topic:y,requiredNamespaces:h,optionalNamespaces:p,pairingTopic:d,acknowledged:!1,self:b.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:g,transportType:bA,authentication:l?.authentication,walletPayResult:l?.walletPay};await this.client.session.set(y,v),f.addTrace("store_session");try{await this.sendApproveSession({sessionTopic:y,proposal:c,pairingProposalResponse:{relay:{protocol:i??"irn"},responderPublicKey:g},sessionSettleRequest:b,publishOpts:{internal:{throwOnFailedPublish:!0}
393,tvf:{correlationId:r,...this.getTVFApproveParams(v)}}}),f.addTrace("session_approve_publish_success")}catch(e){throw this.client.logger.error(e),this.client.session.delete(y,(0,y3.getSdkError)("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(y),e}return this.client.core.eventClient.deleteEvent({eventId:f.eventId}),await this.client.core.pairing.updateMetadata({topic:d,metadata:u.metadata}),await this.deleteProposal(r),await this.client.core.pairing.activate({topic:d}),await this.setExpiry(y,(0,y3.calcExpiry)(b6)),{topic:y,acknowledged:()=>Promise.resolve(this.client.session.get(y))}},this.reject=async e=>{let t;this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(e)}catch(e){throw this.client.logger.error("reject() -> isValidReject() failed"),e}let{id:r,reason:i}=e;try{t=this.client.proposal.get(r).pairingTopic}catch(e){throw this.client.logger.error(`reject() -> proposal.get(${r}) failed`),e}t&&await this.sendError({id:r,topic:t,error:i,rpcOpts:b7.wc_sessionPropose.reject}),await this.deleteProposal(r)},this.update=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(e)}catch(e){throw this.client.logger.error("update() -> isValidUpdate() failed"),e}let{topic:t,namespaces:r}=e,i=this.client.session.get(t);if(i.self.publicKey!==i.controller){let{message:e}=(0,y3.getSdkError)("UNAUTHORIZED_UPDATE_REQUEST");throw Error(e)}let{done:n,resolve:o,reject:a}=(0,y3.createDelayedPromise)(y$.FIVE_MINUTES,"Session update request expired without receiving any acknowledgement"),s=(0,y8.payloadId)(),l=(0,y8.getBigIntRpcId)().toString(),c=this.client.session.get(t).namespaces;return this.events.once((0,y3.engineEvent)("session_update",s),({error:e})=>{e?a(e):o()}),await this.client.session.update(t,{namespaces:r}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:s,relayRpcId:l}).catch(e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:c}),a(e)}),{acknowledged:n}},this.extend=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(e)}catch(e){throw this.client.logger.error("extend() -> isValidExtend() failed"),e}let{topic:t}=e,r=(0,y8.payloadId)(),{done:i,resolve:n,reject:o}=(0,y3.createDelayedPromise)(y$.FIVE_MINUTES,"Session extend request expired without receiving any acknowledgement");return this.events.once((0,y3.engineEvent)("session_extend",r),({error:e})=>{e?o(e):n()}),await this.setExpiry(t,(0,y3.calcExpiry)(b6)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch(e=>{o(e)}),{acknowledged:i}},this.request=async e=>{this.isInitialized();try{await this.isValidRequest(e)}catch(e){throw this.client.logger.error("request() -> isValidRequest() failed"),e}let{chainId:t,request:r,topic:i,expiry:n=b7.wc_sessionRequest.req.ttl}=e,o=this.client.session.get(i);o?.transportType===bA&&await this.confirmOnlineStateOrThrow();let a=(0,y8.payloadId)(),s=(0,y8.getBigIntRpcId)().toString(),{done:l,resolve:c,reject:d}=(0,y3.createDelayedPromise)(n,"Request expired. Please try again.");this.events.once((0,y3.engineEvent)("session_request",a),({error:e,result:t})=>{e?d(e):c(t)});let u="wc_sessionRequest",h=this.getAppLinkIfEnabled(o.peer.metadata,o.transportType);if(h)return await this.sendRequest({clientRpcId:a,relayRpcId:s,topic:i,method:u,params:{request:{...r,expiryTimestamp:(0,y3.calcExpiry)(n)},chainId:t},expiry:n,throwOnFailedPublish:!0,appLink:h}).catch(e=>d(e)),this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:t,id:a}),await l();let p={request:{...r,expiryTimestamp:(0,y3.calcExpiry)(n)},chainId:t};return await Promise.all([new Promise(async e=>{await this.sendRequest({clientRpcId:a,relayRpcId:s,topic:i,method:u,params:p,expiry:n,throwOnFailedPublish:!0,tvf:this.getTVFParams(a,p)}).catch(e=>d(e)),this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:t,id:a}),e()}),new Promise(async e=>{if(!o.sessionConfig?.disableDeepLink){let e=await (0,y3.getDeepLink)(this.client.core.storage,b5);await (0,y3.handleDeeplinkRedirect)({id:a,topic:i,wcDeepLink:e})}e()}),l()]).then(e=>e[2])},this.respond=async e=>{this.isInitialized();let t=this.client.core.eventClient.createEvent({properties:{topic:e?.topic||e?.response?.id?.toString(),trace:["session_request_response_started"]}});try{await this.isValidRespond(e)}catch(e){throw t.addTrace(e?.message),t.setError("session_request_response_validation_failure"),e}t.addTrace("session_request_response_validation_success");let{topic:r,response:i}=e,{id:n}=i,o=this.client.session.get(r);o.transportType===bA&&await this.confirmOnlineStateOrThrow();let a=this.getAppLinkIfEnabled(o.peer.metadata,o.transportType);try{t.addTrace("session_request_response_publish_started"),(0,y6.isJsonRpcResult)(i)?await this.sendResult({id:n,topic:r,result:i.result,throwOnFailedPublish:!0,appLink:a}
393):(0,y6.isJsonRpcError)(i)&&await this.sendError({id:n,topic:r,error:i.error,appLink:a}),this.cleanupAfterResponse(e)}catch(e){throw t.addTrace(e?.message),t.setError("session_request_response_publish_failure"),e}},this.ping=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(e)}catch(e){throw this.client.logger.error("ping() -> isValidPing() failed"),e}let{topic:t}=e;if(this.client.session.keys.includes(t)){let e=(0,y8.payloadId)(),r=(0,y8.getBigIntRpcId)().toString(),{done:i,resolve:n,reject:o}=(0,y3.createDelayedPromise)(y$.FIVE_MINUTES,"Ping request expired without receiving any acknowledgement");this.events.once((0,y3.engineEvent)("session_ping",e),({error:e})=>{e?o(e):n()}),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:r}),i()])}else this.client.core.pairing.pairings.keys.includes(t)&&(this.client.logger.warn("ping() on pairing topic is deprecated and will be removed in the next major release."),await this.client.core.pairing.ping({topic:t}))},this.emit=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(e);let{topic:t,event:r,chainId:i}=e,n=(0,y8.getBigIntRpcId)().toString(),o=(0,y8.payloadId)();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:r,chainId:i},throwOnFailedPublish:!0,relayRpcId:n,clientRpcId:o})},this.disconnect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(e);let{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:(0,y3.getSdkError)("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(t))await this.client.core.pairing.disconnect({topic:t});else{let{message:e}=(0,y3.getInternalError)("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`);throw Error(e)}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter(t=>(0,y3.isSessionCompatible)(t,e))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async(e,t)=>{let r;this.isInitialized(),this.isValidAuthenticate(e);let i=t&&this.client.core.linkModeSupportedApps.includes(t)&&this.client.metadata.redirect?.linkMode,n=i?bS:bA;n===bA&&await this.confirmOnlineStateOrThrow();let{chains:o,statement:a="",uri:s,domain:l,nonce:c,type:d,exp:u,nbf:h,methods:p=[],expiry:f}=e,g=[...e.resources||[]],{topic:m,uri:y}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:n});if(this.client.logger.info({message:"Generated new pairing",pairing:{topic:m,uri:y}}),this.client.auth.authKeys.keys.includes(vo)){let{responseTopic:e,publicKey:t}=this.client.auth.authKeys.get(vo);e&&(await this.client.core.relayer.unsubscribe(e).catch(e=>this.client.logger.warn(e)),await this.client.auth.pairingTopics.delete(e,{message:"replaced",code:0}).catch(e=>this.client.logger.warn(e))),t&&this.client.core.crypto.keychain.has(t)&&await this.client.core.crypto.deleteKeyPair(t)}let b=await this.client.core.crypto.generateKeyPair(),v=(0,y3.hashKey)(b);if(await Promise.all([this.client.auth.authKeys.set(vo,{responseTopic:v,publicKey:b}),this.client.auth.pairingTopics.set(v,{topic:v,pairingTopic:m})]),await this.client.core.relayer.subscribe(v,{transportType:n}),this.client.logger.info(`sending request to new pairing topic: ${m}`),p.length>0){let{namespace:e}=(0,y3.parseChainId)(o[0]),t=(0,y3.createEncodedRecap)(e,"request",p);(0,y3.getRecapFromResources)(g)&&(t=(0,y3.mergeEncodedRecaps)(t,g.pop())),g.push(t)}let w=f&&f>b7.wc_sessionAuthenticate.req.ttl?f:b7.wc_sessionAuthenticate.req.ttl,x={authPayload:{type:d??"caip122",chains:o,statement:a,aud:s,domain:l,version:"1",nonce:c,iat:new Date().toISOString(),exp:u,nbf:h,resources:g},requester:{publicKey:b,metadata:this.client.metadata},expiryTimestamp:(0,y3.calcExpiry)(w)},S={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:o,methods:[...new Set(["personal_sign",...p])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:m,proposer:{publicKey:b,metadata:this.client.metadata},expiryTimestamp:(0,y3.calcExpiry)(b7.wc_sessionPropose.req.ttl),id:(0,y8.payloadId)()},{done:A,resolve:k,reject:E}=(0,y3.createDelayedPromise)(w,"Request expired"),I=(0,y8.payloadId)(),M=(0,y3.engineEvent)("session_connect",S.id),T=(0,y3.engineEvent)("session_request",I),N=async({error:e,session:t})=>{this.events.off(T,_),e?E(e):t&&k({session:t})},_=async e=>{let r;if(await this.deletePendingAuthRequest(I,{message:"fulfilled",code:0}),e.error){let t=(0,y3.getSdkError)("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===t.code?void 0:(this.events.off(M,N),E(e.error.message))}await this.deleteProposal(S.id),this.events.off(M,N);let{cacaos:i,responder:o}=e.result,a=[],s=[];for(let e of i){await (0,y3.validateSignedCacao)({cacao:e,projectId:this.client.core.projectId})||(this.client.logger.error(e,"Signature verification failed"),E((0,y3.getSdkError)("SESSION_SETTLEMENT_FAILED","Signature verification failed")));let{p:t}=e,r=(0,y3.getRecapFromResources)(t.resources),i=[(0,y3.getNamespacedDidChainId)(t.iss)],n=(0,y3.getDidAddress)(t.iss);if(r){let e=(0,y3.getMethodsFromRecap)(r),t=(0,y3.getChainsFromRecap)(r);a.push(...e),i.push(...t)}for(let e of i)s.push(`${e}:${n}`)}let l=await this.client.core.crypto.generateSharedKey(b,o.publicKey);a.length>0&&(r={topic:l,acknowledged:!0,self:{publicKey:b,metadata:this.client.metadata},peer:o,controller:o.publicKey,expiry:(0,y3.calcExpiry)(b6),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:m,namespaces:(0,y3.buildNamespacesFromAuth)([...new Set(a
393)],[...new Set(s)]),transportType:n},await this.client.core.relayer.subscribe(l,{transportType:n}),await this.client.session.set(l,r),m&&await this.client.core.pairing.updateMetadata({topic:m,metadata:o.metadata}),r=this.client.session.get(l)),this.client.metadata.redirect?.linkMode&&o.metadata.redirect?.linkMode&&o.metadata.redirect?.universal&&t&&(this.client.core.addLinkModeSupportedApp(o.metadata.redirect.universal),this.client.session.update(l,{transportType:bS})),k({auths:i,session:r})};this.events.once(M,N),this.events.once(T,_);try{if(i){let e=(0,y8.formatJsonRpcRequest)("wc_sessionAuthenticate",x,I);this.client.core.history.set(m,e);let i=await this.client.core.crypto.encode("",e,{type:y3.TYPE_2,encoding:y3.BASE64URL});r=(0,y3.getLinkModeURL)(t,m,i)}else await Promise.all([this.sendRequest({topic:m,method:"wc_sessionAuthenticate",params:x,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:I}),this.sendRequest({topic:m,method:"wc_sessionPropose",params:S,expiry:b7.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:S.id})])}catch(e){throw this.events.off(M,N),this.events.off(T,_),e}return await this.setProposal(S.id,S),await this.setAuthRequest(I,{request:{...x,verifyContext:{}},pairingTopic:m,transportType:n}),{uri:r??y,response:A}},this.approveSessionAuthenticate=async e=>{let t,{id:r,auths:i}=e,n=this.client.core.eventClient.createEvent({properties:{topic:r.toString(),trace:["authenticated_session_approve_started"]}});try{this.isInitialized()}catch(e){throw n.setError("no_internet_connection"),e}let o=this.getPendingAuthRequest(r);if(!o)throw n.setError("authenticated_session_pending_request_not_found"),Error(`Could not find pending auth request with id ${r}`);let a=o.transportType||bA;a===bA&&await this.confirmOnlineStateOrThrow();let s=o.requester.publicKey,l=await this.client.core.crypto.generateKeyPair(),c=(0,y3.hashKey)(s),d={type:y3.TYPE_1,receiverPublicKey:s,senderPublicKey:l},u=[],h=[];for(let e of i){if(!await (0,y3.validateSignedCacao)({cacao:e,projectId:this.client.core.projectId})){n.setError("invalid_cacao");let e=(0,y3.getSdkError)("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:r,topic:c,error:e,encodeOpts:d}),Error(e.message)}n.addTrace("cacaos_verified");let{p:t}=e,i=(0,y3.getRecapFromResources)(t.resources),o=[(0,y3.getNamespacedDidChainId)(t.iss)],a=(0,y3.getDidAddress)(t.iss);if(i){let e=(0,y3.getMethodsFromRecap)(i),t=(0,y3.getChainsFromRecap)(i);u.push(...e),o.push(...t)}for(let e of o)h.push(`${e}:${a}`)}let p=await this.client.core.crypto.generateSharedKey(l,s);if(n.addTrace("create_authenticated_session_topic"),u?.length>0){t={topic:p,acknowledged:!0,self:{publicKey:l,metadata:this.client.metadata},peer:{publicKey:s,metadata:o.requester.metadata},controller:s,expiry:(0,y3.calcExpiry)(b6),authentication:i,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:o.pairingTopic,namespaces:(0,y3.buildNamespacesFromAuth)([...new Set(u)],[...new Set(h)]),transportType:a},n.addTrace("subscribing_authenticated_session_topic");try{await this.client.core.relayer.subscribe(p,{transportType:a})}catch(e){throw n.setError("subscribe_authenticated_session_topic_failure"),e}n.addTrace("subscribe_authenticated_session_topic_success"),await this.client.session.set(p,t),n.addTrace("store_authenticated_session"),await this.client.core.pairing.updateMetadata({topic:o.pairingTopic,metadata:o.requester.metadata})}n.addTrace("publishing_authenticated_session_approve");try{await this.sendResult({topic:c,id:r,result:{cacaos:i,responder:{publicKey:l,metadata:this.client.metadata}},encodeOpts:d,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(o.requester.metadata,a)})}catch(e){throw n.setError("authenticated_session_approve_publish_failure"),e}return await this.client.auth.requests.delete(r,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:o.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:n.eventId}),{session:t}},this.rejectSessionAuthenticate=async e=>{this.isInitialized();let{id:t,reason:r}=e,i=this.getPendingAuthRequest(t);if(!i)throw Error(`Could not find pending auth request with id ${t}`);i.transportType===bA&&await this.confirmOnlineStateOrThrow();let n=i.requester.publicKey,o=await this.client.core.crypto.generateKeyPair(),a=(0,y3.hashKey)(n),s={type:y3.TYPE_1,receiverPublicKey:n,senderPublicKey:o};
393await this.sendError({id:t,topic:a,error:r,encodeOpts:s,rpcOpts:b7.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(i.requester.metadata,i.transportType)}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.deleteProposal(t)},this.formatAuthMessage=e=>{this.isInitialized();let{request:t,iss:r}=e;return(0,y3.formatMessage)(t,r)},this.processRelayMessageCache=()=>{setTimeout(async()=>{if(0!==this.relayMessageCache.length)for(;this.relayMessageCache.length>0;)try{let e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}},50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{let t=this.client.core.pairing.pairings.get(e.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter(r=>r.peerMetadata?.url&&r.peerMetadata?.url===e.peer.metadata.url&&r.topic&&r.topic!==t.topic);if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map(e=>this.client.core.pairing.disconnect({topic:e.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(e){this.client.logger.error(e)}},this.deleteSession=async e=>{let{topic:t,expirerHasDeleted:r=!1,emitEvent:i=!0,id:n=0}=e,{self:o}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),await this.client.session.delete(t,(0,y3.getSdkError)("USER_DISCONNECTED")),this.addToRecentlyDeleted(t,"session"),this.client.core.crypto.keychain.has(o.publicKey)&&await this.client.core.crypto.deleteKeyPair(o.publicKey),this.client.core.crypto.keychain.has(t)&&await this.client.core.crypto.deleteSymKey(t),r||this.client.core.expirer.del(t),this.client.core.storage.removeItem(b5).catch(e=>this.client.logger.warn(e)),t===this.sessionRequestQueue.queue[0]?.topic&&(this.sessionRequestQueue.state=ve),await Promise.all(this.getPendingSessionRequests().filter(e=>e.topic===t).map(e=>this.deletePendingSessionRequest(e.id,(0,y3.getSdkError)("USER_DISCONNECTED")))),i&&this.client.events.emit("session_delete",{id:n,topic:t})},this.deleteProposal=async(e,t)=>{if(t)try{let t=this.client.proposal.get(e);this.client.core.eventClient.getEvent({topic:t.pairingTopic})?.setError("proposal_expired")}catch{}await Promise.all([this.client.proposal.delete(e,(0,y3.getSdkError)("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,t,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(t=>t.id!==e),r&&(this.sessionRequestQueue.state=ve,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,t,r=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,(0,y3.calcExpiry)(b7.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{let{request:r,pairingTopic:i,transportType:n=bA}=t;this.client.core.expirer.set(e,r.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:r.authPayload,requester:r.requester,expiryTimestamp:r.expiryTimestamp,id:e,pairingTopic:i,verifyContext:r.verifyContext,transportType:n})},this.setPendingSessionRequest=async e=>{let{id:t,topic:r,params:i,verifyContext:n}=e,o=i.request.expiryTimestamp||(0,y3.calcExpiry)(b7.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,o),await this.client.pendingRequest.set(t,{id:t,topic:r,params:i,verifyContext:n})},this.sendRequest=async t=>{let r,i,{topic:n,method:o,params:a,expiry:s,relayRpcId:l,clientRpcId:c,throwOnFailedPublish:d,appLink:u,tvf:h,publishOpts:p={}}=t,f=(0,y8.formatJsonRpcRequest)(o,a,c),g=!!u;try{let e=g?y3.BASE64URL:y3.BASE64;r=await this.client.core.crypto.encode(n,f,{encoding:e})}catch(e){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${n} failed`),e}if(vi.includes(o)){let e=(0,y3.hashMessage)(JSON.stringify(f)),t=(0,y3.hashMessage)(r);i=await this.client.core.verify.register({id:t,decryptedId:e})}let m={...b7[o].req,...p};if(m.attestation=i,s&&(m.ttl=s),l&&(m.id=l),this.client.core.history.set(n,f),g){let t=(0,y3.getLinkModeURL)(u,n,r);await e.g.Linking.openURL(t,this.client.name)}else m.tvf={...h,correlationId:f.id},d?(m.internal={...m.internal,throwOnFailedPublish:!0},await this.client.core.relayer.publish(n,r,m)):this.client.core.relayer.publish(n,r,m).catch(e=>this.client.logger.error(e));return f.id},this.sendProposeSession=async e=>{let{proposal:t,publishOpts:r}=e,i=(0,y8.formatJsonRpcRequest)("wc_sessionPropose",t,t.id);this.client.core.history.set(t.pairingTopic,i);let n=await this.client.core.crypto.encode(t.pairingTopic,i,{encoding:y3.BASE64}),o=(0,y3.hashMessage)(JSON.stringify(i)),a=(0,y3.hashMessage)(n),s=await this.client.core.verify.register({id:a,decryptedId:o});await this.client.core.relayer.publishCustom({payload:{pairingTopic:t.pairingTopic,sessionProposal:n},opts:{...r,publishMethod:"wc_proposeSession",attestation:s}})},this.sendApproveSession=async e=>{let{sessionTopic:t,pairingProposalResponse:r,proposal:i,sessionSettleRequest:n,publishOpts:o}=e,a=(0,y8.formatJsonRpcResult)(i.id,r),s=await this.client.core.crypto.encode(i.pairingTopic,a,{encoding:y3.BASE64}),l=(0,y8.formatJsonRpcRequest)("wc_sessionSettle",n,o?.id),c=await this.client.core.crypto.encode(t,l,{encoding:y3.BASE64});this.client.core.history.set(t,l),await this.client.core.relayer.publishCustom({payload:{sessionTopic:t,pairingTopic:i.pairingTopic,sessionProposalResponse:s,sessionSettlementRequest:c},opts:{...o,publishMethod:"wc_approveSession"}})},this.sendResult=async t=>{let r,i,n,{id:o,topic:a,result:s,throwOnFailedPublish:l,encodeOpts:c,appLink:d}=t,u=(0,y8.formatJsonRpcResult)(o,s),h=d&&"u">typeof e.g?.Linking;try{let e=h?y3.BASE64URL:y3.BASE64;r=await this.client.core.crypto.encode(a,u,{...c||{},encoding:e})}catch(e){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${a} failed`),e}try{let e=(i=await this.client.core.history.get(a,o)).request;try{n=this.getTVFParams(o,e.params,s)}catch(e){this.client.logger.warn(`sendResult() -> getTVFParams() failed: ${e?.message}`)}}catch(e){throw this.client.logger.error(`sendResult() -> history.get(${a}, ${o}) failed`),e}if(h){let t=(0,y3.getLinkModeURL)(d,a,r);await e.g.Linking.openURL(t,this.client.name)}else{let e=b7[i.request.method].res;e.tvf={...n,correlationId:o},l?(e.internal={...e.internal,throwOnFailedPublish:!0},await this.client.core.relayer.publish(a,r,e)):this.client.core.relayer.publish(a,r,e).catch(e=>this.client.logger.error(e))}await this.client.core.history.resolve(u)},this.sendError=async t=>{let r,i,{id:n,topic:o,error:a,encodeOpts:s,rpcOpts:l,appLink:c}=t,d=(0,y8.formatJsonRpcError)(n,a),u=c&&"u">typeof e.g?.Linking;try{let e=u?y3.BASE64URL:y3.BASE64;r=await this.client.core.crypto.encode(o,d,{...s||{},encoding:e})}catch(e){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${o} failed`),e}try{i=await this.client.core.history.get(o,n)}catch(e){throw this.client.logger.error(`sendError() -> history.get(${o}, ${n}) failed`),e}if(u){let t=(0,y3.getLinkModeURL)(c,o,r);await e.g.Linking.openURL(t,this.client.name)}else{let e=i.request.method,t=l||b7[e].res;this.client.core.relayer.publish(o,r,t)}await this.client.core.history.resolve(d)},this.cleanup=async()=>{let e=[],t=[];
393this.client.session.getAll().forEach(t=>{let r=!1;(0,y3.isExpired)(t.expiry)&&(r=!0),this.client.core.crypto.keychain.has(t.topic)||(r=!0),r&&e.push(t.topic)}),this.client.proposal.getAll().forEach(e=>{(0,y3.isExpired)(e.expiryTimestamp)&&t.push(e.id)}),await Promise.all([...e.map(e=>this.deleteSession({topic:e})),...t.map(e=>this.deleteProposal(e))])},this.onProviderMessageEvent=async e=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(e):await this.onRelayMessage(e)},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===vt)return void this.client.logger.info("Request queue already active, skipping...");for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=vt;let e=this.requestQueue.queue.shift();if(e)try{await this.processRequest(e)}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=ve},this.processRequest=async e=>{let{topic:t,payload:r,attestation:i,transportType:n,encryptedId:o}=e,a=r.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:a}))switch(a){case"wc_sessionPropose":return await this.onSessionProposeRequest
393({topic:t,payload:r,attestation:i,encryptedId:o});case"wc_sessionSettle":return await this.onSessionSettleRequest(t,r);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(t,r);case"wc_sessionExtend":return await this.onSessionExtendRequest(t,r);case"wc_sessionPing":return await this.onSessionPingRequest(t,r);case"wc_sessionDelete":return await this.onSessionDeleteRequest(t,r);case"wc_sessionRequest":return await this.onSessionRequest({topic:t,payload:r,attestation:i,encryptedId:o,transportType:n});case"wc_sessionEvent":return await this.onSessionEventRequest(t,r);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest({topic:t,payload:r,attestation:i,encryptedId:o,transportType:n});default:return this.client.logger.info(`Unsupported request method ${a}`)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r,transportType:i}=e,n=(await this.client.core.history.get(t,r.id)).request.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeResponse(t,r,i);case"wc_sessionSettle":return this.onSessionSettleResponse(t,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,r);case"wc_sessionExtend":return this.onSessionExtendResponse(t,r);case"wc_sessionPing":return this.onSessionPingResponse(t,r);case"wc_sessionRequest":return this.onSessionRequestResponse(t,r);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,r);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=e=>{let{topic:t}=e,{message:r}=(0,y3.getInternalError)("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw Error(r)},this.shouldIgnorePairingRequest=e=>{let{topic:t,requestMethod:r}=e,i=this.expectedPairingMethodMap.get(t);return!(!i||i.includes(r))&&!!(i.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async e=>{let{topic:t,payload:r,attestation:i,encryptedId:n}=e,{params:o,id:a}=r;try{let e=this.client.core.eventClient.getEvent({topic:t});0===this.client.events.listenerCount("session_proposal")&&(console.warn("No listener for session_proposal event"),e?.setError("proposal_listener_not_found")),this.isValidConnect({...r.params});let s=o.expiryTimestamp||(0,y3.calcExpiry)(b7.wc_sessionPropose.req.ttl),l={id:a,pairingTopic:t,expiryTimestamp:s,attestation:i,encryptedId:n,...o};await this.setProposal(a,l);let c=await this.getVerifyContext({attestationId:i,hash:(0,y3.hashMessage)(JSON.stringify(r)),encryptedId:n,metadata:l.proposer.metadata});e?.addTrace("emit_session_proposal"),this.client.events.emit("session_proposal",{id:a,params:l,verifyContext:c})}catch(e){await this.sendError({id:a,topic:t,error:e,rpcOpts:b7.wc_sessionPropose.autoReject}),this.client.logger.error(e)}},this.onSessionProposeResponse=async(e,t,r)=>{let{id:i}=t;if((0,y6.isJsonRpcResult)(t)){let{result:n}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:n});let o=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:o});let a=o.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:a});let s=n.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:s});let l=await this.client.core.crypto.generateSharedKey(a,s);this.pendingSessions.set(i,{sessionTopic:l,pairingTopic:e,proposalId:i,publicKey:a});let c=await this.client.core.relayer.subscribe(l,{transportType:r});this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:c}),await this.client.core.pairing.activate({topic:e})}else if((0,y6.isJsonRpcError)(t)){await this.deleteProposal(i);let e=(0,y3.engineEvent)("session_connect",i);if(0===this.events.listenerCount(e))throw Error(`emitting ${e} without any listeners, 954`);this.events.emit(e,{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{let{id:r,params:i}=t;try{this.isValidSessionSettleRequest(i);let{relay:r,controller:n,expiry:o,namespaces:a,sessionProperties:s,scopedProperties:l,sessionConfig:c,proposalRequestsResponses:d}=t.params,u=[...this.pendingSessions.values()].find(t=>t.sessionTopic===e);if(!u)return this.client.logger.error(`Pending session not found for topic ${e}`);let h=this.client.proposal.get(u.proposalId),p={topic:e,relay:r,expiry:o,namespaces:a,acknowledged:!0,pairingTopic:u.pairingTopic,requiredNamespaces:h.requiredNamespaces,optionalNamespaces:h.optionalNamespaces,controller:n.publicKey,self:{publicKey:u.publicKey,metadata:this.client.metadata},peer:{publicKey:n.publicKey,metadata:n.metadata},...s&&{sessionProperties:s},...l&&{scopedProperties:l},...c&&{sessionConfig:c},transportType:bA,authentication:d?.authentication,walletPayResult:d?.walletPay};await this.client.session.set(p.topic,p),await this.setExpiry(p.topic,p.expiry),await this.client.core.pairing.updateMetadata({topic:u.pairingTopic,metadata:p.peer.metadata}),this.pendingSessions.delete(u.proposalId),this.deleteProposal(u.proposalId,!1),this.cleanupDupl
393icatePairings(p),await this.sendResult({id:t.id,topic:e,throwOnFailedPublish:!0,result:!0}),this.client.events.emit("session_connect",{session:p}),this.events.emit((0,y3.engineEvent)("session_connect",u.proposalId),{session:p})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionSettleResponse=async(e,t)=>{let{id:r}=t;(0,y6.isJsonRpcResult)(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit((0,y3.engineEvent)("session_approve",r),{})):(0,y6.isJsonRpcError)(t)&&(await this.deleteSession({topic:e,emitEvent:!1}),this.events.emit((0,y3.engineEvent)("session_approve",r),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{let{params:r,id:i}=t;try{let t=`${e}_session_update`,n=y3.MemoryStore.get(t);if(n&&this.isRequestOutOfSync(n,i)){this.client.logger.warn(`Discarding out of sync request - ${i}`),this.sendError({id:i,topic:e,error:(0,y3.getSdkError)("INVALID_UPDATE_REQUEST")});return}await this.isValidUpdate({topic:e,...r});let o=this.client.session.get(e);if(o.peer.publicKey!==o.controller)throw(0,y3.getSdkError)("UNAUTHORIZED_UPDATE_REQUEST");try{y3.MemoryStore.set(t,i),await this.client.session.update(e,{namespaces:r.namespaces}),await this.sendResult({id:i,topic:e,result:!0})}catch(e){throw y3.MemoryStore.delete(t),e}this.client.events.emit("session_update",{id:i,topic:e,params:r})}catch(t){await this.sendError({id:i,topic:e,error:t}),this.client.logger.error(t)}},this.isRequestOutOfSync=(e,t)=>t.toString().slice(0,-3)<e.toString().slice(0,-3),this.onSessionUpdateResponse=(e,t)=>{let{id:r}=t,i=(0,y3.engineEvent)("session_update",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);(0,y6.isJsonRpcResult)(t)?this.events.emit((0,y3.engineEvent)("session_update",r),{}):(0,y6.isJsonRpcError)(t)&&this.events.emit((0,y3.engineEvent)("session_update",r),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{let{id:r}=t;try{await this.isValidExtend({topic:e}),await this.setExpiry(e,(0,y3.calcExpiry)(b6)),await this.sendResult({id:r,topic:e,result:!0}),this.client.events.emit("session_extend",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionExtendResponse=(e,t)=>{let{id:r}=t,i=(0,y3.engineEvent)("session_extend",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);(0,y6.isJsonRpcResult)(t)?this.events.emit((0,y3.engineEvent)("session_extend",r),{}):(0,y6.isJsonRpcError)(t)&&this.events.emit((0,y3.engineEvent)("session_extend",r),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionPingResponse=(e,t)=>{let{id:r}=t,i=(0,y3.engineEvent)("session_ping",r);setTimeout(()=>{if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners 2176`);(0,y6.isJsonRpcResult)(t)?this.events.emit((0,y3.engineEvent)("session_ping",r),{}):(0,y6.isJsonRpcError)(t)&&this.events.emit((0,y3.engineEvent)("session_ping",r),{error:t.error})},500)},this.onSessionDeleteRequest=async(e,t)=>{let{id:r}=t;try{await this.isValidDisconnect({topic:e,reason:t.params}),this.cleanupPendingSentRequestsForTopic({topic:e,error:(0,y3.getSdkError)("USER_DISCONNECTED")}),await this.deleteSession({topic:e,id:r})}catch(e){this.client.logger.error(e)}},this.onSessionRequest=async e=>{let{topic:t,payload:r,attestation:i,encryptedId:n,transportType:o}=e,{id:a,params:s}=r;try{await this.isValidRequest({topic:t,...s});let e=this.client.session.get(t),r=await this.getVerifyContext({attestationId:i,hash:(0,y3.hashMessage)(JSON.stringify((0,y8.formatJsonRpcRequest)("wc_sessionRequest",s,a))),encryptedId:n,metadata:e.peer.metadata,transportType:o}),l={id:a,topic:t,params:s,verifyContext:r};await this.setPendingSessionRequest(l),o===bS&&e.peer.metadata.redirect?.universal&&this.client.core.addLinkModeSupportedApp(e.peer.metadata.redirect?.universal),this.client.signConfig?.disableRequestQueue?this.emitSessionRequest(l):(this.addSessionRequestToSessionRequestQueue(l),this.processSessionRequestQueue())}
393catch(e){await this.sendError({id:a,topic:t,error:e}),this.client.logger.error(e)}},this.onSessionRequestResponse=(e,t)=>{let{id:r}=t,i=(0,y3.engineEvent)("session_request",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);(0,y6.isJsonRpcResult)(t)?this.events.emit((0,y3.engineEvent)("session_request",r),{result:t.result}):(0,y6.isJsonRpcError)(t)&&this.events.emit((0,y3.engineEvent)("session_request",r),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{let{id:r,params:i}=t;try{let t=`${e}_session_event_${i.event.name}`,n=y3.MemoryStore.get(t);if(n&&this.isRequestOutOfSync(n,r))return void this.client.logger.info(`Discarding out of sync request - ${r}`);this.isValidEmit({topic:e,...i}),this.client.events.emit("session_event",{id:r,topic:e,params:i}),y3.MemoryStore.set(t,r)}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionAuthenticateResponse=(e,t)=>{let{id:r}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),(0,y6.isJsonRpcResult)(t)?this.events.emit((0,y3.engineEvent)("session_request",r),{result:t.result}):(0,y6.isJsonRpcError)(t)&&this.events.emit((0,y3.engineEvent)("session_request",r),{error:t.error})},this.onSessionAuthenticateRequest=async e=>{let{topic:t,payload:r,attestation:i,encryptedId:n,transportType:o}=e;try{let{requester:e,authPayload:a,expiryTimestamp:s}=r.params,l=await this.getVerifyContext({attestationId:i,hash:(0,y3.hashMessage)(JSON.stringify(r)),encryptedId:n,metadata:e.metadata,transportType:o}),c={requester:e,pairingTopic:t,id:r.id,authPayload:a,verifyContext:l,expiryTimestamp:s};await this.setAuthRequest(r.id,{request:c,pairingTopic:t,transportType:o}),o===bS&&e.metadata.redirect?.universal&&this.client.core.addLinkModeSupportedApp(e.metadata.redirect.universal),this.client.events.emit("session_authenticate",{topic:t,params:r.params,id:r.id,verifyContext:l})}catch(s){this.client.logger.error(s);let e=r.params.requester.publicKey,i=await this.client.core.crypto.generateKeyPair(),n=this.getAppLinkIfEnabled(r.params.requester.metadata,o),a={type:y3.TYPE_1,receiverPublicKey:e,senderPublicKey:i};await this.sendError({id:r.id,topic:t,error:s,encodeOpts:a,rpcOpts:b7.wc_sessionAuthenticate.autoReject,appLink:n})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=ve,this.processSessionRequestQueue()},(0,y$.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{let r=this.client.core.history.pending;r.length>0&&r.filter(t=>t.topic===e&&"wc_sessionRequest"===t.request.method).forEach(e=>{this.events.emit((0,y3.engineEvent)("session_request",e.request.id),{error:t})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===vt)return void this.client.logger.info("session request queue is already active.");let e=this.sessionRequestQueue.queue[0];if(!e)return void this.client.logger.info("session request queue is empty.");try{this.emitSessionRequest(e)}catch(e){this.client.logger.error(e)}},this.emitSessionRequest=e=>{this.emittedSessionRequests.has(e.id)?this.client.logger.warn({id:e.id},`Skipping emitting \`session_request\` event for duplicate request. id: ${e.id}`):(this.sessionRequestQueue.state=vt,this.emittedSessionRequests.add(e.id),this.client.events.emit("session_request",e))},this.cleanupInProgress=!1,this.cleanupOrphanedSubscriptions=async()=>{let e,t=this.client.core.relayer.subscriber.topics;if(0===t.length)return;let r=new Set(this.client.session.keys),i=new Set(this.client.core.pairing.pairings.keys),n=new Set([...this.pendingSessions.values()].map(e=>e.sessionTopic));if(this.client.auth.authKeys.keys.includes(vo)){let{responseTopic:t}=this.client.auth.authKeys.get(vo);e=t}for(let o of t)if(!r.has(o)&&!i.has(o)&&!n.has(o)&&o!==e){this.client.logger.info(`Cleaning up orphaned subscriber topic: ${o}`);try{await this.client.core.relayer.subscriber.unsubscribe(o)}catch(e){this.client.logger.warn(e,`Failed to clean up orphaned subscription: ${o}`)}}}
393,this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;let t=this.client.proposal.getAll().find(t=>t.pairingTopic===e.topic);t&&this.onSessionProposeRequest({topic:e.topic,payload:(0,y8.formatJsonRpcRequest)("wc_sessionPropose",{...t,requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties,scopedProperties:t.scopedProperties},t.id),attestation:t.attestation,encryptedId:t.encryptedId})},this.isValidConnect=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw Error(t)}let{pairingTopic:t,requiredNamespaces:r,optionalNamespaces:i,sessionProperties:n,scopedProperties:o,relays:a}=e;if((0,y3.isUndefined)(t)||await this.isValidPairingTopic(t),!(0,y3.isValidRelays)(a,!0)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID",`connect() relays: ${a}`);throw Error(e)}if(r&&!(0,y3.isUndefined)(r)&&0!==(0,y3.isValidObject)(r)){let e="requiredNamespaces are deprecated and are automatically assigned to optionalNamespaces";["fatal","error","silent"].includes(this.client.logger.level)?console.warn(e):this.client.logger.warn(e),this.validateNamespaces(r,"requiredNamespaces")}if(i&&!(0,y3.isUndefined)(i)&&0!==(0,y3.isValidObject)(i)&&this.validateNamespaces(i,"optionalNamespaces"),n&&!(0,y3.isUndefined)(n)&&this.validateSessionProps(n,"sessionProperties"),o&&!(0,y3.isUndefined)(o)){this.validateSessionProps(o,"scopedProperties");let e=Object.keys(r||{}).concat(Object.keys(i||{}));if(!Object.keys(o).every(t=>e.includes(t.split(":")[0])))throw Error(`Scoped properties must be a subset of required/optional namespaces, received: ${JSON.stringify(o)}, required/optional namespaces: ${JSON.stringify(e)}`)}},this.validateNamespaces=(e,t)=>{let r=(0,y3.isValidRequiredNamespaces)(e,"connect()",t);if(r)throw Error(r.message)},this.isValidApprove=async e=>{if(!(0,y3.isValidParams)(e))throw Error((0,y3.getInternalError)("MISSING_OR_INVALID",`approve() params: ${e}`).message);let{id:t,namespaces:r,relayProtocol:i,sessionProperties:n,scopedProperties:o}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);let a=this.client.proposal.get(t),s=(0,y3.isValidNamespaces)(r,"approve()");if(s)throw Error(s.message);let l=(0,y3.isConformingNamespaces)(a.requiredNamespaces,r,"approve()");if(l)throw Error(l.message);if(!(0,y3.isValidString)(i,!0)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw Error(e)}if(n&&!(0,y3.isUndefined)(n)&&this.validateSessionProps(n,"sessionProperties"),o&&!(0,y3.isUndefined)(o)){this.validateSessionProps(o,"scopedProperties");let e=new Set(Object.keys(r));if(!Object.keys(o).every(t=>e.has(t.split(":")[0])))throw Error(`Scoped properties must be a subset of approved namespaces, received: ${JSON.stringify(o)}, approved namespaces: ${Array.from(e).join(", ")}`)}},this.isValidReject=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`reject() params: ${e}`);throw Error(t)}let{id:t,reason:r}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!(0,y3.isValidErrorReason)(r)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidSessionSettleRequest=e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw Error(t)}
393let{relay:t,controller:r,namespaces:i,expiry:n}=e;if(!(0,y3.isValidRelay)(t)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw Error(e)}let o=(0,y3.isValidController)(r,"onSessionSettleRequest()");if(o)throw Error(o.message);let a=(0,y3.isValidNamespaces)(i,"onSessionSettleRequest()");if(a)throw Error(a.message);if((0,y3.isExpired)(n)){let{message:e}=(0,y3.getInternalError)("EXPIRED","onSessionSettleRequest()");throw Error(e)}},this.isValidUpdate=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`update() params: ${e}`);throw Error(t)}let{topic:t,namespaces:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let i=this.client.session.get(t),n=(0,y3.isValidNamespaces)(r,"update()");if(n)throw Error(n.message);let o=(0,y3.isConformingNamespaces)(i.requiredNamespaces,r,"update()");if(o)throw Error(o.message)},this.isValidExtend=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`extend() params: ${e}`);throw Error(t)}let{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`request() params: ${e}`);throw Error(t)}let{topic:t,request:r,chainId:i,expiry:n}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let{namespaces:o}=this.client.session.get(t);if(!(0,y3.isValidNamespacesChainId)(o,i)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID",`request() chainId: ${i}`);throw Error(e)}if(!(0,y3.isValidRequest)(r)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID",`request() ${JSON.stringify(r)}`);throw Error(e)}if(!(0,y3.isValidNamespacesRequest)(o,i,r.method)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID",`request() method: ${r.method}`);throw Error(e)}this.validateRequestExpiry(n)},this.isValidRespond=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`respond() params: ${e}`);throw Error(t)}let{topic:t,response:r}=e;try{await this.isValidSessionTopic(t)}catch(t){throw e?.response?.id&&this.cleanupAfterResponse(e),t}if(!(0,y3.isValidResponse)(r)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(r)}`);throw Error(e)}let i=this.client.pendingRequest.get(r.id);if(i.topic!==t){let{message:e}=(0,y3.getInternalError)("MISMATCHED_TOPIC",`Request response topic mismatch. reqId: ${r.id}, expected topic: ${i.topic}, received topic: ${t}`);throw Error(e)}},this.isValidPing=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`emit() params: ${e}`);throw Error(t)}let{topic:t,event:r,chainId:i}=e;await this.isValidSessionTopic(t);let{namespaces:n}=this.client.session.get(t);if(!(0,y3.isValidNamespacesChainId)(n,i)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw Error(e)}if(!(0,y3.isValidEvent)(r)||!(0,y3.isValidNamespacesEvent)(n,i,r.name)){let{message:e}=(0,y3.getInternalError)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidDisconnect=async e=>{if(!(0,y3.isValidParams)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{let{chains:t,uri:r,domain:i,nonce:n}=e;if(!Array.isArray(t)||0===t.length)throw Error("chains is required and must be a non-empty array");if(!(0,y3.isValidString)(r,!1))throw Error("uri is required parameter");if(!(0,y3.isValidString)(i,!1))throw Error("domain is required parameter");if(!(0,y3.isValidString)(n,!1))throw Error("nonce is required parameter");if([...new Set(t.map(e=>(0,y3.parseChainId)(e).namespace))].length>1)throw Error("Multi-namespace requests are not supported. Please request single namespace only.");let{namespace:o}=(0,y3.parseChainId)(t[0]);if("eip155"!==o)throw Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async e=>{let{attestationId:t,hash:r,encryptedId:i,metadata:n,transportType:o}=e,a={verified:{verifyUrl:n.verifyUrl||bz,validation:"UNKNOWN",origin:n.url||""}};try{if(o===bS){let e=this.getAppLinkIfEnabled(n,o);return a.verified.validation=e&&new URL(e).origin===new URL(n.url).origin?"VALID":"INVALID",a}let e=await this.client.core.verify.resolve({attestationId:t,hash:r,encryptedId:i,verifyUrl:n.verifyUrl});e&&(a.verified.origin=e.origin,a.verified.isScam=e.isScam,a.verified.validation=e.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(e){this.client.logger.warn(e)}return this.client.logger.debug(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(e,t)=>{Object.values(e).forEach((r,i)=>{if(null==r){let{message:n}=(0,y3.getInternalError)("MISSING_OR_INVALID",`${t} must contain an existing value for each key. Received: ${r} for key ${Object.keys(e)[i]}`);throw Error(n)}})},this.getPendingAuthRequest=e=>{let t=this.client.auth.requests.get(e);return"object"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0,t=this.recentlyDeletedLimit/2;
393for(let r of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{let t=this.recentlyDeletedMap.get(e);if(t){let{message:r}=(0,y3.getInternalError)("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`);throw Error(r)}},this.isLinkModeEnabled=(t,r)=>!!t&&r===bS&&this.client.metadata?.redirect?.linkMode===!0&&this.client.metadata?.redirect?.universal!==void 0&&this.client.metadata?.redirect?.universal!==""&&t?.redirect?.universal!==void 0&&t?.redirect?.universal!==""&&t?.redirect?.linkMode===!0&&this.client.core.linkModeSupportedApps.includes(t.redirect.universal)&&"u">typeof e.g?.Linking,this.getAppLinkIfEnabled=(e,t)=>this.isLinkModeEnabled(e,t)?e?.redirect?.universal:void 0,this.handleLinkModeMessage=({url:e})=>{if(!e||!e.includes("wc_ev")||!e.includes("topic"))return;let t=(0,y3.getSearchParamFromURL)(e,"topic")||"",r=decodeURIComponent((0,y3.getSearchParamFromURL)(e,"wc_ev")||""),i=this.client.session.keys.includes(t);i&&this.client.session.update(t,{transportType:bS}),this.client.core.dispatchEnvelope({topic:t,message:r,sessionExists:i})},this.registerLinkModeListeners=async()=>{if((0,y3.isTestRun)()||(0,y3.isReactNative)()&&this.client.metadata.redirect?.linkMode){let t=e.g?.Linking;if("u">typeof t){t.addEventListener("url",this.handleLinkModeMessage,this.client.name);let e=await t.getInitialURL();e&&setTimeout(()=>{this.handleLinkModeMessage({url:e})},50)}}},this.getTVFApproveParams=e=>{try{let t=(0,y3.getNamespacesChains)(e.namespaces),r=(0,y3.getNamespacesMethods)(e.namespaces),i=(0,y3.getNamespacesEvents)(e.namespaces),n=e.sessionProperties,o=e.scopedProperties;return{approvedChains:t,approvedMethods:r,approvedEvents:i,sessionProperties:n,scopedProperties:o}}catch(e){return this.client.logger.warn(e,"Error getting TVF approve params"),{}}},this.getTVFParams=(e,t,r)=>{if(!t.request?.method)return{};let i={correlationId:e,rpcMethods:[t.request.method],chainId:t.chainId};try{i.txHashes=this.extractTxHashesFromResult(t.request,r),i.contractAddresses=this.isValidContractData(t.request.params)?[t.request.params?.[0]?.to]:[]}catch(e){this.client.logger.warn(e,"Error getting TVF params")}return i},this.isValidContractData=e=>{if(!e)return!1;try{let t=e?.data||e?.[0]?.data;if(!t.startsWith("0x"))return!1;let r=t.slice(2);return!!/^[0-9a-fA-F]*$/.test(r)&&r.length%2==0}catch{}return!1},this.extractTxHashesFromResult=(e,t)=>{try{if(!t)return[];let r=e.method,i=vr[r];if("sui_signTransaction"===r)return[(0,y3.getSuiDigest)(t.transactionBytes)];if("near_signTransaction"===r)return[(0,y3.getNearTransactionIdFromSignedTransaction)(t)];if("near_signTransactions"===r)return t.map(e=>(0,y3.getNearTransactionIdFromSignedTransaction)(e));if("xrpl_signTransactionFor"===r||"xrpl_signTransaction"===r)return[t.tx_json?.hash];if("polkadot_signTransaction"===r)return[(0,y3.buildSignedExtrinsicHash)({transaction:e.params.transactionPayload,signature:t.signature})];if("algo_signTxn"===r)return(0,y3.isValidArray)(t)?t.map(e=>(0,y3.getAlgorandTransactionId)(e)):[(0,y3.getAlgorandTransactionId)(t)];if("cosmos_signDirect"===r)return[(0,y3.getSignDirectHash)(t)];if("wallet_sendCalls"===r)return(0,y3.getWalletSendCallsHashes)(t);if("canton_prepareSignExecute"===r)return(0,y3.getCantonTransactionHashes)(e.params,t);if("string"==typeof t)return[t];let n=t[i.key];if((0,y3.isValidArray)(n))return"solana_signAllTransactions"===r?n.map(e=>(0,y3.extractSolanaTransactionId)(e)):n;if("string"==typeof n)return[n]}catch(e){this.client.logger.warn(e,"Error extracting tx hashes from result")}return[]}}async processPendingMessageEvents(){try{let e=this.client.session.keys,t=this.client.core.relayer.messages.getWithoutAck(e);for(let[e,r]of Object.entries(t))for(let t of r)try{await this.onProviderMessageEvent({topic:e,message:t,publishedAt:Date.now()})}catch{this.client.logger.warn(`Error processing pending message event for topic: ${e}, message: ${t}`)}}catch(e){this.client.logger.warn(e,"processPendingMessageEvents failed")}}isInitialized(){if(!this.initialized){let{message:e}=(0,y3.getInternalError)("NOT_INITIALIZED",this.name);throw Error(e)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(bp,e=>{this.onProviderMessageEvent(e)})}async onRelayMessage(e){let{topic:t,message:r,attestation:i,transportType:n}=e,{publicKey:o}=this.client.auth.authKeys.keys.includes(vo)?this.client.auth.authKeys.get(vo):{publicKey:void 0};try{try{if(n!==bS&&this.client.core.crypto.getPayloadType(r,y3.BASE64URL)===y3.TYPE_2)return void this.client.logger.warn(`onRelayMessage() -> non-link mode TYPE_2 payload ignored: ${r}`)}catch{}let e=await this.client.core.crypto.decode(t,r,{receiverPublicKey:o,encoding:n===bS?y3.BASE64URL:y3.BASE64});(0,y6.isJsonRpcRequest)(e)?(this.client.core.history.set(t,e),await this.onRelayEventRequest({topic:t,payload:e,attestation:i,transportType:n,encryptedId:(0,y3.hashMessage)(r)})):(0,y6.isJsonRpcResponse)(e)?(await this.client.core.history.resolve(e),await this.onRelayEventResponse({topic:t,payload:e,transportType:n}),this.client.core.history.delete(t,e.id)):(this.client.logger.error(`onRelayMessage() -> unknown payload: ${JSON.stringify(e)}`),await this.onRelayEventUnknownPayload({topic:t,payload:e,transportType:n})),await this.client.core.relayer.messages.ack(t,r)}catch(e){this.client.logger.error(`onRelayMessage() ->
393 failed to process an inbound message: ${r}`),this.client.logger.error(e?.message)}}registerExpirerEvents(){this.client.core.expirer.on(bR,async e=>{let{topic:t,id:r}=(0,y3.parseExpirerTarget)(e.target);return r&&this.client.pendingRequest.keys.includes(r)?await this.deletePendingSessionRequest(r,(0,y3.getInternalError)("EXPIRED"),!0):r&&this.client.auth.requests.keys.includes(r)?await this.deletePendingAuthRequest(r,(0,y3.getInternalError)("EXPIRED"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:t})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r})))})}registerSubscriptionCleanup(){this.client.core.heartbeat.on("heartbeat_pulse",async()=>{if(!this.cleanupInProgress){this.cleanupInProgress=!0;try{await this.cleanupOrphanedSubscriptions()}catch(e){this.client.logger.warn(e)}finally{this.cleanupInProgress=!1}}})}registerPairingEvents(){this.client.core.pairing.events.on(bN,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(b_,e=>{this.addToRecentlyDeleted(e.topic,"pairing")})}isValidPairingTopic(e){if(!(0,y3.isValidString)(e,!1)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,y3.isExpired)(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=(0,y3.getInternalError)("EXPIRED",`pairing topic: ${e}`);throw Error(t)}}async isValidSessionTopic(e){if(!(0,y3.isValidString)(e,!1)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw Error(t)}if((0,y3.isExpired)(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});let{message:t}=(0,y3.getInternalError)("EXPIRED",`session topic: ${e}`);throw Error(t)}if(!this.client.core.crypto.keychain.has(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if((0,y3.isValidString)(e,!1)){let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw Error(t)}else{let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw Error(t)}}async isValidProposalId(e){if(!(0,y3.isValidId)(e)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=(0,y3.getInternalError)("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw Error(t)}if((0,y3.isExpired)(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);let{message:t}=(0,y3.getInternalError)("EXPIRED",`proposal id: ${e}`);throw Error(t)}}validateRequestExpiry(e){if(e&&!(0,y3.isValidRequestExpiry)(e,b9)){let{message:t}=(0,y3.getInternalError)("MISSING_OR_INVALID",`request() expiry: ${e}. Expiry must be a number (in seconds) between ${b9.min} and ${b9.max}`);throw Error(t)}}}class vs extends bG{constructor(e,t){super(e,t,"proposal",b4),this.core=e,this.logger=t}}class vl extends bG{constructor(e,t){super(e,t,"session",b4),this.core=e,this.logger=t}}class vc extends bG{constructor(e,t){super(e,t,"request",b4,e=>e.id),this.core=e,this.logger=t}}class vd extends bG{constructor(e,t){super(e,t,"authKeys",vn,()=>vo),this.core=e,this.logger=t}}class vu extends bG{constructor(e,t){super(e,t,"pairingTopics",vn),this.core=e,this.logger=t}}class vh extends bG{constructor(e,t){super(e,t,"requests",vn,e=>e.id),this.core=e,this.logger=t}}class vp{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new vd(this.core,this.logger),this.pairingTopics=new vu(this.core,this.logger),this.requests=new vh(this.core,this.logger)}
393async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}let vf=class e extends yZ{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=b3,this.events=new yj.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}},this.update=async e=>{try{return await this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}},this.request=async e=>{try{return await this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}},this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async(e,t)=>{try{return console.warn("[WalletConnect] `authenticate` is deprecated and will be removed in a future release. Use `connect()`'s `authentication` instead to establish an authenticated session."),await this.engine.authenticate(e,t)}catch(e){throw this.logger.error(e.message),e}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.name=e?.name||b3,this.metadata=(0,y3.populateAppMetadata)(e?.metadata),this.signConfig=e?.signConfig;const t=(0,y3.createLogger)({logger:e?.logger||"error",name:this.name});this.logger=t,this.core=e?.core||new b2(e),this.session=new vl(this.core,this.logger),this.proposal=new vs(this.core,this.logger),this.pendingRequest=new vc(this.core,this.logger),this.engine=new va(this),this.auth=new vp(this.core,this.logger)}static async init(t){let r=new e(t);return await r.initialize(),r}get context(){return(0,yL.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}},vg="WALLETCONNECT_DEEPLINK_CHOICE",vm={isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),formatNativeUrl(e,t,r,i){if(vm.isHttpUrl(e))return this.formatUniversalUrl(e,t,i);let n=e.replaceAll("/","").replaceAll(":","");vm.setWalletConnectDeepLink(n,i);let o=encodeURIComponent(t);return`${n}://wc?uri=${o}`},formatUniversalUrl(e,t,r){if(!vm.isHttpUrl(e))return this.formatNativeUrl(e,t,r);let i=e;e.endsWith("/")&&(i=e.slice(0,-1)),vm.setWalletConnectDeepLink(i,r);let n=encodeURIComponent(t);return`${i}/wc?uri=${n}`},wait:async e=>new Promise(t=>{setTimeout(t,e)}),openHref(e,t="_self"){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){localStorage.setItem(vg,JSON.stringify({href:e,name:t}))},removeWalletConnectDeepLink(){localStorage.removeItem(vg)}};class vy{walletInfo;signClient;wcCloudInfo;actions;qrUrl;appUrl;pairings=[];sessions=[];emitter;logger;options;relayUrl;env;requiredNamespaces;_defaultSignOptions={preferNoSetFee:!1,preferNoSetMemo:!0,disableBalanceCheck:!0};constructor(e){if(!e.walletconnect)throw Error(`'walletconnect' info for wallet ${e.prettyName} is not provided in wallet registry.`);this.walletInfo=e,this.qrUrl={state:yP.State.Init},this.appUrl={state:yP.State.Init},this.requiredNamespaces=e.walletconnect.requiredNamespaces}get defaultSignOptions(){return this._defaultSignOptions}setDefaultSignOptions(e){this._defaultSignOptions=e}get isMobile(){return this.env?.device==="mobile"}get wcName(){return this.walletInfo.walletconnect.name}get wcEncoding(){return this.walletInfo.walletconnect.encoding||"hex"}get wcProjectId(){return this.walletInfo.walletconnect.projectId}get wcMobile(){return this.walletInfo.walletconnect.mobile}get accounts(){let e=[];return this.sessions.forEach(t=>
393{Object.entries(t.namespaces).forEach(([,t])=>{t.accounts.forEach(t=>{let[r,i,n]=t.split(":");e.push({namespace:r,chainId:i,address:n})})})}),e}deleteSession(e){let t=[];this.sessions=this.sessions.filter(r=>r.topic!==e||(r.namespaces.cosmos.accounts.forEach(e=>{let[,r]=e.split(":");t.push(r)}),!1)),this.emitter?.emit("reset",t),this.logger?.debug("[WALLET EVENT] Emit `reset`")}subscribeToEvents(){if(void 0===this.signClient)throw Error("WalletConnect is not initialized");this.signClient.on("session_ping",e=>{this.logger?.debug("EVENT","session_ping",e)}),this.signClient.on("session_event",async e=>{this.logger?.debug("EVENT","session_event",e)}),this.signClient.on("session_update",({topic:e,params:t})=>{this.logger?.debug("EVENT","session_update",{topic:e,params:t})}),this.signClient.on("session_delete",e=>{this.logger?.debug("EVENT","session_delete",e),this.deleteSession(e.topic)}),this.signClient.on("session_expire",e=>{this.logger?.debug("EVENT","session_expire",e),this.deleteSession(e.topic)}),this.signClient.on("session_proposal",e=>{this.logger?.debug("EVENT","session_proposal",e)}),this.signClient.on("session_request",e=>{this.logger?.debug("EVENT","session_request",e)}),this.signClient.on("proposal_expire",e=>{this.logger?.debug("EVENT","proposal_expire",e)})}async deleteInactivePairings(){if(void 0===this.signClient)throw Error("WalletConnect is not initialized");for(let e of this.signClient.pairing.getAll({active:!1}))await this.signClient.pairing.delete(e.topic,{code:7001,message:"Clear inactive pairings."}),this.logger?.debug("Delete inactive pairing:",e.topic)}async deleteAllPairings(){if(void 0===this.signClient)throw Error("WalletConnect is not initialized");for(let e of this.signClient.pairing.getAll())await this.signClient.pairing.delete(e.topic,{code:7001,message:"Clear pairings."}),this.logger?.debug("Delete pairing:",e.topic)}restorePairings(){if(void 0===this.signClient)throw Error("WalletConnect is not initialized");this.pairings=this.signClient.pairing.getAll({active:!0}).filter(e=>e.peerMetadata?.name===this.wcName&&1e3*e.expiry>Date.now()+1e3),this.logger?.debug("RESTORED PAIRINGS: ",this.pairings)}get pairing(){return this.pairings[0]}restoreSessions(){if(void 0===this.signClient)throw Error("WalletConnect is not initialized");this.sessions=this.signClient.session.getAll().filter(e=>e.peer.metadata.name===this.wcName&&1e3*e.expiry>Date.now()+1e3),this.logger?.debug("RESTORED SESSIONS: ",this.sessions)}async getSession(e,t){return void 0===this.signClient&&await this.init(),this.sessions.find(r=>r.namespaces[e]?.accounts?.find(r=>r.startsWith(`${e}:${t}`)))}get walletName(){return this.walletInfo.name}get dappProjectId(){return this.options?.signClient.projectId}setActions(e){this.actions=e}setQRState(e){this.qrUrl.state=e,this.actions?.qrUrl?.state(e)}setQRError(e){this.setQRState(yP.State.Error),this.qrUrl.message="string"==typeof e?e:e?.message,this.actions?.qrUrl?.message?.(this.qrUrl.message),"string"!=typeof e&&e?.stack&&this.logger?.error(e.stack)}
393async init(){await this.initSignClient(),this.isMobile&&await this.initAppUrl()}async initSignClient(){this.signClient&&this.relayUrl===this.options?.signClient.relayUrl||(this.signClient=await vf.init(this.options?.signClient),this.relayUrl=this.options?.signClient.relayUrl,this.logger?.debug("CREATED CLIENT: ",this.signClient),this.logger?.debug("relayerRegion ",this.options?.signClient.relayUrl),this.subscribeToEvents(),this.restorePairings(),this.restoreSessions())}async initWCCloudInfo(){let e=`https://explorer-api.walletconnect.com/v3/wallets?projectId=${this.dappProjectId}&sdks=sign_v2&search=${this.wcName}`,t=await (await fetch(e)).json();this.wcCloudInfo=t.listings[this.walletInfo.walletconnect.projectId],this.logger?.debug("WalletConnect Info:",this.wcCloudInfo)}async initAppUrl(){this.appUrl.state=yP.State.Pending,this.wcCloudInfo||await this.initWCCloudInfo();let e=this.wcCloudInfo.mobile.native||this.wcMobile?.native,t=this.wcCloudInfo.mobile.universal||this.wcMobile?.universal;this.appUrl.data={native:e,universal:t},this.appUrl.state=yP.State.Done}get nativeUrl(){let e=this.appUrl.data?.native;if("string"==typeof e||void 0===e)return e;{let{android:t,ios:r,macos:i,windows:n}=e;switch(this.env?.os){case"android":return t;case"ios":return r;case"macos":return i;case"windows":return n;default:throw Error(`Unknown os: ${this.env?.os}.`)}}}get universalUrl(){return this.appUrl.data?.universal}get redirectHref(){return this.nativeUrl||this.universalUrl}get redirectHrefWithWCUri(){let e;return this.nativeUrl?e=(this.walletInfo.walletconnect.formatNativeUrl||vm.formatNativeUrl)(this.nativeUrl,this.qrUrl.data,this.env?.os,this.walletName):this.universalUrl&&(e=(this.walletInfo.walletconnect.formatUniversalUrl||vm.formatUniversalUrl)(this.universalUrl,this.qrUrl.data,this.walletName)),e}get displayQRCode(){return!this.pairing&&!this.redirect}get redirect(){return!!(this.isMobile&&(this.nativeUrl||this.universalUrl))}openApp(e=!0){let t=e?this.redirectHrefWithWCUri:this.redirectHref;t?(this.logger?.debug("Redirecting:",t),vm.openHref(t)):this.logger?.error("No redirecting href.")}async connect(e,t){let r;void 0===this.signClient&&await this.init(),"Init"!==this.qrUrl.state&&this.setQRState(yP.State.Init);let i="string"==typeof e?[`cosmos:${e}`]:e.map(e=>`cosmos:${e}`);this.restorePairings();let n=this.pairing;this.logger?.debug("Restored active pairing topic is:",n?.topic),this.displayQRCode&&this.setQRState(yP.State.Pending);let o={cosmos:{methods:["cosmos_getAccounts","cosmos_signAmino","cosmos_signDirect",...this.requiredNamespaces?.methods??[]],chains:i,events:["chainChanged","accountsChanged",...this.requiredNamespaces?.events??[]]}};try{this.logger?.debug("Connecting chains:",i),r=await this.signClient.connect({pairingTopic:n?.topic,requiredNamespaces:o,...t}),this.qrUrl.data=r.uri,this.logger?.debug("Using QR URI:",r.uri),this.displayQRCode&&this.setQRState(yP.State.Done)}catch(e){this.logger?.error("Client connect error: ",e),this.displayQRCode&&this.setQRError(e);return}this.redirect&&this.openApp();try{let e=await r.approval();this.logger?.debug("Established session:",e),this.sessions.push(e),this.restorePairings()}catch(e){if(this.logger?.error("Session approval error: ",e),await this.deleteInactivePairings(),e)if(5001==e.code)throw yT.RejectedError;else throw e;throw this.displayQRCode&&this.setQRError(yT.ExpiredError),Error("Proposal Expired")}finally{n||this.qrUrl.message===yT.ExpiredError.message||this.setQRState(yP.State.Init)}}async disconnect(t){if(void 0===this.signClient&&await this.init(),t?.walletconnect?.removeAllPairings===!0&&await this.deleteAllPairings(),0!==this.sessions.length){for(let t of this.sessions)try{this.logger?.debug("Delete session:",t);let{getSdkError:r}=await e.A(712299);await this.signClient.disconnect({topic:t.topic,reason:r("USER_DISCONNECTED")})}catch(e){this.logger?.error(`SignClient.disconnect session ${t.topic} failed:`,e)}this.sessions=[],this.emitter?.emit("sync_disconnect"),this.logger?.debug("[WALLET EVENT] Emit `sync_disconnect`")}}async getSimpleAccount(e){let t=this.accounts.find(({chainId:t})=>t===e);if(!t)throw Error(`Chain ${e} is not connected yet, please check the session approval namespaces`);return t}getOfflineSignerAmino(e){return{getAccounts:async()=>[await this.getAccount(e)],signAmino:(t,r)=>this.signAmino(e,t,r)}}getOfflineSignerDirect(e){return{getAccounts:async()=>[await this.getAccount(e)],signDirect:(t,r)=>this.signDirect(e,t,r)}}async getOfflineSigner(e,t){return"amino"===t&&this.getOfflineSignerAmino?this.getOfflineSignerAmino(e):"direct"===t&&this.getOfflineSignerDirect?this.getOfflineSignerDirect(e):this.getOfflineSignerAmino?this.getOfflineSignerAmino?.(e):this.getOfflineSignerDirect(e)}
393async _getAccount(e){let t=await this.getSession("cosmos",e);if(!t)throw Error(`Session for ${e} not established yet.`);let r=await this.signClient.request({topic:t.topic,chainId:`cosmos:${e}`,request:{method:"cosmos_getAccounts",params:{}}});return this.logger?.debug("Response of cosmos_getAccounts",r),r}async getAccount(e){let{address:t,algo:r,pubkey:i}=(await this._getAccount(e))[0];return{address:t,algo:r,pubkey:new Uint8Array(rI.Buffer.from(i,this.wcEncoding))}}async _signAmino(e,t,r,i){let n=await this.getSession("cosmos",e);if(!n)throw Error(`Session for ${e} not established yet.`);this.redirect&&this.openApp();let o=await this.signClient.request({topic:n.topic,chainId:`cosmos:${e}`,request:{method:"cosmos_signAmino",params:{signerAddress:t,signDoc:r}}});return this.logger?.debug("Response of cosmos_signAmino",o),o}async signAmino(e,t,r,i){return await this._signAmino(e,t,r,i||this.defaultSignOptions)}async _signDirect(e,t,r,i){let n=await this.getSession("cosmos",e);if(!n)throw Error(`Session for ${e} not established yet.`);let o={signerAddress:t,signDoc:{chainId:r.chainId,bodyBytes:rI.Buffer.from(r.bodyBytes).toString(this.wcEncoding),authInfoBytes:rI.Buffer.from(r.authInfoBytes).toString(this.wcEncoding),accountNumber:r.accountNumber.toString()}};this.redirect&&this.openApp();let a=await this.signClient.request({topic:n.topic,chainId:`cosmos:${e}`,request:{method:"cosmos_signDirect",params:o}});return this.logger?.debug("Response of cosmos_signDirect",a),a}
393async signDirect(e,t,r,i){let{signed:n,signature:o}=await this._signDirect(e,t,r,i||this.defaultSignOptions);return{signed:{chainId:n.chainId,accountNumber:BigInt(n.accountNumber),authInfoBytes:new Uint8Array(rI.Buffer.from(n.authInfoBytes,this.wcEncoding)),bodyBytes:new Uint8Array(rI.Buffer.from(n.bodyBytes,this.wcEncoding))},signature:o}}}var vb=yk;class vv extends vb.MainWalletBase{WCClient;clientMutable={state:yP.State.Init};constructor(e,t,r){if(!e.walletconnect)throw Error(`'walletconnect' info for wallet ${e.prettyName} is not provided in wallet registry.`);super(e,t),this.WCClient=r}async initClient(e){if(!e)return void this.initClientError(Error("`walletconnectOptions` is not provided."));if(!e.signClient.projectId)return void this.initClientError(Error("`projectId` is not provided in `walletconnectOptions`."));this.initingClient();try{let t=new this.WCClient(this.walletInfo);t.logger=this.logger,t.emitter=this.emitter,t.env=this.env,t.options=e,this.initClientDone(t)}catch(e){this.initClientError(e)}}}class vw extends vy{constructor(e){super(e)}}class vx extends yD{constructor(e,t){super(e,t,vw)}}let vS=[yC,new class extends vv{constructor(e,t){super(e,vx,vw),this.preferredEndpoints=t}}({name:"cosmostation-mobile",prettyName:"Cosmostation Mobile",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfnBgwLCwTqzzmxAABce0lEQVR42u29eZglR3Un+ovIe/OudW8tvahbvajVLanVkpBaCEkghLyzg2cMNhjEYhDYjGf8+c17M5+fjf2MZ948z3gen58ZZkDYYIyNjfGCQdb4PTweBJJACC1IrWpJ3V3qXb3Vcuv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t2wbLstIXOMLQIJPJ4MSJE9i1a9dl3+lHGGGEEUYYYYQRRhhhhBFGGGGEEUYYYYTLCP8/PXe+4Jr7p48AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjMtMDYtMTJUMTE6MDg6NTgrMDA6MDCAfxaFAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTA1LTE2VDA4OjM4OjI3KzAwOjAw+bCQeAAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyMy0wNi0xMlQxMToxMTowNCswMDowMBTsH/wAAAAASUVORK5CYII=",mode:"wallet-connect",downloads:[{device:"mobile",os:"android",link:"https://play.google.com/store/apps/details?id=wannabit.io.cosmostaion"},{device:"mobile",os:"ios",link:"https://apps.apple.com/kr/app/cosmostation/id1459830339"},{link:"https://cosmostation.io/wallet/#extension"}],mobileDisabled:()=>"cosmostation"in window||/Cosmostation/i.test(navigator.userAgent),walletconnect:{name:"Cosmostation",encoding:"base64",projectId:"feb6ff1fb426db18110f5a80c7adbde846d0a7e96b2bc53af4b73aaf32552bea",formatNativeUrl:(e,t,r)=>{let i=e.replaceAll("/","").replaceAll(":","");return`${i}://wc?${t}`}}})];var vA=yS;class vk extends vA.ChainWalletBase{constructor(e,t){super(e,t)}}var vE=yk,vI=e.i(583959),vM=e.i(290593),vT=e.i(562193);let vN=e=>e.apis?.rpc?.[0]?.address??"",v_=e=>e.apis?.rest?.[0]?.address??"",vC=e=>e.explorers?.[0]?.url??"",vO=/v?(\d+\.\d+\.\d+)(?=-[\w.-]+|$)/,vP=/v?(\d+\.\d+)(?=(?:\.\d+)?(?=-[\w.-]+|$))/,vD=/v?(\d+)(?=(?:\.\d+)?(?:\.\d+)?(?=-[\w.-]+|$))/,vj=/@v(\d+\.\d+)(?:\.x)?(?=-[\w.-]+|$)/,vR=/\/v(\d+\.\d+\.\d+)(?=-[\w.-]+|$)/,vz=/v?(\d+)(?:\.(\d+))?(?:\.(\d+))?$/,vL=/[\w-]+\/[\w-]+ v(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:-\d+[\w.-]*)/,vB=/[\w-]+\/[\w-]+ v(\d+)(?:\.(\d+))?(?:\.(\d+))?(?=-[\w.-]+|$)/;function vU(e){let t=null;return vO.test(e)?t=e.match(vO)?.[1]:vP.test(e)?t=e.match(vP)?.[1]:vD.test(e)?t=e.match(vD)?.[1]:vB.test(e)?t=e.match(vB)?.[1]:vL.test(e)?t=e.match(vL)?.[1]:vz.test(e)?t=e.match(vz)?.[1]:vj.test(e)?t=e.match(vj)?.[1]:vR.test(e)&&(t=e.match(vR)?.[1]),t?function(e){let t=e.split(".");for(;t.length<3;)t.push("0");return t.join(".")}(t):null}let vq=(e,t,r={getRpcEndpoint:vN,getRestEndpoint:v_,getExplorer:vC})=>{r.getRestEndpoint||(r.getRestEndpoint=v_),r.getRpcEndpoint||(r.getRpcEndpoint=vN),r.getExplorer||(r.getExplorer=vC);let i=[];if(e.codebase?.sdk?.type==="cosmos"||e.codebase?.cosmos_sdk_version){let t;if(t=e.codebase?.sdk?.type==="cosmos"&&e.codebase.sdk.version?vU(e.codebase.sdk.version):e.codebase?.cosmos_sdk_version?vU(e.codebase.cosmos_sdk_version):"0.40.0",vT.default.satisfies(t,">=0.40")&&i.push("stargate"),vT.default.satisfies(t,">=0.43")&&i.push("no-legacy-stdTx"),i.push("ibc-transfer"),vT.default.satisfies(t,">=0.45")&&i.push("ibc-go"),e.codebase?.cosmwasm?.enabled??e.codebase?.cosmwasm_enabled){i.push("cosmwasm");let t=vU(e.codebase?.cosmwasm?.version??e.codebase?.cosmwasm_version??"0.24.0");vT.default.satisfies(t,">=0.24.0")&&i.push("wasmd_0.24+")}}let n=t.find(t=>t.chain_name===e.chain_name)?.assets||[],o=e.fees?.fee_tokens.map(e=>e.denom)||[],a=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)||[],l=n.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})),c=l.find(e=>s.includes(e.coinDenom))??l[0],d=l.filter(e=>o.includes(e.coinMinimalDenom)).map(e=>{if(!(e.coinMinimalDenom in a))return e;let t=a[e.coinMinimalDenom];return{...e,gasPriceStep:t}}),u=l.filter(e=>c.coinDenom===e.coinDenom).map(e=>{if(!(e.coinMinimalDenom in a))return e;let t=a[e.coinMinimalDenom];return{...e,gasPriceStep:t}});return{rpc:r.getRpcEndpoint(e),rest:r.getRestEndpoint(e),chainId:e.chain_id,chainName:e.pretty_name,bip44:{coinType:e.slip44},bech32Config:vM.Bech32Address.defaultBech32Config(e.bech32_prefix),currencies:l,stakeCurrency:c||l[0],feeCurrencies:0!==d.length?d:u,features:i}};class vW{static addItem(e,t,r){let i={value:t,expiry:new Date().getTime()+r},n=localStorage.getItem(e),o=n?JSON.parse(n):[];o.push(i),localStorage.setItem(e,JSON.stringify(o))}static getItems(e){let t=localStorage.getItem(e);if(!t)return[];let r=JSON.parse(t),i=new Date,n=[];for(let e of r)i.getTime()<=e.expiry&&n.push(e.value);return localStorage.setItem(e,JSON.stringify(n.map(e=>({value:e,expiry:r.find(t=>t.value===e).expiry})))),n}static removeItem(e,t){let r=localStorage.getItem(e);if(!r)return;let i=JSON.parse(r);i=i.filter(e=>e.value!==t),localStorage.setItem(e,JSON.stringify(i))}}class vH{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:r}){if("cw20"===r)for(let{contractAddress:r,viewingKey:i}
393of t)await this.client.suggestToken(e,r,i)}async getSimpleAccount(e){let{address:t,username:r}=await this.getAccount(e);return{namespace:"cosmos",chainId:e,address:t,username:r}}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":default:return this.getOfflineSignerAmino(e);case"direct":return this.getOfflineSignerDirect(e)}}getOfflineSignerAmino(e){return{getAccounts:async()=>[await this.getAccount(e)],signAmino:async(t,r)=>this.signAmino(e,t,r,this.defaultSignOptions)}}getOfflineSignerDirect(e){return{getAccounts:async()=>[await this.getAccount(e)],signDirect:async(t,r)=>{let i=await this.signDirect(e,t,r,this.defaultSignOptions);return{...i,signed:{...i.signed,accountNumber:BigInt(i.signed.accountNumber.toString())}}}}}async addChain(e){let t=vW.getItems("cosmos-kit@2:keplr/supported-chain");if(t&&t.length>0&&t.includes(e.name))return;let r=vq(e.chain,e.assetList?[e.assetList]:[]);e.preferredEndpoints?.rest?.[0]&&(r.rest=e.preferredEndpoints?.rest?.[0]),e.preferredEndpoints?.rpc?.[0]&&(r.rpc=e.preferredEndpoints?.rpc?.[0]);try{await this.client.experimentalSuggestChain(r),vW.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,r,i){return await this.client.signAmino(e,t,r,i||this.defaultSignOptions)}async signArbitrary(e,t,r){return await this.client.signArbitrary(e,t,r)}
393async signDirect(e,t,r,i){let n=await this.client.signDirect(e,t,{...r,accountNumber:yI.default.fromString(r.accountNumber.toString())},i||this.defaultSignOptions);return{...n,signed:{...n.signed,accountNumber:BigInt(n.signed.accountNumber.toString())}}}async sendTx(e,t,r){return await this.client.sendTx(e,t,r)}}class vV extends vE.MainWalletBase{constructor(e,t){super(e,vk),this.preferredEndpoints=t}async initClient(){this.initingClient();try{let e=await vI.Keplr.getKeplr();this.initClientDone(e?new vH(e):void 0)}catch(e){this.initClientError(e)}}}let vK=new vV({name:"keplr-extension",prettyName:"Keplr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Evvp0WQdCHilENISBFw9r4S+NrOLrlV8X9W7QRRAD0BRVGlncTC2IggKo6AUg7rpoBzWFYS6AX+VPk6USCNK0QRtFUrj33SMaix4rVGfD69v/J2AqsnzEYkQV+OXYgFP/l8l2GF1hdaqRbpRFcHunn8Cz9Ea2bs7Ut4AAAAASUVORK5CYII=",mode:"extension",mobileDisabled:()=>!("u">typeof document&&"complete"===document.readyState&&window.keplr&&"mobile-web"===window.keplr.mode),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"],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"}]},{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/"]}
393,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"]}});var vF=e.i(20270);class vY extends vy{keplr=void 0;constructor(e){super(e)}
393initKeplrWCClient(e,t){this.keplr=new vF.KeplrWalletConnectV2(e,t),localStorage.setItem("wallet-connect-v2-mobile-link",JSON.stringify(this.env?.os==="android"?{name:"Keplr",href:"intent://wcV2#Intent;package=com.chainapsis.keplr;scheme=keplrwallet;end;"}:{name:"Keplr",href:"keplrwallet://wcV2"}))}async connect(e,t){let r;void 0===this.signClient&&await this.init(),"Init"!==this.qrUrl.state&&this.setQRState(yP.State.Init);let i="string"==typeof e?[`cosmos:${e}`]:e.map(e=>`cosmos:${e}`);this.restorePairings();let n=this.pairing;if(this.logger?.debug("Restored active pairing topic is:",n?.topic),this.signClient&&n?.topic){let e=this.signClient.session.getAll(),t=e.find(e=>e.pairingTopic===n.topic);if(e.length>0&&t)return void this.initKeplrWCClient(this.signClient,{sessionProperties:t.sessionProperties})}this.displayQRCode&&this.setQRState(yP.State.Pending);let o={cosmos:{methods:["cosmos_getAccounts","cosmos_signAmino","cosmos_signDirect",...this.requiredNamespaces?.methods??[]],chains:i,events:["chainChanged","accountsChanged",...this.requiredNamespaces?.events??[]]}};try{this.logger?.debug("Connecting chains:",i),r=await this.signClient?.connect({pairingTopic:n?.topic,requiredNamespaces:o,...t}),this.qrUrl.data=r.uri,this.logger?.debug("Using QR URI:",r.uri),this.displayQRCode&&this.setQRState(yP.State.Done)}catch(e){this.logger?.error("Client connect error: ",e),this.displayQRCode&&this.setQRError(e);return}this.redirect&&this.openApp();try{let e=await r.approval();this.logger?.debug("Established session:",e),this.sessions.push(e),this.restorePairings(),this.signClient&&this.initKeplrWCClient(this.signClient,{sessionProperties:e.sessionProperties})}catch(e){if(this.logger?.error("Session approval error: ",e),await this.deleteInactivePairings(),e)if(5001==e.code)throw yT.RejectedError;else throw e;throw this.displayQRCode&&this.setQRError(yT.ExpiredError),Error("Proposal Expired")}finally{n||this.qrUrl.message===yT.ExpiredError.message||this.setQRState(yP.State.Init)}}async enable(e){if(!this.keplr)throw Error("Keplr Wallet is not initialized");await this.keplr.enable(e)}async getSimpleAccount(e){if(!this.keplr)throw Error("Keplr Wallet is not initialized");await this.enable(e);let{address:t,username:r}=await this.getAccount(e);return{namespace:"cosmos",chainId:e,address:t,username:r}}async getAccount(e){if(!this.keplr)throw Error("Keplr Wallet is not initialized");let t=await this.keplr.getKey(e);return{username:t.name,address:t.bech32Address,algo:t.algo,pubkey:t.pubKey,isNanoLedger:t.isNanoLedger}}async getOfflineSigner(e,t){if(!this.keplr)throw Error("Keplr Wallet is not initialized");switch(t){case"amino":default:return this.getOfflineSignerAmino(e);case"direct":return this.getOfflineSignerDirect(e)}}getOfflineSignerAmino(e){if(!this.keplr)throw Error("Keplr Wallet is not initialized");return this.keplr.getOfflineSignerOnlyAmino(e)}getOfflineSignerDirect(e){if(!this.keplr)throw Error("Keplr Wallet is not initialized");return this.keplr.getOfflineSigner(e)}async signAmino(e,t,r,i){if(!this.keplr)throw Error("Keplr Wallet is not initialized");return await this.keplr.signAmino(e,t,r,i)}
393async signDirect(e,t,r,i){if(!this.keplr)throw Error("Keplr Wallet is not initialized");return await this.keplr.signDirect(e,t,{...r,accountNumber:yI.default.fromString(r.accountNumber?.toString()??"0")},i)}async signArbitrary(e,t,r){if(!this.keplr)throw Error("Keplr Wallet is not initialized");return await this.keplr.signArbitrary(e,t,r)}}class vJ extends yD{constructor(e,t){super(e,t,vY)}}let vG=[vK,new class extends vv{constructor(e,t){super(e,vJ,vY),this.preferredEndpoints=t}async initClient(e){try{let t=await vI.Keplr.getKeplr(),r=window.navigator.userAgent;t&&r.includes("KeplrWalletMobile")?this.initClientDone(t?new vH(t):void 0):await super.initClient(e)}catch(t){if(t instanceof Error){if("Client Not Exist!"===t.message)return void await super.initClient(e);this.initClientError(t)}}}}({name:"keplr-mobile",prettyName:"Keplr Mobile",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABcc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Ko6AUg7rpoBzWFYS6AX+VPk6USCNK0QRtFUrj33SMaix4rVGfD69v/J2AqsnzEYkQV+OXYgFP/l8l2GF1hdaqRbpRFcHunn8Cz9Ea2bs7Ut4AAAAASUVORK5CYII=",mode:"wallet-connect",mobileDisabled:!1,rejectMessage:{source:"Request rejected"},downloads:[{device:"mobile",os:"android",link:"https://play.google.com/store/apps/details?id=com.chainapsis.keplr&hl=en&gl=US&pli=1"},{device:"mobile",os:"ios",link:"https://apps.apple.com/us/app/keplr-wallet/id1567851089"},{link:"https://www.keplr.app/download"}],connectEventNamesOnWindow:["keplr_keystorechange"],supportedChains:["agoric","akash","axelar","bitcanna","bitsong","bostrom","certik","cheqd","chihuahua","comdex","cosmoshub","cryptoorgchain","desmos","dig","emoney","evmos","gravitybridge","injective","irisnet","ixo","juno","ki","likecoin","lumnetwork","osmosis","panacea","persistence","regen","secretnetwork","sentinel","sifchain","sommelier","stargaze","starname","terra","tick","umee","vidulum"],walletconnect:{name:"Keplr",projectId:"6adb6082c909901b9e7189af3a4a0223102cd6f8d5c39e39f3d49acb92b578bb",encoding:"base64",requiredNamespaces:{methods:["keplr_getKey","keplr_signAmino","keplr_signDirect","keplr_signArbitrary","keplr_enable","keplr_signEthereum"],events:["keplr_accountsChanged"]},mobile:{native:{ios:"keplrwallet:",android:"intent:"}},formatNativeUrl:(e,t,r,i)=>{let n=e.split(":")[0],o=encodeURIComponent(t);switch(r){case"ios":default:return`${n}://wcV2?${o}`;case"android":return`intent://wcV2?${o}#Intent;package=com.chainapsis.keplr;scheme=keplrwallet;end;`}}}},{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/"]}
393,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"]}})];var vQ=yS;class vZ extends vQ.ChainWalletBase{constructor(e,t){super(e,t)}}var vX=yk;class v${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:r}){if("cw20"===r)for(let{contractAddress:r}of t)await this.client.suggestCW20Token(e,r)}async addChain(e){let t=vq(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:r}=await this.getAccount(e);return{namespace:"cosmos",chainId:e,address:t,username:r}}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":default:return this.getOfflineSignerAmino(e);case"direct":return this.getOfflineSignerDirect(e)}}getOfflineSignerAmino(e){return this.client.getOfflineSignerOnlyAmino(e)}getOfflineSignerDirect(e){return this.client.getOfflineSigner(e)}async signAmino(e,t,r,i){return await this.client.signAmino(e,t,r,i||this.defaultSignOptions)}async signArbitrary(e,t,r){return await this.client.signArbitrary(e,t,r)}
393async signDirect(e,t,r,i){return await this.client.signDirect(e,t,{...r,accountNumber:yI.default.fromString(r.accountNumber.toString())},i||this.defaultSignOptions)}async sendTx(e,t,r){return await this.client.sendTx(e,t,r)}}let v0=async()=>{if("u"<typeof window)return;let e=window.leap;if(e)return e;if("complete"===document.readyState)if(e)return e;else throw yT.ClientNotExistError;return new Promise((t,r)=>{let i=n=>{n.target&&"complete"===n.target.readyState&&(e?t(e):r(yT.ClientNotExistError.message),document.removeEventListener("readystatechange",i))};document.addEventListener("readystatechange",i)})};class v1 extends vX.MainWalletBase{constructor(e){super(e,vZ)}async initClient(){this.initingClient();try{let e=await v0();this.initClientDone(e?new v$(e):void 0)}catch(e){this.initClientError(e)}}}let v2=new v1({name:"leap-extension",prettyName:"Leap",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTY2IiBoZWlnaHQ9IjE2NiIgdmlld0JveD0iMCAwIDE2NiAxNjYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF83ODBfNjEwKSI+CjxyZWN0IHdpZHRoPSIxNjYiIGhlaWdodD0iMTY2IiBmaWxsPSIjQzVGRkNFIi8+CjxwYXRoIGQ9Ik0xMzguNjE0IDEwMC40NDVDMTM4LjYxNCAxMjAuMjE3IDExNC40ODMgMTI4LjI1MiA4NC41MjE2IDEyOC4yNTJDNTQuNTYwMyAxMjguMjUyIDMwLjA3ODQgMTIwLjIxNyAzMC4wNzg0IDEwMC40NDVDMzAuMDc4NCA4MC42NzI0IDU0LjM4NDYgNjQuNjczIDg0LjM0NiA2NC42NzNDMTE0LjMwNyA2NC42NzMgMTM4LjYxNCA4MC43MDc0IDEzOC42MTQgMTAwLjQ0NVoiIGZpbGw9IiMyNEE5NUEiLz4KPHBhdGggZD0iTTEzMy4xMDMgNTcuMzQ3MkMxMzMuMTAzIDQ2LjkzNyAxM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jUxIDEwMi44MSA4NC42ODYyIDEwMi4zNzggODYuMzUxOEMxMDIuMDI5IDg3LjY5NzkgMTAxLjUyOSA4OS4wMDM5IDEwMC44ODYgOTAuMjQ0MkM5OS43NjMgOTIuNDA5IDk4LjIyNDYgOTQuMzMxNSA5Ni4zNTg2IDk1LjkwMThDOTQuNDkyNyA5Ny40NzIyIDkyLjMzNTcgOTguNjU5NiA5MC4wMTA4IDk5LjM5NjNDODcuNjg2IDEwMC4xMzMgODUuMjM4OCAxMDAuNDA1IDgyLjgwOSAxMDAuMTk2QzgwLjM3OTEgOTkuOTg2NiA3OC4wMTQzIDk5LjMwMSA3NS44NDk0IDk4LjE3OEM3My42ODQ2IDk3LjA1NTEgNzEuNzYyMSA5NS41MTY3IDcwLjE5MTcgOTMuNjUwN0M2OC42MjE0IDkxLjc4NDggNjcuNDM0IDg5LjYyNzggNjYuNjk3MiA4Ny4zMDI5QzY2LjE3MDEgODUuNjM5NiA2NS44ODExIDgzLjkxMzUgNjUuODM1OSA4Mi4xNzYxQzY1LjgwNiA4MS4wMjk0IDY2LjgyNDQgODAuMTgwOCA2Ny45NjczIDgwLjI3OTFMODQuNDAwNyA4MS42OTI4TDk5Ljc5OTUgODMuMDE3NloiIGZpbGw9IiMwOTI1MTEiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF83ODBfNjEwIj4KPHJlY3Qgd2lkdGg9IjE2NiIgaGVpZ2h0PSIxNjYiIGZpbGw9IndoaXRlIi8+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"}]});var v3=yS;class v4 extends v3.ChainWalletBase{constructor(e,t){super(e,t)}}var v5=yk,v8=e.i(617425);
393class v6{snapInstalled=!1;_defaultSignOptions={preferNoSetFee:!1,preferNoSetMemo:!0,disableBalanceCheck:!0};get defaultSignOptions(){return this._defaultSignOptions}setDefaultSignOptions(e){this._defaultSignOptions=e}constructor(){this.snapInstalled="true"===localStorage.getItem("snapInstalled")}async getSimpleAccount(e){let{address:t,username:r}=await this.getAccount(e);return{namespace:"cosmos",chainId:e,address:t,username:r}}async handleConnect(){await (0,v8.getSnap)()||await (0,v8.connectSnap)()}async getAccount(e){await this.handleConnect();let t=await (0,v8.getKey)(e);return{username:t?.address,address:t.address,algo:t.algo,pubkey:t.pubkey}}getOfflineSigner(e,t){switch(t){case"amino":default:return this.getOfflineSignerAmino(e);case"direct":return this.getOfflineSignerDirect(e)}}getOfflineSignerAmino(e){return new v8.CosmjsOfflineSigner(e)}getOfflineSignerDirect(e){return{getAccounts:async()=>[await this.getAccount(e)],signDirect:(t,r)=>this.signDirect(e,t,r)}}async signAmino(e,t,r,i){return(0,v8.requestSignAmino)(e,t,r)}async signDirect(e,t,r){let i=yI.default.fromString(r.accountNumber.toString()),n=await (0,v8.requestSignature)(e,t,{...r,accountNumber:i}),o=new yI.default(i.low,i.high,i.unsigned);return{signature:n.signature,signed:{...n.signed,accountNumber:BigInt(o.toString()),authInfoBytes:new Uint8Array(Object.values(n.signed.authInfoBytes)),bodyBytes:new Uint8Array(Object.values(n.signed.bodyBytes))}}}async signArbitrary(e,t,r){return await (0,v8.signArbitrary)(e,t,r)}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,v8.experimentalSuggestChain)(t,{})}}let v7=async()=>{if("u"<typeof window)return!1;let e=window.ethereum;if(e?.isMetaMask)return!0;if("complete"===document.readyState)if(e?.isMetaMask)return!0;else throw yT.ClientNotExistError;return new Promise((t,r)=>{let i=n=>{n.target&&"complete"===n.target.readyState&&(e?.isMetaMask?t(!0):r(yT.ClientNotExistError.message),document.removeEventListener("readystatechange",i))};document.addEventListener("readystatechange",i)})};class v9 extends v5.MainWalletBase{constructor(e){super(e,v4)}async initClient(){this.initingClient();try{let e=await v7();this.initClientDone(e?new v6:void 0)}catch(e){this.initClientError(e)}}}let we=new v9({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+CjxwYXRoIGQ9Ik0xNzguMzQ0IDE0Ljk2NDhMMTE0LjkzOSA2My41NTU4TDEyNi42NjQgMzQuODg3OEwxNzguMzQ0IDE0Ljk2NDhaIiBmaWxsPSIjRTI3NjFCIiBzdHJva2U9IiNFMjc2MUIiIHN0cm9rZS13aWR0aD0iMC42MzkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMzEuOTcxOCAxNC45NjQ4TDk0Ljg2NjggNjQuMDE2OEw4My43MTQ4IDM0Ljg4NzhMMzEuOTcxOCAxNC45NjQ4Wk0xNTUuNTMxIDEyNy42TDEzOC42NDQgMTU0LjI5NkwxNzQuNzc1IDE2NC41NTNMMTg1LjE2MiAxMjguMTkyTDE1NS41MzEgMTI3LjZaTTI1LjI4MDggMTI4LjE5MkwzNS42MDM4IDE2NC41NTNMNzEuNzM0OCAxNTQuMjk2TDU0Ljg0OTggMTI3LjZMMjUuMjgwOCAxMjguMTkyWiIgZmlsbD0iI0U0NzYxQiIgc3Ryb2t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S4wODMgMTE4LjQ0OSAyMzMuOTkyIDExNy4zNTlDMjMyLjkwMiAxMTYuMjY5IDIzMS42MDggMTE1LjQwNSAyMzAuMTgzIDExNC44MTVDMjI4Ljc1OSAxMTQuMjI1IDIyNy4yMzIgMTEzLjkyMiAyMjUuNjkgMTEzLjkyMkMyMjIuNTc3IDExMy45MjIgMjE5LjU5MSAxMTUuMTYgMjE3LjM5IDExNy4zNjJDMjE1LjE4OCAxMTkuNTY0IDIxMy45NTIgMTIyLjU1IDIxMy45NTIgMTI1LjY2NEMyMTMuOTUzIDEyOC43NzggMjE1LjE5IDEzMS43NjMgMjE3LjM5MiAxMzMuOTY1QzIxOS41OTQgMTM2LjE2NiAyMjIuNTgxIDEzNy40MDIgMjI1LjY5NCAxMzcuNDAyWk0xOTkuMzQ2IDE3MC40OTRDMjAyLjI2MiAxNzAuNzQ2IDIwNC40NyAxNzMuMzM0IDIwMy43MzQgMTc2LjE3QzIwMi4wOTMgMTgyLjUyMSAxOTguNTEyIDE4OC4yMDIgMTkzLjQ5IDE5Mi40MjJDMTg3LjA3NiAxOTcuODE0IDE3OC43ODQgMjAwLjQ0MiAxNzAuNDM0IDE5OS43M0MxNjQuMjA2IDE5OS4xOTUgMTU4LjI3NyAxOTYuODI0IDE1My4zOTcgMTkyLjkxOEMxNDguNTE2IDE4OS4wMTIgMTQ0LjkwNSAxODMuNzQ2IDE0My4wMTggMTc3Ljc4NkMxNDIuMTIgMTc0Ljk2MiAxNDEuNjI2IDE3Mi4wMjUgMTQxLjU1IDE2OS4wNjJDMTQxLjQ5OCAxNjcuMTEgMTQzLjIzNCAxNjUuNjY2IDE0NS4xNzggMTY1LjgzNEwxNzMuMTQyIDE2OC4yNDJMMTk5LjM0NiAxNzAuNDk0WiIgZmlsbD0iIzA5MjUxMSIvPgo8L3N2Zz4K"},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"}]});class wt extends vy{constructor(e){super(e)}}class wr extends yD{constructor(e,t){super(e,t,wt)}}let wi=[v2,new class extends vv{constructor(e,t){super(e,wr,wt),this.preferredEndpoints=t}}({name:"leap-cosmos-mobile",prettyName:"Leap Mobile",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTY2IiBoZWlnaHQ9IjE2NiIgdmlld0JveD0iMCAwIDE2NiAxNjYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF83ODBfNjEwKSI+CjxyZWN0IHdpZHRoPSIxNjYiIGhlaWdodD0iMTY2IiBmaWxsPSIjQzVGRkNFIi8+CjxwYXRoIGQ9Ik0xMzguNjE0IDEwMC40NDVDMTM4LjYxNCAxMjAuMjE3IDExNC40ODMgMTI4LjI1MiA4NC41MjE2IDEyOC4yNTJDNTQuNTYwMyAxMjguMjUyIDMwLjA3ODQgMTIwLjIxNyAzMC4wNzg0IDEwMC40NDVDMzAuMDc4NCA4MC42NzI0IDU0LjM4NDYgNjQuNjczIDg0LjM0NiA2NC42NzNDMTE0LjMwNyA2NC42NzMgMTM4LjYxNCA4MC43MDc0IDEzOC42MTQgMTAwLjQ0NVoiIGZpbGw9IiMyNEE5NUEiLz4KPHBhdGggZD0iTTEzMy4xMDMgNTcuMzQ3MkMxMzMuMTAzIDQ2LjkzNyAxMjQuNjAzIDM4LjQ4MzIgMTE0LjEzNiAzOC40ODMyQzEwOC42OTMgMzguNDgzMiAxMDMuNzg3IDQwLjc3MTkgMTAwLjMzIDQ0LjQxNzFDOTkuNzk0NCA0NC45ODE4IDk5LjAxMTggNDUuMjU2OSA5OC4yNDkgNDUuMTAyOUM5My44NjkgNDQuMjE4NSA4OS4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yIDkyLjMzNTcgOTguNjU5NiA5MC4wMTA4IDk5LjM5NjNDODcuNjg2IDEwMC4xMzMgODUuMjM4OCAxMDAuNDA1IDgyLjgwOSAxMDAuMTk2QzgwLjM3OTEgOTkuOTg2NiA3OC4wMTQzIDk5LjMwMSA3NS44NDk0IDk4LjE3OEM3My42ODQ2IDk3LjA1NTEgNzEuNzYyMSA5NS41MTY3IDcwLjE5MTcgOTMuNjUwN0M2OC42MjE0IDkxLjc4NDggNjcuNDM0IDg5LjYyNzggNjYuNjk3MiA4Ny4zMDI5QzY2LjE3MDEgODUuNjM5NiA2NS44ODExIDgzLjkxMzUgNjUuODM1OSA4Mi4xNzYxQzY1LjgwNiA4MS4wMjk0IDY2LjgyNDQgODAuMTgwOCA2Ny45NjczIDgwLjI3OTFMODQuNDAwNyA4MS42OTI4TDk5Ljc5OTUgODMuMDE3NloiIGZpbGw9IiMwOTI1MTEiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF83ODBfNjEwIj4KPHJlY3Qgd2lkdGg9IjE2NiIgaGVpZ2h0PSIxNjYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",mode:"wallet-connect",mobileDisabled:()=>"leap"in window&&/LeapCosmos/i.test(navigator.userAgent),rejectMessage:{source:"Request rejected"},downloads:[{device:"mobile",os:"android",link:"https://play.google.com/store/apps/details?id=io.leapwallet.cosmos"},{device:"mobile",os:"ios",link:"https://apps.apple.com/in/app/leap-cosmos/id1642465549"},{link:"https://chrome.google.com/webstore/detail/leap-cosmos-wallet/fcfcfllfndlomdhbehjjcoimbgofdncg"}],connectEventNamesOnWindow:["leap_keystorechange"],walletconnect:{name:"Leap Cosmos Wallet",projectId:"3ed8cc046c6211a798dc5ec70f1302b43e07db9639fd287de44a9aa115a21ed6",encoding:"base64",mobile:{native:{ios:"leapcosmos:",android:"intent:"}},formatNativeUrl:(e,t,r,i)=>{let n=e.split(":")[0],o=encodeURIComponent(t);switch(r){case"ios":default:return`${n}://wcV2?${o}`;case"android":return`${n}://wcV2?${o}#Intent;package=io.leapwallet.cosmos;scheme=leapwallet;end;`}}}}),we];e.i(541308);var wn=e.i(415656),wo=e.i(834591),wa=e.i(193416),ws=e.i(260585),wl=e.i(513107);function wc(){let{mainWallet:e}=(0,wl.useWallet)("warp-e2e-mock-cosmos");return(0,e_.useEffect)(()=>
393{if(e)for(let t of e.getChainWalletList(!1))t.isWalletConnected||t.connect().catch(()=>{})},[e]),null}var wd=e.i(890421),wu=e.i(48469),wh=yS,wp=yk;let wf={name:"warp-e2e-mock-cosmos",prettyName:"Warp E2E Mock (Cosmos)",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=",mode:"extension",mobileDisabled:!0,rejectMessage:{source:"Request rejected"},connectEventNamesOnWindow:[],downloads:[]};class wg{prefixByChainId=new Map;signerCache=new Map;getSignerFor(e){let t=this.signerCache.get(e);if(t)return t;let r=wu.DirectSecp256k1HdWallet.fromMnemonic("abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about",{prefix:e});return this.signerCache.set(e,r),r}async enable(e){}async disconnect(){}async addChain(e){let t=e.chain;t?.chain_id&&t?.bech32_prefix&&this.prefixByChainId.set(t.chain_id,t.bech32_prefix)}async getSimpleAccount(e){let t=await this.getAccount(e);return{namespace:"cosmos",chainId:e,address:t.address}}async getAccount(e){let t=this.prefixByChainId.get(e);if(!t)throw Error(`No bech32 prefix recorded for ${e}`);
393let r=await this.getSignerFor(t),[i]=await r.getAccounts();return{address:i.address,pubkey:i.pubkey,algo:"secp256k1",username:"warp-e2e-mock"}}getOfflineSigner(e){return this.getOfflineSignerDirect(e)}getOfflineSignerDirect(e){let t=this.prefixByChainId.get(e);if(!t)throw Error(`No bech32 prefix recorded for ${e}`);return{getAccounts:async()=>(await this.getSignerFor(t)).getAccounts(),signDirect:async(r,i)=>{try{(0,rF.pushCosmosTx)({chainId:e,signerAddress:r,typeUrls:[],messagesJson:JSON.stringify({accountNumber:i.accountNumber?.toString(),chainId:i.chainId})})}catch(e){console.error("Failed to capture mock Cosmos tx",e)}return(await this.getSignerFor(t)).signDirect(r,i)}}}}class wm extends wh.ChainWalletBase{constructor(e,t){super(e,t)}}class wy extends wp.MainWalletBase{constructor(e=wf){super(e,wm)}async initClient(){this.initingClient();try{this.initClientDone(new wg)}catch(e){this.initClientError(e)}}}let wb=yv({fonts:{heading:"'Neue Haas Grotesk', 'Helvetica', 'sans-serif'",body:"'Neue Haas Grotesk', 'Helvetica', 'sans-serif'"}});function wv({children:e}){let t=(0,e1.useMultiProvider)().metadata,{chains:r,assets:i}=(0,e_.useMemo)(()=>{let e=new wa.MultiProtocolProvider({...t,cosmoshub:wo.cosmoshub});return(0,ws.getCosmosKitChainConfigs)(e)},[t]),n=wi.filter(e=>!e.walletName.includes("snap")),o=(0,wd.isE2EMode)(),a=(0,e_.useMemo)(()=>o?[new wy]:[...vG,...vS,...n],[o]);return(0,eN.jsx)(yg,{theme:wb,children:(0,eN.jsxs)(wn.ChainProvider,{chains:r,assetLists:i,wallets:a,allowedIframeParentOrigins:[],throwErrors:!1,walletConnectOptions:{signClient:{projectId:eK.config.walletConnectProjectId,metadata:{name:eV.APP_NAME,description:eV.APP_DESCRIPTION,url:eV.APP_URL,icons:[]}}},signerOptions:{signingCosmwasm:()=>({gasPrice:yx.GasPrice.fromString("0.03token")}),signingStargate:()=>({gasPrice:yx.GasPrice.fromString("0.2tia")})},modalTheme:{defaultTheme:"light"},children:[o&&(0,eN.jsx)(wc,{}),e]})})}var ww=e.i(459852),wx=e.i(716263),wS=e.i(951868);function wA(){return"u">typeof navigator&&/android/i.test(navigator.userAgent)}function wk(){return"u">typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"u">typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function wE(){return wA()||wk()}var wI=e.i(405898),wM=e.i(445529),wT=e.i(841803),wN="u"<typeof window,w_=new Map;function wC({projectId:e,walletConnectParameters:t}){if(!e||""===e)throw Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return"YOUR_PROJECT_ID"===e&&(e="21fef48091f12692cad574a6f7753643"),r=>(function({projectId:e,walletDetails:t,walletConnectParameters:r}){return(0,wI.createConnector)(i=>({...(({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:r,rkDetailsIsWalletConnectModalConnector:i})=>{if(wN)return(0,wM.mock)({accounts:["0x0000000000000000000000000000000000000000"]});let n={telemetryEnabled:!1,...t||{},projectId:e,showQrModal:!1};r&&(n={...n,showQrModal:!0}),"customStoragePrefix"in n||(n={...n,customStoragePrefix:i?"clientOne":"clientTwo"});let o=JSON.stringify(n),a=w_.get(o);if(a)return a;let s=(0,wT.walletConnect)(n);return w_.set(o,s),s})({projectId:e,walletConnectParameters:r,rkDetailsShowQrModal:t.rkDetails.showQrModal,rkDetailsIsWalletConnectModalConnector:t.rkDetails.isWalletConnectModalConnector})(i),...t}))})({projectId:e,walletDetails:r,walletConnectParameters:t})}var wO=t=>({...(({projectId:t,walletConnectParameters:r})=>({id:"ready",name:"Ready",iconUrl:async()=>(await e.A(344423)).default,iconBackground:"#fff",downloadUrls:{android:"https://play.google.com/store/apps/details?id=im.argent.contractwalletclient",ios:"https://apps.apple.com/us/app/argent/id1358741926",mobile:"https://www.ready.co/app",qrCode:"https://www.ready.co/app"},mobile:{getUri:e=>wA()?e:`argent://app/wc?uri=${encodeURIComponent(e)}`},qrCode:{getUri:e=>e,instructions:{learnMoreUrl:"https://www.ready.co/",steps:[{description:"wallet_connectors.ready.qr_code.step1.description",step:"install",title:"wallet_connectors.ready.qr_code.step1.title"},{description:"wallet_connectors.ready.qr_code.step2.description",step:"create",title:"wallet_connectors.ready.qr_code.step2.title"},{description:"wallet_connectors.ready.qr_code.step3.description",step:"scan",title:"wallet_connectors.ready.qr_code.step3.title"}]}},createConnector:wC({projectId:t,walletConnectParameters:r})}))(t),id:"argent"}),wP=e.i(307556);function wD(e){let t="u">typeof window?window:void 0;if(void 0===t||void 0===t.ethereum)return;let r=t.ethereum.providers;
393return r?r.find(t=>t[e]):t.ethereum[e]?t.ethereum:void 0}function wj(e){let t=(e,r)=>{let[i,...n]=r.split("."),o=e[i];if(o)return 0===n.length?o:t(o,n.join("."))};if("u">typeof window)return t(window,e)}function wR({flag:e,namespace:t}){return!!t&&void 0!==wj(t)||!!e&&void 0!==wD(e)}function wz({flag:e,namespace:t,target:r}){var i;return i=r||function({flag:e,namespace:t}){let r="u">typeof window?window:void 0;if(void 0===r)return;if(t){let e=wj(t);if(e)return e}let i=r.ethereum?.providers;if(e){let t=wD(e);if(t)return t}if(!t&&!e)return void 0!==i&&i.length>0?i[0]:r.ethereum}({flag:e,namespace:t}),e=>{let t=i?{target:()=>({id:e.rkDetails.id,name:e.rkDetails.name,provider:i})}:{};return(0,wI.createConnector)(r=>({...(0,wP.injected)(t)(r),...e}))}}var wL=({projectId:t,walletConnectParameters:r})=>{let i=wR({namespace:"binancew3w.isExtension",flag:"isBinance"}),n=!i;return{id:"binance",name:"Binance Wallet",rdns:"com.binance.wallet",iconUrl:async()=>(await e.A(383714)).default,iconBackground:"#000000",installed:n?void 0:i,downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.binance.dev",ios:"https://apps.apple.com/us/app/id1436799971",mobile:"https://www.binance.com/en/download",qrCode:"https://www.binance.com/en/web3wallet",chrome:"https://chromewebstore.google.com/detail/cadiboklkpojfamcoggejbbdjcoiljjk"},mobile:n?{getUri:e=>wA()?e:`bnc://app.binance.com/cedefi/wc?uri=${encodeURIComponent(e)}`}:void 0,qrCode:n?{getUri:e=>e,instructions:{learnMoreUrl:"https://www.binance.com/en/web3wallet",steps:[{description:"wallet_connectors.binance.qr_code.step1.description",step:"install",title:"wallet_connectors.binance.qr_code.step1.title"},{description:"wallet_connectors.binance.qr_code.step2.description",step:"create",title:"wallet_connectors.binance.qr_code.step2.title"},{description:"wallet_connectors.binance.qr_code.step3.description",step:"scan",title:"wallet_connectors.binance.qr_code.step3.title"}]}}:void 0,createConnector:n?wC({projectId:t,walletConnectParameters:r}):wz({flag:"isBinance"})}},wB=e.i(540808),wU=e.i(897784),wq=e.i(924164),wW=e.i(701708);function wH(t={}){var r,i;let n,o,a,s,l,c,d,u,h;return"3"===t.version||t.headlessMode?(r=t,(0,wI.createConnector)(t=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:wH.type,async connect({chainId:e,withCapabilities:t}={}){try{let r=await this.getProvider(),i=(await r.request({method:"eth_requestAccounts"})).map(e=>(0,wU.getAddress)(e));a||(a=this.onAccountsChanged.bind(this),r.on("accountsChanged",a)),s||(s=this.onChainChanged.bind(this),r.on("chainChanged",s)),l||(l=this.onDisconnect.bind(this),r.on("disconnect",l));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===wW.UserRejectedRequestError.code)throw e;return{id:n}});n=t?.id??n}return{accounts:t?i.map(e=>({address:e,capabilities:{}})):i,chainId:n}}catch(e){if(/(user closed modal|accounts received is empty|user denied account)/i.test(e.message))throw new wW.UserRejectedRequestError(e);throw e}},async disconnect(){let e=await this.getProvider();a&&(e.removeListener("accountsChanged",a),a=void 0),s&&(e.removeListener("chainChanged",s),s=void 0),l&&(e.removeListener("disconnect",l),l=void 0),e.disconnect(),e.close()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,wU.getAddress)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))}
393,async getProvider(){if(!o){n=new(await (async()=>{let{default:t}=await e.A(484774);return"function"!=typeof t&&"function"==typeof t.default?t.default:t})())({...r,reloadOnDisconnect:!1});let i=n.walletExtension?.getChainId(),a=t.chains.find(e=>r.chainId?e.id===r.chainId:e.id===i)||t.chains[0],s=r.chainId||a?.id,l=r.jsonRpcUrl||a?.rpcUrls.default.http[0];o=n.makeWeb3Provider(l,s)}return o},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:r}){let i=t.chains.find(e=>e.id===r);if(!i)throw new wW.SwitchChainError(new wB.ChainNotConfiguredError);let n=await this.getProvider();try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,wq.numberToHex)(i.id)}]}),i}catch(t){if(4902===t.code)try{let t,o;t=e?.blockExplorerUrls?e.blockExplorerUrls:i.blockExplorers?.default.url?[i.blockExplorers?.default.url]:[],o=e?.rpcUrls?.length?e.rpcUrls:[i.rpcUrls.default?.http[0]??""];let a={blockExplorerUrls:t,chainId:(0,wq.numberToHex)(r),chainName:e?.chainName??i.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??i.nativeCurrency,rpcUrls:o};return await n.request({method:"wallet_addEthereumChain",params:[a]}),i}catch(e){throw new wW.UserRejectedRequestError(e)}throw new wW.SwitchChainError(t)}},onAccountsChanged(e){0===e.length?this.onDisconnect():t.emitter.emit("change",{accounts:e.map(e=>(0,wU.getAddress)(e))})},onChainChanged(e){let r=Number(e);t.emitter.emit("change",{chainId:r})},async onDisconnect(e){t.emitter.emit("disconnect");let r=await this.getProvider();a&&(r.removeListener("accountsChanged",a),a=void 0),s&&(r.removeListener("chainChanged",s),s=void 0),l&&(r.removeListener("disconnect",l),l=void 0)}}))):(i=t,(0,wI.createConnector)(t=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:wH.type,async connect({chainId:e,withCapabilities:t,...r}={}){try{let i=await this.getProvider(),n=(await i.request({method:"eth_requestAccounts",params:"instantOnboarding"in r&&r.instantOnboarding?[{onboarding:"instant"}]:[]})).map(e=>(0,wU.getAddress)(e));d||(d=this.onAccountsChanged.bind(this),i.on("accountsChanged",d)),u||(u=this.onChainChanged.bind(this),i.on("chainChanged",u)),h||(h=this.onDisconnect.bind(this),i.on("disconnect",h));let o=await this.getChainId();if(e&&o!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===wW.UserRejectedRequestError.code)throw e;return{id:o}});o=t?.id??o}return{accounts:t?n.map(e=>({address:e,capabilities:{}})):n,chainId:o}}catch(e){if(/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(e.message))throw new wW.UserRejectedRequestError(e);throw e}},async disconnect(){let e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),u&&(e.removeListener("chainChanged",u),u=void 0),h&&(e.removeListener("disconnect",h),h=void 0),e.disconnect(),e.close?.()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,wU.getAddress)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))}
393,async getProvider(){if(!c){let r="string"==typeof i.preference?{options:i.preference}:{...i.preference,options:i.preference?.options??"all"},{createCoinbaseWalletSDK:n}=await e.A(481818);c=n({...i,appChainIds:t.chains.map(e=>e.id),preference:r}).getProvider()}return c},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:r}){let i=t.chains.find(e=>e.id===r);if(!i)throw new wW.SwitchChainError(new wB.ChainNotConfiguredError);let n=await this.getProvider();try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,wq.numberToHex)(i.id)}]}),i}catch(t){if(4902===t.code)try{let t,o;t=e?.blockExplorerUrls?e.blockExplorerUrls:i.blockExplorers?.default.url?[i.blockExplorers?.default.url]:[],o=e?.rpcUrls?.length?e.rpcUrls:[i.rpcUrls.default?.http[0]??""];let a={blockExplorerUrls:t,chainId:(0,wq.numberToHex)(r),chainName:e?.chainName??i.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??i.nativeCurrency,rpcUrls:o};return await n.request({method:"wallet_addEthereumChain",params:[a]}),i}catch(e){throw new wW.UserRejectedRequestError(e)}throw new wW.SwitchChainError(t)}},onAccountsChanged(e){0===e.length?this.onDisconnect():t.emitter.emit("change",{accounts:e.map(e=>(0,wU.getAddress)(e))})},onChainChanged(e){let r=Number(e);t.emitter.emit("change",{chainId:r})},async onDisconnect(e){t.emitter.emit("disconnect");let r=await this.getProvider();d&&(r.removeListener("accountsChanged",d),d=void 0),u&&(r.removeListener("chainChanged",u),u=void 0),h&&(r.removeListener("disconnect",h),h=void 0)}})))}wH.type="coinbaseWallet";var wV=({appName:t,appIcon:r})=>{let{preference:i,...n}=wV;return{id:"coinbase",aliases:["coinbaseWallet"],name:"Coinbase Wallet",shortName:"Coinbase",rdns:"com.coinbase.wallet",iconUrl:async()=>(await e.A(612867)).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:!0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},...wk()?{}:{qrCode:{getUri:e=>e,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}},createConnector:e=>{let o="string"==typeof i?{options:i,telemetry:!1}:{options:"all",...i,telemetry:!1},a=wH({appName:t,appLogoUrl:r,...n,preference:o});return(0,wI.createConnector)(t=>({...a(t),...e}))}}},wK=()=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>(await e.A(802986)).default,iconBackground:"#fff",createConnector:wz({})}),wF=({projectId:t,walletConnectParameters:r})=>({id:"ledger",iconBackground:"#000",iconAccent:"#000",name:"Ledger",iconUrl:async()=>(await e.A(346596)).default,downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.ledger.live",ios:"https://apps.apple.com/us/app/ledger-live-web3-wallet/id1361671700",mobile:"https://www.ledger.com/ledger-live",qrCode:"https://r354.adj.st/?adj_t=t2esmlk",windows:"https://www.ledger.com/ledger-live/download",macos:"https://www.ledger.com/ledger-live/download",linux:"https://www.ledger.com/ledger-live/download",desktop:"https://www.ledger.com/ledger-live"},mobile:{getUri:e=>wA()?e:`ledgerlive://wc?uri=${encodeURIComponent(e)}`},desktop:{getUri:e=>`ledgerlive://wc?uri=${encodeURIComponent(e)}`,instructions:{learnMoreUrl:"https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",steps:[{description:"wallet_connectors.ledger.desktop.step1.description",step:"install",title:"wallet_connectors.ledger.desktop.step1.title"},{description:"wallet_connectors.ledger.desktop.step2.description",step:"create",title:"wallet_connectors.ledger.desktop.step2.title"},{description:"wallet_connectors.ledger.desktop.step3.description",step:"connect",title:"wallet_connectors.ledger.desktop.step3.title"}]}},qrCode:{getUri:e=>`ledgerlive://wc?uri=${encodeURIComponent(e)}`,instructions:{learnMoreUrl:"https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",steps:[{description:"wallet_connectors.ledger.qr_code.step1.description",step:"install",title:"wallet_connectors.ledger.qr_code.step1.title"},{description:"wallet_connectors.ledger.qr_code.step2.description",step:"create",title:"wallet_connectors.ledger.qr_code.step2.title"},{description:"wallet_connectors.ledger.qr_code.step3.description",step:"scan",title:"wallet_connectors.ledger.qr_code.step3.title"}]}},createConnector:wC({projectId:t,walletConnectParameters:r})}),wY=e.i(722653),wJ=({projectId:t,walletConnectParameters:r})=>{var i;let{...n}=wJ,o="u">typeof window&&(i=window.ethereum,!!i?.isMetaMask&&(!i.isBraveWallet||!!i._events||!!i._state)&&!i.isApexWallet&&!i.isAvalanche&&!i.isBackpack&&!i.isBifrost&&!i.isBitKeep&&!i.isBitski&&!i.isBinance&&!i.isBlockWallet&&!i.isCoinbaseWallet&&!i.isDawn&&!i.isEnkrypt&&!i.isExodus&&!i.isFrame&&!i.isFrontier&&!i.isGamestop&&!i.isHyperPay&&!i.isImToken&&!i.isKuCoinWallet&&!i.isMathWallet&&!i.isNestWallet&&!i.isOkxWallet&&!i.isOKExWallet&&!i.isOneInchIOSWallet&&!i.isOneInchAndroidWallet&&!i.isOpera&&!i.isPhantom&&!i.isZilPay&&!i.isPortal&&!i.isxPortal&&!i.isRabby&&!i.isRainbow&&!i.isStatus&&!i.isTalisman&&!i.isTally&&!i.isTokenPocket&&!i.isTokenary&&!i.isTrust&&!i.isTrustWallet&&!i.isCTRL&&!i.isZeal&&!i.isCoin98&&!i.isMEWwallet&&!i.isSafeheron&&!i.isSafePal&&!i.isWigwam&&!i.isZerion&&!i.__seif&&!0),a=!o&&!wE(),s=o||wE();return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>
393(await e.A(736428)).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:o||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},mobile:{getUri:s?e=>e:void 0},qrCode:a?{getUri:e=>`https://metamask.app.link/wc?uri=${encodeURIComponent(e)}`,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}},createConnector:a?wC({projectId:t,walletConnectParameters:r}):e=>(0,wI.createConnector)(t=>{let i=(0,wY.metaMask)({dappMetadata:{connector:"rainbowkit",name:r?.metadata?.name,iconUrl:r?.metadata?.icons[0],url:r?.metadata?.url},headless:!0,checkInstallationImmediately:!1,enableAnalytics:!1,...n})(t);return{...i,...e,getChainId:async()=>{try{return await i.getChainId()}catch{return t.chains[0]?.id??1}}}})}},wG=({projectId:t,walletConnectParameters:r})=>{let i=wR({flag:"isRainbow"}),n=!i,o=e=>wA()?e:wk()?`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>(await e.A(312151)).default,iconBackground:"#0c2f78",installed:n?void 0:i,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},mobile:{getUri:n?o:void 0},qrCode:n?{getUri:o,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0,createConnector:n?wC({projectId:t,walletConnectParameters:r}):wz({flag:"isRainbow"})}},wQ=({projectId:t,walletConnectParameters:r})=>{let i,n=wE()?wR({flag:"isTrust"}):wR({flag:"isTrustWallet"}),o=!n;return o&&(i={getUri:e=>e,instructions:{learnMoreUrl:"https://trustwallet.com/",steps:[{description:"wallet_connectors.trust.qr_code.step1.description",step:"install",title:"wallet_connectors.trust.qr_code.step1.title"},{description:"wallet_connectors.trust.qr_code.step2.description",step:"create",title:"wallet_connectors.trust.qr_code.step2.title"},{description:"wallet_connectors.trust.qr_code.step3.description",step:"scan",title:"wallet_connectors.trust.qr_code.step3.title"}]}}),{id:"trust",name:"Trust Wallet",rdns:"com.trustwallet.app",iconUrl:async()=>(await e.A(442320)).default,installed:n||void 0,iconAccent:"#3375BB",iconBackgroun
393d:"#fff",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",ios:"https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",mobile:"https://trustwallet.com/download",qrCode:"https://trustwallet.com/download",chrome:"https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",browserExtension:"https://trustwallet.com/browser-extension"},mobile:{getUri:o?e=>`trust://wc?uri=${encodeURIComponent(e)}`:void 0},qrCode:i,extension:{instructions:{learnMoreUrl:"https://trustwallet.com/browser-extension",steps:[{description:"wallet_connectors.trust.extension.step1.description",step:"install",title:"wallet_connectors.trust.extension.step1.title"},{description:"wallet_connectors.trust.extension.step2.description",step:"create",title:"wallet_connectors.trust.extension.step2.title"},{description:"wallet_connectors.trust.extension.step3.description",step:"refresh",title:"wallet_connectors.trust.extension.step3.title"}]}},createConnector:o?wC({projectId:t,walletConnectParameters:r}):wE()?wz({flag:"isTrust"}):wz({flag:"isTrustWallet"})}},wZ=({projectId:t,options:r})=>({id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>(await e.A(653863)).default,iconBackground:"#3b99fc",qrCode:{getUri:e=>e},createConnector:wC({projectId:t,walletConnectParameters:r})}),wX=e.i(346343),w$=e.i(718190),w0=e.i(327081),w1=e.i(374285),w2=e.i(296263),w3=e.i(107224),w4=e.i(68920);function w5(){let{connect:e,connectors:t}=(0,w4.useConnect)(),{isConnected:r,status:i}=(0,w3.useAccount)();return(0,e_.useEffect)(()=>{if(r||"connecting"===i||"reconnecting"===i)return;let n=t.find(e=>"mock"===e.id);n&&e({connector:n})},[e,t,r,i]),null}function w8({children:e}){let t=(0,e1.useMultiProvider)(),r=(0,wd.isE2EMode)(),{wagmiConfig:i}=(0,e_.useMemo)(()=>{let e,i;return e=(0,ww.getWagmiChainConfigs)(t),i=r?[(0,wM.mock)({accounts:["0xE2eE2eE2eE2eE2eE2eE2eE2eE2eE2eE2eE2eE2eE"],features:{reconnect:!0}})]:(0,wx.connectorsForWallets)([{groupName:"Recommended",wallets:[wJ,wK,wZ,wF]},{groupName:"More",wallets:[wL,wV,wG,wQ,wO]}],{appName:eV.APP_NAME,projectId:eK.config.walletConnectProjectId}),{wagmiConfig:(0,w2.createConfig)({chains:[e[0],...e.splice(1)],connectors:i,client({chain:e}){let t=(0,w$.fallback)(e.rpcUrls.default.http.map(e=>(0,w0.http)(e)));return(0,wX.createClient)({chain:e,transport:t})}}),chains:e}},[t,r]);return(0,eN.jsx)(w1.WagmiProvider,{config:i,children:(0,eN.jsxs)(wx.RainbowKitProvider,{theme:(0,wS.lightTheme)({accentColor:tF.Color.primary["500"],borderRadius:"small",fontStack:"system"}),children:[r&&(0,eN.jsx)(w5,{}),e]})})}var w6=e.i(319456),w7=e.i(284154);let w9="account_rdx12e2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee2ee";function xe(){let{setAccounts:e,setSelectedAccount:t,selectedAccount:r}=(0,w6.useAccount)();return(0,e_.useEffect)(()=>{r===w9||(e([{address:w9,label:"Warp E2E Mock (Radix)",appearanceId:0}]),t(w9))},[r,e,t]),null}var xt=e.i(781672),xr=e.i(461963);let xi={networkId:xr.RadixNetwork.Mainnet,applicationVersion:"1.0.0",applicationName:eV.APP_NAME,dAppDefinitionAddress:"account_rdx12ycz0wsuygqa5slye9du6e7wz7fr4pzx39l5r5cznqc6yudpks20cw",useCache:!1};function xn({children:e}){let t,{gatewayApi:r,rdt:i}=n??=(t=(0,xr.RadixDappToolkit)(xi),{gatewayApi:xt.GatewayApiClient.initialize(t.gatewayApi.clientConfig),rdt:t});return(0,eN.jsx)(w7.RdtProvider,{value:i,children:(0,eN.jsx)(w7.GatewayApiProvider,{value:r,children:(0,eN.jsx)(w6.AccountProvider,{children:(0,eN.jsxs)(w7.PopupProvider,{children:[(0,wd.isE2EMode)()&&(0,eN.jsx)(xe,{}),e]})})})})}var xo=e.i(412327),xa=e.i(678382);class xs extends Error{constructor(e,t){super(e),this.error=t}}class xl extends xs{constructor(){super(...arguments),this.name="WalletNotReadyError"}}class xc extends xs{constructor(){super(...arguments),this.name="WalletLoadError"}}class xd extends xs{constructor(){super(...arguments),this.name="WalletConfigError"}}class xu extends xs{constructor(){super(...arguments),this.name="WalletConnectionError"}}class xh extends xs{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}class xp extends xs{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}class xf extends xs{constructor(){super(...arguments),this.name="WalletAccountError"}}class xg extends xs{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}class xm extends xs{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}class xy extends xs{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}class xb extends xs{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}class xv extends xs{constructor(){super(...arguments),this.name="WalletSignMessageError"}}class xw extends xs{constructor(){super(...arguments),this.name="WalletSignInError"}}(E=U||(U={})).Installed="Installed",E.NotDetected="NotDetected",E.Loadable="Loadable",E.Unsupported="Unsupported";class xx extends xa.default{get connected(){return!!this.publicKey}async autoConnect(){await this.connect()}async prepareTransaction(e,t,r={}){let i=this.publicKey;if(!i)throw new xm;return e.feePayer=e.feePayer||i,e.recentBlockhash=e.recentBlockhash||(await t.getLatestBlockhash({commitment:r.preflightCommitment,minContextSlot:r.minContextSlot})).blockhash,e}}function xS(e){if("u"<typeof window||"u"<typeof document)return;let t=[];function r(){if(e())for(let e of t)e()}let i=setInterval(r,1e3);t.push(()=>clearInterval(i)),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",r,{once:!0}),t.push(()=>document.removeEventListener("DOMContentLoaded",r))),"complete"!==document.readyState&&(window.addEventListener("load",r,{once:!0}),t.push(()=>window.removeEventListener("load",r))),r()}function xA(e){return"version"in e}class xk extends xx{async sendTransaction(e,t,r={}){let i=!0;try{if(xA(e)){if(!this.supportedTransactionVersions)throw new xy("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(e.version))throw new xy(`Sending transaction version ${e.ver
393sion} isn't supported by this wallet`);try{let i=(e=await this.signTransaction(e)).serialize();return await t.sendRawTransaction(i,r)}catch(e){if(e instanceof xb)throw i=!1,e;throw new xy(e?.message,e)}}try{let{signers:i,...n}=r;e=await this.prepareTransaction(e,t,n),i?.length&&e.partialSign(...i);let o=(e=await this.signTransaction(e)).serialize();return await t.sendRawTransaction(o,n)}catch(e){if(e instanceof xb)throw i=!1,e;throw new xy(e?.message,e)}}catch(e){throw i&&this.emit("error",e),e}}async signAllTransactions(e){for(let t of e)if(xA(t)){if(!this.supportedTransactionVersions)throw new xb("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(t.version))throw new xb(`Signing transaction version ${t.version} isn't supported by this wallet`)}let t=[];for(let r of e)t.push(await this.signTransaction(r));return t}}class xE extends xk{}class xI extends xE{}class xM extends xE{constructor(e={}){super(),this.name="Backpack",this.url="https://backpack.app",this.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAbvSURBVHgB7Z1dUtxGEMf/LZH3fU0V4PUJQg4QVj5BnBOAT2BzAsMJAicwPoHJCRDrAxifgLVxVV73ObDqdEtsjKn4C8+0NDv9e7AxprRC85uvnp4RYYW5qKpxCVTcYKsgfiDfGjMwIsZIvh7d/lkmzAiYy5fzhultyZhdlagf1vU5VhjCiiGFXq01zYSJdqWgx/hB5AHN5I/6iuilyFBjxVgZAdqCZ34ORoVIqAzSOhxsvq6PsSIkL4A281LwL2IW/F1UhLKgRz/X9QyJUyBhuuae31gWviLjiPF1wxeX29vPkTjJtgAftrd3GHSMnmHw4eZ0uodESVKAoRT+kpQlSE6Ats/XZv/ONK5vZHC49+B1fYjESG4MUDKfYmCFr0ic4fmHqtpCYiQlgA66QsztIzFi5j+RGMl0AXebfgn0aOTuvGG8owIarZsXOj3ronlRuEYnn84CJLo4Lgi/QL/H/LHmy/RwI6GA0RoS4acFHi8kGieFXS/QhmijFfQXmH3uPy5lSkoLb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r0JJ0G5XZz5Z1e1rYccA5TAicqEk0O5ECl/3LvYys7mLTLHHCEzS7wz6Esv3+nyYTF58rwha63XAl8PG1aCnhesWq6EdOcKM3WvmXRHh+Gvv/tNVTJlJPC4a3RVEK72+sCSZ4+J/FBVhTUS43J7gJqFjrnl33A3sxtCa3nAWhX6bbAT4hJugCsNZ2TGA8224AJnjAmSOC5A5LkDmuACZ4wJkjguQOS5A5rgAmeMCZI4LkDkuQOa4AJnjAmSOC5A5LkDmuACZ4wJkjguQOWEFYJvz85xwBBWgKM1P68oKKsI/36ACdC9nsDlWPTsIJ5t1Hfw01OBjgI1p/YwLegIibw0CwESz9gUYZ2d/wHEcx3Ecx3Ecx3Ecx3HuS5QjfdrXxTHv3JzEkd2xKwHR9xPNuKGjzdf1MSIQXAA9XUsuuw8nKPpK3PWzs+AvrgwqgP1LojOjoEf3fRv6Zy+JgBSLOGfaOx1NE/6o+rCrgeT9fWp4SljmuACZ4wJkjguQOS5A5rgAmeMCZI4LkDkuQOa4AJnjAmSOC5A5LkDmuACZ4wJkjguQOS5A5rgAmeMCZI4LkDkuQOa4AJnj5wRmTlABqHQBohKhgg
393UVYAEEP8fO+UiMgziDCvCwrnU3aw0nOATMQu8LVIIPAq+JdAerdwWBaQ/fjEBwAaQVmMnN7sEJCB3EqP3tlRGJy6qqmPkFMcZw7sucmfZiHQ6hRBNgSXdaCHbA7KeFfBvz9pxlxtl1gcN2XBWRfwHK959XFRG6AgAAAABJRU5ErkJggg==",this.supportedTransactionVersions=null,this._readyState="u"<typeof window||"u"<typeof document?U.Unsupported:U.NotDetected,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new xh),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==U.Unsupported&&xS(()=>!!window.backpack?.isBackpack&&(this._readyState=U.Installed,this.emit("readyStateChange",this._readyState),!0))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){return!!this._wallet?.isConnected}get readyState(){return this._readyState}async connect(){try{let e;if(this.connected||this.connecting)return;if(this._readyState!==U.Installed)throw new xl;this._connecting=!0;let t=window.backpack;try{await t.connect()}catch(e){throw new xu(e?.message,e)}if(!t.publicKey)throw new xf;try{e=new rL.PublicKey(t.publicKey.toBytes())}catch(e){throw new xg(e?.message,e)}t.on("disconnect",this._disconnected),this._wallet=t,this._publicKey=e,this.emit("connect",e)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new xp(e?.message,e))}}this.emit("disconnect")}async sendTransaction(e,t,r={}){try{let i=this._wallet;if(!i)throw new xm;let{signers:n,...o}=r;try{return await i.send(e,n,o,t,this.publicKey)}catch(e){throw new xy(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signTransaction(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signTransaction(e,this.publicKey)}catch(e){throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signAllTransactions(e,this.publicKey)}catch(e){throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signMessage(e,this.publicKey)}catch(e){throw new xv(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}(I=q||(q={})).Mainnet="mainnet-beta",I.Testnet="testnet",I.Devnet="devnet";let xT=(0,e_.createContext)({}),xN=({children:e,endpoint:t,config:r={commitment:"confirmed"}})=>{let i=(0,e_.useMemo)(()=>new rL.Connection(t,r),[t,r]);return e_.default.createElement(xT.Provider,{value:{connection:i}},e)},x_="solana:signAndSendTransaction",xC="solana:signIn",xO="solana:signMessage",xP="solana:signTransaction";function xD([e,t]){return`${e}=${function e(t){return Array.isArray(t)?"%5B"+t.map(e).join("%2C%20")+"%5D":"bigint"==typeof t?`${t}n`:encodeURIComponent(String(null!=t&&null===Object.getPrototypeOf(t)?{...t}:t))}(t)}`}var xj=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,i;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([t,n])=>{"cause"===t?i={cause:n.value}:(void 0===r&&(r={__code:e}),Object.defineProperty(r,t,n))}),super(function(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${btoa(Object.entries(t).map(xD).join("&"))}'`),`${r}\``}}(e,r),i),this.context=Object.freeze(void 0===r?{__code:e}:r),this.name="SolanaError"}};function xR(e){return Object.freeze({...e,encode:t=>{let r=new Uint8Array("fixedSize"in e?e.fixedSize:e.getSizeFromValue(t));return e.write(t,r,0),r}})}function xz(e){return Object.freeze({...e,decode:(t,r=0)=>e.read(t,r)[0]})}function xL(e,t){let[r,i]=e.split(RegExp(`((?!${t}).*)`));return[r,i]}function xB(e,t){let r=BigInt(t.length),i=0n;for(let n of e)i*=r,i+=BigInt(t.indexOf(n));return i}var xU="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",xq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xW=()=>xz({read:(e,t=0)=>[btoa(String.fromCharCode(...e.slice(t))),e.length]}),xH=globalThis.TextDecoder,xV=globalThis.TextEncoder,xK=()=>{let e;return xR({getSizeFromValue:t=>(e||=new xV).encode(t).length,write:(t,r,i)=>{let n=(e||=new xV).encode(t);return r.set(n,i),i+n.length}})};function xF(e,t){let r=xW().decode(e);return t?r.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):r}function xY(e){return xR({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new xj(8078012,{alphabet:xq,base:64,value:e})}},write(e,t,r){try{let i=atob(e).split("").map(e=>e.charCodeAt(0));return t.set(i,r),i.length+r}catch{throw new xj(8078012,{alphabet:xq,base:64,value:e})}}}).encode(e)}function xJ(e){return xz({read(e,t){let r=0===t||t<=-e.byteLength?e:e.slice(t);if(0===r.length)return["",e.length];let i=r.findIndex(e=>0!==e);i=-1===i?r.length:i;let n=xU[0].repeat(i);return i===r.length?[n,e.length]:[n+function(e,t){let r=BigInt(t.length),i=[];for(;e>0n;)i.unshift(t[Number(e%r)]),e/=r;return i.join("")}(r.slice(i).reduce((e,t)=>
393256n*e+BigInt(t),0n),xU),e.length]}}).decode(e)}function xG(e){return xF(new Uint8Array(e))}function xQ(e){return xY(e)}let xZ="solana:mainnet";Event,new WeakMap;var xX=e.i(257008),x$=e.i(786797),x0=e.i(206646);e.i(439281);var x1=e.i(838569),x2=e.i(469457);class x3{oHash;iHash;blockLen;outputLen;canXOF=!1;finished=!1;destroyed=!1;constructor(e,t){if((0,x$.ahash)(e),(0,x$.abytes)(t,void 0,"key"),this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("expected Hash instance");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(t.length>r?e.create().update(t).digest():t);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),(0,x$.clean)(i)}update(e){return(0,x$.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,x$.aexists)(this),(0,x$.aoutput)(e,this),this.finished=!0;let t=e.subarray(0,this.outputLen);this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:t,iHash:r,finished:i,destroyed:n,blockLen:o,outputLen:a,canXOF:s}=this;return e.finished=i,e.destroyed=n,e.blockLen=o,e.outputLen=a,e.canXOF=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}(u=(e,t,r)=>new x3(e,t).update(r).digest()).create=(e,t)=>new x3(e,t);var x4=e.i(40297);let x5=BigInt(0),x8={Err:class extends Error{constructor(e=""){super(e)}},_tlv:{encode:(e,t)=>{let{Err:r}=x8;if((0,x4.asafenumber)(e,"tag"),e<0||e>255)throw new r("tlv.encode: wrong tag");if((0,x4.astring)(t,"data"),1&t.length)throw new r("tlv.encode: unpadded data");let i=t.length/2,n=(0,x4.numberToHexUnpadded)(i);if(n.length/2&128)throw new r("tlv.encode: long form length too big");let o=i>127?(0,x4.numberToHexUnpadded)(n.length/2|128):"";return(0,x4.numberToHexUnpadded)(e)+o+n+t},decode(e,t){let{Err:r}=x8;t=(0,x4.abytes)(t,void 0,"DER data");let i=0;if(e<0||e>255)throw new r("tlv.decode: wrong tag");if(t.length<2||t[i++]!==e)throw new r("tlv.decode: wrong tlv");let n=t[i++],o=0;if(128&n){let e=127&n;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");let a=t.subarray(i,i+e);if(a.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===a[0])throw new r("tlv.decode(long): zero leftmost byte");for(let e of a)o=o<<8|e;if(i+=e,o<128)throw new r("tlv.decode(long): not minimal encoding")}else o=n;let a=t.subarray(i,i+o);if(a.length!==o)throw new r("tlv.decode: wrong value length");return{v:a,l:t.subarray(i+o)}}},_int:{encode(e){let{Err:t}=x8;if((0,x4.abignumber)(e),e<x5)throw new t("integer: negative integers are not allowed");let r=(0,x4.numberToHexUnpadded)(e);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=x8;if(e.length<1)throw new t("invalid signature integer: empty");if(128&e[0])throw new t("invalid signature integer: negative");if(e.length>1&&0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return(0,x4.bytesToNumberBE)(e)}},toSig(e){let{Err:t,_int:r,_tlv:i}=x8,n=(0,x4.abytes)(e,void 0,"signature"),{v:o,l:a}=i.decode(48,n);if(a.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:l}=i.decode(2,o),{v:c,l:d}=i.decode(2,l);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(s),s:r.decode(c)}},hexFromSig(e){let{_tlv:t,_int:r}=x8;(0,x4.validateObject)(e,{r:"bigint",s:"bigint"},{},"sig");let i=t.encode(2,r.encode(e.r)),n=t.encode(2,r.encode(e.s));return t.encode(48,i+n)}},x6=(Object.freeze(x8._tlv),Object.freeze(x8._int),Object.freeze(x8),(e,t)=>(e+(e>=0?t:-t)/Se)/t),x7=BigInt(0),x9=BigInt(1),Se=BigInt(2),St=BigInt(3),Sr=BigInt(4),Si={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},Sn={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},So=BigInt(0),Sa=BigInt(2),Ss=(0,x2.Field)(Si.p,{sqrt:function(e){let t=Si.p,r=BigInt(3),i=BigInt(6),n=BigInt(11),o=BigInt(22),a=BigInt(23),s=BigInt(44),l=BigInt(88),c=e*e*e%t,d=c*c*e%t,u=(0,x2.pow2)(d,r,t)*d%t,h=(0,x2.pow2)(u,r,t)*d%t,p=(0,x2.pow2)(h,Sa,t)*c%t,f=(0,x2.pow2)(p,n,t)*p%t,g=(0,x2.pow2)(f,o,t)*f%t,m=(0,x2.pow2)(g,s,t)*g%t,y=(0,x2.pow2)(m,l,t)*m%t,b=(0,x2.pow2)(y,s,t)*g%t,v=(0,x2.pow2)(b,r,t)*d%t,w=(0,x2.pow2)(v,a,t)*f%t,x=(0,x2.pow2)(w,i,t)*c%t,S=(0,x2.pow2)(x,Sa,t);if(!Ss.eql(Ss.sqr(S),e))throw Error("Cannot find square root");return S}}),Sl=function(e,t={}){var r,i;let n=(0,x0.createCurveFields)("weierstrass",e,t),o=n.Fp,a=n.Fn,s=n.CURVE,{h:l,n:c}=s;(0,x4.validateObject)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",randomBytes:"function"});let{endo:d,allowInfinityPoint:u}=t,h=void 0===t.randomBytes?x4.randomBytes:t.randomBytes;if(d&&(!o.is0(s.a)||"bigint"!=typeof d.beta||!Array.isArray(d.basises)))throw Error('invalid endo: expected "beta": bigint and "basises": array');let p=(r=o,{secretKey:(i=a).BYTES,publicKey:1+r.BYTES,publicKeyUncompressed:1+2*r.BYTES,publicKeyHasPrefix:!0,signature:2*i.BYTES});function f(){if(!o.isOdd)throw Error("compression is not supported: Field does not have .isOdd()")}let g=void 0===t.toBytes?function(e,t,r){if(u&&t.is0())return Uint8Array.of(0);let{x:i,y:n}=t.toAffine(),a=o.toBytes(i);if((0,x4.abool)(r,"isCompressed"),!r)return(0,x4.concatBytes)(Uint8Array.of(4),a,o.toBytes(n));{var s;f();let e=!o.isOdd(n);return(0,x4.concatBytes)((s=e,Uint8Array.of(s?2:3)),a)}}:t.toBytes,m=void 0===t.fromBytes?function(e){(0,x4.abytes)(e,void 0,"Point");let{publicKey:t,publicKeyUncompressed:r}=p,i=e.length,n=e[0],a=e.subarray(1);if(u&&1===i&&0===n)return{x:o.ZERO,y:o.ZERO};
393if(i===t&&(2===n||3===n)){let e,t=o.fromBytes(a);if(!o.isValid(t))throw Error("bad point: is not on curve, wrong x");let r=v(t);try{e=o.sqrt(r)}catch(e){throw Error("bad point: is not on curve, sqrt error"+(e instanceof Error?": "+e.message:""))}return f(),(1&n)==1!==o.isOdd(e)&&(e=o.neg(e)),{x:t,y:e}}if(i===r&&4===n){let e=o.BYTES,t=o.fromBytes(a.subarray(0,e)),r=o.fromBytes(a.subarray(e,2*e));if(!w(t,r))throw Error("bad point: is not on curve");return{x:t,y:r}}throw Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${r}`)}:t.fromBytes,y=o.mul(s.b,St),b=o.is0(s.a)?e=>o.ZERO:e=>o.mul(s.a,e);function v(e){let t=o.sqr(e),r=o.mul(t,e);return o.add(o.add(r,o.mul(e,s.a)),s.b)}function w(e,t){let r=o.sqr(t),i=v(e);return o.eql(r,i)}if(!w(s.Gx,s.Gy))throw Error("bad curve params: generator point");let x=o.mul(o.pow(s.a,St),Sr),S=o.mul(o.sqr(s.b),BigInt(27));if(o.is0(o.add(x,S)))throw Error("bad curve params: a or b");function A(e,t,r=!1){if(!o.isValid(t)||r&&o.is0(t))throw Error(`bad point coordinate ${e}`);return t}function k(e){if(!(e instanceof M))throw Error("Weierstrass Point expected")}function E(e,t,r,i){if(!a.isValid(i))throw RangeError("invalid scalar: out of range");if(d){let{k1neg:n,k1:s,k2neg:l,k2:c}=function(e){if(!d||!d.basises)throw Error("no endo");return function(e,t,r){(0,x4.aInRange)("scalar",e,x7,r);let[[i,n],[o,a]]=t,s=x6(a*e,r),l=x6(-n*e,r),c=e-s*i-l*o,d=-s*n-l*a,u=c<x7,h=d<x7;u&&(c=-c),h&&(d=-d);let p=(0,x4.bitMask)(Math.ceil((0,x4.bitLen)(r)/2))+x9;if(c<x7||c>=p||d<x7||d>=p)throw Error("splitScalar (endomorphism): failed for k");return{k1neg:u,k1:c,k2neg:h,k2:d}}(e,d.basises,a.ORDER)}(i),u=new M(o.mul(r.X,d.beta),r.Y,r.Z);e.push(n?r.negate():r,l?u.negate():u),t.push(s,c)}else e.push(r),t.push(i)}let I=new WeakSet;class M{static BASE=new M(s.Gx,s.Gy,o.ONE);static ZERO=new M(o.ZERO,o.ONE,o.ZERO);static Fp=o;static Fn=a;X;Y;Z;constructor(e,t,r){this.X=A("x",e),this.Y=A("y",t,!0),this.Z=A("z",r),Object.freeze(this)}static CURVE(){return s}static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!o.isValid(t)||!o.isValid(r))throw Error("invalid affine point");if(e instanceof M)throw Error("projective point not allowed");return o.is0(t)&&o.is0(r)?M.ZERO:new M(t,r,o.ONE)}static fromBytes(e){let t=M.fromAffine(m((0,x4.abytes)(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return M.fromBytes((0,x4.hexToBytes)(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=6,t=!0){return N.setWindowSize(this,e),t||this.multiply(St),this}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&o.is0(this.X)&&o.eql(this.Y,o.ONE)&&o.is0(this.Z))return;throw Error("bad point: ZERO")}if(I.has(this))return;let{x:e,y:r}=this.toAffine();if(!o.isValid(e)||!o.isValid(r))throw Error("bad point: x or y not field elements");if(!w(e,r))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup");I.add(this)}hasEvenY(){let{y:e}=this.toAffine();if(!o.isOdd)throw Error("Field doesn't support isOdd");return!o.isOdd(e)}equals(e){k(e);let{X:t,Y:r,Z:i}=this,{X:n,Y:a,Z:s}=e,l=o.eql(o.mul(t,s),o.mul(n,i)),c=o.eql(o.mul(r,s),o.mul(a,i));return l&&c}negate(){return new M(this.X,o.neg(this.Y),this.Z)}double(){let{X:e,Y:t,Z:r}=this,i=o.ZERO,n=o.ZERO,a=o.ZERO,s=o.mul(e,e),l=o.mul(t,t),c=o.mul(r,r),d=o.mul(e,t);return d=o.add(d,d),a=o.mul(e,r),i=b(a=o.add(a,a)),n=o.mul(y,c),n=o.add(i,n),i=o.sub(l,n),n=o.add(l,n),n=o.mul(i,n),i=o.mul(d,i),a=o.mul(y,a),c=b(c),d=b(d=o.sub(s,c)),d=o.add(d,a),a=o.add(s,s),s=o.add(a,s),s=o.add(s,c),s=o.mul(s,d),n=o.add(n,s),c=o.mul(t,r),c=o.add(c,c),s=o.mul(c,d),i=o.sub(i,s),a=o.mul(c,l),a=o.add(a,a),new M(i,n,a=o.add(a,a))}add(e){k(e);let{X:t,Y:r,Z:i}=this,{X:n,Y:a,Z:s}=e,l=o.ZERO,c=o.ZERO,d=o.ZERO,u=o.mul(t,n),h=o.mul(r,a),p=o.mul(i,s),f=o.add(t,r),g=o.add(n,a);f=o.mul(f,g),g=o.add(u,h),f=o.sub(f,g),g=o.add(t,i);let m=o.add(n,s);return g=o.mul(g,m),m=o.add(u,p),g=o.sub(g,m),m=o.add(r,i),l=o.add(a,s),m=o.mul(m,l),l=o.add(h,p),m=o.sub(m,l),d=b(g),l=o.mul(y,p),d=o.add(l,d),l=o.sub(h,d),d=o.add(h,d),c=o.mul(l,d),h=o.add(u,u),h=o.add(h,u),p=b(p),g=o.mul(y,g),h=o.add(h,p),p=b(p=o.sub(u,p)),g=o.add(g,p),u=o.mul(h,g),c=o.add(c,u),u=o.mul(m,g),l=o.mul(f,l),l=o.sub(l,u),u=o.mul(f,h),d=o.mul(m,d),new M(l,c,d=o.add(d,u))}subtract(e){return k(e),this.add(e.negate())}is0(){return this.equals(M.ZERO)}multiply(e){if(!a.isValidNot0(e))throw RangeError("invalid scalar: out of range");let{p:t,f:r}=N.mulSecret(this,e,l,T);return T([t,r])[0]}multiplyUnsafe(e){if(!a.isValid(e))throw RangeError("invalid scalar: out of range");if(e===x7||this.is0())return M.ZERO;if(e===x9)return this;if(N.hasWindowSize(this))return N.mulUnsafe(this,e,T);let t=[],r=[];return E(t,r,this,e),(0,x0.mulAddUnsafe)(M,t,r)}mulAddUnsafe(e,t,r){k(t);let i=[],n=[];return E(i,n,this,e),E(i,n,t,r),(0,x0.mulAddUnsafe)(M,i,n)}toAffine(e){let t=e;if(null!=t&&!o.isValid(t))throw RangeError('"invertedZ" expected valid field element');let{X:r,Y:i,Z:n}=this;if(o.eql(n,o.ONE))return{x:r,y:i};let a=this.is0();null==t&&(t=a?o.ONE:o.inv(n));let s=o.mul(r,t),l=o.mul(i,t),c=o.mul(n,t);if(a)return{x:o.ZERO,y:o.ZERO};
393if(!o.eql(c,o.ONE))throw Error("invZ was invalid");return{x:s,y:l}}isTorsionFree(){let{isTorsionFree:e}=t;return l===x9||(e?e(M,this):N.mulUnsafe(this,c).is0())}clearCofactor(){let{clearCofactor:e}=t;return l===x9?this:e?e(M,this):this.multiplyUnsafe(l)}isSmallOrder(){return l===x9?this.is0():this.clearCofactor().is0()}toBytes(e=!0){return(0,x4.abool)(e,"isCompressed"),this.assertValidity(),g(M,this,e)}toHex(e=!0){return(0,x4.bytesToHex)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}let T=e=>(0,x0.normalizeZ)(M,e),N=new x0.ScalarMultiplier(M,h);return N.bits>=6&&M.BASE.precompute(6),Object.freeze(M.prototype),Object.freeze(M),M}(Si,{Fp:Ss,endo:Sn});xX.sha256;let Sc=Object.create(null);function Sd(e,...t){let r=Sc[e];if(void 0===r){let t=(0,xX.sha256)((0,x4.asciiToBytes)(e));r=(0,x4.concatBytes)(t,t),Sc[e]=r}return(0,xX.sha256)((0,x4.concatBytes)(r,...t))}let Su=e=>e.toBytes(!0).slice(1);function Sh(e){let t,{Fn:r,BASE:i}=Sl,n=r.fromBytes((0,x4.abytes)(e,32,"secretKey")),o=i.multiply(n).toAffine();return{scalar:(t=o.y,Ss.isOdd(t))?r.neg(n):n,bytes:(({x:e})=>Ss.toBytes(e))(o)}}function Sp(e){let t;if(!Ss.isValidNot0(e))throw Error("invalid x: Fail if x ≥ p");let r=Ss.sqr(e),i=Ss.add(Ss.mulN(r,e),BigInt(7)),n=Ss.sqrt(i);t=n,Ss.isOdd(t)&&(n=Ss.neg(n));let o=Sl.fromAffine({x:e,y:n});return o.assertValidity(),o}let Sf=x4.bytesToNumberBE;function Sg(...e){return Sl.Fn.create(Sf(Sd("BIP0340/challenge",...e)))}function Sm(e){return Sh(e).bytes}function Sy(e,t,r){let{Fp:i,Fn:n,BASE:o}=Sl,a=(0,x4.abytes)(e,64,"signature"),s=(0,x4.abytes)(t,void 0,"message"),l=(0,x4.abytes)(r,32,"publicKey");try{let e=Sp(Sf(l)),t=a.subarray(0,32),r=Sf(t);if(!i.isValidNot0(r))return!1;let c=Sf(a.subarray(32,64));if(!n.isValidNot0(c))return!1;let d=Sg(t,Su(e),s),u=o.mulAddUnsafe(c,e,n.neg(d)),{x:h,y:p}=u.toAffine();if(u.is0()||Ss.isOdd(p)||!i.eql(h,r))return!1;return!0}catch(e){return!1}}let Sb=(h=e=>(e=void 0===e?(0,x$.randomBytes)(48):e,(0,x2.mapHashToField)((0,x4.abytes)(e,48,"seed"),Si.n)),Object.freeze({keygen:(0,x0.createKeygen)(h,Sm),getPublicKey:Sm,sign:function(e,t,r=(0,x$.randomBytes)(32)){let i,{Fn:n,BASE:o}=Sl,a=(0,x4.abytes)(e,void 0,"message"),{bytes:s,scalar:l}=Sh(t),c=(0,x4.abytes)(r,32,"auxRand"),d=n.toBytes(l^Sf(Sd("BIP0340/aux",c))),u=Sd("BIP0340/nonce",d,s,a),h=n.create(Sf(u));if(h===So)throw Error("sign failed: k is zero");let p=o.multiply(h).toAffine(),f=(i=p.y,Ss.isOdd(i))?n.neg(h):h,g=(({x:e})=>Ss.toBytes(e))(p),m=Sg(g,s,a),y=new Uint8Array(64);if(y.set(g,0),y.set(n.toBytes(n.create(f+m*l)),32),!Sy(y,a,s))throw Error("sign: Invalid signature produced");return y},verify:Sy,Point:Sl,utils:Object.freeze({randomSecretKey:h,taggedHash:Sd,lift_x:Sp,pointToBytes:Su}),lengths:Object.freeze({secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48})})),Sv=(0,x1.isogenyMap)(Ss,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e))));(0,x1.createHasher)(Sl,e=>{let{x:t,y:r}=(o||(o=(0,x1.mapToCurveSimpleSWU)(Ss,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:Ss.create(BigInt("-11"))})))(Ss.create(e[0]));return Sv(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:Ss.ORDER,m:1,k:128,expand:"xmd",hash:xX.sha256});RegExp("^(?<domain>[^\\n]+?) wants you to sign in with your Solana account:\\n(?<address>[^\\n]+)(?:\\n|$)(?:\\n(?<statement>[\\S\\s]*?)(?:\\n|$))??(?:\\nURI: (?<uri>[^\\n]+))?(?:\\nVersion: (?<version>[^\\n]+))?(?:\\nChain ID: (?<chainId>[^\\n]+))?(?:\\nNonce: (?<nonce>[^\\n]+))?(?:\\nIssued At: (?<issuedAt>[^\\n]+))?(?:\\nExpiration Time: (?<expirationTime>[^\\n]+))?(?:\\nNot Before: (?<notBefore>[^\\n]+))?(?:\\nRequest ID: (?<requestId>[^\\n]+))?(?:\\nResources:(?<resources>(?:\\n- [^\\n]+)*))?\\n*$");let Sw="ERROR_FORBIDDEN_WALLET_BASE_URL",Sx="ERROR_SESSION_CLOSED",SS="ERROR_SESSION_TIMEOUT",SA="ERROR_LOOPBACK_ACCESS_BLOCKED",Sk="ERROR_ASSOCIATION_CANCELLED",SE="ERROR_ILLEGAL_TRANSPORT_STATE";
393var SI=class extends Error{data;code;constructor(...e){const[t,r,i]=e;super(r),this.code=t,this.data=i,this.name="SolanaMobileWalletAdapterError"}},SM=class extends Error{data;code;jsonRpcMessageId;constructor(...e){const[t,r,i,n]=e;super(i),this.code=r,this.data=n,this.jsonRpcMessageId=t,this.name="SolanaMobileWalletAdapterProtocolError"}};async function ST(e){let t=await crypto.subtle.exportKey("raw",e),r=(0,xX.sha256)(new Uint8Array(t));return(0,x$.bytesToHex)(r)}function SN(e,t,r,i,n){let o=JSON.stringify([0,e,t,r,i,n]);return(0,x$.bytesToHex)((0,xX.sha256)(new TextEncoder().encode(o)))}function S_(e,t,r,i){let n=(0,x$.bytesToHex)(Sb.getPublicKey(i)),o=Math.floor(Date.now()/1e3),a=SN(n,o,e,r,t);return{id:a,pubkey:n,created_at:o,kind:e,tags:r,content:t,sig:(0,x$.bytesToHex)(Sb.sign((0,x$.hexToBytes)(a),i))}}async function SC(e,t){let r=await crypto.subtle.exportKey("raw",e),i=await crypto.subtle.sign({hash:"SHA-256",name:"ECDSA"},t,r),n=new Uint8Array(r.byteLength+i.byteLength);return n.set(new Uint8Array(r),0),n.set(new Uint8Array(i),r.byteLength),n}let SO="solana:cloneAuthorization";function SP(e,t){return new Proxy({},{get:(r,i)=>"then"===i?null:(null==r[i]&&(r[i]=async function(r){let{method:n,params:o}=function(e,t,r){let i=t,n=e.toString().replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`).toLowerCase();switch(e){case"authorize":{let e=i,{chain:t}=e;if("legacy"===r){switch(t){case"solana:testnet":t="testnet";break;case"solana:devnet":t="devnet";break;case"solana:mainnet":t="mainnet-beta";break;default:t=e.cluster}e.cluster=t,i=e}else{switch(t){case"testnet":case"devnet":t=`solana:${t}`;break;case"mainnet-beta":t="solana:mainnet"}e.chain=t,i=e}}case"reauthorize":{let{auth_token:e,identity:t}=i;e&&("legacy"===r?(n="reauthorize",i={auth_token:e,identity:t}):n="authorize")}}return{method:n,params:i}}(i,r,e),a=await t(n,o);return"authorize"===n&&o.sign_in_payload&&!a.sign_in_result&&(a.sign_in_result=await SD(o.sign_in_payload,a,t)),function(e,t,r){if("getCapabilities"===e)switch(r){case"legacy":{let e=["solana:signTransactions"];return!0===t.supports_clone_authorization&&e.push(SO),{...t,features:e}}case"v1":return{...t,supports_sign_and_send_transactions:!0,supports_clone_authorization:t.features.includes(SO)}}return t}(i,a,e)}),r[i]),defineProperty:()=>!1,deleteProperty:()=>!1})}async function SD(e,t,r){var i;let n=e.domain??window.location.host,o=t.accounts[0].address,a=(i=function(e){let t=`${e.domain} wants you to sign in with your Solana account:
394`;t+=`${e.address}`,e.statement&&(t+=`
395
396${e.statement}`);let r=[];if(e.uri&&r.push(`URI: ${e.uri}`),e.version&&r.push(`Version: ${e.version}`),e.chainId&&r.push(`Chain ID: ${e.chainId}`),e.nonce&&r.push(`Nonce: ${e.nonce}`),e.issuedAt&&r.push(`Issued At: ${e.issuedAt}`),e.expirationTime&&r.push(`Expiration Time: ${e.expirationTime}`),e.notBefore&&r.push(`Not Before: ${e.notBefore}`),e.requestId&&r.push(`Request ID: ${e.requestId}`),e.resources)for(let t of(r.push("Resources:"),e.resources))r.push(`- ${t}`);return r.length&&(t+=`
397
398${r.join("\n")}`),t}({...e,domain:n,address:xJ(xY(o))}),xW().decode(xK().encode(i))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),s=xY((await r("sign_messages",{addresses:[o],payloads:[a]})).signed_payloads[0]),l=xF(s.slice(0,s.length-64)),c=xF(s.slice(s.length-64));return{address:o,signed_message:0==l.length?a:l,signature:c}}async function Sj(e,t,r){let i=function(e){if(e>=0x100000000)throw Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e,!1),new Uint8Array(t)}(t),n=new Uint8Array(12);crypto.getRandomValues(n);let o=await crypto.subtle.encrypt(Sz(i,n),r,xK().encode(e)),a=new Uint8Array(i.byteLength+n.byteLength+o.byteLength);return a.set(new Uint8Array(i),0),a.set(new Uint8Array(n),i.byteLength),a.set(new Uint8Array(o),i.byteLength+n.byteLength),a}async function SR(e,t){var r;let i,n=e.slice(0,4),o=e.slice(4,16),a=e.slice(16);return r=new Uint8Array(await crypto.subtle.decrypt(Sz(n,o),t,a)),xz({read:(e,t)=>[(i||=new xH).decode(e.slice(t)).replace(/\u0000/g,""),e.length]}).decode(r)}function Sz(e,t){return{additionalData:e,iv:t,name:"AES-GCM",tagLength:128}}async function SL(){return await crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"])}async function SB(){return await crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"])}function SU(e){if(e<49152||e>65535)throw new SI("ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",`Association port number must be between 49152 and 65535. ${e} given.`,{port:e});return e}function Sq(e){return e.replace(/[/+=]/g,e=>({"/":"_","+":"-","=":"."})[e])}function SW(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function SH(e,t){let r=null;if(t){try{r=new URL(t)}catch{}if(r?.protocol!=="https:")throw new SI(Sw,"Base URLs supplied by wallets must be valid `https` URLs")}return r||=new URL("solana-wallet:/"),new URL(e.startsWith("/")?e:[...SW(r.pathname),...SW(e)].join("/"),r)}async function SV(e,t,r,i=["v1"]){let n=SU(t),o=xG(await crypto.subtle.exportKey("raw",e)),a=SH("v1/associate/local",r);return a.searchParams.set("association",Sq(o)),a.searchParams.set("port",`${n}
398`),i.forEach(e=>{a.searchParams.set("v",e)}),a}async function SK(e,t,r,i,n,o=["v1"]){let a=xG(await crypto.subtle.exportKey("raw",e)),s=SH(`v1/associate/${t}/nostr`,n);return s.searchParams.set("association",Sq(a)),s.searchParams.set("relay",r),s.searchParams.set("pubkey",i),o.forEach(e=>{s.searchParams.set("v",e)}),s}async function SF(e,t){return Sj(JSON.stringify(e),e.id,t)}async function SY(e,t){let r=JSON.parse(await SR(e,t));if(Object.hasOwnProperty.call(r,"error"))throw new SM(r.id,r.error.code,r.error.message);return r}async function SJ(e,t,r){let[i,n]=await Promise.all([crypto.subtle.exportKey("raw",t),crypto.subtle.importKey("raw",e.slice(0,65),{name:"ECDH",namedCurve:"P-256"},!1,[])]),o=await crypto.subtle.deriveBits({name:"ECDH",public:n},r,256),a=await crypto.subtle.importKey("raw",o,"HKDF",!1,["deriveKey"]);return await crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(i),info:new Uint8Array},a,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"])}async function SG(e,t){let r=JSON.parse(await SR(e,t)),i="legacy";if(Object.hasOwnProperty.call(r,"v"))switch(r.v){case 1:case"1":case"v1":i="v1";break;case"legacy":i="legacy";break;default:throw new SI("ERROR_INVALID_PROTOCOL_VERSION",`Unknown/unsupported protocol version: ${r.v}`)}return{protocol_version:i}}let SQ=null;async function SZ(e){if("https:"===e.protocol)window.location.assign(e);else try{switch(1*(-1===navigator.userAgent.indexOf("Firefox/"))){case 0:null!=SQ&&SQ.isConnected||((SQ=document.createElement("iframe")).style.display="none",document.body.appendChild(SQ)),SQ.contentWindow.location.href=e.toString();break;case 1:{let t=new Promise((e,t)=>{function r(){clearTimeout(n),window.removeEventListener("blur",i)}function i(){r(),e()}window.addEventListener("blur",i);let n=setTimeout(()=>{r(),t()},3e3)});window.location.assign(e),await t}}}catch{throw new SI("ERROR_WALLET_NOT_FOUND","Found no installed wallet that supports the mobile wallet protocol.")}}async function SX(e,t){let r=SU(49152+Math.floor(16384*Math.random()));return await SZ(await SV(e,r,t)),r}async function S$(e,t,r,i,n){let o=await SK(e,t,r,i,n);return"local"==t&&await SZ(o),o}let S0=[150,150,200,500,500,750,750,1e3];function S1(){if("u"<typeof window||!0!==window.isSecureContext)throw new SI("ERROR_SECURE_CONTEXT_REQUIRED","The mobile wallet adapter protocol must be used in a secure context (`https`).")}function S2(e){let t;try{t=new URL(e)}catch{throw new SI(Sw,"Invalid base URL supplied by wallet")}if("https:"!==t.protocol)throw new SI(Sw,"Base URLs supplied by wallets must be valid `https` URLs")}function S3(e){return new DataView(e).getUint32(0,!1)}async function S4(e){let t,r,i,n;S1();let o=await SL(),a=`ws://localhost:${await SX(o.publicKey,e?.baseUri)}/solana-wallet`,s=(n=[...S0],()=>n.length>1?n.shift():n[0]),l=1,c=0,d={__type:"disconnected"},u=!1;return{close:()=>{r.close(),i()},wallet:new Promise((e,n)=>{let h,p,f={},g=async()=>{if("connecting"!==d.__type)return void console.warn(`Expected adapter state to be \`connecting\` at the moment the websocket opens. Got \`${d.__type}\`.`);r.removeEventListener("open",g);let{associationKeypair:e}=d,t=await SB();r.send(await SC(t.publicKey,e.privateKey)),d={__type:"hello_req_sent",associationPublicKey:e.publicKey,ecdhPrivateKey:t.privateKey}},m=e=>{e.wasClean?d={__type:"disconnected"}:n(new SI(Sx,`The wallet session dropped unexpectedly (${e.code}: ${e.reason}).`,{closeEvent:e})),h()},y=async e=>{h(),Date.now()-t>=3e4?n(new SI(SS,`Failed to connect to the wallet websocket at ${a}.`)):(await new Promise(e=>{let t=s();p=window.setTimeout(e,t)}),v())},b=async t=>{let i=await t.data.arrayBuffer();switch(d.__type){case"connecting":{if(0!==i.byteLength)return void n(new SI(SE,"Encountered unexpected message while connecting"));let e=await SB();r.send(await SC(e.publicKey,o.privateKey)),d={__type:"hello_req_sent",associationPublicKey:o.publicKey,ecdhPrivateKey:e.privateKey};break}case"connected":try{let e=S3(i.slice(0,4));if(e!==c+1)throw new SI(SE,"Encrypted message has invalid sequence number");c=e;let t=await SY(i,d.sharedSecret),r=f[t.id];delete f[t.id],r.resolve(t.result)}catch(e){if(e instanceof SM){let t=f[e.jsonRpcMessageId];delete f[e.jsonRpcMessageId],t.reject(e)}else throw e}break;case"hello_req_sent":{if(0===i.byteLength){let e=await SB();r.send(await SC(e.publicKey,o.privateKey)),d={__type:"hello_req_sent",associationPublicKey:o.publicKey,ecdhPrivateKey:e.privateKey};break}let t=await SJ(i,d.associationPublicKey,d.ecdhPrivateKey),a=i.slice(65),s=0!==a.byteLength?await (async()=>{let e=S3(a.slice(0,4));
398return e!==c+1?(n(new SI(SE,"Encrypted message has invalid sequence number")),r.close(),{protocol_version:"v1"}):(c=e,SG(a,t))})():{protocol_version:"legacy"};d={__type:"connected",sharedSecret:t,sessionProperties:s};let h=SP(s.protocol_version,async(e,i)=>{let n=l++;return r.send(await SF({id:n,jsonrpc:"2.0",method:e,params:i??{}},t)),new Promise((t,r)=>{f[n]={resolve(i){switch(e){case"authorize":case"reauthorize":{let{wallet_uri_base:e}=i;if(null!=e)try{S2(e)}catch(e){r(e);return}}}t(i)},reject:r}})});u=!0;try{e(h)}catch(e){n(e)}}}};i=()=>{r.removeEventListener("message",b),h(),u||n(new SI(Sx,"The wallet session was closed before connection.",{closeEvent:new CloseEvent("socket was closed before connection")}))};let v=()=>{h&&h(),d={__type:"connecting",associationKeypair:o},void 0===t&&(t=Date.now()),(r=new WebSocket(a,["com.solana.mobilewalletadapter.v1"])).addEventListener("open",g),r.addEventListener("close",m),r.addEventListener("error",y),r.addEventListener("message",b),h=()=>{window.clearTimeout(p),r.removeEventListener("open",g),r.removeEventListener("close",m),r.removeEventListener("error",y),r.removeEventListener("message",b)}};v()})}}async function S5(e){let t,r,i,n;S1();let o=await SL(),{privateKey:a,publicKey:s}={privateKey:i=Sb.utils.randomSecretKey(),publicKey:(0,x$.bytesToHex)(Sb.getPublicKey(i))},l=await S$(o.publicKey,e.connectionType,e.relayDomain,s,e.baseUri),c=await ST(o.publicKey),d=crypto.randomUUID(),u=`wss://${e.relayDomain}`,h=Date.now(),p=(n=[...S0],()=>n.length>1?n.shift():n[0]),f=1,g=0,m={__type:"disconnected"},y=!1,b=(e,r)=>{let i=S_(20012,e,[["d",c],["p",r]],a);t.send(JSON.stringify(["EVENT",i]))},v=()=>{if("connected"==m.__type||"hello_req_sent"==m.__type){let e=S_(20012,"",[["d",c],["p",m.walletNostrPubkey],["msg","SESSION_END"]],a);t.send(JSON.stringify(["EVENT",e]))}t.close()},w={close:()=>{v(),r()},wallet:new Promise((i,n)=>{let l,w,x={},S=async()=>{"connecting"!==m.__type?console.warn(`Expected adapter state to be \`connecting\` at the moment the websocket opens. Got \`${m.__type}\`.`):(t.removeEventListener("open",S),t.send(JSON.stringify(["REQ",d,{kinds:[20012],"#d":[c]}])),m={__type:"subscribed",dappNostrPrivateKey:a,dappNostrPubkey:s,sessionIdentifier:c})},A=e=>{e.wasClean?m={__type:"disconnected"}:n(new SI(Sx,`The Nostr subscription dropped unexpectedly (${e.code}: ${e.reason}).`,{closeEvent:e})),l()},k=async()=>{l(),Date.now()-h>=3e4?n(new SI(SS,`Failed to connect to the Nostr relay at ${e.relayDomain}.`)):(await new Promise(e=>{let t=p();w=window.setTimeout(e,t)}),I())},E=async e=>{let t;try{if(t=JSON.parse(e.data),!Array.isArray(t))throw Error()}catch{n(new SI(SE,"Invalid Nostr message received: "+e.data)),v();return}let r=t[0];if("CLOSED"===r)l();else if("EVENT"===r){let e=t[2];if(!e||!function(e){if(SN(e.pubkey,e.created_at,e.kind,e.tags,e.content)!==e.id)return!1;try{return Sb.verify((0,x$.hexToBytes)(e.sig),(0,x$.hexToBytes)(e.id),(0,x$.hexToBytes)(e.pubkey))}catch{return!1}}(e))return;switch(m.__type){case"subscribed":{if(0!==e.content.length){n(new SI(SE,"Encountered unexpected message while awaiting reflection")),v();return}let t=e.pubkey,r=await SB();b(xF(await SC(r.publicKey,o.privateKey)),t),m={__type:"hello_req_sent",associationPublicKey:o.publicKey,ecdhPrivateKey:r.privateKey,walletNostrPubkey:t};break}case"hello_req_sent":{if(e.pubkey!==m.walletNostrPubkey||""===e.content)return;let t=xY(e.content).buffer,r=await SJ(t,m.associationPublicKey,m.ecdhPrivateKey),o=t.slice(65),a=0!==o.byteLength?await (async()=>{let e=S3(o.slice(0,4));return e!==g+1?(n(new SI(SE,"Encrypted message has invalid sequence number")),v(),{protocol_version:"v1"}):(g=e,SG(o,r))})():{protocol_version:"legacy"};m={__type:"connected",sharedSecret:r,sessionProperties:a,walletNostrPubkey:m.walletNostrPubkey};
398let s=SP(a.protocol_version,async(e,t)=>{let i=f++;return b(xF(await SF({id:i,jsonrpc:"2.0",method:e,params:t??{}},r)),m.walletNostrPubkey),new Promise((t,r)=>{x[i]={resolve(i){switch(e){case"authorize":case"reauthorize":{let{wallet_uri_base:e}=i;if(null!=e)try{S2(e)}catch(e){r(e);return}}}t(i)},reject:r}})});y=!0;try{i(s)}catch(e){n(e)}break}case"connected":if(e.pubkey!==m.walletNostrPubkey||""===e.content)return;try{let t=xY(e.content).buffer,r=S3(t.slice(0,4));if(r!==g+1)throw new SI(SE,"Encrypted message has invalid sequence number");g=r;let i=await SY(t,m.sharedSecret),n=x[i.id];delete x[i.id],n.resolve(i.result)}catch(e){if(e instanceof SM){let t=x[e.jsonRpcMessageId];delete x[e.jsonRpcMessageId],t.reject(e)}else throw e}}}};r=()=>{t.removeEventListener("message",E),l(),y||n(new SI(Sx,"The wallet session was closed before connection.",{closeEvent:new CloseEvent("socket was closed before connection")}))};let I=()=>{l&&l(),m={__type:"connecting",associationKeypair:o},(t=new WebSocket(u)).addEventListener("open",S),t.addEventListener("close",A),t.addEventListener("error",k),t.addEventListener("message",E),l=()=>{window.clearTimeout(w),t.removeEventListener("open",S),t.removeEventListener("close",A),t.removeEventListener("error",k),t.removeEventListener("message",E)}};I()})};return"local"==e.connectionType?w:{...w,associationUrl:l}}let S8="standard:connect",S6="standard:disconnect",S7="standard:events";e.i(514960);let S9="SolanaMobileWalletAdapterDefaultAuthorizationCache",Ae=`
399<div class="mobile-wallet-adapter-embedded-modal-container" role="dialog" aria-modal="true" aria-labelledby="modal-title">
400    <div data-modal-close style="position: absolute; width: 100%; height: 100%;"></div>
401	<div class="mobile-wallet-adapter-embedded-modal-card">
402		<div>
403			<button data-modal-close class="mobile-wallet-adapter-embedded-modal-close">
404				<svg width="14" height="14">
405					<path d="M 6.7125,8.3036995 1.9082,13.108199 c -0.2113,0.2112 -0.4765,0.3168 -0.7957,0.3168 -0.3192,0 -0.5844,-0.1056 -0.7958,-0.3168 C 0.1056,12.896899 0,12.631699 0,12.312499 c 0,-0.3192 0.1056,-0.5844 0.3167,-0.7958 L 5.1212,6.7124995 0.3167,1.9082 C 0.1056,1.6969 0,1.4317 0,1.1125 0,0.7933 0.1056,0.5281 0.3167,0.3167 0.5281,0.1056 0.7933,0 1.1125,0 1.4317,0 1.6969,0.1056 1.9082,0.3167 L 6.7125,5.1212 11.5167,0.3167 C 11.7281,0.1056 11.9933,0 12.3125,0 c 0.3192,0 0.5844,0.1056 0.7957,0.3167 0.2112,0.2114 0.3168,0.4766 0.3168,0.7958 0,0.3192 -0.1056,0.5844 -0.3168,0.7957 L 8.3037001,6.7124995 13.1082,11.516699 c 0.2112,0.2114 0.3168,0.4766 0.3168,0.7958 0,0.3192 -0.1056,0.5844 -0.3168,0.7957 -0.2113,0.2112 -0.4765,0.3168 -0.7957,0.3168 -0.3192,0 -0.5844,-0.1056 -0.7958,-0.3168 z" />
406				</svg>
407			</button>
408		</div>
409		<div class="mobile-wallet-adapter-embedded-modal-content"></div>
410	</div>
411</div>
412`,At=`
413.mobile-wallet-adapter-embedded-modal-container {
414    display: flex; /* Use flexbox to center content */
415    justify-content: center; /* Center horizontally */
416    align-items: center; /* Center vertically */
417    position: fixed; /* Stay in place */
418    z-index: 2147483647; /* Sit on top */
419    left: 0;
420    top: 0;
421    width: 100%; /* Full width */
422    height: 100%; /* Full height */
423    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
424    overflow-y: auto; /* enable scrolling */
425}
426
427.mobile-wallet-adapter-embedded-modal-card {
428    display: flex;
429    flex-direction: column;
430    margin: auto 20px;
431    max-width: 780px;
432    padding: 20px;
433    border-radius: 24px;
434    background: #ffffff;
435    font-family: "Inter Tight", "PT Sans", Calibri, sans-serif;
436    transform: translateY(-200%);
437    animation: slide-in 0.5s forwards;
438}
439
440@keyframes slide-in {
441    100% { transform: translateY(0%); }
442}
443
444.mobile-wallet-adapter-embedded-modal-close {
445    display: flex;
446    align-items: center;
447    justify-content: center;
448    width: 32px;
449    height: 32px;
450    cursor: pointer;
451    background: #e4e9e9;
452    border: none;
453    border-radius: 50%;
454}
455
456.mobile-wallet-adapter-embedded-modal-close:focus-visible {
457    outline-color: red;
458}
459
460.mobile-wallet-adapter-embedded-modal-close svg {
461    fill: #546266;
462    transition: fill 200ms ease 0s;
463}
464
465.mobile-wallet-adapter-embedded-modal-close:hover svg {
466    fill: #fff;
467}
468`,Ar=`
469<link rel="preconnect" href="https://fonts.googleapis.com">
470<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
471<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
472`;var Ai=class{#e=null;#t={};#r=!1;dom=null;constructor(){this.init=this.init.bind(this),this.#e=document.getElementById("mobile-wallet-adapter-embedded-root-ui")}async init(){console.log("Injecting modal"),this.#i()}open=()=>{console.debug("Modal open"),this.#n(),this.#e&&(this.#e.style.display="flex")};close=e=>{console.debug("Modal close"),this.#o(),this.#e&&(this.#e.style.display="none"),this.#t.close?.forEach(t=>t(e))};addEventListener(e,t){return this.#t[e]?.push(t)||(this.#t[e]=[t]),()=>this.removeEventListener(e,t)}removeEventListener(e,t){this.#t[e]=this.#t[e]?.filter(e=>t!==e)}#i(){if(document.getElementById("mobile-wallet-adapter-embedded-root-ui")){this.#e||(this.#e=document.getElementById("mobile-wallet-adapter-embedded-root-ui"));return}this.#e=document.createElement("div"),this.#e.id="mobile-wallet-adapter-embedded-root-ui",this.#e.innerHTML=Ae,this.#e.style.display="none";let e=this.#e.querySelector(".mobile-wallet-adapter-embedded-modal-content");e&&(e.innerHTML=this.contentHtml);let t=document.createElement("style");t.id="mobile-wallet-adapter-embedded-modal-styles",t.textContent=At+this.contentStyles;let r=document.createElement("div");r.innerHTML=Ar,this.dom=r.attachShadow({mode:"closed"}),this.dom.appendChild(t),this.dom.appendChild(this.#e),document.body.appendChild(r)}#n(){this.#e&&!this.#r&&([...this.#e.querySelectorAll("[data-modal-close]")].forEach(e=>e?.addEventListener("click",this.close)),window.addEventListener("load",this.close),document.addEventListener("keydown",this.#a),this.#r=!0)}#o(){!this.#r||(window.removeEventListener("load",this.close),document.removeEventListener("keydown",this.#a),this.#e&&([...this.#e.querySelectorAll("[data-modal-close]")].forEach(e=>e?.removeEventListener("click",this.close)),this.#r=!1))}#a=e=>{"Escape"===e.key&&this.close(e)}},An=class extends Ai{contentStyles=Aa;contentHtml=Ao;initWithError(e){super.init(),this.populateError(e)}populateError(e){let t=this.dom?.getElementById("mobile-wallet-adapter-error-message"),r=this.dom?.getElementById("mobile-wallet-adapter-error-action");if(t){if("SolanaMobileWalletAdapterError"===e.name)switch(e.code){case"ERROR_WALLET_NOT_FOUND":t.innerHTML="To use mobile wallet adapter, you must have a compatible mobile wallet application installed on your device.",r&&r.addEventListener("click",()=>{window.location.href="https://solanamobile.com/wallets"});return;case"ERROR_BROWSER_NOT_SUPPORTED":t.innerHTML="This browser appears to be incompatible with mobile wallet adapter. Open this page in a compatible mobile browser app and try again.",r&&(r.style.display="none");return}t.innerHTML=`An unexpected error occurred: ${e.message}`}else console.log("Failed to locate error dialog element")}};let Ao=`
473<svg class="mobile-wallet-adapter-embedded-modal-error-icon" xmlns="http://www.w3.org/2000/svg" height="50px" viewBox="0 -960 960 960" width="50px" fill="#000000"><path d="M 280,-80 Q 197,-80 138.5,-138.5 80,-197 80,-280 80,-363 138.5,-421.5 197,-480 280,-480 q 83,0 141.5,58.5 58.5,58.5 58.5,141.5 0,83 -58.5,141.5 Q 363,-80 280,-80 Z M 824,-120 568,-376 Q 556,-389 542.5,-402.5 529,-416 516,-428 q 38,-24 61,-64 23,-40 23,-88 0,-75 -52.5,-127.5 Q 495,-760 420,-760 345,-760 292.5,-707.5 240,-655 240,-580 q 0,6 0.5,11.5 0.5,5.5 1.5,11.5 -18,2 -39.5,8 -21.5,6 -38.5,14 -2,-11 -3,-22 -1,-11 -1,-23 0,-109 75.5,-184.5 Q 311,-840 420,-840 q 109,0 184.5,75.5 75.5,75.5 75.5,184.5 0,43 -13.5,81.5 Q 653,-460 629,-428 l 251,252 z m -615,-61 71,-71 70,71 29,-28 -71,-71 71,-71 -28,-28 -71,71 -71,-71 -28,28 71,71 -71,71 z"/></svg>
474<div class="mobile-wallet-adapter-embedded-modal-title">We can't find a wallet.</div>
475<div id="mobile-wallet-adapter-error-message" class="mobile-wallet-adapter-embedded-modal-subtitle"></div>
476<div>
477    <button data-error-action id="mobile-wallet-adapter-error-action" class="mobile-wallet-adapter-embedded-modal-error-action">
478        Find a wallet
479    </button>
480</div>
481`,Aa=`
482.mobile-wallet-adapter-embedded-modal-content {
483    text-align: center;
484}
485
486.mobile-wallet-adapter-embedded-modal-error-icon {
487    margin-top: 24px;
488}
489
490.mobile-wallet-adapter-embedded-modal-title {
491    margin: 18px 100px auto 100px;
492    color: #000000;
493    font-size: 2.75em;
494    font-weight: 600;
495}
496
497.mobile-wallet-adapter-embedded-modal-subtitle {
498    margin: 30px 60px 40px 60px;
499    color: #000000;
500    font-size: 1.25em;
501    font-weight: 400;
502}
503
504.mobile-wallet-adapter-embedded-modal-error-action {
505    display: block;
506    width: 100%;
507    height: 56px;
508    /*margin-top: 40px;*/
509    font-size: 1.25em;
510    /*line-height: 24px;*/
511    /*letter-spacing: -1%;*/
512    background: #000000;
513    color: #FFFFFF;
514    border-radius: 18px;
515}
516
517/* Smaller screens */
518@media all and (max-width: 600px) {
519    .mobile-wallet-adapter-embedded-modal-title {
520        font-size: 1.5em;
521        margin-right: 12px;
522        margin-left: 12px;
523    }
524    .mobile-wallet-adapter-embedded-modal-subtitle {
525        margin-right: 12px;
526        margin-left: 12px;
527    }
528}
529`;async function As(){if("u">typeof window){let e=window.navigator.userAgent.toLowerCase(),t=new An;e.includes("wv")?t.initWithError({name:"SolanaMobileWalletAdapterError",code:"ERROR_BROWSER_NOT_SUPPORTED",message:""}):t.initWithError({name:"SolanaMobileWalletAdapterError",code:"ERROR_WALLET_NOT_FOUND",message:""}),t.open()}}var Al=class extends Ai{contentStyles=Ad;contentHtml=Ac;initWithCallback(e){super.init(),this.#s(e)}#s(e){let t=this.dom?.getElementById("mobile-wallet-adapter-launch-action"),r=async()=>{t?.removeEventListener("click",r),this.close(),e()};t?.addEventListener("click",r)}};let Ac=`
530<svg class="mobile-wallet-adapter-embedded-modal-launch-icon" width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
531    <path d="M21.6 48C7.2 48 0 40.8 0 26.4V21.6C0 7.2 7.2 0 21.6 0H26.4C40.8 0 48 7.2 48 21.6V26.4C48 40.8 40.8 48 26.4 48H21.6Z" fill="#15994E"/>
532    <mask id="mask0_189_522" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="8" y="8" width="32" height="32">
533        <rect x="8" y="8" width="32" height="32" fill="#D9D9D9"/>
534    </mask>
535    <g mask="url(#mask0_189_522)">
536        <mask id="mask1_189_522" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="8" y="8" width="32" height="32">
537            <rect x="8" y="8" width="32" height="32" fill="#D9D9D9"/>
538        </mask>
539        <g mask="url(#mask1_189_522)">
540            <path d="M22.1092 26.1208L19.4498 23.4615C19.1736 23.1851 18.8253 23.0468 18.4048 23.0468C17.9846 23.0468 17.6363 23.1851 17.3598 23.4615C17.0836 23.7377 16.9468 24.0861 16.9495 24.5065C16.9522 24.9267 17.0916 25.275 17.3678 25.5512L21.0405 29.2238C21.3463 29.5276 21.7031 29.6795 22.1108 29.6795C22.5184 29.6795 22.8742 29.5276 23.1782 29.2238L30.5918 21.8098C30.8683 21.5336 31.0065 21.1867 31.0065 20.7692C31.0065 20.3514 30.8683 20.0044 30.5918 19.7282C30.3156 19.4517 29.9673 19.3135 29.5468 19.3135C29.1266 19.3135 28.7784 19.4517 28.5022 19.7282L22.1092 26.1208ZM23.9998 37.6042C22.113 37.6042 20.3425 37.2473 18.6885 36.5335C17.0343 35.8197 15.5954 34.8512 14.3718 33.6278C13.1485 32.4043 12.18 30.9654 11.4662 29.3112C10.7524 27.6572 10.3955 25.8867 10.3955 23.9998C10.3955 22.113 10.7524 20.3425 11.4662 18.6885C12.18 17.0343 13.1485 15.5954 14.3718 14.3718C15.5954 13.1485 17.0343 12.18 18.6885 11.4662C20.3425 10.7524 22.113 10.3955 23.9998 10.3955C25.8867 10.3955 27.6572 10.7524 29.3112 11.4662C30.9654 12.18 32.4043 13.1485 33.6278 14.3718C34.8512 15.5954 35.8197 17.0343 36.5335 18.6885C37.2473 20.3425 37.6042 22.113 37.6042 23.9998C37.6042 25.8867 37.2473 27.6572 36.5335 29.3112C35.8197 30.9654 34.8512 32.4043 33.6278 33.6278C32.4043 34.8512 30.9654 35.8197 29.3112 36.5335C27.6572 37.2473 25.8867 37.6042 23.9998 37.6042Z" fill="white"/>
541        </g>
542    </g>
543</svg>
544<div class="mobile-wallet-adapter-embedded-modal-title">Ready to connect!</div>
545<div>
546    <button data-modal-action id="mobile-wallet-adapter-launch-action" class="mobile-wallet-adapter-embedded-modal-launch-action">
547        Connect Wallet
548    </button>
549</div>
550`,Ad=`
551.mobile-wallet-adapter-embedded-modal-close {
552    display: none;
553}
554.mobile-wallet-adapter-embedded-modal-content {
555    text-align: center;
556    min-width: 300px;
557}
558.mobile-wallet-adapter-embedded-modal-launch-icon {
559    margin-top: 24px;
560}
561.mobile-wallet-adapter-embedded-modal-title {
562    margin: 18px 100px 30px 100px;
563    color: #000000;
564    font-size: 2.75em;
565    font-weight: 600;
566}
567.mobile-wallet-adapter-embedded-modal-launch-action {
568    display: block;
569    width: 100%;
570    height: 56px;
571    font-size: 1.25em;
572    background: #000000;
573    color: #FFFFFF;
574    border-radius: 18px;
575}
576/* Smaller screens */
577@media all and (max-width: 600px) {
578    .mobile-wallet-adapter-embedded-modal-title {
579        font-size: 1.5em;
580        margin-right: 12px;
581        margin-left: 12px;
582    }
583}
584`;var Au=class extends Ai{contentStyles=Ap;get contentHtml(){let e=!function(){let e="u">typeof document&&document.referrer.startsWith("android-app://");if("u"<typeof window)return e;let t=window.matchMedia("(display-mode: standalone)").matches,r=window.matchMedia("(display-mode: fullscreen)").matches,i=window.matchMedia("(display-mode: minimal-ui)").matches;return e||t||r||i}()?"Tap the lock or settings icon in the address bar to open site settings":"Long press the app icon on your home screen to open site settings";return Ah.replace("{{PERMISSION_INSTRUCTION_DETAIL}}",e)}
584async init(){super.init(),this.#s()}#s(){let e=this.dom?.getElementById("mobile-wallet-adapter-launch-action"),t=async r=>{e?.removeEventListener("click",t),this.close(r)};e?.addEventListener("click",t)}};let Ah=`
585<div class="mobile-wallet-adapter-embedded-modal-header">
586    Local Wallet Connection
587</div>
588<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
589    <path d="M21.6 48C7.2 48 0 40.8 0 26.4V21.6C0 7.2 7.2 0 21.6 0H26.4C40.8 0 48 7.2 48 21.6V26.4C48 40.8 40.8 48 26.4 48H21.6Z" fill="#ED1515"/>
590    <mask id="mask0_147_1364" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="8" y="8" width="32" height="32">
591        <rect x="8" y="8" width="32" height="32" fill="#D9D9D9"/>
592    </mask>
593    <g mask="url(#mask0_147_1364)">
594        <path d="M20.1398 36.2705C19.7363 36.2705 19.3508 36.1945 18.9835 36.0425C18.6162 35.8907 18.2916 35.674 18.0098 35.3922L12.6072 29.9895C12.3254 29.7077 12.1086 29.3832 11.9568 29.0158C11.8048 28.6485 11.7288 28.2631 11.7288 27.8595V20.1395C11.7288 19.736 11.8048 19.3505 11.9568 18.9832C12.1086 18.6158 12.3254 18.2913 12.6072 18.0095L18.0098 12.6068C18.2916 12.3251 18.6162 12.1083 18.9835 11.9565C19.3508 11.8045 19.7363 11.7285 20.1398 11.7285H27.8598C28.2634 11.7285 28.6488 11.8045 29.0162 11.9565C29.3835 12.1083 29.708 12.3251 29.9898 12.6068L35.3925 18.0095C35.6743 18.2913 35.891 18.6158 36.0428 18.9832C36.1948 19.3505 36.2708 19.736 36.2708 20.1395V27.8595C36.2708 28.2631 36.1948 28.6485 36.0428 29.0158C35.891 29.3832 35.6743 29.7077 35.3925 29.9895L29.9898 35.3922C29.708 35.674 29.3835 35.8907 29.0162 36.0425C28.6488 36.1945 28.2634 36.2705 27.8598 36.2705H20.1398ZM20.1732 33.2372H27.8265L33.2375 27.8262V20.1728L27.8265 14.7618H20.1732L14.7622 20.1728V27.8262L20.1732 33.2372ZM23.9998 25.9538L26.7868 28.7408C27.0473 29.0013 27.3729 29.1302 27.7638 29.1275C28.1549 29.1248 28.4807 28.9933 28.7412 28.7328C29.0016 28.4724 29.1318 28.1466 29.1318 27.7555C29.1318 27.3646 29.0016 27.039 28.7412 26.7785L25.9542 23.9995L28.7412 21.2125C29.0016 20.9521 29.1318 20.6264 29.1318 20.2355C29.1318 19.8444 29.0016 19.5186 28.7412 19.2582C28.4807 18.9977 28.1549 18.8675 27.7638 18.8675C27.3729 18.8675 27.0473 18.9977 26.7868 19.2582L23.9998 22.0452L21.2128 19.2582C20.9524 18.9977 20.628 18.8675 20.2398 18.8675C19.8514 18.8675 19.5269 18.9977 19.2665 19.2582C19.006 19.5186 18.8758 19.8444 18.8758 20.2355C18.8758 20.6264 19.006 20.9521 19.2665 21.2125L22.0455 23.9995L19.2585 26.7865C18.998 27.047 18.8692 27.3713 18.8718 27.7595C18.8745 28.148 19.006 28.4724 19.2665 28.7328C19.5269 28.9933 19.8527 29.1235 20.2438 29.1235C20.6347 29.1235 20.9604 28.9933 21.2208 28.7328L23.9998 25.9538Z" fill="black"/>
595    </g>
596</svg>
597<div class="mobile-wallet-adapter-embedded-modal-title">
598    Your wallet connection is blocked
599</div>
600<div id="mobile-wallet-adapter-local-launch-message" class="mobile-wallet-adapter-embedded-modal-subtitle">
601    Visit site settings in the address bar and allow "Apps on Device".
602</div>
603
604<div class="mobile-wallet-adapter-embedded-modal-divider"><hr></div>
605<div class="mobile-wallet-adapter-embedded-modal-footer">
606    <div class="mobile-wallet-adapter-embedded-modal-details">
607        <!-- Clickable header (label associated with the checkbox) -->
608      	<label for="collapsible-1" class="mobile-wallet-adapter-embedded-modal-details-collapsible-header">
609            <!-- Hidden checkbox to track state -->
610            <input type="checkbox" id="collapsible-1" class="mobile-wallet-adapter-embedded-modal-details-collapsible-input">
611            <span class="mobile-wallet-adapter-embedded-modal-details-collapsible-header-label">
612              See details
613            </span>
614            <svg class="mobile-wallet-adapter-embedded-modal-details-collapsible-header-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
615              <mask id="mask0_147_1382" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
616                <rect width="24" height="24" fill="#D9D9D9"/>
617              </mask>
618              <g mask="url(#mask0_147_1382)">
619                <path d="M11.9999 17.0811C11.8506 17.0811 11.7087 17.0563 11.5741 17.0067C11.4395 16.957 11.3162 16.8762 11.2042 16.7643L6.57924 12.1393C6.36801 11.9281 6.26656 11.66
6197 6.27489 11.3561C6.28322 11.0453 6.39301 10.7842 6.60424 10.573C6.81547 10.3618 7.08069 10.2561 7.39989 10.2561C7.71909 10.2561 7.9843 10.3618 8.19554 10.573L11.9999 14.3773L15.8292 10.548C16.0405 10.3368 16.3015 10.2353 16.6124 10.2436C16.9233 10.252 17.1843 10.3618 17.3955 10.573C17.6068 10.7842 17.7124 11.0494 17.7124 11.3686C17.7124 11.6878 17.6068 11.9531 17.3955 12.1643L12.7955 16.7643C12.6836 16.8762 12.5603 16.957 12.4257 17.0067C12.2911 17.0563 12.1492 17.0811 11.9999 17.0811Z" fill="black"/>
620              </g>
621            </svg>
622      	</label>
623        
624        <!-- Content to show/hide -->
625        <ul class="mobile-wallet-adapter-embedded-modal-details-collapsible-content">
626            <li>{{PERMISSION_INSTRUCTION_DETAIL}}</li>
627            <li>Allow "Apps on Device"</li>
628        </ul>
629    </div>
630</div>
631<div>
632    <button data-modal-action id="mobile-wallet-adapter-launch-action" class="mobile-wallet-adapter-embedded-modal-launch-action">
633        Got it
634    </button>
635</div>
636`,Ap=`
637.mobile-wallet-adapter-embedded-modal-close {
638    display: none;
639}
640.mobile-wallet-adapter-embedded-modal-content {
641    text-align: center;
642}
643.mobile-wallet-adapter-embedded-modal-header {
644    margin: 18px auto 30px auto;
645    color: #7D9093;
646    font-size: 1.0em;
647    font-weight: 500;
648}
649.mobile-wallet-adapter-embedded-modal-title {
650    margin: 18px 100px auto 100px;
651    color: #000000;
652    font-size: 2.75em;
653    font-weight: 600;
654}
655.mobile-wallet-adapter-embedded-modal-subtitle {
656    margin: 12px 60px 30px 60px;
657    color: #7D9093;
658    font-size: 1.25em;
659    font-weight: 400;
660}
661.mobile-wallet-adapter-embedded-modal-details-collapsible-header {
662    display: flex;
663    flex-direction: row;
664  	justify-content: space-between;
665    margin: 10px auto 10px auto;
666    color: #000000;
667    font-size: 1.5em;
668    font-weight: 600;
669    cursor: pointer; /* Show pointer on hover */
670    transition: background 0.2s ease; /* Smooth background change */
671}
672.mobile-wallet-adapter-embedded-modal-details-collapsible-header-icon {
673  	transition: rotate 0.3s ease;
674}
675.mobile-wallet-adapter-embedded-modal-details-collapsible-input {
676  	display: none; /* Hide the checkbox */
677}
678.mobile-wallet-adapter-embedded-modal-details-collapsible-content {
679    margin: 0px auto 40px auto;
680    max-height: 0px; /* Collapse content */
681    overflow: hidden; /* Hide overflow when collapsed */
682    transition: max-height 0.3s ease; /* Smooth transition */
683}
684.mobile-wallet-adapter-embedded-modal-details-collapsible-content li {
685    margin: 20px auto;
686    color: #000000;
687    font-size: 1.25em;
688    font-weight: 400;
689    text-align: left;
690}
691/* When checkbox is checked, show content */
692.mobile-wallet-adapter-embedded-modal-details-collapsible-header:has(> input:checked) ~ .mobile-wallet-adapter-embedded-modal-details-collapsible-content {
693  	max-height: 300px;
694}
695.mobile-wallet-adapter-embedded-modal-details-collapsible-header:has(> input:checked) > .mobile-wallet-adapter-embedded-modal-details-collapsible-header-icon {
696  	rotate: 180deg;
697}
698.mobile-wallet-adapter-embedded-modal-launch-action {
699    display: block;
700    width: 100%;
701    height: 56px;
702    /*margin-top: 40px;*/
703    font-size: 1.25em;
704    /*line-height: 24px;*/
705    /*letter-spacing: -1%;*/
706    background: #000000;
707    color: #FFFFFF;
708    border-radius: 18px;
709}
710/* Smaller screens */
711@media all and (max-width: 600px) {
712    .mobile-wallet-adapter-embedded-modal-title {
713        font-size: 1.75em;
714        margin-right: 12px;
715        margin-left: 12px;
716    }
717    .mobile-wallet-adapter-embedded-modal-subtitle {
718        margin-right: 12px;
719        margin-left: 12px;
720    }
721}
722`;var Af=class extends Ai{contentStyles=Am;contentHtml=Ag;async init(){super.init(),this.#s()}#s(){let e=this.dom?.getElementById("mobile-wallet-adapter-launch-action"),t=async()=>{e?.removeEventListener("click",t);try{await fetch("http://localhost")}catch{}this.close()};e?.addEventListener("click",t)}};let Ag=`
723<div class="mobile-wallet-adapter-embedded-modal-title">Allow connections to your wallet</div>
724<div id="mobile-wallet-adapter-local-launch-message" class="mobile-wallet-adapter-embedded-modal-subtitle">
725    Tap "Allow" on the next screen
726</div>
727<svg class="mobile-wallet-adapter-embedded-modal-permission-prompt-mock" xmlns="http://www.w3.org/2000/svg" width="281" height="83" viewBox="0 0 281 83" fill="none">
728    <rect width="281" height="83" rx="22" fill="#F0F3F5"/>
729    <path d="M254.194 64L252.626 56.657H254.047L254.866 61.452L254.985 62.278H255.02L255.146 61.452L255.993 57.497H257.4L258.254 61.431L258.373 62.278H258.415L258.534 61.431L259.346 56.657H260.718L259.143 64H257.673L256.826 59.961L256.693 59.093H256.651L256.511 59.961L255.664 64H254.194Z" fill="black"/>
730    <path d="M248.837 64.231C248.147 64.231 247.54 64.07 247.017 63.748C246.495 63.426 246.086 62.978 245.792 62.404C245.498 61.83 245.351 61.1673 245.351 60.416V60.241C245.351 59.4897 245.498 58.827 245.792 58.253C246.086 57.679 246.495 57.2333 247.017 56.916C247.54 56.594 248.147 56.433 248.837 56.433C249.528 56.433 250.135 56.594 250.657 56.916C251.18 5
7307.2333 251.588 57.679 251.882 58.253C252.176 58.827 252.323 59.4897 252.323 60.241V60.416C252.323 61.1673 252.176 61.83 251.882 62.404C251.588 62.978 251.18 63.426 250.657 63.748C250.135 64.07 249.528 64.231 248.837 64.231ZM248.837 62.824C249.43 62.824 249.897 62.607 250.237 62.173C250.583 61.7343 250.755 61.1417 250.755 60.395V60.262C250.755 59.5107 250.583 58.918 250.237 58.484C249.897 58.05 249.43 57.833 248.837 57.833C248.249 57.833 247.783 58.05 247.437 58.484C247.092 58.918 246.919 59.5107 246.919 60.262V60.395C246.919 61.1417 247.092 61.7343 247.437 62.173C247.783 62.607 248.249 62.824 248.837 62.824Z" fill="black"/>
731    <path d="M242.298 64.231C241.467 64.231 240.814 63.993 240.338 63.517C239.866 63.0364 239.631 62.3737 239.631 61.529V53.78H241.178V61.389C241.178 62.3317 241.591 62.803 242.417 62.803C242.65 62.803 242.865 62.7587 243.061 62.67C243.257 62.5814 243.464 62.4367 243.684 62.236L244.538 63.377C244.225 63.6664 243.884 63.881 243.516 64.021C243.152 64.161 242.746 64.231 242.298 64.231ZM237.51 55.061V53.78H240.611V55.061H237.51Z" fill="black"/>
732    <path d="M234.463 64.231C233.633 64.231 232.979 63.993 232.503 63.517C232.032 63.0364 231.796 62.3737 231.796 61.529V53.78H233.343V61.389C233.343 62.3317 233.756 62.803 234.582 62.803C234.816 62.803 235.03 62.7587 235.226 62.67C235.422 62.5814 235.63 62.4367 235.849 62.236L236.703 63.377C236.391 63.6664 236.05 63.881 235.681 64.021C235.317 64.161 234.911 64.231 234.463 64.231ZM229.675 55.061V53.78H232.776V55.061H229.675Z" fill="black"/>
733    <path d="M221.442 64L224.557 53.976H226.132L229.233 64H227.581L225.642 56.972L225.341 55.761H225.299L225.005 56.972L223.073 64H221.442ZM222.835 61.634L223.255 60.29H227.371L227.805 61.634H222.835Z" fill="black"/>
734    <path d="M178.261 64L175.034 60.066V60.024L178.121 56.657H180.011L176.504 60.423V59.632L180.165 64H178.261ZM173.543 64V53.78H175.097V64H173.543Z" fill="#7D9093" fill-opacity="0.5"/>
735    <path d="M169.306 64.224C168.588 64.224 167.958 64.0653 167.416 63.748C166.88 63.426 166.462 62.9803 166.163 62.411C165.865 61.837 165.715 61.1673 165.715 60.402V60.248C165.715 59.4873 165.862 58.8223 166.156 58.253C166.45 57.679 166.863 57.2333 167.395 56.916C167.927 56.594 168.546 56.433 169.25 56.433C169.978 56.433 170.59 56.6056 171.084 56.951C171.579 57.2917 171.955 57.777 172.211 58.407L170.874 58.995C170.72 58.6123 170.508 58.323 170.237 58.127C169.967 57.9263 169.633 57.826 169.236 57.826C168.63 57.826 168.149 58.0383 167.794 58.463C167.444 58.883 167.269 59.4616 167.269 60.199V60.465C167.269 61.1837 167.454 61.7577 167.822 62.187C168.196 62.6163 168.69 62.831 169.306 62.831C169.712 62.831 170.06 62.733 170.349 62.537C170.639 62.341 170.877 62.0423 171.063 61.641L172.379 62.285C172.188 62.6957 171.941 63.0457 171.637 63.335C171.334 63.6243 170.986 63.846 170.594 64C170.202 64.1493 169.773 64.224 169.306 64.224Z" fill="#7D9093" fill-opacity="0.5"/>
736    <path d="M161.003 64.231C160.312 64.231 159.706 64.07 159.183 63.748C158.66 63.426 158.252 62.978 157.958 62.404C157.664 61.83 157.517 61.1673 157.517 60.416V60.241C157.517 59.4897 157.664 58.827 157.958 58.253C158.252 57.679 158.66 57.2333 159.183 56.916C159.706 56.594 160.312 56.433 161.003 56.433C161.694 56.433 162.3 56.594 162.823 56.916C163.346 57.2333 163.754 57.679 164.048 58.253C164.342 58.827 164.489 59.4897 164.489 60.241V60.416C164.489 61.1673 164.342 61.83 164.048 62.404C163.754 62.978 163.346 63.426 162.823 63.748C162.3 64.07 161.694 64.231 161.003 64.231ZM161.003 62.824C161.596 62.824 162.062 62.607 162.403 62.173C162.748 61.7343 162.921 61.1417 162.921 60.395V60.262C162.921 59.5107 162.748 58.918 162.403 58.484C162.062 58.05 161.596 57.833 161.003 57.833C160.415 57.833 159.948 58.05 159.603 58.484C159.258 58.918 159.085 59.5107 159.085 60.262V60.395C159.085 61.1417 159.258 61.7343 159.603 62.173C159.948 62.607 160.415 62.824 161.003 62.824Z" fill="#7D9093" fill-opacity="0.5"/>
737    <path d="M154.463 64.231C153.633 64.231 152.979 63.993 152.503 63.517C152.032 63.0364 151.796 62.3737 151.796 61.529V53.78H153.343V61.389C153.343 62.3317 153.756 62.803 154.582 62.803C154.816 62.803 155.03 62.7587 155.226 62.67C155.422 62.5814 155.63 62.4367 155.849 62.236L156.703 63.377C156.391 63.6664 156.05 63.881 155.681 64.021C155.317 64.161 154.911 64.231 154.463 64.231ZM149.675 55.061V53.78H152.776V55.061H149.675Z" fill="#7D9093" fill-opacity="0.5"/>
738    <path d="M142.24 64V53.976H145.544C146.421 53.976 147.112 54.1953 147.616 54.634C148.12 55.0726 148.372 55.6583 148.372 56.391V56.566C148.372 57.0886 148.246 57.5366 147.994 57.91C147.742 58.2833 147.38 58.5586 146.909 58.736V58.792C147.492 58.9226 147.947 59.2003 148.274 59.625C148.605 60.045 148.771 60.5606 148.771 61.172V61.361C148.771 61.893 148.645 62.3573 148.393 62.754C148.145 63.1506 147.795 63.4586 147.343 63.678C146.895 63.8926 146.365 64 145.754 64H142.24ZM143.794 62.656H145.5
73872C146.085 62.656 146.482 62.5253 146.762 62.264C147.042 62.0026 147.182 61.6293 147.182 61.144V60.99C147.182 60.5046 147.037 60.1313 146.748 59.87C146.463 59.604 146.05 59.471 145.509 59.471H143.36V58.183H145.32C145.791 58.183 146.153 58.064 146.405 57.826C146.657 57.588 146.783 57.2496 146.783 56.811V56.685C146.783 56.2416 146.657 55.9033 146.405 55.67C146.157 55.4366 145.796 55.32 145.32 55.32H143.794V62.656Z" fill="#7D9093" fill-opacity="0.5"/>
739    <rect x="18" y="17" width="246" height="7" rx="3.5" fill="#7D9093" fill-opacity="0.26"/>
740    <rect x="18" y="33" width="82" height="7" rx="3.5" fill="#7D9093" fill-opacity="0.26"/>
741</svg>
742<div>
743    <button data-modal-action id="mobile-wallet-adapter-launch-action" class="mobile-wallet-adapter-embedded-modal-launch-action">
744        Continue to Allow
745    </button>
746</div>
747`,Am=`
748.mobile-wallet-adapter-embedded-modal-close {
749    display: none;
750}
751.mobile-wallet-adapter-embedded-modal-content {
752    text-align: center;
753}
754.mobile-wallet-adapter-embedded-modal-title {
755    margin: 18px 100px auto 100px;
756    color: #000000;
757    font-size: 2.75em;
758    font-weight: 600;
759}
760.mobile-wallet-adapter-embedded-modal-subtitle {
761    margin: 20px 60px 40px 60px;
762    color: #7D9093;
763    font-size: 1.25em;
764    font-weight: 400;
765}
766.mobile-wallet-adapter-embedded-modal-permission-prompt-mock {
767    width: 90%;
768    height: auto;
769    margin: 0 auto 30px auto;
770    display: block;
771}
772.mobile-wallet-adapter-embedded-modal-launch-action {
773    display: block;
774    width: 100%;
775    height: 56px;
776    font-size: 1.25em;
777    background: #000000;
778    color: #FFFFFF;
779    border-radius: 18px;
780}
781/* Smaller screens */
782@media all and (max-width: 600px) {
783    .mobile-wallet-adapter-embedded-modal-title {
784        font-size: 1.5em;
785        margin-right: 12px;
786        margin-left: 12px;
787    }
788    .mobile-wallet-adapter-embedded-modal-subtitle {
789        margin-right: 12px;
790        margin-left: 12px;
791    }
792}
793`;function Ay(e){return e.includes("Solana Mobile Web Shell")}async function Ab(){if("u">typeof navigator&&Ay(navigator.userAgent))return!0;try{return"granted"===(await navigator.permissions.query({name:"loopback-network"})).state}catch(e){if(e instanceof TypeError&&(e.message.includes("loopback-network")||e.message.includes("local-network-access")))return!0;return!1}}async function Av(){if(!("u">typeof navigator&&Ay(navigator.userAgent)))try{let e=await navigator.permissions.query({name:"loopback-network"});if("granted"===e.state)return;if("denied"===e.state){let e=new Au;throw e.init(),e.open(),new SI(SA,"Local Network Access permission denied")}if("prompt"===e.state){let t=new Af;if(await new Promise((r,i)=>{t.addEventListener("close",e=>{e&&i(new SI(Sk,"Wallet connection cancelled by user",{event:e}))}),e.onchange=()=>{e.onchange=null,r(e.state)},t.init(),t.open()})!=="granted")return await Av();{let e=new Al;await new Promise((t,r)=>{e.addEventListener("close",e=>{e&&r(new SI(Sk,"Wallet connection cancelled by user",{event:e}))}),e.initWithCallback(async()=>{t(!0)}),e.open()});return}}throw new SI(SA,"Local Network Access permission unknown")}catch(e){if(e instanceof TypeError&&(e.message.includes("loopback-network")||e.message.includes("local-network-access")))return;if(e instanceof SI)throw e;throw new SI(SA,e instanceof Error?e.message:"Local Network Access permission unknown")}}let Aw=`
794<div class="mobile-wallet-adapter-embedded-loading-indicator" role="dialog" aria-modal="true" aria-labelledby="modal-title">
795    <div data-modal-close style="position: absolute; width: 100%; height: 100%;"></div>
796    <div class="mobile-wallet-adapter-embedded-loading-container">
797        <div class="mobile-wallet-adapter-embedded-loading-animation"></div>
798    </div>
799</div>
800`,Ax=`
801.mobile-wallet-adapter-embedded-loading-indicator {
802    display: flex; /* Use flexbox to center content */
803    justify-content: center; /* Center horizontally */
804    align-items: start; /* Center vertically */
805    position: fixed; /* Stay in place */
806    z-index: 1; /* Sit on top */
807    left: 0;
808    top: 0;
809    width: 100%; /* Full width */
810    height: 100%; /* Full height */
811    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
812    overflow-y: auto; /* enable scrolling */
813}
814
815.mobile-wallet-adapter-embedded-loading-container {
816    display: flex;
817    margin: auto;
818}
819
820.mobile-wallet-adapter-embedded-loading-animation {
821    position: relative;
822    left: -9999px;
823    width: 10px;
824    height: 10px;
825    border-radius: 5px;
826    background-color: var(--spinner-color);
827    color: var(--spinner-color);
828    box-shadow: 9984px 0 0 0 var(--spinner-color), 
829                9999px 0 0 0 var(--spinner-color), 
830                10014px 0 0 0 var(--spinner-color);
831    animation: dot-typing 1.5s infinite linear;
832}
833
834@keyframes dot-typing {
835    0% {
836        box-shadow: 9984px 0 0 0 var(--spinner-color), 
837                    9999px 0 0 0 var(--spinner-color), 
838                    10014px 0 0 0 var(--spinner-color);
839    }
840    16.667% {
841        box-shadow: 9984px -10px 0 0 var(--spinner-color), 
842                    9999px 0 0 0 var(--spinner-color), 
843                    10014px 0 0 0 var(--spinner-color);
844    }
845    33.333% {
846        box-shadow: 9984px 0 0 0 var(--spinner-color), 
847                    9999px 0 0 0 var(--spinner-color), 
848                    10014px 0 0 0 var(--spinner-color);
849    }
850    50% {
851        box-shadow: 9984px 0 0 0 var(--spinner-color), 
852                    9999px -10px 0 0 var(--spinner-color), 
853                    10014px 0 0 0 var(--spinner-color);
854    }
855    66.667% {
856        box-shadow: 9984px 0 0 0 var(--spinner-color), 
857                    9999px 0 0 0 var(--spinner-color), 
858                    10014px 0 0 0 var(--spinner-color);
859    }
860    83.333% {
861        box-shadow: 9984px 0 0 0 var(--spinner-color), 
862                    9999px 0 0 0 var(--spinner-color), 
863                    10014px -10px 0 0 var(--spinner-color);
864    }
865    100% {
866        box-shadow: 9984px 0 0 0 var(--spinner-color), 
867                    9999px 0 0 0 var(--spinner-color), 
868                    10014px 0 0 0 var(--spinner-color);
869    }
870}
871`;var AS=class{#e=null;#t={};#r=!1;dom=null;constructor(){this.init=this.init.bind(this),this.#e=document.getElementById("mobile-wallet-adapter-embedded-root-ui")}
871async init(){console.log("Injecting modal"),this.#i()}open=()=>{console.debug("Modal open"),this.#n(),this.#e&&(this.#e.style.display="flex")};close=e=>{console.debug("Modal close"),this.#o(),this.#e&&(this.#e.style.display="none"),this.#t.close?.forEach(t=>t(e))};addEventListener(e,t){return this.#t[e]?.push(t)||(this.#t[e]=[t]),()=>this.removeEventListener(e,t)}removeEventListener(e,t){this.#t[e]=this.#t[e]?.filter(e=>t!==e)}#i(){if(this.dom)return;this.#e=document.createElement("div"),this.#e.id="mobile-wallet-adapter-embedded-root-ui",this.#e.innerHTML=Aw,this.#e.style.display="none";let e=document.createElement("style");e.id="mobile-wallet-adapter-embedded-modal-styles",e.textContent=Ax;let t=document.createElement("div");this.dom=t.attachShadow({mode:"closed"}),t.style.setProperty("--spinner-color","#FFFFFF"),this.dom.appendChild(e),this.dom.appendChild(this.#e),document.body.appendChild(t)}#n(){this.#e&&!this.#r&&([...this.#e.querySelectorAll("[data-modal-close]")].forEach(e=>e?.addEventListener("click",e=>{this.close(e)})),window.addEventListener("load",this.close),document.addEventListener("keydown",this.#a),this.#r=!0)}#o(){!this.#r||(window.removeEventListener("load",this.close),document.removeEventListener("keydown",this.#a),this.#e&&([...this.#e.querySelectorAll("[data-modal-close]")].forEach(e=>e?.removeEventListener("click",this.close)),this.#r=!1))}#a=e=>{"Escape"===e.key&&this.close(e)}};let AA="Mobile Wallet Adapter",Ak=[x_,xP,xO,xC];function AE(e){return e instanceof Error?e.message:"Unknown error"}var AI=class{#l={};#c="1.0.0";#d=AA;#u="https://solanamobile.com/wallets";#h="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03IDIuNUgxN0MxNy44Mjg0IDIuNSAxOC41IDMuMTcxNTcgMTguNSA0VjIwQzE4LjUgMjAuODI4NCAxNy44Mjg0IDIxLjUgMTcgMjEuNUg3QzYuMTcxNTcgMjEuNSA1LjUgMjAuODI4NCA1LjUgMjBWNEM1LjUgMy4xNzE1NyA2LjE3MTU3IDIuNSA3IDIuNVpNMyA0QzMgMS43OTA4NiA0Ljc5MDg2IDAgNyAwSDE3QzE5LjIwOTEgMCAyMSAxLjc5MDg2IDIxIDRWMjBDMjEgMjIuMjA5MSAxOS4yMDkxIDI0IDE3IDI0SDdDNC43OTA4NiAyNCAzIDIyLjIwOTEgMyAyMFY0Wk0xMSA0LjYxNTM4QzEwLjQ0NzcgNC42MTUzOCAxMCA1LjA2MzEgMTAgNS42MTUzOFY2LjM4NDYyQzEwIDYuOTM2OSAxMC40NDc3IDcuMzg0NjIgMTEgNy4zODQ2MkgxM0MxMy41NTIzIDcuMzg0NjIgMTQgNi45MzY5IDE0IDYuMzg0NjJWNS42MTUzOEMxNCA1LjA2MzEgMTMuNTUyMyA0LjYxNTM4IDEzIDQuNjE1MzhIMTFaIiBmaWxsPSIjRENCOEZGIi8+Cjwvc3ZnPgo=";#p;#f;#g;#m=!1;#y=0;#b=[];#v;#w;#x;#S;get version(){return this.#c}get name(){return this.#d}get url(){return this.#u}get icon(){return this.#h}get chains(){return this.#b}get features(){return{[S8]:{version:"1.0.0",connect:this.#A},[S6]:{version:"1.0.0",disconnect:this.#k},[S7]:{version:"1.0.0",on:this.#E},[xO]:{version:"1.0.0",signMessage:this.#I},[xC]:{version:"1.0.0",signIn:this.#M},...this.#w}}get accounts(){return this.#f?.accounts??[]}constructor(e){this.#g=e.authorizationCache,this.#p=e.appIdentity,this.#b=e.chains,this.#v=e.chainSelector,this.#x=e.onWalletNotFound,this.#S=e.nostrRelay,this.#w={[x_]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:this.#T},[xP]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:this.#N}}}get connected(){return!!this.#f}get isAuthorized(){return!!this.#f}get currentAuthorization(){return this.#f}get cachedAuthorizationResult(){return this.#g.get()}#E=(e,t)=>(this.#l[e]?.push(t)||(this.#l[e]=[t]),()=>this.#_(e,t));#C(e,...t){this.#l[e]?.forEach(e=>e.apply(null,t))}#_(e,t){this.#l[e]=this.#l[e]?.filter(e=>t!==e)}#A=async({silent:e}={})=>{if(this.#m||this.connected)return{accounts:this.accounts};this.#m=!0;try{if(e){let e=await this.#g.get();if(!e)return{accounts:this.accounts};await this.#O(e.capabilities),await this.#P(e)}else await this.#D()}catch(e){throw Error(AE(e),{cause:e})}finally{this.#m=!1}return{accounts:this.accounts}};#D=async e=>{try{let t=await this.#g.get();if(t)return this.#P(t),t;let r=await this.#v.select(this.#b);return await this.#j(async t=>{let[i,n]=await Promise.all([t.getCapabilities(),t.authorize({chain:r,identity:this.#p,sign_in_payload:e})]),o=this.#R(n.accounts),a={...n,accounts:o,chain:r,capabilities:i};return Promise.all([this.#O(i),this.#g.set(a),this.#P(a)]),a})}catch(e){throw Error(AE(e),{cause:e})}};#P=async e=>{let t=null==this.#f||this.#f?.accounts.length!==e.accounts.length||this.#f.accounts.some((t,r)=>t.address!==e.accounts[r].address);this.#f=e,t&&this.#C("change",{accounts:this.accounts})};#O=async e=>{let t=e.features.includes("solana:signTransactions"),r=e.supports_sign_and_send_transactions,i=x_ in this.features!==r||xP in this.features!==t;this.#w={...(r||!r&&!t)&&{[x_]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:this.#T}},...t&&{[xP]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:this.#N}}},i&&this.#C("change",{features:this.features})};#z=async(e,t,r)=>{try{let[i,n]=await Promise.all([this.#f?.capabilities??await e.getCapabilities(),e.authorize({auth_token:t,identity:this.#p,chain:r})]),o=this.#R(n.accounts),a={...n,accounts:o,chain:r,capabilities:i};Promise.all([this.#g.set(a),this.#P(a)])}catch(e){throw this.#k(),Error(AE(e),{cause:e})}};#k=async()=>{this.#g.clear(),this.#m=!1,this.#y++,this.#f=void 0,this.#C("change",{accounts:this.accounts})};#j=async e=>{let t=this.#f?.wallet_uri_base,r=t?{baseUri:t}:void 0,i=this.#y,n=new AS;try{let t,i=!0,o=await Ab(),a=await Promise.race([(async()=>{o||this.#S||await Av()})().then(async()=>{n.init();let{wallet:t,close:a}=!o&&this.#S?await S5({...r,connectionType:"local",relayDomain:this.#S}):await S4(r);i=!1,n.addEventListener("close",e=>{e&&a()}),n.open();let s=await e(await t);return n.close(),a(),s}),new Promise((e,r)=>{t=setTimeout(()=>{i&&r(new SI(Sk,"Wallet connection timed out",{event:void 0}))},3e4)})]);return clearTimeout(t),a}catch(e){throw n.close(),this.#y!==i&&await new Promise(()=>{}),e instanceof Error&&"SolanaMobileWalletAdapterError"===e.name&&"ERROR_WALLET_NOT_FOUND"===e.code&&await this.#x(this),e}};#L=()=>
871{if(!this.#f)throw Error("Wallet not connected");return{authToken:this.#f.auth_token,chain:this.#f.chain}};#R=e=>e.map(e=>{let t=xQ(e.address);return{address:xJ(t),publicKey:t,label:e.label,icon:e.icon,chains:e.chains??this.#b,features:e.features??Ak}});#B=async e=>{let{authToken:t,chain:r}=this.#L();try{let i=e.map(e=>xF(e));return await this.#j(async e=>(await this.#z(e,t,r),(await e.signTransactions({payloads:i})).signed_payloads.map(xQ)))}catch(e){throw Error(AE(e),{cause:e})}};#U=async(e,t)=>{let{authToken:r,chain:i}=this.#L();try{return await this.#j(async n=>{let[o]=await Promise.all([n.getCapabilities(),this.#z(n,r,i)]);if(o.supports_sign_and_send_transactions){let r=xF(e);return(await n.signAndSendTransactions({...t,payloads:[r]})).signatures.map(xQ)[0]}throw Error("connected wallet does not support signAndSendTransaction")})}catch(e){throw Error(AE(e),{cause:e})}};#T=async(...e)=>{let t=[];for(let r of e){let e=await this.#U(r.transaction,r.options);t.push({signature:e})}return t};#N=async(...e)=>(await this.#B(e.map(({transaction:e})=>e))).map(e=>({signedTransaction:e}));#I=async(...e)=>{let{authToken:t,chain:r}=this.#L(),i=e.map(({account:e})=>xF(new Uint8Array(e.publicKey))),n=e.map(({message:e})=>xF(e));try{return await this.#j(async e=>(await this.#z(e,t,r),(await e.signMessages({addresses:i,payloads:n})).signed_payloads.map(xQ).map(e=>({signedMessage:e,signature:e.slice(-64)}))))}catch(e){throw Error(AE(e),{cause:e})}};#M=async(...e)=>{let t=[];if(!(e.length>1))return[await this.#q(e[0])];for(let r of e)t.push(await this.#q(r));return t};#q=async e=>{this.#m=!0;try{var t;let r=await this.#D({...e,domain:e?.domain??window.location.host});if(!r.sign_in_result)throw Error("Sign in failed, no sign in result returned by wallet");let i=r.sign_in_result.address,n=r.accounts.find(e=>e.address==i);return{account:{...n??{address:(t=xQ(i),xJ(t))},publicKey:xQ(i),chains:n?.chains??this.#b,features:n?.features??r.capabilities.features},signedMessage:xQ(r.sign_in_result.signed_message),signature:xQ(r.sign_in_result.signature)}}catch(e){throw Error(AE(e),{cause:e})}finally{this.#m=!1}}};function AM(e){switch(e){case"mainnet-beta":return"solana:mainnet";case"testnet":return"solana:testnet";case"devnet":return"solana:devnet";default:return e}}function AT(e){return e instanceof Error?e.message:"Unknown error"}var AN=class extends xI{supportedTransactionVersions=new Set(["legacy",0]);name;icon;url;#W;#m=!1;#H="u">typeof window&&window.isSecureContext&&"u">typeof document&&/android/i.test(navigator.userAgent)?U.Loadable:U.Unsupported;#V;#K;#F;#Y=async e=>{if(e.accounts&&e.accounts.length>0){this.#J();let t=await this.#V(e.accounts);t!==this.#K&&(this.#K=t,this.#F=void 0,this.emit("connect",this.publicKey))}};constructor(e,t){super(),this.#V=async e=>{let r=await t.addressSelector.select(e.map(({publicKey:e})=>xF(new Uint8Array(e))));return e.find(({publicKey:e})=>xF(new Uint8Array(e))===r)??e[0]},this.#W=e,this.#W.features[S7].on("change",this.#Y),this.name=this.#W.name,this.icon=this.#W.icon,this.url=this.#W.url}get publicKey(){if(!this.#F&&this.#K)try{this.#F=new rL.PublicKey(this.#K.publicKey)}catch(e){throw new xg(e instanceof Error&&e?.message||"Unknown error",e)}return this.#F??null}get connected(){return this.#W.connected}get connecting(){return this.#m}get readyState(){return this.#H}async autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(){return await this.autoConnect()}async autoConnect(){this.#A(!0)}async connect(){this.#A()}async #A(e=!1){if(!this.connecting&&!this.connected)return await this.#G(async()=>{if(this.#H!==U.Installed&&this.#H!==U.Loadable)throw new xl;this.#m=!0;try{await this.#W.features[S8].connect({silent:e})}catch(e){throw new xu(e instanceof Error&&e.message||"Unknown error",e)}finally{this.#m=!1}})}async performAuthorization(e){try{let t=await this.#W.cachedAuthorizationResult;if(t)return await this.#W.features[S8].connect({silent:!0}),t;return e?await this.#W.features[xC].signIn(e):await this.#W.features[S8].connect(),await await this.#W.cachedAuthorizationResult}catch(e){throw new xu(e instanceof Error&&e.message||"Unknown error",e)}}async disconnect(){return await this.#G(async()=>{this.#m=!1,this.#F=void 0,this.#K=void 0,await this.#W.features[S6].disconnect(),this.emit
871("disconnect")})}async signIn(e){return this.#G(async()=>{if(this.#H!==U.Installed&&this.#H!==U.Loadable)throw new xl;this.#m=!0;try{let t=await this.#W.features[xC].signIn({...e,domain:e?.domain??window.location.host});if(t.length>0)return t[0];throw Error("Sign in failed, no sign in result returned by wallet")}catch(e){throw new xu(e instanceof Error&&e.message||"Unknown error",e)}finally{this.#m=!1}})}async signMessage(e){return await this.#G(async()=>{let t=this.#L();try{return(await this.#W.features[xO].signMessage({account:t,message:e}))[0].signature}catch(e){throw new xv(AT(e),e)}})}async sendTransaction(e,t,r){return await this.#G(async()=>{let i=this.#L();try{if(x_ in this.#W.features){let t=AM(this.#W.currentAuthorization.chain),[n]=(await this.#W.features[x_].signAndSendTransaction({account:i,transaction:e.serialize(),chain:t,options:r?{skipPreflight:r.skipPreflight,maxRetries:r.maxRetries}:void 0})).map(e=>{var t;return t=e.signature,xF(t)});return n}{let[i]=await this.#B([e]);if("version"in i)return await t.sendTransaction(i);{let e=i.serialize();return await t.sendRawTransaction(e,{...r,preflightCommitment:function(){let e,i;switch(t.commitment){case"confirmed":case"finalized":case"processed":e=t.commitment;break;default:e="finalized"}switch(r?.preflightCommitment){case"confirmed":case"finalized":case"processed":i=r.preflightCommitment;break;case void 0:i=e;break;default:i="finalized"}return("finalized"===i?2:+("confirmed"===i))<("finalized"===e?2:+("confirmed"===e))?i:e}()})}}}catch(e){throw new xy(AT(e),e)}})}async signTransaction(e){return await this.#G(async()=>{let[t]=await this.#B([e]);return t})}async signAllTransactions(e){return await this.#G(async()=>await this.#B(e))}#J(){this.#H!==U.Installed&&this.emit("readyStateChange",this.#H=U.Installed)}#L(){if(!this.#W.isAuthorized||!this.#K)throw new xm;return this.#K}async #B(e){let t=this.#L();try{if(xP in this.#W.features)return this.#W.features[xP].signTransaction(...e.map(e=>({account:t,transaction:e.serialize()}))).then(e=>e.map(e=>{let t=e.signedTransaction,r=64*t[0]+1;return"legacy"===rL.VersionedMessage.deserializeMessageVersion(t.slice(r,t.length))?rL.Transaction.from(t):rL.VersionedTransaction.deserialize(t)}));throw Error("Connected wallet does not support signing transactions")}catch(e){throw new xb(AT(e),e)}}async #G(e){try{return await e()}catch(e){throw this.emit("error",e instanceof xs?e:new xs(AT(e),e)),e}}},A_=class extends AN{constructor(e){const t=AM(e.chain??e.cluster);super(new AI({appIdentity:e.appIdentity,authorizationCache:{set:e.authorizationResultCache.set,get:async()=>await e.authorizationResultCache.get(),clear:e.authorizationResultCache.clear},chains:[t],chainSelector:{select:async e=>1===e.length?e[0]:e.includes(xZ)?xZ:e[0]},onWalletNotFound:async()=>{e.onWalletNotFound(this)}}),{addressSelector:e.addressSelector,chain:t})}},AC=class extends A_{};async function AO(e){return As()}let AP=function(e){return S8 in e.features&&S7 in e.features&&(x_ in e.features||xP in e.features)};function AD(e){switch(e){case"processed":case"confirmed":case"finalized":case void 0:return e;case"recent":return"processed";case"single":case"singleGossip":return"confirmed";case"max":case"root":return"finalized";default:return}}new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap;var Aj=e.i(990478),AR=function(e,t,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)},Az=function(e,t,r,i,n){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,r):n?n.value=r:t.set(e,r),r};class AL extends xx{get name(){return AR(this,G,"f").name}get url(){return"https://github.com/solana-labs/wallet-standard"}get icon(){return AR(this,G,"f").icon}get readyState(){return AR(this,Q,"f")}get publicKey(){return AR(this,V,"f")}get connecting(){return AR(this,K,"f")}get supportedTransactionVersions(){return AR(this,J,"f")}get wallet(){return AR(this,G,"f")}get standard(){return!0}constructor({wallet:e}){super(),W.add(this),H.set(this,void 0),V.set(this,void 0),K.set(this,void 0),F.set(this,void 0),Y.set(this,void 0),J.set(this,void 0),G.set(this,void 0),Q.set(this,"u"<typeof window||"u"<typeof document?U.Unsupported:U.Installed),et.set(this,e=>{if("accounts"in e){let e=AR(this,G,"f").accounts[0];AR(this,H,"f")&&!AR(this,F,"f")&&e!==AR(this,H,"f")&&(e?AR(this,W,"m",X).call(this,e):(this.emit
871("error",new xh),AR(this,W,"m",$).call(this)))}"features"in e&&AR(this,W,"m",ee).call(this)}),Az(this,G,e,"f"),Az(this,H,null,"f"),Az(this,V,null,"f"),Az(this,K,!1,"f"),Az(this,F,!1,"f"),Az(this,Y,AR(this,G,"f").features[S7].on("change",AR(this,et,"f")),"f"),AR(this,W,"m",ee).call(this)}destroy(){Az(this,H,null,"f"),Az(this,V,null,"f"),Az(this,K,!1,"f"),Az(this,F,!1,"f");let e=AR(this,Y,"f");e&&(Az(this,Y,null,"f"),e())}async autoConnect(){return AR(this,W,"m",Z).call(this,{silent:!0})}async connect(){return AR(this,W,"m",Z).call(this)}async disconnect(){if(S6 in AR(this,G,"f").features)try{Az(this,F,!0,"f"),await AR(this,G,"f").features[S6].disconnect()}catch(e){this.emit("error",new xp(e?.message,e))}finally{Az(this,F,!1,"f")}AR(this,W,"m",$).call(this)}async sendTransaction(e,t,r={}){try{var i;let n,o=AR(this,H,"f");if(!o)throw new xm;if(x_ in AR(this,G,"f").features)if(o.features.includes(x_))n=x_;else if(xP in AR(this,G,"f").features&&o.features.includes(xP))n=xP;else throw new xf;else if(xP in AR(this,G,"f").features){if(!o.features.includes(xP))throw new xf;n=xP}else throw new xd;let a=(i=t.rpcEndpoint).includes("https://api.mainnet-beta.solana.com")?xZ:/\bdevnet\b/i.test(i)?"solana:devnet":/\btestnet\b/i.test(i)?"solana:testnet":/\blocalhost\b/i.test(i)||/\b127\.0\.0\.1\b/.test(i)?"solana:localnet":xZ;if(!o.chains.includes(a))throw new xy;try{let i,{signers:s,...l}=r;if(xA(e)?(s?.length&&e.sign(s),i=e.serialize()):(e=await this.prepareTransaction(e,t,l),s?.length&&e.partialSign(...s),i=new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))),n===x_){let[e]=await AR(this,G,"f").features[x_].signAndSendTransaction({account:o,chain:a,transaction:i,options:{preflightCommitment:AD(l.preflightCommitment||t.commitment),skipPreflight:l.skipPreflight,maxRetries:l.maxRetries,minContextSlot:l.minContextSlot}});return Aj.default.encode(e.signature)}{let[e]=await AR(this,G,"f").features[xP].signTransaction({account:o,chain:a,transaction:i,options:{preflightCommitment:AD(l.preflightCommitment||t.commitment),minContextSlot:l.minContextSlot}});return await t.sendRawTransaction(e.signedTransaction,{...l,preflightCommitment:AD(l.preflightCommitment||t.commitment)})}}catch(e){if(e instanceof xs)throw e;throw new xy(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}H=new WeakMap,V=new WeakMap,K=new WeakMap,F=new WeakMap,Y=new WeakMap,J=new WeakMap,G=new WeakMap,Q=new WeakMap,et=new WeakMap,W=new WeakSet,Z=async function(e){try{if(this.connected||this.connecting)return;if(AR(this,Q,"f")!==U.Installed)throw new xl;if(Az(this,K,!0,"f"),!AR(this,G,"f").accounts.length)try{await AR(this,G,"f").features[S8].connect(e)}catch(e){throw new xu(e?.message,e)}let t=AR(this,G,"f").accounts[0];if(!t)throw new xf;AR(this,W,"m",X).call(this,t)}catch(e){throw this.emit("error",e),e}finally{Az(this,K,!1,"f")}},X=function(e){let t;try{t=new rL.PublicKey(e.address)}catch(e){throw new xg(e?.message,e)}Az(this,H,e,"f"),Az(this,V,t,"f"),AR(this,W,"m",ee).call(this),this.emit("connect",t)},$=function(){Az(this,H,null,"f"),Az(this,V,null,"f"),AR(this,W,"m",ee).call(this),this.emit("disconnect")},ee=function(){let e=x_ in AR(this,G,"f").features?AR(this,G,"f").features[x_].supportedTransactionVersions:AR(this,G,"f").features[xP].supportedTransactionVersions;Az(this,J,!function(e,t){if(e===t)return!0;let r=e.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}(e,["legacy"])?new Set(e):null,"f"),xP in AR(this,G,"f").features&&AR(this,H,"f")?.features.includes(xP)?(this.signTransaction=AR(this,W,"m",er),this.signAllTransactions=AR(this,W,"m",ei)):(delete this.signTransaction,delete this.signAllTransactions),xO in AR(this,G,"f").features&&AR(this,H,"f")?.features.includes(xO)?this.signMessage=AR(this,W,"m",en):delete this.signMessage,xC in AR(this,G,"f").features?this.signIn=AR(this,W,"m",eo):delete this.signIn},er=async function(e){try{let t=AR(this,H,"f");if(!t)throw new xm;if(!(xP in AR(this,G,"f").features))throw new xd;if(!t.features.includes(xP))throw new xf;try{let r=(await AR(this,G,"f").features[xP].signTransaction({account:t,transaction:xA(e)?e.serialize():new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))}
871))[0].signedTransaction;return xA(e)?rL.VersionedTransaction.deserialize(r):rL.Transaction.from(r)}catch(e){if(e instanceof xs)throw e;throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}},ei=async function(e){try{let t=AR(this,H,"f");if(!t)throw new xm;if(!(xP in AR(this,G,"f").features))throw new xd;if(!t.features.includes(xP))throw new xf;try{let r=await AR(this,G,"f").features[xP].signTransaction(...e.map(e=>({account:t,transaction:xA(e)?e.serialize():new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))})));return e.map((e,t)=>{let i=r[t].signedTransaction;return xA(e)?rL.VersionedTransaction.deserialize(i):rL.Transaction.from(i)})}catch(e){throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}},en=async function(e){try{let t=AR(this,H,"f");if(!t)throw new xm;if(!(xO in AR(this,G,"f").features))throw new xd;if(!t.features.includes(xO))throw new xf;try{return(await AR(this,G,"f").features[xO].signMessage({account:t,message:e}))[0].signature}catch(e){throw new xv(e?.message,e)}}catch(e){throw this.emit("error",e),e}},eo=async function(e={}){try{let t;if(!(xC in AR(this,G,"f").features))throw new xd;try{[t]=await AR(this,G,"f").features[xC].signIn(e)}catch(e){throw new xw(e?.message,e)}if(!t)throw new xw;return AR(this,W,"m",X).call(this,t.account),t}catch(e){throw this.emit("error",e),e}};var AB=function(e,t,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)},AU=function(e,t,r,i,n){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,r):n?n.value=r:t.set(e,r),r};let Aq=new Set,AW={};function AH(...e){return(e=e.filter(e=>!Aq.has(e))).length?(e.forEach(e=>{a=void 0,Aq.add(e)}),AW.register?.forEach(t=>AF(()=>t(...e))),function(){e.forEach(e=>{a=void 0,Aq.delete(e)}),AW.unregister?.forEach(t=>AF(()=>t(...e)))}):()=>{}}function AV(){return a||(a=[...Aq]),a}function AK(e,t){return AW[e]?.push(t)||(AW[e]=[t]),function(){AW[e]=AW[e]?.filter(e=>t!==e)}}function AF(e){try{e()}catch(e){console.error(e)}}class AY extends Event{get detail(){return AB(this,ea,"f")}get type(){return"wallet-standard:app-ready"}constructor(e){super("wallet-standard:app-ready",{bubbles:!1,cancelable:!1,composed:!1}),ea.set(this,void 0),AU(this,ea,e,"f")}preventDefault(){throw Error("preventDefault cannot be called")}stopImmediatePropagation(){throw Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw Error("stopPropagation cannot be called")}}function AJ(e){let t=(0,e_.useRef)(void 0);return void 0===t.current&&(t.current={value:e()}),t.current.value}function AG(e){return e.filter(AP).map(e=>new AL({wallet:e}))}ea=new WeakMap,(M=es||(es={}))[M.DESKTOP_WEB=0]="DESKTOP_WEB",M[M.MOBILE_WEB=1]="MOBILE_WEB";class AQ extends xs{constructor(){super(...arguments),this.name="WalletNotSelectedError"}}var AZ=e.i(586638);function AX({children:e,wallets:t,adapter:r,isUnloadingRef:i,onAutoConnectRequest:n,onConnectError:o,onError:a,onSelectWallet:s}){let l=(0,e_.useRef)(!1),[c,d]=(0,e_.useState)(!1),u=(0,e_.useRef)(!1),[h,p]=(0,e_.useState)(!1),[f,g]=(0,e_.useState)(()=>r?.publicKey??null),[m,y]=(0,e_.useState)(()=>r?.connected??!1),b=(0,e_.useRef)(a);(0,e_.useEffect)(()=>(b.current=a,()=>{b.current=void 0}),[a]);let v=(0,e_.useRef)((e,t)=>(!i.current&&(b.current?b.current(e,t):(console.error(e,t),e instanceof xl&&"u">typeof window&&t&&window.open(t.url,"_blank"))),e)),[w,x]=(0,e_.useState)(()=>t.map(e=>({adapter:e,readyState:e.readyState})).filter(({readyState:e})=>e!==U.Unsupported));(0,e_.useEffect)(()=>{function e(e){x(t=>{let r=t.findIndex(({adapter:e})=>e===this);if(-1===r)return t;let{adapter:i}=t[r];return[...t.slice(0,r),{adapter:i,readyState:e},...t.slice(r+1)].filter(({readyState:e})=>e!==U.Unsupported)})}return x(e=>t.map((t,r)=>{let i=e[r];return i&&i.adapter===t&&i.readyState===t.readyState?i:{adapter:t,readyState:t.readyState}}).filter(({readyState:e})=>e!==U.Unsupported)),t.forEach(t=>t.on("readyStateChange",e,t)),()=>{t.forEach(t=>t.off("readyStateChange",e,t))}},[r,t]);let S=(0,e_.useMemo)(()=>w.find(e=>e.adapter===r)??null,[r,w]);(0,e_.useEffect)(()=>
vendor: 4,470 bytes, line 871
871{if(!r)return;let e=e=>{g(e),l.current=!1,d(!1),y(!0),u.current=!1,p(!1)},t=()=>{i.current||(g(null),l.current=!1,d(!1),y(!1),u.current=!1,p(!1))},n=e=>{v.current(e,r)};return r.on("connect",e),r.on("disconnect",t),r.on("error",n),()=>{r.off("connect",e),r.off("disconnect",t),r.off("error",n),t()}},[r,i]);let A=(0,e_.useRef)(!1);(0,e_.useEffect)(()=>()=>{A.current=!1},[r]),(0,e_.useEffect)(()=>{A.current||l.current||m||!n||S?.readyState!==U.Installed&&S?.readyState!==U.Loadable||(l.current=!0,d(!0),A.current=!0,async function(){try{await n()}catch{o()}finally{d(!1),l.current=!1}}())},[m,n,o,S]);let k=(0,e_.useCallback)(async(e,t,i)=>{if(!r)throw v.current(new AQ);if(!m)throw v.current(new xm,r);return await r.sendTransaction(e,t,i)},[r,m]),E=(0,e_.useMemo)(()=>r&&"signTransaction"in r?async e=>{if(!m)throw v.current(new xm,r);return await r.signTransaction(e)}:void 0,[r,m]),I=(0,e_.useMemo)(()=>r&&"signAllTransactions"in r?async e=>{if(!m)throw v.current(new xm,r);return await r.signAllTransactions(e)}:void 0,[r,m]),M=(0,e_.useMemo)(()=>r&&"signMessage"in r?async e=>{if(!m)throw v.current(new xm,r);return await r.signMessage(e)}:void 0,[r,m]),T=(0,e_.useMemo)(()=>r&&"signIn"in r?async e=>await r.signIn(e):void 0,[r]),N=(0,e_.useCallback)(async()=>{if(l.current||u.current||S?.adapter.connected)return;if(!S)throw v.current(new AQ);let{adapter:e,readyState:t}=S;if(t!==U.Installed&&t!==U.Loadable)throw v.current(new xl,e);l.current=!0,d(!0);try{await e.connect()}catch(e){throw o(),e}finally{d(!1),l.current=!1}},[o,S]),_=(0,e_.useCallback)(async()=>{if(!u.current&&r){u.current=!0,p(!0);try{await r.disconnect()}finally{p(!1),u.current=!1}}},[r]);return e_.default.createElement(AZ.WalletContext.Provider,{value:{autoConnect:!!n,wallets:w,wallet:S,publicKey:f,connected:m,connecting:c,disconnecting:h,select:s,connect:N,disconnect:_,sendTransaction:k,signTransaction:E,signAllTransactions:I,signMessage:M,signIn:T}},e)}function A$(e){return function({adapters:e,userAgentString:t}){return e.some(e=>e.name!==AA&&e.readyState===U.Installed)?es.DESKTOP_WEB:t&&/android/i.test(t)&&!/(WebView|Version\/.+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+)|; wv\).+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+))/i.test(t)?es.MOBILE_WEB:es.DESKTOP_WEB}({adapters:e,userAgentString:(void 0===s&&(s=globalThis.navigator?.userAgent??null),s)})===es.MOBILE_WEB}function A0({children:e,wallets:t,autoConnect:r,localStorageKey:i="walletName",onError:n}){let o,a,s,{connection:l}=(0,e_.useContext)(xT),c=function(e){var t;let r,i=AJ(()=>new Set),{get:n,on:o}=AJ(()=>(function(){if(p||(p=function(){if(p||(p=Object.freeze({register:AH,get:AV,on:AK}),"u"<typeof window))return p;let e=Object.freeze({register:AH});try{window.addEventListener("wallet-standard:register-wallet",({detail:t})=>t(e))}catch(e){console.error("wallet-standard:register-wallet event listener could not be added\n",e)}try{window.dispatchEvent(new AY(e))}catch(e){console.error("wallet-standard:app-ready event could not be dispatched\n",e)}return p}(),"u"<typeof window))return p;let e=window.navigator.wallets||[];if(!Array.isArray(e))return console.error("window.navigator.wallets is not an array"),p;let{register:t}=p,r=(...e)=>e.forEach(e=>AF(()=>e({register:t})));try{Object.defineProperty(window.navigator,"wallets",{value:Object.freeze({push:r})})}catch(e){return console.error("window.navigator.wallets could not be set"),p}return r(...e),p})()),[a,s]=(0,e_.useState)(()=>AG(n()));(0,e_.useEffect)(()=>{let e=[o("register",(...e)=>s(t=>[...t,...AG(e)])),o("unregister",(...e)=>s(t=>t.filter(t=>!e.includes(t.wallet))))];return()=>e.forEach(e=>e())},[o]);let l=(t=a,r=(0,e_.useRef)(void 0),(0,e_.useEffect)(()=>{r.current=t}),r.current);return(0,e_.useEffect)(()=>{if(!l)return;let e=new Set(a);new Set(l.filter(t=>!e.has(t))).forEach(e=>e.destroy())},[l,a]),(0,e_.useEffect)(()=>()=>a.forEach(e=>e.destroy()),[]),(0,e_.useMemo)(()=>[...a,...e.filter(({name:e})=>!a.some(t=>t.name===e)||(i.has(e)||(i.add(e),console.warn(`${e} was registered as a Standard Wallet. The Wallet Adapter for ${e} can be removed from your app.`)),!1))],[a,e,i])}(t),d=(0,e_.useMemo)(()=>{var e;if(!A$(c))return null;let t=c.find(e=>e.name===AA);return t?t:new AC({addressSelector:{select:async e=>e[0]},appIdentity:{uri:function(){let e=globalThis.location;if(e)return`${e.protocol}//${e.host}`}()},authorizationResultCache:function(){let e;try{e=window.localStorage}catch{}return{async clear(){if(e)try{e.removeItem(S9)}catch{}}
871,async get(){if(e)try{let t=JSON.parse(e.getItem(S9));if(!t||!t.accounts)return t||void 0;{let e=t.accounts.map(e=>{var t;return{...e,publicKey:"publicKey"in e?new Uint8Array(Object.values(e.publicKey)):(t=e.address,xR({getSizeFromValue:e=>{let[t,r]=xL(e,xU[0]);if(!r)return e.length;let i=xB(r,xU);return t.length+Math.ceil(i.toString(16).length/2)},write(e,t,r){if(!function(e,t,r=t){if(!t.match(RegExp(`^[${e}]*$`)))throw new xj(8078012,{alphabet:e,base:e.length,value:r})}(xU,e),""===e)return r;let[i,n]=xL(e,xU[0]);if(!n)return t.set(new Uint8Array(i.length).fill(0),r),r+i.length;let o=xB(n,xU),a=[];for(;o>0n;)a.unshift(Number(o%256n)),o/=256n;let s=[...Array(i.length).fill(0),...a];return t.set(s,r),r+s.length}}).encode(t))}});return{...t,accounts:e}}}catch{}},async set(t){if(e)try{e.setItem(S9,JSON.stringify(t))}catch{}}}}(),cluster:(e=l?.rpcEndpoint)?/devnet/i.test(e)?"devnet":/testnet/i.test(e)?"testnet":"mainnet-beta":"mainnet-beta",onWalletNotFound:AO})},[c,l?.rpcEndpoint]),u=(0,e_.useMemo)(()=>null==d||-1!==c.indexOf(d)?c:[d,...c],[c,d]),[h,f]=(a=(o=(0,e_.useState)(()=>{try{let e=localStorage.getItem(i);if(e)return JSON.parse(e)}catch(e){"u">typeof window&&console.error(e)}return null}))[0],s=(0,e_.useRef)(!0),(0,e_.useEffect)(()=>{if(s.current){s.current=!1;return}try{null===a?localStorage.removeItem(i):localStorage.setItem(i,JSON.stringify(a))}catch(e){"u">typeof window&&console.error(e)}},[a,i]),o),g=(0,e_.useMemo)(()=>u.find(e=>e.name===h)??null,[u,h]),m=(0,e_.useCallback)(e=>{h!==e&&(g&&g.name!==AA&&g.disconnect(),f(e))},[g,f,h]);(0,e_.useEffect)(()=>{if(g)return g.on("disconnect",e),()=>{g.off("disconnect",e)};function e(){v.current||f(null)}},[g,c,f,h]);let y=(0,e_.useRef)(!1),b=(0,e_.useMemo)(()=>{if(r&&g)return async()=>{(!0===r||await r(g))&&(y.current?await g.connect():await g.autoConnect())}},[r,g]),v=(0,e_.useRef)(!1);(0,e_.useEffect)(()=>{if(h===AA&&A$(c)){v.current=!1;return}function e(){v.current=!0}return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[c,h]);let w=(0,e_.useCallback)(()=>{g&&m(null)},[g,m]),x=(0,e_.useCallback)(e=>{y.current=!0,m(e)},[m]);return e_.default.createElement(AX,{wallets:u,adapter:g,isUnloadingRef:v,onAutoConnectRequest:b,onConnectError:w,onError:n,onSelectWallet:x},e)}var A1=e.i(989809);let A2=({id:e,children:t,expanded:r=!1})=>{let i=(0,e_.useRef)(null),n=(0,e_.useRef)(!0);return(0,e_.useLayoutEffect)(()=>{if(r){let e;(e=i.current)&&requestAnimationFrame(()=>{e.style.height=e.scrollHeight+"px"})}else{let e;(e=i.current)&&requestAnimationFrame(()=>{e.style.height=e.offsetHeight+"px",e.style.overflow="hidden",requestAnimationFrame(()=>{e.style.height="0"})})}},[r]),(0,e_.useLayoutEffect)(()=>{let e=i.current;if(e)return n.current&&(t(),n.current=!1),e.addEventListener("transitionend",o),()=>e.removeEventListener("transitionend",o);function t(){e&&(e.style.overflow=r?"initial":"hidden",r&&(e.style.height="auto"))}function o(r){e&&r.target===e&&"height"===r.propertyName&&t()}},[r]),e_.default.createElement("div",{className:"wallet-adapter-collapse",id:e,ref:i,role:"region",style:{height:0,transition:n.current?void 0:"height 250ms ease-out"}},t)},A3=e=>e_.default.createElement("button",{className:`wallet-adapter-button ${e.className||""}`,disabled:e.disabled,style:e.style,onClick:e.onClick,tabIndex:e.tabIndex||0,type:"button"},e.startIcon&&e_.default.createElement("i",{className:"wallet-adapter-button-start-icon"},e.startIcon),e.children,e.endIcon&&e_.default.createElement("i",{className:"wallet-adapter-button-end-icon"},e.endIcon)),A4=({wallet:e,...t})=>e&&e_.default.createElement("img",{src:e.adapter.icon,alt:`${e.adapter.name} icon`,...t}),A5=({handleClick:e,tabIndex:t,wallet:r})=>e_.default.createElement("li",null,e_.default.createElement(A3,{onClick:e,startIcon:e_.default.createElement(A4,{wallet:r}),tabIndex:t},r.adapter.name,r.readyState===U.Installed&&e_.default.createElement("span",null,"Detected"))),A8=()=>e_.default.createElement("svg",{width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e_.default.createElement("circle",{cx:"48.5",cy:"48",r:"48",fill:"url(#paint0_linear_880_5115)",fillOpacity:"0.1"}
871),e_.default.createElement("circle",{cx:"48.5",cy:"48",r:"47",stroke:"url(#paint1_linear_880_5115)",strokeOpacity:"0.4",strokeWidth:"2"}),e_.default.createElement("g",{clipPath:"url(#clip0_880_5115)"},e_.default.createElement("path",{d:"M65.5769 28.1523H31.4231C27.6057 28.1523 24.5 31.258 24.5 35.0754V60.9215C24.5 64.7389 27.6057 67.8446 31.4231 67.8446H65.5769C69.3943 67.8446 72.5 64.7389 72.5 60.9215V35.0754C72.5 31.258 69.3943 28.1523 65.5769 28.1523ZM69.7308 52.1523H59.5769C57.2865 52.1523 55.4231 50.289 55.4231 47.9985C55.4231 45.708 57.2864 43.8446 59.5769 43.8446H69.7308V52.1523ZM69.7308 41.0754H59.5769C55.7595 41.0754 52.6539 44.1811 52.6539 47.9985C52.6539 51.8159 55.7595 54.9215 59.5769 54.9215H69.7308V60.9215C69.7308 63.2119 67.8674 65.0754 65.5769 65.0754H31.4231C29.1327 65.0754 27.2692 63.212 27.2692 60.9215V35.0754C27.2692 32.785 29.1326 30.9215 31.4231 30.9215H65.5769C67.8673 30.9215 69.7308 32.7849 69.7308 35.0754V41.0754Z",fill:"url(#paint2_linear_880_5115)"}),e_.default.createElement("path",{d:"M61.4231 46.6172H59.577C58.8123 46.6172 58.1924 47.2371 58.1924 48.0018C58.1924 48.7665 58.8123 49.3863 59.577 49.3863H61.4231C62.1878 49.3863 62.8077 48.7664 62.8077 48.0018C62.8077 47.2371 62.1878 46.6172 61.4231 46.6172Z",fill:"url(#paint3_linear_880_5115)"})),e_.default.createElement("defs",null,e_.default.createElement("linearGradient",{id:"paint0_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},e_.default.createElement("stop",{stopColor:"#9945FF"}),e_.default.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),e_.default.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),e_.default.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),e_.default.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),e_.default.createElement("stop",{offset:"1",stopColor:"#00D18C"})),e_.default.createElement("linearGradient",{id:"paint1_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},e_.default.createElement("stop",{stopColor:"#9945FF"}),e_.default.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),e_.default.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),e_.default.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),e_.default.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),e_.default.createElement("stop",{offset:"1",stopColor:"#00D18C"})),e_.default.createElement("linearGradient",{id:"paint2_linear_880_5115",x1:"25.9583",y1:"68.7101",x2:"67.2337",y2:"23.7879",gradientUnits:"userSpaceOnUse"},e_.default.createElement("stop",{stopColor:"#9945FF"}),e_.default.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),e_.default.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),e_.default.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),e_.default.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),e_.default.createElement("stop",{offset:"1",stopColor:"#00D18C"})),e_.default.createElement("linearGradient",{id:"paint3_linear_880_5115",x1:"58.3326",y1:"49.4467",x2:"61.0002",y2:"45.4453",gradientUnits:"userSpaceOnUse"},e_.default.createElement("stop",{stopColor:"#9945FF"}),e_.default.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),e_.default.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),e_.default.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),e_.default.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),e_.default.createElement("stop",{offset:"1",stopColor:"#00D18C"})),e_.default.createElement("clipPath",{id:"clip0_880_5115"},e_.default.createElement("rect",{width:"48",height:"48",fill:"white",transform:"translate(24.5 24)"}
871)))),A6=({className:e="",container:t="body"})=>{let r=(0,e_.useRef)(null),{wallets:i,select:n}=(0,AZ.useWallet)(),{setVisible:o}=(0,A1.useWalletModal)(),[a,s]=(0,e_.useState)(!1),[l,c]=(0,e_.useState)(!1),[d,u]=(0,e_.useState)(null),[h,p]=(0,e_.useMemo)(()=>{let e=[],t=[];for(let r of i)r.readyState===U.Installed?e.push(r):t.push(r);return e.length?[e,t]:[t,[]]},[i]),f=(0,e_.useCallback)(()=>{c(!1),setTimeout(()=>o(!1),150)},[o]),g=(0,e_.useCallback)(e=>{e.preventDefault(),f()},[f]),m=(0,e_.useCallback)((e,t)=>{n(t),g(e)},[n,g]),y=(0,e_.useCallback)(()=>s(!a),[a]),b=(0,e_.useCallback)(e=>{let t=r.current;if(!t)return;let i=t.querySelectorAll("button"),n=i[0],o=i[i.length-1];e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault())},[r]);return(0,e_.useLayoutEffect)(()=>{let e=e=>{"Escape"===e.key?f():"Tab"===e.key&&b(e)},{overflow:t}=window.getComputedStyle(document.body);return setTimeout(()=>c(!0),0),document.body.style.overflow="hidden",window.addEventListener("keydown",e,!1),()=>{document.body.style.overflow=t,window.removeEventListener("keydown",e,!1)}},[f,b]),(0,e_.useLayoutEffect)(()=>u(document.querySelector(t)),[t]),d&&(0,yn.createPortal)(e_.default.createElement("div",{"aria-labelledby":"wallet-adapter-modal-title","aria-modal":"true",className:`wallet-adapter-modal ${l&&"wallet-adapter-modal-fade-in"} ${e}`,ref:r,role:"dialog"},e_.default.createElement("div",{className:"wallet-adapter-modal-container"},e_.default.createElement("div",{className:"wallet-adapter-modal-wrapper"},e_.default.createElement("button",{onClick:g,className:"wallet-adapter-modal-button-close"},e_.default.createElement("svg",{width:"14",height:"14"},e_.default.createElement("path",{d:"M14 12.461 8.3 6.772l5.234-5.233L12.006 0 6.772 5.234 1.54 0 0 1.539l5.234 5.233L0 12.006l1.539 1.528L6.772 8.3l5.69 5.7L14 12.461z"}))),h.length?e_.default.createElement(e_.default.Fragment,null,e_.default.createElement("h1",{className:"wallet-adapter-modal-title"},"Connect a wallet on Solana to continue"),e_.default.createElement("ul",{className:"wallet-adapter-modal-list"},h.map(e=>e_.default.createElement(A5,{key:e.adapter.name,handleClick:t=>m(t,e.adapter.name),wallet:e})),p.length?e_.default.createElement(A2,{expanded:a,id:"wallet-adapter-modal-collapse"},p.map(e=>e_.default.createElement(A5,{key:e.adapter.name,handleClick:t=>m(t,e.adapter.name),tabIndex:a?0:-1,wallet:e}))):null),p.length?e_.default.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:y,tabIndex:0},e_.default.createElement("span",null,a?"Less ":"More ","options"),e_.default.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:`${a?"wallet-adapter-modal-list-more-icon-rotate":""}`},e_.default.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))):null):e_.default.createElement(e_.default.Fragment,null,e_.default.createElement("h1",{className:"wallet-adapter-modal-title"},"You'll need a wallet on Solana to continue"),e_.default.createElement("div",{className:"wallet-adapter-modal-middle"},e_.default.createElement(A8,null)),p.length?e_.default.createElement(e_.default.Fragment,null,e_.default.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:y,tabIndex:0},e_.default.createElement("span",null,a?"Hide ":"Already have a wallet? View ","options"),e_.default.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:`${a?"wallet-adapter-modal-list-more-icon-rotate":""}`},e_.default.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))),e_.default.createElement(A2,{expanded:a,id:"wallet-adapter-modal-collapse"},e_.default.createElement("ul",{className:"wallet-adapter-modal-list"},p.map(e=>e_.default.createElement(A5,{key:e.adapter.name,handleClick:t=>m(t,e.adapter.name),tabIndex:a?0:-1,wallet:e}))))):null))),e_.default.createElement("div",{className:"wallet-adapter-modal-overlay",onMouseDown:g})),d)},A7=({children:e,...t})=>{let[r,i]=(0,e_.useState)(!1);return e_.default.createElement(A1.WalletModalContext.Provider,{value:{visible:r,setVisible:i}},e,r&&e_.default.createElement(A6,{...t}))};var A9=e.i(433223);function ke(e){return(0x80000000|e)>>>0}async function kt(e,t){let r=await ki(e,5,0,t);return new rL.PublicKey(r)}async function kr(e,t,r){let i=rI.Buffer.alloc(1);i.writeUInt8(1,0);let n=xA(t)?t.message.serialize():t.serializeMessage(),o=rI.Buffer.concat([i,r,n]);return await ki(e,6,1,o)}async function ki(e,t,r,i){let n=0,o=0;if(i.length>255)for(;i.length-o>255;){let a=i.slice(o,o+255);if(2!==(await e.send(224,t,r,2|n,a)).length)throw new A9.TransportStatusError(A9.StatusCodes.INCORRECT_DATA);n|=1,o+=255}let a=i.slice(o),s=await e.send(224,t,r,n,a);return s.slice(0,s.length-2)}e.i(135929);class kn extends xk{constructor(e={}){super(),this.name="Ledger",this.url="https://ledger.com",this.icon="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzUgMzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0ibTIzLjU4OCAwaC0xNnYyMS41ODNoMjEuNnYtMTZhNS41ODUgNS41ODUgMCAwIDAgLTUuNi01LjU4M3oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUuNzM5KSIvPjxwYXRoIGQ9Im04LjM0MiAwaC0yLjc1N2E1LjU4NSA1LjU4NSAwIDAgMCAtNS41ODUgNS41ODV2Mi43NTdoOC4zNDJ6Ii8+PHBhdGggZD0ibTAgNy41OWg4LjM0MnY4LjM0MmgtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUuNzM5KSIvPjxwYXRoIGQ9Im0xNS4xOCAyMy40NTFoMi43NTdhNS41ODUgNS41ODUgMCAwIDAgNS41ODUtNS42di0yLjY3MWgtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMS40NzggMTEuNDc4KSIvPjxwYXRoIGQ9Im03LjU5IDE1LjE4aDguMzQydjguMzQyaC04LjM0MnoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUuNzM5IDExLjQ3OCkiLz48cGF0aCBkPSJtMCAxNS4xOHYyLjc1N2E1LjU4NSA1LjU4NSAwIDAgMCA1LjU4NSA1LjU4NWgyLjc1N3YtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDExLjQ3OCkiLz48L2c+PC9zdmc+",this.supportedTransactionVersions=new Set(["legacy",0]),this._readyState="u">typeof window&&"u">typeof document&&"u">typeof navigator&&navigator.hid?U.Loadable:U.Unsupported,this._disconnected=()=>{let e=this._transport;e&&(e.off("disconnect",this._disconnected),this._transport=null,this._publicKey=null,this.emit
871("error",new xh),this.emit("disconnect"))},this._derivationPath=e.derivationPath||function(){let e=rI.Buffer.alloc(17),t=e.writeUInt8(4,0);return t=e.writeUInt32BE(ke(44),t),t=e.writeUInt32BE(ke(501),t),t=e.writeUInt32BE(ke(0),t),e.writeUInt32BE(ke(0),t),e}(),this._connecting=!1,this._transport=null,this._publicKey=null}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}async connect(){try{let t,r,i;if(this.connected||this.connecting)return;if(this._readyState!==U.Loadable)throw new xl;this._connecting=!0;try{t=(await e.A(283995)).default}catch(e){throw new xc(e?.message,e)}try{r=await t.create()}catch(e){throw new xu(e?.message,e)}try{i=await kt(r,this._derivationPath)}catch(e){throw new xg(e?.message,e)}r.on("disconnect",this._disconnected),this._transport=r,this._publicKey=i,this.emit("connect",i)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._transport;if(e){e.off("disconnect",this._disconnected),this._transport=null,this._publicKey=null;try{await e.close()}catch(e){this.emit("error",new xp(e?.message,e))}}this.emit("disconnect")}async signTransaction(e){try{let t=this._transport,r=this._publicKey;if(!t||!r)throw new xm;try{let i=await kr(t,e,this._derivationPath);e.addSignature(r,i)}catch(e){throw new xb(e?.message,e)}return e}catch(e){throw this.emit("error",e),e}}}class ko extends xE{constructor({network:e=q.Mainnet}={}){super(),this.name="Salmon",this.url="https://salmonwallet.io",this.icon="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHZpZXdCb3g9IjAgMCA4OCA4OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9Ijg4IiBoZWlnaHQ9Ijg4IiByeD0iMzAiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl84NTVfNTgwKSIvPgo8cGF0aCBkPSJNNTkuODA1NSAyNy42M0M1Ni43OTU1IDI1LjgyMzkgNTMuNjIyMiAyNC41Mzg4IDUwLjM1OTcgMjMuODE0NEw0Ni45MDQyIDE2LjEyODdDNDYuNDkzMyAxNC44NTg1IDQ1LjMwMDIgMTQuMDAwMSA0My45NTM3IDE0LjAwMDFINDMuODE1QzQyLjQ2ODUgMTQuMDAwMSA0MS4yNzU0IDE0Ljg2MzUgNDAuODY0NSAxNi4xMjg3TDM3LjQwOSAyMy44MDk1QzM0LjE0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vZGVmcz4KPC9zdmc+",this.supportedTransactionVersions=null,this._readyState="u"<typeof window||"u"<typeof document?U.Unsupported:U.Loadable,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit
871("error",new xh),this.emit("disconnect"))},this._network=e,this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==U.Unsupported&&xS(()=>!!window.salmon&&(this._readyState=U.Installed,this.emit("readyStateChange",this._readyState),!0))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){return!!this._wallet?.connected}get readyState(){return this._readyState}async connect(){try{let t,r,i;if(this.connected||this.connecting)return;if(this._readyState!==U.Loadable&&this._readyState!==U.Installed)throw new xl;this._connecting=!0;try{t=(await e.A(169759)).default}catch(e){throw new xc(e?.message,e)}try{r=new t({network:this._network})}catch(e){throw new xd(e?.message,e)}if(!r.connected)try{await r.connect()}catch(e){throw new xu(e?.message,e)}if(!r.publicKey)throw new xf;try{i=new rL.PublicKey(r.publicKey.toBytes())}catch(e){throw new xg(e?.message,e)}r.on("disconnect",this._disconnected),this._wallet=r,this._publicKey=i,this.emit("connect",i)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new xp(e?.message,e))}}this.emit("disconnect")}async signTransaction(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signTransaction(e)||e}catch(e){throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signAllTransactions(e)||e}catch(e){throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signMessage(e,"utf8")}catch(e){throw new xv(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}class ka extends xE{constructor(e={}){super(),this.name="Trust",this.url="https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42Myw3LjE4bDI1LjE2LDYuMTJjMTYuNTQsNC4wMSwyNC40OSwxMi40MSwyNC40OSwyNi4wNSwwLDE4Ljg5LTE2LjM4LDMwLjA4LTQ0LjIzLDMwLjA4cy00Ni4yNy0xMi4wNi00Ni4yNy0zMS42NWgtLjAzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0ibTExODEuNjIsMjU5LjR2LTI4LjU1aC03OC4zNXYyOC41NmgyMy4zOHY2My4yMmgzMS41OHYtNjMuMjRoMjMuMzlaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJtODE3LjA4LDI1OS40di0yOC41NWgtNzguMzV2MjguNTZoMjMuMzh2NjMuMjJoMzEuNTh2LTYzLjI0aDIzLjM4WiIvPjwvc3ZnPg==",this.supportedTransactionVersions=null,this._readyState="u"<typeof window||"u"<typeof document?U.Unsupported:U.NotDetected,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new xh),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==U.Unsupported&&xS(()=>!!window.trustwallet?.solana?.isTrust&&(this._readyState=U.Installed,this.emit("readyStateChange",this._readyState),!0))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){return!!this._wallet?.isConnected}get readyState(){return this._readyState}async connect(){try{let e;if(this.connected||this.connecting)return;if(this._readyState!==U.Installed)throw new xl;this._connecting=!0;let t=window.trustwallet.solana;if(!t.isConnected)try{await t.connect()}catch(e){throw new xu(e?.message,e)}if(!t.publicKey)throw new xf;try{e=new rL.PublicKey(t.publicKey.toBytes())}catch(e){throw new xg(e?.message,e)}t.on("disconnect",this._disconnected),this._wallet=t,this._publicKey=e,this.emit("connect",e)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new xp(e?.message,e))}}this.emit("disconnect")}async sendTransaction(e,t,r={}){try{let i=this._wallet;if(!i)throw new xm;try{let{signers:n,...o}=r;e=await this.prepareTransaction(e,t,o),n?.length&&e.partialSign(...n),o.preflightCommitment=o.preflightCommitment||t.commitment;let{signature:a}=await i.signAndSendTransaction(e,o);return a}catch(e){if(e instanceof xs)throw e;throw new xy(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signTransaction(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signTransaction(e)||e}catch(e){throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signAllTransactions(e)||e}catch(e){throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new xm;try{let{signature:r}=await t.signMessage(e);return r}catch(e){throw new xv(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}class ks extends xE{constructor(e={}){super(),this.name="Phantom",this.url="https://phantom.app",this.icon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiB2aWV3Qm94PSIwIDAgMTA4IDEwOCIgZmlsbD0ibm9uZSI+CjxyZWN0IHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiByeD0iMjYiIGZpbGw9IiNBQjlGRjIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ni41MjY3IDY5LjkyMjlDNDIuMDA1NCA3Ni44NTA5IDM0LjQyOTIgODUuNjE4MiAyNC4zNDggODUuNjE4MkMxOS41ODI0IDg1LjYxODIgMTUgODMuNjU2MyAxNSA3NS4xMzQyQzE1IDUzLjQzMDUgNDQuNjMyNiAxOS44MzI3IDcyLjEyNjggMTkuODMyN0M4Ny43NjggMTkuODMyNyA5NCAzMC42ODQ2I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supported:U.NotDetected,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null,this.emit
871("error",new xh),this.emit("disconnect"))},this._accountChanged=e=>{let t=this._publicKey;if(t){try{e=new rL.PublicKey(e.toBytes())}catch(e){this.emit("error",new xg(e?.message,e));return}t.equals(e)||(this._publicKey=e,this.emit("connect",e))}},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==U.Unsupported&&(function(){let e=navigator.userAgent.toLowerCase(),t=e.includes("iphone")||e.includes("ipad"),r=e.includes("safari");return t&&r}()?(this._readyState=U.Loadable,this.emit("readyStateChange",this._readyState)):xS(()=>!!(window?.isPhantomInstalled&&(window.phantom?.solana?.isPhantom||window.solana?.isPhantom))&&(this._readyState=U.Installed,this.emit("readyStateChange",this._readyState),!0)))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}async autoConnect(){this.readyState===U.Installed&&await this.connect()}async connect(){try{let e;if(this.connected||this.connecting)return;if(this.readyState===U.Loadable){let e=encodeURIComponent(window.location.href),t=encodeURIComponent(window.location.origin);window.location.href=`https://phantom.app/ul/browse/${e}?ref=${t}`;return}if(this.readyState!==U.Installed)throw new xl;this._connecting=!0;let t=window.phantom?.solana||window.solana;if(!t.isConnected)try{await t.connect()}catch(e){throw new xu(e?.message,e)}if(!t.publicKey)throw new xf;try{e=new rL.PublicKey(t.publicKey.toBytes())}catch(e){throw new xg(e?.message,e)}t.on("disconnect",this._disconnected),t.on("accountChanged",this._accountChanged),this._wallet=t,this._publicKey=e,this.emit("connect",e)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new xp(e?.message,e))}}this.emit("disconnect")}async sendTransaction(e,t,r={}){try{let i=this._wallet;if(!i)throw new xm;try{let{signers:n,...o}=r;xA(e)?n?.length&&e.sign(n):(e=await this.prepareTransaction(e,t,o),n?.length&&e.partialSign(...n)),o.preflightCommitment=o.preflightCommitment||t.commitment;let{signature:a}=await i.signAndSendTransaction(e,o);return a}catch(e){if(e instanceof xs)throw e;throw new xy(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signTransaction(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signTransaction(e)||e}catch(e){throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new xm;try{return await t.signAllTransactions(e)||e}catch(e){throw new xb(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new xm;try{let{signature:r}=await t.signMessage(e);return r}catch(e){throw new xv(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}let kl="WarpE2EMock";function kc(){let{wallets:e,select:t,wallet:r}=(0,AZ.useWallet)();return(0,e_.useEffect)(()=>{let i=e.find(e=>e.adapter.name===kl);i&&(r&&r.adapter.name===kl||t(i.adapter.name))},[e]),null}let kd=new Uint8Array(32).fill(226),ku="e2e"+"1".repeat(85);class kh extends xE{name="WarpE2EMock";url="https://hyperlane.xyz";icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=";readyState=U.Installed;publicKey=null;connecting=!1;supportedTransactionVersions=new Set([0,"legacy"]);async connect(){this.connected||(this.connecting=!0,this.publicKey=rL.Keypair.fromSeed(kd).publicKey,this.emit("connect",this.publicKey),this.connecting=!1)}async disconnect(){this.publicKey=null,this.emit("disconnect")}async signTransaction(e){return kp(e),e}async signMessage(e){let t=new Uint8Array(64);for(let r=0;r<64;r++)t[r]=(226^e[r%e.length])&255;return t}async sendTransaction(e,t,r){return kp(e),ku}}function kp(e){try{let t,r="serialize"in e?e.serialize({requireAllSignatures:!1,verifySignatures:!1}):new Uint8Array,i=function(e){if("function"==typeof window.btoa){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return window.btoa(t)}return""}(r),n=[];if("message"in e&&e.message){let r=e.message;t=r.staticAccountKeys?.[0]?.toBase58(),n=r.compiledInstructions.map(e=>
871r.staticAccountKeys[e.programIdIndex].toBase58())}else"instructions"in e&&(t=e.feePayer?.toBase58(),n=e.instructions.map(e=>e.programId.toBase58()));(0,rF.pushSolanaTx)({feePayer:t,serializedBase64:i,programIds:n})}catch(e){console.error("Failed to capture mock Solana tx",e)}}function kf({children:e}){let t=q.Mainnet,r=(0,e_.useMemo)(()=>(0,rL.clusterApiUrl)(t),[t]),i=(0,wd.isE2EMode)(),n=(0,e_.useMemo)(()=>{let e=[new ks,new xM,new ko,new xo.SnapWalletAdapter,new ka,new kn];return i?[new kh]:e},[t,i]),o=(0,e_.useCallback)(e=>{eY.logger.error("Error initializing Solana wallet provider",e),eq.toast.error("Error preparing Solana wallet")},[]);return(0,eN.jsx)(xN,{endpoint:r,children:(0,eN.jsx)(A0,{wallets:n,onError:o,autoConnect:!0,children:(0,eN.jsxs)(A7,{children:[i&&(0,eN.jsx)(kc,{}),e]})})})}var kg=e.i(22816),km=e.i(205870),ky=e.i(555290);e.i(164736),e.i(235834);var kb=e.i(616828);function kv(){let{connect:e,connectors:t,status:r}=(0,ky.useConnect)(),{isConnected:i}=(0,ky.useAccount)();return(0,e_.useEffect)(()=>{if(i||"pending"===r)return;let n=t.find(e=>"warp-e2e-mock-starknet"===e.id);n&&e({connector:n})},[e,t,i,r]),null}let kw="0x07e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2",kx=(0,kg.chainMetadataToStarknetChain)({blockExplorers:[{apiUrl:"https://sepolia.voyager.online/api",family:"voyager",name:"Starknet Sepolia Explorer",url:"https://sepolia.voyager.online"}],blocks:{confirmations:1,estimateBlockTime:30,reorgPeriod:1},chainId:"0x534e5f5345504f4c4941",deployer:{name:"Abacus Works",url:"https://www.hyperlane.xyz"},displayName:"Starknet Sepolia",domainId:0x165cc0f,isTestnet:!0,name:"starknetsepolia",nativeToken:{decimals:18,denom:"0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",name:"StarkNet Token",symbol:"STRK"},protocol:"starknet",rpcUrls:[{http:"https://starknet-sepolia-rpc.publicnode.com"},{http:"https://rpc.starknet-testnet.lava.build/"}]}),kS=(0,ky.publicProvider)(),kA=(0,ky.paymasterRpcProvider)({rpc:e=>{let t=e.rpcUrls.public.http[0]??e.rpcUrls.default.http[0];return t?{nodeUrl:t}:null}});function kk({children:e}){let t=(0,e1.useMultiProvider)(),r=(0,wd.isE2EMode)(),i=(0,e_.useMemo)(()=>{let e,t=[new kb.I({options:{id:"braavos",name:"Braavos"}}),new kb.I({options:{id:"argentX",name:"Ready Wallet (formerly Argent)",icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iOCIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTE4LjQwMTggNy41NTU1NkgxMy41OTgyQzEzLjQzNzcgNy41NTU1NiAxMy4zMDkxIDcuNjg3NDcgMTMuMzA1NiA3Ljg1MTQzQzEzLjIwODUgMTIuNDYwMyAxMC44NDg0IDE2LjgzNDcgNi43ODYwOCAxOS45MzMxQzYuNjU3MTEgMjAuMDMxNCA2LjYyNzczIDIwLjIxNjIgNi43MjIwMiAyMC4zNDkzTDkuNTMyNTMgMjQuMzE5NkM5LjYyODE1IDI0LjQ1NDggOS44MTQ0NCAyNC40ODUzIDkuOTQ1NTggMj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C45MTQwMkwyNS4xNjIxIDEwLjQ4ODVDMjUuMDk2MSAxMC43MDY1IDI0Ljc5MyAxMC43MDg4IDI0LjcyMzYgMTAuNDkyWiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}}),new kb.I({options:{id:"keplr",name:"Keplr"}}),new kb.I({options:{id:"metamask",name:"MetaMask Snap"}}),new kb.I({options:{id:"okxwallet",name:"OKX"}})];return r?[(e={address:kw,cairoVersion:"1",transactionVersion:"0x3",deploySelf:async()=>({transaction_hash:"0x0",contract_address:kw}),estimateAccountDeployFee:async()=>({suggestedMaxFee:0n,resourceBounds:{},gas_consumed:0n,gas_price:0n,overall_fee:0n,unit:"WEI"}),execute:async()=>({transaction_hash:"0x0"}),signMessage:async()=>["0x0","0x0"]},new ky.MockConnector({accounts:{mainnet:[e],sepolia:[e]},options:{id:"warp-e2e-mock-starknet",name:"Warp E2E Mock (Starknet)",available:!0}}))]:t},[r]),n=(0,e_.useMemo)(()=>Array.from([...(0,km.getStarknetChains)(t),kx].reduce((e,t)=>
871(e.has(t.id)||e.set(t.id,t),e),new Map).values()),[t]);return(0,eN.jsxs)(ky.StarknetConfig,{chains:n,provider:kS,paymasterProvider:kA,connectors:i,explorer:ky.voyager,autoConnect:!0,children:[r&&(0,eN.jsx)(kv,{}),e]})}var kE=e.i(989509),kI=e.i(730766),kM=e.i(532475),kT=e.i(942317),kN=function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};let k_={wallet:null,address:null,connected:!1,adapter:null},kC=function({children:e,adapters:t=null,onError:r=e=>console.error(e),onReadyStateChanged:i,onConnect:n,onDisconnect:o,onAccountsChanged:a,onChainChanged:s,onAdapterChanged:l,localStorageKey:c="tronAdapterName",autoConnect:d=!0,disableAutoConnectOnLoad:u=!1}){let[h,p]=function(e){let[t,r]=(0,e_.useState)(()=>{try{let t=localStorage.getItem(e);if(t)return JSON.parse(t)}catch(e){(0,kT.isInBrowser)()&&console.error(e)}return null}),i=(0,e_.useRef)(!0);return(0,e_.useEffect)(()=>{if(i.current){i.current=!1;return}try{null===t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))}catch(e){(0,kT.isInBrowser)()&&console.error(e)}},[t,e]),[t,r]}(c),[{wallet:f,connected:g,address:m,adapter:y},b]=(0,e_.useState)(k_),[v,w]=(0,e_.useState)(!1),[x,S]=(0,e_.useState)(!1),A=(0,e_.useRef)(!1),k=(0,e_.useRef)(!1),E=(0,e_.useMemo)(()=>null===t?[new kI.TronLinkAdapter]:t,[t]),[I,M]=(0,e_.useState)(()=>E.map(e=>({adapter:e,state:e.state})));(0,e_.useEffect)(function(){function e(){M(e=>{let t=e.findIndex(e=>e.adapter===this);return -1===t?e:e.map((e,r)=>r===t?Object.assign(Object.assign({},e),{state:e.adapter.state}):e)})}return M(e=>E.map((t,r)=>{let i=e[r];return i&&i.adapter===t&&i.state===t.state?i:{adapter:t,state:t.state}}
871)),E.forEach(t=>t.on("stateChanged",e,t)),()=>E.forEach(t=>t.off("stateChanged",e,t))},[E]),(0,e_.useEffect)(function(){let e=h&&I.find(e=>e.adapter.name===h);e?b({wallet:e,adapter:e.adapter,connected:e.adapter.connected,address:e.adapter.address}):b(k_)},[h,I]);let T=(0,e_.useRef)(null);(0,e_.useEffect)(function(){y!==T.current&&(null==l||l(y),T.current=y)},[y,l]);let N=(0,e_.useCallback)(function(e){if(!y)return p(null);b(e=>Object.assign(Object.assign({},e),{connected:y.connected,address:y.address})),null==n||n(e)},[y,p,n]),_=(0,e_.useCallback)(function(e){return r(e),e},[r]),C=(0,e_.useCallback)(function(e,t){b(t=>{var r;return Object.assign(Object.assign({},t),{address:e||null,connected:!!(null==(r=t.adapter)?void 0:r.connected)})}),null==a||a(e,t)},[a]),O=(0,e_.useCallback)(function(){b(e=>{var t,r,i;return Object.assign(Object.assign({},e),{address:null!=(r=null==(t=e.adapter)?void 0:t.address)?r:null,connected:!!(null==(i=e.adapter)?void 0:i.connected)})}),null==o||o()},[o]),P=(0,e_.useCallback)(function(e){null==i||i(e)},[i]),D=(0,e_.useCallback)(function(e){null==s||s(e)},[s]);(0,e_.useEffect)(function(){if(y)return y.on("connect",N),y.on("error",_),y.on("accountsChanged",C),y.on("chainChanged",D),y.on("readyStateChanged",P),y.on("disconnect",O),()=>{y.off("connect",N),y.off("error",_),y.off("accountsChanged",C),y.off("chainChanged",D),y.off("readyStateChanged",P),y.off("disconnect",O)}},[y,N,_,C,D,P,O]),(0,e_.useEffect)(()=>()=>{null==y||y.disconnect().catch(e=>{console.warn(`[${y.name}]: Failed to disconnect the previous wallet.`,e)})},[y]);let j=(0,e_.useRef)(!1);(0,e_.useEffect)(function(){let e=d&&(!u||j.current);!A.current&&e&&y&&function(){kN(this,void 0,void 0,function*(){A.current=!0,w(!0);try{yield y.connect()}catch(e){}finally{w(!1),A.current=!1}})}()},[A,d,y,p,u]);let R=(0,e_.useCallback)(e=>{j.current=!0,p(e)},[p]),z=(0,e_.useCallback)(function(){return kN(this,void 0,void 0,function*(){if(!A.current&&!k.current&&!g){if(!y)throw _(new kE.WalletNotSelectedError);A.current=!0,w(!0);try{yield y.connect()}catch(e){throw p(null),e}finally{w(!1),A.current=!1}}})},[A,k,y,g,_,p]),L=(0,e_.useCallback)(function(){return kN(this,void 0,void 0,function*(){if(!k.current){if(!y)return p(null);k.current=!0,S(!0);try{yield y.disconnect(),p(null)}catch(e){throw p(null),e}finally{S(!1),k.current=!1}}})},[y,k,p]),B=(0,e_.useCallback)(function(e){return kN(this,void 0,void 0,function*(){if(!y)throw _(new kE.WalletNotSelectedError);return yield y.signTransaction(e)})},[y,_]),U=(0,e_.useCallback)(function(e){return kN(this,void 0,void 0,function*(){if(!y)throw _(new kE.WalletNotSelectedError);return yield y.signMessage(e)})},[y,_]);return e_.default.createElement(kM.WalletContext.Provider,{value:{disableAutoConnectOnLoad:u,autoConnect:d,wallets:I,wallet:f,address:m,connecting:v,connected:g,disconnecting:x,select:R,connect:z,disconnect:L,signTransaction:B,signMessage:U}},e)},kO="WarpE2EMockTron";function kP(){let{wallets:e,wallet:t,select:r,connect:i,connected:n,connecting:o}=(0,kM.useWallet)();return(0,e_.useEffect)(()=>{if(!n&&!o&&e?.some(e=>e.adapter.name===kO)){if(t?.adapter.name!==kO)return void r(kO);i().catch(()=>{})}},[e,t,r,i,n,o]),null}var kD=e.i(567244),kj=e.i(841933);let kR="TE2EE2EE2EE2EE2EE2EE2EE2EE2EE2EE2E";class kz extends kD.Adapter{name="WarpE2EMockTron";url="https://hyperlane.xyz";icon="";readyState=kj.WalletReadyState.Found;state=kj.AdapterState.Disconnect;address=null;connecting=!1;get connected(){return this.state===kj.AdapterState.Connected}async connect(){this.connected||(this.connecting=!0,this.address=kR,this.state=kj.AdapterState.Connected,this.connecting=!1,this.emit("connect",kR),this.emit("stateChanged",kj.AdapterState.Connected))}async disconnect(){this.address=null,this.state=kj.AdapterState.Disconnect,this.emit("disconnect"),this.emit("stateChanged",kj.AdapterState.Disconnect)}async signMessage(e){return"0x"+rI.Buffer.from(e).toString("hex").padEnd(130,"0").slice(0,130)}async signTransaction(e){return{...e,signature:["0x"+"e2".repeat(32)]}}async switchChain(e){}}function kL({children:e}){let t=(0,wd.isE2EMode)(),r=(0,e_.useMemo)(()=>{let e=[new kI.TronLinkAdapter];return t?[new kz]:e},[t]);return(0,eN.jsxs)(kC,{adapters:r,autoConnect:!1,children:[t&&(0,eN.jsx)(kP,{}),e]})}var kB=e.i(306176);
871class kU extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function kq(e,t="Assertion failed.",r=kU){if(!e){if(t instanceof Error)throw t;throw"string"==typeof r?.prototype?.constructor?.name?new r({message:t}):r({message:t})}}var kW=e.i(216991);let kH=()=>void 0;class kV extends kW.Duplex{constructor(e){super(Object.assign({objectMode:!0},e)),this._init=!1,this._haveSyn=!1,this._log=()=>null}_handshake(){this._write("SYN",null,kH),this.cork()}_onData(e){if(this._init)try{this.push(e),this._log(e,!1)}catch(e){this.emit("error",e)}else"SYN"===e?(this._haveSyn=!0,this._write("ACK",null,kH)):"ACK"===e&&(this._init=!0,this._haveSyn||this._write("ACK",null,kH),this.uncork())}_read(){}_write(e,t,r){"ACK"!==e&&"SYN"!==e&&this._log(e,!0),this._postMessage(e),r()}_setLogger(e){this._log=e}}function kK(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}let kF=(e,t)=>Object.hasOwnProperty.call(e,t);(T=el=el||(el={}))[T.Null=4]="Null",T[T.Comma=1]="Comma",T[T.Wrapper=1]="Wrapper",T[T.True=4]="True",T[T.False=5]="False",T[T.Quote=1]="Quote",T[T.Colon=1]="Colon",T[T.Date=24]="Date";var kY=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};let kJ=null==(ec=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"source"))?void 0:ec.get;kq(kJ,"MessageEvent.prototype.source getter is not defined.");let kG=null==(ed=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"origin"))?void 0:ed.get;kq(kG,"MessageEvent.prototype.origin getter is not defined.");new WeakMap,new WeakMap;let kQ=Math.floor(0xffffffff*Math.random());var kZ=e.i(266622);class kX extends TypeError{constructor(e,t){let r;const{message:i,explanation:n,...o}=e,{path:a}=e,s=0===a.length?i:`At path: ${a.join(".")} -- ${i}`;super(n??s),null!=n&&(this.cause=s),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function k$(e){return"object"==typeof e&&null!==e}function k0(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function*k1(e,t,r,i){var n;for(let o of(k$(n=e)&&"function"==typeof n[Symbol.iterator]||(e=[e]),e)){let e=function(e,t,r,i){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:n,branch:o}=t,{type:a}=r,{refinement:s,message:l=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${k0(i)}\``}=e;return{value:i,type:a,refinement:s,key:n[n.length-1],path:n,branch:o,...e,message:l}}(o,t,r,i);e&&(yield e)}}function*k2(e,t,r={}){let{path:i=[],branch:n=[e],coerce:o=!1,mask:a=!1}=r,s={path:i,branch:n};if(o&&(e=t.coercer(e,s),a&&"type"!==t.type&&k$(t.schema)&&k$(e)&&!Array.isArray(e)))for(let r in e)void 0===t.schema[r]&&delete e[r];let l="valid";for(let i of t.validator(e,s))i.explanation=r.message,l="not_valid",yield[i,void 0];for(let[c,d,u]of t.entries(e,s))for(let t of k2(d,u,{path:void 0===c?i:[...i,c],branch:void 0===c?n:[...n,d],coerce:o,mask:a,message:r.message}))t[0]?(l=null===t[0].refinement||void 0===t[0].refinement?"not_valid":"not_refined",yield[t[0],void 0]):o&&(d=t[1],void 0===c?e=d:e instanceof Map?e.set(c,d):e instanceof Set?e.add(d):k$(e)&&(void 0!==d||c in e)&&(e[c]=d));if("not_valid"!==l)for(let i of t.refiner(e,s))i.explanation=r.message,l="not_refined",yield[i,void 0];"valid"===l&&(yield[void 0,e])}class k3{constructor(e){const{type:t,schema:r,validator:i,refiner:n,coercer:o=e=>e,entries:a=function*(){}}=e;for(const s of(this.type=t,this.schema=r,this.entries=a,this.coercer=o,i?this.validator=(e,t)=>k1(i(e,t),t,this,e):this.validator=()=>[],n?this.refiner=(e,t)=>k1(n(e,t),t,this,e):this.refiner=()=>[],Object.getOwnPropertySymbols(e)))Object.defineProperty(this,s,Object.getOwnPropertyDescriptor(e,s))}assert(e,t){var r=e,i=this,n=t;let o=k7(r,i,{message:n});if(o[0])throw o[0]}create(e,t){return k8(e,this,t)}is(e){return k6(e,this)}mask(e,t){var r=e,i=this,n=t;let o=k7(r,i,{coerce:!0,mask:!0,message:n});if(!o[0])return o[1];throw o[0]}validate(e,t={}){return k7(e,this,t)}}let k4="EXACT_OPTIONAL";class k5 extends k3{constructor(e){super({...e,type:`exact optional ${e.type}`}),this.brand=k4}static isExactOptional(e){return k$(e)&&"brand"in e&&e.brand===k4}}function k8(e,t,r){let i=k7(e,t,{coerce:!0,message:r});if(!i[0])return i[1];throw i[0]}function k6(e,t){return!k7(e,t)[0]}function k7(e,t,r={}){let i=k2(e,t,r),n=function(e){let{done:t,value:r}=e.next();return t?void 0:r}(i);return n[0]?[new kX(n[0],function*(){for(let e of i)e[0]&&(yield e[0])}),void 0]:[void 0,n[1]]}let k9=Symbol.for("superstruct.sensitive");function Ee(e,t){return new k3({type:e,schema:null,validator:t})}function Et(e){let t,r=e?Object.keys(e):[],i=Ee("never",()=>!1),n=new k3({type:"object",schema:e??null,*entries(t){if(e&&k$(t)){let n=new Set(Object.keys(t));for(let i of r){n.delete(i);let r=e[i];(!k5.isExactOptional(r)||Object.prototype.hasOwnProperty.call(t,i))&&(yield[i,t[i],e[i]])}for(let e of n)yield[e,t[e],i]}},validator:e=>k$(e)||`Expected an object, but received: ${k0(e)}`,coercer:e=>k$(e)?{...e}:e});return e?0===(t=Object.keys(e).filter(t=>{var r;return void 0!==e[t]&&(r=e[t],Object.prototype.hasOwnProperty.call(r,k9))})).length?n:new k3({...n,*entries(e,r){let i=r.branch[r.branch.length-1]??e;for(let o of n.entries(e,r)){let[e,r,n]=o;yield[e,r,function e(t,r,i){function*n(e){for(let t of e){if(!k$(r)){yield t;continue}let e=t.branch.indexOf(r);if(-1===e){yield t;continue}let n=[...t.branch];n[e]=function(e,t){let r={...e};for(let e of t)e in r&&(r[e]="***");return r}(r,i);for(let r=e-1;r>=0;r--){let e=n[r];if(!k$(e))break;let i=t.branch[r+1],o=n[r+1];if(Array.isArray(e)){let t=e.indexOf(i);if(-1===t)break;let a=[...e];a[t]=o,n[r]=a}else if(e instanceof Map){let t,a=!1;for(let[r,n]of e)if(n===i){t=r,a=!0;break}if(!a)break;let s=new Map(e);s.set(t,o),n[r]=s}else{let t=Object.keys(e).find(t=>e[t]===i);if(void 0===t)break;n[r]={...e,[t]:o}}}yield{...t,branch:n}}}return new k3({...t,validator:(e,r)=>n(t.validator(e,r)),refiner:(e,r)=>n(t.refiner(e,r)),*entries(n,o){for(let a of t.entries(n,o)){let[t,n,o]=a;yield[t,n,e(o,r,i)]}}})}
871(n,i,t)]}}}):n}function Er(e){return new k3({...e,validator:(t,r)=>void 0===t||e.validator(t,r),refiner:(t,r)=>void 0===t||e.refiner(t,r)})}function Ei(){return Ee("string",e=>"string"==typeof e||`Expected a string, but received: ${k0(e)}`)}function En(e){let t=e.map(e=>e.type).join(" | ");return new k3({type:"union",schema:null,coercer(t){for(let r of e){let[e,i]=r.validate(t,{coerce:!0});if(!e)return i}return t},validator(r,i){let n=[];for(let t of e){let[...e]=k2(r,t,i),[o]=e;if(!o?.[0])return[];for(let[t]of e)t&&n.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${k0(r)}`,...n]}})}function Eo({path:e,branch:t}){let r=e[e.length-1];return kF(t[t.length-2],r)}function Ea(e){return new k3({...e,type:`optional ${e.type}`,validator:(t,r)=>!Eo(r)||e.validator(t,r),refiner:(t,r)=>!Eo(r)||e.refiner(t,r)})}let Es=Ee("JSON",e=>(function e(t){if(null===t||"boolean"==typeof t||"string"==typeof t||"number"==typeof t&&Number.isFinite(t))return!0;if("object"==typeof t){let r=!0;if(Array.isArray(t)){for(let i=0;i<t.length;i++)if(!e(t[i])){r=!1;break}return r}let i=Object.entries(t);for(let t=0;t<i.length;t++)if("string"!=typeof i[t][0]||!e(i[t][1])){r=!1;break}return r}return!1})(e)),El=(N=Ee("any",()=>!0),_=e=>k6(e,Es),C=new k3({...N,*refiner(e,t){for(let r of(yield*N.refiner(e,t),k1(_(e),t,N,e)))yield{...r,refinement:"JSON"}}}),O=e=>JSON.parse(JSON.stringify(e,(e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t})),new k3({...Es,coercer:(e,t)=>k6(e,C)?Es.coercer(O(e),t):Es.coercer(e,t)}));function Ec(e){try{var t;return t=e,k8(t,El),!0}catch{return!1}}let Ed=(f=k0("2.0"),new k3({type:"literal",schema:"string"==(g="string")?"2.0":null,validator:e=>"2.0"===e||`Expected the literal \`${f}\`, but received: ${k0(e)}`})),Eu=new k3({...P=En([Ee("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${k0(e)}`),Ei()]),validator:(e,t)=>null===e||P.validator(e,t),refiner:(e,t)=>null===e||P.refiner(e,t)}),Eh=Et({code:Ee("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${k0(e)}`),message:Ei(),data:Ea(El),stack:Ea(Ei())}),Ep=En([(D=Ei(),new k3({type:"record",schema:null,*entries(e){if(k$(e))for(let t in e){let r=e[t];yield[t,t,D],yield[t,r,El]}},validator:e=>k$(e)||`Expected an object, but received: ${k0(e)}`})),new k3({type:"array",schema:El,*entries(e){if(El&&Array.isArray(e))for(let[t,r]of e.entries())yield[t,r,El]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${k0(e)}`})]),Ef=Et({id:Eu,jsonrpc:Ed,method:Ei(),params:Ea(Ep)}),Eg=Et({jsonrpc:Ed,method:Ei(),params:Ea(Ep)});Et({id:Eu,jsonrpc:Ed,result:Er(Ee("unknown",()=>!0)),error:Er(Eh)});let Em=Et({id:Eu,jsonrpc:Ed,result:El});En([Em,Et({id:Eu,jsonrpc:Ed,error:Eh})]);let Ey=-32600,Eb=-32603,Ev={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}},Ew=Eb,Ex={code:Ew,message:ES(Ew)};function ES(e,t="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){var r;let t=e.toString();if(kF(Ev,t))return Ev[t].message;if((r=e)>=-32099&&r<=-32e3)return"Unspecified server error."}return t}function EA(e,{fallbackError:t=Ex,shouldIncludeStack:r=!0,shouldPreserveMessage:i=!0}={}
871){if(!k6(t,Eh))throw Error("Must provide fallback error with integer number code and string message.");let n=function(e,t,r){if(e&&"object"==typeof e&&"serialize"in e&&"function"==typeof e.serialize)return e.serialize();if(k6(e,Eh))return e;let i=function(e){if(kK(e)&&kF(e,"message")&&"string"==typeof e.message&&e.message.length>0)return e.message}(e),n=Ek(e);return{...t,...r&&i&&{message:i},data:{cause:n}}}(e,t,i);return r||delete n.stack,n}function Ek(e){return Array.isArray(e)?e.map(e=>Ec(e)?e:kK(e)?EE(e):null):kK(e)?EE(e):Ec(e)?e:null}function EE(e){return Object.getOwnPropertyNames(e).reduce((t,r)=>{let i=e[r];return Ec(i)&&(t[r]=i),t},{})}let EI=(j=kZ.default,j?.__esModule?j.default:j);class EM extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a non-empty string.');!function(e){return kK(e)&&kF(e,"cause")&&kK(e.cause)}(r)?super(t):(super(t,{cause:r.cause}),kF(this,"cause")||Object.assign(this,{cause:r.cause})),void 0!==r&&(this.data=r),this.code=e}serialize(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data,function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}(this.data)&&(e.data.cause=Ek(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return EI(this.serialize(),ET,2)}}function ET(e,t){if("[Circular]"!==t)return t}function EN(e,t){let[r,i]=function(e){if(e){if("string"==typeof e)return[e];else if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t??void 0,r]}}return[]}(t);return new EM(e,r??ES(e),i)}let E_={errors:{disconnected:()=>"MetaMask: Disconnected from chain. Attempting to connect.",permanentlyDisconnected:()=>"MetaMask: Disconnected from MetaMask background. Page reload required.",sendSiteMetadata:()=>"MetaMask: Failed to send site metadata. This is an internal error, please report this bug.",unsupportedSync:e=>`MetaMask: The MetaMask Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidNetworkParams:()=>"MetaMask: Received invalid network parameters. Please report this bug.",invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`MetaMask: Connected to chain with ID "${e}".`},warnings:{enableDeprecation:`MetaMask: 'ethereum.enable()' is deprecated and may be removed in the future. Please use the 'eth_requestAccounts' RPC method instead.
872For more information, see: https://eips.ethereum.org/EIPS/eip-1102`,sendDeprecation:`MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead.
873For more information, see: https://eips.ethereum.org/EIPS/eip-1193`,events:{close:`MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead.
874For more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect`,data:`MetaMask: The event 'data' is deprecated and will be removed in the future. Use 'message' instead.
875For more information, see: https://eips.ethereum.org/EIPS/eip-1193#message`,networkChanged:`MetaMask: The event 'networkChanged' is deprecated and may be removed in the future. Use 'chainChanged' instead.
876For more information, see: https://eips.ethereum.org/EIPS/eip-1193#chainchanged`,notification:`MetaMask: The event 'notification' is deprecated and may be removed in the future. Use 'message' instead.
877For more information, see: https://eips.ethereum.org/EIPS/eip-1193#message`},rpc:{ethDecryptDeprecation:`MetaMask: The RPC method 'eth_decrypt' is deprecated and may be removed in the future.
878For more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686`,ethGetEncryptionPublicKeyDeprecation:`MetaMask: The RPC method 'eth_getEncryptionPublicKey' is deprecated and may be removed in the future.
879For more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686`,walletWatchAssetNFTExperimental:`MetaMask: The RPC method 'wallet_watchAsset' is experimental for ERC721/ERC1155 assets and may change in the future.
880For more information, see: https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-1.md and https://github.com/MetaMask/metamask-improvement-proposals/blob/main/PROCESS-GUIDE.md#proposal-lifecycle`},experimentalMethods:"MetaMask: 'ethereum._metamask' exposes non-standard, experimental methods. They may be removed or changed without warning."}},EC=/(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u,EO=/(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9]\.)+[a-zA-Z]{2,63}$)/u,EP=/^(\d*[1-9]\d*|0)$/u,ED=Object.freeze(["eth_subscription"]),Ej=(e,t,r=!0)=>(i,n)=>{i||n.error?t(i||n.error):!r||Array.isArray(n)?e(n):e(n.result)},ER=e=>!!e&&"string"==typeof e&&e.startsWith("0x"),Ez=()=>void 0;function EL(e){return kK(e)&&"string"==typeof e.type&&!!e.type}function EB(e){throw Error(`${e} See https://github.com/ChainAgnostic/CAIPs/blob/bc4942857a8e04593ed92f7dc66653577a1c4435/CAIPs/caip-294.md for requirements.`)}function EU(e){throw Error(`${e} See https://eips.ethereum.org/EIPS/eip-6963 for requirements.`)}async function Eq(e,t){try{let t=await EW();
880e.handle({jsonrpc:"2.0",id:1,method:"metamask_sendDomainMetadata",params:t},Ez)}catch(e){t.error({message:E_.errors.sendSiteMetadata(),originalError:e})}}async function EW(){return{name:function(e){let{document:t}=e,r=t.querySelector('head > meta[property="og:site_name"]');if(r)return r.content;let i=t.querySelector('head > meta[name="title"]');return i?i.content:t.title&&t.title.length>0?t.title:window.location.hostname}(window),icon:await EH(window)}}async function EH(e){let{document:t}=e;for(let e of Array.from(t.querySelectorAll('head > link[rel~="icon"]')))if(e&&await EV(e.href))return e.href;return null}async function EV(e){return new Promise((t,r)=>{try{let r=document.createElement("img");r.onload=()=>t(!0),r.onerror=()=>t(!1),r.src=e}catch(e){r(e)}})}(R=eu||(eu={})).Announce="caip294:wallet_announce",R.Prompt="caip294:wallet_prompt",(z=eh||(eh={})).Announce="eip6963:announceProvider",z.Request="eip6963:requestProvider";var EK=yj;function EF(e,t,r){try{Reflect.apply(e,t,r)}catch(e){setTimeout(()=>{throw e})}}class EY extends EK.EventEmitter{emit(e,...t){let r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;let r=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw r.context=e,r}let n=i[e];if(void 0===n)return!1;if("function"==typeof n)EF(n,this,t);else{let e=n.length,r=function(e){let t=e.length,r=Array(t);for(let i=0;i<t;i+=1)r[i]=e[i];return r}(n);for(let i=0;i<e;i+=1)EF(r[i],this,t)}return!0}}var EJ=e.i(503716);function EG(e){return JSON.stringify(e,null,2)}Symbol.for("json-rpc-engine#JsonRpcEngineError");var EQ=function(e,t,r,i,n){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,r):n?n.value=r:t.set(e,r),r},EZ=function(e,t,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)};class EX extends EY{constructor({notificationHandler:e}={}){super(),ep.add(this),eg.set(this,!1),em.set(this,void 0),ey.set(this,void 0),EQ(this,em,[],"f"),EQ(this,ey,e,"f")}destroy(){EZ(this,em,"f").forEach(e=>{"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}),EQ(this,em,[],"f"),EQ(this,eg,!0,"f")}push(e){EZ(this,ep,"m",eb).call(this),EZ(this,em,"f").push(e)}handle(e,t){if(EZ(this,ep,"m",eb).call(this),t&&"function"!=typeof t)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?t?EZ(this,ep,"m",ev).call(this,e,t):EZ(this,ep,"m",ev).call(this,e):t?EZ(this,ep,"m",ew).call(this,e,t):this._promiseHandle(e)}asMiddleware(){return EZ(this,ep,"m",eb).call(this),async(e,t,r,i)=>{try{let[n,o,a]=await EZ(ef,ef,"m",eS).call(ef,e,t,EZ(this,em,"f"));if(o)return await EZ(ef,ef,"m",ek).call(ef,a),i(n);return r(async e=>{try{await EZ(ef,ef,"m",ek).call(ef,a)}catch(t){return e(t)}return e()})}catch(e){return i(e)}}}async _promiseHandle(e){return new Promise((t,r)=>{EZ(this,ep,"m",ew).call(this,e,(e,i)=>{e&&void 0===i?r(e):t(i)}).catch(r)})}}ef=EX,eg=new WeakMap,em=new WeakMap,ey=new WeakMap,ep=new WeakSet,eb=function(){if(EZ(this,eg,"f"))throw Error("This engine is destroyed and can no longer be used.")},ev=async function(e,t){try{if(0===e.length){let e=[{id:null,jsonrpc:"2.0",error:new EM(Ey,"Request batch must contain plain objects. Received an empty array")}];if(t)return t(null,e);return e}let r=(await Promise.all(e.map(this._promiseHandle.bind(this)))).filter(e=>void 0!==e);if(t)return t(null,r);return r}catch(e){if(t)return t(e);throw e}},ew=async function(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){let r=new EM(Ey,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(r,{id:null,jsonrpc:"2.0",error:r})}if("string"!=typeof e.method){let r=new EM(Ey,`Must specify a string method. Received: ${typeof e.method}`,{request:e});
880return EZ(this,ey,"f")&&!k6(e,Ef)?t(null):t(r,{id:e.id??null,jsonrpc:"2.0",error:r})}if(EZ(this,ey,"f")&&k6(e,Eg)&&!k6(e,Ef)){try{await EZ(this,ey,"f").call(this,e)}catch(e){return t(e)}return t(null)}let r=null,i={...e},n={id:i.id,jsonrpc:i.jsonrpc};try{await EZ(ef,ef,"m",ex).call(ef,i,n,EZ(this,em,"f"))}catch(e){r=e}return r&&(delete n.result,n.error??(n.error=EA(r))),t(r,n)},ex=async function(e,t,r){let[i,n,o]=await EZ(ef,ef,"m",eS).call(ef,e,t,r);if(EZ(ef,ef,"m",eE).call(ef,e,t,n),await EZ(ef,ef,"m",ek).call(ef,o),i)throw i},eS=async function(e,t,r){let i=[],n=null,o=!1;for(let a of r)if([n,o]=await EZ(ef,ef,"m",eA).call(ef,e,t,a,i),o)break;return[n,o,i.reverse()]},eA=async function(e,t,r,i){return new Promise(n=>{let o=e=>{let r=e??t.error;r&&(t.error=EA(r)),n([r,!0])};try{r(e,t,r=>{t.error?o(t.error):(r&&("function"!=typeof r&&o(new EM(Eb,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof r}" for request:
881${EG(e)}`,{request:e})),i.push(r)),n([null,!1]))},o)}catch(e){o(e)}})},ek=async function(e){for(let t of e)await new Promise((e,r)=>{t(t=>t?r(t):e())})},eE=function(e,t,r){if(!kF(t,"result")&&!kF(t,"error"))throw new EM(Eb,`JsonRpcEngine: Response has no error or result for request:
882${EG(e)}`,{request:e});if(!r)throw new EM(Eb,`JsonRpcEngine: Nothing ended request:
883${EG(e)}`,{request:e})};var E$=e.i(910612),E0=function(e,t,r,i,n){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,r):n?n.value=r:t.set(e,r),r},E1=function(e,t,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)};let E2=(L=E$.default,L?.__esModule?L.default:L);class E3 extends EY{constructor({logger:e=console,maxEventListeners:t=100,rpcMiddleware:r=[]}={}){super(),eI.set(this,void 0),eM.set(this,void 0),this._log=e,this.setMaxListeners(t),this._state={...E3._defaultState},E0(this,eM,null,"f"),E0(this,eI,null,"f"),this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleConnect=this._handleConnect.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this.request=this.request.bind(this);const i=new EX;r.forEach(e=>i.push(e)),this._rpcEngine=i}get chainId(){return E1(this,eI,"f")}get selectedAddress(){return E1(this,eM,"f")}isConnected(){return this._state.isConnected}async request(e){if(!e||"object"!=typeof e||Array.isArray(e)){let t;throw t={message:E_.errors.invalidRequestArgs(),data:e},EN(Ey,t)}let{method:t,params:r}=e;if("string"!=typeof t||0===t.length){let t;throw t={message:E_.errors.invalidRequestMethod(),data:e},EN(Ey,t)}if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r)){let t;throw t={message:E_.errors.invalidRequestParams(),data:e},EN(Ey,t)}let i=null==r?{method:t}:{method:t,params:r};return new Promise((e,t)=>{this._rpcRequest(i,Ej(e,t))})}_initializeState(e){if(this._state.initialized)throw Error("Provider already initialized.");if(e){let{accounts:t,chainId:r,networkVersion:i,isConnected:n}=e;this._handleConnect({chainId:r,isConnected:n}),this._handleChainChanged({chainId:r,networkVersion:i,isConnected:n}),this._handleAccountsChanged(t)}this._state.initialized=!0,this.emit("_initialized")}_rpcRequest(e,t){let r=t;return Array.isArray(e)||(e.jsonrpc||(e.jsonrpc="2.0"),("eth_accounts"===e.method||"eth_requestAccounts"===e.method)&&(r=(r,i)=>{this._handleAccountsChanged(i.result??[],"eth_accounts"===e.method),t(r,i)})),this._rpcEngine.handle(e,r)}_handleConnect({chainId:e,isConnected:t}){!this._state.isConnected&&t&&(this._state.isConnected=!0,this.emit("connect",{chainId:e}),this._log.debug(E_.info.connected(e)))}_handleDisconnect(e,t){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!e){let r;this._state.isConnected=!1,e?(r=new EM(1013,t??E_.errors.disconnected()),this._log.debug(r)):(r=new EM(1011,t??E_.errors.permanentlyDisconnected()),this._log.error(r),E0(this,eI,null,"f"),this._state.accounts=null,E0(this,eM,null,"f"),this._state.isPermanentlyDisconnected=!0),this.emit
883("disconnect",r)}}_handleChainChanged({chainId:e,isConnected:t}={}){ER(e)?(this._handleConnect({chainId:e,isConnected:t}),e!==E1(this,eI,"f")&&(E0(this,eI,e,"f"),this._state.initialized&&this.emit("chainChanged",E1(this,eI,"f")))):this._log.error(E_.errors.invalidNetworkParams(),{chainId:e})}_handleAccountsChanged(e,t=!1){let r=e;for(let t of(Array.isArray(e)||(this._log.error("MetaMask: Received invalid accounts parameter. Please report this bug.",e),r=[]),e))if("string"!=typeof t){this._log.error("MetaMask: Received non-string account. Please report this bug.",e),r=[];break}if(!E2(this._state.accounts,r)&&(t&&null!==this._state.accounts&&this._log.error("MetaMask: 'eth_accounts' unexpectedly updated accounts. Please report this bug.",r),this._state.accounts=r,E1(this,eM,"f")!==r[0]&&E0(this,eM,r[0]||null,"f"),this._state.initialized)){let e=[...r];this.emit("accountsChanged",e)}}}eI=new WeakMap,eM=new WeakMap,E3._defaultState={accounts:null,isConnected:!1,initialized:!1,isPermanentlyDisconnected:!1};let{duplex:E4}=EJ.default;class E5 extends E3{constructor(e,{logger:t=console,maxEventListeners:r=100,rpcMiddleware:i=[]}={}){if(super({logger:t,maxEventListeners:r,rpcMiddleware:i}),!E4(e))throw Error(E_.errors.invalidDuplexStream());this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this),this._jsonRpcConnection=function(e={}){let t={},r=new kW.Duplex({objectMode:!0,read:()=>void 0,write:function(n,o,a){let s=null;try{var l;kF(n,"id")?function(e){let{id:r}=e;if(null===r)return;let i=t[r];i?(delete t[r],Object.assign(i.res,e),setTimeout(i.end)):console.warn(`StreamMiddleware - Unknown response id "${r}"`)}(n):(l=n,e?.retryOnMessage&&l.method===e.retryOnMessage&&Object.values(t).forEach(({req:e,retryCount:i=0})=>{if(!e.id)return;if(i>=3)throw Error(`StreamMiddleware - Retry limit exceeded for request id "${e.id}"`);let n=t[e.id];n&&(n.retryCount=i+1),r.push(e)}),i.emit("notification",l))}catch(e){s=e}a(s)}}),i=new EY;return{events:i,middleware:(e,i,n,o)=>{var a;t[e.id]={req:e,res:i,next:n,end:o},a=e,r.push(a)},stream:r}}({retryOnMessage:"METAMASK_EXTENSION_CONNECT_CAN_RETRY"}),(0,kW.pipeline)(e,this._jsonRpcConnection.stream,e,this._handleStreamDisconnect.bind(this,"MetaMask RpcProvider")),this._rpcEngine.push(this._jsonRpcConnection.middleware),this._jsonRpcConnection.events.on("notification",t=>{let{method:r,params:i}=t;"metamask_accountsChanged"===r?this._handleAccountsChanged(i):"metamask_chainChanged"===r?this._handleChainChanged(i):ED.includes(r)?this.emit("message",{type:r,data:i}):"METAMASK_STREAM_FAILURE"===r&&e.destroy(Error(E_.errors.permanentlyDisconnected()))})}async _initializeStateAsync(){let e;try{e=await this.request({method:"metamask_getProviderState",params:{isInitializingStreamProvider:!0}})}catch(e){this._log.error("MetaMask: Failed to get initial state. Please report this bug.",e)}this._initializeState(e)}_handleStreamDisconnect(e,t){let r=`MetaMask: Lost connection to "${e}".`;t?.stack&&(r+=`
884${t.stack}`),this._log.warn(r),this.listenerCount("error")>0&&this.emit("error",r),this._handleDisconnect(!1,t?t.message:void 0)}_handleChainChanged({chainId:e,networkVersion:t,isConnected:r}={}){ER(e)&&"string"==typeof t&&(EP.test(t)||"loading"===t)?(super._handleChainChanged({chainId:e,isConnected:r}),r||this._handleDisconnect(!0)):this._log.error(E_.errors.invalidNetworkParams(),{chainId:e,networkVersion:t})}}var E8=function(e,t,r,i,n){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,r):n?n.value=r:t.set(e,r),r},E6=function(e,t,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)};class E7 extends E5{constructor(e,{logger:t=console,maxEventListeners:r=100,shouldSe
884ndMetadata:i}={}){if(super(e,{logger:t,maxEventListeners:r,rpcMiddleware:((e=console)=>{var t;let r;return[(e,t,r,i)=>{let n=e.id,o=kQ=(kQ+1)%0xffffffff;e.id=o,t.id=o,r(r=>{e.id=n,t.id=n,r()})},(t=e,(e,r,i)=>{let n;"string"==typeof e.method&&e.method||(n={message:"The request 'method' must be a non-empty string.",data:e},r.error=EN(Ey,n)),i(e=>{let{error:i}=r;return i&&t.warn(`MetaMask - RPC Error: ${i.message}`,i),e()})}),(r={ethDecryptDeprecation:!1,ethGetEncryptionPublicKeyDeprecation:!1,walletWatchAssetNFTExperimental:!1},(t,i,n)=>{r.ethDecryptDeprecation||"eth_decrypt"!==t.method?r.ethGetEncryptionPublicKeyDeprecation||"eth_getEncryptionPublicKey"!==t.method?!r.walletWatchAssetNFTExperimental&&"wallet_watchAsset"===t.method&&["ERC721","ERC1155"].includes(t.params?.type||"")&&(e.warn(E_.warnings.rpc.walletWatchAssetNFTExperimental),r.walletWatchAssetNFTExperimental=!0):(e.warn(E_.warnings.rpc.ethGetEncryptionPublicKeyDeprecation),r.ethGetEncryptionPublicKeyDeprecation=!0):(e.warn(E_.warnings.rpc.ethDecryptDeprecation),r.ethDecryptDeprecation=!0),n()})]})(t)}),this._sentWarnings={enable:!1,experimentalMethods:!1,send:!1,events:{close:!1,data:!1,networkChanged:!1,notification:!1}},eT.set(this,void 0),this._initializeStateAsync(),E8(this,eT,null,"f"),this.isMetaMask=!0,this._sendSync=this._sendSync.bind(this),this.enable=this.enable.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this._warnOfDeprecation=this._warnOfDeprecation.bind(this),this._metamask=this._getExperimentalApi(),this._jsonRpcConnection.events.on("notification",e=>{let{method:t}=e;ED.includes(t)&&(this.emit("data",e),this.emit("notification",e.params.result))}),i)if("complete"===document.readyState)Eq(this._rpcEngine,this._log);else{const e=()=>{Eq(this._rpcEngine,this._log),window.removeEventListener("DOMContentLoaded",e)};window.addEventListener("DOMContentLoaded",e)}}get chainId(){return super.chainId}get networkVersion(){return E6(this,eT,"f")}get selectedAddress(){return super.selectedAddress}sendAsync(e,t){this._rpcRequest(e,t)}addListener(e,t){return this._warnOfDeprecation(e),super.addListener(e,t)}on(e,t){return this._warnOfDeprecation(e),super.on(e,t)}once(e,t){return this._warnOfDeprecation(e),super.once(e,t)}prependListener(e,t){return this._warnOfDeprecation(e),super.prependListener(e,t)}prependOnceListener(e,t){return this._warnOfDeprecation(e),super.prependOnceListener(e,t)}_handleDisconnect(e,t){super._handleDisconnect(e,t),E6(this,eT,"f")&&!e&&E8(this,eT,null,"f")}_warnOfDeprecation(e){this._sentWarnings?.events[e]===!1&&(this._log.warn(E_.warnings.events[e]),this._sentWarnings.events[e]=!0)}async enable(){return this._sentWarnings.enable||(this._log.warn(E_.warnings.enableDeprecation),this._sentWarnings.enable=!0),new Promise((e,t)=>{try{this._rpcRequest({method:"eth_requestAccounts",params:[]},Ej(e,t))}catch(e){t(e)}})}send(e,t){return(this._sentWarnings.send||(this._log.warn(E_.warnings.sendDeprecation),this._sentWarnings.send=!0),"string"==typeof e&&(!t||Array.isArray(t)))?new Promise((r,i)=>{try{this._rpcRequest({method:e,params:t},Ej(r,i,!1))}catch(e){i(e)}}):e&&"object"==typeof e&&"function"==typeof t?this._rpcRequest(e,t):this._sendSync(e)}_sendSync(e){let t;switch(e.method){case"eth_accounts":t=this.selectedAddress?[this.selectedAddress]:[];break;case"eth_coinbase":t=this.selectedAddress??null;break;case"eth_uninstallFilter":this._rpcRequest(e,Ez),t=!0;break;case"net_version":t=E6(this,eT,"f")??null;break;default:throw Error(E_.errors.unsupportedSync(e.method))}return{id:e.id,jsonrpc:e.jsonrpc,result:t}}_getExperimentalApi(){return new Proxy({isUnlocked:async()=>!this._state.isPermanentlyDisconnected,requestBatch:async e=>{if(!Array.isArray(e)){let t;throw t={message:"Batch requests must be made with an array of request objects.",data:e},EN(Ey,t)}return new Promise((t,r)=>{this._rpcRequest(e,Ej(t,r))})}},{get:(e,t,...r)=>(this._sentWarnings.experimentalMethods||(this._log.warn(E_.warnings.experimentalMethods),this._sentWarnings.experimentalMethods=!0),Reflect.get(e,t,...r))})}_handleChainChanged({chainId:e,networkVersion:t,isConnected:r}={}){super._handleChainChanged({chainId:e,networkVersion:t,isConnected:r});let i="loading"===t?null:t;i!==E6(this,eT,"f")&&(E8(this,eT,i,"f"),this._state.initialized&&this.emit
884("networkChanged",E6(this,eT,"f")))}}async function E9(e,t){var r,i;let n,o=await e.request({method:"metamask_getProviderState"}),a=[],s=o?.extensionId;s&&a.push({type:"caip-348",value:s}),kK(i=r={...t,targets:a})&&"string"==typeof i.uuid&&EC.test(i.uuid)&&"string"==typeof i.name&&i.name&&"string"==typeof i.icon&&i.icon.startsWith("data:image")&&"string"==typeof i.rdns&&EO.test(i.rdns)&&(void 0===i.targets||Array.isArray(i.targets)&&i.targets.every(EL))||EB(`Invalid CAIP-294 WalletData object received from ${eu.Prompt}.`),(n=()=>window.dispatchEvent(new CustomEvent(eu.Announce,{detail:{id:1,jsonrpc:"2.0",method:"wallet_announce",params:r}})))(),window.addEventListener(eu.Prompt,e=>{var t;let r,i;e instanceof CustomEvent&&e.type===eu.Prompt&&kK(e.detail)&&"wallet_prompt"===e.detail.method&&(r=void 0===(t=e.detail.params).chains||Array.isArray(t.chains)&&t.chains.every(e=>"string"==typeof e),i=void 0===t.authName||"string"==typeof t.authName,r&&i)||EB(`Invalid CAIP-294 RequestWalletEvent object received from ${eu.Prompt}.`),n()})}eT=new WeakMap,!window.ethereum&&!window.web3&&navigator.userAgent.includes("Firefox")&&function({connectionStream:e,logger:t=console,maxEventListeners:r=100,providerInfo:i,shouldSendMetadata:n=!0,shouldSetOnWindow:o=!0,shouldShimWeb3:a=!1,shouldAnnounceCaip294:s=!0}){let l=new E7(e,{logger:t,maxEventListeners:r,shouldSendMetadata:n}),c=new Proxy(l,{deleteProperty:()=>!0,get:(e,t)=>e[t]});i&&(!function(e){!function(e){if(!kK(e)||!kK(e.info)||!kK(e.provider))return!1;let{info:t}=e;return"string"==typeof t.uuid&&EC.test(t.uuid)&&"string"==typeof t.name&&!!t.name&&"string"==typeof t.icon&&t.icon.startsWith("data:image")&&"string"==typeof t.rdns&&EO.test(t.rdns)}(e)&&EU("Invalid EIP-6963 ProviderDetail object.");let{info:t,provider:r}=e,i=()=>window.dispatchEvent(new CustomEvent(eh.Announce,{detail:Object.freeze({info:{...t},provider:r})}));i(),window.addEventListener(eh.Request,e=>{var t;(t=e)instanceof Event&&t.type===eh.Request||EU(`Invalid EIP-6963 RequestProviderEvent object received from ${eh.Request} event.`),i()})}({info:i,provider:c}),s&&E9(l,i)),o&&function(e){try{window.ethereum=e,window.dispatchEvent(new Event("ethereum#initialized"))}catch(e){console.error("MetaMask encountered an error setting the global Ethereum provider - this is likely due to another Ethereum wallet extension also setting the global Ethereum provider:",e)}}(c),a&&function(e,t=console){let r=!1,i=!1;if(!window.web3){let n="__isMetaMaskShim__",o={currentProvider:e};Object.defineProperty(o,n,{value:!0,enumerable:!0,configurable:!1,writable:!1}),Object.defineProperty(window,"web3",{value:o=new Proxy(o,{get:(o,a,...s)=>("currentProvider"!==a||r?"currentProvider"===a||a===n||i||(i=!0,t.error("MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),e.request({method:"metamask_logWeb3ShimUsage"}).catch(e=>{t.debug("MetaMask: Failed to log web3 shim usage.",e)})):(r=!0,t.warn("You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3")),Reflect.get(o,a,...s)),set:(...e)=>(t.warn("You are accessing the MetaMask window.web3 shim. This object is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),Reflect.set(...e))}),enumerable:!1,configurable:!0,writable:!0})}}(c,t)}({connectionStream:new class e extends kV{constructor(e){var{name:t,target:r,targetOrigin:i=location.origin,targetWindow:n=window}=e;if(super(kY(e,["name","target","targetOrigin","targetWindow"])),"u"<typeof window||"function"!=typeof window.postMessage)throw Error("window.postMessage is not a function. This class should only be instantiated in a Window.");this._name=t,this._target=r,this._targetOrigin=i,this._targetWindow=n,this._onMessage=this._onMessage.bind(this),window.addEventListener("message",this._onMessage,!1),this._handshake()}_postMessage(e){this._targetWindow.postMessage({target:this._target,data:e},this._targetOrigin)}_onMessage(e){var t;let r=e.data;("*"===this._targetOrigin||kG.call(e)===this._targetOrigin)&&kJ.call(e)===this._targetWindow&&kK(t=r)&&t.data&&("number"==typeof t.data||"object"==typeof t.data||"string"==typeof t.data)&&r.target===this._name&&this._onData(r.data)}_destroy(){window.removeEventListener("message",this._onMessage,!1)}}({name:"metamask-inpage",target:"metamask-contentscript"}),shouldShimWeb3:!0}),e.i(312336);let Ie=new eO.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});e.s(["default",0,function({Component:e,pageProps:t}){let r="/embed"===(0,eU.useRouter)().pathname;if((0,e_.useEffect)(()=>
884{if(!r)return;document.body.classList.add("embed-mode");let e=(0,kB.parseEmbedTheme)(),{style:t}=document.body;for(let[r,i]of Object.entries(e)){let e=`--embed-${r.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}`;t.setProperty(e,i)}return()=>document.body.classList.remove("embed-mode")},[r]),(0,e_.useEffect)(()=>{(0,rF.initE2EStateIfEnabled)()},[]),eC())return(0,eN.jsx)("div",{});let i=r?(0,eN.jsx)(e,{...t}):(0,eN.jsxs)(rc,{children:[(0,eN.jsx)(e,{...t}),(0,eN.jsx)(eB,{})]});return(0,eN.jsx)("div",{className:"font-primary text-black",children:(0,eN.jsxs)(eW.ErrorBoundary,{children:[(0,eN.jsx)(eP.QueryClientProvider,{client:Ie,children:(0,eN.jsx)(ru,{children:(0,eN.jsx)(w8,{children:(0,eN.jsx)(kf,{children:(0,eN.jsx)(wv,{children:(0,eN.jsx)(kk,{children:(0,eN.jsx)(xn,{children:(0,eN.jsx)(rQ,{children:(0,eN.jsx)(kL,{children:(0,eN.jsxs)(t7,{children:[(0,eN.jsx)(rH,{}),i]})})})})})})})})})}),(0,eN.jsx)(eq.ToastContainer,{transition:eq.Zoom,position:"bottom-right",limit:2})]})})}],316027)},294757,(e,t,r)=>{let i="/_app";(window.__NEXT_P=window.__NEXT_P||[]).push([i,()=>e.r(316027)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([i])})},451543,(e,t,r)=>{var i,n,o,a,s,l,c,d,u,h,p,f="__lodash_hash_undefined__",g="[object Arguments]",m="[object Function]",y="[object Object]",b=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[g]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w[m]=w["[object Map]"]=w["[object Number]"]=w[y]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object WeakMap]"]=!1;var x=e.g&&e.g.Object===Object&&e.g,S="object"==typeof self&&self&&self.Object===Object&&self,A=x||S||Function("return this")(),k=r&&!r.nodeType&&r,E=k&&t&&!t.nodeType&&t,I=E&&E.exports===k,M=I&&x.process,T=function(){try{var e=E&&E.require&&E.require("util").types;if(e)return e;return M&&M.binding&&M.binding("util")}catch(e){}}(),N=T&&T.isTypedArray,_=Array.prototype,C=Function.prototype,O=Object.prototype,P=A["__core-js_shared__"],D=C.toString,j=O.hasOwnProperty,R=(c=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",z=O.toString,L=D.call(Object),B=RegExp("^"+D.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=I?A.Buffer:void 0,q=A.Symbol,W=A.Uint8Array,H=U?U.allocUnsafe:void 0,V=(d=Object.getPrototypeOf,u=Object,function(e){return d(u(e))}),K=Object.create,F=O.propertyIsEnumerable,Y=_.splice,J=q?q.toStringTag:void 0,G=function(){try{var e=ep(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=U?U.isBuffer:void 0,Z=Math.max,X=Date.now,$=ep(A,"Map"),ee=ep(Object,"create"),et=function(){function e(){}return function(t){if(!eE(t))return{};if(K)return K(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function ei(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function en(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function eo(e){var t=this.__data__=new ei(e);this.size=t.size}function ea(e,t,r){(void 0===r||eb(e[t],r))&&(void 0!==r||t in e)||el(e,t,r)}function es(e,t){for(var r=e.length;r--;)if(eb(e[r][0],t))return r;return -1}function el(e,t,r){"__proto__"==t&&G?G(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}er.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},er.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},er.prototype.get=function(e){var t=this.__data__;if(ee){var r=t[e];return r===f?void 0:r}return j.call(t,e)?t[e]:void 0},er.prototype.has=function(e){var t=this.__data__;return ee?void 0!==t[e]:j.call(t,e)},er.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ee&&void 0===t?f:t,this},ei.prototype.clear=function(){this.__data__=[],this.size=0},ei.prototype.delete=function(e){var t=this.__data__,r=es(t,e);return!(r<0)&&(r==t.length-1?t.pop():Y.call(t,r,1),--this.size,!0)},ei.prototype.get=function(e){var t=this.__data__,r=es(t,e);return r<0?void 0:t[r][1]},ei.prototype.has=function(e){return es(this.__data__,e)>-1},ei.prototype.set=function(e,t){var r=this.__data__,i=es(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},en.prototype.clear=function(){this.size=0,this.__data__={hash:new er,map:new($||ei),string:new er}},en.prototype.delete=function(e){var t=eh(this,e).delete(e);return this.size-=!!t,t},en.prototype.get=function(e){return eh(this,e).get(e)},en.prototype.has=function(e){return eh(this,e).has(e)},en.prototype.set=function(e,t){var r=eh(this,e),i=r.size;return r.set(e,t),this.size+=+(r.size!=i),this},eo.prototype.clear=function(){this.__data__=new ei,this.size=0},eo.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},eo.prototype.get=function(e){return this.__data__.get(e)},eo.prototype.has=function(e){return this.__data__.has(e)},eo.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ei){var i=r.__data__;if(!$||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new en(i)}return r.set(e,t),this.size=r.size,this};var ec=function(e,t,r){for(var i=-1,n=Object(e),o=r(e),a=o.length;a--;){var s=o[++i];if(!1===t(n[s],s,n))break}return e};function ed(e){var t;
vendor: 5,728 bytes, line 884
884return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=j.call(e,J),r=e[J];try{e[J]=void 0;var i=!0}catch(e){}var n=z.call(e);return i&&(t?e[J]=r:delete e[J]),n}(e):(t=e,z.call(t))}function eu(e){return eI(e)&&ed(e)==g}function eh(e,t){var r,i,n=e.__data__;return("string"==(i=typeof(r=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?n["string"==typeof t?"string":"hash"]:n.map}function ep(e,t){var r,i=null==e?void 0:e[t];return!(!eE(i)||(r=i,R&&R in r))&&(eA(i)?B:b).test(function(e){if(null!=e){try{return D.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(i))?i:void 0}function ef(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&v.test(e))&&e>-1&&e%1==0&&e<t}function eg(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||O)}function em(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ey=(i=G?function(e,t){var r;return G(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0})}:eN,n=0,o=0,function(){var e=X(),t=16-(e-o);if(o=e,t>0){if(++n>=800)return arguments[0]}else n=0;return i.apply(void 0,arguments)});function eb(e,t){return e===t||e!=e&&t!=t}var ev=eu(function(){return arguments}())?eu:function(e){return eI(e)&&j.call(e,"callee")&&!F.call(e,"callee")},ew=Array.isArray;function ex(e){return null!=e&&ek(e.length)&&!eA(e)}var eS=Q||function(){return!1};function eA(e){if(!eE(e))return!1;var t=ed(e);return t==m||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ek(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eE(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eI(e){return null!=e&&"object"==typeof e}var eM=N?function(e){return N(e)}:function(e){return eI(e)&&ek(e.length)&&!!w[ed(e)]};function eT(e){return ex(e)?function(e,t){var r=ew(e),i=!r&&ev(e),n=!r&&!i&&eS(e),o=!r&&!i&&!n&&eM(e),a=r||i||n||o,s=a?function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}(e.length,String):[],l=s.length;for(var c in e)(t||j.call(e,c))&&!(a&&("length"==c||n&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ef(c,l)))&&s.push(c);return s}(e,!0):function(e){if(!eE(e)){var t=e,r=[];if(null!=t)for(var i in Object(t))r.push(i);return r}var n=eg(e),o=[];for(var a in e)"constructor"==a&&(n||!j.call(e,a))||o.push(a);return o}(e)}function eN(e){return e}t.exports=(h=function(e,t,r,i){!function e(t,r,i,n,o){t!==r&&ec(r,function(a,s){if(o||(o=new eo),eE(a))!function(e,t,r,i,n,o,a){var s=em(e,r),l=em(t,r),c=a.get(l);if(c)return ea(e,r,c);var d=o?o(s,l,r+"",e,t,a):void 0,u=void 0===d;if(u){var h,p,f,g,m,b,v,w=ew(l),x=!w&&eS(l),S=!w&&!x&&eM(l);d=l,w||x||S?ew(s)?d=s:eI(h=s)&&ex(h)?d=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}(s):x?(u=!1,d=function(e,t){if(t)return e.slice();var r=e.length,i=H?H(r):new e.constructor(r);return e.copy(i),i}(l,!0)):S?(u=!1,p=l,m=(new W(g=new(f=p.buffer).constructor(f.byteLength)).set(new W(f)),g),d=new p.constructor(m,p.byteOffset,p.length)):d=[]:function(e){if(!eI(e)||ed(e)!=y)return!1;var t=V(e);if(null===t)return!0;var r=j.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&D.call(r)==L}(l)||ev(l)?(d=s,ev(s)?d=function(e,t,r){var i=!r;r||(r={});for(var n=-1,o=t.length;++n<o;){var a=t[n],s=void 0;void 0===s&&(s=e[a]),i?el(r,a,s):function(e,t,r){var i=e[t];j.call(e,t)&&eb(i,r)&&(void 0!==r||t in e)||el(e,t,r)}(r,a,s)}return r}(b=s,eT(b)):(!eE(s)||eA(s))&&(d="function"!=typeof(v=l).constructor||eg(v)?{}:et(V(v)))):u=!1}u&&(a.set(l,d),n(d,l,i,o,a),a.delete(l)),ea(e,r,d)}(t,r,s,i,e,n,o);else{var l=n?n(em(t,s),a,s+"",t,r,o):void 0;void 0===l&&(l=a),ea(t,s,l)}},eT)}(e,t,r,i)},ey((a=p=function(e,t){var r=-1,i=t.length,n=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(n=h.length>3&&"function"==typeof n?(i--,n):void 0,o&&function(e,t,r){if(!eE(r))return!1;var i=typeof t;return("number"==i?!!(ex(r)&&ef(t,r.length)):"string"==i&&t in r)&&eb(r[t],e)}(t[0],t[1],o)&&(n=i<3?void 0:n,i=1),e=Object(e);++r<i;){var a=t[r];a&&h(e,a,r,n)}return e},s=void 0,l=eN,s=Z(void 0===s?a.length-1:s,0),function(){for(var e=arguments,t=-1,r=Z(e.length-s,0),i=Array(r);++t<r;)i[t]=e[s+t];t=-1;for(var n=Array(s+1);++t<s;)n[t]=e[t];n[s]=l(i);switch(n.length){case 0:return a.call(this);case 1:return a.call(this,n[0]);case 2:return a.call(this,n[0],n[1]);case 3:return a.call(this,n[0],n[1],n[2])}return a.apply(this,n)}),p+""))},26277,14653,e=>{"use strict";function t(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}e.s(["default",0,t],26277);var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
884ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=t(function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)});e.s(["default",0,i],14653)},711385,(e,t,r)=>{t.exports=n;var i=null;try{i=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(e){}function n(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function o(e){return!0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=o;var a={},s={};function l(e,t){var r,i,n;if(t)return(e>>>=0,(n=0<=e&&e<256)&&(i=s[e]))?i:(r=d(e,(0|e)<0?-1:0,!0),n&&(s[e]=r),r);return(e|=0,(n=-128<=e&&e<128)&&(i=a[e]))?i:(r=d(e,e<0?-1:0,!1),n&&(a[e]=r),r)}function c(e,t){if(isNaN(e))return t?v:b;if(t){if(e<0)return v;if(e>=g)return k}else{if(e<=-m)return E;if(e+1>=m)return A}return e<0?c(-e,t).neg():d(e%f|0,e/f|0,t)}function d(e,t,r){return new n(e,t,r)}n.fromInt=l,n.fromNumber=c,n.fromBits=d;var u=Math.pow;function h(e,t,r){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return b;if("number"==typeof t?(r=t,t=!1):t=!!t,(r=r||10)<2||36<r)throw RangeError("radix");if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return h(e.substring(1),t,r).neg();for(var i,n=c(u(r,8)),o=b,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),l=parseInt(e.substring(a,a+s),r);if(s<8){var d=c(u(r,s));o=o.mul(d).add(c(l))}else o=(o=o.mul(n)).add(c(l))}return o.unsigned=t,o}function p(e,t){return"number"==typeof e?c(e,t):"string"==typeof e?h(e,t):d(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}n.fromString=h,n.fromValue=p;var f=0x100000000,g=0xffffffffffffffff,m=0x8000000000000000,y=l(0x1000000),b=l(0);n.ZERO=b;var v=l(0,!0);n.UZERO=v;var w=l(1);n.ONE=w;var x=l(1,!0);n.UONE=x;var S=l(-1);n.NEG_ONE=S;var A=d(-1,0x7fffffff,!1);n.MAX_VALUE=A;var k=d(-1,-1,!0);n.MAX_UNSIGNED_VALUE=k;var E=d(0,-0x80000000,!1);n.MIN_VALUE=E;var I=n.prototype;I.toInt=function(){return this.unsigned?this.low>>>0:this.low},I.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},I.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(!this.eq(E))return"-"+this.neg().toString(e);else{var t=c(e),r=this.div(t),i=r.mul(t).sub(this);return r.toString(e)+i.toInt().toString(e)}for(var n=c(u(e,6),this.unsigned),o=this,a="";;){var s=o.div(n),l=(o.sub(s.mul(n)).toInt()>>>0).toString(e);if((o=s).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},I.getHighBits=function(){return this.high},I.getHighBitsUnsigned=function(){return this.high>>>0}
884,I.getLowBits=function(){return this.low},I.getLowBitsUnsigned=function(){return this.low>>>0},I.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&(e&1<<t)==0;t--);return 0!=this.high?t+33:t+1},I.isZero=function(){return 0===this.high&&0===this.low},I.eqz=I.isZero,I.isNegative=function(){return!this.unsigned&&this.high<0},I.isPositive=function(){return this.unsigned||this.high>=0},I.isOdd=function(){return(1&this.low)==1},I.isEven=function(){return(1&this.low)==0},I.equals=function(e){return o(e)||(e=p(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},I.eq=I.equals,I.notEquals=function(e){return!this.eq(e)},I.neq=I.notEquals,I.ne=I.notEquals,I.lessThan=function(e){return 0>this.comp(e)},I.lt=I.lessThan,I.lessThanOrEqual=function(e){return 0>=this.comp(e)},I.lte=I.lessThanOrEqual,I.le=I.lessThanOrEqual,I.greaterThan=function(e){return this.comp(e)>0},I.gt=I.greaterThan,I.greaterThanOrEqual=function(e){return this.comp(e)>=0},I.gte=I.greaterThanOrEqual,I.ge=I.greaterThanOrEqual,I.compare=function(e){if(o(e)||(e=p(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?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},I.comp=I.compare,I.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(w)},I.neg=I.negate,I.add=function(e){o(e)||(e=p(e));var t,r,i=this.high>>>16,n=65535&this.high,a=this.low>>>16,s=65535&this.low,l=e.high>>>16,c=65535&e.high,u=e.low>>>16,h=65535&e.low,f=0,g=0;return t=0+((r=0+(s+h))>>>16),r&=65535,t+=a+u,g+=t>>>16,t&=65535,g+=n+c,f+=g>>>16,g&=65535,f+=i+l,d(t<<16|r,(f&=65535)<<16|g,this.unsigned)},I.subtract=function(e){return o(e)||(e=p(e)),this.add(e.neg())},I.sub=I.subtract,I.multiply=function(e){if(this.isZero())return b;if(o(e)||(e=p(e)),i)return d(i.mul(this.low,this.high,e.low,e.high),i.get_high(),this.unsigned);if(e.isZero())return b;if(this.eq(E))return e.isOdd()?E:b;if(e.eq(E))return this.isOdd()?E:b;if(this.isNegative())if(e.isNegative())return this.neg().mul(e.neg());else return this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(y)&&e.lt(y))return c(this.toNumber()*e.toNumber(),this.unsigned);var t,r,n=this.high>>>16,a=65535&this.high,s=this.low>>>16,l=65535&this.low,u=e.high>>>16,h=65535&e.high,f=e.low>>>16,g=65535&e.low,m=0,v=0;return t=0+((r=0+l*g)>>>16),r&=65535,t+=s*g,v+=t>>>16,t&=65535,t+=l*f,v+=t>>>16,t&=65535,v+=a*g,m+=v>>>16,v&=65535,v+=s*f,m+=v>>>16,v&=65535,v+=l*h,m+=v>>>16,v&=65535,m+=n*g+a*f+s*h+l*u,d(t<<16|r,(m&=65535)<<16|v,this.unsigned)},I.mul=I.multiply,I.divide=function(e){if(o(e)||(e=p(e)),e.isZero())throw Error("division by zero");if(i){var t,r,n;return this.unsigned||-0x80000000!==this.high||-1!==e.low||-1!==e.high?d((this.unsigned?i.div_u:i.div_s)(this.low,this.high,e.low,e.high),i.get_high(),this.unsigned):this}if(this.isZero())return this.unsigned?v:b;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return v;if(e.gt(this.shru(1)))return x;n=v}else{if(this.eq(E))if(e.eq(w)||e.eq(S))return E;else return e.eq(E)?w:(t=this.shr(1).div(e).shl(1)).eq(b)?e.isNegative()?w:S:(r=this.sub(e.mul(t)),n=t.add(r.div(e)));if(e.eq(E))return this.unsigned?v:b;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();n=b}for(r=this;r.gte(e);){for(var a=Math.ceil(Math.log(t=Math.max(1,Math.floor(r.toNumber()/e.toNumber())))/Math.LN2),s=a<=48?1:u(2,a-48),l=c(t),h=l.mul(e);h.isNegative()||h.gt(r);)t-=s,h=(l=c(t,this.unsigned)).mul(e);l.isZero()&&(l=w),n=n.add(l),r=r.sub(h)}return n},I.div=I.divide,I.modulo=function(e){return(o(e)||(e=p(e)),i)?d((this.unsigned?i.rem_u:i.rem_s)(this.low,this.high,e.low,e.high),i.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},I.mod=I.modulo,I.rem=I.modulo,I.not=function(){return d(~this.low,~this.high,this.unsigned)},I.and=function(e){return o(e)||(e=p(e)),d(this.low&e.low,this.high&e.high,this.unsigned)},I.or=function(e){return o(e)||(e=p(e)),d(this.low|e.low,this.high|e.high,this.unsigned)},I.xor=function(e){return o(e)||(e=p(e)),d(this.low^e.low,this.high^e.high,this.unsigned)},I.shiftLeft=function(e){return(o(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?d(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):d(0,this.low<<e-32,this.unsigned)},I.shl=I.shiftLeft,I.shiftRight=function(e){return(o(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?d(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):d(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},I.shr=I.shiftRight,I.shiftRightUnsigned=function(e){if(o(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?d(this.low>>>e|t<<32-e,t>>>e,this.unsigned):32===e?d(t,0,this.unsigned):d(t>>>e-32,0,this.unsigned)},I.shru=I.shiftRightUnsigned,I.shr_u=I.shiftRightUnsigned,I.toSigned=function(){return this.unsigned?d(this.low,this.high,!1):this},I.toUnsigned=function(){return this.unsigned?this:d(this.low,this.high,!0)},I.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},I.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},I.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},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)}},165786,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};
884Object.defineProperty(r,"__esModule",{value:!0}),r.CosmJSOfflineSigner=r.CosmJSOfflineSignerOnlyAmino=void 0;class n{constructor(e,t,r){this.chainId=e,this.keplr=t,this.signOptions=r}getAccounts(){return i(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,t){return i(this,void 0,void 0,function*(){if(this.chainId!==t.chain_id)throw Error("Unmatched chain id with the offline signer");if((yield this.keplr.getKey(t.chain_id)).bech32Address!==e)throw Error("Unknown signer address");return yield this.keplr.signAmino(this.chainId,e,t,this.signOptions)})}sign(e,t){return i(this,void 0,void 0,function*(){return yield this.signAmino(e,t)})}}r.CosmJSOfflineSignerOnlyAmino=n,r.CosmJSOfflineSigner=class extends n{constructor(e,t,r){super(e,t,r)}signDirect(e,t){return i(this,void 0,void 0,function*(){if(this.chainId!==t.chainId)throw Error("Unmatched chain id with the offline signer");if((yield this.keplr.getKey(t.chainId)).bech32Address!==e)throw Error("Unknown signer address");return yield this.keplr.signDirect(this.chainId,e,t,this.signOptions)})}}},399403,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.KeplrEnigmaUtils=void 0,r.KeplrEnigmaUtils=class{constructor(e,t){this.chainId=e,this.keplr=t}getPubkey(){return i(this,void 0,void 0,function*(){return yield this.keplr.getEnigmaPubKey(this.chainId)})}getTxEncryptionKey(e){return i(this,void 0,void 0,function*(){return yield this.keplr.getEnigmaTxEncryptionKey(this.chainId,e)})}encrypt(e,t){return i(this,void 0,void 0,function*(){return yield this.keplr.enigmaEncrypt(this.chainId,e,t)})}decrypt(e,t){return i(this,void 0,void 0,function*(){return yield this.keplr.enigmaDecrypt(this.chainId,e,t)})}}},302615,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BUILD_VERSION=void 0,r.BUILD_VERSION="0.12.313"},33412,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.metaId=r.K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fw2xuJTcwMHyBwQ5SveHE/auCXu87v67yXPeOFds8XG+fK2E2STQp7HPoRo6tS/sX08r8t/Rx9moO3D1BmN2/ccoK0H3pkAqnbe3r9Jh7Lmr3G19I7+fj9jtXg5APoflMTv54qA9+rLtnRTvpbeDMDljq89qQDA/PoCclurjJTlQsQ3R9jBixMMPZtxpBWhx0LuL7kW6QpnmQgbua5Al3fWw7Y8ZZ2BBXDLI4QnLUT5vJ8FyzNmdq3DPJstrOaVxZzX8M/DpNWjYgeInvjpOpmyWvAYAsPiZq61g3P6J63bsoG1/Axi+d5p3uhhsohFC+aA0IanQbSDJrf8imvrPGSbZyP7+74yMQAaKb8tXA5TZxYdbiiumapzAQAIx8WuYiDqBlpqb8vRAoClFwYApSg256BYHwCZUOSkAJC/DAAFzcPO4u6Go5BtKRQ/BwPIYADQ8qyZXTMZZCcW+4UXF6OsyZDWFQ+8DqKKWTgAMhcI4wHAKLatE+wuCoC6LK5cDwCoACbKdxd9FgrGncUrnNtHv9M7h1I6l/8FAVO2ym5DPSIAAAAASUVORK5CYII=",r.metaId="d_2hxd99brRo"},697182,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},145375,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default="00000000-0000-0000-0000-000000000000"},747302,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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},999335,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let i=e.r(747302);r.default=function(e){return"string"==typeof e&&i.default.test(e)}},81506,(e,t,r)=>{"use strict";
884Object.defineProperty(r,"__esModule",{value:!0});let i=e.r(999335);r.default=function(e){let t;if(!(0,i.default)(e))throw TypeError("Invalid UUID");return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/0x10000000000&255,t/0x100000000&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}},479719,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unsafeStringify=void 0;let i=e.r(999335),n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).slice(1));function o(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()}r.unsafeStringify=o,r.default=function(e,t=0){let r=o(e,t);if(!(0,i.default)(r))throw TypeError("Stringified UUID is invalid");return r}},981763,(e,t,r)=>{"use strict";let i;Object.defineProperty(r,"__esModule",{value:!0});let n=new Uint8Array(16);r.default=function(){if(!i){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(n)}},317492,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.updateV1State=void 0;let i=e.r(981763),n=e.r(479719),o={};function a(e,t,r){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=r.slice(10,16),e.node[0]|=1,e.clockseq=(r[8]<<8|r[9])&16383),e.msecs=t,e}function s(e,t,r,i,n,o,a=0){if(e.length<16)throw Error("Random bytes length must be >= 16");if(o){if(a<0||a+16>o.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else o=new Uint8Array(16),a=0;t??=Date.now(),r??=0,i??=(e[8]<<8|e[9])&16383,n??=e.slice(10,16);let l=((0xfffffff&(t+=122192928e5))*1e4+r)%0x100000000;o[a++]=l>>>24&255,o[a++]=l>>>16&255,o[a++]=l>>>8&255,o[a++]=255&l;let c=t/0x100000000*1e4&0xfffffff;o[a++]=c>>>8&255,o[a++]=255&c,o[a++]=c>>>24&15|16,o[a++]=c>>>16&255,o[a++]=i>>>8|128,o[a++]=255&i;for(let e=0;e<6;++e)o[a++]=n[e];return o}r.updateV1State=a,r.default=function(e,t,r){let l,c=e?._v6??!1;if(e){let t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)l=s(e.random??e.rng?.()??(0,i.default)(),e.msecs,e.nsecs,e.clockseq,e.node,t,r);else{let e=Date.now(),n=(0,i.default)();a(o,e,n),l=s(n,o.msecs,o.nsecs,c?void 0:o.clockseq,c?void 0:o.node,t,r)}return t??(0,n.unsafeStringify)(l)}},132881,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let i=e.r(81506),n=e.r(479719);r.default=function(e){var t;let r=(t="string"==typeof e?(0,i.default)(e):e,Uint8Array.of((15&t[6])<<4|t[7]>>4&15,(15&t[7])<<4|(240&t[4])>>4,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,(15&t[1])<<4|(240&t[2])>>4,96|15&t[2],t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,n.unsafeStringify)(r):r}},29449,(e,t,r)=>{"use strict";function i(e){return(e+64>>>9<<4)+14+1}function n(e,t){let r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,i,o,a){var s;return n((s=n(n(t,e),n(i,a)))<<o|s>>>32-o,r)}function a(e,t,r,i,n,a,s){return o(t&r|~t&i,e,t,n,a,s)}function s(e,t,r,i,n,a,s){return o(t&i|r&~i,e,t,n,a,s)}function l(e,t,r,i,n,a,s){return o(t^r^i,e,t,n,a,s)}function c(e,t,r,i,n,a,s){return o(r^(t|~i),e,t,n,a,s)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=function(e,t){let r=new Uint32Array(i(t)).fill(0);r.set(e),r[t>>5]|=128<<t%32,r[r.length-1]=t,e=r;let o=0x67452301,d=-0x10325477,u=-0x67452302,h=0x10325476;for(let t=0;t<e.length;t+=16){let r=o,i=d,p=u,f=h;o=a(o,d,u,h,e[t],7,-0x28955b88),h=a(h,o,d,u,e[t+1],12,-0x173848aa),u=a(u,h,o,d,e[t+2],17,0x242070db),d=a(d,u,h,o,e[t+3],22,-0x3e423112),o=a(o,d,u,h,e[t+4],7,-0xa83f051),h=a(h,o,d,u,e[t+5],12,0x4787c62a),u=a(u,h,o,d,e[t+6],17,-0x57cfb9ed),d=a(d,u,h,o,e[t+7],22,-0x2b96aff),o=a(o,d,u,h,e[t+8],7,0x698098d8),h=a(h,o,d,u,e[t+9],12,-0x74bb0851),u=a(u,h,o,d,e[t+10],17,-42063),d=a(d,u,h,o,e[t+11],22,-0x76a32842),o=a(o,d,u,h,e[t+12],7,0x6b901122),h=a(h,o,d,u,e[t+13],12,-0x2678e6d),u=a(u,h,o,d,e[t+14],17,-0x5986bc72),d=a(d,u,h,o,e[t+15],22,0x49b40821),o=s(o,d,u,h,e[t+1],5,-0x9e1da9e),h=s(h,o,d,u,e[t+6],9,-0x3fbf4cc0),u=s(u,h,o,d,e[t+11],14,0x265e5a51),d=s(d,u,h,o,e[t],20,-0x16493856),o=s(o,d,u,h,e[t+5],5,-0x29d0efa3),h=s(h,o,d,u,e[t+10],9,0
884x2441453),u=s(u,h,o,d,e[t+15],14,-0x275e197f),d=s(d,u,h,o,e[t+4],20,-0x182c0438),o=s(o,d,u,h,e[t+9],5,0x21e1cde6),h=s(h,o,d,u,e[t+14],9,-0x3cc8f82a),u=s(u,h,o,d,e[t+3],14,-0xb2af279),d=s(d,u,h,o,e[t+8],20,0x455a14ed),o=s(o,d,u,h,e[t+13],5,-0x561c16fb),h=s(h,o,d,u,e[t+2],9,-0x3105c08),u=s(u,h,o,d,e[t+7],14,0x676f02d9),d=s(d,u,h,o,e[t+12],20,-0x72d5b376),o=l(o,d,u,h,e[t+5],4,-378558),h=l(h,o,d,u,e[t+8],11,-0x788e097f),u=l(u,h,o,d,e[t+11],16,0x6d9d6122),d=l(d,u,h,o,e[t+14],23,-0x21ac7f4),o=l(o,d,u,h,e[t+1],4,-0x5b4115bc),h=l(h,o,d,u,e[t+4],11,0x4bdecfa9),u=l(u,h,o,d,e[t+7],16,-0x944b4a0),d=l(d,u,h,o,e[t+10],23,-0x41404390),o=l(o,d,u,h,e[t+13],4,0x289b7ec6),h=l(h,o,d,u,e[t],11,-0x155ed806),u=l(u,h,o,d,e[t+3],16,-0x2b10cf7b),d=l(d,u,h,o,e[t+6],23,0x4881d05),o=l(o,d,u,h,e[t+9],4,-0x262b2fc7),h=l(h,o,d,u,e[t+12],11,-0x1924661b),u=l(u,h,o,d,e[t+15],16,0x1fa27cf8),d=l(d,u,h,o,e[t+2],23,-0x3b53a99b),o=c(o,d,u,h,e[t],6,-0xbd6ddbc),h=c(h,o,d,u,e[t+7],10,0x432aff97),u=c(u,h,o,d,e[t+14],15,-0x546bdc59),d=c(d,u,h,o,e[t+5],21,-0x36c5fc7),o=c(o,d,u,h,e[t+12],6,0x655b59c3),h=c(h,o,d,u,e[t+3],10,-0x70f3336e),u=c(u,h,o,d,e[t+10],15,-1051523),d=c(d,u,h,o,e[t+1],21,-0x7a7ba22f),o=c(o,d,u,h,e[t+8],6,0x6fa87e4f),h=c(h,o,d,u,e[t+15],10,-0x1d31920),u=c(u,h,o,d,e[t+6],15,-0x5cfebcec),d=c(d,u,h,o,e[t+13],21,0x4e0811a1),o=c(o,d,u,h,e[t+4],6,-0x8ac817e),h=c(h,o,d,u,e[t+11],10,-0x42c50dcb),u=c(u,h,o,d,e[t+2],15,0x2ad7d2bb),d=c(d,u,h,o,e[t+9],21,-0x14792c6f),o=n(o,r),d=n(d,i),u=n(u,p),h=n(h,f)}return Uint32Array.of(o,d,u,h)}(function(e){if(0===e.length)return new Uint32Array;let t=new Uint32Array(i(8*e.length)).fill(0);for(let r=0;r<e.length;r++)t[r>>2]|=(255&e[r])<<r%4*8;return t}(e),8*e.length);let r=new Uint8Array(4*t.length);for(let e=0;e<4*t.length;e++)r[e]=t[e>>2]>>>e%4*8&255;return r}},65081,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.URL=r.DNS=r.stringToBytes=void 0;let i=e.r(81506),n=e.r(479719);function o(e){let t=new Uint8Array((e=unescape(encodeURIComponent(e))).length);for(let r=0;r<e.length;++r)t[r]=e.charCodeAt(r);return t}r.stringToBytes=o,r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r.default=function(e,t,r,a,s,l){let c="string"==typeof r?o(r):r,d="string"==typeof a?(0,i.default)(a):a;if("string"==typeof a&&(a=(0,i.default)(a)),a?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+c.length);if(u.set(d),u.set(c,d.length),(u=t(u))[6]=15&u[6]|e,u[8]=63&u[8]|128,s){if((l=l||0)<0||l+16>s.length)throw RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let e=0;e<16;++e)s[l+e]=u[e];return s}return(0,n.unsafeStringify)(u)}},551241,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.URL=r.DNS=void 0;let i=e.r(29449),n=e.r(65081);var o=e.r(65081);function a(e,t,r,o){return(0,n.default)(48,i.default,e,t,r,o)}Object.defineProperty(r,"DNS",{enumerable:!0,get:function(){return o.DNS}}),Object.defineProperty(r,"URL",{enumerable:!0,get:function(){return o.URL}}),a.DNS=n.DNS,a.URL=n.URL,r.default=a},69518,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},828705,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let i=e.r(69518),n=e.r(981763),o=e.r(479719);r.default=function(e,t,r){if(i.default.randomUUID&&!t&&!e)return i.default.randomUUID();let a=(e=e||{}).random??e.rng?.()??(0,n.default)();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=a[e];return t}return(0,o.unsafeStringify)(a)}},849885,(e,t,r)=>{"use strict";function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let t=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],r=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],n=new Uint8Array(e.length+1);n.set(e),n[e.length]=128;let o=Math.ceil(((e=n).length/4+2)/16),a=Array(o);for(let t=0;t<o;++t){let r=new Uint32Array(16);for(let i=0;i<16;++i)r[i]=e[64*t+4*i]<<24|e[64*t+4*i+1]<<16|e[64*t+4*i+2]<<8|e[64*t+4*i+3];a[t]=r}a[o-1][14]=(e.length-1)*8/0x100000000,a[o-1][14]=Math.floor(a[o-1][
88414]),a[o-1][15]=(e.length-1)*8|0;for(let e=0;e<o;++e){let n=new Uint32Array(80);for(let t=0;t<16;++t)n[t]=a[e][t];for(let e=16;e<80;++e)n[e]=i(n[e-3]^n[e-8]^n[e-14]^n[e-16],1);let o=r[0],s=r[1],l=r[2],c=r[3],d=r[4];for(let e=0;e<80;++e){let r=Math.floor(e/20),a=i(o,5)+function(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:case 3:return t^r^i;case 2:return t&r^t&i^r&i}}(r,s,l,c)+d+t[r]+n[e]>>>0;d=c,c=l,l=i(s,30)>>>0,s=o,o=a}r[0]=r[0]+o>>>0,r[1]=r[1]+s>>>0,r[2]=r[2]+l>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+d>>>0}return Uint8Array.of(r[0]>>24,r[0]>>16,r[0]>>8,r[0],r[1]>>24,r[1]>>16,r[1]>>8,r[1],r[2]>>24,r[2]>>16,r[2]>>8,r[2],r[3]>>24,r[3]>>16,r[3]>>8,r[3],r[4]>>24,r[4]>>16,r[4]>>8,r[4])}},926567,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.URL=r.DNS=void 0;let i=e.r(849885),n=e.r(65081);var o=e.r(65081);function a(e,t,r,o){return(0,n.default)(80,i.default,e,t,r,o)}Object.defineProperty(r,"DNS",{enumerable:!0,get:function(){return o.DNS}}),Object.defineProperty(r,"URL",{enumerable:!0,get:function(){return o.URL}}),a.DNS=n.DNS,a.URL=n.URL,r.default=a},81993,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let i=e.r(479719),n=e.r(317492),o=e.r(132881);r.default=function(e,t,r){e??={},r??=0;let a=(0,n.default)({...e,_v6:!0},new Uint8Array(16));if(a=(0,o.default)(a),t){if(r<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;e++)t[r+e]=a[e];return t}return(0,i.unsafeStringify)(a)}},94683,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let i=e.r(81506),n=e.r(479719);r.default=function(e){var t;let r=(t="string"==typeof e?(0,i.default)(e):e,Uint8Array.of((15&t[3])<<4|t[4]>>4&15,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|15&t[6],t[7],(15&t[1])<<4|(240&t[2])>>4,(15&t[2])<<4|(240&t[3])>>4,16|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,n.unsafeStringify)(r):r}},308599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.updateV7State=void 0;let i=e.r(981763),n=e.r(479719),o={};function a(e,t,r){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++),e}function s(e,t,r,i,n=0){if(e.length<16)throw Error("Random bytes length must be >= 16");if(i){if(n<0||n+16>i.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`)}else i=new Uint8Array(16),n=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],i[n++]=t/0x10000000000&255,i[n++]=t/0x100000000&255,i[n++]=t/0x1000000&255,i[n++]=t/65536&255,i[n++]=t/256&255,i[n++]=255&t,i[n++]=112|r>>>28&15,i[n++]=r>>>20&255,i[n++]=128|r>>>14&63,i[n++]=r>>>6&255,i[n++]=r<<2&255|3&e[10],i[n++]=e[11],i[n++]=e[12],i[n++]=e[13],i[n++]=e[14],i[n++]=e[15],i}r.updateV7State=a,r.default=function(e,t,r){let l;if(e)l=s(e.random??e.rng?.()??(0,i.default)(),e.msecs,e.seq,t,r);else{let e=Date.now(),n=(0,i.default)();a(o,e,n),l=s(n,o.msecs,o.seq,t,r)}return t??(0,n.unsafeStringify)(l)}},118905,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let i=e.r(999335);r.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},32703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version=r.validate=r.v7=r.v6ToV1=r.v6=r.v5=r.v4=r.v3=r.v1ToV6=r.v1=r.stringify=r.parse=r.NIL=r.MAX=void 0;var i=e.r(697182);Object.defineProperty(r,"MAX",{enumerable:!0,get:function(){return i.default}});var n=e.r(145375);Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return n.default}});var o=e.r(81506);Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return o.default}});var a=e.r(479719);Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return a.default}});var s=e.r(317492);Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return s.default}});var l=e.r(132881);Object.defineProperty(r,"v1ToV6",{enumerable:!0,get:function(){return l.default}});var c=e.r(551241);Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return c.default}});var d=e.r(828705);Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return d.default}});var u=e.r(926567);Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return u.default}});var h=e.r(81993);Object.defineProperty(r,"v6",{enumerable:!0,get:function(){return h.default}});var p=e.r(94683);Object.defineProperty(r,"v6ToV1",{enumerable:!0,get:function(){return p.default}});var f=e.r(308599);Object.defineProperty(r,"v7",{enumerable:!0,get:function(){return f.default}});var g=e.r(999335);Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return g.default}});var m=e.r(118905);Object.defineProperty(r,"version",{enumerable:!0,get:function(){return m.default}})},93187,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}
884,n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.BitcoinProvider=r.Keplr=r.EthereumProviderRpcError=void 0;let o=e.r(354450),a=e.r(396256),s=n(e.r(12838)),l=n(e.r(711385)),c=e.r(165786),d=e.r(399403),u=e.r(302615),h=n(e.r(379666)),p=e.r(33412),f=e.r(32703);class g extends Error{constructor(e,t,r){super(t),this.code=e,this.data=r,Object.setPrototypeOf(this,g.prototype)}}r.EthereumProviderRpcError=g;class m{constructor(){this.enigmaUtils=new Map,this.version=u.BUILD_VERSION,this.mode="extension",this.defaultOptions={},this.ethereum=new b(this),this.starknet=void 0,this.bitcoin=new v(this)}static staticRequestMethod(e,t){let r="ReactNativeWebView"in window,i=r?e=>{window.ReactNativeWebView.postMessage(JSON.stringify(e))}:e=>{window.postMessage(e,window.location.origin)},n=r?e=>{if(e&&"string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}:e=>e,o=new Uint8Array(8),s=Array.from(crypto.getRandomValues(o)).map(e=>e.toString(16)).join(""),l={type:window.keplrRequestMetaIdSupport?`proxy-request${p.metaId?`-${p.metaId}`:""}`:"proxy-request",id:s,method:e,args:a.JSONUint8Array.wrap(t)};return new Promise((e,t)=>{let r=i=>{let o=n(i.data);if(!o||"proxy-request-response"!==o.type||o.id!==s)return;window.removeEventListener("message",r);let l=a.JSONUint8Array.unwrap(o.result);l?l.error?t(Error(l.error)):e(l.return):t(Error("Result is null"))};window.addEventListener("message",r),i(l)})}requestMethod(e,t){return m.staticRequestMethod(e,t)}static getKeplr(e=1500){return i(this,void 0,void 0,function*(){yield y();let t="ReactNativeWebView"in window,r=!!("u">typeof navigator&&"userAgent"in navigator)&&navigator.userAgent.includes("Firefox");if(t||r||null!=window.keplrRequestMetaIdSupport)return new Promise((t,r)=>{let i=setTimeout(()=>{t(void 0)},e);m.staticRequestMethod("ping",[]).then(()=>{clearTimeout(i),t(new m)}).catch(e=>{var n;(null==(n=null==e?void 0:e.message)?void 0:n.includes("Invalid method: ping"))?(clearTimeout(i),t(new m)):r(e)})})})}ping(){return i(this,void 0,void 0,function*(){yield this.requestMethod("ping",[])})}enable(e){return i(this,void 0,void 0,function*(){yield this.requestMethod("enable",[e])})}disable(e){return i(this,void 0,void 0,function*(){yield this.requestMethod("disable",[e])})}experimentalSuggestChain(e){var t,r;return i(this,void 0,void 0,function*(){if(e.hideInUI)throw Error("hideInUI is not allowed");((null==(t=e.features)?void 0:t.includes("stargate"))||(null==(r=e.features)?void 0:r.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 i(this,void 0,void 0,function*(){return yield this.requestMethod("getKey",[e])})}getKeysSettled(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getKeysSettled",[e])})}sendTx(e,t,r){return i(this,void 0,void 0,function*(){return"length"in t||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,t,r])})}signAmino(e,t,r,n={}){var o;return i(this,void 0,void 0,function*(){return yield this.requestMethod("signAmino",[e,t,r,(0,s.default)(null!=(o=this.defaultOptions.sign)?o:{},n)])})}signDirect(e,t,r,n={}){var o;return i(this,void 0,void 0,function*(){let i=yield this.requestMethod("signDirect",[e,t,{bodyBytes:r.bodyBytes,authInfoBytes:r.authInfoBytes,chainId:r.chainId,accountNumber:r.accountNumber?r.accountNumber.toString():null},(0,s.default)(null!=(o=this.defaultOptions.sign)?o:{},n)]),a=i.signed;return{signed:{bodyBytes:a.bodyBytes,authInfoBytes:a.authInfoBytes,chainId:a.chainId,accountNumber:l.default.fromString(a.accountNumber)},signature:i.signature}})}signDirectAux(e,t,r,n={}){var o;return i(this,void 0,void 0,function*(){let i=yield this.requestMethod("signDirectAux",[e,t,{bodyBytes:r.bodyBytes,publicKey:r.publicKey,chainId:r.chainId,accountNumber:r.accountNumber?r.accountNumber.toString():null,
884sequence:r.sequence?r.sequence.toString():null},(0,s.default)({preferNoSetMemo:null==(o=this.defaultOptions.sign)?void 0:o.preferNoSetMemo},n)]),a=i.signed;return{signed:{bodyBytes:a.bodyBytes,publicKey:a.publicKey||void 0,chainId:a.chainId,accountNumber:l.default.fromString(a.accountNumber),sequence:l.default.fromString(a.sequence)},signature:i.signature}})}signArbitrary(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signArbitrary",[e,t,r])})}signICNSAdr36(e,t,r,i,n){return this.requestMethod("signICNSAdr36",[e,t,r,i,n])}verifyArbitrary(e,t,r,n){return i(this,void 0,void 0,function*(){return yield this.requestMethod("verifyArbitrary",[e,t,r,n])})}signEthereum(e,t,r,n){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signEthereum",[e,t,r,n])})}getOfflineSigner(e,t){return new c.CosmJSOfflineSigner(e,this,t)}getOfflineSignerOnlyAmino(e,t){return new c.CosmJSOfflineSignerOnlyAmino(e,this,t)}getOfflineSignerAuto(e,t){return i(this,void 0,void 0,function*(){return(yield this.getKey(e)).isNanoLedger?new c.CosmJSOfflineSignerOnlyAmino(e,this,t):new c.CosmJSOfflineSigner(e,this,t)})}suggestToken(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("suggestToken",[e,t,r])})}getSecret20ViewingKey(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getSecret20ViewingKey",[e,t])})}getEnigmaPubKey(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getEnigmaPubKey",[e])})}getEnigmaTxEncryptionKey(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getEnigmaTxEncryptionKey",[e,t])})}enigmaEncrypt(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("enigmaEncrypt",[e,t,r])})}enigmaDecrypt(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("enigmaDecrypt",[e,t,r])})}getEnigmaUtils(e){if(this.enigmaUtils.has(e))return this.enigmaUtils.get(e);let t=new d.KeplrEnigmaUtils(e,this);return this.enigmaUtils.set(e,t),t}experimentalSignEIP712CosmosTx_v0(e,t,r,n,o={}){var a;return i(this,void 0,void 0,function*(){return yield this.requestMethod("experimentalSignEIP712CosmosTx_v0",[e,t,r,n,(0,s.default)(null!=(a=this.defaultOptions.sign)?a:{},o)])})}getChainInfosWithoutEndpoints(){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getChainInfosWithoutEndpoints",[])})}changeKeyRingName({defaultName:e,editable:t=!0}){return i(this,void 0,void 0,function*(){return yield this.requestMethod("changeKeyRingName",[{defaultName:e,editable:t}])})}sendEthereumTx(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("sendEthereumTx",[e,t])})}suggestERC20(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("suggestERC20",[e,t])})}getChainInfoWithoutEndpoints(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getChainInfoWithoutEndpoints",[e])})}getStarknetKey(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getStarknetKey",[e])})}getStarknetKeysSettled(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getStarknetKeysSettled",[e])})}signStarknetTx(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signStarknetTx",[e,t,r])})}signStarknetDeployAccountTransaction(e,t){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signStarknetDeployAccountTransaction",[e,t])})}getBitcoinKey(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getBitcoinKey",[e])})}getBitcoinKeysSettled(e){return i(this,void 0,void 0,function*(){return yield this.requestMethod("getBitcoinKeysSettled",[e])})}signPsbt(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signPsbt",[e,t,r])})}signPsbts(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("signPsbts",[e,t,r])})}__core__getAnalyticsId(){return i(this,void 0,void 0,function*(){return yield this.requestMethod("__core__getAnalyticsId",[])})}__core__privilageSignAminoWithdrawRewards(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("__core__privilageSignAminoWithdrawRewards",[e,t,r])})}__core__privilageSignAminoDelegate(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("__core__privilageSignAminoDelegate",[e,t,r])})}__core__privilageSignAminoExecuteCosmWasm(e,t,r){return i(this,void 0,void 0,function*(){return yield this.requestMethod("__core__privilageSignAminoExecuteCosmWasm",[e,t,r])})}__core__webpageClosed(){return i(this,void 0,void 0,function*(){return yield this.requestMethod("__core__webpageClosed",[])})}}r.Keplr=m;let y=()=>"complete"===document.readyState?Promise.resolve():new Promise(e=>{let t=r=>{r.target&&"complete"===r.target.readyState&&(e(),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)});class b extends h.default{constructor(e){if(super(),this.keplr=e,this.eip6963ProviderInfo={uuid:(0,f.v4)(),name:"Keplr",rdns:"app.keplr",icon:`data:image/png;base64,${p.KeplrLogoBase64}`},this.chainId=null,this.networkVersion=null,this.selectedAddress=null,this.isKeplr=!0,this.isMetaMask=!0,this._isConnected=!1,this._currentChainId=null,this._initProviderState=()=>i(this,void 0,void 0,function*(){let e=yield b.requestMethod("request",{method:"keplr_initProviderState"});if(e){let{currentEvmChainId:t,currentChainId:r,selectedAddress:i}=e;null!=r&&null!=t&&null!=i&&(this._handleConnect(t),this._handleChainChanged(t),this._currentChainId=r,this._handleAccountsChanged(i))}}),this._initProviderState(),window.addEventListener("keplr_keystorechange",()=>i(this,void 0,void 0,function*(){if(this._currentChainId&&(yield e.getChainInfoWithoutEndpoints(this._currentChainId))){let t=null;try{t=(yield e.getKey(this._currentChainId)).ethereumHexAddress}catch(e){(null==e?void 0: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(t)}})),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=>{var t;let r=e.detail.origin,i=e.detail.providerId;if(r===window.location.origin&&i===(null==(t=this.eip6963ProviderInfo)?void 0:t.uuid)){let t=e.detail.data;
884this.emit("message",{type:"eth_subscription",data:t})}}),this.eip6963ProviderInfo){const e=new CustomEvent(o.EIP6963EventNames.Announce,{detail:Object.freeze({info:this.eip6963ProviderInfo,provider:this})});window.addEventListener(o.EIP6963EventNames.Request,()=>window.dispatchEvent(e)),window.dispatchEvent(e)}}static requestMethod(e,t){return i(this,void 0,void 0,function*(){let r="ReactNativeWebView"in window,i=r?e=>{window.ReactNativeWebView.postMessage(JSON.stringify(e))}:e=>{window.postMessage(e,window.location.origin)},n=r?e=>{if(e&&"string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}:e=>e,o=new Uint8Array(8),s=Array.from(crypto.getRandomValues(o)).map(e=>e.toString(16)).join(""),l={type:window.keplrRequestMetaIdSupport?`proxy-request${p.metaId?`-${p.metaId}`:""}`:"proxy-request",id:s,method:"ethereum",args:a.JSONUint8Array.wrap(t),ethereumProviderMethod:e};return new Promise((e,t)=>{let r=i=>{let o=n(i.data);if(!o||"proxy-request-response"!==o.type||o.id!==s)return;window.removeEventListener("message",r);let l=a.JSONUint8Array.unwrap(o.result);if(!l)return void t(Error("Result is null"));if(l.error){let e=l.error;t(e.code&&!e.module?new g(e.code,e.message,e.data):Error(e));return}e(l.return)};window.addEventListener("message",r),i(l)})})}_handleConnect(e){return i(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 i(this,void 0,void 0,function*(){this._isConnected&&(yield b.requestMethod("request",{method:"keplr_disconnect"}),this._isConnected=!1,this.chainId=null,this.selectedAddress=null,this.networkVersion=null,this.emit("disconnect"))})}_handleChainChanged(e){return i(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 i(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:e,params:t,chainId:r}){var n;return i(this,void 0,void 0,function*(){if("string"!=typeof e)throw Error("Invalid paramater: `method` must be a string");return this._isConnected||(yield this._initProviderState()),yield b.requestMethod("request",{method:e,params:t,providerId:null==(n=this.eip6963ProviderInfo)?void 0:n.uuid,chainId:r})})}enable(){return i(this,void 0,void 0,function*(){return yield b.requestMethod("request",{method:"eth_requestAccounts"})})}net_version(){return i(this,void 0,void 0,function*(){return yield b.requestMethod("request",{method:"net_version"})})}}class v extends h.default{constructor(e){super(),this.keplr=e,this._handleNetworkChanged=e=>i(this,void 0,void 0,function*(){this.emit("networkChanged",e)}),this._handleAccountsChanged=e=>i(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",()=>i(this,void 0,void 0,function*(){let e=null;try{e=yield this.getAccounts()}catch(e){(null==e?void 0: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=>i(this,void 0,void 0,function*(){if(e.detail.origin===window.location.origin){let t=e.detail.network,r=null;try{r=yield this.getAccounts()}catch(e){(null==e?void 0: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(r)}})),window.addEventListener("keplr_bitcoinAccountsChanged",()=>i(this,void 0,void 0,function*(){let e=null;try{e=yield this.getAccounts()}catch(e){(null==e?void 0: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,t){return i(this,void 0,void 0,function*(){let r="ReactNativeWebView"in window,i=r?e=>{window.ReactNativeWebView.postMessage(JSON.stringify(e))}:e=>{window.postMessage(e,window.location.origin)},n=r?e=>{if(e&&"string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}:e=>e,o=new Uint8Array(8),s=Array.from(crypto.getRandomValues(o)).map(e=>e.toString(16)).join(""),l={type:window.keplrRequestMetaIdSupport?`proxy-request${p.metaId?`-${p.metaId}`:""}`:"proxy-request",id:s,method:"bitcoin",args:a.JSONUint8Array.wrap(t),bitcoinProviderMethod:e};return new Promise((e,t)=>
884{let r=i=>{let o=n(i.data);if(!o||"proxy-request-response"!==o.type||o.id!==s)return;window.removeEventListener("message",r);let l=a.JSONUint8Array.unwrap(o.result);l?l.error?t(Error(l.error)):e(l.return):t(Error("Result is null"))};window.addEventListener("message",r),i(l)})})}getAccounts(){return v._requestMethod("getAccounts",[])}requestAccounts(){return i(this,void 0,void 0,function*(){return v._requestMethod("requestAccounts",[])})}disconnect(){return i(this,void 0,void 0,function*(){return v._requestMethod("disconnect",[])})}getNetwork(){return i(this,void 0,void 0,function*(){return v._requestMethod("getNetwork",[])})}switchNetwork(e){return i(this,void 0,void 0,function*(){return v._requestMethod("switchNetwork",[e])})}getChain(){return i(this,void 0,void 0,function*(){return v._requestMethod("getChain",[])})}switchChain(e){return i(this,void 0,void 0,function*(){return v._requestMethod("switchChain",[e])})}getPublicKey(){return i(this,void 0,void 0,function*(){return v._requestMethod("getPublicKey",[])})}getBalance(){return i(this,void 0,void 0,function*(){return v._requestMethod("getBalance",[])})}getInscriptions(e,t){return i(this,void 0,void 0,function*(){return v._requestMethod("getInscriptions",[e,t])})}signMessage(e,t){return i(this,void 0,void 0,function*(){return v._requestMethod("signMessage",[e,t])})}sendBitcoin(e,t){return i(this,void 0,void 0,function*(){return v._requestMethod("sendBitcoin",[e,t])})}pushTx(e){return i(this,void 0,void 0,function*(){return v._requestMethod("pushTx",[e])})}pushPsbt(e){return i(this,void 0,void 0,function*(){return v._requestMethod("pushPsbt",[e])})}signPsbt(e,t){return i(this,void 0,void 0,function*(){return v._requestMethod("signPsbt",[e,t])})}signPsbts(e,t){return i(this,void 0,void 0,function*(){return v._requestMethod("signPsbts",[e,t])})}getAddress(){return i(this,void 0,void 0,function*(){return(yield this.getAccounts())[0]})}connectWallet(){return i(this,void 0,void 0,function*(){return this.requestAccounts()})}}r.BitcoinProvider=v},565627,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.KeplrFallback=void 0;let n=e.r(93187);class o extends n.Keplr{constructor(e){super(),this.onKeplrNotDetected=e,this.isKeplrDetected=null,this.onKeplrNotDetected&&n.Keplr.getKeplr(500).then(e=>{var t;e||null==(t=this.onKeplrNotDetected)||t.call(this)})}requestMethod(e,t){return i(this,void 0,void 0,function*(){if(null==this.isKeplrDetected&&((yield n.Keplr.getKeplr(500))?this.isKeplrDetected=!0:this.isKeplrDetected=!1),this.isKeplrDetected)return n.Keplr.staticRequestMethod(e,t);{let r=window.keplr;if(r)return r[e](...t);throw Error("Can't detect keplr fallback")}})}}r.KeplrFallback=o},583959,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(93187),r),n(e.r(565627),r)},877838,(e,t,r)=>{var i=function(){"use strict";var e=c(0x20000000000000),t="0123456789abcdefghijklmnopqrstuvwxyz",r="function"==typeof BigInt;function n(e,t,r,i){return void 0===e?n[0]:void 0!==t&&(10!=+t||r)?L(e,t,r,i):H(e)}function o(e,t){this.value=e,this.sign=t,this.isSmall=!1}function a(e){this.value=e,this.sign=e<0,this.isSmall=!0}function s(e){this.value=e}function l(e){return -0x20000000000000<e&&e<0x20000000000000}function c(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function d(t){u(t);var r=t.length;if(r<4&&0>I(t,e))switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+1e7*t[1];default:return t[0]+(t[1]+1e7*t[2])*1e7}return t}function u(e){for(var t=e.length;0===e[--t];);e.length=t+1}function h(e){for(var t=Array(e),r=-1;++r<e;)t[r]=0;return t}function p(e){return e>0?Math.floor(e):Math.ceil(e)}function f(e,t){var r,i,n=e.length,o=t.length,a=Array(n),s=0;for(i=0;i<o;i++)s=+((r=e[i]+t[i]+s)>=1e7),a[i]=r-1e7*s;for(;i<n;)s=+(1e7===(r=e[i]+s)),a[i++]=r-1e7*s;return s>0&&a.push(s),a}function g(e,t){return e.length>=t.length?f(e,t):f(t,e)}function m(e,t){var r,i,n=e.length,o=Array(n);for(i=0;i<n;i++)t=Math.floor((r=e[i]-1e7+t)/1e7),o[i]=r-1e7*t,t+=1;for(;t>0;)o[i++]=t%1e7,t=Math.floor(t/1e7);return o}function y(e,t){var r,i,n=e.length,o=t.length,a=Array(n),s=0;for(r=0;r<o;r++)(i=e[r]-s-t[r])<0?(i+=1e7,s=1):s=0,a[r]=i;for(r=o;r<n;r++){if((i=e[r]-s)<0)i+=1e7;else{a[r++]=i;break}a[r]=i}for(;r<n;r++)a[r]=e[r];return u(a),a}function b(e,t,r){var i,n,s=e.length,l=Array(s),c=-t;for(i=0;i<s;i++)c=Math.floor((n=e[i]+c)/1e7),n%=1e7,l[i]=n<0?n+1e7:n;return"number"==typeof(l=d(l))?(r&&(l=-l),new a(l)):new o(l,r)}function v(e,t){var r,i,n,o,a=e.length,s=t.length,l=h(a+s);for(n=0;n<a;++n){o=e[n];for(var c=0;c<s;++c)i=Math.floor((r=o*t[c]+l[n+c])/1e7),l[n+c]=r-1e7*i,l[n+c+1]+=i}return u(l),l}function w(e,t){var r,i,n=e.length,o=Array(n),a=0;for(i=0;i<n;i++)a=Math.floor((r=e[i]*t+a)/1e7),o[i]=r-1e7*a;for(;a>0;)o[i++]=a%1e7,a=Math.floor(a/1e7);return o}function x(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function S(e,t,r){return e<1e7?new o(w(t,e),r):new o(v(t,c(e)),r)}function A(e){var t,r,i,n,o=e.length,a=h(o+o);for(i=0;i<o;i++){r=0-(n=e[i])*n;for(var s=i;s<o;s++)r=Math.floor((t=n*e[s]*2+a[i+s]+r)/1e7),a[i+s]=t-1e7*r;a[i+o]=r}return u(a),a}function k(e,t){var r,i,n,o,a=e.length,s=h(a);for(n=0,r=a-1;r>=0;--r)i=p((o=1e7*n+e[r])/t),n=o-i*t,s[r]=0|i;return[s,0|n]}function E(e,t){var i,l,f=H(t);if(r)return[new s(e.value/f.value),new s(e.value%f.value)];var g=e.value,m=f.value;if(0===m)throw Error("Cannot divide by zero");if(e.isSmall)return f.isSmall?[new a(p(g/m)),new a(g%m)]:[n[0],e];if(f.isSmall){if(1===m)return[e,n[0]];if(-1==m)return[e.negate(),n[0]];var b=Math.abs(m);if(b<1e7){i=d((l=k(g,b))[0]);var v=l[1];return(e.sign&&(v=-v),"number"==typeof i)?(e.sign!==f.sign&&(i=-i),[new a(i),new a(v)]):[new o(i,e.sign!==f.sign),new a(v)]}m=c(b)}var x=I(g,m);if(-1===x)return[n[0],e];if(0===x)return[n[e.sign===f.sign?1:-1],n[0]];i=(l=g.length+m.length<=200?function(e,t){var r,i,n,o,a,s,l,c=e.length,u=t.length,p=h(t.length),f=t[u-1],g=Math.ceil(1e7/(2*f)),m=w(e,g),y=w(t,g);for(m.length<=c&&m.push(0),y.push(0),f=y[u-1],i=c-u;i>=0;i--){for(r=1e7-1,m[i+u]!==f&&(r=Math.floor((1e7*m[i+u]+m[i+u-1])/f)),n=0,o=0,s=y.length,a=0;a<s;a++)n+=r*y[a],l=Math.floor(n/1e7),o+=m[i+a]-(n-1e7*l),n=l,o<0?(m[i+a]=o+1e7,o=-1):(m[i+a]=o,o=0);for(;0!==o;){for(r-=1,n=0,a=0;a<s;a++)(n+=m[i+a]-1e7+y[a])<0?(m[i+a]=n+1e7,n=0):(m[i+a]=n,n=1);o+=n}p[i]=r}return m=k(m,g)[0],[d(p),d(m)]}(g,m):function(e,t){for(var r,i,n,o,a,s=e.length,l=t.length,c=[],h=[];s;){if(h.unshift(e[--s]),u(h),0>I(h,t)){c.push(0);continue}i=h.length,n=1e7*h[i-1]+h[i-2],o=1e7*t[l-1]+t[l-2],i>l&&(n=(n+1)*1e7),r=Math.ceil(n/o);do{if(0>=I(a=w(t,r),h))break;r--}while(r)c.push(r),h=y(h,a)}return c.reverse(),[d(c),d(h)]}(g,m))[0];var S=e.sign!==f.sign,A=l[1],E=e.sign;return"number"==typeof i?(S&&(i=-i),i=new a(i)):i=new o(i,S),"number"==typeof A?(E&&(A=-A),A=new a(A)):A=new o(A,E),[i,A]}function I(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function M(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function T(e,t){for(var r,n,o,a=e.prev(),s=a,l=0;s.isEven();)s=s.divide(2),l++;t:for(n=0;n<t.length;n++)if(!e.lesser(t[n])&&!((o=i(t[n]).modPow(s,e)).isUnit()||o.equals(a))){for(r=l-1;0!=r&&!(o=o.square().mod(e)).isUnit();r--)if(o.equals(a))continue t;return!1}return!0}o.prototype=Object.create(n.prototype),a.prototype=Object.create(n.prototype),s.prototype=Object.create(n.prototype),o.prototype.add=function(e){var t=H(e);if(this.sign!==t.sign)return this.subtract(t.negate());var r=this.value,i=t.value;return t.isSmall?new o(m(r,Math.abs(i)),this.sign):new o(g(r,i),this.sign)},o.prototype.plus=o.prototype.add,a.prototype.add=function(e){var t=H(e),r=this.value;if(r<0!==t.sign)return this.subtract(t.negate());var i=t.value;if(t.isSmall){if(l(r+i))return new a(r+i);i=c(Math.abs(i))}return new o(m(i,Math.abs(r)),r<0)},a.prototype.plus=a.prototype.add,s.prototype.add=function(e){return new s(this.value+H(e).value)},s.prototype.plus=s.prototype.add,o.prototype.subtract=function(e){var t,r,i=H(e);if(this.sign!==i.sign)return this.add(i.negate());var n=this.value,s=i.value;return i.isSmall?b(n,Math.abs(s),this.sign):(t=this.sign,(I(n,s)>=0?r=y(n,s):(r=y(s,n),t=!t),"number"==typeof(r=d(r)))?(t&&(r=-r),new a(r)):new o(r,t))},o.prototype.minus=o.prototype.subtract,a.prototype.subtract=function(e){var t=H(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var i=t.value;return t.isSmall?new a(r-i):b(i,Math.abs(r),r>=0)},a.prototype.minus=a.prototype.subtract,s.prototype.subtract=function(e){return new s(this.value-H(e).value)},s.prototype.minus=s.prototype.subtract,o.prototype.negate=function(){return new o(this.value,!this.sign)},a.prototype.negate=function(){var e=this.sign,t=new a(-this.value);return t.sign=!e,t},s.prototype.negate=function(){return new s(-this.value)},o.prototype.abs=function(){return new o(this.value,!1)},a.prototype.abs=function(){return new a(Math.abs(this.value))},s.prototype.abs=function(){return new s(this.value>=0?this.value:-this.value)},o.prototype.multiply=function(e){var t,r,i,a=H(e),s=this.value,l=a.value,d=this.sign!==a.sign;if(a.isSmall){if(0===l)return n[0];if(1===l)return this;if(-1===l)return this.negate();if((i=Math.abs(l))<1e7)return new o(w(s,i),d);l=c(i)}return -.012*(t=s.length)-.012*(r=l.length)+15e-6*t*r>0?new o(function e(t,r){var i=Math.max(t.length,r.length);if(i<=30)return v(t,r);i=Math.ceil(i/2);var n=t.slice(i),o=t.slice(0,i),a=r.slice(i),s=r.slice(0,i),l=e(o,s),c=e(n,a),d=e(g(o,n),g(s,a)),h=g(g(l,x(y(y(d,l),c),i)),x(c,2*i));return u(h),h}(s,l),d):new o(v(s,l),d)},o.prototype.times=o.prototype.multiply,a.prototype._multiplyBySmall=function(e){return l(e.value*this.value)?new a(e.value*this.value):S(Math.abs(e.value),c(Math.abs(this.value)),this.sign!==e.sign)},o.prototype._multiplyBySmall=function(e){return 0===e.value?n[0]:1===e.value?this:-1===e.value?this.negate():S(Math.abs(e.value),this.value,this.sign!==e.sign)},a.prototype.multiply=function(e){return H(e)._multiplyBySmall(this)},a.prototype.times=a.prototype.multiply,s.prototype.multiply=function(e){return new s(this.value*H(e).value)},s.prototype.times=s.prototype.multiply,o.prototype.square=function(){return new o(A(this.value),!1)},a.prototype.square=function(){var e=this.value*this.value;return l(e)?new a(e):new o(A(c(Math.abs(this.value))),!1)},s.prototype.square=function(e){return new s(this.value*this.value)},o.prototype.divmod=function(e){var t=E(this,e);return{quotient:t[0],remainder:t[1]}},s.prototype.divmod=a.prototype.divmod=o.prototype.divmod,o.prototype.divide=function(e){return E(this,e)[0]},s.prototype.over=s.prototype.divide=function(e){return new s(this.value/H(e).value)},a.prototype.over=a.prototype.divide=o.prototype.over=o.prototype.divide,o.prototype.mod=function(e){return E(this,e)[1]},s.prototype.mod=s.prototype.remainder=function(e){return new s(this.value%H(e).value)},a.prototype.remainder=a.prototype.mod=o.prototype.remainder=o.prototype.mod,o.prototype.pow=function(e){var t,r,i,o=H(e),s=this.value,c=o.value;if(0===c)return n[1];if(0===s)return n[0];if(1===s)return n[1];if(-1===s)return o.isEven()?n[1]:n[-1];if(o.sign)return n[0];if(!o.isSmall)throw Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&l(t=Math.pow(s,c)))return new a(p(t));for(r=this,i=n[1];!0&c&&(i=i.times(r),--c),0!==c;)c/=2,r=r.square();return i},a.prototype.pow=o.prototype.pow,s.prototype.pow=function(e){var t=H(e),r=this.value,i=t.value,o=BigInt(0),a=BigInt(1),l=BigInt(2);if(i===o)return n[1];if(r===o)return n[0];if(r===a)return n[1];if(r===BigInt(-1))return t.isEven()?n[1]:n[-1];if(t.isNegative())return new s(o);for(var c=this,d=n[1];(i&a)===a&&(d=d.times(c),--i),i!==o;)i/=l,c=c.square();return d},o.prototype.modPow=function(e,t){if(e=H(e),(t=H(t)).isZero())throw Error("Cannot take modPow with modulus 0");var r=n[1],i=this.mod(t);for(e.isNegative()&&(e=e.multiply(n[-1]),i=i.modInv(t));e.isPositive();){if(i.isZero())return n[0];e.isOdd()&&(r=r.multiply(i).mod(t)),e=e.divide(2),i=i.square().mod(t)}return r},s.prototype.modPow=a.prototype.modPow=o.prototype.modPow,o.prototype.compareAbs=function(e){var t=H(e),r=this.value,i=t.value;return t.isSmall?1:I(r,i)},a.prototype.compareAbs=function(e){var t=H(e),r=Math.abs(this.value),i=t.value;return t.isSmall?r===(i=Math.abs(i))?0:r>i?1:-1:-1},s.prototype.compareAbs=function(e){var t=this.value,r=H(e).value;return(t=t>=0?t:-t)===(r=r>=0?r:-r)?0:t>r?1:-1},o.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=H(e),r=this.value,i=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:I(r,i)*(this.sign?-1:1)},o.prototype.compareTo=o.prototype.compare,a.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=H(e),r=this.value,i=t.value;return t.isSmall?r==i?0:r>i?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},a.prototype.compareTo=a.prototype.compare,s.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=this.value,r=H(e).value;return t===r?0:t>r?1:-1},s.prototype.compareTo=s.prototype.compare,o.prototype.equals=function(e){return 0===this.compare(e)},s.prototype.eq=s.prototype.equals=a.prototype.eq=a.prototype.equals=o.prototype.eq=o.prototype.equals,o.prototype.notEquals=function(e){return 0!==this.compare(e)},s.prototype.neq=s.prototype.notEquals=a.prototype.neq=a.prototype.notEquals=o.prototype.neq=o.prototype.notEquals,o.prototype.greater=function(e){return this.compare(e)>0},s.prototype.gt=s.prototype.greater=a.prototype.gt=a.prototype.greater=o.prototype.gt=o.prototype.greater,o.prototype.lesser=function(e){return 0>this.compare(e)},s.prototype.lt=s.prototype.lesser=a.prototype.lt=a.prototype.lesser=o.prototype.lt=
884o.prototype.lesser,o.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},s.prototype.geq=s.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals=o.prototype.geq=o.prototype.greaterOrEquals,o.prototype.lesserOrEquals=function(e){return 0>=this.compare(e)},s.prototype.leq=s.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals=o.prototype.leq=o.prototype.lesserOrEquals,o.prototype.isEven=function(){return(1&this.value[0])==0},a.prototype.isEven=function(){return(1&this.value)==0},s.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},o.prototype.isOdd=function(){return(1&this.value[0])==1},a.prototype.isOdd=function(){return(1&this.value)==1},s.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},o.prototype.isPositive=function(){return!this.sign},a.prototype.isPositive=function(){return this.value>0},s.prototype.isPositive=a.prototype.isPositive,o.prototype.isNegative=function(){return this.sign},a.prototype.isNegative=function(){return this.value<0},s.prototype.isNegative=a.prototype.isNegative,o.prototype.isUnit=function(){return!1},a.prototype.isUnit=function(){return 1===Math.abs(this.value)},s.prototype.isUnit=function(){return this.abs().value===BigInt(1)},o.prototype.isZero=function(){return!1},a.prototype.isZero=function(){return 0===this.value},s.prototype.isZero=function(){return this.value===BigInt(0)},o.prototype.isDivisibleBy=function(e){var t=H(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},s.prototype.isDivisibleBy=a.prototype.isDivisibleBy=o.prototype.isDivisibleBy,o.prototype.isPrime=function(e){var t=M(this);if(void 0!==t)return t;var r=this.abs(),n=r.bitLength();if(n<=64)return T(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var o=Math.log(2)*n.toJSNumber(),a=Math.ceil(!0===e?2*Math.pow(o,2):o),s=[],l=0;l<a;l++)s.push(i(l+2));return T(r,s)},s.prototype.isPrime=a.prototype.isPrime=o.prototype.isPrime,o.prototype.isProbablePrime=function(e,t){var r=M(this);if(void 0!==r)return r;for(var n=this.abs(),o=void 0===e?5:e,a=[],s=0;s<o;s++)a.push(i.randBetween(2,n.minus(2),t));return T(n,a)},s.prototype.isProbablePrime=a.prototype.isProbablePrime=o.prototype.isProbablePrime,o.prototype.modInv=function(e){for(var t,r,n,o=i.zero,a=i.one,s=H(e),l=this.abs();!l.isZero();)t=s.divide(l),r=o,n=s,o=a,s=l,a=r.subtract(t.multiply(a)),l=n.subtract(t.multiply(l));if(!s.isUnit())throw Error(this.toString()+" and "+e.toString()+" are not co-prime");return(-1===o.compare(0)&&(o=o.add(e)),this.isNegative())?o.negate():o},s.prototype.modInv=a.prototype.modInv=o.prototype.modInv,o.prototype.next=function(){var e=this.value;return this.sign?b(e,1,this.sign):new o(m(e,1),this.sign)},a.prototype.next=function(){var t=this.value;return t+1<0x20000000000000?new a(t+1):new o(e,!1)},s.prototype.next=function(){return new s(this.value+BigInt(1))},o.prototype.prev=function(){var e=this.value;return this.sign?new o(m(e,1),!0):b(e,1,this.sign)},a.prototype.prev=function(){var t=this.value;return t-1>-0x20000000000000?new a(t-1):new o(e,!0)},s.prototype.prev=function(){return new s(this.value-BigInt(1))};for(var N=[1];2*N[N.length-1]<=1e7;)N.push(2*N[N.length-1]);var _=N.length,C=N[_-1];function O(e){return 1e7>=Math.abs(e)}function P(e,t,r){t=H(t);for(var n=e.isNegative(),o=t.isNegative(),a=n?e.not():e,s=o?t.not():t,l=0,c=0,d=null,u=null,h=[];!a.isZero()||!s.isZero();)l=(d=E(a,C))[1].toJSNumber(),n&&(l=C-1-l),c=(u=E(s,C))[1].toJSNumber(),o&&(c=C-1-c),a=d[0],s=u[0],h.push(r(l,c));for(var p=0!==r(+!!n,+!!o)?i(-1):i(0),f=h.length-1;f>=0;f-=1)p=p.multiply(C).add(i(h[f]));return p}o.prototype.shiftLeft=function(e){var t=H(e).toJSNumber();if(!O(t))throw Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;for(;t>=_;)r=r.multiply(C),t-=_-1;return r.multiply(N[t])},s.prototype.shiftLeft=a.prototype.shiftLeft=o.prototype.shiftLeft,o.prototype.shiftRight=function(e){var t,r=H(e).toJSNumber();if(!O(r))throw Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var i=this;r>=_;){if(i.isZero()||i.isNegative()&&i.isUnit())return i;i=(t=E(i,C))[1].isNegative()?t[0].prev():t[0],r-=_-1}return(t=E(i,N[r]))[1].isNegative()?t[0].prev():t[0]},s.prototype.shiftRight=a.prototype.shiftRight=o.prototype.shiftRight,o.prototype.not=function(){return this.negate().prev()},s.prototype.not=a.prototype.not=o.prototype.not,o.prototype.and=function(e){return P(this,e,function(e,t){return e&t})},s.prototype.and=a.prototype.and=o.prototype.and,o.prototype.or=function(e){return P(this,e,function(e,t){return e|t})},s.prototype.or=a.prototype.or=o.prototype.or,o.prototype.xor=function(e){return P(this,e,function(e,t){return e^t})},s.prototype.xor=a.prototype.xor=o.prototype.xor;function D(e){var t=e.value,r="number"==typeof t?0x40000000|t:"bigint"==typeof t?t|BigInt(0x40000000):t[0]+1e7*t[1]|0x40004000;return r&-r}function j(e,t){return e=H(e),t=H(t),e.greater(t)?e:t}function R(e,t){return e=H(e),t=H(t),e.lesser(t)?e:t}function z(e,t){if(e=H(e).abs(),t=H(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,i,o=n[1];e.isEven()&&t.isEven();)r=R(D(e),D(t)),e=e.divide(r),t=t.divide(r),o=o.multiply(r);for(;e.isEven();)e=e.divide(D(e));do{for(;t.isEven();)t=t.divide(D(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero())return o.isUnit()?e:e.multiply(o)}o.prototype.bitLength=function(){var e=this;return(0>e.compareTo(i(0))&&(e=e.negate().subtract(i(1))),0===e.compareTo(i(0)))?i(0):i(function e(t,r){if(0>=r.compareTo(t)){var n=e(t,r.square(r)),o=n.p,a=n.e,s=o.multiply(r);return 0>=s.compareTo(t)?{p:s,e:2*a+1}:{p:o,e:2*a}}return{p:i(1),e:0}}(e,i(2)).e).add(i(1))},s.prototype.bitLength=a.prototype.bitLength=o.prototype.bitLength;var L=function(e,r,i,n){i=i||t,e=String(e),n||(e=e.toLowerCase(),i=i.toLowerCase());var o,a=e.length,s=Math.abs(r),l={};for(o=0;o<i.length;o++)l[i[o]]=o;for(o=0;o<a;o++){var c=e[o];if("-"!==c&&c in l&&l[c]>=s){if("1"===c&&1===s)continue;throw Error(c+" is not a valid digit in base "+r+".")}}r=H(r);var d=[],u="-"===e[0];for(o=+!!u;o<e.length;o++){var c=e[o];if(c in l)d.push(H(l[c]));else if("<"===c){var h=o;do o++;while(">"!==e[o]&&o<e.length)d.push(H(e.slice(h+1,o)))}else throw Error(c+" is not a valid character")}return B(d,r,u)};function B(e,t,r){var i,o=n[0],a=n[1];for(i=e.length-1;i>=0;i--)o=o.add(e[i].times(a)),a=a.times(t);return r?o.negate():o}function U(e,t){if((t=i(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 n=!1;if(e.isNegative()&&t.isPositive()&&(n=!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:n};for(var o,a=[],s=e;s.isNegative()||s.compareAbs(t)>=0;){s=(o=s.divmod(t)).quotient;var l=o.remainder;l.isNegative()&&(l=t.minus(l).abs(),s=s.next()),a.push(l.toJSNumber())}return a.push(s.toJSNumber()),{value:a.reverse(),isNegative:n}}function q(e,r,i){var n=U(e,r);return(n.isNegative?"-":"")+n.value.map(function(e){var r;return e<(r=(r=i)||t).length?r[e]:"<"+e+">"}).join("")}function W(e){if(l(+e)){var t=+e;if(t===p(t))return r?new s(BigInt(t)):new a(t);throw Error("Invalid integer: "+e)}var i="-"===e[0];i&&(e=e.slice(1));var n=e.split(/e/i);if(n.length>2)throw Error("Invalid integer: "+n.join("e"));if(2===n.length){var c=n[1];if("+"===c[0]&&(c=c.slice(1)),(c*=1)!==p(c)||!l(c))throw Error("Invalid integer: "+c+" is not a valid exponent.");var d=n[0],h=d.indexOf(".");if(h>=0&&(c-=d.length-h-1,d=d.slice(0,h)+d.slice(h+1)),c<0)throw Error("Cannot include negative exponent part for integers");d+=Array(c+1).join("0"),e=d}if(!/^([0-9][0-9]*)$/.test(e))throw Error("Invalid integer: "+e);if(r)return new s(BigInt(i?"-"+e:e));for(var f=[],g=e.length,m=g-7;g>0;)f.push(+e.slice(m,g)),(m-=7)<0&&(m=0),g-=7;return u(f),new o(f,i)}function H(e){if("number"==typeof e){if(r)return new s(BigInt(e));if(l(e)){if(e!==p(e))throw Error(e+" is not an integer.");return new a(e)}return W(e.toString())}return"string"==typeof e?W(e):"bigint"==typeof e?new s(e):e}o.prototype.toArray=function(e){return U(this,e)},a.prototype.toArray=function(e){return U(this,e)},s.prototype.toArray=function(e){return U(this,e)},o.prototype.toString=function(e,t){if(void 0===e&&(e=10),10!==e||t)return q(this,e,t);
884for(var r,i=this.value,n=i.length,o=String(i[--n]);--n>=0;)r=String(i[n]),o+="0000000".slice(r.length)+r;return(this.sign?"-":"")+o},a.prototype.toString=function(e,t){return(void 0===e&&(e=10),10!=e||t)?q(this,e,t):String(this.value)},s.prototype.toString=a.prototype.toString,s.prototype.toJSON=o.prototype.toJSON=a.prototype.toJSON=function(){return this.toString()},o.prototype.valueOf=function(){return parseInt(this.toString(),10)},o.prototype.toJSNumber=o.prototype.valueOf,a.prototype.valueOf=function(){return this.value},a.prototype.toJSNumber=a.prototype.valueOf,s.prototype.valueOf=s.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var V=0;V<1e3;V++)n[V]=H(V),V>0&&(n[-V]=H(-V));return n.one=n[1],n.zero=n[0],n.minusOne=n[-1],n.max=j,n.min=R,n.gcd=z,n.lcm=function(e,t){return e=H(e).abs(),t=H(t).abs(),e.divide(z(e,t)).multiply(t)},n.isInstance=function(e){return e instanceof o||e instanceof a||e instanceof s},n.randBetween=function(e,t,r){e=H(e);var i=r||Math.random,o=R(e,t=H(t)),a=j(e,t).subtract(o).add(1);if(a.isSmall)return o.add(Math.floor(i()*a));for(var s=U(a,1e7).value,l=[],c=!0,d=0;d<s.length;d++){var u=c?s[d]+(d+1<s.length?s[d+1]/1e7:0):1e7,h=p(i()*u);l.push(h),h<s[d]&&(c=!1)}return o.add(n.fromArray(l,1e7,!1))},n.fromArray=function(e,t,r){return B(e.map(H),H(t||10),r)},n}();t.hasOwnProperty("exports")&&(t.exports=i),"function"==typeof define&&define.amd&&(e.r,void 0!==i&&e.v(i))},854773,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.exponentDecStringToDecString=r.isExponentDecString=r.isValidDecimalString=r.isValidIntegerString=void 0;let i=/^-?\d+$/,n=/^-?\d+.?\d*$/,o=/^(-?)([\d.]+)e([-+])([\d]+)$/;function a(e){let t="";for(let r=0;r<e;r++)t+="0";return t}r.isValidIntegerString=function(e){return i.test(e)},r.isValidDecimalString=function(e){return n.test(e)},r.isExponentDecString=function(e){return o.test(e)},r.exponentDecStringToDecString=function(e){let t=e.split(o);if(6!==t.length)return e;let r="-"===t[1],i=t[2],n=i.indexOf("."),s=parseInt(t[4])*("-"===t[3]?-1:1);n>=0&&(s-=i.length-n-1,i=function(e){for(;e.length>0&&"0"===e[0];)e=e.slice(1);return 0===e.length||"."===e[0]?"0"+e:e}(i.replace(".","")));let l=r?"-":"";if(!(s<0))return l+i+a(s);if(i.length>-s){let e=i.length+s;return l+(i.slice(0,e)+".")+i.slice(e)}return l+"0."+a(-(i.length+s))+i}},846110,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Uint=r.Int=void 0;let n=i(e.r(877838)),o=e.r(854773);class a{constructor(e){if("number"==typeof e&&(e=e.toString()),"string"==typeof e){if(!(0,o.isValidIntegerString)(e))if((0,o.isExponentDecString)(e))e=(0,o.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(a.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 a(this.int.abs())}absUInt(){return new s(this.int.abs())}add(e){return new a(this.int.add(e.int))}sub(e){return new a(this.int.subtract(e.int))}mul(e){return new a(this.int.multiply(e.int))}div(e){return new a(this.int.divide(e.int))}mod(e){return new a(this.int.mod(e.int))}neg(){return new a(this.int.negate())}pow(e){return new a(this.int.pow(e.toBigNumber()))}toBigNumber(){return this.int}}r.Int=a,a.maxInt=(0,n.default)("115792089237316195423570985008687907853269984665640564039457584007913129639935");class s{constructor(e){if("number"==typeof e&&(e=e.toString()),"string"==typeof e){if(!(0,o.isValidIntegerString)(e))if((0,o.isExponentDecString)(e))e=(0,o.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)}
884add(e){return new s(this.uint.add(e.uint))}sub(e){return new s(this.uint.subtract(e.uint))}mul(e){return new s(this.uint.multiply(e.uint))}div(e){return new s(this.uint.divide(e.uint))}mod(e){return new s(this.uint.mod(e.uint))}pow(e){return new s(this.uint.pow(e.toBigNumber()))}toBigNumber(){return this.uint}}r.Uint=s},695305,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.integerStringToUSLocaleString=void 0,r.integerStringToUSLocaleString=function(e){if(e.indexOf(".")>=0)throw Error(`${e} is not integer`);if("u">typeof BigInt)return BigInt(e).toLocaleString("en-US");let t=[];for(let r=e.length;r>0;r-=3)t.push(e.slice(Math.max(0,r-3),r));return t.reverse().join(",")}},932032,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Dec=void 0;let n=i(e.r(877838)),o=e.r(846110),a=e.r(854773),s=e.r(695305);class l{static calcPrecisionMultiplier(e){if(e<0)throw Error("Invalid prec");if(e>l.precision)throw Error("Too much precision");let t=e.toString(),r=l.precisionMultipliers.get(t);if(r)return r;let i=l.precision-e,o=(0,n.default)(10).pow(i);return l.precisionMultipliers.set(t,o),o}static reduceDecimalsFromString(e){let t=e.indexOf(".");if(t<0)return{res:e,isDownToZero:!1};let r=e.length-1-t-l.precision;if(r<=0)return{res:e,isDownToZero:!1};let i=e.slice(0,e.length-r);return{res:i,isDownToZero:/^[0.]*$/.test(i)}}constructor(e,t=0){if("number"==typeof e&&(e=e.toString()),"string"==typeof e){if(0===e.length)throw Error("empty string");if(!(0,a.isValidDecimalString)(e))if((0,a.isExponentDecString)(e))e=(0,a.exponentDecStringToDecString)(e);else throw Error(`invalid decimal: ${e}`);const r=l.reduceDecimalsFromString(e);r.isDownToZero&&console.log(`WARNING: Got ${e}. 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.`),(e=r.res).indexOf(".")>=0&&(t=e.length-e.indexOf(".")-1,e=e.replace(".","")),this.int=(0,n.default)(e)}else e instanceof o.Int||e instanceof o.Uint?this.int=(0,n.default)(e.toString()):this.int=(0,n.default)(e);this.int=this.int.multiply(l.calcPrecisionMultiplier(t)),this.checkBitLen()}checkBitLen(){if(this.int.abs().gt(l.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 l(this.int.negate(),l.precision)}abs(){return new l(this.int.abs(),l.precision)}add(e){return new l(this.int.add(e.int),l.precision)}sub(e){return new l(this.int.subtract(e.int),l.precision)}pow(e){if(e.isZero())return new l(1);if(e.isNegative())return new l(1).quo(this.pow(e.abs()));let t=new l(this.int,l.precision),r=new l(1);for(let i=e;i.gt(new o.Int(1));i=i.div(new o.Int(2)))i.mod(new o.Int(2)).isZero()||(r=r.mul(t)),t=t.mul(t);return t.mul(r)}approxSqrt(){return this.approxRoot(2)}approxRoot(e,t=300){if(this.isNegative())return this.neg().approxRoot(e).neg();if(1===e||this.isZero()||this.equals(l.one))return this;if(0===e)return l.one;let[r,i]=[l.one,l.one];for(let n=0;i.abs().gt(l.smallestDec)&&n<t;n++){let t=r.pow(new o.Int(e-1));t.isZero()&&(t=l.smallestDec),i=(i=(i=this.quo(t)).sub(r)).quoTruncate(new l(e)),r=r.add(i)}return r}mul(e){return new l(this.mulRaw(e).chopPrecisionAndRound(),l.precision)}mulTruncate(e){return new l(this.mulRaw(e).chopPrecisionAndTruncate(),l.precision)}mulRoundUp(e){return new l(this.mulRaw(e).chopPrecisionAndRoundUp(),l.precision)}mulRaw(e){return new l(this.int.multiply(e.int),l.precision)}quo(e){return new l(this.quoRaw(e).chopPrecisionAndRound(),l.precision)}quoTruncate(e){return new l(this.quoRaw(e).chopPrecisionAndTruncate(),l.precision)}quoRoundUp(e){return new l(this.quoRaw(e).chopPrecisionAndRoundUp(),l.precision)}quoRaw(e){let t=l.calcPrecisionMultiplier(0);return new l(this.int.multiply(t).multiply(t).divide(e.int),l.precision)}isInteger(){let e=l.calcPrecisionMultiplier(0);return this.int.remainder(e).equals((0,n.default)(0))}chopPrecisionAndRound(){if(this.isNegative())return this.abs().chopPrecisionAndRound().negate();let e=l.calcPrecisionMultiplier(0),t=e.divide((0,n.default)(2)),{quotient:r,remainder:i}=this.int.divmod(e);return i.equals((0,n.default)(0))||i.lt(t)?r:i.gt(t)?r.add((0,n.default)(1)):r.divide((0,n.default)(2)).equals((0,n.default)(0))?r:r.add((0,n.default)(1))}chopPrecisionAndRoundUp(){if(this.isNegative())return this.abs().chopPrecisionAndTruncate().negate();let e=l.calcPrecisionMultiplier(0),{quotient:t,remainder:r}=this.int.divmod(e);return r.equals((0,n.default)(0))?t:t.add((0,n.default)(1))}chopPrecisionAndTruncate(){let e=l.calcPrecisionMultiplier(0);return this.int.divide(e)}toString(e=l.precision,t=!1){let r=l.calcPrecisionMultiplier(0),{quotient:i,remainder:o}=this.int.abs().divmod(r),a=o.toString(10);for(let e=0,t=a.length;e<l.precision-t;e++)a="0"+a;a=a.substring(0,e);let c=this.isNegative()&&!(i.eq((0,n.default)(0))&&0===a.length),d=t?(0,s.integerStringToUSLocaleStr
884ing)(i.toString()):i.toString();return`${c?"-":""}${d}${a.length>0?"."+a:""}`}round(){return new o.Int(this.chopPrecisionAndRound())}roundUp(){return new o.Int(this.chopPrecisionAndRoundUp())}truncate(){return new o.Int(this.chopPrecisionAndTruncate())}roundDec(){return new l(this.chopPrecisionAndRound(),0)}roundUpDec(){return new l(this.chopPrecisionAndRoundUp(),0)}truncateDec(){return new l(this.chopPrecisionAndTruncate(),0)}}r.Dec=l,l.precision=18,l.decimalPrecisionBits=60,l.maxDec=(0,n.default)("133499189745056880149688856635597007162669032647290798121690100488888732861290034376435130433535"),l.precisionMultipliers=new Map,l.zero=new l(0),l.smallestDec=new l("1",l.precision),l.one=new l(1),o.Int.prototype.toDec=function(){return new l(this)},o.Uint.prototype.toDec=function(){return new l(this)}},19232,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DecUtils=void 0;let i=e.r(932032),n=e.r(846110);class o{static trim(e){let t="string"==typeof e?e:e.toString();if(0>t.indexOf("."))return t;for(let e=t.length-1;e>=0;e--)if("0"===t[e])t=t.slice(0,e);else break;return t.length>0&&"."===t[t.length-1]&&(t=t.slice(0,t.length-1)),t}static getTenExponentN(e){if(e<-i.Dec.precision)throw Error("Too little precision");if(o.tenExponentNs[e.toString()])return o.tenExponentNs[e.toString()];let t=new i.Dec(10).pow(new n.Int(e));return o.tenExponentNs[e.toString()]=t,t}static getTenExponentNInPrecisionRange(e){if(e>i.Dec.precision)throw Error("Too much precision");return o.getTenExponentN(e)}static getPrecisionDec(e){return o.getTenExponentNInPrecisionRange(e)}}r.DecUtils=o,o.tenExponentNs={}},379154,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Coin=void 0;let i=e.r(846110);r.Coin=class e{static parse(t){let r=RegExp("([0-9]+)[ ]*([a-zA-Z]+)$").exec(t);if(!r||3!==r.length)throw Error("Invalid coin str");return new e(r[2],r[1])}constructor(e,t){this.denom=e,this.amount=t instanceof i.Int?t:new i.Int(t)}toString(){return`${this.amount.toString()}${this.denom}`}}},755533,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CoinUtils=void 0;let i=e.r(379154),n=e.r(846110),o=e.r(932032),a=e.r(19232),s=e.r(695305);class l{static createCoinsFromPrimitives(e){return e.map(e=>new i.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=>0===t.indexOf(e.denom))}static concat(...e){return 0===e.length?[]:e.slice().reduce((e,t)=>{let r=e.find(e=>e.denom===t.denom);if(r){let n=new i.Coin(r.denom,r.amount.add(t.amount));e.push(n)}else{let r=new i.Coin(t.denom,t.amount);e.push(r)}return e},[])}static getCoinFromDecimals(e,t,r){let n=e.find(e=>e.coinDenom===r);if(!n)throw Error("Invalid currency");let a=new o.Dec(1);for(let e=0;e<n.coinDecimals;e++)a=a.mul(new o.Dec(10));let s=new o.Dec(t);if(s=s.mul(a),!new o.Dec(s.truncate()).equals(s))throw Error("Can't divide anymore");return new i.Coin(n.coinMinimalDenom,s.truncate())}static parseDecAndDenomFromCoin(e,t){let r=e.find(e=>e.coinMinimalDenom===t.denom);r||(r={coinDecimals:0,coinDenom:t.denom,coinMinimalDenom:t.denom});let i=new o.Dec(1);for(let e=0;e<r.coinDecimals;e++)i=i.mul(new o.Dec(10));return{amount:new o.Dec(t.amount).quoTruncate(i).toString(r.coinDecimals),denom:r.coinDenom}}static shrinkDecimals(e,t,r,i=!1){if(e.equals(new o.Dec(0)))return"0";let n=e.isNegative(),a=e.abs().truncate(),s=e.abs().sub(new o.Dec(a)),c=Math.max(r-a.toString().length+1,t),d=0===c?"":s.toString(c).replace("0.","");return(n?"-":"")+(i?l.integerStringToUSLocaleString(a.toString()):a.toString())+(d.length>0?".":"")+d}static coinToTrimmedString(e,t,r=" "){let i=new o.Dec(e.amount).quoTruncate(a.DecUtils.getPrecisionDec(t.coinDecimals));return`${a.DecUtils.trim(i)}${r}${t.coinDenom}`}}r.CoinUtils=l,l.integerStringToUSLocaleString=s.integerStringToUSLocaleString},371868,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.IntPretty=void 0;let i=e.r(846110),n=e.r(932032),o=e.r(19232),a=e.r(755533);r.IntPretty=class e{constructor(e){if(this.floatingDecimalPointRight=0,this._options={maxDecimals:0,trim:!1,shrink:!1,ready:!0,locale:!0,inequalitySymbol:!1,inequalitySymbolSeparator:" "},"object"==typeof e&&"toDec"in e?e=e.toDec():e instanceof n.Dec||(e=new n.Dec(e)),e.isZero()){this.dec=e;return}let t=e,r=0;for(let e=0;e<18&&!(!t.truncate().equals(new i.Int(0))&&t.equals(new n.Dec(t.truncate())));e++)t=t.mul(new n.Dec(10)),r++;this.dec=e,this._options.maxDecimals=r}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(0===this.floatingDecimalPointRight)return this.dec;{if(this.floatingDecimalPointRight>0)return this.dec.mulTruncate(o.DecUtils.getTenExponentN(this.floatingDecimalPointRight));let e=-this.floatingDecimalPointRight,t=this.dec;for(;e>0;)if(e>=n.Dec.precision)t=t.mulTruncate(o.DecUtils.getTenExponentN(-n.Dec.precision)),e-=n.Dec.precision;else{t=t.mulTruncate(o.DecUtils.getTenExponentN(-(e%n.Dec.precision)));break}return t}}
884toString(){return this.toStringWithSymbols("","")}toStringWithSymbols(e,t){let r,i=this.toDec();if(this._options.inequalitySymbol&&!i.isZero()&&i.abs().lt(o.DecUtils.getTenExponentN(-this._options.maxDecimals))){let r=i.isNegative();return`${r?">":"<"}${this._options.inequalitySymbolSeparator}${r?"-":""}${e}${o.DecUtils.getTenExponentN(-this._options.maxDecimals).toString(this._options.maxDecimals,this._options.locale)}${t}`}r=this._options.shrink?a.CoinUtils.shrinkDecimals(i,0,this._options.maxDecimals,this._options.locale):i.toString(this._options.maxDecimals,this._options.locale),this._options.trim&&(r=o.DecUtils.trim(r));let n="-"===r.charAt(0);return n&&(r=r.slice(1)),`${n?"-":""}${e}${r}${t}`}clone(){let t=new e(this.dec);return t.dec=this.dec,t.floatingDecimalPointRight=this.floatingDecimalPointRight,t._options=Object.assign({},this._options),t}}},147341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CoinPretty=void 0;let i=e.r(371868),n=e.r(932032),o=e.r(19232);r.CoinPretty=class e{constructor(e,t){this._currency=e,this._options={separator:" ",upperCase:!1,lowerCase:!1,hideDenom:!1,hideIBCMetadata:!1},"object"==typeof t&&"toDec"in t?t=t.toDec():t instanceof n.Dec||(t=new n.Dec(t)),this.intPretty=new i.IntPretty(t.quoTruncate(o.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 r=t instanceof e;if(r&&"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(r?t:t.mul(o.DecUtils.getTenExponentNInPrecisionRange(-this._currency.coinDecimals))),i}sub(t){let r=t instanceof e;if(r&&"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(r?t:t.mul(o.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(o.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.toStringWithSymbol
884s("",`${t}${e}`)}clone(){let t=new e(this._currency,0);return t._options=Object.assign({},this._options),t.intPretty=this.intPretty.clone(),t}}},610402,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PricePretty=void 0;let i=e.r(371868),n=e.r(19232);r.PricePretty=class e{constructor(e,t){this._fiatCurrency=e,this._options={separator:"",upperCase:!1,lowerCase:!1,locale:"en-US"},this.intPretty=new i.IntPretty(t).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}),o="-"===i.charAt(0);return o&&(i=i.slice(1)),`${o?"-":""}${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}}},882964,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RatePretty=void 0;let i=e.r(371868);r.RatePretty=class e{constructor(e){this._options={separator:"",symbol:"%"},this.intPretty=new i.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).toStringWithSymbol
884s("",`${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}}},665601,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(371868),r),n(e.r(147341),r),n(e.r(379154),r),n(e.r(846110),r),n(e.r(932032),r),n(e.r(755533),r),n(e.r(19232),r),n(e.r(610402),r),n(e.r(882964),r)},977143,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSimpleFetchError=r.SimpleFetchError=void 0;class i extends Error{constructor(e,t,r){super(`Failed to get response from ${new URL(t,e).toString()}`),this.baseURL=e,this.url=t,this.response=r,Object.setPrototypeOf(this,i.prototype)}}r.SimpleFetchError=i,r.isSimpleFetchError=function(e){return e instanceof i}},525798,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},n=e.e&&e.e.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};Object.defineProperty(r,"__esModule",{value:!0}),r.simpleFetch=r.makeURL=void 0;let o=e.r(977143);function a(e,t){let r=new URL(e);return e=l(r.origin),t=l(r.pathname)+"/"+s(t),l(e+"/"+s(t))}function s(e){return e.length>0&&"/"===e[0]?e.slice(1):e}function l(e){return e.length>0&&"/"===e[e.length-1]?e.slice(0,e.length-1):e}r.makeURL=a;r.simpleFetch=function(e,t,r){return i(this,void 0,void 0,function*(){let i;"string"!=typeof t&&(t&&(r=t),t=""),"/"===t&&(t="");let s=a(e,t),l=r||{},{headers:c}=l,d=n(l,["headers"]),u=yield fetch(s,Object.assign({headers:Object.assign({accept:"application/json, text/plain, */*"},c)},d));if((u.headers.get("content-type")||"").startsWith("application/json"))i=yield u.json();else{let e=yield u.text(),t=e.trim();i=t.startsWith("{")&&t.endsWith("}")?JSON.parse(t):e}let h={url:s,data:i,headers:u.headers,status:u.status,statusText:u.statusText};if(!((null==r?void 0:r.validateStatus)||function(e){return 200===e})(u.status))throw new o.SimpleFetchError(e,t,h);return h})}},839314,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},804287,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),n(e.r(525798),r),n(e.r(977143),r),n(e.r(839314),r)},12782,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.BaseAccount=void 0;let n=e.r(665601),o=e.r(804287);r.BaseAccount=class e{static fetchFromRest(t,r,n=!1){return i(this,void 0,void 0,function*(){let i=yield(0,o.simpleFetch)(t,`/cosmos/auth/v1beta1/accounts/${r}`,{validateStatus:function(e){return e>=200&&e<300||404===e}});return e.fromProtoJSON(i.data,n?r:"")})}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,o=i["@type"]||"",a=i.BaseAccount||i.baseAccount||i.base_account;a&&(i=a);let s=i.account;s&&(i=s);let l=i.BaseVestingAccount||i.baseVestingAccount||i.base_vesting_account;if(l){let e=(i=l).BaseAccount||i.baseAccount||i.base_account;e&&(i=e)}let c=i.address;if(!c){if(!r)throw Error(`Account's address is unknown: ${JSON.stringify(t)}`);c=r}let d=i.account_number,u=i.sequence;return new e(o,c,new n.Int(d||"0"),new n.Int(u||"0"))}
884constructor(e,t,r,i){this.type=e,this.address=t,this.accountNumber=r,this.sequence=i}getType(){return this.type}getAddress(){return this.address}getAccountNumber(){return this.accountNumber}getSequence(){return this.sequence}}},262353,(e,t,r)=>{t.exports=e.r(730399)},939860,(e,t,r)=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},420659,(e,t,r)=>{let i,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];r.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},r.getSymbolTotalCodewords=function(e){return n[e]},r.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},r.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');i=e},r.isKanjiModeEnabled=function(){return void 0!==i},r.toSJIS=function(e){return i(e)}},478490,(e,t,r)=>{r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2},r.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},r.from=function(e,t){if(r.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw Error("Unknown EC Level: "+e)}}catch(e){return t}}},162685,(e,t,r)=>{function i(){this.buffer=[],this.length=0}i.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=i},450550,(e,t,r)=>{function i(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}i.prototype.set=function(e,t,r,i){let n=e*this.size+t;this.data[n]=r,i&&(this.reservedBit[n]=!0)},i.prototype.get=function(e,t){return this.data[e*this.size+t]},i.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},i.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=i},487651,(e,t,r)=>{let i=e.r(420659).getSymbolSize;r.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,r=i(e),n=145===r?26:2*Math.ceil((r-13)/(2*t-2)),o=[r-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-n;return o.push(6),o.reverse()},r.getPositions=function(e){let t=[],i=r.getRowColCoords(e),n=i.length;for(let e=0;e<n;e++)for(let r=0;r<n;r++)(0!==e||0!==r)&&(0!==e||r!==n-1)&&(e!==n-1||0!==r)&&t.push([i[e],i[r]]);return t}},94816,(e,t,r)=>{let i=e.r(420659).getSymbolSize;r.getPositions=function(e){let t=i(e);return[[0,0],[t-7,0],[0,t-7]]}},564141,(e,t,r)=>{r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};r.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},r.from=function(e){return r.isValid(e)?parseInt(e,10):void 0},r.getPenaltyN1=function(e){let t=e.size,r=0,i=0,n=0,o=null,a=null;for(let s=0;s<t;s++){i=n=0,o=a=null;for(let l=0;l<t;l++){let t=e.get(s,l);t===o?i++:(i>=5&&(r+=3+(i-5)),o=t,i=1),(t=e.get(l,s))===a?n++:(n>=5&&(r+=3+(n-5)),a=t,n=1)}i>=5&&(r+=3+(i-5)),n>=5&&(r+=3+(n-5))}return r},r.getPenaltyN2=function(e){let t=e.size,r=0;for(let i=0;i<t-1;i++)for(let n=0;n<t-1;n++){let t=e.get(i,n)+e.get(i,n+1)+e.get(i+1,n)+e.get(i+1,n+1);(4===t||0===t)&&r++}return 3*r},r.getPenaltyN3=function(e){let t=e.size,r=0,i=0,n=0;for(let o=0;o<t;o++){i=n=0;for(let a=0;a<t;a++)i=i<<1&2047|e.get(o,a),a>=10&&(1488===i||93===i)&&r++,n=n<<1&2047|e.get(a,o),a>=10&&(1488===n||93===n)&&r++}return 40*r},r.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let i=0;i<r;i++)t+=e.data[i];return 10*Math.abs(Math.ceil(100*t/r/5)-10)}
884,r.applyMask=function(e,t){let i=t.size;for(let n=0;n<i;n++)for(let o=0;o<i;o++)t.isReserved(o,n)||t.xor(o,n,function(e,t,i){switch(e){case r.Patterns.PATTERN000:return(t+i)%2==0;case r.Patterns.PATTERN001:return t%2==0;case r.Patterns.PATTERN010:return i%3==0;case r.Patterns.PATTERN011:return(t+i)%3==0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(i/3))%2==0;case r.Patterns.PATTERN101:return t*i%2+t*i%3==0;case r.Patterns.PATTERN110:return(t*i%2+t*i%3)%2==0;case r.Patterns.PATTERN111:return(t*i%3+(t+i)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,o,n))},r.getBestMask=function(e,t){let i=Object.keys(r.Patterns).length,n=0,o=1/0;for(let a=0;a<i;a++){t(a),r.applyMask(a,e);let i=r.getPenaltyN1(e)+r.getPenaltyN2(e)+r.getPenaltyN3(e)+r.getPenaltyN4(e);r.applyMask(a,e),i<o&&(o=i,n=a)}return n}},56418,(e,t,r)=>{let i=e.r(478490),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];r.getBlocksCount=function(e,t){switch(t){case i.L:return n[(e-1)*4+0];case i.M:return n[(e-1)*4+1];case i.Q:return n[(e-1)*4+2];case i.H:return n[(e-1)*4+3];default:return}},r.getTotalCodewordsCount=function(e,t){switch(t){case i.L:return o[(e-1)*4+0];case i.M:return o[(e-1)*4+1];case i.Q:return o[(e-1)*4+2];case i.H:return o[(e-1)*4+3];default:return}}},488982,(e,t,r)=>{let i=new Uint8Array(512),n=new Uint8Array(256),o=1;for(let e=0;e<255;e++)i[e]=o,n[o]=e,256&(o<<=1)&&(o^=285);for(let e=255;e<512;e++)i[e]=i[e-255];r.log=function(e){if(e<1)throw Error("log("+e+")");return n[e]},r.exp=function(e){return i[e]},r.mul=function(e,t){return 0===e||0===t?0:i[n[e]+n[t]]}},911821,(e,t,r)=>{let i=e.r(488982);r.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let n=0;n<e.length;n++)for(let o=0;o<t.length;o++)r[n+o]^=i.mul(e[n],t[o]);return r},r.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let e=r[0];for(let n=0;n<t.length;n++)r[n]^=i.mul(t[n],e);let n=0;for(;n<r.length&&0===r[n];)n++;r=r.slice(n)}return r},r.generateECPolynomial=function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=r.mul(t,new Uint8Array([1,i.exp(n)]));return t}},202927,(e,t,r)=>{let i=e.r(911821);function n(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},n.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=i.mod(t,this.genPoly),n=this.degree-r.length;if(n>0){let e=new Uint8Array(this.degree);return e.set(r,n),e}return r},t.exports=n},152203,(e,t,r)=>{r.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},95450,(e,t,r)=>{let i="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";r.KANJI=RegExp(n,"g"),r.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),r.BYTE=RegExp(o,"g"),r.NUMERIC=RegExp(i,"g"),r.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let a=RegExp("^"+n+"$"),s=RegExp("^"+i+"$"),l=RegExp("^[A-Z0-9 $%*+\\-./:]+$");r.testKanji=function(e){return a.test(e)},r.testNumeric=function(e){return s.test(e)},r.testAlphanumeric=function(e){return l.test(e)}},919050,(e,t,r)=>{let i=e.r(152203),n=e.r(95450);r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!i.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]}
vendor: 12,594 bytes, line 884
884,r.getBestModeForData=function(e){return n.testNumeric(e)?r.NUMERIC:n.testAlphanumeric(e)?r.ALPHANUMERIC:n.testKanji(e)?r.KANJI:r.BYTE},r.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},r.isValid=function(e){return e&&e.bit&&e.ccBits},r.from=function(e,t){if(r.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw Error("Unknown mode: "+e)}}catch(e){return t}}},391049,(e,t,r)=>{let i=e.r(420659),n=e.r(56418),o=e.r(478490),a=e.r(919050),s=e.r(152203),l=i.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}r.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},r.getCapacity=function(e,t,r){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);let o=(i.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,t))*8;if(r===a.MIXED)return o;let l=o-c(r,e);switch(r){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},r.getBestVersionForData=function(e,t){let i,n=o.from(t,o.M);if(Array.isArray(e)){if(e.length>1){for(let t=1;t<=40;t++)if(function(e,t){let r=0;return e.forEach(function(e){let i=c(e.mode,t);r+=i+e.getBitsLength()}),r}(e,t)<=r.getCapacity(t,n,a.MIXED))return t;return}if(0===e.length)return 1;i=e[0]}else i=e;return function(e,t,i){for(let n=1;n<=40;n++)if(t<=r.getCapacity(n,i,e))return n}(i.mode,i.getLength(),n)},r.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;i.getBCHDigit(t)-l>=0;)t^=7973<<i.getBCHDigit(t)-l;return e<<12|t}},602710,(e,t,r)=>{let i=e.r(420659),n=i.getBCHDigit(1335);r.getEncodedBits=function(e,t){let r=e.bit<<3|t,o=r<<10;for(;i.getBCHDigit(o)-n>=0;)o^=1335<<i.getBCHDigit(o)-n;return(r<<10|o)^21522}},39230,(e,t,r)=>{let i=e.r(919050);function n(e){this.mode=i.NUMERIC,this.data=e.toString()}n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let t,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let i=this.data.length-t;i>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*i+1))},t.exports=n},652661,(e,t,r)=>{let i=e.r(919050),n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=i.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*n.indexOf(this.data[t]);r+=n.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(n.indexOf(this.data[t]),6)},t.exports=o},842576,(e,t,r)=>{let i=e.r(919050);function n(e){this.mode=i.BYTE,"string"==typeof e?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}n.getBitsLength=function(e){return 8*e},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},t.exports=n},185236,(e,t,r)=>{let i=e.r(919050),n=e.r(420659);function o(e){this.mode=i.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=n.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},t.exports=o},9911,(e,t,r)=>{let i=e.r(919050),n=e.r(39230),o=e.r(652661),a=e.r(842576),s=e.r(185236),l=e.r(95450),c=e.r(420659),d=e.r(906328);function u(e){return unescape(encodeURIComponent(e)).length}function h(e,t,r){let i,n=[];for(;null!==(i=e.exec(r));)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function p(e){let t,r,n=h(l.NUMERIC,i.NUMERIC,e),o=h(l.ALPHANUMERIC,i.ALPHANUMERIC,e);return c.isKanjiModeEnabled()?(t=h(l.BYTE,i.BYTE,e),r=h(l.KANJI,i.KANJI,e)):(t=h(l.BYTE_KANJI,i.BYTE,e),r=[]),n.concat(o,t,r).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case i.NUMERIC:return n.getBitsLength(e);case i.ALPHANUMERIC:return o.getBitsLength(e);case i.KANJI:return s.getBitsLength(e);case i.BYTE:return a.getBitsLength(e)}}function g(e,t){let r,l=i.getBestModeForData(e);if((r=i.from(t,l))!==i.BYTE&&r.bit<l.bit)throw Error('"'+e+'" cannot be encoded with mode '+i.toString(r)+".\n Suggested mode is: "+i.toString(l));switch(r===i.KANJI&&!c.isKanjiModeEnabled()&&(r=i.BYTE),r){case i.NUMERIC:return new n(e);case i.ALPHANUMERIC:return new o(e);case i.KANJI:return new s(e);case i.BYTE:return new a(e)}}r.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},r.fromString=function(e,t){let n=function(e,t){let r={},n={start:{}},o=["start"];for(let a=0;a<e.length;a++){let s=e[a],l=[];for(let e=0;e<s.length;e++){let c=s[e],d=""+a+e;l.push(d),r[d]={node:c,lastCount:0},n[d]={};for(let e=0;e<o.length;e++){let a=o[e];r[a]&&r[a].node.mode===c.mode?(n[a][d]=f(r[a].lastCount+c.length,c.mode)-f(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),n[a][d]=f(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,t))}}o=l}for(let e=0;e<o.length;e++)n[o[e]].end=0;return{map:n,table:r}}(function(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case i.NUMERIC:t.push([n,{data:n.data,mode:i.ALPHANUMERIC,length:n.length},{data:n.data,mode:i.BYTE,length:n.length}]);break;case i.ALPHANUMERIC:t.push([n,{data:n.data,mode:i.BYTE,length:n.length}]);break;case i.KANJI:t.push([n,{data:n.data,mode:i.BYTE,length:u(n.data)}]);break;case i.BYTE:t.push([{data:n.data,mode:i.BYTE,length:u(n.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),t),o=d.find_path(n.map,"start","end"),a=[];for(let e=1;e<o.length-1;e++)a.push(n.table[o[e]].node);return r.fromArray(a.reduce(function(e,t){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},r.rawSplit=function(e){return r.fromArray(p(e,c.isKanjiModeEnabled()))}},363650,(e,t,r)=>{let i=e.r(420659),n=e.r(478490),o=e.r(162685),a=e.r(450550),s=e.r(487651),l=e.r(94816),c=e.r(564141),d=e.r(56418),u=e.r(202927),h=e.r(391049),p=e.r(602710),f=e.r(919050),g=e.r(9911);function m(e,t,r){let i,n,o=e.size,a=p.getEncodedBits(t,r);for(i=0;i<15;i++)n=(a>>i&1)==1,i<6?e.set(i,8,n,!0):i<8?e.set(i+1,8,n,!0):e.set(o-15+i,8,n,!0),i<8?e.set(8,o-i-1,n,!0):i<9?e.set(8,15-i-1+1,n,!0):e.set(8,15-i-1,n,!0);e.set(o-8,8,1,!0)}r.create=function(e,t){let r,p;if(void 0===e||""===e)throw Error("No input text");let y=n.M;return void 0!==t&&(y=n.from(t.errorCorrectionLevel,n.M),r=h.from(t.version),p=c.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),function(e,t,r,n){let p;if(Array.isArray(e))p=g.fromArray(e);else if("string"==typeof e){let i=t;if(!i){let t=g.rawSplit(e);i=h.getBestVersionForData(t,r)}p=g.fromString(e,i||40)}else throw Error("Invalid data");let y=h.getBestVersionForData(p,r);if(!y)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;let b=function(e,t,r){let n=new o;r.forEach(function(t){n.put(t.mode.bit,4),n.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(n)});let a=(i.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t))*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);let s=(a-n.getLengthInBits())/8;for(let e=0;e<s;e++)n.put(e%2?17:236,8);return function(e,t,r){let n,o,a=i.getSymbolTotalCodewords(t),s=a-d.getTotalCodewordsCount(t,r),l=d.getBlocksCount(t,r),c=a%l,h=l-c,p=Math.floor(a/l),f=Math.floor(s/l),g=f+1,m=p-f,y=new u(m),b=0,v=Array(l),w=Array(l),x=0,S=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<h?f:g;v[e]=S.slice(b,b+t),w[e]=y.encode(v[e]),b+=t,x=Math.max(x,t)}let A=new Uint8Array(a),k=0;for(n=0;n<x;n++)for(o=0;o<l;o++)n<v[o].length&&(A[k++]=v[o][n]);for(n=0;n<m;n++)for(o=0;o<l;o++)A[k++]=w[o][n];return A}(n,e,t)}(t,r,p),v=new a(i.getSymbolSize(t));!function(e,t){let r=e.size,i=l.getPositions(t);for(let t=0;t<i.length;t++){let n=i[t][0],o=i[t][1];for(let t=-1;t<=7;t++)if(!(n+t<=-1)&&!(r<=n+t))for(let i=-1;i<=7;i++)o+i<=-1||r<=o+i||(t>=0&&t<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===t||6===t)||t>=2&&t<=4&&i>=2&&i<=4?e.set(n+t,o+i,!0,!0):e.set(n+t,o+i,!1,!0))}}(v,t);let w=v.size;for(let e=8;e<w-8;e++){let t=e%2==0;v.set(e,6,t,!0),v.set(6,e,t,!0)}return!function(e,t){let r=s.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],n=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(i+t,n+r,!0,!0):e.set(i+t,n+r,!1,!0)}}(v,t),m(v,r,0),t>=7&&function(e,t){let r,i,n,o=e.size,a=h.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),i=t%3+o-8-3,n=(a>>t&1)==1,e.set(r,i,n,!0),e.set(i,r,n,!0)}(v,t),!function(e,t){let r=e.size,i=-1,n=r-1,o=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(n,s-r)){let i=!1;a<t.length&&(i=(t[a]>>>o&1)==1),e.set(n,s-r,i),-1==--o&&(a++,o=7)}if((n+=i)<0||r<=n){n-=i,i=-i;break}}}(v,b),isNaN(n)&&(n=c.getBestMask(v,m.bind(null,v,r))),c.applyMask(n,v),m(v,r,n),{modules:v,version:t,errorCorrectionLevel:r,maskPattern:n,segments:p}}(e,r,y,p)}},149614,(e,t,r)=>{function i(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}r.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,n=e.scale||4;return{width:r,scale:r?4:n,margin:t,color:{dark:i(e.color.dark||"#000000ff"),light:i(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},r.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},r.getImageWidth=function(e,t){let i=r.getScale(e,t);return Math.floor((e+2*t.margin)*i)},r.qrToImageData=function(e,t,i){let n=t.modules.size,o=t.modules.data,a=r.getScale(n,i),s=Math.floor((n+2*i.margin)*a),l=i.margin*a,c=[i.color.light,i.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let d=(t*s+r)*4,u=i.color.light;t>=l&&r>=l&&t<s-l&&r<s-l&&(u=c[+!!o[Math.floor((t-l)/a)*n+Math.floor((r-l)/a)]]),e[d++]=u.r,e[d++]=u.g,e[d++]=u.b,e[d]=u.a}}},53003,(e,t,r)=>{let i=e.r(149614);r.render=function(e,t,r){var n;let o=r,a=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),o=i.getOptions(o);let s=i.getImageWidth(e.modules.size,o),l=a.getContext("2d"),c=l.createImageData(s,s);return i.qrToImageData(c.data,e,o),n=a,l.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px",l.putImageData(c,0,0),a},r.renderToDataURL=function(e,t,i){let n=i;void 0!==n||t&&t.getContext||(n=t,t=void 0),n||(n={});let o=r.render(e,t,n),a=n.type||"image/png",s=n.rendererOpts||{};return o.toDataURL(a,s.quality)}},148807,(e,t,r)=>{let i=e.r(149614);function n(e,t){let r=e.a/255,i=t+'="'+e.hex+'"';return r<1?i+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':i}function o(e,t,r){let i=e+t;return void 0!==r&&(i+=" "+r),i}r.render=function(e,t,r){let a=i.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*a.margin,d=a.color.light.a?"<path "+n(a.c
884olor.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+n(a.color.dark,"stroke")+' d="'+function(e,t,r){let i="",n=0,a=!1,s=0;for(let l=0;l<e.length;l++){let c=Math.floor(l%t),d=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(i+=a?o("M",c+r,.5+d+r):o("m",n,0),n=0,a=!1),c+1<t&&e[l+1]||(i+=o("h",s),s=0)):n++}return i}(l,s,a.margin)+'"/>',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+('viewBox="0 0 '+c+" ")+c+'" shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof r&&r(null,h),h}},514960,(e,t,r)=>{let i=e.r(939860),n=e.r(363650),o=e.r(53003),a=e.r(148807);function s(e,t,r,o,a){let s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!i())throw Error("Callback required as last argument");if(c){if(l<2)throw Error("Too few arguments provided");2===l?(a=r,r=t,t=o=void 0):3===l&&(t.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=r,r=t,t=void 0))}else{if(l<1)throw Error("Too few arguments provided");return 1===l?(r=t,t=o=void 0):2!==l||t.getContext||(o=r,r=t,t=void 0),new Promise(function(i,a){try{let a=n.create(r,o);i(e(a,t,o))}catch(e){a(e)}})}try{let i=n.create(r,o);a(null,e(i,t,o))}catch(e){a(e)}}r.create=n.create,r.toCanvas=s.bind(null,o.render),r.toDataURL=s.bind(null,o.renderToDataURL),r.toString=s.bind(null,function(e,t,r){return a.render(e,r)})},861114,(e,t,r)=>{"use strict";e.i(494514);var i,n,o=e.r(82875);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){var r=t,i=e,n=r.entry;for(r.entry=null;n;){var o=n.callback;i.pendingcb--,o(void 0),n=n.next}i.corkedRequestsFree.next=r}}t.exports=m;var s=o.nextTick;m.WritableState=g;var l=Object.create(e.r(503399));l.inherits=e.r(737011);var c={deprecate:e.r(754252)},d=e.r(146802),u=e.r(599863).Buffer,h=e.g.Uint8Array||function(){},p=e.r(973713);function f(){}function g(t,r){i=i||e.r(960651),t=t||{};var n=r instanceof i;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var l=t.highWaterMark,c=t.writableHighWaterMark,d=this.objectMode?16:16384;l||0===l?this.highWaterMark=l:n&&(c||0===c)?this.highWaterMark=c:this.highWaterMark=d,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(o.nextTick(n,t),o.nextTick(S,e,r),e._writableState.errorEmitted=!0,e.emit("error",t)):(n(t),e._writableState.errorEmitted=!0,e.emit("error",t),S(e,r));else{var a=w(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),i?s(b,e,r,a,n):b(e,r,a,n)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}l.inherits(m,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function m(t){if(i=i||e.r(960651),!n.call(m,this)&&!(this instanceof i))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),d.call(this)}function y(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function b(e,t,r,i){var n,o;r||(n=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,n.emit("drain"))),t.pendingcb--,i(),S(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=Array(t.bufferedRequestCount),n=t.corkedRequestsFree;n.entry=r;for(var o=0,s=!0;r;)i[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;i.allBuffers=s,y(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,d=r.callback,u=t.objectMode?1:l.length;if(y(e,t,!1,u,l,c,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function S(e,t){var r=w(t);return r&&(t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===m&&e&&e._writableState instanceof g}})):n=function(e){return e instanceof this}
884,m.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,r){var i,n,a,s,l,c,d,p,g=this._writableState,m=!1,b=!g.objectMode&&(i=e,u.isBuffer(i)||i instanceof h);return(b&&!u.isBuffer(e)&&(n=e,e=u.from(n)),"function"==typeof t&&(r=t,t=null),b?t="buffer":t||(t=g.defaultEncoding),"function"!=typeof r&&(r=f),g.ended)?(a=r,s=Error("write after end"),this.emit("error",s),o.nextTick(a,s)):(b||(l=e,c=r,d=!0,p=!1,null===l?p=TypeError("May not write null values to stream"):"string"==typeof l||void 0===l||g.objectMode||(p=TypeError("Invalid non-string/buffer chunk")),p&&(this.emit("error",p),o.nextTick(c,p),d=!1),d))&&(g.pendingcb++,m=function(e,t,r,i,n,o){if(!r){var a,s,l=(a=i,s=n,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=u.from(a,s)),a);i!==l&&(r=!0,n="buffer",i=l)}var c=t.objectMode?1:i.length;t.length+=c;var d=t.length<t.highWaterMark;if(d||(t.needDrain=!0),t.writing||t.corked){var h=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},h?h.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,c,i,n,o);return d}(this,g,b,e,t,r)),m},m.prototype.cork=function(){var e=this._writableState;e.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||v(this,e))},m.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,r){r(Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,r){var i,n,a,s=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||(i=this,n=s,a=r,n.ending=!0,S(i,n),a&&(n.finished?o.nextTick(a):i.once("finish",a)),n.ended=!0,i.writable=!1)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=p.destroy,m.prototype._undestroy=p.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}},960651,(e,t,r)=>{"use strict";var i=e.r(82875),n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=u;var o=Object.create(e.r(503399));o.inherits=e.r(737011);var a=e.r(735721),s=e.r(861114);o.inherits(u,a);for(var l=n(s.prototype),c=0;c<l.length;c++){var d=l[c];u.prototype[d]||(u.prototype[d]=s.prototype[d])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||i.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},768637,(e,t,r)=>{"use strict";var i=e.r(599863).Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
884case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=d,this.end=u,t=3;break;default:this.write=h,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function d(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var i=t.length-1;if(i<r)return 0;var n=a(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||-2===n?0:(n=a(t[i]))>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||-2===n?0:(n=a(t[i]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},735721,(e,t,r)=>{"use strict";var i,n,o=e.i(494514),a=e.r(82875);t.exports=v;var s=e.r(204261);v.ReadableState=b,e.r(379666).EventEmitter;var l=function(e,t){return e.listeners(t).length},c=e.r(146802),d=e.r(599863).Buffer,u=e.g.Uint8Array||function(){},h=Object.create(e.r(503399));h.inherits=e.r(737011);var p={},f=void 0;f=p&&p.debuglog?p.debuglog("stream"):function(){};var g=e.r(970809),m=e.r(973713);h.inherits(v,c);var y=["error","close","destroy","pause","resume"];function b(t,r){i=i||e.r(960651),t=t||{};var o=r instanceof i;this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var a=t.highWaterMark,s=t.readableHighWaterMark,l=this.objectMode?16:16384;a||0===a?this.highWaterMark=a:o&&(s||0===s)?this.highWaterMark=s:this.highWaterMark=l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(n||(n=e.f({string_decoder:{id:()=>768637,module:()=>e.r(768637)},"string_decoder/":{id:()=>768637,module:()=>e.r(768637)}}
884)("string_decoder/").StringDecoder),this.decoder=new n(t.encoding),this.encoding=t.encoding)}function v(t){if(i=i||e.r(960651),!(this instanceof v))return new v(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function w(e,t,r,i,n){var o,a,s,l=e._readableState;return null===t?(l.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,A(e)}}(e,l)):(n||(s=function(e,t){var r;return d.isBuffer(t)||t instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=TypeError("Invalid non-string/buffer chunk")),r}(l,t)),s)?e.emit("error",s):l.objectMode||t&&t.length>0?("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===d.prototype||(a=t,t=d.from(a)),i?l.endEmitted?e.emit("error",Error("stream.unshift() after end event")):x(e,l,t,!0):l.ended?e.emit("error",Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?x(e,l,t,!1):E(e,l)):x(e,l,t,!1))):i||(l.reading=!1),!(o=l).ended&&(o.needReadable||o.length<o.highWaterMark||0===o.length)}function x(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&A(e)),E(e,t)}function S(e,t){var r;if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&((r=e)>=8388608?r=8388608:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),t.highWaterMark=r),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function A(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a.nextTick(k,e):k(e))}function k(e){f("emit readable"),e.emit("readable"),N(e)}function E(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(I,e,t))}function I(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function M(e){f("readable nexttick read 0"),e.read(0)}function T(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function _(e,t){var r,i,n,o,a;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(i=e,n=t.buffer,o=t.decoder,i<n.head.data.length?(a=n.head.data.slice(0,i),n.head.data=n.head.data.slice(i)):a=i===n.head.data.length?n.shift():o?function(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0==(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(i,n):function(e,t){var r=d.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++n}return t.length-=n,r}(i,n),r=a),r)}function C(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=d.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return n||(n=e.f({string_decoder:{id:()=>768637,module:()=>e.r(768637)},"string_decoder/":{id:()=>768637,module:()=>e.r(768637)}}
884)("string_decoder/").StringDecoder),this._readableState.decoder=new n(t),this._readableState.encoding=t,this},v.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return f("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?C(this):A(this),null;if(0===(e=S(e,r))&&r.ended)return 0===r.length&&C(this),null;var n=r.needReadable;return f("need readable",n),(0===r.length||r.length-e<r.highWaterMark)&&f("length less than watermark",n=!0),r.ended||r.reading?f("reading or ended",n=!1):n&&(f("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=S(i,r))),null===(t=e>0?_(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&C(this)),null!==t&&this.emit("data",t),t},v.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r,i=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,f("pipe count=%d opts=%j",n.pipesCount,t);var c=t&&!1===t.end||e===o.default.stdout||e===o.default.stderr?v:d;function d(){f("onend"),e.end()}n.endEmitted?a.nextTick(c):i.once("end",c),e.on("unpipe",function t(r,o){f("onunpipe"),r===i&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,f("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",t),i.removeListener("end",d),i.removeListener("end",v),i.removeListener("data",g),h=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=(r=i,function(){var e=r._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(r,"data")&&(e.flowing=!0,N(r))});e.on("drain",u);var h=!1,p=!1;function g(t){f("ondata"),p=!1,!1!==e.write(t)||p||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==P(n.pipes,e))&&!h&&(f("false write response, pause",n.awaitDrain),n.awaitDrain++,p=!0),i.pause())}function m(t){f("onerror",t),v(),e.removeListener("error",m),0===l(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),v()}function b(){f("onfinish"),e.removeListener("close",y),v()}function v(){f("unpipe"),i.unpipe(e)}return i.on("data",g),!function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
884ndListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",y),e.once("finish",b),e.emit("pipe",i),n.flowing||(f("pipe resume"),i.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=P(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&A(this):a.nextTick(M,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(f("resume"),r.flowing=!0,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,a.nextTick(T,e,t))),this},v.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var n in e.on("end",function(){if(f("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){f("wrapped data"),r.decoder&&(n=r.decoder.write(n)),r.objectMode&&null==n||(r.objectMode||n&&n.length)&&(t.push(n)||(i=!0,e.pause()))}),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var o=0;o<y.length;o++)e.on(y[o],this.emit.bind(this,y[o]));return this._read=function(t){f("wrapped _read",t),i&&(i=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=_},464059,(e,t,r)=>{"use strict";t.exports=a;var i=e.r(960651),n=Object.create(e.r(503399));function o(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);i.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){l(e,t,r)}):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}n.inherits=e.r(737011),n.inherits(a,i),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},292745,(e,t,r)=>{"use strict";
884t.exports=o;var i=e.r(464059),n=Object.create(e.r(503399));function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}n.inherits=e.r(737011),n.inherits(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},920488,(e,t,r)=>{(r=t.exports=e.r(735721)).Stream=r,r.Readable=r,r.Writable=e.r(861114),r.Duplex=e.r(960651),r.Transform=e.r(464059),r.PassThrough=e.r(292745)},364617,(e,t,r)=>{"use strict";var i=e.r(697138).Buffer,n=e.r(306498),o=e.r(920488).Transform;function a(e){o.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e.r(737011)(a,o),a.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(this._finalized)throw Error("Digest already called");for(var r=n(e,t),i=this._block,o=0;this._blockOffset+r.length-o>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)i[a]=r[o],a+=1,o+=1;this._update(),this._blockOffset=0}for(;o<r.length;)i[this._blockOffset]=r[o],this._blockOffset+=1,o+=1;for(var s=0,l=8*r.length;l>0;++s)this._length[s]+=l,(l=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*l);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=a},578201,(e,t,r)=>{"use strict";var i=e.r(738254).Buffer,n=e.r(737011),o=e.r(364617),a=Array(16),s=[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],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function u(e,t){return e<<t|e>>>32-t}function h(){o.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}n(h,o),h.prototype._update=function(){for(var e,t,r,i,n,o,h,p,f,g,m,y,b,v,w,x,S,A,k,E,I,M,T,N,_,C,O,P,D,j,R,z,L,B,U,q,W,H,V,K,F,Y,J,G,Q,Z,X,$,ee,et,er,ei,en=0;en<16;++en)a[en]=this._block.readInt32LE(4*en);for(var eo=0|this._a,ea=0|this._b,es=0|this._c,el=0|this._d,ec=0|this._e,ed=0|this._a,eu=0|this._b,eh=0|this._c,ep=0|this._d,ef=0|this._e,eg=0;eg<80;eg+=1)eg<16?(r=eo,i=ea,n=es,o=el,h=ec,e=u(r+(i^n^o)+a[s[eg]]+0|0,c[eg])+h|0,p=ed,f=eu,g=eh,m=ep,y=ef,t=u(p+(f^(g|~m))+a[l[eg]]+0x50a28be6|0,d[eg])+y|0):eg<32?(b=eo,v=ea,w=es,x=el,S=ec,e=u(b+(v&w|~v&x)+a[s[eg]]+0x5a827999|0,c[eg])+S|0,A=ed,k=eu,E=eh,I=ep,M=ef,t=u(A+(k&I|E&~I)+a[l[eg]]+0x5c4dd124|0,d[eg])+M|0):eg<48?(T=eo,N=ea,_=es,C=el,O=ec,e=u(T+((N|~_)^C)+a[s[eg]]+0x6ed9eba1|0,c[eg])+O|0,P=ed,D=eu,j=eh,R=ep,z=ef,t=u(P+((D|~j)^R)+a[l[eg]]+0x6d703ef3|0,d[eg])+z|0):eg<64?(L=eo,B=ea,U=es,q=el,W=ec,e=u(L+(B&q|U&~q)+a[s[eg]]+0x8f1bbcdc|0,c[eg])+W|0,H=ed,V=eu,K=eh,F=ep,Y=ef,t=u(H+(V&K|~V&F)+a[l[eg]]+0x7a6d76e9|0,d[eg])+Y|0):(J=eo,G=ea,Q=es,Z=el,X=ec,e=u(J+(G^(Q|~Z))+a[s[eg]]+0xa953fd4e|0,c[eg])+X|0,$=ed,ee=eu,et=eh,er=ep,ei=ef,t=u($+(ee^et^er)+a[l[eg]]+0|0,d[eg])+ei|0),eo=ec,ec=el,el=u(es,10),es=ea,ea=e,ed=ef,ef=ep,ep=u(eh,10),eh=eu,eu=t;var em=this._b+es+ep|0;this._b=this._c+el+ef|0,this._c=this._d+ec+ed|0,this._d=this._e+eo+eu|0,this._e=this._a+ea+eh|0,this._a=em},h.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.alloc?i.alloc(20):new i(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=h},540743,(e,t,r)=>{var i=e.i(29510);let n=e.r(145864),o=i.Buffer.alloc(1,1),a=i.Buffer.alloc(1,0);t.exports=function(e,t,r,s,l){let c=i.Buffer.alloc(32,0),d=i.Buffer.alloc(32,1);c=n("sha256",c).update(d).update(a).update(t).update(e).update(l||"").digest(),d=n("sha256",c).update(d).digest(),c=n("sha256",c).update(d).update(o).update(t).update(e).update(l||"").digest(),d=n("sha256",c).update(d).digest();let u=d=n("sha256",c).update(d).digest();for(;!s(u)||!r(u);)c=n("sha256",c).update(d).update(a).digest(),d=n("sha256",c).update(d).digest(),u=d=n("sha256",c).update(d).digest();return u}},426226,(e,t,r)=>{var i=e.i(29510);let n=e.r(336078),o=new(e.r(244648)).ec("secp256k1"),a=e.r(540743),s=i.Buffer.alloc(32,0),l=i.Buffer.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),c=i.Buffer.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex"),d=o.curve.n,u=d.shrn(1),h=o.curve.g,p="Expected Private",f="Expected Point",g="Expected Tweak",m="Expected Hash";function y(e){return e instanceof Uint8Array&&32===e.length}function b(e){return!!y(e)&&l.compare(e)>0}function v(e){if(!(e instanceof Uint8Array)||e.length<33)return!1;let t=e[0],r=e.subarray(1,33);if(0===s.compare(r)||0>=c.compare(r))return!1;if((2===t||3===t)&&33===e.length){try{k(e)}catch(e){return!1}return!0}let i=e.subarray(33);return!(0===s.compare(i)||0>=c.compare(i))&&4===t&&65===e.length}function w(e){return!!y(e)&&0>s.compare(e)&&l.compare(e)>0}function x(e,t){return void 0===e&&void 0!==t?4!==t[0]:void 0===e||e}function S(e){return new n(e)}function A(e){return e.toArrayLike(i.Buffer,"be",32)}function k(e){return o.curve.decodePoint(e)}function E(e,t){return i.Buffer.from(e._encode(t))}function I(e,t,r){let n,o;
884if(!y(e))throw TypeError(m);if(!w(t))throw TypeError(p);if(void 0!==r&&!y(r))throw TypeError("Expected Extra Data (32 bytes)");let s=S(t),l=S(e);a(e,t,function(e){let t=S(e),r=h.mul(t);return!r.isInfinity()&&0!==(n=r.x.umod(d)).isZero()&&0!==(o=t.invm(d).mul(l.add(s.mul(n))).umod(d)).isZero()},w,r),o.cmp(u)>0&&(o=d.sub(o));let c=i.Buffer.allocUnsafe(64);return A(n).copy(c,0),A(o).copy(c,32),c}t.exports={isPoint:v,isPointCompressed:function(e){return!!v(e)&&4!==e[0]},isPrivate:w,pointAdd:function(e,t,r){if(!v(e)||!v(t))throw TypeError(f);let i=k(e),n=k(t),o=i.add(n);return o.isInfinity()?null:E(o,x(r,e))},pointAddScalar:function(e,t,r){if(!v(e))throw TypeError(f);if(!b(t))throw TypeError(g);let i=x(r,e),n=k(e);if(0===s.compare(t))return E(n,i);let o=S(t),a=h.mul(o),l=n.add(a);return l.isInfinity()?null:E(l,i)},pointCompress:function(e,t){if(!v(e))throw TypeError(f);let r=k(e);if(r.isInfinity())throw TypeError(f);return E(r,x(t,e))},pointFromScalar:function(e,t){if(!w(e))throw TypeError(p);let r=S(e),i=h.mul(r);return i.isInfinity()?null:E(i,x(t))},pointMultiply:function(e,t,r){if(!v(e))throw TypeError(f);if(!b(t))throw TypeError(g);let i=x(r,e),n=k(e),o=S(t),a=n.mul(o);return a.isInfinity()?null:E(a,i)},privateAdd:function(e,t){if(!w(e))throw TypeError(p);if(!b(t))throw TypeError(g);let r=S(e),i=S(t),n=A(r.add(i).umod(d));return w(n)?n:null},privateSub:function(e,t){if(!w(e))throw TypeError(p);if(!b(t))throw TypeError(g);let r=S(e),i=S(t),n=A(r.sub(i).umod(d));return w(n)?n:null},sign:function(e,t){return I(e,t)},signWithEntropy:function(e,t,r){return I(e,t,r)},verify:function(e,t,r,i){let n,o;if(!y(e))throw TypeError(m);if(!v(t))throw TypeError(f);if(n=r.subarray(0,32),o=r.subarray(32,64),!(r instanceof Uint8Array&&64===r.length&&l.compare(n)>0&&l.compare(o)>0))throw TypeError("Expected Signature");let a=k(t),s=S(r.subarray(0,32)),c=S(r.subarray(32,64));if(i&&c.cmp(u)>0||0>=s.gtn(0)||0>=c.gtn(0))return!1;let p=S(e),g=c.invm(d),b=p.mul(g).umod(d),w=s.mul(g).umod(d),x=h.mulAdd(b,a,w);return!x.isInfinity()&&x.x.umod(d).eq(s)}}},159940,(e,t,r)=>{var i={Array:function(e){return null!=e&&e.constructor===Array},Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return null==e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};for(var n in i.Null=i.Nil,i)i[n].toJSON=(function(e){return e}).bind(null,n);t.exports=i},468133,(e,t,r)=>{var i=e.r(159940);function n(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function o(e){return i.Nil(e)?"":n(e.constructor)}function a(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function s(e){return i.Function(e)?e.toJSON?e.toJSON():n(e):i.Array(e)?"Array":e&&i.Object(e)?"Object":void 0!==e?e:""}function l(e,t,r){var n=i.Function(t)?"":i.String(t)?JSON.stringify(t):t&&i.Object(t)?"":t;return"Expected "+s(e)+", got"+(""!==r?" "+r:"")+(""!==n?" "+n:"")}function c(e,t,r){r=r||o(t),this.message=l(e,t,r),a(this,c),this.__type=e,this.__value=t,this.__valueTypeName=r}function d(e,t,r,i,n){if(e){var d,u;n=n||o(i),this.message=(d=n,u='" of type ',"key"===r&&(u='" with key type '),l('property "'+s(t)+u+s(e),i,d))}else this.message='Unexpected property "'+t+'"';a(this,c),this.__label=r,this.__property=t,this.__type=e,this.__value=i,this.__valueTypeName=n}c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,d.prototype=Object.create(Error.prototype),d.prototype.constructor=c,t.exports={TfTypeError:c,TfPropertyTypeError:d,tfCustomError:function(e,t){return new c(e,{},t)},tfSubError:function(e,t,r){return e instanceof d?(t=t+"."+e.__property,e=new d(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof c&&(e=new d(e.__type,t,r,e.__value,e.__valueTypeName)),a(e),e},tfJSON:s,getValueTypeName:o}},292738,(e,t,r)=>{var i=e.i(29510),n=e.r(159940),o=e.r(468133);function a(e){return i.Buffer.isBuffer(e)}function s(e){return"string"==typeof e&&/^([0-9a-f]{2})+$/i.test(e)}function l(e,t){var r=e.toJSON();function i(i){if(!e(i))return!1;if(i.length===t)return!0;throw o.tfCustomError(r+"(Length: "+t+")",r+"(Length: "+i.length+")")}return i.toJSON=function(){return r},i}var c=l.bind(null,n.Array),d=l.bind(null,a),u=l.bind(null,s),h={ArrayN:c,Buffer:a,BufferN:d,Finite:function(e){return"number"==typeof e&&isFinite(e)},Hex:s,HexN:u,Int8:function(e){return e<<24>>
88424===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},Int53:function(e){return"number"==typeof e&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff&&Math.floor(e)===e},Range:function(e,t,r){function i(i,n){return r(i,n)&&i>e&&i<t}return r=r||n.Number,i.toJSON=function(){return`${r.toJSON()} between [${e}, ${t}]`},i},StringN:l.bind(null,n.String),UInt8:function(e){return(255&e)===e},UInt16:function(e){return(65535&e)===e},UInt32:function(e){return e>>>0===e},UInt53:function(e){return"number"==typeof e&&e>=0&&e<=0x1fffffffffffff&&Math.floor(e)===e}};for(var p in h)h[p].toJSON=(function(e){return e}).bind(null,p);t.exports=h},98467,(e,t,r)=>{var i=e.r(468133),n=e.r(159940),o=i.tfJSON,a=i.TfTypeError,s=i.TfPropertyTypeError,l=i.tfSubError,c=i.getValueTypeName,d={arrayOf:function(e,t){function r(r,i){return!(!n.Array(r)||n.Nil(r))&&(void 0===t.minLength||!(r.length<t.minLength))&&(void 0===t.maxLength||!(r.length>t.maxLength))&&(void 0===t.length||r.length===t.length)&&r.every(function(t,r){try{return h(e,t,i)}catch(e){throw l(e,r)}})}return e=u(e),t=t||{},r.toJSON=function(){var r="["+o(e)+"]";return void 0!==t.length?r+="{"+t.length+"}":(void 0!==t.minLength||void 0!==t.maxLength)&&(r+="{"+(void 0===t.minLength?0:t.minLength)+","+(void 0===t.maxLength?1/0:t.maxLength)+"}"),r},r},maybe:function e(t){function r(r,i){return n.Nil(r)||t(r,i,e)}return t=u(t),r.toJSON=function(){return"?"+o(t)},r},map:function(e,t){function r(r,i){if(!n.Object(r)||n.Nil(r))return!1;for(var o in r){try{t&&h(t,o,i)}catch(e){throw l(e,o,"key")}try{var a=r[o];h(e,a,i)}catch(e){throw l(e,o)}}return!0}return e=u(e),t&&(t=u(t)),t?r.toJSON=function(){return"{"+o(t)+": "+o(e)+"}"}:r.toJSON=function(){return"{"+o(e)+"}"},r},object:function(e){var t={};for(var r in e)t[r]=u(e[r]);function i(e,r){if(!n.Object(e)||n.Nil(e))return!1;try{for(i in t){var i,o=t[i],a=e[i];h(o,a,r)}}catch(e){throw l(e,i)}if(r){for(i in e)if(!t[i])throw new s(void 0,i)}return!0}return i.toJSON=function(){return o(t)},i},anyOf:function(){var e=[].slice.call(arguments).map(u);function t(t,r){return e.some(function(e){try{return h(e,t,r)}catch(e){return!1}})}return t.toJSON=function(){return e.map(o).join("|")},t},allOf:function(){var e=[].slice.call(arguments).map(u);function t(t,r){return e.every(function(e){try{return h(e,t,r)}catch(e){return!1}})}return t.toJSON=function(){return e.map(o).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,r){return!(n.Nil(t)||n.Nil(t.length))&&(!r||t.length===e.length)&&e.every(function(e,i){try{return h(e,t[i],r)}catch(e){throw l(e,i)}})}return t.toJSON=function(){return"("+e.map(o).join(", ")+")"},t},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};function u(e){if(n.String(e))return"?"===e[0]?d.maybe(e.slice(1)):n[e]||d.quacksLike(e);if(e&&n.Object(e)){if(n.Array(e)){if(1!==e.length)throw TypeError("Expected compile() parameter of type Array of length 1");return d.arrayOf(e[0])}return d.object(e)}return n.Function(e)?e:d.value(e)}function h(e,t,r,i){if(n.Function(e)){if(e(t,r))return!0;throw new a(i||e,t)}return h(u(e),t,r)}for(var p in d.oneOf=d.anyOf,n)h[p]=n[p];for(p in d)h[p]=d[p];var f=e.r(292738);for(p in f)h[p]=f[p];h.compile=u,h.TfTypeError=a,h.TfPropertyTypeError=s,t.exports=h},394341,(e,t,r)=>{var i=e.i(29510),n=e.r(703395);function o(e,t){if(void 0!==t&&e[0]!==t)throw Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw Error("Invalid WIF length");if(1!==e[33])throw Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function a(e,t,r){var n=new i.Buffer(r?34:33);return n.writeUInt8(e,0),t.copy(n,1),r&&(n[33]=1),n}t.exports={decode:function(e,t){return o(n.decode(e),t)},decodeRaw:o,encode:function(e,t,r){return"number"==typeof e?n.encode(a(e,t,r)):n.encode(a(e.version,e.privateKey,e.compressed))},encodeRaw:a}},92044,(e,t,r)=>{"use strict";var i=e.i(29510);
884Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(932474),o=e.r(703395),a=e.r(426226),s=e.r(98467),l=e.r(394341),c=s.BufferN(32),d=s.compile({wif:s.UInt8,bip32:{public:s.UInt32,private:s.UInt32}}),u={messagePrefix:"\x18Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:0x488b21e,private:0x488ade4},pubKeyHash:0,scriptHash:5,wif:128};function h(e){return s.String(e)&&null!==e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function p(e){return s.UInt32(e)&&e<=0x7fffffff}class f{constructor(e,t,r,i,n=0,o=0,a=0){this.__D=e,this.__Q=t,this.chainCode=r,this.network=i,this.__DEPTH=n,this.__INDEX=o,this.__PARENT_FINGERPRINT=a,s(d,i),this.lowR=!1}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return void 0===this.__Q&&(this.__Q=a.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return n.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return void 0===this.__D}neutered(){return m(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=i.Buffer.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)),o.encode(r)}toWIF(){if(!this.privateKey)throw TypeError("Missing private key");return l.encode(this.network.wif,this.privateKey,!0)}derive(e){let t;s(s.UInt32,e);let r=e>=0x80000000,o=i.Buffer.allocUnsafe(37);if(r){if(this.isNeutered())throw TypeError("Missing private key for hardened child key");o[0]=0,this.privateKey.copy(o,1),o.writeUInt32BE(e,33)}else this.publicKey.copy(o,0),o.writeUInt32BE(e,33);let l=n.hmacSHA512(this.chainCode,o),c=l.slice(0,32),d=l.slice(32);if(!a.isPrivate(c))return this.derive(e+1);if(this.isNeutered()){let r=a.pointAddScalar(this.publicKey,c,!0);if(null===r)return this.derive(e+1);t=m(r,d,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}else{let r=a.privateAdd(this.privateKey,c);if(null==r)return this.derive(e+1);t=g(r,d,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}return t}deriveHardened(e){return s(p,e),this.derive(e+0x80000000)}derivePath(e){s(h,e);let t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw TypeError("Expected master, got child");t=t.slice(1)}return t.reduce((e,t)=>{let r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))},this)}sign(e,t){if(!this.privateKey)throw Error("Missing private key");if(void 0===t&&(t=this.lowR),!1===t)return a.sign(e,this.privateKey);{let t=a.sign(e,this.privateKey),r=i.Buffer.alloc(32,0),n=0;for(;t[0]>127;)n++,r.writeUIntLE(n,0,6),t=a.signWithEntropy(e,this.privateKey,r);return t}}verify(e,t){return a.verify(e,this.publicKey,t)}}function g(e,t,r,i,n,o){if(s({privateKey:c,chainCode:c},{privateKey:e,chainCode:t}),r=r||u,!a.isPrivate(e))throw TypeError("Private key not in range [1, n)");return new f(e,void 0,t,r,i,n,o)}function m(e,t,r,i,n,o){if(s({publicKey:s.BufferN(33),chainCode:c},{publicKey:e,chainCode:t}),r=r||u,!a.isPoint(e))throw TypeError("Point is not on the curve");return new f(void 0,e,t,r,i,n,o)}r.fromBase58=function(e,t){let r,i=o.decode(e);if(78!==i.length)throw TypeError("Invalid buffer length");t=t||u;let n=i.readUInt32BE(0);if(n!==t.bip32.private&&n!==t.bip32.public)throw TypeError("Invalid network version");let a=i[4],s=i.readUInt32BE(5);if(0===a&&0!==s)throw TypeError("Invalid parent fingerprint");let l=i.readUInt32BE(9);if(0===a&&0!==l)throw TypeError("Invalid index");let c=i.slice(13,45);if(n===t.bip32.private){if(0!==i.readUInt8(45))throw TypeError("Invalid private key");r=g(i.slice(46,78),c,t,a,l,s)}else r=m(i.slice(45,78),c,t,a,l,s);return r},r.fromPrivateKey=function(e,t,r){return g(e,t,r)},r.fromPublicKey=function(e,t,r){return m(e,t,r)},r.fromSeed=function(e,t){if(s(s.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");t=t||u;let r=n.hmacSHA512(i.Buffer.from("Bitcoin seed","utf8"),e);return g(r.slice(0,32),r.slice(32),t)}},320507,(e,t,r)=>{"use strict";
884Object.defineProperty(r,"__esModule",{value:!0});var i=e.r(92044);r.fromSeed=i.fromSeed,r.fromBase58=i.fromBase58,r.fromPublicKey=i.fromPublicKey,r.fromPrivateKey=i.fromPrivateKey},945004,(e,t,r)=>{"use strict";var i=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.Mnemonic=void 0;let n=e.r(899042),o=e.r(320507),a=e.r(703395),s=e.f({buffer:{id:()=>738254,module:()=>e.r(738254)},"buffer/":{id:()=>738254,module:()=>e.r(738254)}})("buffer/");r.Mnemonic=class e{static generateWallet(t,r="m/44'/118'/0'/0/0",n="",o=256){return i(this,void 0,void 0,function*(){let i=yield e.generateSeed(t,o);return{privKey:e.generateWalletFromMnemonic(i,r,n),mnemonic:i}})}static validateMnemonic(e){return n.validateMnemonic(e)}static generateSeed(e,t=128){return i(this,void 0,void 0,function*(){if(t%32!=0)throw TypeError("invalid entropy");let r=new Uint8Array(t/8);return r=yield e(r),n.entropyToMnemonic(s.Buffer.from(r).toString("hex"))})}static generateWalletFromMnemonic(e,t="m/44'/118'/0'/0/0",r=""){let i=n.mnemonicToSeedSync(e,r),a=o.fromSeed(i).derivePath(t).privateKey;if(!a)throw Error("null hd key");return a}static generateMasterSeedFromMnemonic(e,t=""){let r=n.mnemonicToSeedSync(e,t),i=o.fromSeed(r);return s.Buffer.from(a.decode(i.toBase58()))}static generatePrivateKeyFromMasterSeed(e,t="m/44'/118'/0'/0/0"){let r=o.fromBase58(a.encode(e)).derivePath(t).privateKey;if(!r)throw Error("null hd key");return r}}},563478,(e,t,r)=>{var i;e.e,t.exports=i=i||function(t){if("u">typeof window&&window.crypto&&(r=window.crypto),"u">typeof self&&self.crypto&&(r=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"u">typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&e.g.crypto&&(r=e.g.crypto),!r)try{r={}}catch(e){}var r,i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=n(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=a.WordArray=s.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<n;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s<n;s+=4)t[i+s>>>2]=r[s>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=0xffffffff<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new l.init(t,e)}}),c=o.enc={},d=c.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var o=t[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new l.init(r,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var o=t[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new l.init(r,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var r,i=this._data,n=i.words,o=i.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,d=t.min(4*c,o);if(c){for(var u=0;u<c;u+=a)this._doProcessBlock(n,u);r=n.splice(0,c),i.sigBytes-=d}return new l.init(r,d)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.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,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new f.HMAC.init(e,r).finalize(t)}}});var f=o.algo={};return o}(Math)},601601,(e,t,r)=>{var i,n,o,a,s;e.e,o=(n=(i=e.r(563478)).lib).Base,a=n.WordArray,(s=i.x64={}).Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=o.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i<t;i++){var n=e[i];
884r.push(n.high),r.push(n.low)}return a.create(r,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}}),t.exports=i},666327,(e,t,r)=>{e.e,t.exports=function(e){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"u">typeof Uint8ClampedArray&&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,i=[],n=0;n<t;n++)i[n>>>2]|=e[n]<<24-n%4*8;r.call(this,i,t)}else r.apply(this,arguments)}).prototype=t}return e.lib.WordArray}(e.r(563478))},160654,(e,t,r)=>{e.e,t.exports=function(e){var t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&0xff00ff00|e>>>8&0xff00ff}return r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n+=2){var o=t[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var r=e.length,i=[],n=0;n<r;n++)i[n>>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(i,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o<r;o++)n[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}},e.enc.Utf16}(e.r(563478))},499512,(e,t,r)=>{var i,n;e.e,n=(i=e.r(563478)).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)n.push(i.charAt(a>>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;n.length%4;)n.push(l);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}for(var l=e,c=t,d=i,u=[],h=0,p=0;p<c;p++)if(p%4){var f=d[l.charCodeAt(p-1)]<<p%4*2|d[l.charCodeAt(p)]>>>6-p%4*2;u[h>>>2]|=f<<24-h%4*8,h++}return n.create(u,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.exports=i.enc.Base64},238434,(e,t,r)=>{var i,n;e.e,n=(i=e.r(563478)).lib.WordArray,i.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,i=e.sigBytes,n=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<i;l++)o.push(n.charAt(s>>>6*(3-l)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(r=l)}for(var c=e,d=r,u=o,h=[],p=0,f=0;f<d;f++)if(f%4){var g=u[c.charCodeAt(f-1)]<<f%4*2|u[c.charCodeAt(f)]>>>6-f%4*2;h[p>>>2]|=g<<24-p%4*8,p++}return n.create(h,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},t.exports=i.enc.Base64url},506626,(e,t,r)=>{var i;e.e,i=e.r(563478),function(e){for(var t=i.lib,r=t.WordArray,n=t.Hasher,o=i.algo,a=[],s=0;s<64;s++)a[s]=0x100000000*e.abs(e.sin(s+1))|0;var l=o.MD5=n.extend({_doReset:function(){this._hash=new r.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=(n<<8|n>>>24)&0xff00ff|(n<<24|n>>>8)&0xff00ff00}var o=this._hash.words,s=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],b=e[t+7],v=e[t+8],w=e[t+9],x=e[t+10],S=e[t+11],A=e[t+12],k=e[t+13],E=e[t+14],I=e[t+15],M=o[0],T=o[1],N=o[2],_=o[3];M=c(M,T,N,_,s,7,a[0]),_=c(_,M,T,N,l,12,a[1]),N=c(N,_,M,T,p,17,a[2]),T=c(T,N,_,M,f,22,a[3]),M=c(M,T,N,_,g,7,a[4]),_=c(_,M,T,N,m,12,a[5]),N=c(N,_,M,T,y,17,a[6]),T=c(T,N,_,M,b,22,a[7]),M=c(M,T,N,_,v,7,a[8]),_=c(_,M,T,N,w,12,a[9]),N=c(N,_,M,T,x,17,a[10]),T=c(T,N,_,M,S,22,a[11]),M=c(M,T,N,_,A,7,a[12]),_=c(_,M,T,N,k,12,a[13]),N=c(N,_,M,T,E,17,a[14]),T=c(T,N,_,M,I,22,a[15]),M=d(M,T,N,_,l,5,a[16]),_=d(_,M,T,N,y,9,a[17]),N=d(N,_,M,T,S,14,a[18]),T=d(T,N,_,M,s,20,a[19]),M=d(M,T,N,_,m,5,a[20]),_=d(_,M,T,N,x,9,a[21]),N=d(N,_,M,T,I,14,a[22]),T=d(T,N,_,M,g,20,a[23]),M=d(M,T,N,_,w,5,a[24]),_=d(_,M,T,N,E,9,a[25]),N=d(N,_,M,T,f,14,a[26]),T=d(T,N,_,M,v,20,a[27]),M=d(M,T,N,_,k,5,a[28]),_=d(_,M,T,N,p,9,a[29]),N=d(N,_,M,T,b,14,a[30]),T=d(T,N,_,M,A,20,a[31]),M=u(M,T,N,_,m,4,a[32]),_=u(_,M,T,N,v,11,a[33]),N=u(N,_,M,T,S,16,a[34]),T=u(T,N,_,M,E,23,a[35]),M=u(M,T,N,_,l,4,a[36]),_=u(_,M,T,N,g,11,a[37]),N=u(N,_,M,T,b,16,a[38]),T=u(T,N,_,M,x,23,a[39]),M=u(M,T,N,_,k,4,a[40]),_=u(_,M,T,N,s,11,a[41]),N=u(N,_,M,T,f,16,a[42]),T=u(T,N,_,M,y,23,a[43]),M=u(M,T,N,_,w,4,a[44]),_=u(_,M,T,N,A,11,a[45]),N=u(N,_,M,T,I,16,a[46]),T=u(T,N,_,M,p,23,a[47]),M=h(M,T,N,_,s,6,a[48]),_=h(_,M,T,N,b,10,a[49]),N=h(N,_,M,T,E,15,a[50]),T=h(T,N,_,M,m,21,a[51]),M=h(M,T,N,_,A,6,a[52]),_=h(_,M,T,N,f,10,a[53]),N=h(N,_,M,T,x,15,a[54]),T=h(T,N,_,M,l,21,a[55]),M=h(M,T,N,_,v,6,a[56]
vendor: 11,172 bytes, line 884
884),_=h(_,M,T,N,I,10,a[57]),N=h(N,_,M,T,y,15,a[58]),T=h(T,N,_,M,k,21,a[59]),M=h(M,T,N,_,g,6,a[60]),_=h(_,M,T,N,S,10,a[61]),N=h(N,_,M,T,p,15,a[62]),T=h(T,N,_,M,w,21,a[63]),o[0]=o[0]+M|0,o[1]=o[1]+T|0,o[2]=o[2]+N|0,o[3]=o[3]+_|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var o=e.floor(i/0x100000000);r[(n+64>>>9<<4)+15]=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00,r[(n+64>>>9<<4)+14]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00,t.sigBytes=(r.length+1)*4,this._process();for(var a=this._hash,s=a.words,l=0;l<4;l++){var c=s[l];s[l]=(c<<8|c>>>24)&0xff00ff|(c<<24|c>>>8)&0xff00ff00}return a},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,i,n,o,a){var s=e+(t&r|~t&i)+n+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,i,n,o,a){var s=e+(t&i|r&~i)+n+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,i,n,o,a){var s=e+(t^r^i)+n+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,i,n,o,a){var s=e+(r^(t|~i))+n+a;return(s<<o|s>>>32-o)+t}i.MD5=n._createHelper(l),i.HmacMD5=n._createHmacHelper(l)}(Math),t.exports=i.MD5},310698,(e,t,r)=>{var i,n,o,a,s,l,c;e.e,o=(n=(i=e.r(563478)).lib).WordArray,a=n.Hasher,s=i.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var d=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=d<<1|d>>>31}var u=(i<<5|i>>>27)+s+l[c];c<20?u+=(n&o|~n&a)+0x5a827999:c<40?u+=(n^o^a)+0x6ed9eba1:c<60?u+=(n&o|n&a|o&a)-0x70e44324:u+=(n^o^a)-0x359d3e2a,s=a,a=o,o=n<<30|n>>>2,n=i,i=u}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[(i+64>>>9<<4)+14]=Math.floor(r/0x100000000),t[(i+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=a._createHelper(c),i.HmacSHA1=a._createHmacHelper(c),t.exports=i.SHA1},630377,(e,t,r)=>{var i;e.e,i=e.r(563478),function(e){var t=i.lib,r=t.WordArray,n=t.Hasher,o=i.algo,a=[],s=[];function l(e){return(e-(0|e))*0x100000000|0}for(var c=2,d=0;d<64;)(function(t){for(var r=e.sqrt(t),i=2;i<=r;i++)if(!(t%i))return!1;return!0})(c)&&(d<8&&(a[d]=l(e.pow(c,.5))),s[d]=l(e.pow(c,1/3)),d++),c++;var u=[],h=o.SHA256=n.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],l=r[4],c=r[5],d=r[6],h=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=u[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=g+u[p-7]+y+u[p-16]}var b=l&c^~l&d,v=i&n^i&o^n&o,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),x=h+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+b+s[p]+u[p],S=w+v;h=d,d=c,c=l,l=a+x|0,a=o,o=n,n=i,i=x+S|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+c|0,r[6]=r[6]+d|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[(n+64>>>9<<4)+14]=e.floor(i/0x100000000),r[(n+64>>>9<<4)+15]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});i.SHA256=n._createHelper(h),i.HmacSHA256=n._createHmacHelper(h)}(Math),t.exports=i.SHA256},410021,(e,t,r)=>{var i,n,o,a,s;e.e,i=e.r(563478),e.r(630377),n=i.lib.WordArray,a=(o=i.algo).SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new n.init([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=a._createHelper(s),i.HmacSHA224=a._createHmacHelper(s),t.exports=i.SHA224},465836,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(601601),function(){var e=i.lib.Hasher,t=i.x64,r=t.Word,n=t.WordArray,o=i.algo;function a(){return r.create.apply(r,arguments)}for(var s=[a(0x428a2f98,0xd728ae22),a(0x71374491,0x23ef65cd),a(0xb5c0fbcf,0xec4d3b2f),a(0xe9b5dba5,0x8189dbbc),a(0x3956c25b,0xf348b538),a(0x59f111f1,0xb605d019),a(0x923f82a4,0xaf194f9b),a(0xab1c5ed5,0xda6d8118),a(0xd807aa98,0xa3030242),a(0x12835b01,0x45706fbe),a(0x243185be,0x4ee4b28c),a(0x550c7dc3,0xd5ffb4e2),a(0x72be5d74,0xf27b896f),a(0x80deb1fe,0x3b1696b1),a(0x9bdc06a7,0x25c71235),a(0xc19bf174,0xcf692694),a(0xe49b69c1,0x9ef14ad2),a(0xefbe4786,0x384f25e3),a(0xfc19dc6,0x8b8cd5b5),a(0x240ca1cc,0x77ac9c65),a(0x2de92c6f,0x592b0275),a(0x4a7484aa,0x6ea6e483),a(0x5cb0a9dc,0xbd41fbd4),a(0x76f988da,0x831153b5),a(0x983e5152,0xee66dfab),a(0xa831c66d,0x2db43210),a(0xb00327c8,0x98fb213f),a(0xbf597fc7,0xbeef0ee4),a(0xc6e00bf3,0x3da88fc2),a(0xd5a79147,0x930aa725),a(0x6ca6351,0xe003826f),a(0x14292967,0xa0e6e70),a(0x27b70a85,0x46d22ffc),a(0x2e1b2138,0x5c26c926),a(0x4d2c6dfc,0x5ac42aed),a(0x53380d13,0x9d95b3df),a(0x650a7354,0x8baf63de),a(0x766a0abb,0x3c77b2a8),a(0x81c2c92e,0x47edaee6),a(0x92722c85,0x1482353b),a(0xa2bfe8a1,0x4cf10364),a(0xa81a664b,0xbc423001),a(0xc24b8b70,0xd0f89791),a(0xc76c51a3,0x654be30),a(0xd192e819,0xd6ef5218),a(0xd6990624,0x5565a910),a(0xf40e3585,0x5771202a),a(0x106aa070,0x32bbd1b8),a(0x19a4c116,0xb8d2d0c8),a(0x1e376c08,0x5141ab53),a(0x2748774c,0xdf8eeb99),a(0x34b0bcb5,0xe19b48a8),a(0x391c0cb3,0xc5c95a63),a(0x4ed8aa4a,0xe3418acb),a(0x5b9cca4f,0x7763e373),a(0x682e6ff3,0xd6b2b8a3),a(0x748f82ee,0x5defb2fc),a(0x78a5636f,0x43172f60),a(0x84c87814,0xa1f0ab72),a(0x8cc70208,0x1a6439ec),a(0x90befffa,0x23631e28),a(0xa4506ceb,0xde82bde9),a(0xbef9a3f7,0xb2c67915),a(0xc67178f2,0xe372532b),a(0xca273ece,0xea26619c),a(0xd186b8c7,0x21c0c207),a(0xeada7dd6,0xcde0eb1e),a(0xf57d4f7f,0xee6ed178),a(0x6f067aa,0x72176fba),a(0xa637dc5,0xa2c898a6),a(0x113f9804,0xbef90dae),a(0x1b710b35,0x131c471b),a(0x28db77f5,0x23047d84),a(0x32caab7b,0x40c72493),a(0x3c9ebe0a,0x15c9bebc),a(0x431d67c4,0x9c100d4c),a(0x4cc5d4be,0xcb3e42b6),a(0x597f299c,0xfc657e2a),a(0x5fcb6fab,0x3ad6faec),a(0x6c44198c,0x4a475817)],l=[],c=0;c<80;c++)l[c]=a();var d=o.SHA512=e.extend({_doReset:function(){this._hash=new n.init([new r.init(0x6a09e667,0xf3bcc908),new r.init(0xbb67ae85,0x84caa73b),new r.init(0x3c6ef372,0xfe94f82b),new r.init(0xa54ff53a,0x5f1d36f1),new r.init(0x510e527f,0xade682d1),new r.init(0x9b05688c,0x2b3e6c1f),new r.init(0x1f83d9ab,0xfb41bd6b),new r.init(0x5be0cd19,0x137e2179)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],c=r[4],d=r[5],u=r[6],h=r[7],p=i.high,f=i.low,g=n.high,m=n.low,y=o.high,b=o.low,v=a.high,w=a.low,x=c.high,S=c.low,A=d.high,k=d.low,E=u.high,I=u.low,M=h.high,T=h.low,N=p,_=f,C=g,O=m,P=y,D=b,j=v,R=w,z=x,L=S,B=A,U=k,q=E,W=I,H=M,V=T,K=0;K<80;K++){var F,Y,J=l[K];if(K<16)Y=J.high=0|e[t+2*K],F=J.low=0|e[t+2*K+1];else{var G=l[K-15],Q=G.high,Z=G.low,X=(Q>>>1|Z<<31)^(Q>>>8|Z<<24)^Q>>>7,$=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^(Z>>>7|Q<<25),ee=l[K-2],et=ee.high,er=ee.low,ei=(et>>>19|er<<13)^(et<<3|er>>>29)^et>>>6,en=(er>>>19|et<<13)^(er<<3|et>>>29)^(er>>>6|et<<26),eo=l[K-7],ea=eo.high,es=eo.low,el=l[K-16],ec=el.high,ed=el.low;Y=X+ea+ +((F=$+es)>>>0<$>>>0),F+=en,Y=Y+ei+ +(F>>>0<en>>>0),F+=ed,J.high=Y=Y+ec+ +(F>>>0<ed>>>0),J.low=F}var eu=z&B^~z&q,eh=L&U^~L&W,ep=N&C^N&P^C&P,ef=_&O^_&D^O&D,eg=(N>>>28|_<<4)^(N<<30|_>>>2)^(N<<25|_>>>7),em=(_>>>28|N<<4)^(_<<30|N>>>2)^(_<<25|N>>>7),ey=(z>>>14|L<<18)^(z>>>18|L<<14)^(z<<23|L>>>9),eb=(L>>>14|z<<18)^(L>>>18|z<<14)^(L<<23|z>>>9),ev=s[K],ew=ev.high,ex=ev.low,eS=V+eb,eA=H+ey+ +(eS>>>0<V>>>0),eS=eS+eh,eA=eA+eu+ +(eS>>>0<eh>>>0),eS=eS+ex,eA=eA+ew+ +(eS>>>0<ex>>>0),eS=eS+F,eA=eA+Y+ +(eS>>>0<F>>>0),ek=em+ef,eE=eg+ep+ +(ek>>>0<em>>>0);H=q,V=W,q=B,W=U,B=z,U=L,z=j+eA+ +((L=R+eS|0)>>>0<R>>>0)|0,j=P,R=D,P=C,D=O,C=N,O=_,N=eA+eE+ +((_=eS+ek|0)>>>0<eS>>>0)|0}f=i.low=f+_,i.high=p+N+ +(f>>>0<_>>>0),m=n.low=m+O,n.high=g+C+ +(m>>>0<O>>>0),b=o.low=b+D,o.high=y+P+ +(b>>>0<D>>>0),w=a.low=w+R,a.high=v+j+ +(w>>>0<R>>>0),S=c.low=S+L,c.high=x+z+ +(S>>>0<L>>>0),k=d.low=k+U,d.high=A+B+ +(k>>>0<U>>>0),I=u.low=I+W,u.high=E+q+ +(I>>>0<W>>>0),T=h.low=T+V,h.high=M+H+ +(T>>>0<V>>>0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[(i+128>>>10<<5)+30]=Math.floor(r/0x100000000),t[(i+128>>>10<<5)+31]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});i.SHA512=e._createHelper(d),i.HmacSHA512=e._createHmacHelper(d)}(),t.exports=i.SHA512},181270,(e,t,r)=>{var i,n,o,a,s,l,c;e.e,i=e.r(563478),e.r(601601),e.r(465836),o=(n=i.x64).Word,a=n.WordArray,l=(s=i.algo).SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new o.init(0xcbbb9d5d,0xc1059ed8),new o.init(0x629a292a,0x367cd507),new o.init(0x9159015a,0x3070dd17),new o.init(0x152fecd8,0xf70e5939),new o.init(0x67332667,0xffc00b31),new o.init(0x8eb44a87,0x68581511),new o.init(0xdb0c2e0d,0x64f98fa7),new o.init(0x47b5481d,0xbefa4fa4)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=l._createHelper(c),i.HmacSHA384=l._createHmacHelper(c),t.exports=i.SHA384},334125,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(601601),function(e){var t=i.lib,r=t.WordArray,n=t.Hasher,o=i.x64.Word,a=i.algo,s=[],l=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){s[e+5*t]=(r+1)*(r+2)/2%64;var i=t%5,n=(2*e+3*t)%5;e=i,t=n}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,d=0;d<24;d++){for(var u=0,h=0,p=0;p<7;p++){if(1&a){var f=(1<<p)-1;f<32?h^=1<<f:u^=1<<f-32}128&a?a=a<<1^113:a<<=1}c[d]=o.create(u,h)}}();for(var d=[],u=0;u<25;u++)d[u]=o.create();var h=a.SHA3=n.extend({cfg:n.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 r=this._state,i=this.blockSize/2,n=0;n<i;n++){var o=e[t+2*n],a=e[t+2*n+1];o=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00,a=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00;var u=r[n];u.high^=a,u.low^=o}for(var h=0;h<24;h++){for(var p=0;p<5;p++){for(var f=0,g=0,m=0;m<5;m++){var u=r[p+5*m];f^=u.high,g^=u.low}var y=d[p];y.high=f,y.low=g}for(var p=0;p<5;p++)for(var b=d[(p+4)%5],v=d[(p+1)%5],w=v.high,x=v.low,f=b.high^(w<<1|x>>>31),g=b.low^(x<<1|w>>>31),m=0;m<5;m++){var u=r[p+5*m];u.high^=f,u.low^=g}for(var S=1;S<25;S++){var f,g,u=r[S],A=u.high,k=u.low,E=s[S];E<32?(f=A<<E|k>>>32-E,g=k<<E|A>>>32-E):(f=k<<E-32|A>>>64-E,g=A<<E-32|k>>>64-E);var I=d[l[S]];I.high=f,I.low=g}var M=d[0],T=r[0];M.high=T.high,M.low=T.low;for(var p=0;p<5;p++)for(var m=0;m<5;m++){var S=p+5*m,u=r[S],N=d[S],_=d[(p+1)%5+5*m],C=d[(p+2)%5+5*m];u.high=N.high^~_.high&C.high,u.low=N.low^~_.low&C.low}var u=r[0],O=c[h];u.high^=O.high,u.low^=O.low}},_doFinalize:function(){var t=this._data,i=t.words;this._nDataBytes;var n=8*t.sigBytes,o=32*this.blockSize;i[n>>>5]|=1<<24-n%32,i[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*i.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],d=0;d<l;d++){var u=a[d],h=u.high,p=u.low;h=(h<<8|h>>>
88424)&0xff00ff|(h<<24|h>>>8)&0xff00ff00,p=(p<<8|p>>>24)&0xff00ff|(p<<24|p>>>8)&0xff00ff00,c.push(p),c.push(h)}return new r.init(c,s)},clone:function(){for(var e=n.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});i.SHA3=n._createHelper(h),i.HmacSHA3=n._createHmacHelper(h)}(Math),t.exports=i.SHA3},566273,(e,t,r)=>{var i;e.e,i=e.r(563478),function(e){var t=i.lib,r=t.WordArray,n=t.Hasher,o=i.algo,a=r.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]),s=r.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=r.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]),c=r.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=r.create([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),u=r.create([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]),h=o.RIPEMD160=n.extend({_doReset:function(){this._hash=r.create([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(e,t){for(var r,i,n,o,h,f,g,m,y,b,v,w,x,S,A,k,E,I,M,T=0;T<16;T++){var N=t+T,_=e[N];e[N]=(_<<8|_>>>24)&0xff00ff|(_<<24|_>>>8)&0xff00ff00}var C=this._hash.words,O=d.words,P=u.words,D=a.words,j=s.words,R=l.words,z=c.words;S=y=C[0],A=b=C[1],k=v=C[2],E=w=C[3],I=x=C[4];for(var T=0;T<80;T+=1){M=y+e[t+D[T]]|0,T<16?M+=(b^v^w)+O[0]:T<32?M+=((r=b)&v|~r&w)+O[1]:T<48?M+=((b|~v)^w)+O[2]:T<64?M+=(i=b,n=v,(i&(o=w)|n&~o)+O[3]):M+=(b^(v|~w))+O[4],M|=0,M=(M=p(M,R[T]))+x|0,y=x,x=w,w=p(v,10),v=b,b=M,M=S+e[t+j[T]]|0,T<16?M+=(A^(k|~E))+P[0]:T<32?M+=(h=A,f=k,(h&(g=E)|f&~g)+P[1]):T<48?M+=((A|~k)^E)+P[2]:T<64?M+=((m=A)&k|~m&E)+P[3]:M+=(A^k^E)+P[4],M|=0,M=(M=p(M,z[T]))+I|0,S=I,I=E,E=p(k,10),k=A,A=M}M=C[1]+v+E|0,C[1]=C[2]+w+I|0,C[2]=C[3]+x+S|0,C[3]=C[4]+y+A|0,C[4]=C[0]+b+k|0,C[0]=M},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[(i+64>>>9<<4)+14]=(r<<8|r>>>24)&0xff00ff|(r<<24|r>>>8)&0xff00ff00,e.sigBytes=(t.length+1)*4,this._process();for(var n=this._hash,o=n.words,a=0;a<5;a++){var s=o[a];o[a]=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00}return n},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t){return e<<t|e>>>32-t}i.RIPEMD160=n._createHelper(h),i.HmacRIPEMD160=n._createHmacHelper(h)}(Math),t.exports=i.RIPEMD160},278001,(e,t,r)=>{var i,n,o;e.e,t.exports=void(n=(i=e.r(563478)).lib.Base,o=i.enc.Utf8,i.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),a=this._iKey=t.clone(),s=n.words,l=a.words,c=0;c<r;c++)s[c]^=0x5c5c5c5c,l[c]^=0x36363636;n.sigBytes=a.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,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}}))},373594,(e,t,r)=>{var i,n,o,a,s,l,c,d;e.e,i=e.r(563478),e.r(630377),e.r(278001),o=(n=i.lib).Base,a=n.WordArray,l=(s=i.algo).SHA256,c=s.HMAC,d=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=c.create(r.hasher,e),n=a.create(),o=a.create([1]),s=n.words,l=o.words,d=r.keySize,u=r.iterations;s.length<d;){var h=i.update(t).finalize(o);i.reset();for(var p=h.words,f=p.length,g=h,m=1;m<u;m++){g=i.finalize(g),i.reset();for(var y=g.words,b=0;b<f;b++)p[b]^=y[b]}n.concat(h),l[0]++}return n.sigBytes=4*d,n}}),i.PBKDF2=function(e,t,r){return d.create(r).compute(e,t)},t.exports=i.PBKDF2},903112,(e,t,r)=>{var i,n,o,a,s,l,c;
vendor: 13,656 bytes, line 884
884e.e,i=e.r(563478),e.r(310698),e.r(278001),o=(n=i.lib).Base,a=n.WordArray,l=(s=i.algo).MD5,c=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,i=this.cfg,n=i.hasher.create(),o=a.create(),s=o.words,l=i.keySize,c=i.iterations;s.length<l;){r&&n.update(r),r=n.update(e).finalize(t),n.reset();for(var d=1;d<c;d++)r=n.finalize(r),n.reset();o.concat(r)}return o.sigBytes=4*l,o}}),i.EvpKDF=function(e,t,r){return c.create(r).compute(e,t)},t.exports=i.EvpKDF},433255,(e,t,r)=>{var i,n,o,a,s,l,c,d,u,h,p,f,g,m,y,b,v,w;e.e,i=e.r(563478),e.r(903112),t.exports=void(i.lib.Cipher||(o=(n=i.lib).Base,a=n.WordArray,s=n.BufferedBlockAlgorithm,(l=i.enc).Utf8,c=l.Base64,d=i.algo.EvpKDF,u=n.Cipher=s.extend({cfg:o.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,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.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"string"==typeof e?w:b}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),h=i.mode={},p=n.BlockCipherMode=o.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}}),f=h.CBC=function(){var e=p.extend();function t(e,t,r){var i,n=this._iv;n?(i=n,this._iv=void 0):i=this._prevBlock;for(var o=0;o<r;o++)e[t+o]^=i[o]}return e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize;t.call(this,e,r,n),i.encryptBlock(e,r),this._prevBlock=e.slice(r,r+n)}}),e.Decryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,o=e.slice(r,r+n);i.decryptBlock(e,r),t.call(this,e,r,n),this._prevBlock=o}}),e}(),g=(i.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,i=r-e.sigBytes%r,n=i<<24|i<<16|i<<8|i,o=[],s=0;s<i;s+=4)o.push(n);var l=a.create(o,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:g}),reset:function(){u.reset.call(this);var e,t=this.cfg,r=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(i,this,r&&r.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}),m=n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?a.create([0x53616c74,0x65645f5f]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),i=r.words;return 0x53616c74==i[0]&&0x65645f5f==i[1]&&(t=a.create(i.slice(2,4)),i.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},b=n.SerializableCipher=o.extend({cfg:o.extend({format:y}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),o=n.finalize(t),a=n.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(r,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(i.kdf={}).OpenSSL={execute:function(e,t,r,i,n){if(i||(i=a.random(8)),n)var o=d.create({keySize:t+r,hasher:n}).compute(e,i);else var o=d.create({keySize:t+r}).compute(e,i);var s=a.create(o.words.slice(t),4*r);return o.sigBytes=4*t,m.create({key:o,iv:s,salt:i})}},w=n.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:v}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize,i.salt,i.hasher);i.iv=n.iv;var o=b.encrypt.call(this,e,t,n.key,i);return o.mixIn(n),o},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt,i.hasher);return i.iv=n.iv,b.decrypt.call(this,e,t,n.key,i)}})))},502358,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(433255),i.mode.CFB=function(){var e=i.lib.BlockCipherMode.extend();function t(e,t,r,i){var n,o=this._iv;o?(n=o.slice(0),this._iv=void 0):n=this._prevBlock,i.encryptBlock(n,0);for(var a=0;a<r;a++)e[t+a]^=n[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize;t.call(this,e,r,n,i),this._prevBlock=e.slice(r,r+n)}}),e.Decryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,o=e.slice(r,r+n);t.call(this,e,r,n,i),this._prevBlock=o}}),e}(),t.exports=i.mode.CFB},413257,(e,t,r)=>{var i,n,o;e.e,i=e.r(563478),e.r(433255),i.mode.CTR=(o=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,n=this._iv,o=this._counter;n&&(o=this._counter=n.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)e[t+s]^=a[s]}}),n.Decryptor=o,n),t.exports=i.mode.CTR},121961,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(433255),i.mode.CTRGladman=function(){var e=i.lib.BlockCipherMode.extend();function t(e){if((e>>24&255)==255){var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0+(t<<16)+(r<<8)+i}else e+=0x1000000;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var i,n=this._cipher,o=n.blockSize,a=this._iv,s=this._counter;a&&(s=this._counter=a.slice(0),this._iv=void 0),0===((i=s)[0]=t(i[0]))&&(i[1]=t(i[1]));var l=s.slice(0);n.encryptBlock(l,0);for(var c=0;c<o;c++)e[r+c]^=l[c]}});return e.Decryptor=r,e}(),t.exports=i.mode.CTRGladman},925274,(e,t,r)=>{var i,n,o;e.e,i=e.r(563478),e.r(433255),i.mode.OFB=(o=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,n=this._iv,o=this._keystream;n&&(o=this._keystream=n.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<i;a++)e[t+a]^=o[a]}}),n.Decryptor=o,n),t.exports=i.mode.OFB},208896,(e,t,r)=>{var i,n;e.e,i=e.r(563478),e.r(433255),i.mode.ECB=((n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),n.Decryptor=n.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),n),t.exports=i.mode.ECB},203110,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(433255),i.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,i=4*t,n=i-r%i,o=r+n-1;e.clamp(),e.words[o>>>2]|=n<<24-o%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.exports=i.pad.Ansix923},928542,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(433255),i.pad.Iso10126={pad:function(e,t){var r=4*t,n=r-e.sigBytes%r;e.concat(i.lib.WordArray.random(n-1)).concat(i.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.exports=i.pad.Iso10126},594448,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(433255),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([0x80000000],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.exports=i.pad.Iso97971},825386,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(433255),i.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1,r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},t.exports=i.pad.ZeroPadding},624786,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(433255),i.pad.NoPadding={pad:function(){},unpad:function(){}},t.exports=i.pad.NoPadding},57777,(e,t,r)=>{var i,n,o;e.e,i=e.r(563478),e.r(433255),n=i.lib.CipherParams,o=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return n.create({ciphertext:t})}},t.exports=i.format.Hex},735448,(e,t,r)=>{var i,n,o,a,s,l,c,d,u,h,p,f,g,m,y;e.e,i=e.r(563478),e.r(499512),e.r(506626),e.r(903112),e.r(433255),n=i.lib.BlockCipher,o=i.algo,a=[],s=[],l=[],c=[],d=[],u=[],h=[],p=[],f=[],g=[],function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=0,i=0,t=0;t<256;t++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99,a[r]=n,s[n]=r;var o=e[r],m=e[o],y=e[m],b=257*e[n]^0x1010100*n;l[r]=b<<24|b>>>8,c[r]=b<<16|b>>>16,d[r]=b<<8|b>>>24,u[r]=b;var b=0x1010101*y^65537*m^257*o^0x1010100*r;h[n]=b<<24|b>>>8,p[n]=b<<16|b>>>16,f[n]=b<<8|b>>>24,g[n]=b,r?(r=o^e[e[e[y^o]]],i^=e[e[i]]):r=i=1}}(),m=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e,t=this._keyPriorReset=this._key,r=t.words,i=t.sigBytes/4,n=((this._nRounds=i+6)+1)*4,o=this._keySchedule=[],s=0;s<n;s++)s<i?o[s]=r[s]:(e=o[s-1],s%i?i>6&&s%i==4&&(e=a[e>>>24]<<24|a[e>>>16&255]<<16|a[e>>>8&255]<<8|a[255&e]):e=(a[(e=e<<8|e>>>24)>>>24]<<24|a[e>>>16&255]<<16|a[e>>>8&255]<<8|a[255&e])^m[s/i|0]<<24,o[s]=o[s-i]^e);for(var l=this._invKeySchedule=[],c=0;c<n;c++){var s=n-c;if(c%4)var e=o[s];else var e=o[s-4];c<4||s<=4?l[c]=e:l[c]=h[a[e>>>24]]^p[a[e>>>16&255]]^f[a[e>>>8&255]]^g[a[255&e]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,l,c,d,u,a)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,h,p,f,g,s);var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,n,o,a,s){for(var l=this._nRounds,c=e[t]^r[0],d=e[t+1]^r[1],u=e[t+2]^r[2],h=e[t+3]^r[3],p=4,f=1;f<l;f++){var g=i[c>>>24]^n[d>>>16&255]^o[u>>>8&255]^a[255&h]^r[p++],m=i[d>>>24]^n[u>>>16&255]^o[h>>>8&255]^a[255&c]^r[p++],y=i[u>>>24]^n[h>>>16&255]^o[c>>>8&255]^a[255&d]^r[p++],b=i[h>>>24]^n[c>>>16&255]^o[d>>>8&255]^a[255&u]^r[p++];c=g,d=m,u=y,h=b}var g=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^r[p++],m=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^r[p++],y=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^r[p++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[p++];e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=b},keySize:8}),i.AES=n._createHelper(y),t.exports=i.AES},444863,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(499512),e.r(506626),e.r(903112),e.r(433255),function(){var e=i.lib,t=e.WordArray,r=e.BlockCipher,n=i.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],a=[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],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,0x10000000:32768,0x20000000:8421378,0x30000000:2,0x40000000:512,0x50000000:8421890,0x60000000:8389122,0x70000000:8388608,0x80000000:514,0x90000000:8389120,0xa0000000:33280,0xb0000000:8421376,0xc0000000:32770,0xd0000000:8388610,0xe0000000:0,0xf0000000:33282,0x8000000:0,0x18000000:8421890,0x28000000:33282,0x38000000:32768,0x48000000:8421888,0x58000000:512,0x68000000:8421378,0x78000000:2,0x88000000:8389120,0x98000000:33280,0xa8000000:8421376,0xb8000000:8389122,0xc8000000:8388610,0xd8000000:32770,0xe8000000:514,0xf8000000:8388608,1:32768,0x10000001:2,0x20000001:8421888,0x30000001:8388608,0x40000001:8421378,0x50000001:33280,0x60000001:512,0x70000001:8389122,0x80000001:8421890,0x90000001:8421376,0xa0000001:8388610,0xb0000001:33282,0xc0000001:514,0xd0000001:8389120,0xe0000001:32770,0xf0000001:0,0x8000001:8421890,0x18000001:8421376,0x28000001:8388608,0x38000001:512,0x48000001:32768,0x58000001:8388610,0x68000001:2,0x78000001:33282,0x88000001:32770,0x98000001:8389122,0xa8000001:514,0xb8000001:8421888,0xc8000001:8389120,0xd8000001:0,0xe8000001:33280,0xf8000001:8421378},{0:0x40084010,0x1000000:16384,0x2000000:524288,0x3000000:0x40080010,0x4000000:0x40000010,0x5000000:0x40084000,0x6000000:0x40004000,0x7000000:16,0x8000000:540672,0x9000000:0x40004010,0xa000000:0x40000000,0xb000000:540688,0xc000000:524304,0xd000000:0,0xe000000:16400,0xf000000:0x40080000,8388608:0x40004000,0x1800000:540688,0x2800000:16,0x3800000:0x40004010,0x4800000:0x40084010,0x5800000:0x40000000,0x6800000:524288,0x7800000:0x40080010,0x8800000:524304,0x9800000:0,0xa800000:16384,0xb800000:0x40080000,0xc800000:0x40000010,0xd800000:540672,0xe800000:0x40084000,0xf800000:16400,0x10000000:0,0x11000000:0x40080010,0x12000000:0x40004010,0x13000000:0x40084000,0x14000000:0x40080000,0x15000000:16,0x16000000:540688,0x17000000:16384,0x18000000:16400,0x19000000:524288,0x1a000000:524304,0x1b000000:0x40000010,0x1c000000:540672,0x1d000000:0x40004000,0x1e000000:0x40000000,0x1f000000:0x40084010,0x10800000:540688,0x11800000:524288,0x12800000:0x40080000,0x13800000:16384,0x14800000:0x40004000,0x15800000:0x40084010,0x16800000:16,0x17800000:0x40000000,0x18800000:0x40084000,0x19800000:0x40000010,0x1a800000:0x40004010,0x1b800000:524304,0x1c800000:0,0x1d800000:16400,0x1e800000:0x40080010,0x1f800000:540672},{0:260,1048576:0,2097152:0x4000100,3145728:65796,4194304:65540,5242880:0x4000004,6291456:0x4010104,7340032:0x4010000,8388608:0x4000000,9437184:0x4010100,0xa00000:65792,0xb00000:0x4010004,0
vendor: 5,804 bytes, line 884
884xc00000:0x4000104,0xd00000:65536,0xe00000:4,0xf00000:256,524288:0x4010100,1572864:0x4010004,2621440:0,3670016:0x4000100,4718592:0x4000004,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,0xa80000:0x4010000,0xb80000:65796,0xc80000:65792,0xd80000:0x4000104,0xe80000:0x4010104,0xf80000:0x4000000,0x1000000:0x4010100,0x1100000:65540,0x1200000:65536,0x1300000:0x4000100,0x1400000:256,0x1500000:0x4010104,0x1600000:0x4000004,0x1700000:0,0x1800000:0x4000104,0x1900000:0x4000000,0x1a00000:4,0x1b00000:65792,0x1c00000:0x4010000,0x1d00000:260,0x1e00000:65796,0x1f00000:0x4010004,0x1080000:0x4000000,0x1180000:260,0x1280000:0x4010100,0x1380000:0,0x1480000:65540,0x1580000:0x4000100,0x1680000:256,0x1780000:0x4010004,0x1880000:65536,0x1980000:0x4010104,0x1a80000:65796,0x1b80000:0x4000004,0x1c80000:0x4000104,0x1d80000:0x4010000,0x1e80000:4,0x1f80000:65792},{0:0x80401000,65536:0x80001040,131072:4198464,196608:0x80400000,262144:0,327680:4198400,393216:0x80000040,458752:4194368,524288:0x80000000,589824:4194304,655360:64,720896:0x80001000,786432:0x80400040,851968:4160,917504:4096,983040:0x80401040,32768:0x80001040,98304:64,163840:0x80400040,229376:0x80001000,294912:4198400,360448:0x80401040,425984:0,491520:0x80400000,557056:4096,622592:0x80401000,688128:4194304,753664:4160,819200:0x80000000,884736:4194368,950272:4198464,1015808:0x80000040,1048576:4194368,1114112:4198400,1179648:0x80000040,1245184:0,1310720:4160,1376256:0x80400040,1441792:0x80401000,1507328:0x80001040,1572864:0x80401040,1638400:0x80000000,1703936:0x80400000,1769472:4198464,1835008:0x80001000,1900544:4194304,1966080:64,2031616:4096,1081344:0x80400000,1146880:0x80401040,1212416:0,1277952:4198400,1343488:4194368,1409024:0x80000000,1474560:0x80001040,1540096:64,1605632:0x80000040,1671168:4096,1736704:0x80001000,1802240:0x80400040,1867776:4160,1933312:0x80401000,1998848:4194304,2064384:4198464},{0:128,4096:0x1040000,8192:262144,12288:0x20000000,16384:0x20040080,20480:0x1000080,24576:0x21000080,28672:262272,32768:0x1000000,36864:0x20040000,40960:0x20000080,45056:0x21040080,49152:0x21040000,53248:0,57344:0x1040080,61440:0x21000000,2048:0x1040080,6144:0x21000080,10240:128,14336:0x1040000,18432:262144,22528:0x20040080,26624:0x21040000,30720:0x20000000,34816:0x20040000,38912:0,43008:0x21040080,47104:0x1000080,51200:0x20000080,55296:0x21000000,59392:0x1000000,63488:262272,65536:262144,69632:128,73728:0x20000000,77824:0x21000080,81920:0x1000080,86016:0x21040000,90112:0x20040080,94208:0x1000000,98304:0x21040080,102400:0x21000000,106496:0x1040000,110592:0x20040000,114688:262272,118784:0x20000080,122880:0,126976:0x1040080,67584:0x21000080,71680:0x1000000,75776:0x1040000,79872:0x20040080,83968:0x20000000,88064:0x1040080,92160:128,96256:0x21040000,100352:262272,104448:0x21040080,108544:0,112640:0x21000000,116736:0x1000080,120832:262144,124928:0x20040000,129024:0x20000080},{0:0x10000008,256:8192,512:0x10200000,768:0x10202008,1024:0x10002000,1280:2097152,1536:2097160,1792:0x10000000,2048:0,2304:0x10002008,2560:2105344,2816:8,3072:0x10200008,3328:2105352,3584:8200,3840:0x10202000,128:0x10200000,384:0x10202008,640:8,896:2097152,1152:2105352,1408:0x10000008,1664:0x10002000,1920:8200,2176:2097160,2432:8192,2688:0x10002008,2944:0x10200008,3200:0,3456:0x10202000,3712:2105344,3968:0x10000000,4096:0x10002000,4352:0x10200008,4608:0x10202008,4864:8200,5120:2097152,5376:0x10000000,5632:0x10000008,5888:2105344,6144:2105352,6400:0,6656:8,6912:0x10200000,7168:8192,7424:0x10002008,7680:0x10202000,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:0x10000008,5248:0x10002000,5504:8200,5760:0x10202008,6016:0x10200000,6272:0x10202000,6528:0x10200008,6784:8192,7040:2105352,7296:2097160,7552:0,7808:0x10000000,8064:0x10002008},{0:1048576,16:0x2000401,32:1024,48:1049601,64:0x2100401,80:0,96:1,112:0x2100001,128:0x2000400,144:1048577,160:0x2000001,176:0x2100400,192:0x2100000,208:1025,224:1049600,240:0x2000000,8:0x2100001,24:0,40:0x2000401,56:0x2100400,72:1048576,88:0x2000001,104:0x2000000,120:1025,136:1049601,152:0x2000400,168:0x2100000,184:1048577,200:1024,216:0x2100401,232:1,248:1049600,256:0x2000000,272:1048576,288:0x2000401,304:0x2100001,320:1048577,336:0x2000400,352:0x2100400,368:1049601,384:1025,400:0x2100401,416:1049600,432:1,448:0,464:0x2100000,480:0x2000001,496:1024,264:1049600,280:0x2000401,296:0x2100001,312:1,328:0x2000000,344:1048576,360:1025,376:0x2100400,392:0x2000001,408:0x2100000,424:0,440:0x2100401,456:1049601,472:1024,488:0x2000400,504:1048577},{0:0x8000820,1:131072,2:0x8000000,3:32,4:131104,5:0x8020820,6:0x8020800,7:2048,8:0x8020000,9:0x8000800,10:133120,11:0x8020020,12:2080,13:0,14:0x8000020,15:133152,0x80000000:2048,0x80000001:0x8020820,0x80000002:0x8000820,0x80000003:0x8000000,0x80000004:0x8020000,0x80000005:133120,0x80000006:133152,0x80000007:32,0x80000008:0x8000020,0x80000009:2080,0x8000000a:131104,0x8000000b:0x8020800,0x8000000c:0,0x8000000d:0x8020020,0x8000000e:0x8000800,0x8000000f:131072,16:133152,17:0x8020800,18:32,19:2048,20:0x8000800,21:0x8000020,22:0x8020020,23:131072,24:0,25:131104,26:0x8020000,27:0x8000820,28:0x8020820,29:133120,30:2080,31:0x8000000,0x80000010:131072,0x80000011:2048,0x80000012:0x8020020,0x80000013:133152,0x80000014:32,0x80000015:0x8020000,0x80000016:0x8000000,0x80000017:0x8000820,0x80000018:0x8020820,0x80000019:0x8000020,0x8000001a:0x8000800,0x8000001b:0,0x8000001c:133120,0x8000001d:2080,0x8000001e:131104,0x8000001f:0x8020800}],c=[0xf8000001,0x1f800000,0x1f80000,2064384,129024,8064,504,0x8000001f],d=n.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var i=o[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],l=0;l<16;l++){for(var c=n[l]=[],d=s[l],r=0;r<24;r++)c[r/6|0]|=t[(a[r]-1+d)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(a[r+24]-1+d)%28]<<31-r%6;c[0]=c[0]<<1|c[0]>>>31;for(var r=1;r<7;r++)c[r]=c[r]>>>(r-1)*4+3;
vendor: 4,874 bytes, line 884
884c[7]=c[7]<<5|c[7]>>>27}for(var u=this._invSubKeys=[],r=0;r<16;r++)u[r]=n[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],u.call(this,4,0xf0f0f0f),u.call(this,16,65535),h.call(this,2,0x33333333),h.call(this,8,0xff00ff),u.call(this,1,0x55555555);for(var i=0;i<16;i++){for(var n=r[i],o=this._lBlock,a=this._rBlock,s=0,d=0;d<8;d++)s|=l[d][((a^n[d])&c[d])>>>0];this._lBlock=a,this._rBlock=o^s}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,u.call(this,1,0x55555555),h.call(this,8,0xff00ff),h.call(this,2,0x33333333),u.call(this,16,65535),u.call(this,4,0xf0f0f0f),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function u(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}i.DES=r._createHelper(d);var p=n.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),n=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(t.create(r)),this._des2=d.createEncryptor(t.create(i)),this._des3=d.createEncryptor(t.create(n))},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});i.TripleDES=r._createHelper(p)}(),t.exports=i.TripleDES},978467,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(499512),e.r(506626),e.r(903112),e.r(433255),function(){var e=i.lib.StreamCipher,t=i.algo,r=t.RC4=e.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,i=this._S=[],n=0;n<256;n++)i[n]=n;for(var n=0,o=0;n<256;n++){var a=n%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+i[n]+s)%256;var l=i[n];i[n]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=n.call(this)},keySize:8,ivSize:0});function n(){for(var e=this._S,t=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,i|=e[(e[t]+e[r])%256]<<24-8*n}return this._i=t,this._j=r,i}i.RC4=e._createHelper(r);var o=t.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)n.call(this)}});i.RC4Drop=e._createHelper(o)}(),t.exports=i.RC4},450802,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(499512),e.r(506626),e.r(903112),e.r(433255),function(){var e=i.lib.StreamCipher,t=i.algo,r=[],n=[],o=[],a=t.Rabbit=e.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=(e[r]<<8|e[r]>>>24)&0xff00ff|(e[r]<<24|e[r]>>>8)&0xff00ff00;var i=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],n=this._C=[e[2]<<16|e[2]>>>16,0xffff0000&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,0xffff0000&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,0xffff0000&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,0xffff0000&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)s.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var o=t.words,a=o[0],l=o[1],c=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,d=(l<<8|l>>>24)&0xff00ff|(l<<24|l>>>8)&0xff00ff00,u=c>>>16|0xffff0000&d,h=d<<16|65535&c;n[0]^=c,n[1]^=u,n[2]^=d,n[3]^=h,n[4]^=c,n[5]^=u,n[6]^=d,n[7]^=h;for(var r=0;r<4;r++)s.call(this)}},_doProcessBlock:function(e,t){var i=this._X;s.call(this),r[0]=i[0]^i[5]>>>16^i[3]<<16,r[1]=i[2]^i[7]>>>16^i[5]<<16,r[2]=i[4]^i[1]>>>16^i[7]<<16,r[3]=i[6]^i[3]>>>16^i[1]<<16;for(var n=0;n<4;n++)r[n]=(r[n]<<8|r[n]>>>24)&0xff00ff|(r[n]<<24|r[n]>>>8)&0xff00ff00,e[t+n]^=r[n]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)n[r]=t[r];t[0]=t[0]+0x4d34d34d+this._b|0,t[1]=t[1]+0xd34d34d3+ +(t[0]>>>0<n[0]>>>0)|0,t[2]=t[2]+0x34d34d34+ +(t[1]>>>0<n[1]>>>0)|0,t[3]=t[3]+0x4d34d34d+ +(t[2]>>>0<n[2]>>>0)|0,t[4]=t[4]+0xd34d34d3+ +(t[3]>>>0<n[3]>>>0)|0,t[5]=t[5]+0x34d34d34+ +(t[4]>>>0<n[4]>>>0)|0,t[6]=t[6]+0x4d34d34d+ +(t[5]>>>0<n[5]>>>0)|0,t[7]=t[7]+0xd34d34d3+ +(t[6]>>>0<n[6]>>>0)|0,this._b=+(t[7]>>>0<n[7]>>>0);for(var r=0;r<8;r++){var i=e[r]+t[r],a=65535&i,s=i>>>16,l=((a*a>>>17)+a*s>>>15)+s*s,c=((0xffff0000&i)*i|0)+((65535&i)*i|0);o[r]=l^c}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}i.Rabbit=e._createHelper(a)}(),t.exports=i.Rabbit},835852,(e,t,r)=>{var i;
884e.e,i=e.r(563478),e.r(499512),e.r(506626),e.r(903112),e.r(433255),function(){var e=i.lib.StreamCipher,t=i.algo,r=[],n=[],o=[],a=t.RabbitLegacy=e.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,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,0xffff0000&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,0xffff0000&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,0xffff0000&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,0xffff0000&e[3]|65535&e[0]];this._b=0;for(var n=0;n<4;n++)s.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],l=o[1],c=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,d=(l<<8|l>>>24)&0xff00ff|(l<<24|l>>>8)&0xff00ff00,u=c>>>16|0xffff0000&d,h=d<<16|65535&c;i[0]^=c,i[1]^=u,i[2]^=d,i[3]^=h,i[4]^=c,i[5]^=u,i[6]^=d,i[7]^=h;for(var n=0;n<4;n++)s.call(this)}},_doProcessBlock:function(e,t){var i=this._X;s.call(this),r[0]=i[0]^i[5]>>>16^i[3]<<16,r[1]=i[2]^i[7]>>>16^i[5]<<16,r[2]=i[4]^i[1]>>>16^i[7]<<16,r[3]=i[6]^i[3]>>>16^i[1]<<16;for(var n=0;n<4;n++)r[n]=(r[n]<<8|r[n]>>>24)&0xff00ff|(r[n]<<24|r[n]>>>8)&0xff00ff00,e[t+n]^=r[n]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)n[r]=t[r];t[0]=t[0]+0x4d34d34d+this._b|0,t[1]=t[1]+0xd34d34d3+ +(t[0]>>>0<n[0]>>>0)|0,t[2]=t[2]+0x34d34d34+ +(t[1]>>>0<n[1]>>>0)|0,t[3]=t[3]+0x4d34d34d+ +(t[2]>>>0<n[2]>>>0)|0,t[4]=t[4]+0xd34d34d3+ +(t[3]>>>0<n[3]>>>0)|0,t[5]=t[5]+0x34d34d34+ +(t[4]>>>0<n[4]>>>0)|0,t[6]=t[6]+0x4d34d34d+ +(t[5]>>>0<n[5]>>>0)|0,t[7]=t[7]+0xd34d34d3+ +(t[6]>>>0<n[6]>>>0)|0,this._b=+(t[7]>>>0<n[7]>>>0);for(var r=0;r<8;r++){var i=e[r]+t[r],a=65535&i,s=i>>>16,l=((a*a>>>17)+a*s>>>15)+s*s,c=((0xffff0000&i)*i|0)+((65535&i)*i|0);o[r]=l^c}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}i.RabbitLegacy=e._createHelper(a)}(),t.exports=i.RabbitLegacy},964459,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(499512),e.r(506626),e.r(903112),e.r(433255),function(){var e=i.lib.BlockCipher,t=i.algo;let r=[0x243f6a88,0x85a308d3,0x13198a2e,0x3707344,0xa4093822,0x299f31d0,0x82efa98,0xec4e6c89,0x452821e6,0x38d01377,0xbe5466cf,0x34e90c6c,0xc0ac29b7,0xc97c50dd,0x3f84d5b5,0xb5470917,0x9216d5d9,0x8979fb1b],n=[[0xd1310ba6,0x98dfb5ac,0x2ffd72db,0xd01adfb7,0xb8e1afed,0x6a267e96,0xba7c9045,0xf12c7f99,0x24a19947,0xb3916cf7,0x801f2e2,0x858efc16,0x636920d8,0x71574e69,0xa458fea3,0xf4933d7e,0xd95748f,0x728eb658,0x718bcd58,0x82154aee,0x7b54a41d,0xc25a59b5,0x9c30d539,0x2af26013,0xc5d1b023,0x286085f0,0xca417918,0xb8db38ef,0x8e79dcb0,0x603a180e,0x6c9e0e8b,0xb01e8a3e,0xd71577c1,0xbd314b27,0x78af2fda,0x55605c60,0xe65525f3,0xaa55ab94,0x57489862,0x63e81440,0x55ca396a,0x2aab10b6,0xb4cc5c34,0x1141e8ce,0xa15486af,0x7c72e993,0xb3ee1411,0x636fbc2a,0x2ba9c55d,0x741831f6,0xce5c3e16,0x9b87931e,0xafd6ba33,0x6c24cf5c,0x7a325381,0x28958677,0x3b8f4898,0x6b4bb9af,0xc4bfe81b,0x66282193,0x61d809cc,0xfb21a991,0x487cac60,0x5dec8032,0xef845d5d,0xe98575b1,0xdc262302,0xeb651b88,0x23893e81,0xd396acc5,0xf6d6ff3,0x83f44239,0x2e0b4482,0xa4842004,0x69c8f04a,0x9e1f9b5e,0x21c66842,0xf6e96c9a,0x670c9c61,0xabd388f0,0x6a51a0d2,0xd8542f68,0x960fa728,0xab5133a3,0x6eef0b6c,0x137a3be4,0xba3bf050,0x7efb2a98,0xa1f1651d,0x39af0176,0x66ca593e,0x82430e88,0x8cee8619,0x456f9fb4,0x7d84a5c3,0x3b8b5ebe,0xe06f75d8,0x85c12073,0x401a449f,0x56c16aa6,0x4ed3aa62,0x363f7706,0x1bfedf72,0x429b023d,0x37d0d724,0xd00a1248,0xdb0fead3,0x49f1c09b,0x75372c9,0x80991b7b,0x25d479d8,0xf6e8def7,0xe3fe501a,0xb6794c3b,0x976ce0bd,0x4c006ba,0xc1a94fb6,0x409f60c4,0x5e5c9ec2,0x196a2463,0x68fb6faf,0x3e6c53b5,0x1339b2eb,0x3b52ec6f,0x6dfc511f,0x9b30952c,0xcc814544,0xaf5ebd09,0xbee3d004,0
884xde334afd,0x660f2807,0x192e4bb3,0xc0cba857,0x45c8740f,0xd20b5f39,0xb9d3fbdb,0x5579c0bd,0x1a60320a,0xd6a100c6,0x402c7279,0x679f25fe,0xfb1fa3cc,0x8ea5e9f8,0xdb3222f8,0x3c7516df,0xfd616b15,0x2f501ec8,0xad0552ab,0x323db5fa,0xfd238760,0x53317b48,0x3e00df82,0x9e5c57bb,0xca6f8ca0,0x1a87562e,0xdf1769db,0xd542a8f6,0x287effc3,0xac6732c6,0x8c4f5573,0x695b27b0,0xbbca58c8,0xe1ffa35d,0xb8f011a0,0x10fa3d98,0xfd2183b8,0x4afcb56c,0x2dd1d35b,0x9a53e479,0xb6f84565,0xd28e49bc,0x4bfb9790,0xe1ddf2da,0xa4cb7e33,0x62fb1341,0xcee4c6e8,0xef20cada,0x36774c01,0xd07e9efe,0x2bf11fb4,0x95dbda4d,0xae909198,0xeaad8e71,0x6b93d5a0,0xd08ed1d0,0xafc725e0,0x8e3c5b2f,0x8e7594b7,0x8ff6e2fb,0xf2122b64,0x8888b812,0x900df01c,0x4fad5ea0,0x688fc31c,0xd1cff191,0xb3a8c1ad,0x2f2f2218,0xbe0e1777,0xea752dfe,0x8b021fa1,0xe5a0cc0f,0xb56f74e8,0x18acf3d6,0xce89e299,0xb4a84fe0,0xfd13e0b7,0x7cc43b81,0xd2ada8d9,0x165fa266,0x80957705,0x93cc7314,0x211a1477,0xe6ad2065,0x77b5fa86,0xc75442f5,0xfb9d35cf,0xebcdaf0c,0x7b3e89a0,0xd6411bd3,0xae1e7e49,2428461,0x2071b35e,0x226800bb,0x57b8e0af,0x2464369b,0xf009b91e,0x5563911d,0x59dfa6aa,0x78c14389,0xd95a537f,0x207d5ba2,0x2e5b9c5,0x83260376,0x6295cfa9,0x11c81968,0x4e734a41,0xb3472dca,0x7b14a94a,0x1b510052,0x9a532915,0xd60f573f,0xbc9bc6e4,0x2b60a476,0x81e67400,0x8ba6fb5,0x571be91f,0xf296ec6b,0x2a0dd915,0xb6636521,0xe7b9f9b6,0xff34052e,0xc5855664,0x53b02d5d,0xa99f8fa1,0x8ba4799,0x6e85076a],[0x4b7a70e9,0xb5b32944,0xdb75092e,0xc4192623,290971e4,0x49a7df7d,0x9cee60b8,0x8fedb266,0xecaa8c71,0x699a17ff,0x5664526c,0xc2b19ee1,0x193602a5,0x75094c29,0xa0591340,0xe4183a3e,0x3f54989a,0x5b429d65,0x6b8fe4d6,0x99f73fd6,0xa1d29c07,0xefe830f5,0x4d2d38e6,0xf0255dc1,0x4cdd2086,0x8470eb26,0x6382e9c6,0x21ecc5e,0x9686b3f,0x3ebaefc9,0x3c971814,0x6b6a70a1,0x687f3584,0x52a0e286,0xb79c5305,0xaa500737,0x3e07841c,0x7fdeae5c,0x8e7d44ec,0x5716f2b8,0xb03ada37,0xf0500c0d,0xf01c1f04,0x200b3ff,0xae0cf51a,0x3cb574b2,0x25837a58,0xdc0921bd,0xd19113f9,0x7ca92ff6,0x94324773,0x22f54701,0x3ae5e581,0x37c2dadc,0xc8b57634,0x9af3dda7,0xa9446146,0xfd0030e,0xecc8c73e,0xa4751e41,0xe238cd99,0x3bea0e2f,0x3280bba1,0x183eb331,0x4e548b38,0x4f6db908,0x6f420d03,0xf60a04bf,0x2cb81290,0x24977c79,0x5679b072,0xbcaf89af,0xde9a771f,0xd9930810,0xb38bae12,0xdccf3f2e,0x5512721f,0x2e6b7124,0x501adde6,0x9f84cd87,0x7a584718,0x7408da17,0xbc9f9abc,0xe94b7d8c,0xec7aec3a,0xdb851dfa,0x63094366,0xc464c3d2,0xef1c1847,0x3215d908,0xdd433b37,0x24c2ba16,0x12a14d43,0x2a65c451,0x50940002,0x133ae4dd,0x71dff89e,0x10314e55,0x81ac77d6,0x5f11199b,0x43556f1,0xd7a3c76b,0x3c11183b,0x5924a509,0xf28fe6ed,0x97f1fbfa,0x9ebabf2c,0x1e153c6e,0x86e34570,0xeae96fb1,0x860e5e0a,0x5a3e2ab3,0x771fe71c,0x4e3d06fa,0x2965dcb9,0x99e71d0f,0x803e89d6,0x5266c825,0x2e4cc978,0x9c10b36a,0xc6150eba,0x94e2ea78,0xa5fc3c53,0x1e0a2df4,0xf2f74ea7,0x361d2b3d,0x1939260f,0x19c27960,0x5223a708,0xf71312b6,0xebadfe6e,0xeac31f66,0xe3bc4595,0xa67bc883,0xb17f37d1,0x18cff28,0xc332ddef,0xbe6c5aa5,0x65582185,0x68ab9802,0xeecea50f,0xdb2f953b,0x2aef7dad,0x5b6e2f84,0x1521b628,0x29076170,0xecdd4775,0x619f1510,0x13cca830,0xeb61bd96,0x334fe1e,0xaa0363cf,0xb5735c90,0x4c70a239,0xd59e9e0b,0xcbaade14,0xeecc86bc,0x60622ca7,0x9cab5cab,0xb2f3846e,0x648b1eaf,0x19bdf0ca,0xa02369b9,0x655abb50,0x40685a32,0x3c2ab4b3,0x319ee9d5,0xc021b8f7,0x9b540b19,0x875fa099,0x95f7997e,0x623d7da8,0xf837889a,0x97e32d77,0x11ed935f,0x16681281,0xe358829,0xc7e61fd6,0x96dedfa1,0x7858ba99,0x57f584a5,0x1b227263,0x9b83c3ff,0x1ac24696,0xcdb30aeb,0x532e3054,0x8fd948e4,0x6dbc3128,0x58ebf2ef,0x34c6ffea,0xfe28ed61,0xee7c3c73,0x5d4a14d9,0xe864b7e3,0x42105d14,0x203e13e0,0x45eee2b6,0xa3aaabea,0xdb6c4f15,0xfacb4fd0,0xc742f442,0xef6abbb5,0x654f3b1d,0x41cd2105,0xd81e799e,0x86854dc7,0xe44b476a,0x3d816250,0xcf62a1f2,0x5b8d2646,0xfc8883a0,0xc1c7b6a3,0x7f1524c3,0x69cb7492,0x47848a0b,0x5692b285,0x95bbf00,0xad19489d,0x1462b174,0x23820e00,0x58428d2a,0xc55f5ea,0x1dadf43e,0x233f7061,0x3372f092,0x8d937e41,0xd65fecf1,0x6c223bdb,0x7cde3759,0xcbee7460,0x4085f2a7,0xce77326e,0xa6078084,0x19f8509e,0xe8efd855,0x61d99735,0xa969a7aa,0xc50c06c2,0x5a04abfc,0x800bcadc,0x9e447a2e,0xc3453484,0xfdd56705,0xe1e9ec9,0xdb73dbd3,0x105588cd,0x675fda79,0xe3674340,0xc5c43465,0x713e38d8,0x3d28f89e,0xf16dff20,0x153e21e7,0x8fb03d4a,0xe6e39f2b,0xdb83adf7],[0xe93d5a68,0x948140f7,0xf64c261c,0x94692934,0x411520f7,0x7602d4f7,0xbcf46b2e,0xd4a20068,0xd4082471,0x3320f46a,0x43b7d4b7,0x500061af,0x1e39f62e,0x97244546,0x14214f74,0xbf8b8840,0x4d95fc1d,0x96b591af,0x70f4ddd3,0x66a02f45,0xbfbc09ec,0x3bd9785,0x7fac6dd0,0x31cb8504,0x96eb27b3,0x55fd3941,0xda2547e6,0xabca0a9a,0x28507825,0x530429f4,0xa2c86da,0xe9b66dfb,0x68dc1462,0xd7486900,0x680ec0a4,0x27a18dee,0x4f3ffea2,0xe887ad8c,0xb58ce006,0x7af4d6b6,0xaace1e7c,0xd3375fec,0xce78a399,0
884x406b2a42,0x20fe9e35,0xd9f385b9,0xee39d7ab,0x3b124e8b,0x1dc9faf7,0x4b6d1856,0x26a36631,0xeae397b2,0x3a6efa74,0xdd5b4332,0x6841e7f7,0xca7820fb,0xfb0af54e,0xd8feb397,0x454056ac,0xba489527,0x55533a3a,0x20838d87,0xfe6ba9b7,0xd096954b,0x55a867bc,0xa1159a58,0xcca92963,0x99e1db33,0xa62a4a56,0x3f3125f9,0x5ef47e1c,0x9029317c,0xfdf8e802,0x4272f70,0x80bb155c,0x5282ce3,0x95c11548,0xe4c66d22,0x48c1133f,0xc70f86dc,0x7f9c9ee,0x41041f0f,0x404779a4,0x5d886e17,0x325f51eb,0xd59bc0d1,0xf2bcc18f,0x41113564,0x257b7834,0x602a9c60,0xdff8e8a3,0x1f636c1b,0xe12b4c2,0x2e1329e,0xaf664fd1,0xcad18115,0x6b2395e0,0x333e92e1,0x3b240b62,0xeebeb922,0x85b2a20e,0xe6ba0d99,0xde720c8c,0x2da2f728,0xd0127845,0x95b794fd,0x647d0862,0xe7ccf5f0,0x5449a36f,0x877d48fa,0xc39dfd27,0xf33e8d1e,0xa476341,0x992eff74,0x3a6f6eab,0xf4f8fd37,0xa812dc60,0xa1ebddf8,0x991be14c,0xdb6e6b0d,0xc67b5510,0x6d672c37,0x2765d43b,0xdcd0e804,0xf1290dc7,0xcc00ffa3,0xb5390f92,0x690fed0b,0x667b9ffb,0xcedb7d9c,0xa091cf0b,0xd9155ea3,0xbb132f88,0x515bad24,0x7b9479bf,0x763bd6eb,0x37392eb3,0xcc115979,0x8026e297,0xf42e312d,0x6842ada7,0xc66a2b3b,0x12754ccc,0x782ef11c,0x6a124237,0xb79251e7,0x6a1bbe6,0x4bfb6350,0x1a6b1018,0x11caedfa,0x3d25bdd8,0xe2e1c3c9,0x44421659,0xa121386,0xd90cec6e,0xd5abea2a,0x64af674e,0xda86a85f,0xbebfe988,0x64e4c3fe,0x9dbc8057,0xf0f7c086,0x60787bf8,0x6003604d,0xd1fd8346,0xf6381fb0,0x7745ae04,0xd736fccc,0x83426b33,0xf01eab71,0xb0804187,0x3c005e5f,0x77a057be,0xbde8ae24,0x55464299,0xbf582e61,0x4e58f48f,0xf2ddfda2,0xf474ef38,0x8789bdc2,0x5366f9c3,0xc8b38e74,0xb475f255,0x46fcd9b9,0x7aeb2661,0x8b1ddf84,0x846a0e79,0x915f95e2,0x466e598e,0x20b45770,0x8cd55591,0xc902de4c,0xb90bace1,0xbb8205d0,0x11a86248,0x7574a99e,0xb77f19b6,0xe0a9dc09,0x662d09a1,0xc4324633,0xe85a1f02,0x9f0be8c,0x4a99a025,0x1d6efe10,0x1ab93d1d,0xba5a4df,0xa186f20f,0x2868f169,0xdcb7da83,0x573906fe,0xa1e2ce9b,0x4fcd7f52,0x50115e01,0xa70683fa,0xa002b5c4,0xde6d027,0x9af88c27,0x773f8641,0xc3604c06,0x61a806b5,0xf0177a28,0xc0f586e0,6314154,0x30dc7d62,0x11e69ed7,0x2338ea63,0x53c2dd94,0xc2c21634,0xbbcbee56,0x90bcb6de,0xebfc7da1,0xce591d76,0x6f05e409,0x4b7c0188,0x39720a3d,0x7c927c24,0x86e3725f,0x724d9db9,0x1ac15bb4,0xd39eb8fc,0xed545578,0x8fca5b5,0xd83d7cd3,0x4dad0fc4,0x1e50ef5e,0xb161e6f8,0xa28514d9,0x6c51133c,0x6fd5c7e7,0x56e14ec4,0x362abfce,0xddc6c837,0xd79a3234,0x92638212,0x670efa8e,0x406000e0],[0x3a39ce37,0xd3faf5cf,0xabc27737,0x5ac52d1b,0x5cb0679e,0x4fa33742,0xd3822740,0x99bc9bbe,0xd5118e9d,0xbf0f7315,0xd62d1c7e,0xc700c47b,0xb78c1b6b,0x21a19045,0xb26eb1be,0x6a366eb4,0x5748ab2f,0xbc946e79,0xc6a376d2,0x6549c2c8,0x530ff8ee,0x468dde7d,0xd5730a1d,0x4cd04dc6,0x2939bbdb,0xa9ba4650,0xac9526e8,0xbe5ee304,0xa1fad5f0,0x6a2d519a,0x63ef8ce2,0x9a86ee22,0xc089c2b8,0x43242ef6,0xa51e03aa,0x9cf2d0a4,0x83c061ba,0x9be96a4d,0x8fe51550,0xba645bd6,0x2826a2f9,0xa73a3ae1,0x4ba99586,0xef5562e9,0xc72fefd3,0xf752f7da,0x3f046f69,0x77fa0a59,0x80e4a915,0x87b08601,0x9b09e6ad,0x3b3ee593,0xe990fd5a,0x9e34d797,0x2cf0b7d9,0x22b8b51,0x96d5ac3a,0x17da67d,0xd1cf3ed6,0x7c7d2d28,0x1f9f25cf,0xadf2b89b,0x5ad6b472,0x5a88f54c,0xe029ac71,0xe019a5e6,0x47b0acfd,0xed93fa9b,0xe8d3c48d,0x283b57cc,0xf8d56629,0x79132e28,0x785f0191,0xed756055,0xf7960e44,0xe3d35e8c,0x15056dd4,0x88f46dba,0x3a16125,0x564f0bd,0xc3eb9e15,0x3c9057a2,0x97271aec,0xa93a072a,0x1b3f6d9b,0x1e6321f5,0xf59c66fb,0x26dcf319,0x7533d928,0xb155fdf5,0x3563482,0x8aba3cbb,0x28517711,0xc20ad9f8,0xabcc5167,0xccad925f,0x4de81751,0x3830dc8e,0x379d5862,0x9320f991,0xea7a90c2,0xfb3e7bce,0x5121ce64,0x774fbe32,0xa8b6e37e,0xc3293d46,0x48de5369,0x6413e680,0xa2ae0810,0xdd6db224,0x69852dfd,0x9072166,0xb39a460a,0x6445c0dd,0x586cdecf,0x1c20c8ae,0x5bbef7dd,0x1b588d40,0xccd2017f,0x6bb4e3bb,0xdda26a7e,0x3a59ff45,0x3e350a44,0xbcb4cdd5,0x72eacea8,0xfa6484bb,0x8d6612ae,0xbf3c6f47,0xd29be463,0x542f5d9e,0xaec2771b,0xf64e6370,0x740e0d8d,0xe75b1357,0xf8721671,0xaf537d5d,0x4040cb08,0x4eb4e2cc,0x34d2466a,0x115af84,3786409e3,0x95983a1d,0x6b89fb4,0xce6ea048,0x6f3f3b82,0x3520ab82,0x11a1d4b,0x277227f8,0x611560b1,0xe7933fdc,0xbb3a792b,0x344525bd,0xa08839e1,0x51ce794b,0x2f32c9b7,0xa01fbac9,0xe01cc87e,0xbcc7d1f6,0xcf0111c3,0xa1e8aac7,0x1a908749,0xd44fbd9a,0xd0dadecb,0xd50ada38,0x339c32a,0xc6913667,0x8df9317c,0xe0b12b4f,0xf79e59b7,0x43f5bb3a,0xf2d519ff,0x27d9459c,0xbf97222c,0x15e6fc2a,0xf91fc71,0x9b941525,0xfae59361,0xceb69ceb,0xc2a86459,0x12baa8d1,0xb6c1075e,0xe3056a0c,0x10d25065,0xcb03a442,0xe0ec6e0e,0x1698db3b,0x4c98a0be,0x3278e964,0x9f1f9532,0xe0d392df,0xd3a0342b,0x8971f21e,0x1b0a7441,0x4ba3348c,0xc5be7120,0xc37632d8,0xdf359f8d,0x9b992f2e,0xe60b6f47,0xfe3f11d,0xe54cda54,0x1edad891,0xce6279cf,0xcd3e7e6f,0x1618b166,0xfd2c1d05,0x848fd2c5,0xf6fb2299,0xf523f357,0xa6327623,0x93a83531,0x56cccd02,0xacf08162,0x5a75ebb5,0x6e163697,0x88d273cc,0xde966292,0x81b949d0,0x4c50901b,0x71c65614,0xe6c6c7bd,0x327a140a,0x45e1d006,0xc3f27b9a,0xc9aa53fd,0x62a80f00,0xbb25bfe2,0x35bdd2f6,0x71126905,0xb2040222,0xb6cbcf7c,0xcd769c2b,0x53113ec0,0x1640e3d3,0x38abbd60,0x2547adf0,0xba38209c,0xf746ce76,0x77afa1c5,0x20756060,0x85cbfe4e,0x8ae88dd8,0x7aaaf9b0,0x4cf9aa7e,0x1948c25c,0x2fb8a8c,0x1c36ae4,0xd6ebe1f9,0x90d4f869,0xa65cdea0,0x3f09252d,0xc208e69f,0xb74e6132,0xce77e25b,0x578fdfe3,0x3ac372e6]];var o={pbox:[],sbox:[]};function a(e,t){let r=e.sbox[0][t>>24&255]+e.sbox[1][t>>16&255];return r^=e.sbox[2][t>>8&255],r+=e.sbox[3][255&t]}function s(e,t,r){let i,n=t,o=r;for(let t=0;t<16;++t)n^=e.pbox[t],o=a(e,n)^o,i=n,n=o,o=i;return i=n,n=o,o=i^e.pbox[16],{left:n^=e.pbox[17],right:o}}var l=t.Blowfish=e.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key;!function(e,t,i){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=n[t][r]}let o=0;for(let n=0;n<18;n++)e.pbox[n]=r[n]^t[o],++o>=i&&(o=0);let a=0,l=0,c=0;for(let t=0;t<18;t+=2)a=(c=s(e,a,l)).left,l=c.right,e.pbox[t]=a,e.pbox[t+1]=l;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)a=(c=s(e,a,l)).left,l=c.right,e.sbox[t][r]=a,e.sbox[t][r+1]=l}
884(o,e.words,e.sigBytes/4)}},encryptBlock:function(e,t){var r=s(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=function(e,t,r){let i,n=t,o=r;for(let t=17;t>1;--t)n^=e.pbox[t],o=a(e,n)^o,i=n,n=o,o=i;return i=n,n=o,o=i^e.pbox[1],{left:n^=e.pbox[0],right:o}}(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});i.Blowfish=e._createHelper(l)}(),t.exports=i.Blowfish},464965,(e,t,r)=>{var i;e.e,i=e.r(563478),e.r(601601),e.r(666327),e.r(160654),e.r(499512),e.r(238434),e.r(506626),e.r(310698),e.r(630377),e.r(410021),e.r(465836),e.r(181270),e.r(334125),e.r(566273),e.r(278001),e.r(373594),e.r(903112),e.r(433255),e.r(502358),e.r(413257),e.r(121961),e.r(925274),e.r(208896),e.r(203110),e.r(928542),e.r(594448),e.r(825386),e.r(624786),e.r(57777),e.r(735448),e.r(444863),e.r(978467),e.r(450802),e.r(835852),e.r(964459),t.exports=i}]);

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