From fc7acd5e21a4583fb397d1f450474ccbd088de60 Mon Sep 17 00:00:00 2001 From: bruce-riley <96066700+bruce-riley@users.noreply.github.com> Date: Wed, 18 Dec 2024 18:18:34 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20wormhole?= =?UTF-8?q?-foundation/wormhole-dashboard@3fa29c37ec193d98acf0dcc257a1f51d?= =?UTF-8?q?d04912ab=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-GWPjvca6.js => index-Dg8ePreJ.js} | 60 +++++++++---------- index.html | 2 +- 2 files changed, 31 insertions(+), 31 deletions(-) rename assets/{index-GWPjvca6.js => index-Dg8ePreJ.js} (55%) diff --git a/assets/index-GWPjvca6.js b/assets/index-Dg8ePreJ.js similarity index 55% rename from assets/index-GWPjvca6.js rename to assets/index-Dg8ePreJ.js index 2ae0d81a..0df0dd65 100644 --- a/assets/index-GWPjvca6.js +++ b/assets/index-Dg8ePreJ.js @@ -1,4 +1,4 @@ -var pr=Object.defineProperty;var hr=(s,j,$)=>j in s?pr(s,j,{enumerable:!0,configurable:!0,writable:!0,value:$}):s[j]=$;var Mn=(s,j,$)=>(hr(s,typeof j!="symbol"?j+"":j,$),$);function _mergeNamespaces(s,j){for(var $=0;$_e[et]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const j=document.createElement("link").relList;if(j&&j.supports&&j.supports("modulepreload"))return;for(const et of document.querySelectorAll('link[rel="modulepreload"]'))_e(et);new MutationObserver(et=>{for(const tt of et)if(tt.type==="childList")for(const nt of tt.addedNodes)nt.tagName==="LINK"&&nt.rel==="modulepreload"&&_e(nt)}).observe(document,{childList:!0,subtree:!0});function $(et){const tt={};return et.integrity&&(tt.integrity=et.integrity),et.referrerPolicy&&(tt.referrerPolicy=et.referrerPolicy),et.crossOrigin==="use-credentials"?tt.credentials="include":et.crossOrigin==="anonymous"?tt.credentials="omit":tt.credentials="same-origin",tt}function _e(et){if(et.ep)return;et.ep=!0;const tt=$(et);fetch(et.href,tt)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function getAugmentedNamespace(s){if(s.__esModule)return s;var j=s.default;if(typeof j=="function"){var $=function _e(){return this instanceof _e?Reflect.construct(j,arguments,this.constructor):j.apply(this,arguments)};$.prototype=j.prototype}else $={};return Object.defineProperty($,"__esModule",{value:!0}),Object.keys(s).forEach(function(_e){var et=Object.getOwnPropertyDescriptor(s,_e);Object.defineProperty($,_e,et.get?et:{enumerable:!0,get:function(){return s[_e]}})}),$}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** +var pr=Object.defineProperty;var gr=(s,j,$)=>j in s?pr(s,j,{enumerable:!0,configurable:!0,writable:!0,value:$}):s[j]=$;var Mn=(s,j,$)=>(gr(s,typeof j!="symbol"?j+"":j,$),$);function _mergeNamespaces(s,j){for(var $=0;$_e[et]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const j=document.createElement("link").relList;if(j&&j.supports&&j.supports("modulepreload"))return;for(const et of document.querySelectorAll('link[rel="modulepreload"]'))_e(et);new MutationObserver(et=>{for(const tt of et)if(tt.type==="childList")for(const nt of tt.addedNodes)nt.tagName==="LINK"&&nt.rel==="modulepreload"&&_e(nt)}).observe(document,{childList:!0,subtree:!0});function $(et){const tt={};return et.integrity&&(tt.integrity=et.integrity),et.referrerPolicy&&(tt.referrerPolicy=et.referrerPolicy),et.crossOrigin==="use-credentials"?tt.credentials="include":et.crossOrigin==="anonymous"?tt.credentials="omit":tt.credentials="same-origin",tt}function _e(et){if(et.ep)return;et.ep=!0;const tt=$(et);fetch(et.href,tt)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function getAugmentedNamespace(s){if(s.__esModule)return s;var j=s.default;if(typeof j=="function"){var $=function _e(){return this instanceof _e?Reflect.construct(j,arguments,this.constructor):j.apply(this,arguments)};$.prototype=j.prototype}else $={};return Object.defineProperty($,"__esModule",{value:!0}),Object.keys(s).forEach(function(_e){var et=Object.getOwnPropertyDescriptor(s,_e);Object.defineProperty($,_e,et.get?et:{enumerable:!0,get:function(){return s[_e]}})}),$}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** * @license React * react.production.min.js * @@ -14,12 +14,12 @@ var pr=Object.defineProperty;var hr=(s,j,$)=>j in s?pr(s,j,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var f$4=reactExports,k$3=Symbol.for("react.element"),l$3=Symbol.for("react.fragment"),m$4=Object.prototype.hasOwnProperty,n$3=f$4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$4={key:!0,ref:!0,__self:!0,__source:!0};function q$3(s,j,$){var _e,et={},tt=null,nt=null;$!==void 0&&(tt=""+$),j.key!==void 0&&(tt=""+j.key),j.ref!==void 0&&(nt=j.ref);for(_e in j)m$4.call(j,_e)&&!p$4.hasOwnProperty(_e)&&(et[_e]=j[_e]);if(s&&s.defaultProps)for(_e in j=s.defaultProps,j)et[_e]===void 0&&(et[_e]=j[_e]);return{$$typeof:k$3,type:s,key:tt,ref:nt,props:et,_owner:n$3.current}}reactJsxRuntime_production_min.Fragment=l$3;reactJsxRuntime_production_min.jsx=q$3;reactJsxRuntime_production_min.jsxs=q$3;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,buffer={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$2=0,len=code.length;i$20)throw new Error("Invalid string. Length must be a multiple of 4");var $=s.indexOf("=");$===-1&&($=j);var _e=$===j?0:4-$%4;return[$,_e]}function byteLength(s){var j=getLens(s),$=j[0],_e=j[1];return($+_e)*3/4-_e}function _byteLength(s,j,$){return(j+$)*3/4-$}function toByteArray(s){var j,$=getLens(s),_e=$[0],et=$[1],tt=new Arr(_byteLength(s,_e,et)),nt=0,rt=et>0?_e-4:_e,ot;for(ot=0;ot>16&255,tt[nt++]=j>>8&255,tt[nt++]=j&255;return et===2&&(j=revLookup[s.charCodeAt(ot)]<<2|revLookup[s.charCodeAt(ot+1)]>>4,tt[nt++]=j&255),et===1&&(j=revLookup[s.charCodeAt(ot)]<<10|revLookup[s.charCodeAt(ot+1)]<<4|revLookup[s.charCodeAt(ot+2)]>>2,tt[nt++]=j>>8&255,tt[nt++]=j&255),tt}function tripletToBase64(s){return lookup[s>>18&63]+lookup[s>>12&63]+lookup[s>>6&63]+lookup[s&63]}function encodeChunk(s,j,$){for(var _e,et=[],tt=j;tt<$;tt+=3)_e=(s[tt]<<16&16711680)+(s[tt+1]<<8&65280)+(s[tt+2]&255),et.push(tripletToBase64(_e));return et.join("")}function fromByteArray(s){for(var j,$=s.length,_e=$%3,et=[],tt=16383,nt=0,rt=$-_e;ntrt?rt:nt+tt));return _e===1?(j=s[$-1],et.push(lookup[j>>2]+lookup[j<<4&63]+"==")):_e===2&&(j=(s[$-2]<<8)+s[$-1],et.push(lookup[j>>10]+lookup[j>>4&63]+lookup[j<<2&63]+"=")),et.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(s,j,$,_e,et){var tt,nt,rt=et*8-_e-1,ot=(1<>1,st=-7,at=$?et-1:0,ct=$?-1:1,lt=s[j+at];for(at+=ct,tt=lt&(1<<-st)-1,lt>>=-st,st+=rt;st>0;tt=tt*256+s[j+at],at+=ct,st-=8);for(nt=tt&(1<<-st)-1,tt>>=-st,st+=_e;st>0;nt=nt*256+s[j+at],at+=ct,st-=8);if(tt===0)tt=1-it;else{if(tt===ot)return nt?NaN:(lt?-1:1)*(1/0);nt=nt+Math.pow(2,_e),tt=tt-it}return(lt?-1:1)*nt*Math.pow(2,tt-_e)};ieee754.write=function(s,j,$,_e,et,tt){var nt,rt,ot,it=tt*8-et-1,st=(1<>1,ct=et===23?Math.pow(2,-24)-Math.pow(2,-77):0,lt=_e?0:tt-1,dt=_e?1:-1,pt=j<0||j===0&&1/j<0?1:0;for(j=Math.abs(j),isNaN(j)||j===1/0?(rt=isNaN(j)?1:0,nt=st):(nt=Math.floor(Math.log(j)/Math.LN2),j*(ot=Math.pow(2,-nt))<1&&(nt--,ot*=2),nt+at>=1?j+=ct/ot:j+=ct*Math.pow(2,1-at),j*ot>=2&&(nt++,ot/=2),nt+at>=st?(rt=0,nt=st):nt+at>=1?(rt=(j*ot-1)*Math.pow(2,et),nt=nt+at):(rt=j*Math.pow(2,at-1)*Math.pow(2,et),nt=0));et>=8;s[$+lt]=rt&255,lt+=dt,rt/=256,et-=8);for(nt=nt<0;s[$+lt]=nt&255,lt+=dt,nt/=256,it-=8);s[$+lt-dt]|=pt*128};/*! + */var f$4=reactExports,k$3=Symbol.for("react.element"),l$3=Symbol.for("react.fragment"),m$4=Object.prototype.hasOwnProperty,n$3=f$4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$4={key:!0,ref:!0,__self:!0,__source:!0};function q$3(s,j,$){var _e,et={},tt=null,nt=null;$!==void 0&&(tt=""+$),j.key!==void 0&&(tt=""+j.key),j.ref!==void 0&&(nt=j.ref);for(_e in j)m$4.call(j,_e)&&!p$4.hasOwnProperty(_e)&&(et[_e]=j[_e]);if(s&&s.defaultProps)for(_e in j=s.defaultProps,j)et[_e]===void 0&&(et[_e]=j[_e]);return{$$typeof:k$3,type:s,key:tt,ref:nt,props:et,_owner:n$3.current}}reactJsxRuntime_production_min.Fragment=l$3;reactJsxRuntime_production_min.jsx=q$3;reactJsxRuntime_production_min.jsxs=q$3;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,buffer={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$2=0,len=code.length;i$20)throw new Error("Invalid string. Length must be a multiple of 4");var $=s.indexOf("=");$===-1&&($=j);var _e=$===j?0:4-$%4;return[$,_e]}function byteLength(s){var j=getLens(s),$=j[0],_e=j[1];return($+_e)*3/4-_e}function _byteLength(s,j,$){return(j+$)*3/4-$}function toByteArray(s){var j,$=getLens(s),_e=$[0],et=$[1],tt=new Arr(_byteLength(s,_e,et)),nt=0,rt=et>0?_e-4:_e,ot;for(ot=0;ot>16&255,tt[nt++]=j>>8&255,tt[nt++]=j&255;return et===2&&(j=revLookup[s.charCodeAt(ot)]<<2|revLookup[s.charCodeAt(ot+1)]>>4,tt[nt++]=j&255),et===1&&(j=revLookup[s.charCodeAt(ot)]<<10|revLookup[s.charCodeAt(ot+1)]<<4|revLookup[s.charCodeAt(ot+2)]>>2,tt[nt++]=j>>8&255,tt[nt++]=j&255),tt}function tripletToBase64(s){return lookup[s>>18&63]+lookup[s>>12&63]+lookup[s>>6&63]+lookup[s&63]}function encodeChunk(s,j,$){for(var _e,et=[],tt=j;tt<$;tt+=3)_e=(s[tt]<<16&16711680)+(s[tt+1]<<8&65280)+(s[tt+2]&255),et.push(tripletToBase64(_e));return et.join("")}function fromByteArray(s){for(var j,$=s.length,_e=$%3,et=[],tt=16383,nt=0,rt=$-_e;ntrt?rt:nt+tt));return _e===1?(j=s[$-1],et.push(lookup[j>>2]+lookup[j<<4&63]+"==")):_e===2&&(j=(s[$-2]<<8)+s[$-1],et.push(lookup[j>>10]+lookup[j>>4&63]+lookup[j<<2&63]+"=")),et.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(s,j,$,_e,et){var tt,nt,rt=et*8-_e-1,ot=(1<>1,st=-7,at=$?et-1:0,ct=$?-1:1,lt=s[j+at];for(at+=ct,tt=lt&(1<<-st)-1,lt>>=-st,st+=rt;st>0;tt=tt*256+s[j+at],at+=ct,st-=8);for(nt=tt&(1<<-st)-1,tt>>=-st,st+=_e;st>0;nt=nt*256+s[j+at],at+=ct,st-=8);if(tt===0)tt=1-it;else{if(tt===ot)return nt?NaN:(lt?-1:1)*(1/0);nt=nt+Math.pow(2,_e),tt=tt-it}return(lt?-1:1)*nt*Math.pow(2,tt-_e)};ieee754.write=function(s,j,$,_e,et,tt){var nt,rt,ot,it=tt*8-et-1,st=(1<>1,ct=et===23?Math.pow(2,-24)-Math.pow(2,-77):0,lt=_e?0:tt-1,dt=_e?1:-1,ft=j<0||j===0&&1/j<0?1:0;for(j=Math.abs(j),isNaN(j)||j===1/0?(rt=isNaN(j)?1:0,nt=st):(nt=Math.floor(Math.log(j)/Math.LN2),j*(ot=Math.pow(2,-nt))<1&&(nt--,ot*=2),nt+at>=1?j+=ct/ot:j+=ct*Math.pow(2,1-at),j*ot>=2&&(nt++,ot/=2),nt+at>=st?(rt=0,nt=st):nt+at>=1?(rt=(j*ot-1)*Math.pow(2,et),nt=nt+at):(rt=j*Math.pow(2,at-1)*Math.pow(2,et),nt=0));et>=8;s[$+lt]=rt&255,lt+=dt,rt/=256,et-=8);for(nt=nt<0;s[$+lt]=nt&255,lt+=dt,nt/=256,it-=8);s[$+lt-dt]|=ft*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(s){const j=base64Js,$=ieee754,_e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;s.Buffer=rt,s.SlowBuffer=gt,s.INSPECT_MAX_BYTES=50;const et=2147483647;s.kMaxLength=et,rt.TYPED_ARRAY_SUPPORT=tt(),!rt.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function tt(){try{const Rt=new Uint8Array(1),Ct={foo:function(){return 42}};return Object.setPrototypeOf(Ct,Uint8Array.prototype),Object.setPrototypeOf(Rt,Ct),Rt.foo()===42}catch{return!1}}Object.defineProperty(rt.prototype,"parent",{enumerable:!0,get:function(){if(rt.isBuffer(this))return this.buffer}}),Object.defineProperty(rt.prototype,"offset",{enumerable:!0,get:function(){if(rt.isBuffer(this))return this.byteOffset}});function nt(Rt){if(Rt>et)throw new RangeError('The value "'+Rt+'" is invalid for option "size"');const Ct=new Uint8Array(Rt);return Object.setPrototypeOf(Ct,rt.prototype),Ct}function rt(Rt,Ct,It){if(typeof Rt=="number"){if(typeof Ct=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return at(Rt)}return ot(Rt,Ct,It)}rt.poolSize=8192;function ot(Rt,Ct,It){if(typeof Rt=="string")return ct(Rt,Ct);if(ArrayBuffer.isView(Rt))return dt(Rt);if(Rt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Rt);if(gn(Rt,ArrayBuffer)||Rt&&gn(Rt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gn(Rt,SharedArrayBuffer)||Rt&&gn(Rt.buffer,SharedArrayBuffer)))return pt(Rt,Ct,It);if(typeof Rt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Bt=Rt.valueOf&&Rt.valueOf();if(Bt!=null&&Bt!==Rt)return rt.from(Bt,Ct,It);const Wt=ht(Rt);if(Wt)return Wt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Rt[Symbol.toPrimitive]=="function")return rt.from(Rt[Symbol.toPrimitive]("string"),Ct,It);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Rt)}rt.from=function(Rt,Ct,It){return ot(Rt,Ct,It)},Object.setPrototypeOf(rt.prototype,Uint8Array.prototype),Object.setPrototypeOf(rt,Uint8Array);function it(Rt){if(typeof Rt!="number")throw new TypeError('"size" argument must be of type number');if(Rt<0)throw new RangeError('The value "'+Rt+'" is invalid for option "size"')}function st(Rt,Ct,It){return it(Rt),Rt<=0?nt(Rt):Ct!==void 0?typeof It=="string"?nt(Rt).fill(Ct,It):nt(Rt).fill(Ct):nt(Rt)}rt.alloc=function(Rt,Ct,It){return st(Rt,Ct,It)};function at(Rt){return it(Rt),nt(Rt<0?0:yt(Rt)|0)}rt.allocUnsafe=function(Rt){return at(Rt)},rt.allocUnsafeSlow=function(Rt){return at(Rt)};function ct(Rt,Ct){if((typeof Ct!="string"||Ct==="")&&(Ct="utf8"),!rt.isEncoding(Ct))throw new TypeError("Unknown encoding: "+Ct);const It=ft(Rt,Ct)|0;let Bt=nt(It);const Wt=Bt.write(Rt,Ct);return Wt!==It&&(Bt=Bt.slice(0,Wt)),Bt}function lt(Rt){const Ct=Rt.length<0?0:yt(Rt.length)|0,It=nt(Ct);for(let Bt=0;Bt=et)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+et.toString(16)+" bytes");return Rt|0}function gt(Rt){return+Rt!=Rt&&(Rt=0),rt.alloc(+Rt)}rt.isBuffer=function(Ct){return Ct!=null&&Ct._isBuffer===!0&&Ct!==rt.prototype},rt.compare=function(Ct,It){if(gn(Ct,Uint8Array)&&(Ct=rt.from(Ct,Ct.offset,Ct.byteLength)),gn(It,Uint8Array)&&(It=rt.from(It,It.offset,It.byteLength)),!rt.isBuffer(Ct)||!rt.isBuffer(It))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ct===It)return 0;let Bt=Ct.length,Wt=It.length;for(let Vt=0,Yt=Math.min(Bt,Wt);VtWt.length?(rt.isBuffer(Yt)||(Yt=rt.from(Yt)),Yt.copy(Wt,Vt)):Uint8Array.prototype.set.call(Wt,Yt,Vt);else if(rt.isBuffer(Yt))Yt.copy(Wt,Vt);else throw new TypeError('"list" argument must be an Array of Buffers');Vt+=Yt.length}return Wt};function ft(Rt,Ct){if(rt.isBuffer(Rt))return Rt.length;if(ArrayBuffer.isView(Rt)||gn(Rt,ArrayBuffer))return Rt.byteLength;if(typeof Rt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Rt);const It=Rt.length,Bt=arguments.length>2&&arguments[2]===!0;if(!Bt&&It===0)return 0;let Wt=!1;for(;;)switch(Ct){case"ascii":case"latin1":case"binary":return It;case"utf8":case"utf-8":return nn(Rt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It*2;case"hex":return It>>>1;case"base64":return on(Rt).length;default:if(Wt)return Bt?-1:nn(Rt).length;Ct=(""+Ct).toLowerCase(),Wt=!0}}rt.byteLength=ft;function xt(Rt,Ct,It){let Bt=!1;if((Ct===void 0||Ct<0)&&(Ct=0),Ct>this.length||((It===void 0||It>this.length)&&(It=this.length),It<=0)||(It>>>=0,Ct>>>=0,It<=Ct))return"";for(Rt||(Rt="utf8");;)switch(Rt){case"hex":return Tt(this,Ct,It);case"utf8":case"utf-8":return mt(this,Ct,It);case"ascii":return vt(this,Ct,It);case"latin1":case"binary":return At(this,Ct,It);case"base64":return Nt(this,Ct,It);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dt(this,Ct,It);default:if(Bt)throw new TypeError("Unknown encoding: "+Rt);Rt=(Rt+"").toLowerCase(),Bt=!0}}rt.prototype._isBuffer=!0;function Mt(Rt,Ct,It){const Bt=Rt[Ct];Rt[Ct]=Rt[It],Rt[It]=Bt}rt.prototype.swap16=function(){const Ct=this.length;if(Ct%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let It=0;ItIt&&(Ct+=" ... "),""},_e&&(rt.prototype[_e]=rt.prototype.inspect),rt.prototype.compare=function(Ct,It,Bt,Wt,Vt){if(gn(Ct,Uint8Array)&&(Ct=rt.from(Ct,Ct.offset,Ct.byteLength)),!rt.isBuffer(Ct))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ct);if(It===void 0&&(It=0),Bt===void 0&&(Bt=Ct?Ct.length:0),Wt===void 0&&(Wt=0),Vt===void 0&&(Vt=this.length),It<0||Bt>Ct.length||Wt<0||Vt>this.length)throw new RangeError("out of range index");if(Wt>=Vt&&It>=Bt)return 0;if(Wt>=Vt)return-1;if(It>=Bt)return 1;if(It>>>=0,Bt>>>=0,Wt>>>=0,Vt>>>=0,this===Ct)return 0;let Yt=Vt-Wt,cn=Bt-It;const pn=Math.min(Yt,cn),un=this.slice(Wt,Vt),En=Ct.slice(It,Bt);for(let xn=0;xn2147483647?It=2147483647:It<-2147483648&&(It=-2147483648),It=+It,fn(It)&&(It=Wt?0:Rt.length-1),It<0&&(It=Rt.length+It),It>=Rt.length){if(Wt)return-1;It=Rt.length-1}else if(It<0)if(Wt)It=0;else return-1;if(typeof Ct=="string"&&(Ct=rt.from(Ct,Bt)),rt.isBuffer(Ct))return Ct.length===0?-1:wt(Rt,Ct,It,Bt,Wt);if(typeof Ct=="number")return Ct=Ct&255,typeof Uint8Array.prototype.indexOf=="function"?Wt?Uint8Array.prototype.indexOf.call(Rt,Ct,It):Uint8Array.prototype.lastIndexOf.call(Rt,Ct,It):wt(Rt,[Ct],It,Bt,Wt);throw new TypeError("val must be string, number or Buffer")}function wt(Rt,Ct,It,Bt,Wt){let Vt=1,Yt=Rt.length,cn=Ct.length;if(Bt!==void 0&&(Bt=String(Bt).toLowerCase(),Bt==="ucs2"||Bt==="ucs-2"||Bt==="utf16le"||Bt==="utf-16le")){if(Rt.length<2||Ct.length<2)return-1;Vt=2,Yt/=2,cn/=2,It/=2}function pn(En,xn){return Vt===1?En[xn]:En.readUInt16BE(xn*Vt)}let un;if(Wt){let En=-1;for(un=It;unYt&&(It=Yt-cn),un=It;un>=0;un--){let En=!0;for(let xn=0;xnWt&&(Bt=Wt)):Bt=Wt;const Vt=Ct.length;Bt>Vt/2&&(Bt=Vt/2);let Yt;for(Yt=0;Yt>>0,isFinite(Bt)?(Bt=Bt>>>0,Wt===void 0&&(Wt="utf8")):(Wt=Bt,Bt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Vt=this.length-It;if((Bt===void 0||Bt>Vt)&&(Bt=Vt),Ct.length>0&&(Bt<0||It<0)||It>this.length)throw new RangeError("Attempt to write outside buffer bounds");Wt||(Wt="utf8");let Yt=!1;for(;;)switch(Wt){case"hex":return $t(this,Ct,It,Bt);case"utf8":case"utf-8":return zt(this,Ct,It,Bt);case"ascii":case"latin1":case"binary":return Ot(this,Ct,It,Bt);case"base64":return Pt(this,Ct,It,Bt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,Ct,It,Bt);default:if(Yt)throw new TypeError("Unknown encoding: "+Wt);Wt=(""+Wt).toLowerCase(),Yt=!0}},rt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Nt(Rt,Ct,It){return Ct===0&&It===Rt.length?j.fromByteArray(Rt):j.fromByteArray(Rt.slice(Ct,It))}function mt(Rt,Ct,It){It=Math.min(Rt.length,It);const Bt=[];let Wt=Ct;for(;Wt239?4:Vt>223?3:Vt>191?2:1;if(Wt+cn<=It){let pn,un,En,xn;switch(cn){case 1:Vt<128&&(Yt=Vt);break;case 2:pn=Rt[Wt+1],(pn&192)===128&&(xn=(Vt&31)<<6|pn&63,xn>127&&(Yt=xn));break;case 3:pn=Rt[Wt+1],un=Rt[Wt+2],(pn&192)===128&&(un&192)===128&&(xn=(Vt&15)<<12|(pn&63)<<6|un&63,xn>2047&&(xn<55296||xn>57343)&&(Yt=xn));break;case 4:pn=Rt[Wt+1],un=Rt[Wt+2],En=Rt[Wt+3],(pn&192)===128&&(un&192)===128&&(En&192)===128&&(xn=(Vt&15)<<18|(pn&63)<<12|(un&63)<<6|En&63,xn>65535&&xn<1114112&&(Yt=xn))}}Yt===null?(Yt=65533,cn=1):Yt>65535&&(Yt-=65536,Bt.push(Yt>>>10&1023|55296),Yt=56320|Yt&1023),Bt.push(Yt),Wt+=cn}return St(Bt)}const bt=4096;function St(Rt){const Ct=Rt.length;if(Ct<=bt)return String.fromCharCode.apply(String,Rt);let It="",Bt=0;for(;BtBt)&&(It=Bt);let Wt="";for(let Vt=Ct;VtBt&&(Ct=Bt),It<0?(It+=Bt,It<0&&(It=0)):It>Bt&&(It=Bt),ItIt)throw new RangeError("Trying to access beyond buffer length")}rt.prototype.readUintLE=rt.prototype.readUIntLE=function(Ct,It,Bt){Ct=Ct>>>0,It=It>>>0,Bt||Lt(Ct,It,this.length);let Wt=this[Ct],Vt=1,Yt=0;for(;++Yt>>0,It=It>>>0,Bt||Lt(Ct,It,this.length);let Wt=this[Ct+--It],Vt=1;for(;It>0&&(Vt*=256);)Wt+=this[Ct+--It]*Vt;return Wt},rt.prototype.readUint8=rt.prototype.readUInt8=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,1,this.length),this[Ct]},rt.prototype.readUint16LE=rt.prototype.readUInt16LE=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,2,this.length),this[Ct]|this[Ct+1]<<8},rt.prototype.readUint16BE=rt.prototype.readUInt16BE=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,2,this.length),this[Ct]<<8|this[Ct+1]},rt.prototype.readUint32LE=rt.prototype.readUInt32LE=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,4,this.length),(this[Ct]|this[Ct+1]<<8|this[Ct+2]<<16)+this[Ct+3]*16777216},rt.prototype.readUint32BE=rt.prototype.readUInt32BE=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,4,this.length),this[Ct]*16777216+(this[Ct+1]<<16|this[Ct+2]<<8|this[Ct+3])},rt.prototype.readBigUInt64LE=yn(function(Ct){Ct=Ct>>>0,Qt(Ct,"offset");const It=this[Ct],Bt=this[Ct+7];(It===void 0||Bt===void 0)&&qt(Ct,this.length-8);const Wt=It+this[++Ct]*2**8+this[++Ct]*2**16+this[++Ct]*2**24,Vt=this[++Ct]+this[++Ct]*2**8+this[++Ct]*2**16+Bt*2**24;return BigInt(Wt)+(BigInt(Vt)<>>0,Qt(Ct,"offset");const It=this[Ct],Bt=this[Ct+7];(It===void 0||Bt===void 0)&&qt(Ct,this.length-8);const Wt=It*2**24+this[++Ct]*2**16+this[++Ct]*2**8+this[++Ct],Vt=this[++Ct]*2**24+this[++Ct]*2**16+this[++Ct]*2**8+Bt;return(BigInt(Wt)<>>0,It=It>>>0,Bt||Lt(Ct,It,this.length);let Wt=this[Ct],Vt=1,Yt=0;for(;++Yt=Vt&&(Wt-=Math.pow(2,8*It)),Wt},rt.prototype.readIntBE=function(Ct,It,Bt){Ct=Ct>>>0,It=It>>>0,Bt||Lt(Ct,It,this.length);let Wt=It,Vt=1,Yt=this[Ct+--Wt];for(;Wt>0&&(Vt*=256);)Yt+=this[Ct+--Wt]*Vt;return Vt*=128,Yt>=Vt&&(Yt-=Math.pow(2,8*It)),Yt},rt.prototype.readInt8=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,1,this.length),this[Ct]&128?(255-this[Ct]+1)*-1:this[Ct]},rt.prototype.readInt16LE=function(Ct,It){Ct=Ct>>>0,It||Lt(Ct,2,this.length);const Bt=this[Ct]|this[Ct+1]<<8;return Bt&32768?Bt|4294901760:Bt},rt.prototype.readInt16BE=function(Ct,It){Ct=Ct>>>0,It||Lt(Ct,2,this.length);const Bt=this[Ct+1]|this[Ct]<<8;return Bt&32768?Bt|4294901760:Bt},rt.prototype.readInt32LE=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,4,this.length),this[Ct]|this[Ct+1]<<8|this[Ct+2]<<16|this[Ct+3]<<24},rt.prototype.readInt32BE=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,4,this.length),this[Ct]<<24|this[Ct+1]<<16|this[Ct+2]<<8|this[Ct+3]},rt.prototype.readBigInt64LE=yn(function(Ct){Ct=Ct>>>0,Qt(Ct,"offset");const It=this[Ct],Bt=this[Ct+7];(It===void 0||Bt===void 0)&&qt(Ct,this.length-8);const Wt=this[Ct+4]+this[Ct+5]*2**8+this[Ct+6]*2**16+(Bt<<24);return(BigInt(Wt)<>>0,Qt(Ct,"offset");const It=this[Ct],Bt=this[Ct+7];(It===void 0||Bt===void 0)&&qt(Ct,this.length-8);const Wt=(It<<24)+this[++Ct]*2**16+this[++Ct]*2**8+this[++Ct];return(BigInt(Wt)<>>0,It||Lt(Ct,4,this.length),$.read(this,Ct,!0,23,4)},rt.prototype.readFloatBE=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,4,this.length),$.read(this,Ct,!1,23,4)},rt.prototype.readDoubleLE=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,8,this.length),$.read(this,Ct,!0,52,8)},rt.prototype.readDoubleBE=function(Ct,It){return Ct=Ct>>>0,It||Lt(Ct,8,this.length),$.read(this,Ct,!1,52,8)};function Et(Rt,Ct,It,Bt,Wt,Vt){if(!rt.isBuffer(Rt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ct>Wt||CtRt.length)throw new RangeError("Index out of range")}rt.prototype.writeUintLE=rt.prototype.writeUIntLE=function(Ct,It,Bt,Wt){if(Ct=+Ct,It=It>>>0,Bt=Bt>>>0,!Wt){const cn=Math.pow(2,8*Bt)-1;Et(this,Ct,It,Bt,cn,0)}let Vt=1,Yt=0;for(this[It]=Ct&255;++Yt>>0,Bt=Bt>>>0,!Wt){const cn=Math.pow(2,8*Bt)-1;Et(this,Ct,It,Bt,cn,0)}let Vt=Bt-1,Yt=1;for(this[It+Vt]=Ct&255;--Vt>=0&&(Yt*=256);)this[It+Vt]=Ct/Yt&255;return It+Bt},rt.prototype.writeUint8=rt.prototype.writeUInt8=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,1,255,0),this[It]=Ct&255,It+1},rt.prototype.writeUint16LE=rt.prototype.writeUInt16LE=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,2,65535,0),this[It]=Ct&255,this[It+1]=Ct>>>8,It+2},rt.prototype.writeUint16BE=rt.prototype.writeUInt16BE=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,2,65535,0),this[It]=Ct>>>8,this[It+1]=Ct&255,It+2},rt.prototype.writeUint32LE=rt.prototype.writeUInt32LE=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,4,4294967295,0),this[It+3]=Ct>>>24,this[It+2]=Ct>>>16,this[It+1]=Ct>>>8,this[It]=Ct&255,It+4},rt.prototype.writeUint32BE=rt.prototype.writeUInt32BE=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,4,4294967295,0),this[It]=Ct>>>24,this[It+1]=Ct>>>16,this[It+2]=Ct>>>8,this[It+3]=Ct&255,It+4};function kt(Rt,Ct,It,Bt,Wt){Zt(Ct,Bt,Wt,Rt,It,7);let Vt=Number(Ct&BigInt(4294967295));Rt[It++]=Vt,Vt=Vt>>8,Rt[It++]=Vt,Vt=Vt>>8,Rt[It++]=Vt,Vt=Vt>>8,Rt[It++]=Vt;let Yt=Number(Ct>>BigInt(32)&BigInt(4294967295));return Rt[It++]=Yt,Yt=Yt>>8,Rt[It++]=Yt,Yt=Yt>>8,Rt[It++]=Yt,Yt=Yt>>8,Rt[It++]=Yt,It}function Ut(Rt,Ct,It,Bt,Wt){Zt(Ct,Bt,Wt,Rt,It,7);let Vt=Number(Ct&BigInt(4294967295));Rt[It+7]=Vt,Vt=Vt>>8,Rt[It+6]=Vt,Vt=Vt>>8,Rt[It+5]=Vt,Vt=Vt>>8,Rt[It+4]=Vt;let Yt=Number(Ct>>BigInt(32)&BigInt(4294967295));return Rt[It+3]=Yt,Yt=Yt>>8,Rt[It+2]=Yt,Yt=Yt>>8,Rt[It+1]=Yt,Yt=Yt>>8,Rt[It]=Yt,It+8}rt.prototype.writeBigUInt64LE=yn(function(Ct,It=0){return kt(this,Ct,It,BigInt(0),BigInt("0xffffffffffffffff"))}),rt.prototype.writeBigUInt64BE=yn(function(Ct,It=0){return Ut(this,Ct,It,BigInt(0),BigInt("0xffffffffffffffff"))}),rt.prototype.writeIntLE=function(Ct,It,Bt,Wt){if(Ct=+Ct,It=It>>>0,!Wt){const pn=Math.pow(2,8*Bt-1);Et(this,Ct,It,Bt,pn-1,-pn)}let Vt=0,Yt=1,cn=0;for(this[It]=Ct&255;++Vt>0)-cn&255;return It+Bt},rt.prototype.writeIntBE=function(Ct,It,Bt,Wt){if(Ct=+Ct,It=It>>>0,!Wt){const pn=Math.pow(2,8*Bt-1);Et(this,Ct,It,Bt,pn-1,-pn)}let Vt=Bt-1,Yt=1,cn=0;for(this[It+Vt]=Ct&255;--Vt>=0&&(Yt*=256);)Ct<0&&cn===0&&this[It+Vt+1]!==0&&(cn=1),this[It+Vt]=(Ct/Yt>>0)-cn&255;return It+Bt},rt.prototype.writeInt8=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,1,127,-128),Ct<0&&(Ct=255+Ct+1),this[It]=Ct&255,It+1},rt.prototype.writeInt16LE=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,2,32767,-32768),this[It]=Ct&255,this[It+1]=Ct>>>8,It+2},rt.prototype.writeInt16BE=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,2,32767,-32768),this[It]=Ct>>>8,this[It+1]=Ct&255,It+2},rt.prototype.writeInt32LE=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,4,2147483647,-2147483648),this[It]=Ct&255,this[It+1]=Ct>>>8,this[It+2]=Ct>>>16,this[It+3]=Ct>>>24,It+4},rt.prototype.writeInt32BE=function(Ct,It,Bt){return Ct=+Ct,It=It>>>0,Bt||Et(this,Ct,It,4,2147483647,-2147483648),Ct<0&&(Ct=4294967295+Ct+1),this[It]=Ct>>>24,this[It+1]=Ct>>>16,this[It+2]=Ct>>>8,this[It+3]=Ct&255,It+4},rt.prototype.writeBigInt64LE=yn(function(Ct,It=0){return kt(this,Ct,It,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),rt.prototype.writeBigInt64BE=yn(function(Ct,It=0){return Ut(this,Ct,It,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Gt(Rt,Ct,It,Bt,Wt,Vt){if(It+Bt>Rt.length)throw new RangeError("Index out of range");if(It<0)throw new RangeError("Index out of range")}function Ht(Rt,Ct,It,Bt,Wt){return Ct=+Ct,It=It>>>0,Wt||Gt(Rt,Ct,It,4),$.write(Rt,Ct,It,Bt,23,4),It+4}rt.prototype.writeFloatLE=function(Ct,It,Bt){return Ht(this,Ct,It,!0,Bt)},rt.prototype.writeFloatBE=function(Ct,It,Bt){return Ht(this,Ct,It,!1,Bt)};function tn(Rt,Ct,It,Bt,Wt){return Ct=+Ct,It=It>>>0,Wt||Gt(Rt,Ct,It,8),$.write(Rt,Ct,It,Bt,52,8),It+8}rt.prototype.writeDoubleLE=function(Ct,It,Bt){return tn(this,Ct,It,!0,Bt)},rt.prototype.writeDoubleBE=function(Ct,It,Bt){return tn(this,Ct,It,!1,Bt)},rt.prototype.copy=function(Ct,It,Bt,Wt){if(!rt.isBuffer(Ct))throw new TypeError("argument should be a Buffer");if(Bt||(Bt=0),!Wt&&Wt!==0&&(Wt=this.length),It>=Ct.length&&(It=Ct.length),It||(It=0),Wt>0&&Wt=this.length)throw new RangeError("Index out of range");if(Wt<0)throw new RangeError("sourceEnd out of bounds");Wt>this.length&&(Wt=this.length),Ct.length-It>>0,Bt=Bt===void 0?this.length:Bt>>>0,Ct||(Ct=0);let Vt;if(typeof Ct=="number")for(Vt=It;Vt2**32?Wt=dn(String(It)):typeof It=="bigint"&&(Wt=String(It),(It>BigInt(2)**BigInt(32)||It<-(BigInt(2)**BigInt(32)))&&(Wt=dn(Wt)),Wt+="n"),Bt+=` It must be ${Ct}. Received ${Wt}`,Bt},RangeError);function dn(Rt){let Ct="",It=Rt.length;const Bt=Rt[0]==="-"?1:0;for(;It>=Bt+4;It-=3)Ct=`_${Rt.slice(It-3,It)}${Ct}`;return`${Rt.slice(0,It)}${Ct}`}function en(Rt,Ct,It){Qt(Ct,"offset"),(Rt[Ct]===void 0||Rt[Ct+It]===void 0)&&qt(Ct,Rt.length-(It+1))}function Zt(Rt,Ct,It,Bt,Wt,Vt){if(Rt>It||Rt= 0${Yt} and < 2${Yt} ** ${(Vt+1)*8}${Yt}`:cn=`>= -(2${Yt} ** ${(Vt+1)*8-1}${Yt}) and < 2 ** ${(Vt+1)*8-1}${Yt}`,new Jt.ERR_OUT_OF_RANGE("value",cn,Rt)}en(Bt,Wt,Vt)}function Qt(Rt,Ct){if(typeof Rt!="number")throw new Jt.ERR_INVALID_ARG_TYPE(Ct,"number",Rt)}function qt(Rt,Ct,It){throw Math.floor(Rt)!==Rt?(Qt(Rt,It),new Jt.ERR_OUT_OF_RANGE("offset","an integer",Rt)):Ct<0?new Jt.ERR_BUFFER_OUT_OF_BOUNDS:new Jt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Ct}`,Rt)}const Xt=/[^+/0-9A-Za-z-_]/g;function sn(Rt){if(Rt=Rt.split("=")[0],Rt=Rt.trim().replace(Xt,""),Rt.length<2)return"";for(;Rt.length%4!==0;)Rt=Rt+"=";return Rt}function nn(Rt,Ct){Ct=Ct||1/0;let It;const Bt=Rt.length;let Wt=null;const Vt=[];for(let Yt=0;Yt55295&&It<57344){if(!Wt){if(It>56319){(Ct-=3)>-1&&Vt.push(239,191,189);continue}else if(Yt+1===Bt){(Ct-=3)>-1&&Vt.push(239,191,189);continue}Wt=It;continue}if(It<56320){(Ct-=3)>-1&&Vt.push(239,191,189),Wt=It;continue}It=(Wt-55296<<10|It-56320)+65536}else Wt&&(Ct-=3)>-1&&Vt.push(239,191,189);if(Wt=null,It<128){if((Ct-=1)<0)break;Vt.push(It)}else if(It<2048){if((Ct-=2)<0)break;Vt.push(It>>6|192,It&63|128)}else if(It<65536){if((Ct-=3)<0)break;Vt.push(It>>12|224,It>>6&63|128,It&63|128)}else if(It<1114112){if((Ct-=4)<0)break;Vt.push(It>>18|240,It>>12&63|128,It>>6&63|128,It&63|128)}else throw new Error("Invalid code point")}return Vt}function rn(Rt){const Ct=[];for(let It=0;It>8,Wt=It%256,Vt.push(Wt),Vt.push(Bt);return Vt}function on(Rt){return j.toByteArray(sn(Rt))}function an(Rt,Ct,It,Bt){let Wt;for(Wt=0;Wt=Ct.length||Wt>=Rt.length);++Wt)Ct[Wt+It]=Rt[Wt];return Wt}function gn(Rt,Ct){return Rt instanceof Ct||Rt!=null&&Rt.constructor!=null&&Rt.constructor.name!=null&&Rt.constructor.name===Ct.name}function fn(Rt){return Rt!==Rt}const ln=function(){const Rt="0123456789abcdef",Ct=new Array(256);for(let It=0;It<16;++It){const Bt=It*16;for(let Wt=0;Wt<16;++Wt)Ct[Bt+Wt]=Rt[It]+Rt[Wt]}return Ct}();function yn(Rt){return typeof BigInt>"u"?mn:Rt}function mn(){throw new Error("BigInt not supported")}})(buffer);globalThis.Buffer=buffer.Buffer;var client={},reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/** + */(function(s){const j=base64Js,$=ieee754,_e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;s.Buffer=rt,s.SlowBuffer=mt,s.INSPECT_MAX_BYTES=50;const et=2147483647;s.kMaxLength=et,rt.TYPED_ARRAY_SUPPORT=tt(),!rt.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function tt(){try{const Rt=new Uint8Array(1),Et={foo:function(){return 42}};return Object.setPrototypeOf(Et,Uint8Array.prototype),Object.setPrototypeOf(Rt,Et),Rt.foo()===42}catch{return!1}}Object.defineProperty(rt.prototype,"parent",{enumerable:!0,get:function(){if(rt.isBuffer(this))return this.buffer}}),Object.defineProperty(rt.prototype,"offset",{enumerable:!0,get:function(){if(rt.isBuffer(this))return this.byteOffset}});function nt(Rt){if(Rt>et)throw new RangeError('The value "'+Rt+'" is invalid for option "size"');const Et=new Uint8Array(Rt);return Object.setPrototypeOf(Et,rt.prototype),Et}function rt(Rt,Et,It){if(typeof Rt=="number"){if(typeof Et=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return at(Rt)}return ot(Rt,Et,It)}rt.poolSize=8192;function ot(Rt,Et,It){if(typeof Rt=="string")return ct(Rt,Et);if(ArrayBuffer.isView(Rt))return dt(Rt);if(Rt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Rt);if(hn(Rt,ArrayBuffer)||Rt&&hn(Rt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(hn(Rt,SharedArrayBuffer)||Rt&&hn(Rt.buffer,SharedArrayBuffer)))return ft(Rt,Et,It);if(typeof Rt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Bt=Rt.valueOf&&Rt.valueOf();if(Bt!=null&&Bt!==Rt)return rt.from(Bt,Et,It);const Wt=gt(Rt);if(Wt)return Wt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Rt[Symbol.toPrimitive]=="function")return rt.from(Rt[Symbol.toPrimitive]("string"),Et,It);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Rt)}rt.from=function(Rt,Et,It){return ot(Rt,Et,It)},Object.setPrototypeOf(rt.prototype,Uint8Array.prototype),Object.setPrototypeOf(rt,Uint8Array);function it(Rt){if(typeof Rt!="number")throw new TypeError('"size" argument must be of type number');if(Rt<0)throw new RangeError('The value "'+Rt+'" is invalid for option "size"')}function st(Rt,Et,It){return it(Rt),Rt<=0?nt(Rt):Et!==void 0?typeof It=="string"?nt(Rt).fill(Et,It):nt(Rt).fill(Et):nt(Rt)}rt.alloc=function(Rt,Et,It){return st(Rt,Et,It)};function at(Rt){return it(Rt),nt(Rt<0?0:yt(Rt)|0)}rt.allocUnsafe=function(Rt){return at(Rt)},rt.allocUnsafeSlow=function(Rt){return at(Rt)};function ct(Rt,Et){if((typeof Et!="string"||Et==="")&&(Et="utf8"),!rt.isEncoding(Et))throw new TypeError("Unknown encoding: "+Et);const It=pt(Rt,Et)|0;let Bt=nt(It);const Wt=Bt.write(Rt,Et);return Wt!==It&&(Bt=Bt.slice(0,Wt)),Bt}function lt(Rt){const Et=Rt.length<0?0:yt(Rt.length)|0,It=nt(Et);for(let Bt=0;Bt=et)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+et.toString(16)+" bytes");return Rt|0}function mt(Rt){return+Rt!=Rt&&(Rt=0),rt.alloc(+Rt)}rt.isBuffer=function(Et){return Et!=null&&Et._isBuffer===!0&&Et!==rt.prototype},rt.compare=function(Et,It){if(hn(Et,Uint8Array)&&(Et=rt.from(Et,Et.offset,Et.byteLength)),hn(It,Uint8Array)&&(It=rt.from(It,It.offset,It.byteLength)),!rt.isBuffer(Et)||!rt.isBuffer(It))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Et===It)return 0;let Bt=Et.length,Wt=It.length;for(let Vt=0,Yt=Math.min(Bt,Wt);VtWt.length?(rt.isBuffer(Yt)||(Yt=rt.from(Yt)),Yt.copy(Wt,Vt)):Uint8Array.prototype.set.call(Wt,Yt,Vt);else if(rt.isBuffer(Yt))Yt.copy(Wt,Vt);else throw new TypeError('"list" argument must be an Array of Buffers');Vt+=Yt.length}return Wt};function pt(Rt,Et){if(rt.isBuffer(Rt))return Rt.length;if(ArrayBuffer.isView(Rt)||hn(Rt,ArrayBuffer))return Rt.byteLength;if(typeof Rt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Rt);const It=Rt.length,Bt=arguments.length>2&&arguments[2]===!0;if(!Bt&&It===0)return 0;let Wt=!1;for(;;)switch(Et){case"ascii":case"latin1":case"binary":return It;case"utf8":case"utf-8":return nn(Rt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It*2;case"hex":return It>>>1;case"base64":return on(Rt).length;default:if(Wt)return Bt?-1:nn(Rt).length;Et=(""+Et).toLowerCase(),Wt=!0}}rt.byteLength=pt;function xt(Rt,Et,It){let Bt=!1;if((Et===void 0||Et<0)&&(Et=0),Et>this.length||((It===void 0||It>this.length)&&(It=this.length),It<=0)||(It>>>=0,Et>>>=0,It<=Et))return"";for(Rt||(Rt="utf8");;)switch(Rt){case"hex":return Tt(this,Et,It);case"utf8":case"utf-8":return ht(this,Et,It);case"ascii":return vt(this,Et,It);case"latin1":case"binary":return At(this,Et,It);case"base64":return Nt(this,Et,It);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jt(this,Et,It);default:if(Bt)throw new TypeError("Unknown encoding: "+Rt);Rt=(Rt+"").toLowerCase(),Bt=!0}}rt.prototype._isBuffer=!0;function Ct(Rt,Et,It){const Bt=Rt[Et];Rt[Et]=Rt[It],Rt[It]=Bt}rt.prototype.swap16=function(){const Et=this.length;if(Et%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let It=0;ItIt&&(Et+=" ... "),""},_e&&(rt.prototype[_e]=rt.prototype.inspect),rt.prototype.compare=function(Et,It,Bt,Wt,Vt){if(hn(Et,Uint8Array)&&(Et=rt.from(Et,Et.offset,Et.byteLength)),!rt.isBuffer(Et))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Et);if(It===void 0&&(It=0),Bt===void 0&&(Bt=Et?Et.length:0),Wt===void 0&&(Wt=0),Vt===void 0&&(Vt=this.length),It<0||Bt>Et.length||Wt<0||Vt>this.length)throw new RangeError("out of range index");if(Wt>=Vt&&It>=Bt)return 0;if(Wt>=Vt)return-1;if(It>=Bt)return 1;if(It>>>=0,Bt>>>=0,Wt>>>=0,Vt>>>=0,this===Et)return 0;let Yt=Vt-Wt,cn=Bt-It;const pn=Math.min(Yt,cn),un=this.slice(Wt,Vt),En=Et.slice(It,Bt);for(let xn=0;xn2147483647?It=2147483647:It<-2147483648&&(It=-2147483648),It=+It,fn(It)&&(It=Wt?0:Rt.length-1),It<0&&(It=Rt.length+It),It>=Rt.length){if(Wt)return-1;It=Rt.length-1}else if(It<0)if(Wt)It=0;else return-1;if(typeof Et=="string"&&(Et=rt.from(Et,Bt)),rt.isBuffer(Et))return Et.length===0?-1:wt(Rt,Et,It,Bt,Wt);if(typeof Et=="number")return Et=Et&255,typeof Uint8Array.prototype.indexOf=="function"?Wt?Uint8Array.prototype.indexOf.call(Rt,Et,It):Uint8Array.prototype.lastIndexOf.call(Rt,Et,It):wt(Rt,[Et],It,Bt,Wt);throw new TypeError("val must be string, number or Buffer")}function wt(Rt,Et,It,Bt,Wt){let Vt=1,Yt=Rt.length,cn=Et.length;if(Bt!==void 0&&(Bt=String(Bt).toLowerCase(),Bt==="ucs2"||Bt==="ucs-2"||Bt==="utf16le"||Bt==="utf-16le")){if(Rt.length<2||Et.length<2)return-1;Vt=2,Yt/=2,cn/=2,It/=2}function pn(En,xn){return Vt===1?En[xn]:En.readUInt16BE(xn*Vt)}let un;if(Wt){let En=-1;for(un=It;unYt&&(It=Yt-cn),un=It;un>=0;un--){let En=!0;for(let xn=0;xnWt&&(Bt=Wt)):Bt=Wt;const Vt=Et.length;Bt>Vt/2&&(Bt=Vt/2);let Yt;for(Yt=0;Yt>>0,isFinite(Bt)?(Bt=Bt>>>0,Wt===void 0&&(Wt="utf8")):(Wt=Bt,Bt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Vt=this.length-It;if((Bt===void 0||Bt>Vt)&&(Bt=Vt),Et.length>0&&(Bt<0||It<0)||It>this.length)throw new RangeError("Attempt to write outside buffer bounds");Wt||(Wt="utf8");let Yt=!1;for(;;)switch(Wt){case"hex":return kt(this,Et,It,Bt);case"utf8":case"utf-8":return zt(this,Et,It,Bt);case"ascii":case"latin1":case"binary":return Ot(this,Et,It,Bt);case"base64":return Ft(this,Et,It,Bt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pt(this,Et,It,Bt);default:if(Yt)throw new TypeError("Unknown encoding: "+Wt);Wt=(""+Wt).toLowerCase(),Yt=!0}},rt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Nt(Rt,Et,It){return Et===0&&It===Rt.length?j.fromByteArray(Rt):j.fromByteArray(Rt.slice(Et,It))}function ht(Rt,Et,It){It=Math.min(Rt.length,It);const Bt=[];let Wt=Et;for(;Wt239?4:Vt>223?3:Vt>191?2:1;if(Wt+cn<=It){let pn,un,En,xn;switch(cn){case 1:Vt<128&&(Yt=Vt);break;case 2:pn=Rt[Wt+1],(pn&192)===128&&(xn=(Vt&31)<<6|pn&63,xn>127&&(Yt=xn));break;case 3:pn=Rt[Wt+1],un=Rt[Wt+2],(pn&192)===128&&(un&192)===128&&(xn=(Vt&15)<<12|(pn&63)<<6|un&63,xn>2047&&(xn<55296||xn>57343)&&(Yt=xn));break;case 4:pn=Rt[Wt+1],un=Rt[Wt+2],En=Rt[Wt+3],(pn&192)===128&&(un&192)===128&&(En&192)===128&&(xn=(Vt&15)<<18|(pn&63)<<12|(un&63)<<6|En&63,xn>65535&&xn<1114112&&(Yt=xn))}}Yt===null?(Yt=65533,cn=1):Yt>65535&&(Yt-=65536,Bt.push(Yt>>>10&1023|55296),Yt=56320|Yt&1023),Bt.push(Yt),Wt+=cn}return St(Bt)}const bt=4096;function St(Rt){const Et=Rt.length;if(Et<=bt)return String.fromCharCode.apply(String,Rt);let It="",Bt=0;for(;BtBt)&&(It=Bt);let Wt="";for(let Vt=Et;VtBt&&(Et=Bt),It<0?(It+=Bt,It<0&&(It=0)):It>Bt&&(It=Bt),ItIt)throw new RangeError("Trying to access beyond buffer length")}rt.prototype.readUintLE=rt.prototype.readUIntLE=function(Et,It,Bt){Et=Et>>>0,It=It>>>0,Bt||Lt(Et,It,this.length);let Wt=this[Et],Vt=1,Yt=0;for(;++Yt>>0,It=It>>>0,Bt||Lt(Et,It,this.length);let Wt=this[Et+--It],Vt=1;for(;It>0&&(Vt*=256);)Wt+=this[Et+--It]*Vt;return Wt},rt.prototype.readUint8=rt.prototype.readUInt8=function(Et,It){return Et=Et>>>0,It||Lt(Et,1,this.length),this[Et]},rt.prototype.readUint16LE=rt.prototype.readUInt16LE=function(Et,It){return Et=Et>>>0,It||Lt(Et,2,this.length),this[Et]|this[Et+1]<<8},rt.prototype.readUint16BE=rt.prototype.readUInt16BE=function(Et,It){return Et=Et>>>0,It||Lt(Et,2,this.length),this[Et]<<8|this[Et+1]},rt.prototype.readUint32LE=rt.prototype.readUInt32LE=function(Et,It){return Et=Et>>>0,It||Lt(Et,4,this.length),(this[Et]|this[Et+1]<<8|this[Et+2]<<16)+this[Et+3]*16777216},rt.prototype.readUint32BE=rt.prototype.readUInt32BE=function(Et,It){return Et=Et>>>0,It||Lt(Et,4,this.length),this[Et]*16777216+(this[Et+1]<<16|this[Et+2]<<8|this[Et+3])},rt.prototype.readBigUInt64LE=yn(function(Et){Et=Et>>>0,Qt(Et,"offset");const It=this[Et],Bt=this[Et+7];(It===void 0||Bt===void 0)&&Zt(Et,this.length-8);const Wt=It+this[++Et]*2**8+this[++Et]*2**16+this[++Et]*2**24,Vt=this[++Et]+this[++Et]*2**8+this[++Et]*2**16+Bt*2**24;return BigInt(Wt)+(BigInt(Vt)<>>0,Qt(Et,"offset");const It=this[Et],Bt=this[Et+7];(It===void 0||Bt===void 0)&&Zt(Et,this.length-8);const Wt=It*2**24+this[++Et]*2**16+this[++Et]*2**8+this[++Et],Vt=this[++Et]*2**24+this[++Et]*2**16+this[++Et]*2**8+Bt;return(BigInt(Wt)<>>0,It=It>>>0,Bt||Lt(Et,It,this.length);let Wt=this[Et],Vt=1,Yt=0;for(;++Yt=Vt&&(Wt-=Math.pow(2,8*It)),Wt},rt.prototype.readIntBE=function(Et,It,Bt){Et=Et>>>0,It=It>>>0,Bt||Lt(Et,It,this.length);let Wt=It,Vt=1,Yt=this[Et+--Wt];for(;Wt>0&&(Vt*=256);)Yt+=this[Et+--Wt]*Vt;return Vt*=128,Yt>=Vt&&(Yt-=Math.pow(2,8*It)),Yt},rt.prototype.readInt8=function(Et,It){return Et=Et>>>0,It||Lt(Et,1,this.length),this[Et]&128?(255-this[Et]+1)*-1:this[Et]},rt.prototype.readInt16LE=function(Et,It){Et=Et>>>0,It||Lt(Et,2,this.length);const Bt=this[Et]|this[Et+1]<<8;return Bt&32768?Bt|4294901760:Bt},rt.prototype.readInt16BE=function(Et,It){Et=Et>>>0,It||Lt(Et,2,this.length);const Bt=this[Et+1]|this[Et]<<8;return Bt&32768?Bt|4294901760:Bt},rt.prototype.readInt32LE=function(Et,It){return Et=Et>>>0,It||Lt(Et,4,this.length),this[Et]|this[Et+1]<<8|this[Et+2]<<16|this[Et+3]<<24},rt.prototype.readInt32BE=function(Et,It){return Et=Et>>>0,It||Lt(Et,4,this.length),this[Et]<<24|this[Et+1]<<16|this[Et+2]<<8|this[Et+3]},rt.prototype.readBigInt64LE=yn(function(Et){Et=Et>>>0,Qt(Et,"offset");const It=this[Et],Bt=this[Et+7];(It===void 0||Bt===void 0)&&Zt(Et,this.length-8);const Wt=this[Et+4]+this[Et+5]*2**8+this[Et+6]*2**16+(Bt<<24);return(BigInt(Wt)<>>0,Qt(Et,"offset");const It=this[Et],Bt=this[Et+7];(It===void 0||Bt===void 0)&&Zt(Et,this.length-8);const Wt=(It<<24)+this[++Et]*2**16+this[++Et]*2**8+this[++Et];return(BigInt(Wt)<>>0,It||Lt(Et,4,this.length),$.read(this,Et,!0,23,4)},rt.prototype.readFloatBE=function(Et,It){return Et=Et>>>0,It||Lt(Et,4,this.length),$.read(this,Et,!1,23,4)},rt.prototype.readDoubleLE=function(Et,It){return Et=Et>>>0,It||Lt(Et,8,this.length),$.read(this,Et,!0,52,8)},rt.prototype.readDoubleBE=function(Et,It){return Et=Et>>>0,It||Lt(Et,8,this.length),$.read(this,Et,!1,52,8)};function Mt(Rt,Et,It,Bt,Wt,Vt){if(!rt.isBuffer(Rt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Et>Wt||EtRt.length)throw new RangeError("Index out of range")}rt.prototype.writeUintLE=rt.prototype.writeUIntLE=function(Et,It,Bt,Wt){if(Et=+Et,It=It>>>0,Bt=Bt>>>0,!Wt){const cn=Math.pow(2,8*Bt)-1;Mt(this,Et,It,Bt,cn,0)}let Vt=1,Yt=0;for(this[It]=Et&255;++Yt>>0,Bt=Bt>>>0,!Wt){const cn=Math.pow(2,8*Bt)-1;Mt(this,Et,It,Bt,cn,0)}let Vt=Bt-1,Yt=1;for(this[It+Vt]=Et&255;--Vt>=0&&(Yt*=256);)this[It+Vt]=Et/Yt&255;return It+Bt},rt.prototype.writeUint8=rt.prototype.writeUInt8=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,1,255,0),this[It]=Et&255,It+1},rt.prototype.writeUint16LE=rt.prototype.writeUInt16LE=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,2,65535,0),this[It]=Et&255,this[It+1]=Et>>>8,It+2},rt.prototype.writeUint16BE=rt.prototype.writeUInt16BE=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,2,65535,0),this[It]=Et>>>8,this[It+1]=Et&255,It+2},rt.prototype.writeUint32LE=rt.prototype.writeUInt32LE=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,4,4294967295,0),this[It+3]=Et>>>24,this[It+2]=Et>>>16,this[It+1]=Et>>>8,this[It]=Et&255,It+4},rt.prototype.writeUint32BE=rt.prototype.writeUInt32BE=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,4,4294967295,0),this[It]=Et>>>24,this[It+1]=Et>>>16,this[It+2]=Et>>>8,this[It+3]=Et&255,It+4};function $t(Rt,Et,It,Bt,Wt){qt(Et,Bt,Wt,Rt,It,7);let Vt=Number(Et&BigInt(4294967295));Rt[It++]=Vt,Vt=Vt>>8,Rt[It++]=Vt,Vt=Vt>>8,Rt[It++]=Vt,Vt=Vt>>8,Rt[It++]=Vt;let Yt=Number(Et>>BigInt(32)&BigInt(4294967295));return Rt[It++]=Yt,Yt=Yt>>8,Rt[It++]=Yt,Yt=Yt>>8,Rt[It++]=Yt,Yt=Yt>>8,Rt[It++]=Yt,It}function Ut(Rt,Et,It,Bt,Wt){qt(Et,Bt,Wt,Rt,It,7);let Vt=Number(Et&BigInt(4294967295));Rt[It+7]=Vt,Vt=Vt>>8,Rt[It+6]=Vt,Vt=Vt>>8,Rt[It+5]=Vt,Vt=Vt>>8,Rt[It+4]=Vt;let Yt=Number(Et>>BigInt(32)&BigInt(4294967295));return Rt[It+3]=Yt,Yt=Yt>>8,Rt[It+2]=Yt,Yt=Yt>>8,Rt[It+1]=Yt,Yt=Yt>>8,Rt[It]=Yt,It+8}rt.prototype.writeBigUInt64LE=yn(function(Et,It=0){return $t(this,Et,It,BigInt(0),BigInt("0xffffffffffffffff"))}),rt.prototype.writeBigUInt64BE=yn(function(Et,It=0){return Ut(this,Et,It,BigInt(0),BigInt("0xffffffffffffffff"))}),rt.prototype.writeIntLE=function(Et,It,Bt,Wt){if(Et=+Et,It=It>>>0,!Wt){const pn=Math.pow(2,8*Bt-1);Mt(this,Et,It,Bt,pn-1,-pn)}let Vt=0,Yt=1,cn=0;for(this[It]=Et&255;++Vt>0)-cn&255;return It+Bt},rt.prototype.writeIntBE=function(Et,It,Bt,Wt){if(Et=+Et,It=It>>>0,!Wt){const pn=Math.pow(2,8*Bt-1);Mt(this,Et,It,Bt,pn-1,-pn)}let Vt=Bt-1,Yt=1,cn=0;for(this[It+Vt]=Et&255;--Vt>=0&&(Yt*=256);)Et<0&&cn===0&&this[It+Vt+1]!==0&&(cn=1),this[It+Vt]=(Et/Yt>>0)-cn&255;return It+Bt},rt.prototype.writeInt8=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,1,127,-128),Et<0&&(Et=255+Et+1),this[It]=Et&255,It+1},rt.prototype.writeInt16LE=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,2,32767,-32768),this[It]=Et&255,this[It+1]=Et>>>8,It+2},rt.prototype.writeInt16BE=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,2,32767,-32768),this[It]=Et>>>8,this[It+1]=Et&255,It+2},rt.prototype.writeInt32LE=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,4,2147483647,-2147483648),this[It]=Et&255,this[It+1]=Et>>>8,this[It+2]=Et>>>16,this[It+3]=Et>>>24,It+4},rt.prototype.writeInt32BE=function(Et,It,Bt){return Et=+Et,It=It>>>0,Bt||Mt(this,Et,It,4,2147483647,-2147483648),Et<0&&(Et=4294967295+Et+1),this[It]=Et>>>24,this[It+1]=Et>>>16,this[It+2]=Et>>>8,this[It+3]=Et&255,It+4},rt.prototype.writeBigInt64LE=yn(function(Et,It=0){return $t(this,Et,It,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),rt.prototype.writeBigInt64BE=yn(function(Et,It=0){return Ut(this,Et,It,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Gt(Rt,Et,It,Bt,Wt,Vt){if(It+Bt>Rt.length)throw new RangeError("Index out of range");if(It<0)throw new RangeError("Index out of range")}function Ht(Rt,Et,It,Bt,Wt){return Et=+Et,It=It>>>0,Wt||Gt(Rt,Et,It,4),$.write(Rt,Et,It,Bt,23,4),It+4}rt.prototype.writeFloatLE=function(Et,It,Bt){return Ht(this,Et,It,!0,Bt)},rt.prototype.writeFloatBE=function(Et,It,Bt){return Ht(this,Et,It,!1,Bt)};function tn(Rt,Et,It,Bt,Wt){return Et=+Et,It=It>>>0,Wt||Gt(Rt,Et,It,8),$.write(Rt,Et,It,Bt,52,8),It+8}rt.prototype.writeDoubleLE=function(Et,It,Bt){return tn(this,Et,It,!0,Bt)},rt.prototype.writeDoubleBE=function(Et,It,Bt){return tn(this,Et,It,!1,Bt)},rt.prototype.copy=function(Et,It,Bt,Wt){if(!rt.isBuffer(Et))throw new TypeError("argument should be a Buffer");if(Bt||(Bt=0),!Wt&&Wt!==0&&(Wt=this.length),It>=Et.length&&(It=Et.length),It||(It=0),Wt>0&&Wt=this.length)throw new RangeError("Index out of range");if(Wt<0)throw new RangeError("sourceEnd out of bounds");Wt>this.length&&(Wt=this.length),Et.length-It>>0,Bt=Bt===void 0?this.length:Bt>>>0,Et||(Et=0);let Vt;if(typeof Et=="number")for(Vt=It;Vt2**32?Wt=dn(String(It)):typeof It=="bigint"&&(Wt=String(It),(It>BigInt(2)**BigInt(32)||It<-(BigInt(2)**BigInt(32)))&&(Wt=dn(Wt)),Wt+="n"),Bt+=` It must be ${Et}. Received ${Wt}`,Bt},RangeError);function dn(Rt){let Et="",It=Rt.length;const Bt=Rt[0]==="-"?1:0;for(;It>=Bt+4;It-=3)Et=`_${Rt.slice(It-3,It)}${Et}`;return`${Rt.slice(0,It)}${Et}`}function en(Rt,Et,It){Qt(Et,"offset"),(Rt[Et]===void 0||Rt[Et+It]===void 0)&&Zt(Et,Rt.length-(It+1))}function qt(Rt,Et,It,Bt,Wt,Vt){if(Rt>It||Rt= 0${Yt} and < 2${Yt} ** ${(Vt+1)*8}${Yt}`:cn=`>= -(2${Yt} ** ${(Vt+1)*8-1}${Yt}) and < 2 ** ${(Vt+1)*8-1}${Yt}`,new Jt.ERR_OUT_OF_RANGE("value",cn,Rt)}en(Bt,Wt,Vt)}function Qt(Rt,Et){if(typeof Rt!="number")throw new Jt.ERR_INVALID_ARG_TYPE(Et,"number",Rt)}function Zt(Rt,Et,It){throw Math.floor(Rt)!==Rt?(Qt(Rt,It),new Jt.ERR_OUT_OF_RANGE("offset","an integer",Rt)):Et<0?new Jt.ERR_BUFFER_OUT_OF_BOUNDS:new Jt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Et}`,Rt)}const Xt=/[^+/0-9A-Za-z-_]/g;function sn(Rt){if(Rt=Rt.split("=")[0],Rt=Rt.trim().replace(Xt,""),Rt.length<2)return"";for(;Rt.length%4!==0;)Rt=Rt+"=";return Rt}function nn(Rt,Et){Et=Et||1/0;let It;const Bt=Rt.length;let Wt=null;const Vt=[];for(let Yt=0;Yt55295&&It<57344){if(!Wt){if(It>56319){(Et-=3)>-1&&Vt.push(239,191,189);continue}else if(Yt+1===Bt){(Et-=3)>-1&&Vt.push(239,191,189);continue}Wt=It;continue}if(It<56320){(Et-=3)>-1&&Vt.push(239,191,189),Wt=It;continue}It=(Wt-55296<<10|It-56320)+65536}else Wt&&(Et-=3)>-1&&Vt.push(239,191,189);if(Wt=null,It<128){if((Et-=1)<0)break;Vt.push(It)}else if(It<2048){if((Et-=2)<0)break;Vt.push(It>>6|192,It&63|128)}else if(It<65536){if((Et-=3)<0)break;Vt.push(It>>12|224,It>>6&63|128,It&63|128)}else if(It<1114112){if((Et-=4)<0)break;Vt.push(It>>18|240,It>>12&63|128,It>>6&63|128,It&63|128)}else throw new Error("Invalid code point")}return Vt}function rn(Rt){const Et=[];for(let It=0;It>8,Wt=It%256,Vt.push(Wt),Vt.push(Bt);return Vt}function on(Rt){return j.toByteArray(sn(Rt))}function an(Rt,Et,It,Bt){let Wt;for(Wt=0;Wt=Et.length||Wt>=Rt.length);++Wt)Et[Wt+It]=Rt[Wt];return Wt}function hn(Rt,Et){return Rt instanceof Et||Rt!=null&&Rt.constructor!=null&&Rt.constructor.name!=null&&Rt.constructor.name===Et.name}function fn(Rt){return Rt!==Rt}const ln=function(){const Rt="0123456789abcdef",Et=new Array(256);for(let It=0;It<16;++It){const Bt=It*16;for(let Wt=0;Wt<16;++Wt)Et[Bt+Wt]=Rt[It]+Rt[Wt]}return Et}();function yn(Rt){return typeof BigInt>"u"?mn:Rt}function mn(){throw new Error("BigInt not supported")}})(buffer);globalThis.Buffer=buffer.Buffer;var client={},reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/** * @license React * scheduler.production.min.js * @@ -27,7 +27,7 @@ var pr=Object.defineProperty;var hr=(s,j,$)=>j in s?pr(s,j,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(s){function j(At,Tt){var Dt=At.length;At.push(Tt);e:for(;0>>1,Et=At[Lt];if(0>>1;Ltet(Gt,Dt))Htet(tn,Gt)?(At[Lt]=tn,At[Ht]=Dt,Lt=Ht):(At[Lt]=Gt,At[Ut]=Dt,Lt=Ut);else if(Htet(tn,Dt))At[Lt]=tn,At[Ht]=Dt,Lt=Ht;else break e}}return Tt}function et(At,Tt){var Dt=At.sortIndex-Tt.sortIndex;return Dt!==0?Dt:At.id-Tt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var tt=performance;s.unstable_now=function(){return tt.now()}}else{var nt=Date,rt=nt.now();s.unstable_now=function(){return nt.now()-rt}}var ot=[],it=[],st=1,at=null,ct=3,lt=!1,dt=!1,pt=!1,ht=typeof setTimeout=="function"?setTimeout:null,yt=typeof clearTimeout=="function"?clearTimeout:null,gt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ft(At){for(var Tt=$(it);Tt!==null;){if(Tt.callback===null)_e(it);else if(Tt.startTime<=At)_e(it),Tt.sortIndex=Tt.expirationTime,j(ot,Tt);else break;Tt=$(it)}}function xt(At){if(pt=!1,ft(At),!dt)if($(ot)!==null)dt=!0,St(Mt);else{var Tt=$(it);Tt!==null&&vt(xt,Tt.startTime-At)}}function Mt(At,Tt){dt=!1,pt&&(pt=!1,yt($t),$t=-1),lt=!0;var Dt=ct;try{for(ft(Tt),at=$(ot);at!==null&&(!(at.expirationTime>Tt)||At&&!Pt());){var Lt=at.callback;if(typeof Lt=="function"){at.callback=null,ct=at.priorityLevel;var Et=Lt(at.expirationTime<=Tt);Tt=s.unstable_now(),typeof Et=="function"?at.callback=Et:at===$(ot)&&_e(ot),ft(Tt)}else _e(ot);at=$(ot)}if(at!==null)var kt=!0;else{var Ut=$(it);Ut!==null&&vt(xt,Ut.startTime-Tt),kt=!1}return kt}finally{at=null,ct=Dt,lt=!1}}var jt=!1,wt=null,$t=-1,zt=5,Ot=-1;function Pt(){return!(s.unstable_now()-OtAt||125Lt?(At.sortIndex=Dt,j(it,At),$(ot)===null&&At===$(it)&&(pt?(yt($t),$t=-1):pt=!0,vt(xt,Dt-Lt))):(At.sortIndex=Et,j(ot,At),dt||lt||(dt=!0,St(Mt))),At},s.unstable_shouldYield=Pt,s.unstable_wrapCallback=function(At){var Tt=ct;return function(){var Dt=ct;ct=Tt;try{return At.apply(this,arguments)}finally{ct=Dt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + */(function(s){function j(At,Tt){var jt=At.length;At.push(Tt);e:for(;0>>1,Mt=At[Lt];if(0>>1;Lt<$t;){var Ut=2*(Lt+1)-1,Gt=At[Ut],Ht=Ut+1,tn=At[Ht];if(0>et(Gt,jt))Htet(tn,Gt)?(At[Lt]=tn,At[Ht]=jt,Lt=Ht):(At[Lt]=Gt,At[Ut]=jt,Lt=Ut);else if(Htet(tn,jt))At[Lt]=tn,At[Ht]=jt,Lt=Ht;else break e}}return Tt}function et(At,Tt){var jt=At.sortIndex-Tt.sortIndex;return jt!==0?jt:At.id-Tt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var tt=performance;s.unstable_now=function(){return tt.now()}}else{var nt=Date,rt=nt.now();s.unstable_now=function(){return nt.now()-rt}}var ot=[],it=[],st=1,at=null,ct=3,lt=!1,dt=!1,ft=!1,gt=typeof setTimeout=="function"?setTimeout:null,yt=typeof clearTimeout=="function"?clearTimeout:null,mt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function pt(At){for(var Tt=$(it);Tt!==null;){if(Tt.callback===null)_e(it);else if(Tt.startTime<=At)_e(it),Tt.sortIndex=Tt.expirationTime,j(ot,Tt);else break;Tt=$(it)}}function xt(At){if(ft=!1,pt(At),!dt)if($(ot)!==null)dt=!0,St(Ct);else{var Tt=$(it);Tt!==null&&vt(xt,Tt.startTime-At)}}function Ct(At,Tt){dt=!1,ft&&(ft=!1,yt(kt),kt=-1),lt=!0;var jt=ct;try{for(pt(Tt),at=$(ot);at!==null&&(!(at.expirationTime>Tt)||At&&!Ft());){var Lt=at.callback;if(typeof Lt=="function"){at.callback=null,ct=at.priorityLevel;var Mt=Lt(at.expirationTime<=Tt);Tt=s.unstable_now(),typeof Mt=="function"?at.callback=Mt:at===$(ot)&&_e(ot),pt(Tt)}else _e(ot);at=$(ot)}if(at!==null)var $t=!0;else{var Ut=$(it);Ut!==null&&vt(xt,Ut.startTime-Tt),$t=!1}return $t}finally{at=null,ct=jt,lt=!1}}var Dt=!1,wt=null,kt=-1,zt=5,Ot=-1;function Ft(){return!(s.unstable_now()-OtAt||125Lt?(At.sortIndex=jt,j(it,At),$(ot)===null&&At===$(it)&&(ft?(yt(kt),kt=-1):ft=!0,vt(xt,jt-Lt))):(At.sortIndex=Mt,j(ot,At),dt||lt||(dt=!0,St(Ct))),At},s.unstable_shouldYield=Ft,s.unstable_wrapCallback=function(At){var Tt=ct;return function(){var jt=ct;ct=Tt;try{return At.apply(this,arguments)}finally{ct=jt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** * @license React * react-dom.production.min.js * @@ -39,17 +39,17 @@ var pr=Object.defineProperty;var hr=(s,j,$)=>j in s?pr(s,j,{enumerable:!0,config `+La+s}var Na=!1;function Oa(s,j){if(!s||Na)return"";Na=!0;var $=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(j)if(j=function(){throw Error()},Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(it){var _e=it}Reflect.construct(s,[],j)}else{try{j.call()}catch(it){_e=it}s.call(j.prototype)}else{try{throw Error()}catch(it){_e=it}s()}}catch(it){if(it&&_e&&typeof it.stack=="string"){for(var et=it.stack.split(` `),tt=_e.stack.split(` `),nt=et.length-1,rt=tt.length-1;1<=nt&&0<=rt&&et[nt]!==tt[rt];)rt--;for(;1<=nt&&0<=rt;nt--,rt--)if(et[nt]!==tt[rt]){if(nt!==1||rt!==1)do if(nt--,rt--,0>rt||et[nt]!==tt[rt]){var ot=` -`+et[nt].replace(" at new "," at ");return s.displayName&&ot.includes("")&&(ot=ot.replace("",s.displayName)),ot}while(1<=nt&&0<=rt);break}}}finally{Na=!1,Error.prepareStackTrace=$}return(s=s?s.displayName||s.name:"")?Ma(s):""}function Pa(s){switch(s.tag){case 5:return Ma(s.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return s=Oa(s.type,!1),s;case 11:return s=Oa(s.type.render,!1),s;case 1:return s=Oa(s.type,!0),s;default:return""}}function Qa(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Ca:return(s.displayName||"Context")+".Consumer";case Ba:return(s._context.displayName||"Context")+".Provider";case Da:var j=s.render;return s=s.displayName,s||(s=j.displayName||j.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case Ga:return j=s.displayName||null,j!==null?j:Qa(s.type)||"Memo";case Ha:j=s._payload,s=s._init;try{return Qa(s(j))}catch{}}return null}function Ra(s){var j=s.type;switch(s.tag){case 24:return"Cache";case 9:return(j.displayName||"Context")+".Consumer";case 10:return(j._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=j.render,s=s.displayName||s.name||"",j.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return j;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(j);case 8:return j===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j}return null}function Sa(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Ta(s){var j=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(j==="checkbox"||j==="radio")}function Ua(s){var j=Ta(s)?"checked":"value",$=Object.getOwnPropertyDescriptor(s.constructor.prototype,j),_e=""+s[j];if(!s.hasOwnProperty(j)&&typeof $<"u"&&typeof $.get=="function"&&typeof $.set=="function"){var et=$.get,tt=$.set;return Object.defineProperty(s,j,{configurable:!0,get:function(){return et.call(this)},set:function(nt){_e=""+nt,tt.call(this,nt)}}),Object.defineProperty(s,j,{enumerable:$.enumerable}),{getValue:function(){return _e},setValue:function(nt){_e=""+nt},stopTracking:function(){s._valueTracker=null,delete s[j]}}}}function Va(s){s._valueTracker||(s._valueTracker=Ua(s))}function Wa(s){if(!s)return!1;var j=s._valueTracker;if(!j)return!0;var $=j.getValue(),_e="";return s&&(_e=Ta(s)?s.checked?"true":"false":s.value),s=_e,s!==$?(j.setValue(s),!0):!1}function Xa(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Ya(s,j){var $=j.checked;return A$1({},j,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:$??s._wrapperState.initialChecked})}function Za(s,j){var $=j.defaultValue==null?"":j.defaultValue,_e=j.checked!=null?j.checked:j.defaultChecked;$=Sa(j.value!=null?j.value:$),s._wrapperState={initialChecked:_e,initialValue:$,controlled:j.type==="checkbox"||j.type==="radio"?j.checked!=null:j.value!=null}}function ab(s,j){j=j.checked,j!=null&&ta(s,"checked",j,!1)}function bb(s,j){ab(s,j);var $=Sa(j.value),_e=j.type;if($!=null)_e==="number"?($===0&&s.value===""||s.value!=$)&&(s.value=""+$):s.value!==""+$&&(s.value=""+$);else if(_e==="submit"||_e==="reset"){s.removeAttribute("value");return}j.hasOwnProperty("value")?cb(s,j.type,$):j.hasOwnProperty("defaultValue")&&cb(s,j.type,Sa(j.defaultValue)),j.checked==null&&j.defaultChecked!=null&&(s.defaultChecked=!!j.defaultChecked)}function db(s,j,$){if(j.hasOwnProperty("value")||j.hasOwnProperty("defaultValue")){var _e=j.type;if(!(_e!=="submit"&&_e!=="reset"||j.value!==void 0&&j.value!==null))return;j=""+s._wrapperState.initialValue,$||j===s.value||(s.value=j),s.defaultValue=j}$=s.name,$!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,$!==""&&(s.name=$)}function cb(s,j,$){(j!=="number"||Xa(s.ownerDocument)!==s)&&($==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+$&&(s.defaultValue=""+$))}var eb=Array.isArray;function fb(s,j,$,_e){if(s=s.options,j){j={};for(var et=0;et<$.length;et++)j["$"+$[et]]=!0;for($=0;$"+j.valueOf().toString()+"",j=mb.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;j.firstChild;)s.appendChild(j.firstChild)}});function ob(s,j){if(j){var $=s.firstChild;if($&&$===s.lastChild&&$.nodeType===3){$.nodeValue=j;return}}s.textContent=j}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(s){qb.forEach(function(j){j=j+s.charAt(0).toUpperCase()+s.substring(1),pb[j]=pb[s]})});function rb(s,j,$){return j==null||typeof j=="boolean"||j===""?"":$||typeof j!="number"||j===0||pb.hasOwnProperty(s)&&pb[s]?(""+j).trim():j+"px"}function sb(s,j){s=s.style;for(var $ in j)if(j.hasOwnProperty($)){var _e=$.indexOf("--")===0,et=rb($,j[$],_e);$==="float"&&($="cssFloat"),_e?s.setProperty($,et):s[$]=et}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(s,j){if(j){if(tb[s]&&(j.children!=null||j.dangerouslySetInnerHTML!=null))throw Error(p$3(137,s));if(j.dangerouslySetInnerHTML!=null){if(j.children!=null)throw Error(p$3(60));if(typeof j.dangerouslySetInnerHTML!="object"||!("__html"in j.dangerouslySetInnerHTML))throw Error(p$3(61))}if(j.style!=null&&typeof j.style!="object")throw Error(p$3(62))}}function vb(s,j){if(s.indexOf("-")===-1)return typeof j.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var yb=null,zb=null,Ab=null;function Bb(s){if(s=Cb(s)){if(typeof yb!="function")throw Error(p$3(280));var j=s.stateNode;j&&(j=Db(j),yb(s.stateNode,s.type,j))}}function Eb(s){zb?Ab?Ab.push(s):Ab=[s]:zb=s}function Fb(){if(zb){var s=zb,j=Ab;if(Ab=zb=null,Bb(s),j)for(s=0;s>>=0,s===0?32:31-(pc(s)/qc|0)|0}var rc=64,sc=4194304;function tc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function uc(s,j){var $=s.pendingLanes;if($===0)return 0;var _e=0,et=s.suspendedLanes,tt=s.pingedLanes,nt=$&268435455;if(nt!==0){var rt=nt&~et;rt!==0?_e=tc(rt):(tt&=nt,tt!==0&&(_e=tc(tt)))}else nt=$&~et,nt!==0?_e=tc(nt):tt!==0&&(_e=tc(tt));if(_e===0)return 0;if(j!==0&&j!==_e&&!(j&et)&&(et=_e&-_e,tt=j&-j,et>=tt||et===16&&(tt&4194240)!==0))return j;if(_e&4&&(_e|=$&16),j=s.entangledLanes,j!==0)for(s=s.entanglements,j&=_e;0$;$++)j.push(s);return j}function Ac(s,j,$){s.pendingLanes|=j,j!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,j=31-oc(j),s[j]=$}function Bc(s,j){var $=s.pendingLanes&~j;s.pendingLanes=j,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=j,s.mutableReadLanes&=j,s.entangledLanes&=j,j=s.entanglements;var _e=s.eventTimes;for(s=s.expirationTimes;0<$;){var et=31-oc($),tt=1<=be),ee=" ",fe=!1;function ge(s,j){switch(s){case"keyup":return $d.indexOf(j.keyCode)!==-1;case"keydown":return j.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ie=!1;function je(s,j){switch(s){case"compositionend":return he(j);case"keypress":return j.which!==32?null:(fe=!0,ee);case"textInput":return s=j.data,s===ee&&fe?null:s;default:return null}}function ke(s,j){if(ie)return s==="compositionend"||!ae&&ge(s,j)?(s=nd(),md=ld=kd=null,ie=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(j.ctrlKey||j.altKey||j.metaKey)||j.ctrlKey&&j.altKey){if(j.char&&1=j)return{node:$,offset:j-s};s=_e}e:{for(;$;){if($.nextSibling){$=$.nextSibling;break e}$=$.parentNode}$=void 0}$=Je($)}}function Le(s,j){return s&&j?s===j?!0:s&&s.nodeType===3?!1:j&&j.nodeType===3?Le(s,j.parentNode):"contains"in s?s.contains(j):s.compareDocumentPosition?!!(s.compareDocumentPosition(j)&16):!1:!1}function Me(){for(var s=window,j=Xa();j instanceof s.HTMLIFrameElement;){try{var $=typeof j.contentWindow.location.href=="string"}catch{$=!1}if($)s=j.contentWindow;else break;j=Xa(s.document)}return j}function Ne(s){var j=s&&s.nodeName&&s.nodeName.toLowerCase();return j&&(j==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||j==="textarea"||s.contentEditable==="true")}function Oe(s){var j=Me(),$=s.focusedElem,_e=s.selectionRange;if(j!==$&&$&&$.ownerDocument&&Le($.ownerDocument.documentElement,$)){if(_e!==null&&Ne($)){if(j=_e.start,s=_e.end,s===void 0&&(s=j),"selectionStart"in $)$.selectionStart=j,$.selectionEnd=Math.min(s,$.value.length);else if(s=(j=$.ownerDocument||document)&&j.defaultView||window,s.getSelection){s=s.getSelection();var et=$.textContent.length,tt=Math.min(_e.start,et);_e=_e.end===void 0?tt:Math.min(_e.end,et),!s.extend&&tt>_e&&(et=_e,_e=tt,tt=et),et=Ke($,tt);var nt=Ke($,_e);et&&nt&&(s.rangeCount!==1||s.anchorNode!==et.node||s.anchorOffset!==et.offset||s.focusNode!==nt.node||s.focusOffset!==nt.offset)&&(j=j.createRange(),j.setStart(et.node,et.offset),s.removeAllRanges(),tt>_e?(s.addRange(j),s.extend(nt.node,nt.offset)):(j.setEnd(nt.node,nt.offset),s.addRange(j)))}}for(j=[],s=$;s=s.parentNode;)s.nodeType===1&&j.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(s,j,$){var _e=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;Te||Qe==null||Qe!==Xa(_e)||(_e=Qe,"selectionStart"in _e&&Ne(_e)?_e={start:_e.selectionStart,end:_e.selectionEnd}:(_e=(_e.ownerDocument&&_e.ownerDocument.defaultView||window).getSelection(),_e={anchorNode:_e.anchorNode,anchorOffset:_e.anchorOffset,focusNode:_e.focusNode,focusOffset:_e.focusOffset}),Se&&Ie(Se,_e)||(Se=_e,_e=oe(Re,"onSelect"),0<_e.length&&(j=new td("onSelect","select",null,j,$),s.push({event:j,listeners:_e}),j.target=Qe)))}function Ve(s,j){var $={};return $[s.toLowerCase()]=j.toLowerCase(),$["Webkit"+s]="webkit"+j,$["Moz"+s]="moz"+j,$}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(s){if(Xe[s])return Xe[s];if(!We[s])return s;var j=We[s],$;for($ in j)if(j.hasOwnProperty($)&&$ in Ye)return Xe[s]=j[$];return s}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(s,j){df.set(s,j),fa(j,[s])}for(var gf=0;gfTf||(s.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(s,j){Tf++,Sf[Tf]=s.current,s.current=j}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(s,j){var $=s.type.contextTypes;if(!$)return Vf;var _e=s.stateNode;if(_e&&_e.__reactInternalMemoizedUnmaskedChildContext===j)return _e.__reactInternalMemoizedMaskedChildContext;var et={},tt;for(tt in $)et[tt]=j[tt];return _e&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=j,s.__reactInternalMemoizedMaskedChildContext=et),et}function Zf(s){return s=s.childContextTypes,s!=null}function $f(){E(Wf),E(H)}function ag(s,j,$){if(H.current!==Vf)throw Error(p$3(168));G(H,j),G(Wf,$)}function bg(s,j,$){var _e=s.stateNode;if(j=j.childContextTypes,typeof _e.getChildContext!="function")return $;_e=_e.getChildContext();for(var et in _e)if(!(et in j))throw Error(p$3(108,Ra(s)||"Unknown",et));return A$1({},$,_e)}function cg(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,s),G(Wf,Wf.current),!0}function dg(s,j,$){var _e=s.stateNode;if(!_e)throw Error(p$3(169));$?(s=bg(s,j,Xf),_e.__reactInternalMemoizedMergedChildContext=s,E(Wf),E(H),G(H,s)):E(Wf),G(Wf,$)}var eg=null,fg=!1,gg=!1;function hg(s){eg===null?eg=[s]:eg.push(s)}function ig(s){fg=!0,hg(s)}function jg(){if(!gg&&eg!==null){gg=!0;var s=0,j=C;try{var $=eg;for(C=1;s<$.length;s++){var _e=$[s];do _e=_e(!0);while(_e!==null)}eg=null,fg=!1}catch(et){throw eg!==null&&(eg=eg.slice(s+1)),ac(fc,jg),et}finally{C=j,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(s,j){kg[lg++]=ng,kg[lg++]=mg,mg=s,ng=j}function ug(s,j,$){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=s;var _e=rg;s=sg;var et=32-oc(_e)-1;_e&=~(1<>=nt,et-=nt,rg=1<<32-oc(j)+et|$<$t?(zt=wt,wt=null):zt=wt.sibling;var Ot=ct(yt,wt,ft[$t],xt);if(Ot===null){wt===null&&(wt=zt);break}s&&wt&&Ot.alternate===null&&j(yt,wt),gt=tt(Ot,gt,$t),jt===null?Mt=Ot:jt.sibling=Ot,jt=Ot,wt=zt}if($t===ft.length)return $(yt,wt),I&&tg(yt,$t),Mt;if(wt===null){for(;$t$t?(zt=wt,wt=null):zt=wt.sibling;var Pt=ct(yt,wt,Ot.value,xt);if(Pt===null){wt===null&&(wt=zt);break}s&&wt&&Pt.alternate===null&&j(yt,wt),gt=tt(Pt,gt,$t),jt===null?Mt=Pt:jt.sibling=Pt,jt=Pt,wt=zt}if(Ot.done)return $(yt,wt),I&&tg(yt,$t),Mt;if(wt===null){for(;!Ot.done;$t++,Ot=ft.next())Ot=at(yt,Ot.value,xt),Ot!==null&&(gt=tt(Ot,gt,$t),jt===null?Mt=Ot:jt.sibling=Ot,jt=Ot);return I&&tg(yt,$t),Mt}for(wt=_e(yt,wt);!Ot.done;$t++,Ot=ft.next())Ot=lt(wt,yt,$t,Ot.value,xt),Ot!==null&&(s&&Ot.alternate!==null&&wt.delete(Ot.key===null?$t:Ot.key),gt=tt(Ot,gt,$t),jt===null?Mt=Ot:jt.sibling=Ot,jt=Ot);return s&&wt.forEach(function(Ft){return j(yt,Ft)}),I&&tg(yt,$t),Mt}function ht(yt,gt,ft,xt){if(typeof ft=="object"&&ft!==null&&ft.type===ya&&ft.key===null&&(ft=ft.props.children),typeof ft=="object"&&ft!==null){switch(ft.$$typeof){case va:e:{for(var Mt=ft.key,jt=gt;jt!==null;){if(jt.key===Mt){if(Mt=ft.type,Mt===ya){if(jt.tag===7){$(yt,jt.sibling),gt=et(jt,ft.props.children),gt.return=yt,yt=gt;break e}}else if(jt.elementType===Mt||typeof Mt=="object"&&Mt!==null&&Mt.$$typeof===Ha&&Ng(Mt)===jt.type){$(yt,jt.sibling),gt=et(jt,ft.props),gt.ref=Lg(yt,jt,ft),gt.return=yt,yt=gt;break e}$(yt,jt);break}else j(yt,jt);jt=jt.sibling}ft.type===ya?(gt=Tg(ft.props.children,yt.mode,xt,ft.key),gt.return=yt,yt=gt):(xt=Rg(ft.type,ft.key,ft.props,null,yt.mode,xt),xt.ref=Lg(yt,gt,ft),xt.return=yt,yt=xt)}return nt(yt);case wa:e:{for(jt=ft.key;gt!==null;){if(gt.key===jt)if(gt.tag===4&>.stateNode.containerInfo===ft.containerInfo&>.stateNode.implementation===ft.implementation){$(yt,gt.sibling),gt=et(gt,ft.children||[]),gt.return=yt,yt=gt;break e}else{$(yt,gt);break}else j(yt,gt);gt=gt.sibling}gt=Sg(ft,yt.mode,xt),gt.return=yt,yt=gt}return nt(yt);case Ha:return jt=ft._init,ht(yt,gt,jt(ft._payload),xt)}if(eb(ft))return dt(yt,gt,ft,xt);if(Ka(ft))return pt(yt,gt,ft,xt);Mg(yt,ft)}return typeof ft=="string"&&ft!==""||typeof ft=="number"?(ft=""+ft,gt!==null&>.tag===6?($(yt,gt.sibling),gt=et(gt,ft),gt.return=yt,yt=gt):($(yt,gt),gt=Qg(ft,yt.mode,xt),gt.return=yt,yt=gt),nt(yt)):$(yt,gt)}return ht}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(s){var j=Wg.current;E(Wg),s._currentValue=j}function bh(s,j,$){for(;s!==null;){var _e=s.alternate;if((s.childLanes&j)!==j?(s.childLanes|=j,_e!==null&&(_e.childLanes|=j)):_e!==null&&(_e.childLanes&j)!==j&&(_e.childLanes|=j),s===$)break;s=s.return}}function ch(s,j){Xg=s,Zg=Yg=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&j&&(dh=!0),s.firstContext=null)}function eh(s){var j=s._currentValue;if(Zg!==s)if(s={context:s,memoizedValue:j,next:null},Yg===null){if(Xg===null)throw Error(p$3(308));Yg=s,Xg.dependencies={lanes:0,firstContext:s}}else Yg=Yg.next=s;return j}var fh=null;function gh(s){fh===null?fh=[s]:fh.push(s)}function hh(s,j,$,_e){var et=j.interleaved;return et===null?($.next=$,gh(j)):($.next=et.next,et.next=$),j.interleaved=$,ih(s,_e)}function ih(s,j){s.lanes|=j;var $=s.alternate;for($!==null&&($.lanes|=j),$=s,s=s.return;s!==null;)s.childLanes|=j,$=s.alternate,$!==null&&($.childLanes|=j),$=s,s=s.return;return $.tag===3?$.stateNode:null}var jh=!1;function kh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(s,j){s=s.updateQueue,j.updateQueue===s&&(j.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function mh(s,j){return{eventTime:s,lane:j,tag:0,payload:null,callback:null,next:null}}function nh(s,j,$){var _e=s.updateQueue;if(_e===null)return null;if(_e=_e.shared,K&2){var et=_e.pending;return et===null?j.next=j:(j.next=et.next,et.next=j),_e.pending=j,ih(s,$)}return et=_e.interleaved,et===null?(j.next=j,gh(_e)):(j.next=et.next,et.next=j),_e.interleaved=j,ih(s,$)}function oh(s,j,$){if(j=j.updateQueue,j!==null&&(j=j.shared,($&4194240)!==0)){var _e=j.lanes;_e&=s.pendingLanes,$|=_e,j.lanes=$,Cc(s,$)}}function ph(s,j){var $=s.updateQueue,_e=s.alternate;if(_e!==null&&(_e=_e.updateQueue,$===_e)){var et=null,tt=null;if($=$.firstBaseUpdate,$!==null){do{var nt={eventTime:$.eventTime,lane:$.lane,tag:$.tag,payload:$.payload,callback:$.callback,next:null};tt===null?et=tt=nt:tt=tt.next=nt,$=$.next}while($!==null);tt===null?et=tt=j:tt=tt.next=j}else et=tt=j;$={baseState:_e.baseState,firstBaseUpdate:et,lastBaseUpdate:tt,shared:_e.shared,effects:_e.effects},s.updateQueue=$;return}s=$.lastBaseUpdate,s===null?$.firstBaseUpdate=j:s.next=j,$.lastBaseUpdate=j}function qh(s,j,$,_e){var et=s.updateQueue;jh=!1;var tt=et.firstBaseUpdate,nt=et.lastBaseUpdate,rt=et.shared.pending;if(rt!==null){et.shared.pending=null;var ot=rt,it=ot.next;ot.next=null,nt===null?tt=it:nt.next=it,nt=ot;var st=s.alternate;st!==null&&(st=st.updateQueue,rt=st.lastBaseUpdate,rt!==nt&&(rt===null?st.firstBaseUpdate=it:rt.next=it,st.lastBaseUpdate=ot))}if(tt!==null){var at=et.baseState;nt=0,st=it=ot=null,rt=tt;do{var ct=rt.lane,lt=rt.eventTime;if((_e&ct)===ct){st!==null&&(st=st.next={eventTime:lt,lane:0,tag:rt.tag,payload:rt.payload,callback:rt.callback,next:null});e:{var dt=s,pt=rt;switch(ct=j,lt=$,pt.tag){case 1:if(dt=pt.payload,typeof dt=="function"){at=dt.call(lt,at,ct);break e}at=dt;break e;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=pt.payload,ct=typeof dt=="function"?dt.call(lt,at,ct):dt,ct==null)break e;at=A$1({},at,ct);break e;case 2:jh=!0}}rt.callback!==null&&rt.lane!==0&&(s.flags|=64,ct=et.effects,ct===null?et.effects=[rt]:ct.push(rt))}else lt={eventTime:lt,lane:ct,tag:rt.tag,payload:rt.payload,callback:rt.callback,next:null},st===null?(it=st=lt,ot=at):st=st.next=lt,nt|=ct;if(rt=rt.next,rt===null){if(rt=et.shared.pending,rt===null)break;ct=rt,rt=ct.next,ct.next=null,et.lastBaseUpdate=ct,et.shared.pending=null}}while(!0);if(st===null&&(ot=at),et.baseState=ot,et.firstBaseUpdate=it,et.lastBaseUpdate=st,j=et.shared.interleaved,j!==null){et=j;do nt|=et.lane,et=et.next;while(et!==j)}else tt===null&&(et.shared.lanes=0);rh|=nt,s.lanes=nt,s.memoizedState=at}}function sh(s,j,$){if(s=j.effects,j.effects=null,s!==null)for(j=0;j$?$:4,s(!0);var _e=Gh.transition;Gh.transition={};try{s(!1),j()}finally{C=$,Gh.transition=_e}}function wi(){return Uh().memoizedState}function xi(s,j,$){var _e=yi(s);if($={lane:_e,action:$,hasEagerState:!1,eagerState:null,next:null},zi(s))Ai(j,$);else if($=hh(s,j,$,_e),$!==null){var et=R();gi($,s,_e,et),Bi($,j,_e)}}function ii(s,j,$){var _e=yi(s),et={lane:_e,action:$,hasEagerState:!1,eagerState:null,next:null};if(zi(s))Ai(j,et);else{var tt=s.alternate;if(s.lanes===0&&(tt===null||tt.lanes===0)&&(tt=j.lastRenderedReducer,tt!==null))try{var nt=j.lastRenderedState,rt=tt(nt,$);if(et.hasEagerState=!0,et.eagerState=rt,He(rt,nt)){var ot=j.interleaved;ot===null?(et.next=et,gh(j)):(et.next=ot.next,ot.next=et),j.interleaved=et;return}}catch{}finally{}$=hh(s,j,et,_e),$!==null&&(et=R(),gi($,s,_e,et),Bi($,j,_e))}}function zi(s){var j=s.alternate;return s===M||j!==null&&j===M}function Ai(s,j){Jh=Ih=!0;var $=s.pending;$===null?j.next=j:(j.next=$.next,$.next=j),s.pending=j}function Bi(s,j,$){if($&4194240){var _e=j.lanes;_e&=s.pendingLanes,$|=_e,j.lanes=$,Cc(s,$)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(s,j){return Th().memoizedState=[s,j===void 0?null:j],s},useContext:eh,useEffect:mi,useImperativeHandle:function(s,j,$){return $=$!=null?$.concat([s]):null,ki(4194308,4,pi.bind(null,j,s),$)},useLayoutEffect:function(s,j){return ki(4194308,4,s,j)},useInsertionEffect:function(s,j){return ki(4,2,s,j)},useMemo:function(s,j){var $=Th();return j=j===void 0?null:j,s=s(),$.memoizedState=[s,j],s},useReducer:function(s,j,$){var _e=Th();return j=$!==void 0?$(j):j,_e.memoizedState=_e.baseState=j,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:j},_e.queue=s,s=s.dispatch=xi.bind(null,M,s),[_e.memoizedState,s]},useRef:function(s){var j=Th();return s={current:s},j.memoizedState=s},useState:hi,useDebugValue:ri,useDeferredValue:function(s){return Th().memoizedState=s},useTransition:function(){var s=hi(!1),j=s[0];return s=vi.bind(null,s[1]),Th().memoizedState=s,[j,s]},useMutableSource:function(){},useSyncExternalStore:function(s,j,$){var _e=M,et=Th();if(I){if($===void 0)throw Error(p$3(407));$=$()}else{if($=j(),Q===null)throw Error(p$3(349));Hh&30||di(_e,j,$)}et.memoizedState=$;var tt={value:$,getSnapshot:j};return et.queue=tt,mi(ai.bind(null,_e,tt,s),[s]),_e.flags|=2048,bi(9,ci.bind(null,_e,tt,$,j),void 0,null),$},useId:function(){var s=Th(),j=Q.identifierPrefix;if(I){var $=sg,_e=rg;$=(_e&~(1<<32-oc(_e)-1)).toString(32)+$,j=":"+j+"R"+$,$=Kh++,0<$&&(j+="H"+$.toString(32)),j+=":"}else $=Lh++,j=":"+j+"r"+$.toString(32)+":";return s.memoizedState=j},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(s){var j=Uh();return ui(j,N.memoizedState,s)},useTransition:function(){var s=Wh(Vh)[0],j=Uh().memoizedState;return[s,j]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(s){var j=Uh();return N===null?j.memoizedState=s:ui(j,N.memoizedState,s)},useTransition:function(){var s=Xh(Vh)[0],j=Uh().memoizedState;return[s,j]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(s,j){if(s&&s.defaultProps){j=A$1({},j),s=s.defaultProps;for(var $ in s)j[$]===void 0&&(j[$]=s[$]);return j}return j}function Di(s,j,$,_e){j=s.memoizedState,$=$(_e,j),$=$==null?j:A$1({},j,$),s.memoizedState=$,s.lanes===0&&(s.updateQueue.baseState=$)}var Ei={isMounted:function(s){return(s=s._reactInternals)?Vb(s)===s:!1},enqueueSetState:function(s,j,$){s=s._reactInternals;var _e=R(),et=yi(s),tt=mh(_e,et);tt.payload=j,$!=null&&(tt.callback=$),j=nh(s,tt,et),j!==null&&(gi(j,s,et,_e),oh(j,s,et))},enqueueReplaceState:function(s,j,$){s=s._reactInternals;var _e=R(),et=yi(s),tt=mh(_e,et);tt.tag=1,tt.payload=j,$!=null&&(tt.callback=$),j=nh(s,tt,et),j!==null&&(gi(j,s,et,_e),oh(j,s,et))},enqueueForceUpdate:function(s,j){s=s._reactInternals;var $=R(),_e=yi(s),et=mh($,_e);et.tag=2,j!=null&&(et.callback=j),j=nh(s,et,_e),j!==null&&(gi(j,s,_e,$),oh(j,s,_e))}};function Fi(s,j,$,_e,et,tt,nt){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(_e,tt,nt):j.prototype&&j.prototype.isPureReactComponent?!Ie($,_e)||!Ie(et,tt):!0}function Gi(s,j,$){var _e=!1,et=Vf,tt=j.contextType;return typeof tt=="object"&&tt!==null?tt=eh(tt):(et=Zf(j)?Xf:H.current,_e=j.contextTypes,tt=(_e=_e!=null)?Yf(s,et):Vf),j=new j($,tt),s.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,j.updater=Ei,s.stateNode=j,j._reactInternals=s,_e&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=et,s.__reactInternalMemoizedMaskedChildContext=tt),j}function Hi(s,j,$,_e){s=j.state,typeof j.componentWillReceiveProps=="function"&&j.componentWillReceiveProps($,_e),typeof j.UNSAFE_componentWillReceiveProps=="function"&&j.UNSAFE_componentWillReceiveProps($,_e),j.state!==s&&Ei.enqueueReplaceState(j,j.state,null)}function Ii(s,j,$,_e){var et=s.stateNode;et.props=$,et.state=s.memoizedState,et.refs={},kh(s);var tt=j.contextType;typeof tt=="object"&&tt!==null?et.context=eh(tt):(tt=Zf(j)?Xf:H.current,et.context=Yf(s,tt)),et.state=s.memoizedState,tt=j.getDerivedStateFromProps,typeof tt=="function"&&(Di(s,j,tt,$),et.state=s.memoizedState),typeof j.getDerivedStateFromProps=="function"||typeof et.getSnapshotBeforeUpdate=="function"||typeof et.UNSAFE_componentWillMount!="function"&&typeof et.componentWillMount!="function"||(j=et.state,typeof et.componentWillMount=="function"&&et.componentWillMount(),typeof et.UNSAFE_componentWillMount=="function"&&et.UNSAFE_componentWillMount(),j!==et.state&&Ei.enqueueReplaceState(et,et.state,null),qh(s,$,et,_e),et.state=s.memoizedState),typeof et.componentDidMount=="function"&&(s.flags|=4194308)}function Ji(s,j){try{var $="",_e=j;do $+=Pa(_e),_e=_e.return;while(_e);var et=$}catch(tt){et=` +`+et[nt].replace(" at new "," at ");return s.displayName&&ot.includes("")&&(ot=ot.replace("",s.displayName)),ot}while(1<=nt&&0<=rt);break}}}finally{Na=!1,Error.prepareStackTrace=$}return(s=s?s.displayName||s.name:"")?Ma(s):""}function Pa(s){switch(s.tag){case 5:return Ma(s.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return s=Oa(s.type,!1),s;case 11:return s=Oa(s.type.render,!1),s;case 1:return s=Oa(s.type,!0),s;default:return""}}function Qa(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Ca:return(s.displayName||"Context")+".Consumer";case Ba:return(s._context.displayName||"Context")+".Provider";case Da:var j=s.render;return s=s.displayName,s||(s=j.displayName||j.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case Ga:return j=s.displayName||null,j!==null?j:Qa(s.type)||"Memo";case Ha:j=s._payload,s=s._init;try{return Qa(s(j))}catch{}}return null}function Ra(s){var j=s.type;switch(s.tag){case 24:return"Cache";case 9:return(j.displayName||"Context")+".Consumer";case 10:return(j._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=j.render,s=s.displayName||s.name||"",j.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return j;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(j);case 8:return j===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j}return null}function Sa(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Ta(s){var j=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(j==="checkbox"||j==="radio")}function Ua(s){var j=Ta(s)?"checked":"value",$=Object.getOwnPropertyDescriptor(s.constructor.prototype,j),_e=""+s[j];if(!s.hasOwnProperty(j)&&typeof $<"u"&&typeof $.get=="function"&&typeof $.set=="function"){var et=$.get,tt=$.set;return Object.defineProperty(s,j,{configurable:!0,get:function(){return et.call(this)},set:function(nt){_e=""+nt,tt.call(this,nt)}}),Object.defineProperty(s,j,{enumerable:$.enumerable}),{getValue:function(){return _e},setValue:function(nt){_e=""+nt},stopTracking:function(){s._valueTracker=null,delete s[j]}}}}function Va(s){s._valueTracker||(s._valueTracker=Ua(s))}function Wa(s){if(!s)return!1;var j=s._valueTracker;if(!j)return!0;var $=j.getValue(),_e="";return s&&(_e=Ta(s)?s.checked?"true":"false":s.value),s=_e,s!==$?(j.setValue(s),!0):!1}function Xa(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Ya(s,j){var $=j.checked;return A$1({},j,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:$??s._wrapperState.initialChecked})}function Za(s,j){var $=j.defaultValue==null?"":j.defaultValue,_e=j.checked!=null?j.checked:j.defaultChecked;$=Sa(j.value!=null?j.value:$),s._wrapperState={initialChecked:_e,initialValue:$,controlled:j.type==="checkbox"||j.type==="radio"?j.checked!=null:j.value!=null}}function ab(s,j){j=j.checked,j!=null&&ta(s,"checked",j,!1)}function bb(s,j){ab(s,j);var $=Sa(j.value),_e=j.type;if($!=null)_e==="number"?($===0&&s.value===""||s.value!=$)&&(s.value=""+$):s.value!==""+$&&(s.value=""+$);else if(_e==="submit"||_e==="reset"){s.removeAttribute("value");return}j.hasOwnProperty("value")?cb(s,j.type,$):j.hasOwnProperty("defaultValue")&&cb(s,j.type,Sa(j.defaultValue)),j.checked==null&&j.defaultChecked!=null&&(s.defaultChecked=!!j.defaultChecked)}function db(s,j,$){if(j.hasOwnProperty("value")||j.hasOwnProperty("defaultValue")){var _e=j.type;if(!(_e!=="submit"&&_e!=="reset"||j.value!==void 0&&j.value!==null))return;j=""+s._wrapperState.initialValue,$||j===s.value||(s.value=j),s.defaultValue=j}$=s.name,$!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,$!==""&&(s.name=$)}function cb(s,j,$){(j!=="number"||Xa(s.ownerDocument)!==s)&&($==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+$&&(s.defaultValue=""+$))}var eb=Array.isArray;function fb(s,j,$,_e){if(s=s.options,j){j={};for(var et=0;et<$.length;et++)j["$"+$[et]]=!0;for($=0;$"+j.valueOf().toString()+"",j=mb.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;j.firstChild;)s.appendChild(j.firstChild)}});function ob(s,j){if(j){var $=s.firstChild;if($&&$===s.lastChild&&$.nodeType===3){$.nodeValue=j;return}}s.textContent=j}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(s){qb.forEach(function(j){j=j+s.charAt(0).toUpperCase()+s.substring(1),pb[j]=pb[s]})});function rb(s,j,$){return j==null||typeof j=="boolean"||j===""?"":$||typeof j!="number"||j===0||pb.hasOwnProperty(s)&&pb[s]?(""+j).trim():j+"px"}function sb(s,j){s=s.style;for(var $ in j)if(j.hasOwnProperty($)){var _e=$.indexOf("--")===0,et=rb($,j[$],_e);$==="float"&&($="cssFloat"),_e?s.setProperty($,et):s[$]=et}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(s,j){if(j){if(tb[s]&&(j.children!=null||j.dangerouslySetInnerHTML!=null))throw Error(p$3(137,s));if(j.dangerouslySetInnerHTML!=null){if(j.children!=null)throw Error(p$3(60));if(typeof j.dangerouslySetInnerHTML!="object"||!("__html"in j.dangerouslySetInnerHTML))throw Error(p$3(61))}if(j.style!=null&&typeof j.style!="object")throw Error(p$3(62))}}function vb(s,j){if(s.indexOf("-")===-1)return typeof j.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var yb=null,zb=null,Ab=null;function Bb(s){if(s=Cb(s)){if(typeof yb!="function")throw Error(p$3(280));var j=s.stateNode;j&&(j=Db(j),yb(s.stateNode,s.type,j))}}function Eb(s){zb?Ab?Ab.push(s):Ab=[s]:zb=s}function Fb(){if(zb){var s=zb,j=Ab;if(Ab=zb=null,Bb(s),j)for(s=0;s>>=0,s===0?32:31-(pc(s)/qc|0)|0}var rc=64,sc=4194304;function tc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function uc(s,j){var $=s.pendingLanes;if($===0)return 0;var _e=0,et=s.suspendedLanes,tt=s.pingedLanes,nt=$&268435455;if(nt!==0){var rt=nt&~et;rt!==0?_e=tc(rt):(tt&=nt,tt!==0&&(_e=tc(tt)))}else nt=$&~et,nt!==0?_e=tc(nt):tt!==0&&(_e=tc(tt));if(_e===0)return 0;if(j!==0&&j!==_e&&!(j&et)&&(et=_e&-_e,tt=j&-j,et>=tt||et===16&&(tt&4194240)!==0))return j;if(_e&4&&(_e|=$&16),j=s.entangledLanes,j!==0)for(s=s.entanglements,j&=_e;0$;$++)j.push(s);return j}function Ac(s,j,$){s.pendingLanes|=j,j!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,j=31-oc(j),s[j]=$}function Bc(s,j){var $=s.pendingLanes&~j;s.pendingLanes=j,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=j,s.mutableReadLanes&=j,s.entangledLanes&=j,j=s.entanglements;var _e=s.eventTimes;for(s=s.expirationTimes;0<$;){var et=31-oc($),tt=1<=be),ee=" ",fe=!1;function ge(s,j){switch(s){case"keyup":return $d.indexOf(j.keyCode)!==-1;case"keydown":return j.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ie=!1;function je(s,j){switch(s){case"compositionend":return he(j);case"keypress":return j.which!==32?null:(fe=!0,ee);case"textInput":return s=j.data,s===ee&&fe?null:s;default:return null}}function ke(s,j){if(ie)return s==="compositionend"||!ae&&ge(s,j)?(s=nd(),md=ld=kd=null,ie=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(j.ctrlKey||j.altKey||j.metaKey)||j.ctrlKey&&j.altKey){if(j.char&&1=j)return{node:$,offset:j-s};s=_e}e:{for(;$;){if($.nextSibling){$=$.nextSibling;break e}$=$.parentNode}$=void 0}$=Je($)}}function Le(s,j){return s&&j?s===j?!0:s&&s.nodeType===3?!1:j&&j.nodeType===3?Le(s,j.parentNode):"contains"in s?s.contains(j):s.compareDocumentPosition?!!(s.compareDocumentPosition(j)&16):!1:!1}function Me(){for(var s=window,j=Xa();j instanceof s.HTMLIFrameElement;){try{var $=typeof j.contentWindow.location.href=="string"}catch{$=!1}if($)s=j.contentWindow;else break;j=Xa(s.document)}return j}function Ne(s){var j=s&&s.nodeName&&s.nodeName.toLowerCase();return j&&(j==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||j==="textarea"||s.contentEditable==="true")}function Oe(s){var j=Me(),$=s.focusedElem,_e=s.selectionRange;if(j!==$&&$&&$.ownerDocument&&Le($.ownerDocument.documentElement,$)){if(_e!==null&&Ne($)){if(j=_e.start,s=_e.end,s===void 0&&(s=j),"selectionStart"in $)$.selectionStart=j,$.selectionEnd=Math.min(s,$.value.length);else if(s=(j=$.ownerDocument||document)&&j.defaultView||window,s.getSelection){s=s.getSelection();var et=$.textContent.length,tt=Math.min(_e.start,et);_e=_e.end===void 0?tt:Math.min(_e.end,et),!s.extend&&tt>_e&&(et=_e,_e=tt,tt=et),et=Ke($,tt);var nt=Ke($,_e);et&&nt&&(s.rangeCount!==1||s.anchorNode!==et.node||s.anchorOffset!==et.offset||s.focusNode!==nt.node||s.focusOffset!==nt.offset)&&(j=j.createRange(),j.setStart(et.node,et.offset),s.removeAllRanges(),tt>_e?(s.addRange(j),s.extend(nt.node,nt.offset)):(j.setEnd(nt.node,nt.offset),s.addRange(j)))}}for(j=[],s=$;s=s.parentNode;)s.nodeType===1&&j.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(s,j,$){var _e=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;Te||Qe==null||Qe!==Xa(_e)||(_e=Qe,"selectionStart"in _e&&Ne(_e)?_e={start:_e.selectionStart,end:_e.selectionEnd}:(_e=(_e.ownerDocument&&_e.ownerDocument.defaultView||window).getSelection(),_e={anchorNode:_e.anchorNode,anchorOffset:_e.anchorOffset,focusNode:_e.focusNode,focusOffset:_e.focusOffset}),Se&&Ie(Se,_e)||(Se=_e,_e=oe(Re,"onSelect"),0<_e.length&&(j=new td("onSelect","select",null,j,$),s.push({event:j,listeners:_e}),j.target=Qe)))}function Ve(s,j){var $={};return $[s.toLowerCase()]=j.toLowerCase(),$["Webkit"+s]="webkit"+j,$["Moz"+s]="moz"+j,$}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(s){if(Xe[s])return Xe[s];if(!We[s])return s;var j=We[s],$;for($ in j)if(j.hasOwnProperty($)&&$ in Ye)return Xe[s]=j[$];return s}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(s,j){df.set(s,j),fa(j,[s])}for(var gf=0;gfTf||(s.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(s,j){Tf++,Sf[Tf]=s.current,s.current=j}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(s,j){var $=s.type.contextTypes;if(!$)return Vf;var _e=s.stateNode;if(_e&&_e.__reactInternalMemoizedUnmaskedChildContext===j)return _e.__reactInternalMemoizedMaskedChildContext;var et={},tt;for(tt in $)et[tt]=j[tt];return _e&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=j,s.__reactInternalMemoizedMaskedChildContext=et),et}function Zf(s){return s=s.childContextTypes,s!=null}function $f(){E(Wf),E(H)}function ag(s,j,$){if(H.current!==Vf)throw Error(p$3(168));G(H,j),G(Wf,$)}function bg(s,j,$){var _e=s.stateNode;if(j=j.childContextTypes,typeof _e.getChildContext!="function")return $;_e=_e.getChildContext();for(var et in _e)if(!(et in j))throw Error(p$3(108,Ra(s)||"Unknown",et));return A$1({},$,_e)}function cg(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,s),G(Wf,Wf.current),!0}function dg(s,j,$){var _e=s.stateNode;if(!_e)throw Error(p$3(169));$?(s=bg(s,j,Xf),_e.__reactInternalMemoizedMergedChildContext=s,E(Wf),E(H),G(H,s)):E(Wf),G(Wf,$)}var eg=null,fg=!1,gg=!1;function hg(s){eg===null?eg=[s]:eg.push(s)}function ig(s){fg=!0,hg(s)}function jg(){if(!gg&&eg!==null){gg=!0;var s=0,j=C;try{var $=eg;for(C=1;s<$.length;s++){var _e=$[s];do _e=_e(!0);while(_e!==null)}eg=null,fg=!1}catch(et){throw eg!==null&&(eg=eg.slice(s+1)),ac(fc,jg),et}finally{C=j,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(s,j){kg[lg++]=ng,kg[lg++]=mg,mg=s,ng=j}function ug(s,j,$){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=s;var _e=rg;s=sg;var et=32-oc(_e)-1;_e&=~(1<>=nt,et-=nt,rg=1<<32-oc(j)+et|$<kt?(zt=wt,wt=null):zt=wt.sibling;var Ot=ct(yt,wt,pt[kt],xt);if(Ot===null){wt===null&&(wt=zt);break}s&&wt&&Ot.alternate===null&&j(yt,wt),mt=tt(Ot,mt,kt),Dt===null?Ct=Ot:Dt.sibling=Ot,Dt=Ot,wt=zt}if(kt===pt.length)return $(yt,wt),I&&tg(yt,kt),Ct;if(wt===null){for(;ktkt?(zt=wt,wt=null):zt=wt.sibling;var Ft=ct(yt,wt,Ot.value,xt);if(Ft===null){wt===null&&(wt=zt);break}s&&wt&&Ft.alternate===null&&j(yt,wt),mt=tt(Ft,mt,kt),Dt===null?Ct=Ft:Dt.sibling=Ft,Dt=Ft,wt=zt}if(Ot.done)return $(yt,wt),I&&tg(yt,kt),Ct;if(wt===null){for(;!Ot.done;kt++,Ot=pt.next())Ot=at(yt,Ot.value,xt),Ot!==null&&(mt=tt(Ot,mt,kt),Dt===null?Ct=Ot:Dt.sibling=Ot,Dt=Ot);return I&&tg(yt,kt),Ct}for(wt=_e(yt,wt);!Ot.done;kt++,Ot=pt.next())Ot=lt(wt,yt,kt,Ot.value,xt),Ot!==null&&(s&&Ot.alternate!==null&&wt.delete(Ot.key===null?kt:Ot.key),mt=tt(Ot,mt,kt),Dt===null?Ct=Ot:Dt.sibling=Ot,Dt=Ot);return s&&wt.forEach(function(Pt){return j(yt,Pt)}),I&&tg(yt,kt),Ct}function gt(yt,mt,pt,xt){if(typeof pt=="object"&&pt!==null&&pt.type===ya&&pt.key===null&&(pt=pt.props.children),typeof pt=="object"&&pt!==null){switch(pt.$$typeof){case va:e:{for(var Ct=pt.key,Dt=mt;Dt!==null;){if(Dt.key===Ct){if(Ct=pt.type,Ct===ya){if(Dt.tag===7){$(yt,Dt.sibling),mt=et(Dt,pt.props.children),mt.return=yt,yt=mt;break e}}else if(Dt.elementType===Ct||typeof Ct=="object"&&Ct!==null&&Ct.$$typeof===Ha&&Ng(Ct)===Dt.type){$(yt,Dt.sibling),mt=et(Dt,pt.props),mt.ref=Lg(yt,Dt,pt),mt.return=yt,yt=mt;break e}$(yt,Dt);break}else j(yt,Dt);Dt=Dt.sibling}pt.type===ya?(mt=Tg(pt.props.children,yt.mode,xt,pt.key),mt.return=yt,yt=mt):(xt=Rg(pt.type,pt.key,pt.props,null,yt.mode,xt),xt.ref=Lg(yt,mt,pt),xt.return=yt,yt=xt)}return nt(yt);case wa:e:{for(Dt=pt.key;mt!==null;){if(mt.key===Dt)if(mt.tag===4&&mt.stateNode.containerInfo===pt.containerInfo&&mt.stateNode.implementation===pt.implementation){$(yt,mt.sibling),mt=et(mt,pt.children||[]),mt.return=yt,yt=mt;break e}else{$(yt,mt);break}else j(yt,mt);mt=mt.sibling}mt=Sg(pt,yt.mode,xt),mt.return=yt,yt=mt}return nt(yt);case Ha:return Dt=pt._init,gt(yt,mt,Dt(pt._payload),xt)}if(eb(pt))return dt(yt,mt,pt,xt);if(Ka(pt))return ft(yt,mt,pt,xt);Mg(yt,pt)}return typeof pt=="string"&&pt!==""||typeof pt=="number"?(pt=""+pt,mt!==null&&mt.tag===6?($(yt,mt.sibling),mt=et(mt,pt),mt.return=yt,yt=mt):($(yt,mt),mt=Qg(pt,yt.mode,xt),mt.return=yt,yt=mt),nt(yt)):$(yt,mt)}return gt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(s){var j=Wg.current;E(Wg),s._currentValue=j}function bh(s,j,$){for(;s!==null;){var _e=s.alternate;if((s.childLanes&j)!==j?(s.childLanes|=j,_e!==null&&(_e.childLanes|=j)):_e!==null&&(_e.childLanes&j)!==j&&(_e.childLanes|=j),s===$)break;s=s.return}}function ch(s,j){Xg=s,Zg=Yg=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&j&&(dh=!0),s.firstContext=null)}function eh(s){var j=s._currentValue;if(Zg!==s)if(s={context:s,memoizedValue:j,next:null},Yg===null){if(Xg===null)throw Error(p$3(308));Yg=s,Xg.dependencies={lanes:0,firstContext:s}}else Yg=Yg.next=s;return j}var fh=null;function gh(s){fh===null?fh=[s]:fh.push(s)}function hh(s,j,$,_e){var et=j.interleaved;return et===null?($.next=$,gh(j)):($.next=et.next,et.next=$),j.interleaved=$,ih(s,_e)}function ih(s,j){s.lanes|=j;var $=s.alternate;for($!==null&&($.lanes|=j),$=s,s=s.return;s!==null;)s.childLanes|=j,$=s.alternate,$!==null&&($.childLanes|=j),$=s,s=s.return;return $.tag===3?$.stateNode:null}var jh=!1;function kh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(s,j){s=s.updateQueue,j.updateQueue===s&&(j.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function mh(s,j){return{eventTime:s,lane:j,tag:0,payload:null,callback:null,next:null}}function nh(s,j,$){var _e=s.updateQueue;if(_e===null)return null;if(_e=_e.shared,K&2){var et=_e.pending;return et===null?j.next=j:(j.next=et.next,et.next=j),_e.pending=j,ih(s,$)}return et=_e.interleaved,et===null?(j.next=j,gh(_e)):(j.next=et.next,et.next=j),_e.interleaved=j,ih(s,$)}function oh(s,j,$){if(j=j.updateQueue,j!==null&&(j=j.shared,($&4194240)!==0)){var _e=j.lanes;_e&=s.pendingLanes,$|=_e,j.lanes=$,Cc(s,$)}}function ph(s,j){var $=s.updateQueue,_e=s.alternate;if(_e!==null&&(_e=_e.updateQueue,$===_e)){var et=null,tt=null;if($=$.firstBaseUpdate,$!==null){do{var nt={eventTime:$.eventTime,lane:$.lane,tag:$.tag,payload:$.payload,callback:$.callback,next:null};tt===null?et=tt=nt:tt=tt.next=nt,$=$.next}while($!==null);tt===null?et=tt=j:tt=tt.next=j}else et=tt=j;$={baseState:_e.baseState,firstBaseUpdate:et,lastBaseUpdate:tt,shared:_e.shared,effects:_e.effects},s.updateQueue=$;return}s=$.lastBaseUpdate,s===null?$.firstBaseUpdate=j:s.next=j,$.lastBaseUpdate=j}function qh(s,j,$,_e){var et=s.updateQueue;jh=!1;var tt=et.firstBaseUpdate,nt=et.lastBaseUpdate,rt=et.shared.pending;if(rt!==null){et.shared.pending=null;var ot=rt,it=ot.next;ot.next=null,nt===null?tt=it:nt.next=it,nt=ot;var st=s.alternate;st!==null&&(st=st.updateQueue,rt=st.lastBaseUpdate,rt!==nt&&(rt===null?st.firstBaseUpdate=it:rt.next=it,st.lastBaseUpdate=ot))}if(tt!==null){var at=et.baseState;nt=0,st=it=ot=null,rt=tt;do{var ct=rt.lane,lt=rt.eventTime;if((_e&ct)===ct){st!==null&&(st=st.next={eventTime:lt,lane:0,tag:rt.tag,payload:rt.payload,callback:rt.callback,next:null});e:{var dt=s,ft=rt;switch(ct=j,lt=$,ft.tag){case 1:if(dt=ft.payload,typeof dt=="function"){at=dt.call(lt,at,ct);break e}at=dt;break e;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=ft.payload,ct=typeof dt=="function"?dt.call(lt,at,ct):dt,ct==null)break e;at=A$1({},at,ct);break e;case 2:jh=!0}}rt.callback!==null&&rt.lane!==0&&(s.flags|=64,ct=et.effects,ct===null?et.effects=[rt]:ct.push(rt))}else lt={eventTime:lt,lane:ct,tag:rt.tag,payload:rt.payload,callback:rt.callback,next:null},st===null?(it=st=lt,ot=at):st=st.next=lt,nt|=ct;if(rt=rt.next,rt===null){if(rt=et.shared.pending,rt===null)break;ct=rt,rt=ct.next,ct.next=null,et.lastBaseUpdate=ct,et.shared.pending=null}}while(!0);if(st===null&&(ot=at),et.baseState=ot,et.firstBaseUpdate=it,et.lastBaseUpdate=st,j=et.shared.interleaved,j!==null){et=j;do nt|=et.lane,et=et.next;while(et!==j)}else tt===null&&(et.shared.lanes=0);rh|=nt,s.lanes=nt,s.memoizedState=at}}function sh(s,j,$){if(s=j.effects,j.effects=null,s!==null)for(j=0;j$?$:4,s(!0);var _e=Gh.transition;Gh.transition={};try{s(!1),j()}finally{C=$,Gh.transition=_e}}function wi(){return Uh().memoizedState}function xi(s,j,$){var _e=yi(s);if($={lane:_e,action:$,hasEagerState:!1,eagerState:null,next:null},zi(s))Ai(j,$);else if($=hh(s,j,$,_e),$!==null){var et=R();gi($,s,_e,et),Bi($,j,_e)}}function ii(s,j,$){var _e=yi(s),et={lane:_e,action:$,hasEagerState:!1,eagerState:null,next:null};if(zi(s))Ai(j,et);else{var tt=s.alternate;if(s.lanes===0&&(tt===null||tt.lanes===0)&&(tt=j.lastRenderedReducer,tt!==null))try{var nt=j.lastRenderedState,rt=tt(nt,$);if(et.hasEagerState=!0,et.eagerState=rt,He(rt,nt)){var ot=j.interleaved;ot===null?(et.next=et,gh(j)):(et.next=ot.next,ot.next=et),j.interleaved=et;return}}catch{}finally{}$=hh(s,j,et,_e),$!==null&&(et=R(),gi($,s,_e,et),Bi($,j,_e))}}function zi(s){var j=s.alternate;return s===M||j!==null&&j===M}function Ai(s,j){Jh=Ih=!0;var $=s.pending;$===null?j.next=j:(j.next=$.next,$.next=j),s.pending=j}function Bi(s,j,$){if($&4194240){var _e=j.lanes;_e&=s.pendingLanes,$|=_e,j.lanes=$,Cc(s,$)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(s,j){return Th().memoizedState=[s,j===void 0?null:j],s},useContext:eh,useEffect:mi,useImperativeHandle:function(s,j,$){return $=$!=null?$.concat([s]):null,ki(4194308,4,pi.bind(null,j,s),$)},useLayoutEffect:function(s,j){return ki(4194308,4,s,j)},useInsertionEffect:function(s,j){return ki(4,2,s,j)},useMemo:function(s,j){var $=Th();return j=j===void 0?null:j,s=s(),$.memoizedState=[s,j],s},useReducer:function(s,j,$){var _e=Th();return j=$!==void 0?$(j):j,_e.memoizedState=_e.baseState=j,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:j},_e.queue=s,s=s.dispatch=xi.bind(null,M,s),[_e.memoizedState,s]},useRef:function(s){var j=Th();return s={current:s},j.memoizedState=s},useState:hi,useDebugValue:ri,useDeferredValue:function(s){return Th().memoizedState=s},useTransition:function(){var s=hi(!1),j=s[0];return s=vi.bind(null,s[1]),Th().memoizedState=s,[j,s]},useMutableSource:function(){},useSyncExternalStore:function(s,j,$){var _e=M,et=Th();if(I){if($===void 0)throw Error(p$3(407));$=$()}else{if($=j(),Q===null)throw Error(p$3(349));Hh&30||di(_e,j,$)}et.memoizedState=$;var tt={value:$,getSnapshot:j};return et.queue=tt,mi(ai.bind(null,_e,tt,s),[s]),_e.flags|=2048,bi(9,ci.bind(null,_e,tt,$,j),void 0,null),$},useId:function(){var s=Th(),j=Q.identifierPrefix;if(I){var $=sg,_e=rg;$=(_e&~(1<<32-oc(_e)-1)).toString(32)+$,j=":"+j+"R"+$,$=Kh++,0<$&&(j+="H"+$.toString(32)),j+=":"}else $=Lh++,j=":"+j+"r"+$.toString(32)+":";return s.memoizedState=j},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(s){var j=Uh();return ui(j,N.memoizedState,s)},useTransition:function(){var s=Wh(Vh)[0],j=Uh().memoizedState;return[s,j]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(s){var j=Uh();return N===null?j.memoizedState=s:ui(j,N.memoizedState,s)},useTransition:function(){var s=Xh(Vh)[0],j=Uh().memoizedState;return[s,j]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(s,j){if(s&&s.defaultProps){j=A$1({},j),s=s.defaultProps;for(var $ in s)j[$]===void 0&&(j[$]=s[$]);return j}return j}function Di(s,j,$,_e){j=s.memoizedState,$=$(_e,j),$=$==null?j:A$1({},j,$),s.memoizedState=$,s.lanes===0&&(s.updateQueue.baseState=$)}var Ei={isMounted:function(s){return(s=s._reactInternals)?Vb(s)===s:!1},enqueueSetState:function(s,j,$){s=s._reactInternals;var _e=R(),et=yi(s),tt=mh(_e,et);tt.payload=j,$!=null&&(tt.callback=$),j=nh(s,tt,et),j!==null&&(gi(j,s,et,_e),oh(j,s,et))},enqueueReplaceState:function(s,j,$){s=s._reactInternals;var _e=R(),et=yi(s),tt=mh(_e,et);tt.tag=1,tt.payload=j,$!=null&&(tt.callback=$),j=nh(s,tt,et),j!==null&&(gi(j,s,et,_e),oh(j,s,et))},enqueueForceUpdate:function(s,j){s=s._reactInternals;var $=R(),_e=yi(s),et=mh($,_e);et.tag=2,j!=null&&(et.callback=j),j=nh(s,et,_e),j!==null&&(gi(j,s,_e,$),oh(j,s,_e))}};function Fi(s,j,$,_e,et,tt,nt){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(_e,tt,nt):j.prototype&&j.prototype.isPureReactComponent?!Ie($,_e)||!Ie(et,tt):!0}function Gi(s,j,$){var _e=!1,et=Vf,tt=j.contextType;return typeof tt=="object"&&tt!==null?tt=eh(tt):(et=Zf(j)?Xf:H.current,_e=j.contextTypes,tt=(_e=_e!=null)?Yf(s,et):Vf),j=new j($,tt),s.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,j.updater=Ei,s.stateNode=j,j._reactInternals=s,_e&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=et,s.__reactInternalMemoizedMaskedChildContext=tt),j}function Hi(s,j,$,_e){s=j.state,typeof j.componentWillReceiveProps=="function"&&j.componentWillReceiveProps($,_e),typeof j.UNSAFE_componentWillReceiveProps=="function"&&j.UNSAFE_componentWillReceiveProps($,_e),j.state!==s&&Ei.enqueueReplaceState(j,j.state,null)}function Ii(s,j,$,_e){var et=s.stateNode;et.props=$,et.state=s.memoizedState,et.refs={},kh(s);var tt=j.contextType;typeof tt=="object"&&tt!==null?et.context=eh(tt):(tt=Zf(j)?Xf:H.current,et.context=Yf(s,tt)),et.state=s.memoizedState,tt=j.getDerivedStateFromProps,typeof tt=="function"&&(Di(s,j,tt,$),et.state=s.memoizedState),typeof j.getDerivedStateFromProps=="function"||typeof et.getSnapshotBeforeUpdate=="function"||typeof et.UNSAFE_componentWillMount!="function"&&typeof et.componentWillMount!="function"||(j=et.state,typeof et.componentWillMount=="function"&&et.componentWillMount(),typeof et.UNSAFE_componentWillMount=="function"&&et.UNSAFE_componentWillMount(),j!==et.state&&Ei.enqueueReplaceState(et,et.state,null),qh(s,$,et,_e),et.state=s.memoizedState),typeof et.componentDidMount=="function"&&(s.flags|=4194308)}function Ji(s,j){try{var $="",_e=j;do $+=Pa(_e),_e=_e.return;while(_e);var et=$}catch(tt){et=` Error generating stack: `+tt.message+` -`+tt.stack}return{value:s,source:j,stack:et,digest:null}}function Ki(s,j,$){return{value:s,source:null,stack:$??null,digest:j??null}}function Li(s,j){try{console.error(j.value)}catch($){setTimeout(function(){throw $})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(s,j,$){$=mh(-1,$),$.tag=3,$.payload={element:null};var _e=j.value;return $.callback=function(){Oi||(Oi=!0,Pi=_e),Li(s,j)},$}function Qi(s,j,$){$=mh(-1,$),$.tag=3;var _e=s.type.getDerivedStateFromError;if(typeof _e=="function"){var et=j.value;$.payload=function(){return _e(et)},$.callback=function(){Li(s,j)}}var tt=s.stateNode;return tt!==null&&typeof tt.componentDidCatch=="function"&&($.callback=function(){Li(s,j),typeof _e!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var nt=j.stack;this.componentDidCatch(j.value,{componentStack:nt!==null?nt:""})}),$}function Si(s,j,$){var _e=s.pingCache;if(_e===null){_e=s.pingCache=new Mi;var et=new Set;_e.set(j,et)}else et=_e.get(j),et===void 0&&(et=new Set,_e.set(j,et));et.has($)||(et.add($),s=Ti.bind(null,s,j,$),j.then(s,s))}function Ui(s){do{var j;if((j=s.tag===13)&&(j=s.memoizedState,j=j!==null?j.dehydrated!==null:!0),j)return s;s=s.return}while(s!==null);return null}function Vi(s,j,$,_e,et){return s.mode&1?(s.flags|=65536,s.lanes=et,s):(s===j?s.flags|=65536:(s.flags|=128,$.flags|=131072,$.flags&=-52805,$.tag===1&&($.alternate===null?$.tag=17:(j=mh(-1,1),j.tag=2,nh($,j,1))),$.lanes|=1),s)}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(s,j,$,_e){j.child=s===null?Vg(j,null,$,_e):Ug(j,s.child,$,_e)}function Yi(s,j,$,_e,et){$=$.render;var tt=j.ref;return ch(j,et),_e=Nh(s,j,$,_e,tt,et),$=Sh(),s!==null&&!dh?(j.updateQueue=s.updateQueue,j.flags&=-2053,s.lanes&=~et,Zi(s,j,et)):(I&&$&&vg(j),j.flags|=1,Xi(s,j,_e,et),j.child)}function $i(s,j,$,_e,et){if(s===null){var tt=$.type;return typeof tt=="function"&&!aj(tt)&&tt.defaultProps===void 0&&$.compare===null&&$.defaultProps===void 0?(j.tag=15,j.type=tt,bj(s,j,tt,_e,et)):(s=Rg($.type,null,_e,j,j.mode,et),s.ref=j.ref,s.return=j,j.child=s)}if(tt=s.child,!(s.lanes&et)){var nt=tt.memoizedProps;if($=$.compare,$=$!==null?$:Ie,$(nt,_e)&&s.ref===j.ref)return Zi(s,j,et)}return j.flags|=1,s=Pg(tt,_e),s.ref=j.ref,s.return=j,j.child=s}function bj(s,j,$,_e,et){if(s!==null){var tt=s.memoizedProps;if(Ie(tt,_e)&&s.ref===j.ref)if(dh=!1,j.pendingProps=_e=tt,(s.lanes&et)!==0)s.flags&131072&&(dh=!0);else return j.lanes=s.lanes,Zi(s,j,et)}return cj(s,j,$,_e,et)}function dj(s,j,$){var _e=j.pendingProps,et=_e.children,tt=s!==null?s.memoizedState:null;if(_e.mode==="hidden")if(!(j.mode&1))j.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=$;else{if(!($&1073741824))return s=tt!==null?tt.baseLanes|$:$,j.lanes=j.childLanes=1073741824,j.memoizedState={baseLanes:s,cachePool:null,transitions:null},j.updateQueue=null,G(ej,fj),fj|=s,null;j.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e=tt!==null?tt.baseLanes:$,G(ej,fj),fj|=_e}else tt!==null?(_e=tt.baseLanes|$,j.memoizedState=null):_e=$,G(ej,fj),fj|=_e;return Xi(s,j,et,$),j.child}function gj(s,j){var $=j.ref;(s===null&&$!==null||s!==null&&s.ref!==$)&&(j.flags|=512,j.flags|=2097152)}function cj(s,j,$,_e,et){var tt=Zf($)?Xf:H.current;return tt=Yf(j,tt),ch(j,et),$=Nh(s,j,$,_e,tt,et),_e=Sh(),s!==null&&!dh?(j.updateQueue=s.updateQueue,j.flags&=-2053,s.lanes&=~et,Zi(s,j,et)):(I&&_e&&vg(j),j.flags|=1,Xi(s,j,$,et),j.child)}function hj(s,j,$,_e,et){if(Zf($)){var tt=!0;cg(j)}else tt=!1;if(ch(j,et),j.stateNode===null)ij(s,j),Gi(j,$,_e),Ii(j,$,_e,et),_e=!0;else if(s===null){var nt=j.stateNode,rt=j.memoizedProps;nt.props=rt;var ot=nt.context,it=$.contextType;typeof it=="object"&&it!==null?it=eh(it):(it=Zf($)?Xf:H.current,it=Yf(j,it));var st=$.getDerivedStateFromProps,at=typeof st=="function"||typeof nt.getSnapshotBeforeUpdate=="function";at||typeof nt.UNSAFE_componentWillReceiveProps!="function"&&typeof nt.componentWillReceiveProps!="function"||(rt!==_e||ot!==it)&&Hi(j,nt,_e,it),jh=!1;var ct=j.memoizedState;nt.state=ct,qh(j,_e,nt,et),ot=j.memoizedState,rt!==_e||ct!==ot||Wf.current||jh?(typeof st=="function"&&(Di(j,$,st,_e),ot=j.memoizedState),(rt=jh||Fi(j,$,rt,_e,ct,ot,it))?(at||typeof nt.UNSAFE_componentWillMount!="function"&&typeof nt.componentWillMount!="function"||(typeof nt.componentWillMount=="function"&&nt.componentWillMount(),typeof nt.UNSAFE_componentWillMount=="function"&&nt.UNSAFE_componentWillMount()),typeof nt.componentDidMount=="function"&&(j.flags|=4194308)):(typeof nt.componentDidMount=="function"&&(j.flags|=4194308),j.memoizedProps=_e,j.memoizedState=ot),nt.props=_e,nt.state=ot,nt.context=it,_e=rt):(typeof nt.componentDidMount=="function"&&(j.flags|=4194308),_e=!1)}else{nt=j.stateNode,lh(s,j),rt=j.memoizedProps,it=j.type===j.elementType?rt:Ci(j.type,rt),nt.props=it,at=j.pendingProps,ct=nt.context,ot=$.contextType,typeof ot=="object"&&ot!==null?ot=eh(ot):(ot=Zf($)?Xf:H.current,ot=Yf(j,ot));var lt=$.getDerivedStateFromProps;(st=typeof lt=="function"||typeof nt.getSnapshotBeforeUpdate=="function")||typeof nt.UNSAFE_componentWillReceiveProps!="function"&&typeof nt.componentWillReceiveProps!="function"||(rt!==at||ct!==ot)&&Hi(j,nt,_e,ot),jh=!1,ct=j.memoizedState,nt.state=ct,qh(j,_e,nt,et);var dt=j.memoizedState;rt!==at||ct!==dt||Wf.current||jh?(typeof lt=="function"&&(Di(j,$,lt,_e),dt=j.memoizedState),(it=jh||Fi(j,$,it,_e,ct,dt,ot)||!1)?(st||typeof nt.UNSAFE_componentWillUpdate!="function"&&typeof nt.componentWillUpdate!="function"||(typeof nt.componentWillUpdate=="function"&&nt.componentWillUpdate(_e,dt,ot),typeof nt.UNSAFE_componentWillUpdate=="function"&&nt.UNSAFE_componentWillUpdate(_e,dt,ot)),typeof nt.componentDidUpdate=="function"&&(j.flags|=4),typeof nt.getSnapshotBeforeUpdate=="function"&&(j.flags|=1024)):(typeof nt.componentDidUpdate!="function"||rt===s.memoizedProps&&ct===s.memoizedState||(j.flags|=4),typeof nt.getSnapshotBeforeUpdate!="function"||rt===s.memoizedProps&&ct===s.memoizedState||(j.flags|=1024),j.memoizedProps=_e,j.memoizedState=dt),nt.props=_e,nt.state=dt,nt.context=ot,_e=it):(typeof nt.componentDidUpdate!="function"||rt===s.memoizedProps&&ct===s.memoizedState||(j.flags|=4),typeof nt.getSnapshotBeforeUpdate!="function"||rt===s.memoizedProps&&ct===s.memoizedState||(j.flags|=1024),_e=!1)}return jj(s,j,$,_e,tt,et)}function jj(s,j,$,_e,et,tt){gj(s,j);var nt=(j.flags&128)!==0;if(!_e&&!nt)return et&&dg(j,$,!1),Zi(s,j,tt);_e=j.stateNode,Wi.current=j;var rt=nt&&typeof $.getDerivedStateFromError!="function"?null:_e.render();return j.flags|=1,s!==null&&nt?(j.child=Ug(j,s.child,null,tt),j.child=Ug(j,null,rt,tt)):Xi(s,j,rt,tt),j.memoizedState=_e.state,et&&dg(j,$,!0),j.child}function kj(s){var j=s.stateNode;j.pendingContext?ag(s,j.pendingContext,j.pendingContext!==j.context):j.context&&ag(s,j.context,!1),yh(s,j.containerInfo)}function lj(s,j,$,_e,et){return Ig(),Jg(et),j.flags|=256,Xi(s,j,$,_e),j.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(s){return{baseLanes:s,cachePool:null,transitions:null}}function oj(s,j,$){var _e=j.pendingProps,et=L.current,tt=!1,nt=(j.flags&128)!==0,rt;if((rt=nt)||(rt=s!==null&&s.memoizedState===null?!1:(et&2)!==0),rt?(tt=!0,j.flags&=-129):(s===null||s.memoizedState!==null)&&(et|=1),G(L,et&1),s===null)return Eg(j),s=j.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?(j.mode&1?s.data==="$!"?j.lanes=8:j.lanes=1073741824:j.lanes=1,null):(nt=_e.children,s=_e.fallback,tt?(_e=j.mode,tt=j.child,nt={mode:"hidden",children:nt},!(_e&1)&&tt!==null?(tt.childLanes=0,tt.pendingProps=nt):tt=pj(nt,_e,0,null),s=Tg(s,_e,$,null),tt.return=j,s.return=j,tt.sibling=s,j.child=tt,j.child.memoizedState=nj($),j.memoizedState=mj,s):qj(j,nt));if(et=s.memoizedState,et!==null&&(rt=et.dehydrated,rt!==null))return rj(s,j,nt,_e,rt,et,$);if(tt){tt=_e.fallback,nt=j.mode,et=s.child,rt=et.sibling;var ot={mode:"hidden",children:_e.children};return!(nt&1)&&j.child!==et?(_e=j.child,_e.childLanes=0,_e.pendingProps=ot,j.deletions=null):(_e=Pg(et,ot),_e.subtreeFlags=et.subtreeFlags&14680064),rt!==null?tt=Pg(rt,tt):(tt=Tg(tt,nt,$,null),tt.flags|=2),tt.return=j,_e.return=j,_e.sibling=tt,j.child=_e,_e=tt,tt=j.child,nt=s.child.memoizedState,nt=nt===null?nj($):{baseLanes:nt.baseLanes|$,cachePool:null,transitions:nt.transitions},tt.memoizedState=nt,tt.childLanes=s.childLanes&~$,j.memoizedState=mj,_e}return tt=s.child,s=tt.sibling,_e=Pg(tt,{mode:"visible",children:_e.children}),!(j.mode&1)&&(_e.lanes=$),_e.return=j,_e.sibling=null,s!==null&&($=j.deletions,$===null?(j.deletions=[s],j.flags|=16):$.push(s)),j.child=_e,j.memoizedState=null,_e}function qj(s,j){return j=pj({mode:"visible",children:j},s.mode,0,null),j.return=s,s.child=j}function sj(s,j,$,_e){return _e!==null&&Jg(_e),Ug(j,s.child,null,$),s=qj(j,j.pendingProps.children),s.flags|=2,j.memoizedState=null,s}function rj(s,j,$,_e,et,tt,nt){if($)return j.flags&256?(j.flags&=-257,_e=Ki(Error(p$3(422))),sj(s,j,nt,_e)):j.memoizedState!==null?(j.child=s.child,j.flags|=128,null):(tt=_e.fallback,et=j.mode,_e=pj({mode:"visible",children:_e.children},et,0,null),tt=Tg(tt,et,nt,null),tt.flags|=2,_e.return=j,tt.return=j,_e.sibling=tt,j.child=_e,j.mode&1&&Ug(j,s.child,null,nt),j.child.memoizedState=nj(nt),j.memoizedState=mj,tt);if(!(j.mode&1))return sj(s,j,nt,null);if(et.data==="$!"){if(_e=et.nextSibling&&et.nextSibling.dataset,_e)var rt=_e.dgst;return _e=rt,tt=Error(p$3(419)),_e=Ki(tt,_e,void 0),sj(s,j,nt,_e)}if(rt=(nt&s.childLanes)!==0,dh||rt){if(_e=Q,_e!==null){switch(nt&-nt){case 4:et=2;break;case 16:et=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:et=32;break;case 536870912:et=268435456;break;default:et=0}et=et&(_e.suspendedLanes|nt)?0:et,et!==0&&et!==tt.retryLane&&(tt.retryLane=et,ih(s,et),gi(_e,s,et,-1))}return tj(),_e=Ki(Error(p$3(421))),sj(s,j,nt,_e)}return et.data==="$?"?(j.flags|=128,j.child=s.child,j=uj.bind(null,s),et._reactRetry=j,null):(s=tt.treeContext,yg=Lf(et.nextSibling),xg=j,I=!0,zg=null,s!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=s.id,sg=s.overflow,qg=j),j=qj(j,_e.children),j.flags|=4096,j)}function vj(s,j,$){s.lanes|=j;var _e=s.alternate;_e!==null&&(_e.lanes|=j),bh(s.return,j,$)}function wj(s,j,$,_e,et){var tt=s.memoizedState;tt===null?s.memoizedState={isBackwards:j,rendering:null,renderingStartTime:0,last:_e,tail:$,tailMode:et}:(tt.isBackwards=j,tt.rendering=null,tt.renderingStartTime=0,tt.last=_e,tt.tail=$,tt.tailMode=et)}function xj(s,j,$){var _e=j.pendingProps,et=_e.revealOrder,tt=_e.tail;if(Xi(s,j,_e.children,$),_e=L.current,_e&2)_e=_e&1|2,j.flags|=128;else{if(s!==null&&s.flags&128)e:for(s=j.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&vj(s,$,j);else if(s.tag===19)vj(s,$,j);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===j)break e;for(;s.sibling===null;){if(s.return===null||s.return===j)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}_e&=1}if(G(L,_e),!(j.mode&1))j.memoizedState=null;else switch(et){case"forwards":for($=j.child,et=null;$!==null;)s=$.alternate,s!==null&&Ch(s)===null&&(et=$),$=$.sibling;$=et,$===null?(et=j.child,j.child=null):(et=$.sibling,$.sibling=null),wj(j,!1,et,$,tt);break;case"backwards":for($=null,et=j.child,j.child=null;et!==null;){if(s=et.alternate,s!==null&&Ch(s)===null){j.child=et;break}s=et.sibling,et.sibling=$,$=et,et=s}wj(j,!0,$,null,tt);break;case"together":wj(j,!1,null,null,void 0);break;default:j.memoizedState=null}return j.child}function ij(s,j){!(j.mode&1)&&s!==null&&(s.alternate=null,j.alternate=null,j.flags|=2)}function Zi(s,j,$){if(s!==null&&(j.dependencies=s.dependencies),rh|=j.lanes,!($&j.childLanes))return null;if(s!==null&&j.child!==s.child)throw Error(p$3(153));if(j.child!==null){for(s=j.child,$=Pg(s,s.pendingProps),j.child=$,$.return=j;s.sibling!==null;)s=s.sibling,$=$.sibling=Pg(s,s.pendingProps),$.return=j;$.sibling=null}return j.child}function yj(s,j,$){switch(j.tag){case 3:kj(j),Ig();break;case 5:Ah(j);break;case 1:Zf(j.type)&&cg(j);break;case 4:yh(j,j.stateNode.containerInfo);break;case 10:var _e=j.type._context,et=j.memoizedProps.value;G(Wg,_e._currentValue),_e._currentValue=et;break;case 13:if(_e=j.memoizedState,_e!==null)return _e.dehydrated!==null?(G(L,L.current&1),j.flags|=128,null):$&j.child.childLanes?oj(s,j,$):(G(L,L.current&1),s=Zi(s,j,$),s!==null?s.sibling:null);G(L,L.current&1);break;case 19:if(_e=($&j.childLanes)!==0,s.flags&128){if(_e)return xj(s,j,$);j.flags|=128}if(et=j.memoizedState,et!==null&&(et.rendering=null,et.tail=null,et.lastEffect=null),G(L,L.current),_e)break;return null;case 22:case 23:return j.lanes=0,dj(s,j,$)}return Zi(s,j,$)}var zj,Aj,Bj,Cj;zj=function(s,j){for(var $=j.child;$!==null;){if($.tag===5||$.tag===6)s.appendChild($.stateNode);else if($.tag!==4&&$.child!==null){$.child.return=$,$=$.child;continue}if($===j)break;for(;$.sibling===null;){if($.return===null||$.return===j)return;$=$.return}$.sibling.return=$.return,$=$.sibling}};Aj=function(){};Bj=function(s,j,$,_e){var et=s.memoizedProps;if(et!==_e){s=j.stateNode,xh(uh.current);var tt=null;switch($){case"input":et=Ya(s,et),_e=Ya(s,_e),tt=[];break;case"select":et=A$1({},et,{value:void 0}),_e=A$1({},_e,{value:void 0}),tt=[];break;case"textarea":et=gb(s,et),_e=gb(s,_e),tt=[];break;default:typeof et.onClick!="function"&&typeof _e.onClick=="function"&&(s.onclick=Bf)}ub($,_e);var nt;$=null;for(it in et)if(!_e.hasOwnProperty(it)&&et.hasOwnProperty(it)&&et[it]!=null)if(it==="style"){var rt=et[it];for(nt in rt)rt.hasOwnProperty(nt)&&($||($={}),$[nt]="")}else it!=="dangerouslySetInnerHTML"&&it!=="children"&&it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&it!=="autoFocus"&&(ea.hasOwnProperty(it)?tt||(tt=[]):(tt=tt||[]).push(it,null));for(it in _e){var ot=_e[it];if(rt=et!=null?et[it]:void 0,_e.hasOwnProperty(it)&&ot!==rt&&(ot!=null||rt!=null))if(it==="style")if(rt){for(nt in rt)!rt.hasOwnProperty(nt)||ot&&ot.hasOwnProperty(nt)||($||($={}),$[nt]="");for(nt in ot)ot.hasOwnProperty(nt)&&rt[nt]!==ot[nt]&&($||($={}),$[nt]=ot[nt])}else $||(tt||(tt=[]),tt.push(it,$)),$=ot;else it==="dangerouslySetInnerHTML"?(ot=ot?ot.__html:void 0,rt=rt?rt.__html:void 0,ot!=null&&rt!==ot&&(tt=tt||[]).push(it,ot)):it==="children"?typeof ot!="string"&&typeof ot!="number"||(tt=tt||[]).push(it,""+ot):it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&(ea.hasOwnProperty(it)?(ot!=null&&it==="onScroll"&&D("scroll",s),tt||rt===ot||(tt=[])):(tt=tt||[]).push(it,ot))}$&&(tt=tt||[]).push("style",$);var it=tt;(j.updateQueue=it)&&(j.flags|=4)}};Cj=function(s,j,$,_e){$!==_e&&(j.flags|=4)};function Dj(s,j){if(!I)switch(s.tailMode){case"hidden":j=s.tail;for(var $=null;j!==null;)j.alternate!==null&&($=j),j=j.sibling;$===null?s.tail=null:$.sibling=null;break;case"collapsed":$=s.tail;for(var _e=null;$!==null;)$.alternate!==null&&(_e=$),$=$.sibling;_e===null?j||s.tail===null?s.tail=null:s.tail.sibling=null:_e.sibling=null}}function S(s){var j=s.alternate!==null&&s.alternate.child===s.child,$=0,_e=0;if(j)for(var et=s.child;et!==null;)$|=et.lanes|et.childLanes,_e|=et.subtreeFlags&14680064,_e|=et.flags&14680064,et.return=s,et=et.sibling;else for(et=s.child;et!==null;)$|=et.lanes|et.childLanes,_e|=et.subtreeFlags,_e|=et.flags,et.return=s,et=et.sibling;return s.subtreeFlags|=_e,s.childLanes=$,j}function Ej(s,j,$){var _e=j.pendingProps;switch(wg(j),j.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(j),null;case 1:return Zf(j.type)&&$f(),S(j),null;case 3:return _e=j.stateNode,zh(),E(Wf),E(H),Eh(),_e.pendingContext&&(_e.context=_e.pendingContext,_e.pendingContext=null),(s===null||s.child===null)&&(Gg(j)?j.flags|=4:s===null||s.memoizedState.isDehydrated&&!(j.flags&256)||(j.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(s,j),S(j),null;case 5:Bh(j);var et=xh(wh.current);if($=j.type,s!==null&&j.stateNode!=null)Bj(s,j,$,_e,et),s.ref!==j.ref&&(j.flags|=512,j.flags|=2097152);else{if(!_e){if(j.stateNode===null)throw Error(p$3(166));return S(j),null}if(s=xh(uh.current),Gg(j)){_e=j.stateNode,$=j.type;var tt=j.memoizedProps;switch(_e[Of]=j,_e[Pf]=tt,s=(j.mode&1)!==0,$){case"dialog":D("cancel",_e),D("close",_e);break;case"iframe":case"object":case"embed":D("load",_e);break;case"video":case"audio":for(et=0;et<\/script>",s=s.removeChild(s.firstChild)):typeof _e.is=="string"?s=nt.createElement($,{is:_e.is}):(s=nt.createElement($),$==="select"&&(nt=s,_e.multiple?nt.multiple=!0:_e.size&&(nt.size=_e.size))):s=nt.createElementNS(s,$),s[Of]=j,s[Pf]=_e,zj(s,j,!1,!1),j.stateNode=s;e:{switch(nt=vb($,_e),$){case"dialog":D("cancel",s),D("close",s),et=_e;break;case"iframe":case"object":case"embed":D("load",s),et=_e;break;case"video":case"audio":for(et=0;etGj&&(j.flags|=128,_e=!0,Dj(tt,!1),j.lanes=4194304)}else{if(!_e)if(s=Ch(nt),s!==null){if(j.flags|=128,_e=!0,$=s.updateQueue,$!==null&&(j.updateQueue=$,j.flags|=4),Dj(tt,!0),tt.tail===null&&tt.tailMode==="hidden"&&!nt.alternate&&!I)return S(j),null}else 2*B()-tt.renderingStartTime>Gj&&$!==1073741824&&(j.flags|=128,_e=!0,Dj(tt,!1),j.lanes=4194304);tt.isBackwards?(nt.sibling=j.child,j.child=nt):($=tt.last,$!==null?$.sibling=nt:j.child=nt,tt.last=nt)}return tt.tail!==null?(j=tt.tail,tt.rendering=j,tt.tail=j.sibling,tt.renderingStartTime=B(),j.sibling=null,$=L.current,G(L,_e?$&1|2:$&1),j):(S(j),null);case 22:case 23:return Hj(),_e=j.memoizedState!==null,s!==null&&s.memoizedState!==null!==_e&&(j.flags|=8192),_e&&j.mode&1?fj&1073741824&&(S(j),j.subtreeFlags&6&&(j.flags|=8192)):S(j),null;case 24:return null;case 25:return null}throw Error(p$3(156,j.tag))}function Ij(s,j){switch(wg(j),j.tag){case 1:return Zf(j.type)&&$f(),s=j.flags,s&65536?(j.flags=s&-65537|128,j):null;case 3:return zh(),E(Wf),E(H),Eh(),s=j.flags,s&65536&&!(s&128)?(j.flags=s&-65537|128,j):null;case 5:return Bh(j),null;case 13:if(E(L),s=j.memoizedState,s!==null&&s.dehydrated!==null){if(j.alternate===null)throw Error(p$3(340));Ig()}return s=j.flags,s&65536?(j.flags=s&-65537|128,j):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(j.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(s,j){var $=s.ref;if($!==null)if(typeof $=="function")try{$(null)}catch(_e){W(s,j,_e)}else $.current=null}function Mj(s,j,$){try{$()}catch(_e){W(s,j,_e)}}var Nj=!1;function Oj(s,j){if(Cf=dd,s=Me(),Ne(s)){if("selectionStart"in s)var $={start:s.selectionStart,end:s.selectionEnd};else e:{$=($=s.ownerDocument)&&$.defaultView||window;var _e=$.getSelection&&$.getSelection();if(_e&&_e.rangeCount!==0){$=_e.anchorNode;var et=_e.anchorOffset,tt=_e.focusNode;_e=_e.focusOffset;try{$.nodeType,tt.nodeType}catch{$=null;break e}var nt=0,rt=-1,ot=-1,it=0,st=0,at=s,ct=null;t:for(;;){for(var lt;at!==$||et!==0&&at.nodeType!==3||(rt=nt+et),at!==tt||_e!==0&&at.nodeType!==3||(ot=nt+_e),at.nodeType===3&&(nt+=at.nodeValue.length),(lt=at.firstChild)!==null;)ct=at,at=lt;for(;;){if(at===s)break t;if(ct===$&&++it===et&&(rt=nt),ct===tt&&++st===_e&&(ot=nt),(lt=at.nextSibling)!==null)break;at=ct,ct=at.parentNode}at=lt}$=rt===-1||ot===-1?null:{start:rt,end:ot}}else $=null}$=$||{start:0,end:0}}else $=null;for(Df={focusedElem:s,selectionRange:$},dd=!1,V=j;V!==null;)if(j=V,s=j.child,(j.subtreeFlags&1028)!==0&&s!==null)s.return=j,V=s;else for(;V!==null;){j=V;try{var dt=j.alternate;if(j.flags&1024)switch(j.tag){case 0:case 11:case 15:break;case 1:if(dt!==null){var pt=dt.memoizedProps,ht=dt.memoizedState,yt=j.stateNode,gt=yt.getSnapshotBeforeUpdate(j.elementType===j.type?pt:Ci(j.type,pt),ht);yt.__reactInternalSnapshotBeforeUpdate=gt}break;case 3:var ft=j.stateNode.containerInfo;ft.nodeType===1?ft.textContent="":ft.nodeType===9&&ft.documentElement&&ft.removeChild(ft.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$3(163))}}catch(xt){W(j,j.return,xt)}if(s=j.sibling,s!==null){s.return=j.return,V=s;break}V=j.return}return dt=Nj,Nj=!1,dt}function Pj(s,j,$){var _e=j.updateQueue;if(_e=_e!==null?_e.lastEffect:null,_e!==null){var et=_e=_e.next;do{if((et.tag&s)===s){var tt=et.destroy;et.destroy=void 0,tt!==void 0&&Mj(j,$,tt)}et=et.next}while(et!==_e)}}function Qj(s,j){if(j=j.updateQueue,j=j!==null?j.lastEffect:null,j!==null){var $=j=j.next;do{if(($.tag&s)===s){var _e=$.create;$.destroy=_e()}$=$.next}while($!==j)}}function Rj(s){var j=s.ref;if(j!==null){var $=s.stateNode;switch(s.tag){case 5:s=$;break;default:s=$}typeof j=="function"?j(s):j.current=s}}function Sj(s){var j=s.alternate;j!==null&&(s.alternate=null,Sj(j)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(j=s.stateNode,j!==null&&(delete j[Of],delete j[Pf],delete j[of],delete j[Qf],delete j[Rf])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Tj(s){return s.tag===5||s.tag===3||s.tag===4}function Uj(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Tj(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Vj(s,j,$){var _e=s.tag;if(_e===5||_e===6)s=s.stateNode,j?$.nodeType===8?$.parentNode.insertBefore(s,j):$.insertBefore(s,j):($.nodeType===8?(j=$.parentNode,j.insertBefore(s,$)):(j=$,j.appendChild(s)),$=$._reactRootContainer,$!=null||j.onclick!==null||(j.onclick=Bf));else if(_e!==4&&(s=s.child,s!==null))for(Vj(s,j,$),s=s.sibling;s!==null;)Vj(s,j,$),s=s.sibling}function Wj(s,j,$){var _e=s.tag;if(_e===5||_e===6)s=s.stateNode,j?$.insertBefore(s,j):$.appendChild(s);else if(_e!==4&&(s=s.child,s!==null))for(Wj(s,j,$),s=s.sibling;s!==null;)Wj(s,j,$),s=s.sibling}var X=null,Xj=!1;function Yj(s,j,$){for($=$.child;$!==null;)Zj(s,j,$),$=$.sibling}function Zj(s,j,$){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,$)}catch{}switch($.tag){case 5:U||Lj($,j);case 6:var _e=X,et=Xj;X=null,Yj(s,j,$),X=_e,Xj=et,X!==null&&(Xj?(s=X,$=$.stateNode,s.nodeType===8?s.parentNode.removeChild($):s.removeChild($)):X.removeChild($.stateNode));break;case 18:X!==null&&(Xj?(s=X,$=$.stateNode,s.nodeType===8?Kf(s.parentNode,$):s.nodeType===1&&Kf(s,$),bd(s)):Kf(X,$.stateNode));break;case 4:_e=X,et=Xj,X=$.stateNode.containerInfo,Xj=!0,Yj(s,j,$),X=_e,Xj=et;break;case 0:case 11:case 14:case 15:if(!U&&(_e=$.updateQueue,_e!==null&&(_e=_e.lastEffect,_e!==null))){et=_e=_e.next;do{var tt=et,nt=tt.destroy;tt=tt.tag,nt!==void 0&&(tt&2||tt&4)&&Mj($,j,nt),et=et.next}while(et!==_e)}Yj(s,j,$);break;case 1:if(!U&&(Lj($,j),_e=$.stateNode,typeof _e.componentWillUnmount=="function"))try{_e.props=$.memoizedProps,_e.state=$.memoizedState,_e.componentWillUnmount()}catch(rt){W($,j,rt)}Yj(s,j,$);break;case 21:Yj(s,j,$);break;case 22:$.mode&1?(U=(_e=U)||$.memoizedState!==null,Yj(s,j,$),U=_e):Yj(s,j,$);break;default:Yj(s,j,$)}}function ak(s){var j=s.updateQueue;if(j!==null){s.updateQueue=null;var $=s.stateNode;$===null&&($=s.stateNode=new Kj),j.forEach(function(_e){var et=bk.bind(null,s,_e);$.has(_e)||($.add(_e),_e.then(et,et))})}}function ck(s,j){var $=j.deletions;if($!==null)for(var _e=0;_e<$.length;_e++){var et=$[_e];try{var tt=s,nt=j,rt=nt;e:for(;rt!==null;){switch(rt.tag){case 5:X=rt.stateNode,Xj=!1;break e;case 3:X=rt.stateNode.containerInfo,Xj=!0;break e;case 4:X=rt.stateNode.containerInfo,Xj=!0;break e}rt=rt.return}if(X===null)throw Error(p$3(160));Zj(tt,nt,et),X=null,Xj=!1;var ot=et.alternate;ot!==null&&(ot.return=null),et.return=null}catch(it){W(et,j,it)}}if(j.subtreeFlags&12854)for(j=j.child;j!==null;)dk(j,s),j=j.sibling}function dk(s,j){var $=s.alternate,_e=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(ck(j,s),ek(s),_e&4){try{Pj(3,s,s.return),Qj(3,s)}catch(pt){W(s,s.return,pt)}try{Pj(5,s,s.return)}catch(pt){W(s,s.return,pt)}}break;case 1:ck(j,s),ek(s),_e&512&&$!==null&&Lj($,$.return);break;case 5:if(ck(j,s),ek(s),_e&512&&$!==null&&Lj($,$.return),s.flags&32){var et=s.stateNode;try{ob(et,"")}catch(pt){W(s,s.return,pt)}}if(_e&4&&(et=s.stateNode,et!=null)){var tt=s.memoizedProps,nt=$!==null?$.memoizedProps:tt,rt=s.type,ot=s.updateQueue;if(s.updateQueue=null,ot!==null)try{rt==="input"&&tt.type==="radio"&&tt.name!=null&&ab(et,tt),vb(rt,nt);var it=vb(rt,tt);for(nt=0;ntet&&(et=nt),_e&=~tt}if(_e=et,_e=B()-_e,_e=(120>_e?120:480>_e?480:1080>_e?1080:1920>_e?1920:3e3>_e?3e3:4320>_e?4320:1960*lk(_e/1960))-_e,10<_e){s.timeoutHandle=Ff(Pk.bind(null,s,tk,uk),_e);break}Pk(s,tk,uk);break;case 5:Pk(s,tk,uk);break;default:throw Error(p$3(329))}}}return Dk(s,B()),s.callbackNode===$?Gk.bind(null,s):null}function Nk(s,j){var $=sk;return s.current.memoizedState.isDehydrated&&(Kk(s,j).flags|=256),s=Ik(s,j),s!==2&&(j=tk,tk=$,j!==null&&Fj(j)),s}function Fj(s){tk===null?tk=s:tk.push.apply(tk,s)}function Ok(s){for(var j=s;;){if(j.flags&16384){var $=j.updateQueue;if($!==null&&($=$.stores,$!==null))for(var _e=0;_e<$.length;_e++){var et=$[_e],tt=et.getSnapshot;et=et.value;try{if(!He(tt(),et))return!1}catch{return!1}}}if($=j.child,j.subtreeFlags&16384&&$!==null)$.return=j,j=$;else{if(j===s)break;for(;j.sibling===null;){if(j.return===null||j.return===s)return!0;j=j.return}j.sibling.return=j.return,j=j.sibling}}return!0}function Ck(s,j){for(j&=~rk,j&=~qk,s.suspendedLanes|=j,s.pingedLanes&=~j,s=s.expirationTimes;0s?16:s,wk===null)var _e=!1;else{if(s=wk,wk=null,xk=0,K&6)throw Error(p$3(331));var et=K;for(K|=4,V=s.current;V!==null;){var tt=V,nt=tt.child;if(V.flags&16){var rt=tt.deletions;if(rt!==null){for(var ot=0;otB()-fk?Kk(s,0):rk|=$),Dk(s,j)}function Yk(s,j){j===0&&(s.mode&1?(j=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):j=1);var $=R();s=ih(s,j),s!==null&&(Ac(s,j,$),Dk(s,$))}function uj(s){var j=s.memoizedState,$=0;j!==null&&($=j.retryLane),Yk(s,$)}function bk(s,j){var $=0;switch(s.tag){case 13:var _e=s.stateNode,et=s.memoizedState;et!==null&&($=et.retryLane);break;case 19:_e=s.stateNode;break;default:throw Error(p$3(314))}_e!==null&&_e.delete(j),Yk(s,$)}var Vk;Vk=function(s,j,$){if(s!==null)if(s.memoizedProps!==j.pendingProps||Wf.current)dh=!0;else{if(!(s.lanes&$)&&!(j.flags&128))return dh=!1,yj(s,j,$);dh=!!(s.flags&131072)}else dh=!1,I&&j.flags&1048576&&ug(j,ng,j.index);switch(j.lanes=0,j.tag){case 2:var _e=j.type;ij(s,j),s=j.pendingProps;var et=Yf(j,H.current);ch(j,$),et=Nh(null,j,_e,s,et,$);var tt=Sh();return j.flags|=1,typeof et=="object"&&et!==null&&typeof et.render=="function"&&et.$$typeof===void 0?(j.tag=1,j.memoizedState=null,j.updateQueue=null,Zf(_e)?(tt=!0,cg(j)):tt=!1,j.memoizedState=et.state!==null&&et.state!==void 0?et.state:null,kh(j),et.updater=Ei,j.stateNode=et,et._reactInternals=j,Ii(j,_e,s,$),j=jj(null,j,_e,!0,tt,$)):(j.tag=0,I&&tt&&vg(j),Xi(null,j,et,$),j=j.child),j;case 16:_e=j.elementType;e:{switch(ij(s,j),s=j.pendingProps,et=_e._init,_e=et(_e._payload),j.type=_e,et=j.tag=Zk(_e),s=Ci(_e,s),et){case 0:j=cj(null,j,_e,s,$);break e;case 1:j=hj(null,j,_e,s,$);break e;case 11:j=Yi(null,j,_e,s,$);break e;case 14:j=$i(null,j,_e,Ci(_e.type,s),$);break e}throw Error(p$3(306,_e,""))}return j;case 0:return _e=j.type,et=j.pendingProps,et=j.elementType===_e?et:Ci(_e,et),cj(s,j,_e,et,$);case 1:return _e=j.type,et=j.pendingProps,et=j.elementType===_e?et:Ci(_e,et),hj(s,j,_e,et,$);case 3:e:{if(kj(j),s===null)throw Error(p$3(387));_e=j.pendingProps,tt=j.memoizedState,et=tt.element,lh(s,j),qh(j,_e,null,$);var nt=j.memoizedState;if(_e=nt.element,tt.isDehydrated)if(tt={element:_e,isDehydrated:!1,cache:nt.cache,pendingSuspenseBoundaries:nt.pendingSuspenseBoundaries,transitions:nt.transitions},j.updateQueue.baseState=tt,j.memoizedState=tt,j.flags&256){et=Ji(Error(p$3(423)),j),j=lj(s,j,_e,$,et);break e}else if(_e!==et){et=Ji(Error(p$3(424)),j),j=lj(s,j,_e,$,et);break e}else for(yg=Lf(j.stateNode.containerInfo.firstChild),xg=j,I=!0,zg=null,$=Vg(j,null,_e,$),j.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling;else{if(Ig(),_e===et){j=Zi(s,j,$);break e}Xi(s,j,_e,$)}j=j.child}return j;case 5:return Ah(j),s===null&&Eg(j),_e=j.type,et=j.pendingProps,tt=s!==null?s.memoizedProps:null,nt=et.children,Ef(_e,et)?nt=null:tt!==null&&Ef(_e,tt)&&(j.flags|=32),gj(s,j),Xi(s,j,nt,$),j.child;case 6:return s===null&&Eg(j),null;case 13:return oj(s,j,$);case 4:return yh(j,j.stateNode.containerInfo),_e=j.pendingProps,s===null?j.child=Ug(j,null,_e,$):Xi(s,j,_e,$),j.child;case 11:return _e=j.type,et=j.pendingProps,et=j.elementType===_e?et:Ci(_e,et),Yi(s,j,_e,et,$);case 7:return Xi(s,j,j.pendingProps,$),j.child;case 8:return Xi(s,j,j.pendingProps.children,$),j.child;case 12:return Xi(s,j,j.pendingProps.children,$),j.child;case 10:e:{if(_e=j.type._context,et=j.pendingProps,tt=j.memoizedProps,nt=et.value,G(Wg,_e._currentValue),_e._currentValue=nt,tt!==null)if(He(tt.value,nt)){if(tt.children===et.children&&!Wf.current){j=Zi(s,j,$);break e}}else for(tt=j.child,tt!==null&&(tt.return=j);tt!==null;){var rt=tt.dependencies;if(rt!==null){nt=tt.child;for(var ot=rt.firstContext;ot!==null;){if(ot.context===_e){if(tt.tag===1){ot=mh(-1,$&-$),ot.tag=2;var it=tt.updateQueue;if(it!==null){it=it.shared;var st=it.pending;st===null?ot.next=ot:(ot.next=st.next,st.next=ot),it.pending=ot}}tt.lanes|=$,ot=tt.alternate,ot!==null&&(ot.lanes|=$),bh(tt.return,$,j),rt.lanes|=$;break}ot=ot.next}}else if(tt.tag===10)nt=tt.type===j.type?null:tt.child;else if(tt.tag===18){if(nt=tt.return,nt===null)throw Error(p$3(341));nt.lanes|=$,rt=nt.alternate,rt!==null&&(rt.lanes|=$),bh(nt,$,j),nt=tt.sibling}else nt=tt.child;if(nt!==null)nt.return=tt;else for(nt=tt;nt!==null;){if(nt===j){nt=null;break}if(tt=nt.sibling,tt!==null){tt.return=nt.return,nt=tt;break}nt=nt.return}tt=nt}Xi(s,j,et.children,$),j=j.child}return j;case 9:return et=j.type,_e=j.pendingProps.children,ch(j,$),et=eh(et),_e=_e(et),j.flags|=1,Xi(s,j,_e,$),j.child;case 14:return _e=j.type,et=Ci(_e,j.pendingProps),et=Ci(_e.type,et),$i(s,j,_e,et,$);case 15:return bj(s,j,j.type,j.pendingProps,$);case 17:return _e=j.type,et=j.pendingProps,et=j.elementType===_e?et:Ci(_e,et),ij(s,j),j.tag=1,Zf(_e)?(s=!0,cg(j)):s=!1,ch(j,$),Gi(j,_e,et),Ii(j,_e,et,$),jj(null,j,_e,!0,s,$);case 19:return xj(s,j,$);case 22:return dj(s,j,$)}throw Error(p$3(156,j.tag))};function Fk(s,j){return ac(s,j)}function $k(s,j,$,_e){this.tag=s,this.key=$,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=j,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_e,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(s,j,$,_e){return new $k(s,j,$,_e)}function aj(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Zk(s){if(typeof s=="function")return aj(s)?1:0;if(s!=null){if(s=s.$$typeof,s===Da)return 11;if(s===Ga)return 14}return 2}function Pg(s,j){var $=s.alternate;return $===null?($=Bg(s.tag,j,s.key,s.mode),$.elementType=s.elementType,$.type=s.type,$.stateNode=s.stateNode,$.alternate=s,s.alternate=$):($.pendingProps=j,$.type=s.type,$.flags=0,$.subtreeFlags=0,$.deletions=null),$.flags=s.flags&14680064,$.childLanes=s.childLanes,$.lanes=s.lanes,$.child=s.child,$.memoizedProps=s.memoizedProps,$.memoizedState=s.memoizedState,$.updateQueue=s.updateQueue,j=s.dependencies,$.dependencies=j===null?null:{lanes:j.lanes,firstContext:j.firstContext},$.sibling=s.sibling,$.index=s.index,$.ref=s.ref,$}function Rg(s,j,$,_e,et,tt){var nt=2;if(_e=s,typeof s=="function")aj(s)&&(nt=1);else if(typeof s=="string")nt=5;else e:switch(s){case ya:return Tg($.children,et,tt,j);case za:nt=8,et|=8;break;case Aa:return s=Bg(12,$,j,et|2),s.elementType=Aa,s.lanes=tt,s;case Ea:return s=Bg(13,$,j,et),s.elementType=Ea,s.lanes=tt,s;case Fa:return s=Bg(19,$,j,et),s.elementType=Fa,s.lanes=tt,s;case Ia:return pj($,et,tt,j);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Ba:nt=10;break e;case Ca:nt=9;break e;case Da:nt=11;break e;case Ga:nt=14;break e;case Ha:nt=16,_e=null;break e}throw Error(p$3(130,s==null?s:typeof s,""))}return j=Bg(nt,$,j,et),j.elementType=s,j.type=_e,j.lanes=tt,j}function Tg(s,j,$,_e){return s=Bg(7,s,_e,j),s.lanes=$,s}function pj(s,j,$,_e){return s=Bg(22,s,_e,j),s.elementType=Ia,s.lanes=$,s.stateNode={isHidden:!1},s}function Qg(s,j,$){return s=Bg(6,s,null,j),s.lanes=$,s}function Sg(s,j,$){return j=Bg(4,s.children!==null?s.children:[],s.key,j),j.lanes=$,j.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},j}function al(s,j,$,_e,et){this.tag=j,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=_e,this.onRecoverableError=et,this.mutableSourceEagerHydrationData=null}function bl(s,j,$,_e,et,tt,nt,rt,ot){return s=new al(s,j,$,rt,ot),j===1?(j=1,tt===!0&&(j|=8)):j=0,tt=Bg(3,null,null,j),s.current=tt,tt.stateNode=s,tt.memoizedState={element:_e,isDehydrated:$,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(tt),s}function cl(s,j,$){var _e=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(s){console.error(s)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);var m$3=reactDomExports;client.createRoot=m$3.createRoot,client.hydrateRoot=m$3.hydrateRoot;const common={black:"#000",white:"#fff"},red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function formatMuiErrorMessage$1(s){let j="https://mui.com/production-error/?code="+s;for(let $=1;$0?charat(characters,--position):0,column$1--,character===10&&(column$1=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(s,j){for(;--j&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(s,caret()+(j<6&&peek()==32&&next()==32))}function delimiter(s){for(;next();)switch(character){case s:return position;case 34:case 39:s!==34&&s!==39&&delimiter(character);break;case 40:s===41&&delimiter(s);break;case 92:next();break}return position}function commenter(s,j){for(;next()&&s+character!==57;)if(s+character===84&&peek()===47)break;return"/*"+slice(j,position-1)+"*"+from(s===47?s:next())}function identifier(s){for(;!token(peek());)next();return slice(s,position)}function compile$1(s){return dealloc(parse$4("",null,null,null,[""],s=alloc(s),0,[0],s))}function parse$4(s,j,$,_e,et,tt,nt,rt,ot){for(var it=0,st=0,at=nt,ct=0,lt=0,dt=0,pt=1,ht=1,yt=1,gt=0,ft="",xt=et,Mt=tt,jt=_e,wt=ft;ht;)switch(dt=gt,gt=next()){case 40:if(dt!=108&&charat(wt,at-1)==58){indexof(wt+=replace(delimit(gt),"&","&\f"),"&\f")!=-1&&(yt=-1);break}case 34:case 39:case 91:wt+=delimit(gt);break;case 9:case 10:case 13:case 32:wt+=whitespace(dt);break;case 92:wt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),j,$),ot);break;default:wt+="/"}break;case 123*pt:rt[it++]=strlen(wt)*yt;case 125*pt:case 59:case 0:switch(gt){case 0:case 125:ht=0;case 59+st:yt==-1&&(wt=replace(wt,/\f/g,"")),lt>0&&strlen(wt)-at&&append(lt>32?declaration(wt+";",_e,$,at-1):declaration(replace(wt," ","")+";",_e,$,at-2),ot);break;case 59:wt+=";";default:if(append(jt=ruleset(wt,j,$,it,st,et,rt,ft,xt=[],Mt=[],at),tt),gt===123)if(st===0)parse$4(wt,j,jt,jt,xt,tt,at,rt,Mt);else switch(ct===99&&charat(wt,3)===110?100:ct){case 100:case 108:case 109:case 115:parse$4(s,jt,jt,_e&&append(ruleset(s,jt,jt,0,0,et,rt,ft,et,xt=[],at),Mt),et,Mt,at,rt,_e?xt:Mt);break;default:parse$4(wt,jt,jt,jt,[""],Mt,0,rt,Mt)}}it=st=lt=0,pt=yt=1,ft=wt="",at=nt;break;case 58:at=1+strlen(wt),lt=dt;default:if(pt<1){if(gt==123)--pt;else if(gt==125&&pt++==0&&prev()==125)continue}switch(wt+=from(gt),gt*pt){case 38:yt=st>0?1:(wt+="\f",-1);break;case 44:rt[it++]=(strlen(wt)-1)*yt,yt=1;break;case 64:peek()===45&&(wt+=delimit(next())),ct=peek(),st=at=strlen(ft=wt+=identifier(caret())),gt++;break;case 45:dt===45&&strlen(wt)==2&&(pt=0)}}return tt}function ruleset(s,j,$,_e,et,tt,nt,rt,ot,it,st){for(var at=et-1,ct=et===0?tt:[""],lt=sizeof(ct),dt=0,pt=0,ht=0;dt<_e;++dt)for(var yt=0,gt=substr(s,at+1,at=abs(pt=nt[dt])),ft=s;yt0?ct[yt]+" "+gt:replace(gt,/&\f/g,ct[yt])))&&(ot[ht++]=ft);return node(s,j,$,et===0?RULESET:rt,ot,it,st)}function comment(s,j,$){return node(s,j,$,COMMENT,from(char()),substr(s,2,-2),0)}function declaration(s,j,$,_e){return node(s,j,$,DECLARATION,substr(s,0,_e),substr(s,_e+1,-1),_e)}function serialize$3(s,j){for(var $="",_e=sizeof(s),et=0;et<_e;et++)$+=j(s[et],et,s,j)||"";return $}function stringify$2(s,j,$,_e){switch(s.type){case LAYER:if(s.children.length)break;case IMPORT:case DECLARATION:return s.return=s.return||s.value;case COMMENT:return"";case KEYFRAMES:return s.return=s.value+"{"+serialize$3(s.children,_e)+"}";case RULESET:s.value=s.props.join(",")}return strlen($=serialize$3(s.children,_e))?s.return=s.value+"{"+$+"}":""}function middleware(s){var j=sizeof(s);return function($,_e,et,tt){for(var nt="",rt=0;rt6)switch(charat(s,j+1)){case 109:if(charat(s,j+4)!==45)break;case 102:return replace(s,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(s,j+3)==108?"$3":"$2-$3"))+s;case 115:return~indexof(s,"stretch")?prefix$1(replace(s,"stretch","fill-available"),j)+s:s}break;case 4949:if(charat(s,j+1)!==115)break;case 6444:switch(charat(s,strlen(s)-3-(~indexof(s,"!important")&&10))){case 107:return replace(s,":",":"+WEBKIT)+s;case 101:return replace(s,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(s,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+s}break;case 5936:switch(charat(s,j+11)){case 114:return WEBKIT+s+MS+replace(s,/[svh]\w+-[tblr]{2}/,"tb")+s;case 108:return WEBKIT+s+MS+replace(s,/[svh]\w+-[tblr]{2}/,"tb-rl")+s;case 45:return WEBKIT+s+MS+replace(s,/[svh]\w+-[tblr]{2}/,"lr")+s}return WEBKIT+s+MS+s+s}return s}var prefixer=function(j,$,_e,et){if(j.length>-1&&!j.return)switch(j.type){case DECLARATION:j.return=prefix$1(j.value,j.length);break;case KEYFRAMES:return serialize$3([copy(j,{value:replace(j.value,"@","@"+WEBKIT)})],et);case RULESET:if(j.length)return combine(j.props,function(tt){switch(match(tt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$3([copy(j,{props:[replace(tt,/:(read-\w+)/,":"+MOZ+"$1")]})],et);case"::placeholder":return serialize$3([copy(j,{props:[replace(tt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(j,{props:[replace(tt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(j,{props:[replace(tt,/:(plac\w+)/,MS+"input-$1")]})],et)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(j){var $=j.key;if($==="css"){var _e=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(_e,function(pt){var ht=pt.getAttribute("data-emotion");ht.indexOf(" ")!==-1&&(document.head.appendChild(pt),pt.setAttribute("data-s",""))})}var et=j.stylisPlugins||defaultStylisPlugins,tt={},nt,rt=[];nt=j.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+$+' "]'),function(pt){for(var ht=pt.getAttribute("data-emotion").split(" "),yt=1;yt<\/script>",s=s.removeChild(s.firstChild)):typeof _e.is=="string"?s=nt.createElement($,{is:_e.is}):(s=nt.createElement($),$==="select"&&(nt=s,_e.multiple?nt.multiple=!0:_e.size&&(nt.size=_e.size))):s=nt.createElementNS(s,$),s[Of]=j,s[Pf]=_e,zj(s,j,!1,!1),j.stateNode=s;e:{switch(nt=vb($,_e),$){case"dialog":D("cancel",s),D("close",s),et=_e;break;case"iframe":case"object":case"embed":D("load",s),et=_e;break;case"video":case"audio":for(et=0;etGj&&(j.flags|=128,_e=!0,Dj(tt,!1),j.lanes=4194304)}else{if(!_e)if(s=Ch(nt),s!==null){if(j.flags|=128,_e=!0,$=s.updateQueue,$!==null&&(j.updateQueue=$,j.flags|=4),Dj(tt,!0),tt.tail===null&&tt.tailMode==="hidden"&&!nt.alternate&&!I)return S(j),null}else 2*B()-tt.renderingStartTime>Gj&&$!==1073741824&&(j.flags|=128,_e=!0,Dj(tt,!1),j.lanes=4194304);tt.isBackwards?(nt.sibling=j.child,j.child=nt):($=tt.last,$!==null?$.sibling=nt:j.child=nt,tt.last=nt)}return tt.tail!==null?(j=tt.tail,tt.rendering=j,tt.tail=j.sibling,tt.renderingStartTime=B(),j.sibling=null,$=L.current,G(L,_e?$&1|2:$&1),j):(S(j),null);case 22:case 23:return Hj(),_e=j.memoizedState!==null,s!==null&&s.memoizedState!==null!==_e&&(j.flags|=8192),_e&&j.mode&1?fj&1073741824&&(S(j),j.subtreeFlags&6&&(j.flags|=8192)):S(j),null;case 24:return null;case 25:return null}throw Error(p$3(156,j.tag))}function Ij(s,j){switch(wg(j),j.tag){case 1:return Zf(j.type)&&$f(),s=j.flags,s&65536?(j.flags=s&-65537|128,j):null;case 3:return zh(),E(Wf),E(H),Eh(),s=j.flags,s&65536&&!(s&128)?(j.flags=s&-65537|128,j):null;case 5:return Bh(j),null;case 13:if(E(L),s=j.memoizedState,s!==null&&s.dehydrated!==null){if(j.alternate===null)throw Error(p$3(340));Ig()}return s=j.flags,s&65536?(j.flags=s&-65537|128,j):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(j.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(s,j){var $=s.ref;if($!==null)if(typeof $=="function")try{$(null)}catch(_e){W(s,j,_e)}else $.current=null}function Mj(s,j,$){try{$()}catch(_e){W(s,j,_e)}}var Nj=!1;function Oj(s,j){if(Cf=dd,s=Me(),Ne(s)){if("selectionStart"in s)var $={start:s.selectionStart,end:s.selectionEnd};else e:{$=($=s.ownerDocument)&&$.defaultView||window;var _e=$.getSelection&&$.getSelection();if(_e&&_e.rangeCount!==0){$=_e.anchorNode;var et=_e.anchorOffset,tt=_e.focusNode;_e=_e.focusOffset;try{$.nodeType,tt.nodeType}catch{$=null;break e}var nt=0,rt=-1,ot=-1,it=0,st=0,at=s,ct=null;t:for(;;){for(var lt;at!==$||et!==0&&at.nodeType!==3||(rt=nt+et),at!==tt||_e!==0&&at.nodeType!==3||(ot=nt+_e),at.nodeType===3&&(nt+=at.nodeValue.length),(lt=at.firstChild)!==null;)ct=at,at=lt;for(;;){if(at===s)break t;if(ct===$&&++it===et&&(rt=nt),ct===tt&&++st===_e&&(ot=nt),(lt=at.nextSibling)!==null)break;at=ct,ct=at.parentNode}at=lt}$=rt===-1||ot===-1?null:{start:rt,end:ot}}else $=null}$=$||{start:0,end:0}}else $=null;for(Df={focusedElem:s,selectionRange:$},dd=!1,V=j;V!==null;)if(j=V,s=j.child,(j.subtreeFlags&1028)!==0&&s!==null)s.return=j,V=s;else for(;V!==null;){j=V;try{var dt=j.alternate;if(j.flags&1024)switch(j.tag){case 0:case 11:case 15:break;case 1:if(dt!==null){var ft=dt.memoizedProps,gt=dt.memoizedState,yt=j.stateNode,mt=yt.getSnapshotBeforeUpdate(j.elementType===j.type?ft:Ci(j.type,ft),gt);yt.__reactInternalSnapshotBeforeUpdate=mt}break;case 3:var pt=j.stateNode.containerInfo;pt.nodeType===1?pt.textContent="":pt.nodeType===9&&pt.documentElement&&pt.removeChild(pt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$3(163))}}catch(xt){W(j,j.return,xt)}if(s=j.sibling,s!==null){s.return=j.return,V=s;break}V=j.return}return dt=Nj,Nj=!1,dt}function Pj(s,j,$){var _e=j.updateQueue;if(_e=_e!==null?_e.lastEffect:null,_e!==null){var et=_e=_e.next;do{if((et.tag&s)===s){var tt=et.destroy;et.destroy=void 0,tt!==void 0&&Mj(j,$,tt)}et=et.next}while(et!==_e)}}function Qj(s,j){if(j=j.updateQueue,j=j!==null?j.lastEffect:null,j!==null){var $=j=j.next;do{if(($.tag&s)===s){var _e=$.create;$.destroy=_e()}$=$.next}while($!==j)}}function Rj(s){var j=s.ref;if(j!==null){var $=s.stateNode;switch(s.tag){case 5:s=$;break;default:s=$}typeof j=="function"?j(s):j.current=s}}function Sj(s){var j=s.alternate;j!==null&&(s.alternate=null,Sj(j)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(j=s.stateNode,j!==null&&(delete j[Of],delete j[Pf],delete j[of],delete j[Qf],delete j[Rf])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Tj(s){return s.tag===5||s.tag===3||s.tag===4}function Uj(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Tj(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Vj(s,j,$){var _e=s.tag;if(_e===5||_e===6)s=s.stateNode,j?$.nodeType===8?$.parentNode.insertBefore(s,j):$.insertBefore(s,j):($.nodeType===8?(j=$.parentNode,j.insertBefore(s,$)):(j=$,j.appendChild(s)),$=$._reactRootContainer,$!=null||j.onclick!==null||(j.onclick=Bf));else if(_e!==4&&(s=s.child,s!==null))for(Vj(s,j,$),s=s.sibling;s!==null;)Vj(s,j,$),s=s.sibling}function Wj(s,j,$){var _e=s.tag;if(_e===5||_e===6)s=s.stateNode,j?$.insertBefore(s,j):$.appendChild(s);else if(_e!==4&&(s=s.child,s!==null))for(Wj(s,j,$),s=s.sibling;s!==null;)Wj(s,j,$),s=s.sibling}var X=null,Xj=!1;function Yj(s,j,$){for($=$.child;$!==null;)Zj(s,j,$),$=$.sibling}function Zj(s,j,$){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,$)}catch{}switch($.tag){case 5:U||Lj($,j);case 6:var _e=X,et=Xj;X=null,Yj(s,j,$),X=_e,Xj=et,X!==null&&(Xj?(s=X,$=$.stateNode,s.nodeType===8?s.parentNode.removeChild($):s.removeChild($)):X.removeChild($.stateNode));break;case 18:X!==null&&(Xj?(s=X,$=$.stateNode,s.nodeType===8?Kf(s.parentNode,$):s.nodeType===1&&Kf(s,$),bd(s)):Kf(X,$.stateNode));break;case 4:_e=X,et=Xj,X=$.stateNode.containerInfo,Xj=!0,Yj(s,j,$),X=_e,Xj=et;break;case 0:case 11:case 14:case 15:if(!U&&(_e=$.updateQueue,_e!==null&&(_e=_e.lastEffect,_e!==null))){et=_e=_e.next;do{var tt=et,nt=tt.destroy;tt=tt.tag,nt!==void 0&&(tt&2||tt&4)&&Mj($,j,nt),et=et.next}while(et!==_e)}Yj(s,j,$);break;case 1:if(!U&&(Lj($,j),_e=$.stateNode,typeof _e.componentWillUnmount=="function"))try{_e.props=$.memoizedProps,_e.state=$.memoizedState,_e.componentWillUnmount()}catch(rt){W($,j,rt)}Yj(s,j,$);break;case 21:Yj(s,j,$);break;case 22:$.mode&1?(U=(_e=U)||$.memoizedState!==null,Yj(s,j,$),U=_e):Yj(s,j,$);break;default:Yj(s,j,$)}}function ak(s){var j=s.updateQueue;if(j!==null){s.updateQueue=null;var $=s.stateNode;$===null&&($=s.stateNode=new Kj),j.forEach(function(_e){var et=bk.bind(null,s,_e);$.has(_e)||($.add(_e),_e.then(et,et))})}}function ck(s,j){var $=j.deletions;if($!==null)for(var _e=0;_e<$.length;_e++){var et=$[_e];try{var tt=s,nt=j,rt=nt;e:for(;rt!==null;){switch(rt.tag){case 5:X=rt.stateNode,Xj=!1;break e;case 3:X=rt.stateNode.containerInfo,Xj=!0;break e;case 4:X=rt.stateNode.containerInfo,Xj=!0;break e}rt=rt.return}if(X===null)throw Error(p$3(160));Zj(tt,nt,et),X=null,Xj=!1;var ot=et.alternate;ot!==null&&(ot.return=null),et.return=null}catch(it){W(et,j,it)}}if(j.subtreeFlags&12854)for(j=j.child;j!==null;)dk(j,s),j=j.sibling}function dk(s,j){var $=s.alternate,_e=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(ck(j,s),ek(s),_e&4){try{Pj(3,s,s.return),Qj(3,s)}catch(ft){W(s,s.return,ft)}try{Pj(5,s,s.return)}catch(ft){W(s,s.return,ft)}}break;case 1:ck(j,s),ek(s),_e&512&&$!==null&&Lj($,$.return);break;case 5:if(ck(j,s),ek(s),_e&512&&$!==null&&Lj($,$.return),s.flags&32){var et=s.stateNode;try{ob(et,"")}catch(ft){W(s,s.return,ft)}}if(_e&4&&(et=s.stateNode,et!=null)){var tt=s.memoizedProps,nt=$!==null?$.memoizedProps:tt,rt=s.type,ot=s.updateQueue;if(s.updateQueue=null,ot!==null)try{rt==="input"&&tt.type==="radio"&&tt.name!=null&&ab(et,tt),vb(rt,nt);var it=vb(rt,tt);for(nt=0;ntet&&(et=nt),_e&=~tt}if(_e=et,_e=B()-_e,_e=(120>_e?120:480>_e?480:1080>_e?1080:1920>_e?1920:3e3>_e?3e3:4320>_e?4320:1960*lk(_e/1960))-_e,10<_e){s.timeoutHandle=Ff(Pk.bind(null,s,tk,uk),_e);break}Pk(s,tk,uk);break;case 5:Pk(s,tk,uk);break;default:throw Error(p$3(329))}}}return Dk(s,B()),s.callbackNode===$?Gk.bind(null,s):null}function Nk(s,j){var $=sk;return s.current.memoizedState.isDehydrated&&(Kk(s,j).flags|=256),s=Ik(s,j),s!==2&&(j=tk,tk=$,j!==null&&Fj(j)),s}function Fj(s){tk===null?tk=s:tk.push.apply(tk,s)}function Ok(s){for(var j=s;;){if(j.flags&16384){var $=j.updateQueue;if($!==null&&($=$.stores,$!==null))for(var _e=0;_e<$.length;_e++){var et=$[_e],tt=et.getSnapshot;et=et.value;try{if(!He(tt(),et))return!1}catch{return!1}}}if($=j.child,j.subtreeFlags&16384&&$!==null)$.return=j,j=$;else{if(j===s)break;for(;j.sibling===null;){if(j.return===null||j.return===s)return!0;j=j.return}j.sibling.return=j.return,j=j.sibling}}return!0}function Ck(s,j){for(j&=~rk,j&=~qk,s.suspendedLanes|=j,s.pingedLanes&=~j,s=s.expirationTimes;0s?16:s,wk===null)var _e=!1;else{if(s=wk,wk=null,xk=0,K&6)throw Error(p$3(331));var et=K;for(K|=4,V=s.current;V!==null;){var tt=V,nt=tt.child;if(V.flags&16){var rt=tt.deletions;if(rt!==null){for(var ot=0;otB()-fk?Kk(s,0):rk|=$),Dk(s,j)}function Yk(s,j){j===0&&(s.mode&1?(j=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):j=1);var $=R();s=ih(s,j),s!==null&&(Ac(s,j,$),Dk(s,$))}function uj(s){var j=s.memoizedState,$=0;j!==null&&($=j.retryLane),Yk(s,$)}function bk(s,j){var $=0;switch(s.tag){case 13:var _e=s.stateNode,et=s.memoizedState;et!==null&&($=et.retryLane);break;case 19:_e=s.stateNode;break;default:throw Error(p$3(314))}_e!==null&&_e.delete(j),Yk(s,$)}var Vk;Vk=function(s,j,$){if(s!==null)if(s.memoizedProps!==j.pendingProps||Wf.current)dh=!0;else{if(!(s.lanes&$)&&!(j.flags&128))return dh=!1,yj(s,j,$);dh=!!(s.flags&131072)}else dh=!1,I&&j.flags&1048576&&ug(j,ng,j.index);switch(j.lanes=0,j.tag){case 2:var _e=j.type;ij(s,j),s=j.pendingProps;var et=Yf(j,H.current);ch(j,$),et=Nh(null,j,_e,s,et,$);var tt=Sh();return j.flags|=1,typeof et=="object"&&et!==null&&typeof et.render=="function"&&et.$$typeof===void 0?(j.tag=1,j.memoizedState=null,j.updateQueue=null,Zf(_e)?(tt=!0,cg(j)):tt=!1,j.memoizedState=et.state!==null&&et.state!==void 0?et.state:null,kh(j),et.updater=Ei,j.stateNode=et,et._reactInternals=j,Ii(j,_e,s,$),j=jj(null,j,_e,!0,tt,$)):(j.tag=0,I&&tt&&vg(j),Xi(null,j,et,$),j=j.child),j;case 16:_e=j.elementType;e:{switch(ij(s,j),s=j.pendingProps,et=_e._init,_e=et(_e._payload),j.type=_e,et=j.tag=Zk(_e),s=Ci(_e,s),et){case 0:j=cj(null,j,_e,s,$);break e;case 1:j=hj(null,j,_e,s,$);break e;case 11:j=Yi(null,j,_e,s,$);break e;case 14:j=$i(null,j,_e,Ci(_e.type,s),$);break e}throw Error(p$3(306,_e,""))}return j;case 0:return _e=j.type,et=j.pendingProps,et=j.elementType===_e?et:Ci(_e,et),cj(s,j,_e,et,$);case 1:return _e=j.type,et=j.pendingProps,et=j.elementType===_e?et:Ci(_e,et),hj(s,j,_e,et,$);case 3:e:{if(kj(j),s===null)throw Error(p$3(387));_e=j.pendingProps,tt=j.memoizedState,et=tt.element,lh(s,j),qh(j,_e,null,$);var nt=j.memoizedState;if(_e=nt.element,tt.isDehydrated)if(tt={element:_e,isDehydrated:!1,cache:nt.cache,pendingSuspenseBoundaries:nt.pendingSuspenseBoundaries,transitions:nt.transitions},j.updateQueue.baseState=tt,j.memoizedState=tt,j.flags&256){et=Ji(Error(p$3(423)),j),j=lj(s,j,_e,$,et);break e}else if(_e!==et){et=Ji(Error(p$3(424)),j),j=lj(s,j,_e,$,et);break e}else for(yg=Lf(j.stateNode.containerInfo.firstChild),xg=j,I=!0,zg=null,$=Vg(j,null,_e,$),j.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling;else{if(Ig(),_e===et){j=Zi(s,j,$);break e}Xi(s,j,_e,$)}j=j.child}return j;case 5:return Ah(j),s===null&&Eg(j),_e=j.type,et=j.pendingProps,tt=s!==null?s.memoizedProps:null,nt=et.children,Ef(_e,et)?nt=null:tt!==null&&Ef(_e,tt)&&(j.flags|=32),gj(s,j),Xi(s,j,nt,$),j.child;case 6:return s===null&&Eg(j),null;case 13:return oj(s,j,$);case 4:return yh(j,j.stateNode.containerInfo),_e=j.pendingProps,s===null?j.child=Ug(j,null,_e,$):Xi(s,j,_e,$),j.child;case 11:return _e=j.type,et=j.pendingProps,et=j.elementType===_e?et:Ci(_e,et),Yi(s,j,_e,et,$);case 7:return Xi(s,j,j.pendingProps,$),j.child;case 8:return Xi(s,j,j.pendingProps.children,$),j.child;case 12:return Xi(s,j,j.pendingProps.children,$),j.child;case 10:e:{if(_e=j.type._context,et=j.pendingProps,tt=j.memoizedProps,nt=et.value,G(Wg,_e._currentValue),_e._currentValue=nt,tt!==null)if(He(tt.value,nt)){if(tt.children===et.children&&!Wf.current){j=Zi(s,j,$);break e}}else for(tt=j.child,tt!==null&&(tt.return=j);tt!==null;){var rt=tt.dependencies;if(rt!==null){nt=tt.child;for(var ot=rt.firstContext;ot!==null;){if(ot.context===_e){if(tt.tag===1){ot=mh(-1,$&-$),ot.tag=2;var it=tt.updateQueue;if(it!==null){it=it.shared;var st=it.pending;st===null?ot.next=ot:(ot.next=st.next,st.next=ot),it.pending=ot}}tt.lanes|=$,ot=tt.alternate,ot!==null&&(ot.lanes|=$),bh(tt.return,$,j),rt.lanes|=$;break}ot=ot.next}}else if(tt.tag===10)nt=tt.type===j.type?null:tt.child;else if(tt.tag===18){if(nt=tt.return,nt===null)throw Error(p$3(341));nt.lanes|=$,rt=nt.alternate,rt!==null&&(rt.lanes|=$),bh(nt,$,j),nt=tt.sibling}else nt=tt.child;if(nt!==null)nt.return=tt;else for(nt=tt;nt!==null;){if(nt===j){nt=null;break}if(tt=nt.sibling,tt!==null){tt.return=nt.return,nt=tt;break}nt=nt.return}tt=nt}Xi(s,j,et.children,$),j=j.child}return j;case 9:return et=j.type,_e=j.pendingProps.children,ch(j,$),et=eh(et),_e=_e(et),j.flags|=1,Xi(s,j,_e,$),j.child;case 14:return _e=j.type,et=Ci(_e,j.pendingProps),et=Ci(_e.type,et),$i(s,j,_e,et,$);case 15:return bj(s,j,j.type,j.pendingProps,$);case 17:return _e=j.type,et=j.pendingProps,et=j.elementType===_e?et:Ci(_e,et),ij(s,j),j.tag=1,Zf(_e)?(s=!0,cg(j)):s=!1,ch(j,$),Gi(j,_e,et),Ii(j,_e,et,$),jj(null,j,_e,!0,s,$);case 19:return xj(s,j,$);case 22:return dj(s,j,$)}throw Error(p$3(156,j.tag))};function Fk(s,j){return ac(s,j)}function $k(s,j,$,_e){this.tag=s,this.key=$,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=j,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_e,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(s,j,$,_e){return new $k(s,j,$,_e)}function aj(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Zk(s){if(typeof s=="function")return aj(s)?1:0;if(s!=null){if(s=s.$$typeof,s===Da)return 11;if(s===Ga)return 14}return 2}function Pg(s,j){var $=s.alternate;return $===null?($=Bg(s.tag,j,s.key,s.mode),$.elementType=s.elementType,$.type=s.type,$.stateNode=s.stateNode,$.alternate=s,s.alternate=$):($.pendingProps=j,$.type=s.type,$.flags=0,$.subtreeFlags=0,$.deletions=null),$.flags=s.flags&14680064,$.childLanes=s.childLanes,$.lanes=s.lanes,$.child=s.child,$.memoizedProps=s.memoizedProps,$.memoizedState=s.memoizedState,$.updateQueue=s.updateQueue,j=s.dependencies,$.dependencies=j===null?null:{lanes:j.lanes,firstContext:j.firstContext},$.sibling=s.sibling,$.index=s.index,$.ref=s.ref,$}function Rg(s,j,$,_e,et,tt){var nt=2;if(_e=s,typeof s=="function")aj(s)&&(nt=1);else if(typeof s=="string")nt=5;else e:switch(s){case ya:return Tg($.children,et,tt,j);case za:nt=8,et|=8;break;case Aa:return s=Bg(12,$,j,et|2),s.elementType=Aa,s.lanes=tt,s;case Ea:return s=Bg(13,$,j,et),s.elementType=Ea,s.lanes=tt,s;case Fa:return s=Bg(19,$,j,et),s.elementType=Fa,s.lanes=tt,s;case Ia:return pj($,et,tt,j);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Ba:nt=10;break e;case Ca:nt=9;break e;case Da:nt=11;break e;case Ga:nt=14;break e;case Ha:nt=16,_e=null;break e}throw Error(p$3(130,s==null?s:typeof s,""))}return j=Bg(nt,$,j,et),j.elementType=s,j.type=_e,j.lanes=tt,j}function Tg(s,j,$,_e){return s=Bg(7,s,_e,j),s.lanes=$,s}function pj(s,j,$,_e){return s=Bg(22,s,_e,j),s.elementType=Ia,s.lanes=$,s.stateNode={isHidden:!1},s}function Qg(s,j,$){return s=Bg(6,s,null,j),s.lanes=$,s}function Sg(s,j,$){return j=Bg(4,s.children!==null?s.children:[],s.key,j),j.lanes=$,j.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},j}function al(s,j,$,_e,et){this.tag=j,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=_e,this.onRecoverableError=et,this.mutableSourceEagerHydrationData=null}function bl(s,j,$,_e,et,tt,nt,rt,ot){return s=new al(s,j,$,rt,ot),j===1?(j=1,tt===!0&&(j|=8)):j=0,tt=Bg(3,null,null,j),s.current=tt,tt.stateNode=s,tt.memoizedState={element:_e,isDehydrated:$,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(tt),s}function cl(s,j,$){var _e=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(s){console.error(s)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);var m$3=reactDomExports;client.createRoot=m$3.createRoot,client.hydrateRoot=m$3.hydrateRoot;const common={black:"#000",white:"#fff"},red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function formatMuiErrorMessage$1(s){let j="https://mui.com/production-error/?code="+s;for(let $=1;$0?charat(characters,--position):0,column$1--,character===10&&(column$1=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(s,j){for(;--j&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(s,caret()+(j<6&&peek()==32&&next()==32))}function delimiter(s){for(;next();)switch(character){case s:return position;case 34:case 39:s!==34&&s!==39&&delimiter(character);break;case 40:s===41&&delimiter(s);break;case 92:next();break}return position}function commenter(s,j){for(;next()&&s+character!==57;)if(s+character===84&&peek()===47)break;return"/*"+slice(j,position-1)+"*"+from(s===47?s:next())}function identifier(s){for(;!token(peek());)next();return slice(s,position)}function compile$1(s){return dealloc(parse$4("",null,null,null,[""],s=alloc(s),0,[0],s))}function parse$4(s,j,$,_e,et,tt,nt,rt,ot){for(var it=0,st=0,at=nt,ct=0,lt=0,dt=0,ft=1,gt=1,yt=1,mt=0,pt="",xt=et,Ct=tt,Dt=_e,wt=pt;gt;)switch(dt=mt,mt=next()){case 40:if(dt!=108&&charat(wt,at-1)==58){indexof(wt+=replace(delimit(mt),"&","&\f"),"&\f")!=-1&&(yt=-1);break}case 34:case 39:case 91:wt+=delimit(mt);break;case 9:case 10:case 13:case 32:wt+=whitespace(dt);break;case 92:wt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),j,$),ot);break;default:wt+="/"}break;case 123*ft:rt[it++]=strlen(wt)*yt;case 125*ft:case 59:case 0:switch(mt){case 0:case 125:gt=0;case 59+st:yt==-1&&(wt=replace(wt,/\f/g,"")),lt>0&&strlen(wt)-at&&append(lt>32?declaration(wt+";",_e,$,at-1):declaration(replace(wt," ","")+";",_e,$,at-2),ot);break;case 59:wt+=";";default:if(append(Dt=ruleset(wt,j,$,it,st,et,rt,pt,xt=[],Ct=[],at),tt),mt===123)if(st===0)parse$4(wt,j,Dt,Dt,xt,tt,at,rt,Ct);else switch(ct===99&&charat(wt,3)===110?100:ct){case 100:case 108:case 109:case 115:parse$4(s,Dt,Dt,_e&&append(ruleset(s,Dt,Dt,0,0,et,rt,pt,et,xt=[],at),Ct),et,Ct,at,rt,_e?xt:Ct);break;default:parse$4(wt,Dt,Dt,Dt,[""],Ct,0,rt,Ct)}}it=st=lt=0,ft=yt=1,pt=wt="",at=nt;break;case 58:at=1+strlen(wt),lt=dt;default:if(ft<1){if(mt==123)--ft;else if(mt==125&&ft++==0&&prev()==125)continue}switch(wt+=from(mt),mt*ft){case 38:yt=st>0?1:(wt+="\f",-1);break;case 44:rt[it++]=(strlen(wt)-1)*yt,yt=1;break;case 64:peek()===45&&(wt+=delimit(next())),ct=peek(),st=at=strlen(pt=wt+=identifier(caret())),mt++;break;case 45:dt===45&&strlen(wt)==2&&(ft=0)}}return tt}function ruleset(s,j,$,_e,et,tt,nt,rt,ot,it,st){for(var at=et-1,ct=et===0?tt:[""],lt=sizeof(ct),dt=0,ft=0,gt=0;dt<_e;++dt)for(var yt=0,mt=substr(s,at+1,at=abs(ft=nt[dt])),pt=s;yt0?ct[yt]+" "+mt:replace(mt,/&\f/g,ct[yt])))&&(ot[gt++]=pt);return node(s,j,$,et===0?RULESET:rt,ot,it,st)}function comment(s,j,$){return node(s,j,$,COMMENT,from(char()),substr(s,2,-2),0)}function declaration(s,j,$,_e){return node(s,j,$,DECLARATION,substr(s,0,_e),substr(s,_e+1,-1),_e)}function serialize$3(s,j){for(var $="",_e=sizeof(s),et=0;et<_e;et++)$+=j(s[et],et,s,j)||"";return $}function stringify$1(s,j,$,_e){switch(s.type){case LAYER:if(s.children.length)break;case IMPORT:case DECLARATION:return s.return=s.return||s.value;case COMMENT:return"";case KEYFRAMES:return s.return=s.value+"{"+serialize$3(s.children,_e)+"}";case RULESET:s.value=s.props.join(",")}return strlen($=serialize$3(s.children,_e))?s.return=s.value+"{"+$+"}":""}function middleware(s){var j=sizeof(s);return function($,_e,et,tt){for(var nt="",rt=0;rt6)switch(charat(s,j+1)){case 109:if(charat(s,j+4)!==45)break;case 102:return replace(s,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(s,j+3)==108?"$3":"$2-$3"))+s;case 115:return~indexof(s,"stretch")?prefix$1(replace(s,"stretch","fill-available"),j)+s:s}break;case 4949:if(charat(s,j+1)!==115)break;case 6444:switch(charat(s,strlen(s)-3-(~indexof(s,"!important")&&10))){case 107:return replace(s,":",":"+WEBKIT)+s;case 101:return replace(s,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(s,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+s}break;case 5936:switch(charat(s,j+11)){case 114:return WEBKIT+s+MS+replace(s,/[svh]\w+-[tblr]{2}/,"tb")+s;case 108:return WEBKIT+s+MS+replace(s,/[svh]\w+-[tblr]{2}/,"tb-rl")+s;case 45:return WEBKIT+s+MS+replace(s,/[svh]\w+-[tblr]{2}/,"lr")+s}return WEBKIT+s+MS+s+s}return s}var prefixer=function(j,$,_e,et){if(j.length>-1&&!j.return)switch(j.type){case DECLARATION:j.return=prefix$1(j.value,j.length);break;case KEYFRAMES:return serialize$3([copy(j,{value:replace(j.value,"@","@"+WEBKIT)})],et);case RULESET:if(j.length)return combine(j.props,function(tt){switch(match(tt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$3([copy(j,{props:[replace(tt,/:(read-\w+)/,":"+MOZ+"$1")]})],et);case"::placeholder":return serialize$3([copy(j,{props:[replace(tt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(j,{props:[replace(tt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(j,{props:[replace(tt,/:(plac\w+)/,MS+"input-$1")]})],et)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(j){var $=j.key;if($==="css"){var _e=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(_e,function(ft){var gt=ft.getAttribute("data-emotion");gt.indexOf(" ")!==-1&&(document.head.appendChild(ft),ft.setAttribute("data-s",""))})}var et=j.stylisPlugins||defaultStylisPlugins,tt={},nt,rt=[];nt=j.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+$+' "]'),function(ft){for(var gt=ft.getAttribute("data-emotion").split(" "),yt=1;yt=4;++_e,et-=4)$=s.charCodeAt(_e)&255|(s.charCodeAt(++_e)&255)<<8|(s.charCodeAt(++_e)&255)<<16|(s.charCodeAt(++_e)&255)<<24,$=($&65535)*1540483477+(($>>>16)*59797<<16),$^=$>>>24,j=($&65535)*1540483477+(($>>>16)*59797<<16)^(j&65535)*1540483477+((j>>>16)*59797<<16);switch(et){case 3:j^=(s.charCodeAt(_e+2)&255)<<16;case 2:j^=(s.charCodeAt(_e+1)&255)<<8;case 1:j^=s.charCodeAt(_e)&255,j=(j&65535)*1540483477+((j>>>16)*59797<<16)}return j^=j>>>13,j=(j&65535)*1540483477+((j>>>16)*59797<<16),((j^j>>>15)>>>0).toString(36)}var unitlessKeys={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,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},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(j){return j.charCodeAt(1)===45},isProcessableValue=function(j){return j!=null&&typeof j!="boolean"},processStyleName=memoize$1(function(s){return isCustomProperty(s)?s:s.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(j,$){switch(j){case"animation":case"animationName":if(typeof $=="string")return $.replace(animationRegex,function(_e,et,tt){return cursor={name:et,styles:tt,next:cursor},et})}return unitlessKeys[j]!==1&&!isCustomProperty(j)&&typeof $=="number"&&$!==0?$+"px":$},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(s,j,$){if($==null)return"";if($.__emotion_styles!==void 0)return $;switch(typeof $){case"boolean":return"";case"object":{if($.anim===1)return cursor={name:$.name,styles:$.styles,next:cursor},$.name;if($.styles!==void 0){var _e=$.next;if(_e!==void 0)for(;_e!==void 0;)cursor={name:_e.name,styles:_e.styles,next:cursor},_e=_e.next;var et=$.styles+";";return et}return createStringFromObject(s,j,$)}case"function":{if(s!==void 0){var tt=cursor,nt=$(s);return cursor=tt,handleInterpolation(s,j,nt)}break}}if(j==null)return $;var rt=j[$];return rt!==void 0?rt:$}function createStringFromObject(s,j,$){var _e="";if(Array.isArray($))for(var et=0;et<$.length;et++)_e+=handleInterpolation(s,j,$[et])+";";else for(var tt in $){var nt=$[tt];if(typeof nt!="object")j!=null&&j[nt]!==void 0?_e+=tt+"{"+j[nt]+"}":isProcessableValue(nt)&&(_e+=processStyleName(tt)+":"+processStyleValue(tt,nt)+";");else if(Array.isArray(nt)&&typeof nt[0]=="string"&&(j==null||j[nt[0]]===void 0))for(var rt=0;rt96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(j,$,_e){var et;if($){var tt=$.shouldForwardProp;et=j.__emotion_forwardProp&&tt?function(nt){return j.__emotion_forwardProp(nt)&&tt(nt)}:tt}return typeof et!="function"&&_e&&(et=j.__emotion_forwardProp),et},Insertion=function(j){var $=j.cache,_e=j.serialized,et=j.isStringTag;return registerStyles($,_e,et),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles($,_e,et)}),null},createStyled$3=function s(j,$){var _e=j.__emotion_real===j,et=_e&&j.__emotion_base||j,tt,nt;$!==void 0&&(tt=$.label,nt=$.target);var rt=composeShouldForwardProps(j,$,_e),ot=rt||getDefaultShouldForwardProp(et),it=!ot("as");return function(){var st=arguments,at=_e&&j.__emotion_styles!==void 0?j.__emotion_styles.slice(0):[];if(tt!==void 0&&at.push("label:"+tt+";"),st[0]==null||st[0].raw===void 0)at.push.apply(at,st);else{at.push(st[0][0]);for(var ct=st.length,lt=1;ltj(isEmpty$4(et)?$:et):j;return jsxRuntimeExports.jsx(Global,{styles:_e})}function styled$2(s,j){return newStyled(s,j)}const internal_processStyles=(s,j)=>{Array.isArray(s.__emotion_styles)&&(s.__emotion_styles=j(s.__emotion_styles))},styledEngine=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:GlobalStyles$2,StyledEngineProvider,ThemeContext:ThemeContext$1,css,default:styled$2,internal_processStyles,keyframes},Symbol.toStringTag,{value:"Module"}));function isPlainObject$1(s){if(typeof s!="object"||s===null)return!1;const j=Object.getPrototypeOf(s);return(j===null||j===Object.prototype||Object.getPrototypeOf(j)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)}function deepClone(s){if(!isPlainObject$1(s))return s;const j={};return Object.keys(s).forEach($=>{j[$]=deepClone(s[$])}),j}function deepmerge$1(s,j,$={clone:!0}){const _e=$.clone?_extends$2({},s):s;return isPlainObject$1(s)&&isPlainObject$1(j)&&Object.keys(j).forEach(et=>{et!=="__proto__"&&(isPlainObject$1(j[et])&&et in s&&isPlainObject$1(s[et])?_e[et]=deepmerge$1(s[et],j[et],$):$.clone?_e[et]=isPlainObject$1(j[et])?deepClone(j[et]):j[et]:_e[et]=j[et])}),_e}const deepmerge=Object.freeze(Object.defineProperty({__proto__:null,default:deepmerge$1,isPlainObject:isPlainObject$1},Symbol.toStringTag,{value:"Module"})),_excluded$1l=["values","unit","step"],sortBreakpointsValues=s=>{const j=Object.keys(s).map($=>({key:$,val:s[$]}))||[];return j.sort(($,_e)=>$.val-_e.val),j.reduce(($,_e)=>_extends$2({},$,{[_e.key]:_e.val}),{})};function createBreakpoints(s){const{values:j={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:$="px",step:_e=5}=s,et=_objectWithoutPropertiesLoose(s,_excluded$1l),tt=sortBreakpointsValues(j),nt=Object.keys(tt);function rt(ct){return`@media (min-width:${typeof j[ct]=="number"?j[ct]:ct}${$})`}function ot(ct){return`@media (max-width:${(typeof j[ct]=="number"?j[ct]:ct)-_e/100}${$})`}function it(ct,lt){const dt=nt.indexOf(lt);return`@media (min-width:${typeof j[ct]=="number"?j[ct]:ct}${$}) and (max-width:${(dt!==-1&&typeof j[nt[dt]]=="number"?j[nt[dt]]:lt)-_e/100}${$})`}function st(ct){return nt.indexOf(ct)+1`@media (min-width:${values$1[s]}px)`};function handleBreakpoints(s,j,$){const _e=s.theme||{};if(Array.isArray(j)){const tt=_e.breakpoints||defaultBreakpoints;return j.reduce((nt,rt,ot)=>(nt[tt.up(tt.keys[ot])]=$(j[ot]),nt),{})}if(typeof j=="object"){const tt=_e.breakpoints||defaultBreakpoints;return Object.keys(j).reduce((nt,rt)=>{if(Object.keys(tt.values||values$1).indexOf(rt)!==-1){const ot=tt.up(rt);nt[ot]=$(j[rt],rt)}else{const ot=rt;nt[ot]=j[ot]}return nt},{})}return $(j)}function createEmptyBreakpointObject(s={}){var j;return((j=s.keys)==null?void 0:j.reduce((_e,et)=>{const tt=s.up(et);return _e[tt]={},_e},{}))||{}}function removeUnusedBreakpoints(s,j){return s.reduce(($,_e)=>{const et=$[_e];return(!et||Object.keys(et).length===0)&&delete $[_e],$},j)}function mergeBreakpointsInOrder(s,...j){const $=createEmptyBreakpointObject(s),_e=[$,...j].reduce((et,tt)=>deepmerge$1(et,tt),{});return removeUnusedBreakpoints(Object.keys($),_e)}function computeBreakpointsBase(s,j){if(typeof s!="object")return{};const $={},_e=Object.keys(j);return Array.isArray(s)?_e.forEach((et,tt)=>{tt{s[et]!=null&&($[et]=!0)}),$}function resolveBreakpointValues({values:s,breakpoints:j,base:$}){const _e=$||computeBreakpointsBase(s,j),et=Object.keys(_e);if(et.length===0)return s;let tt;return et.reduce((nt,rt,ot)=>(Array.isArray(s)?(nt[rt]=s[ot]!=null?s[ot]:s[tt],tt=ot):typeof s=="object"?(nt[rt]=s[rt]!=null?s[rt]:s[tt],tt=rt):nt[rt]=s,nt),{})}function capitalize$1(s){if(typeof s!="string")throw new Error(formatMuiErrorMessage$1(7));return s.charAt(0).toUpperCase()+s.slice(1)}const capitalize=Object.freeze(Object.defineProperty({__proto__:null,default:capitalize$1},Symbol.toStringTag,{value:"Module"}));function getPath(s,j,$=!0){if(!j||typeof j!="string")return null;if(s&&s.vars&&$){const _e=`vars.${j}`.split(".").reduce((et,tt)=>et&&et[tt]?et[tt]:null,s);if(_e!=null)return _e}return j.split(".").reduce((_e,et)=>_e&&_e[et]!=null?_e[et]:null,s)}function getStyleValue$1(s,j,$,_e=$){let et;return typeof s=="function"?et=s($):Array.isArray(s)?et=s[$]||_e:et=getPath(s,$)||_e,j&&(et=j(et,_e,s)),et}function style$2(s){const{prop:j,cssProperty:$=s.prop,themeKey:_e,transform:et}=s,tt=nt=>{if(nt[j]==null)return null;const rt=nt[j],ot=nt.theme,it=getPath(ot,_e)||{};return handleBreakpoints(nt,rt,at=>{let ct=getStyleValue$1(it,et,at);return at===ct&&typeof at=="string"&&(ct=getStyleValue$1(it,et,`${j}${at==="default"?"":capitalize$1(at)}`,at)),$===!1?ct:{[$]:ct}})};return tt.propTypes={},tt.filterProps=[j],tt}function memoize(s){const j={};return $=>(j[$]===void 0&&(j[$]=s($)),j[$])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(s=>{if(s.length>2)if(aliases[s])s=aliases[s];else return[s];const[j,$]=s.split(""),_e=properties[j],et=directions[$]||"";return Array.isArray(et)?et.map(tt=>_e+tt):[_e+et]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(s,j,$,_e){var et;const tt=(et=getPath(s,j,!1))!=null?et:$;return typeof tt=="number"?nt=>typeof nt=="string"?nt:tt*nt:Array.isArray(tt)?nt=>typeof nt=="string"?nt:tt[nt]:typeof tt=="function"?tt:()=>{}}function createUnarySpacing(s){return createUnaryUnit(s,"spacing",8)}function getValue(s,j){if(typeof j=="string"||j==null)return j;const $=Math.abs(j),_e=s($);return j>=0?_e:typeof _e=="number"?-_e:`-${_e}`}function getStyleFromPropValue(s,j){return $=>s.reduce((_e,et)=>(_e[et]=getValue(j,$),_e),{})}function resolveCssProperty(s,j,$,_e){if(j.indexOf($)===-1)return null;const et=getCssProperties($),tt=getStyleFromPropValue(et,_e),nt=s[$];return handleBreakpoints(s,nt,tt)}function style$1(s,j){const $=createUnarySpacing(s.theme);return Object.keys(s).map(_e=>resolveCssProperty(s,j,_e,$)).reduce(merge$1,{})}function margin(s){return style$1(s,marginKeys)}margin.propTypes={};margin.filterProps=marginKeys;function padding$1(s){return style$1(s,paddingKeys)}padding$1.propTypes={};padding$1.filterProps=paddingKeys;function createSpacing(s=8){if(s.mui)return s;const j=createUnarySpacing({spacing:s}),$=(..._e)=>(_e.length===0?[1]:_e).map(tt=>{const nt=j(tt);return typeof nt=="number"?`${nt}px`:nt}).join(" ");return $.mui=!0,$}function compose(...s){const j=s.reduce((_e,et)=>(et.filterProps.forEach(tt=>{_e[tt]=et}),_e),{}),$=_e=>Object.keys(_e).reduce((et,tt)=>j[tt]?merge$1(et,j[tt](_e)):et,{});return $.propTypes={},$.filterProps=s.reduce((_e,et)=>_e.concat(et.filterProps),[]),$}function borderTransform(s){return typeof s!="number"?s:`${s}px solid`}function createBorderStyle(s,j){return style$2({prop:s,themeKey:"borders",transform:j})}const border=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=s=>{if(s.borderRadius!==void 0&&s.borderRadius!==null){const j=createUnaryUnit(s.theme,"shape.borderRadius",4),$=_e=>({borderRadius:getValue(j,_e)});return handleBreakpoints(s,s.borderRadius,$)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=s=>{if(s.gap!==void 0&&s.gap!==null){const j=createUnaryUnit(s.theme,"spacing",8),$=_e=>({gap:getValue(j,_e)});return handleBreakpoints(s,s.gap,$)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=s=>{if(s.columnGap!==void 0&&s.columnGap!==null){const j=createUnaryUnit(s.theme,"spacing",8),$=_e=>({columnGap:getValue(j,_e)});return handleBreakpoints(s,s.columnGap,$)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=s=>{if(s.rowGap!==void 0&&s.rowGap!==null){const j=createUnaryUnit(s.theme,"spacing",8),$=_e=>({rowGap:getValue(j,_e)});return handleBreakpoints(s,s.rowGap,$)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(s,j){return j==="grey"?j:s}const color=style$2({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$2({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(s){return s<=1&&s!==0?`${s*100}%`:s}const width=style$2({prop:"width",transform:sizingTransform}),maxWidth=s=>{if(s.maxWidth!==void 0&&s.maxWidth!==null){const j=$=>{var _e,et;const tt=((_e=s.theme)==null||(_e=_e.breakpoints)==null||(_e=_e.values)==null?void 0:_e[$])||values$1[$];return tt?((et=s.theme)==null||(et=et.breakpoints)==null?void 0:et.unit)!=="px"?{maxWidth:`${tt}${s.theme.breakpoints.unit}`}:{maxWidth:tt}:{maxWidth:sizingTransform($)}};return handleBreakpoints(s,s.maxWidth,j)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$2({prop:"minWidth",transform:sizingTransform}),height=style$2({prop:"height",transform:sizingTransform}),maxHeight=style$2({prop:"maxHeight",transform:sizingTransform}),minHeight=style$2({prop:"minHeight",transform:sizingTransform});style$2({prop:"size",cssProperty:"width",transform:sizingTransform});style$2({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$2({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding$1},pt:{style:padding$1},pr:{style:padding$1},pb:{style:padding$1},pl:{style:padding$1},px:{style:padding$1},py:{style:padding$1},padding:{style:padding$1},paddingTop:{style:padding$1},paddingRight:{style:padding$1},paddingBottom:{style:padding$1},paddingLeft:{style:padding$1},paddingX:{style:padding$1},paddingY:{style:padding$1},paddingInline:{style:padding$1},paddingInlineStart:{style:padding$1},paddingInlineEnd:{style:padding$1},paddingBlock:{style:padding$1},paddingBlockStart:{style:padding$1},paddingBlockEnd:{style:padding$1},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:s=>({"@media print":{display:s}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function objectsHaveSameKeys(...s){const j=s.reduce((_e,et)=>_e.concat(Object.keys(et)),[]),$=new Set(j);return s.every(_e=>$.size===Object.keys(_e).length)}function callIfFn(s,j){return typeof s=="function"?s(j):s}function unstable_createStyleFunctionSx(){function s($,_e,et,tt){const nt={[$]:_e,theme:et},rt=tt[$];if(!rt)return{[$]:_e};const{cssProperty:ot=$,themeKey:it,transform:st,style:at}=rt;if(_e==null)return null;if(it==="typography"&&_e==="inherit")return{[$]:_e};const ct=getPath(et,it)||{};return at?at(nt):handleBreakpoints(nt,_e,dt=>{let pt=getStyleValue$1(ct,st,dt);return dt===pt&&typeof dt=="string"&&(pt=getStyleValue$1(ct,st,`${$}${dt==="default"?"":capitalize$1(dt)}`,dt)),ot===!1?pt:{[ot]:pt}})}function j($){var _e;const{sx:et,theme:tt={}}=$||{};if(!et)return null;const nt=(_e=tt.unstable_sxConfig)!=null?_e:defaultSxConfig;function rt(ot){let it=ot;if(typeof ot=="function")it=ot(tt);else if(typeof ot!="object")return ot;if(!it)return null;const st=createEmptyBreakpointObject(tt.breakpoints),at=Object.keys(st);let ct=st;return Object.keys(it).forEach(lt=>{const dt=callIfFn(it[lt],tt);if(dt!=null)if(typeof dt=="object")if(nt[lt])ct=merge$1(ct,s(lt,dt,tt,nt));else{const pt=handleBreakpoints({theme:tt},dt,ht=>({[lt]:ht}));objectsHaveSameKeys(pt,dt)?ct[lt]=j({sx:dt,theme:tt}):ct=merge$1(ct,pt)}else ct=merge$1(ct,s(lt,dt,tt,nt))}),removeUnusedBreakpoints(at,ct)}return Array.isArray(et)?et.map(rt):rt(et)}return j}const styleFunctionSx$1=unstable_createStyleFunctionSx();styleFunctionSx$1.filterProps=["sx"];function applyStyles$2(s,j){const $=this;return $.vars&&typeof $.getColorSchemeSelector=="function"?{[$.getColorSchemeSelector(s).replace(/(\[[^\]]+\])/,"*:where($1)")]:j}:$.palette.mode===s?j:{}}const _excluded$1k=["breakpoints","palette","spacing","shape"];function createTheme$2(s={},...j){const{breakpoints:$={},palette:_e={},spacing:et,shape:tt={}}=s,nt=_objectWithoutPropertiesLoose(s,_excluded$1k),rt=createBreakpoints($),ot=createSpacing(et);let it=deepmerge$1({breakpoints:rt,direction:"ltr",components:{},palette:_extends$2({mode:"light"},_e),spacing:ot,shape:_extends$2({},shape,tt)},nt);return it.applyStyles=applyStyles$2,it=j.reduce((st,at)=>deepmerge$1(st,at),it),it.unstable_sxConfig=_extends$2({},defaultSxConfig,nt==null?void 0:nt.unstable_sxConfig),it.unstable_sx=function(at){return styleFunctionSx$1({sx:at,theme:this})},it}const createTheme$1=Object.freeze(Object.defineProperty({__proto__:null,default:createTheme$2,private_createBreakpoints:createBreakpoints,unstable_applyStyles:applyStyles$2},Symbol.toStringTag,{value:"Module"}));function isObjectEmpty$1(s){return Object.keys(s).length===0}function useTheme$4(s=null){const j=reactExports.useContext(ThemeContext$1);return!j||isObjectEmpty$1(j)?s:j}const systemDefaultTheme$2=createTheme$2();function useTheme$3(s=systemDefaultTheme$2){return useTheme$4(s)}function GlobalStyles$1({styles:s,themeId:j,defaultTheme:$={}}){const _e=useTheme$3($),et=typeof s=="function"?s(j&&_e[j]||_e):s;return jsxRuntimeExports.jsx(GlobalStyles$2,{styles:et})}const _excluded$1j=["sx"],splitProps=s=>{var j,$;const _e={systemProps:{},otherProps:{}},et=(j=s==null||($=s.theme)==null?void 0:$.unstable_sxConfig)!=null?j:defaultSxConfig;return Object.keys(s).forEach(tt=>{et[tt]?_e.systemProps[tt]=s[tt]:_e.otherProps[tt]=s[tt]}),_e};function extendSxProp(s){const{sx:j}=s,$=_objectWithoutPropertiesLoose(s,_excluded$1j),{systemProps:_e,otherProps:et}=splitProps($);let tt;return Array.isArray(j)?tt=[_e,...j]:typeof j=="function"?tt=(...nt)=>{const rt=j(...nt);return isPlainObject$1(rt)?_extends$2({},_e,rt):_e}:tt=_extends$2({},_e,j),_extends$2({},et,{sx:tt})}const styleFunctionSx=Object.freeze(Object.defineProperty({__proto__:null,default:styleFunctionSx$1,extendSxProp,unstable_createStyleFunctionSx,unstable_defaultSxConfig:defaultSxConfig},Symbol.toStringTag,{value:"Module"})),defaultGenerator=s=>s,createClassNameGenerator=()=>{let s=defaultGenerator;return{configure(j){s=j},generate(j){return s(j)},reset(){s=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator();function r(s){var j,$,_e="";if(typeof s=="string"||typeof s=="number")_e+=s;else if(typeof s=="object")if(Array.isArray(s)){var et=s.length;for(j=0;jrt!=="theme"&&rt!=="sx"&&rt!=="as"})(styleFunctionSx$1);return reactExports.forwardRef(function(ot,it){const st=useTheme$3($),at=extendSxProp(ot),{className:ct,component:lt="div"}=at,dt=_objectWithoutPropertiesLoose(at,_excluded$1i);return jsxRuntimeExports.jsx(tt,_extends$2({as:lt,ref:it,className:clsx(ct,et?et(_e):_e),theme:j&&st[j]||st},dt))})}const globalStateClasses={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass$1(s,j,$="Mui"){const _e=globalStateClasses[j];return _e?`${$}-${_e}`:`${ClassNameGenerator.generate(s)}-${j}`}function generateUtilityClasses$1(s,j,$="Mui"){const _e={};return j.forEach(et=>{_e[et]=generateUtilityClass$1(s,et,$)}),_e}var reactIs={exports:{}},reactIs_production_min$1={};/** + */var b$2=typeof Symbol=="function"&&Symbol.for,c$3=b$2?Symbol.for("react.element"):60103,d$2=b$2?Symbol.for("react.portal"):60106,e$2=b$2?Symbol.for("react.fragment"):60107,f$3=b$2?Symbol.for("react.strict_mode"):60108,g$2=b$2?Symbol.for("react.profiler"):60114,h$2=b$2?Symbol.for("react.provider"):60109,k$2=b$2?Symbol.for("react.context"):60110,l$2=b$2?Symbol.for("react.async_mode"):60111,m$2=b$2?Symbol.for("react.concurrent_mode"):60111,n$2=b$2?Symbol.for("react.forward_ref"):60112,p$2=b$2?Symbol.for("react.suspense"):60113,q$2=b$2?Symbol.for("react.suspense_list"):60120,r$1=b$2?Symbol.for("react.memo"):60115,t$2=b$2?Symbol.for("react.lazy"):60116,v$2=b$2?Symbol.for("react.block"):60121,w=b$2?Symbol.for("react.fundamental"):60117,x=b$2?Symbol.for("react.responder"):60118,y=b$2?Symbol.for("react.scope"):60119;function z(s){if(typeof s=="object"&&s!==null){var j=s.$$typeof;switch(j){case c$3:switch(s=s.type,s){case l$2:case m$2:case e$2:case g$2:case f$3:case p$2:return s;default:switch(s=s&&s.$$typeof,s){case k$2:case n$2:case t$2:case r$1:case h$2:return s;default:return j}}case d$2:return j}}}function A(s){return z(s)===m$2}reactIs_production_min$2.AsyncMode=l$2;reactIs_production_min$2.ConcurrentMode=m$2;reactIs_production_min$2.ContextConsumer=k$2;reactIs_production_min$2.ContextProvider=h$2;reactIs_production_min$2.Element=c$3;reactIs_production_min$2.ForwardRef=n$2;reactIs_production_min$2.Fragment=e$2;reactIs_production_min$2.Lazy=t$2;reactIs_production_min$2.Memo=r$1;reactIs_production_min$2.Portal=d$2;reactIs_production_min$2.Profiler=g$2;reactIs_production_min$2.StrictMode=f$3;reactIs_production_min$2.Suspense=p$2;reactIs_production_min$2.isAsyncMode=function(s){return A(s)||z(s)===l$2};reactIs_production_min$2.isConcurrentMode=A;reactIs_production_min$2.isContextConsumer=function(s){return z(s)===k$2};reactIs_production_min$2.isContextProvider=function(s){return z(s)===h$2};reactIs_production_min$2.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===c$3};reactIs_production_min$2.isForwardRef=function(s){return z(s)===n$2};reactIs_production_min$2.isFragment=function(s){return z(s)===e$2};reactIs_production_min$2.isLazy=function(s){return z(s)===t$2};reactIs_production_min$2.isMemo=function(s){return z(s)===r$1};reactIs_production_min$2.isPortal=function(s){return z(s)===d$2};reactIs_production_min$2.isProfiler=function(s){return z(s)===g$2};reactIs_production_min$2.isStrictMode=function(s){return z(s)===f$3};reactIs_production_min$2.isSuspense=function(s){return z(s)===p$2};reactIs_production_min$2.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===e$2||s===m$2||s===g$2||s===f$3||s===p$2||s===q$2||typeof s=="object"&&s!==null&&(s.$$typeof===t$2||s.$$typeof===r$1||s.$$typeof===h$2||s.$$typeof===k$2||s.$$typeof===n$2||s.$$typeof===w||s.$$typeof===x||s.$$typeof===y||s.$$typeof===v$2)};reactIs_production_min$2.typeOf=z;reactIs$2.exports=reactIs_production_min$2;var reactIsExports$1=reactIs$2.exports,reactIs$1=reactIsExports$1,FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs$1.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs$1.Memo]=MEMO_STATICS;var isBrowser=!0;function getRegisteredStyles(s,j,$){var _e="";return $.split(" ").forEach(function(et){s[et]!==void 0?j.push(s[et]+";"):_e+=et+" "}),_e}var registerStyles=function(j,$,_e){var et=j.key+"-"+$.name;(_e===!1||isBrowser===!1)&&j.registered[et]===void 0&&(j.registered[et]=$.styles)},insertStyles=function(j,$,_e){registerStyles(j,$,_e);var et=j.key+"-"+$.name;if(j.inserted[$.name]===void 0){var tt=$;do j.insert($===tt?"."+et:"",tt,j.sheet,!0),tt=tt.next;while(tt!==void 0)}};function murmur2(s){for(var j=0,$,_e=0,et=s.length;et>=4;++_e,et-=4)$=s.charCodeAt(_e)&255|(s.charCodeAt(++_e)&255)<<8|(s.charCodeAt(++_e)&255)<<16|(s.charCodeAt(++_e)&255)<<24,$=($&65535)*1540483477+(($>>>16)*59797<<16),$^=$>>>24,j=($&65535)*1540483477+(($>>>16)*59797<<16)^(j&65535)*1540483477+((j>>>16)*59797<<16);switch(et){case 3:j^=(s.charCodeAt(_e+2)&255)<<16;case 2:j^=(s.charCodeAt(_e+1)&255)<<8;case 1:j^=s.charCodeAt(_e)&255,j=(j&65535)*1540483477+((j>>>16)*59797<<16)}return j^=j>>>13,j=(j&65535)*1540483477+((j>>>16)*59797<<16),((j^j>>>15)>>>0).toString(36)}var unitlessKeys={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,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},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(j){return j.charCodeAt(1)===45},isProcessableValue=function(j){return j!=null&&typeof j!="boolean"},processStyleName=memoize$1(function(s){return isCustomProperty(s)?s:s.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(j,$){switch(j){case"animation":case"animationName":if(typeof $=="string")return $.replace(animationRegex,function(_e,et,tt){return cursor={name:et,styles:tt,next:cursor},et})}return unitlessKeys[j]!==1&&!isCustomProperty(j)&&typeof $=="number"&&$!==0?$+"px":$},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(s,j,$){if($==null)return"";if($.__emotion_styles!==void 0)return $;switch(typeof $){case"boolean":return"";case"object":{if($.anim===1)return cursor={name:$.name,styles:$.styles,next:cursor},$.name;if($.styles!==void 0){var _e=$.next;if(_e!==void 0)for(;_e!==void 0;)cursor={name:_e.name,styles:_e.styles,next:cursor},_e=_e.next;var et=$.styles+";";return et}return createStringFromObject(s,j,$)}case"function":{if(s!==void 0){var tt=cursor,nt=$(s);return cursor=tt,handleInterpolation(s,j,nt)}break}}if(j==null)return $;var rt=j[$];return rt!==void 0?rt:$}function createStringFromObject(s,j,$){var _e="";if(Array.isArray($))for(var et=0;et<$.length;et++)_e+=handleInterpolation(s,j,$[et])+";";else for(var tt in $){var nt=$[tt];if(typeof nt!="object")j!=null&&j[nt]!==void 0?_e+=tt+"{"+j[nt]+"}":isProcessableValue(nt)&&(_e+=processStyleName(tt)+":"+processStyleValue(tt,nt)+";");else if(Array.isArray(nt)&&typeof nt[0]=="string"&&(j==null||j[nt[0]]===void 0))for(var rt=0;rt96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(j,$,_e){var et;if($){var tt=$.shouldForwardProp;et=j.__emotion_forwardProp&&tt?function(nt){return j.__emotion_forwardProp(nt)&&tt(nt)}:tt}return typeof et!="function"&&_e&&(et=j.__emotion_forwardProp),et},Insertion=function(j){var $=j.cache,_e=j.serialized,et=j.isStringTag;return registerStyles($,_e,et),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles($,_e,et)}),null},createStyled$3=function s(j,$){var _e=j.__emotion_real===j,et=_e&&j.__emotion_base||j,tt,nt;$!==void 0&&(tt=$.label,nt=$.target);var rt=composeShouldForwardProps(j,$,_e),ot=rt||getDefaultShouldForwardProp(et),it=!ot("as");return function(){var st=arguments,at=_e&&j.__emotion_styles!==void 0?j.__emotion_styles.slice(0):[];if(tt!==void 0&&at.push("label:"+tt+";"),st[0]==null||st[0].raw===void 0)at.push.apply(at,st);else{at.push(st[0][0]);for(var ct=st.length,lt=1;ltj(isEmpty$4(et)?$:et):j;return jsxRuntimeExports.jsx(Global,{styles:_e})}function styled$2(s,j){return newStyled(s,j)}const internal_processStyles=(s,j)=>{Array.isArray(s.__emotion_styles)&&(s.__emotion_styles=j(s.__emotion_styles))},styledEngine=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:GlobalStyles$2,StyledEngineProvider,ThemeContext:ThemeContext$1,css,default:styled$2,internal_processStyles,keyframes},Symbol.toStringTag,{value:"Module"}));function isPlainObject$1(s){if(typeof s!="object"||s===null)return!1;const j=Object.getPrototypeOf(s);return(j===null||j===Object.prototype||Object.getPrototypeOf(j)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)}function deepClone(s){if(!isPlainObject$1(s))return s;const j={};return Object.keys(s).forEach($=>{j[$]=deepClone(s[$])}),j}function deepmerge$1(s,j,$={clone:!0}){const _e=$.clone?_extends$2({},s):s;return isPlainObject$1(s)&&isPlainObject$1(j)&&Object.keys(j).forEach(et=>{et!=="__proto__"&&(isPlainObject$1(j[et])&&et in s&&isPlainObject$1(s[et])?_e[et]=deepmerge$1(s[et],j[et],$):$.clone?_e[et]=isPlainObject$1(j[et])?deepClone(j[et]):j[et]:_e[et]=j[et])}),_e}const deepmerge=Object.freeze(Object.defineProperty({__proto__:null,default:deepmerge$1,isPlainObject:isPlainObject$1},Symbol.toStringTag,{value:"Module"})),_excluded$1l=["values","unit","step"],sortBreakpointsValues=s=>{const j=Object.keys(s).map($=>({key:$,val:s[$]}))||[];return j.sort(($,_e)=>$.val-_e.val),j.reduce(($,_e)=>_extends$2({},$,{[_e.key]:_e.val}),{})};function createBreakpoints(s){const{values:j={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:$="px",step:_e=5}=s,et=_objectWithoutPropertiesLoose(s,_excluded$1l),tt=sortBreakpointsValues(j),nt=Object.keys(tt);function rt(ct){return`@media (min-width:${typeof j[ct]=="number"?j[ct]:ct}${$})`}function ot(ct){return`@media (max-width:${(typeof j[ct]=="number"?j[ct]:ct)-_e/100}${$})`}function it(ct,lt){const dt=nt.indexOf(lt);return`@media (min-width:${typeof j[ct]=="number"?j[ct]:ct}${$}) and (max-width:${(dt!==-1&&typeof j[nt[dt]]=="number"?j[nt[dt]]:lt)-_e/100}${$})`}function st(ct){return nt.indexOf(ct)+1`@media (min-width:${values$1[s]}px)`};function handleBreakpoints(s,j,$){const _e=s.theme||{};if(Array.isArray(j)){const tt=_e.breakpoints||defaultBreakpoints;return j.reduce((nt,rt,ot)=>(nt[tt.up(tt.keys[ot])]=$(j[ot]),nt),{})}if(typeof j=="object"){const tt=_e.breakpoints||defaultBreakpoints;return Object.keys(j).reduce((nt,rt)=>{if(Object.keys(tt.values||values$1).indexOf(rt)!==-1){const ot=tt.up(rt);nt[ot]=$(j[rt],rt)}else{const ot=rt;nt[ot]=j[ot]}return nt},{})}return $(j)}function createEmptyBreakpointObject(s={}){var j;return((j=s.keys)==null?void 0:j.reduce((_e,et)=>{const tt=s.up(et);return _e[tt]={},_e},{}))||{}}function removeUnusedBreakpoints(s,j){return s.reduce(($,_e)=>{const et=$[_e];return(!et||Object.keys(et).length===0)&&delete $[_e],$},j)}function mergeBreakpointsInOrder(s,...j){const $=createEmptyBreakpointObject(s),_e=[$,...j].reduce((et,tt)=>deepmerge$1(et,tt),{});return removeUnusedBreakpoints(Object.keys($),_e)}function computeBreakpointsBase(s,j){if(typeof s!="object")return{};const $={},_e=Object.keys(j);return Array.isArray(s)?_e.forEach((et,tt)=>{tt{s[et]!=null&&($[et]=!0)}),$}function resolveBreakpointValues({values:s,breakpoints:j,base:$}){const _e=$||computeBreakpointsBase(s,j),et=Object.keys(_e);if(et.length===0)return s;let tt;return et.reduce((nt,rt,ot)=>(Array.isArray(s)?(nt[rt]=s[ot]!=null?s[ot]:s[tt],tt=ot):typeof s=="object"?(nt[rt]=s[rt]!=null?s[rt]:s[tt],tt=rt):nt[rt]=s,nt),{})}function capitalize$1(s){if(typeof s!="string")throw new Error(formatMuiErrorMessage$1(7));return s.charAt(0).toUpperCase()+s.slice(1)}const capitalize=Object.freeze(Object.defineProperty({__proto__:null,default:capitalize$1},Symbol.toStringTag,{value:"Module"}));function getPath(s,j,$=!0){if(!j||typeof j!="string")return null;if(s&&s.vars&&$){const _e=`vars.${j}`.split(".").reduce((et,tt)=>et&&et[tt]?et[tt]:null,s);if(_e!=null)return _e}return j.split(".").reduce((_e,et)=>_e&&_e[et]!=null?_e[et]:null,s)}function getStyleValue$1(s,j,$,_e=$){let et;return typeof s=="function"?et=s($):Array.isArray(s)?et=s[$]||_e:et=getPath(s,$)||_e,j&&(et=j(et,_e,s)),et}function style$2(s){const{prop:j,cssProperty:$=s.prop,themeKey:_e,transform:et}=s,tt=nt=>{if(nt[j]==null)return null;const rt=nt[j],ot=nt.theme,it=getPath(ot,_e)||{};return handleBreakpoints(nt,rt,at=>{let ct=getStyleValue$1(it,et,at);return at===ct&&typeof at=="string"&&(ct=getStyleValue$1(it,et,`${j}${at==="default"?"":capitalize$1(at)}`,at)),$===!1?ct:{[$]:ct}})};return tt.propTypes={},tt.filterProps=[j],tt}function memoize(s){const j={};return $=>(j[$]===void 0&&(j[$]=s($)),j[$])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(s=>{if(s.length>2)if(aliases[s])s=aliases[s];else return[s];const[j,$]=s.split(""),_e=properties[j],et=directions[$]||"";return Array.isArray(et)?et.map(tt=>_e+tt):[_e+et]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(s,j,$,_e){var et;const tt=(et=getPath(s,j,!1))!=null?et:$;return typeof tt=="number"?nt=>typeof nt=="string"?nt:tt*nt:Array.isArray(tt)?nt=>typeof nt=="string"?nt:tt[nt]:typeof tt=="function"?tt:()=>{}}function createUnarySpacing(s){return createUnaryUnit(s,"spacing",8)}function getValue(s,j){if(typeof j=="string"||j==null)return j;const $=Math.abs(j),_e=s($);return j>=0?_e:typeof _e=="number"?-_e:`-${_e}`}function getStyleFromPropValue(s,j){return $=>s.reduce((_e,et)=>(_e[et]=getValue(j,$),_e),{})}function resolveCssProperty(s,j,$,_e){if(j.indexOf($)===-1)return null;const et=getCssProperties($),tt=getStyleFromPropValue(et,_e),nt=s[$];return handleBreakpoints(s,nt,tt)}function style$1(s,j){const $=createUnarySpacing(s.theme);return Object.keys(s).map(_e=>resolveCssProperty(s,j,_e,$)).reduce(merge$1,{})}function margin(s){return style$1(s,marginKeys)}margin.propTypes={};margin.filterProps=marginKeys;function padding$1(s){return style$1(s,paddingKeys)}padding$1.propTypes={};padding$1.filterProps=paddingKeys;function createSpacing(s=8){if(s.mui)return s;const j=createUnarySpacing({spacing:s}),$=(..._e)=>(_e.length===0?[1]:_e).map(tt=>{const nt=j(tt);return typeof nt=="number"?`${nt}px`:nt}).join(" ");return $.mui=!0,$}function compose(...s){const j=s.reduce((_e,et)=>(et.filterProps.forEach(tt=>{_e[tt]=et}),_e),{}),$=_e=>Object.keys(_e).reduce((et,tt)=>j[tt]?merge$1(et,j[tt](_e)):et,{});return $.propTypes={},$.filterProps=s.reduce((_e,et)=>_e.concat(et.filterProps),[]),$}function borderTransform(s){return typeof s!="number"?s:`${s}px solid`}function createBorderStyle(s,j){return style$2({prop:s,themeKey:"borders",transform:j})}const border=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=s=>{if(s.borderRadius!==void 0&&s.borderRadius!==null){const j=createUnaryUnit(s.theme,"shape.borderRadius",4),$=_e=>({borderRadius:getValue(j,_e)});return handleBreakpoints(s,s.borderRadius,$)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=s=>{if(s.gap!==void 0&&s.gap!==null){const j=createUnaryUnit(s.theme,"spacing",8),$=_e=>({gap:getValue(j,_e)});return handleBreakpoints(s,s.gap,$)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=s=>{if(s.columnGap!==void 0&&s.columnGap!==null){const j=createUnaryUnit(s.theme,"spacing",8),$=_e=>({columnGap:getValue(j,_e)});return handleBreakpoints(s,s.columnGap,$)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=s=>{if(s.rowGap!==void 0&&s.rowGap!==null){const j=createUnaryUnit(s.theme,"spacing",8),$=_e=>({rowGap:getValue(j,_e)});return handleBreakpoints(s,s.rowGap,$)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(s,j){return j==="grey"?j:s}const color=style$2({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$2({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(s){return s<=1&&s!==0?`${s*100}%`:s}const width=style$2({prop:"width",transform:sizingTransform}),maxWidth=s=>{if(s.maxWidth!==void 0&&s.maxWidth!==null){const j=$=>{var _e,et;const tt=((_e=s.theme)==null||(_e=_e.breakpoints)==null||(_e=_e.values)==null?void 0:_e[$])||values$1[$];return tt?((et=s.theme)==null||(et=et.breakpoints)==null?void 0:et.unit)!=="px"?{maxWidth:`${tt}${s.theme.breakpoints.unit}`}:{maxWidth:tt}:{maxWidth:sizingTransform($)}};return handleBreakpoints(s,s.maxWidth,j)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$2({prop:"minWidth",transform:sizingTransform}),height=style$2({prop:"height",transform:sizingTransform}),maxHeight=style$2({prop:"maxHeight",transform:sizingTransform}),minHeight=style$2({prop:"minHeight",transform:sizingTransform});style$2({prop:"size",cssProperty:"width",transform:sizingTransform});style$2({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$2({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding$1},pt:{style:padding$1},pr:{style:padding$1},pb:{style:padding$1},pl:{style:padding$1},px:{style:padding$1},py:{style:padding$1},padding:{style:padding$1},paddingTop:{style:padding$1},paddingRight:{style:padding$1},paddingBottom:{style:padding$1},paddingLeft:{style:padding$1},paddingX:{style:padding$1},paddingY:{style:padding$1},paddingInline:{style:padding$1},paddingInlineStart:{style:padding$1},paddingInlineEnd:{style:padding$1},paddingBlock:{style:padding$1},paddingBlockStart:{style:padding$1},paddingBlockEnd:{style:padding$1},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:s=>({"@media print":{display:s}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function objectsHaveSameKeys(...s){const j=s.reduce((_e,et)=>_e.concat(Object.keys(et)),[]),$=new Set(j);return s.every(_e=>$.size===Object.keys(_e).length)}function callIfFn(s,j){return typeof s=="function"?s(j):s}function unstable_createStyleFunctionSx(){function s($,_e,et,tt){const nt={[$]:_e,theme:et},rt=tt[$];if(!rt)return{[$]:_e};const{cssProperty:ot=$,themeKey:it,transform:st,style:at}=rt;if(_e==null)return null;if(it==="typography"&&_e==="inherit")return{[$]:_e};const ct=getPath(et,it)||{};return at?at(nt):handleBreakpoints(nt,_e,dt=>{let ft=getStyleValue$1(ct,st,dt);return dt===ft&&typeof dt=="string"&&(ft=getStyleValue$1(ct,st,`${$}${dt==="default"?"":capitalize$1(dt)}`,dt)),ot===!1?ft:{[ot]:ft}})}function j($){var _e;const{sx:et,theme:tt={}}=$||{};if(!et)return null;const nt=(_e=tt.unstable_sxConfig)!=null?_e:defaultSxConfig;function rt(ot){let it=ot;if(typeof ot=="function")it=ot(tt);else if(typeof ot!="object")return ot;if(!it)return null;const st=createEmptyBreakpointObject(tt.breakpoints),at=Object.keys(st);let ct=st;return Object.keys(it).forEach(lt=>{const dt=callIfFn(it[lt],tt);if(dt!=null)if(typeof dt=="object")if(nt[lt])ct=merge$1(ct,s(lt,dt,tt,nt));else{const ft=handleBreakpoints({theme:tt},dt,gt=>({[lt]:gt}));objectsHaveSameKeys(ft,dt)?ct[lt]=j({sx:dt,theme:tt}):ct=merge$1(ct,ft)}else ct=merge$1(ct,s(lt,dt,tt,nt))}),removeUnusedBreakpoints(at,ct)}return Array.isArray(et)?et.map(rt):rt(et)}return j}const styleFunctionSx$1=unstable_createStyleFunctionSx();styleFunctionSx$1.filterProps=["sx"];function applyStyles$2(s,j){const $=this;return $.vars&&typeof $.getColorSchemeSelector=="function"?{[$.getColorSchemeSelector(s).replace(/(\[[^\]]+\])/,"*:where($1)")]:j}:$.palette.mode===s?j:{}}const _excluded$1k=["breakpoints","palette","spacing","shape"];function createTheme$2(s={},...j){const{breakpoints:$={},palette:_e={},spacing:et,shape:tt={}}=s,nt=_objectWithoutPropertiesLoose(s,_excluded$1k),rt=createBreakpoints($),ot=createSpacing(et);let it=deepmerge$1({breakpoints:rt,direction:"ltr",components:{},palette:_extends$2({mode:"light"},_e),spacing:ot,shape:_extends$2({},shape,tt)},nt);return it.applyStyles=applyStyles$2,it=j.reduce((st,at)=>deepmerge$1(st,at),it),it.unstable_sxConfig=_extends$2({},defaultSxConfig,nt==null?void 0:nt.unstable_sxConfig),it.unstable_sx=function(at){return styleFunctionSx$1({sx:at,theme:this})},it}const createTheme$1=Object.freeze(Object.defineProperty({__proto__:null,default:createTheme$2,private_createBreakpoints:createBreakpoints,unstable_applyStyles:applyStyles$2},Symbol.toStringTag,{value:"Module"}));function isObjectEmpty$1(s){return Object.keys(s).length===0}function useTheme$4(s=null){const j=reactExports.useContext(ThemeContext$1);return!j||isObjectEmpty$1(j)?s:j}const systemDefaultTheme$2=createTheme$2();function useTheme$3(s=systemDefaultTheme$2){return useTheme$4(s)}function GlobalStyles$1({styles:s,themeId:j,defaultTheme:$={}}){const _e=useTheme$3($),et=typeof s=="function"?s(j&&_e[j]||_e):s;return jsxRuntimeExports.jsx(GlobalStyles$2,{styles:et})}const _excluded$1j=["sx"],splitProps=s=>{var j,$;const _e={systemProps:{},otherProps:{}},et=(j=s==null||($=s.theme)==null?void 0:$.unstable_sxConfig)!=null?j:defaultSxConfig;return Object.keys(s).forEach(tt=>{et[tt]?_e.systemProps[tt]=s[tt]:_e.otherProps[tt]=s[tt]}),_e};function extendSxProp(s){const{sx:j}=s,$=_objectWithoutPropertiesLoose(s,_excluded$1j),{systemProps:_e,otherProps:et}=splitProps($);let tt;return Array.isArray(j)?tt=[_e,...j]:typeof j=="function"?tt=(...nt)=>{const rt=j(...nt);return isPlainObject$1(rt)?_extends$2({},_e,rt):_e}:tt=_extends$2({},_e,j),_extends$2({},et,{sx:tt})}const styleFunctionSx=Object.freeze(Object.defineProperty({__proto__:null,default:styleFunctionSx$1,extendSxProp,unstable_createStyleFunctionSx,unstable_defaultSxConfig:defaultSxConfig},Symbol.toStringTag,{value:"Module"})),defaultGenerator=s=>s,createClassNameGenerator=()=>{let s=defaultGenerator;return{configure(j){s=j},generate(j){return s(j)},reset(){s=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator();function r(s){var j,$,_e="";if(typeof s=="string"||typeof s=="number")_e+=s;else if(typeof s=="object")if(Array.isArray(s)){var et=s.length;for(j=0;jrt!=="theme"&&rt!=="sx"&&rt!=="as"})(styleFunctionSx$1);return reactExports.forwardRef(function(ot,it){const st=useTheme$3($),at=extendSxProp(ot),{className:ct,component:lt="div"}=at,dt=_objectWithoutPropertiesLoose(at,_excluded$1i);return jsxRuntimeExports.jsx(tt,_extends$2({as:lt,ref:it,className:clsx(ct,et?et(_e):_e),theme:j&&st[j]||st},dt))})}const globalStateClasses={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass$1(s,j,$="Mui"){const _e=globalStateClasses[j];return _e?`${$}-${_e}`:`${ClassNameGenerator.generate(s)}-${j}`}function generateUtilityClasses$1(s,j,$="Mui"){const _e={};return j.forEach(et=>{_e[et]=generateUtilityClass$1(s,et,$)}),_e}var reactIs={exports:{}},reactIs_production_min$1={};/** * @license React * react-is.production.min.js * @@ -57,7 +57,7 @@ Error generating stack: `+tt.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b$1=Symbol.for("react.element"),c$2=Symbol.for("react.portal"),d$1=Symbol.for("react.fragment"),e$1=Symbol.for("react.strict_mode"),f$2=Symbol.for("react.profiler"),g$1=Symbol.for("react.provider"),h$1=Symbol.for("react.context"),k$1=Symbol.for("react.server_context"),l$1=Symbol.for("react.forward_ref"),m$1=Symbol.for("react.suspense"),n$1=Symbol.for("react.suspense_list"),p$1=Symbol.for("react.memo"),q$1=Symbol.for("react.lazy"),t$1=Symbol.for("react.offscreen"),u$1;u$1=Symbol.for("react.module.reference");function v$1(s){if(typeof s=="object"&&s!==null){var j=s.$$typeof;switch(j){case b$1:switch(s=s.type,s){case d$1:case f$2:case e$1:case m$1:case n$1:return s;default:switch(s=s&&s.$$typeof,s){case k$1:case h$1:case l$1:case q$1:case p$1:case g$1:return s;default:return j}}case c$2:return j}}}reactIs_production_min$1.ContextConsumer=h$1;reactIs_production_min$1.ContextProvider=g$1;reactIs_production_min$1.Element=b$1;reactIs_production_min$1.ForwardRef=l$1;reactIs_production_min$1.Fragment=d$1;reactIs_production_min$1.Lazy=q$1;reactIs_production_min$1.Memo=p$1;reactIs_production_min$1.Portal=c$2;reactIs_production_min$1.Profiler=f$2;reactIs_production_min$1.StrictMode=e$1;reactIs_production_min$1.Suspense=m$1;reactIs_production_min$1.SuspenseList=n$1;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(s){return v$1(s)===h$1};reactIs_production_min$1.isContextProvider=function(s){return v$1(s)===g$1};reactIs_production_min$1.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===b$1};reactIs_production_min$1.isForwardRef=function(s){return v$1(s)===l$1};reactIs_production_min$1.isFragment=function(s){return v$1(s)===d$1};reactIs_production_min$1.isLazy=function(s){return v$1(s)===q$1};reactIs_production_min$1.isMemo=function(s){return v$1(s)===p$1};reactIs_production_min$1.isPortal=function(s){return v$1(s)===c$2};reactIs_production_min$1.isProfiler=function(s){return v$1(s)===f$2};reactIs_production_min$1.isStrictMode=function(s){return v$1(s)===e$1};reactIs_production_min$1.isSuspense=function(s){return v$1(s)===m$1};reactIs_production_min$1.isSuspenseList=function(s){return v$1(s)===n$1};reactIs_production_min$1.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===d$1||s===f$2||s===e$1||s===m$1||s===n$1||s===t$1||typeof s=="object"&&s!==null&&(s.$$typeof===q$1||s.$$typeof===p$1||s.$$typeof===g$1||s.$$typeof===h$1||s.$$typeof===l$1||s.$$typeof===u$1||s.getModuleId!==void 0)};reactIs_production_min$1.typeOf=v$1;reactIs.exports=reactIs_production_min$1;var reactIsExports=reactIs.exports;const fnNameMatchRegex=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function getFunctionName(s){const j=`${s}`.match(fnNameMatchRegex);return j&&j[1]||""}function getFunctionComponentName(s,j=""){return s.displayName||s.name||getFunctionName(s)||j}function getWrappedName(s,j,$){const _e=getFunctionComponentName(j);return s.displayName||(_e!==""?`${$}(${_e})`:$)}function getDisplayName$1(s){if(s!=null){if(typeof s=="string")return s;if(typeof s=="function")return getFunctionComponentName(s,"Component");if(typeof s=="object")switch(s.$$typeof){case reactIsExports.ForwardRef:return getWrappedName(s,s.render,"ForwardRef");case reactIsExports.Memo:return getWrappedName(s,s.type,"memo");default:return}}}const getDisplayName=Object.freeze(Object.defineProperty({__proto__:null,default:getDisplayName$1,getFunctionName},Symbol.toStringTag,{value:"Module"})),_excluded$1h=["ownerState"],_excluded2$8=["variants"],_excluded3$3=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty$3(s){return Object.keys(s).length===0}function isStringTag$1(s){return typeof s=="string"&&s.charCodeAt(0)>96}function shouldForwardProp$1(s){return s!=="ownerState"&&s!=="theme"&&s!=="sx"&&s!=="as"}const systemDefaultTheme$1=createTheme$2(),lowercaseFirstLetter$1=s=>s&&s.charAt(0).toLowerCase()+s.slice(1);function resolveTheme$1({defaultTheme:s,theme:j,themeId:$}){return isEmpty$3(j)?s:j[$]||j}function defaultOverridesResolver$1(s){return s?(j,$)=>$[s]:null}function processStyleArg$1(s,j){let{ownerState:$}=j,_e=_objectWithoutPropertiesLoose(j,_excluded$1h);const et=typeof s=="function"?s(_extends$2({ownerState:$},_e)):s;if(Array.isArray(et))return et.flatMap(tt=>processStyleArg$1(tt,_extends$2({ownerState:$},_e)));if(et&&typeof et=="object"&&Array.isArray(et.variants)){const{variants:tt=[]}=et;let rt=_objectWithoutPropertiesLoose(et,_excluded2$8);return tt.forEach(ot=>{let it=!0;typeof ot.props=="function"?it=ot.props(_extends$2({ownerState:$},_e,$)):Object.keys(ot.props).forEach(st=>{($==null?void 0:$[st])!==ot.props[st]&&_e[st]!==ot.props[st]&&(it=!1)}),it&&(Array.isArray(rt)||(rt=[rt]),rt.push(typeof ot.style=="function"?ot.style(_extends$2({ownerState:$},_e,$)):ot.style))}),rt}return et}function createStyled$2(s={}){const{themeId:j,defaultTheme:$=systemDefaultTheme$1,rootShouldForwardProp:_e=shouldForwardProp$1,slotShouldForwardProp:et=shouldForwardProp$1}=s,tt=nt=>styleFunctionSx$1(_extends$2({},nt,{theme:resolveTheme$1(_extends$2({},nt,{defaultTheme:$,themeId:j}))}));return tt.__mui_systemSx=!0,(nt,rt={})=>{internal_processStyles(nt,Mt=>Mt.filter(jt=>!(jt!=null&&jt.__mui_systemSx)));const{name:ot,slot:it,skipVariantsResolver:st,skipSx:at,overridesResolver:ct=defaultOverridesResolver$1(lowercaseFirstLetter$1(it))}=rt,lt=_objectWithoutPropertiesLoose(rt,_excluded3$3),dt=st!==void 0?st:it&&it!=="Root"&&it!=="root"||!1,pt=at||!1;let ht,yt=shouldForwardProp$1;it==="Root"||it==="root"?yt=_e:it?yt=et:isStringTag$1(nt)&&(yt=void 0);const gt=styled$2(nt,_extends$2({shouldForwardProp:yt,label:ht},lt)),ft=Mt=>typeof Mt=="function"&&Mt.__emotion_real!==Mt||isPlainObject$1(Mt)?jt=>processStyleArg$1(Mt,_extends$2({},jt,{theme:resolveTheme$1({theme:jt.theme,defaultTheme:$,themeId:j})})):Mt,xt=(Mt,...jt)=>{let wt=ft(Mt);const $t=jt?jt.map(ft):[];ot&&ct&&$t.push(Pt=>{const Ft=resolveTheme$1(_extends$2({},Pt,{defaultTheme:$,themeId:j}));if(!Ft.components||!Ft.components[ot]||!Ft.components[ot].styleOverrides)return null;const Nt=Ft.components[ot].styleOverrides,mt={};return Object.entries(Nt).forEach(([bt,St])=>{mt[bt]=processStyleArg$1(St,_extends$2({},Pt,{theme:Ft}))}),ct(Pt,mt)}),ot&&!dt&&$t.push(Pt=>{var Ft;const Nt=resolveTheme$1(_extends$2({},Pt,{defaultTheme:$,themeId:j})),mt=Nt==null||(Ft=Nt.components)==null||(Ft=Ft[ot])==null?void 0:Ft.variants;return processStyleArg$1({variants:mt},_extends$2({},Pt,{theme:Nt}))}),pt||$t.push(tt);const zt=$t.length-jt.length;if(Array.isArray(Mt)&&zt>0){const Pt=new Array(zt).fill("");wt=[...Mt,...Pt],wt.raw=[...Mt.raw,...Pt]}const Ot=gt(wt,...$t);return nt.muiName&&(Ot.muiName=nt.muiName),Ot};return gt.withConfig&&(xt.withConfig=gt.withConfig),xt}}const styled$1=createStyled$2();function resolveProps(s,j){const $=_extends$2({},j);return Object.keys(s).forEach(_e=>{if(_e.toString().match(/^(components|slots)$/))$[_e]=_extends$2({},s[_e],$[_e]);else if(_e.toString().match(/^(componentsProps|slotProps)$/)){const et=s[_e]||{},tt=j[_e];$[_e]={},!tt||!Object.keys(tt)?$[_e]=et:!et||!Object.keys(et)?$[_e]=tt:($[_e]=_extends$2({},tt),Object.keys(et).forEach(nt=>{$[_e][nt]=resolveProps(et[nt],tt[nt])}))}else $[_e]===void 0&&($[_e]=s[_e])}),$}function getThemeProps(s){const{theme:j,name:$,props:_e}=s;return!j||!j.components||!j.components[$]||!j.components[$].defaultProps?_e:resolveProps(j.components[$].defaultProps,_e)}function useThemeProps$6({props:s,name:j,defaultTheme:$,themeId:_e}){let et=useTheme$3($);return _e&&(et=et[_e]||et),getThemeProps({theme:et,name:j,props:s})}const useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useMediaQueryOld(s,j,$,_e,et){const[tt,nt]=reactExports.useState(()=>et&&$?$(s).matches:_e?_e(s).matches:j);return useEnhancedEffect(()=>{let rt=!0;if(!$)return;const ot=$(s),it=()=>{rt&&nt(ot.matches)};return it(),ot.addListener(it),()=>{rt=!1,ot.removeListener(it)}},[s,$]),tt}const maybeReactUseSyncExternalStore=reactExports.useSyncExternalStore;function useMediaQueryNew(s,j,$,_e,et){const tt=reactExports.useCallback(()=>j,[j]),nt=reactExports.useMemo(()=>{if(et&&$)return()=>$(s).matches;if(_e!==null){const{matches:st}=_e(s);return()=>st}return tt},[tt,s,_e,et,$]),[rt,ot]=reactExports.useMemo(()=>{if($===null)return[tt,()=>()=>{}];const st=$(s);return[()=>st.matches,at=>(st.addListener(at),()=>{st.removeListener(at)})]},[tt,$,s]);return maybeReactUseSyncExternalStore(ot,rt,nt)}function useMediaQuery(s,j={}){const $=useTheme$4(),_e=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:et=!1,matchMedia:tt=_e?window.matchMedia:null,ssrMatchMedia:nt=null,noSsr:rt=!1}=getThemeProps({name:"MuiUseMediaQuery",props:j,theme:$});let ot=typeof s=="function"?s($):s;return ot=ot.replace(/^@media( ?)/m,""),(maybeReactUseSyncExternalStore!==void 0?useMediaQueryNew:useMediaQueryOld)(ot,et,tt,nt,rt)}function clamp$2(s,j=Number.MIN_SAFE_INTEGER,$=Number.MAX_SAFE_INTEGER){return Math.max(j,Math.min(s,$))}const clamp$1=Object.freeze(Object.defineProperty({__proto__:null,default:clamp$2},Symbol.toStringTag,{value:"Module"}));function clampWrapper$1(s,j=0,$=1){return clamp$2(s,j,$)}function hexToRgb$1(s){s=s.slice(1);const j=new RegExp(`.{1,${s.length>=6?2:1}}`,"g");let $=s.match(j);return $&&$[0].length===1&&($=$.map(_e=>_e+_e)),$?`rgb${$.length===4?"a":""}(${$.map((_e,et)=>et<3?parseInt(_e,16):Math.round(parseInt(_e,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor$1(s){if(s.type)return s;if(s.charAt(0)==="#")return decomposeColor$1(hexToRgb$1(s));const j=s.indexOf("("),$=s.substring(0,j);if(["rgb","rgba","hsl","hsla","color"].indexOf($)===-1)throw new Error(formatMuiErrorMessage$1(9,s));let _e=s.substring(j+1,s.length-1),et;if($==="color"){if(_e=_e.split(" "),et=_e.shift(),_e.length===4&&_e[3].charAt(0)==="/"&&(_e[3]=_e[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(et)===-1)throw new Error(formatMuiErrorMessage$1(10,et))}else _e=_e.split(",");return _e=_e.map(tt=>parseFloat(tt)),{type:$,values:_e,colorSpace:et}}function recomposeColor$1(s){const{type:j,colorSpace:$}=s;let{values:_e}=s;return j.indexOf("rgb")!==-1?_e=_e.map((et,tt)=>tt<3?parseInt(et,10):et):j.indexOf("hsl")!==-1&&(_e[1]=`${_e[1]}%`,_e[2]=`${_e[2]}%`),j.indexOf("color")!==-1?_e=`${$} ${_e.join(" ")}`:_e=`${_e.join(", ")}`,`${j}(${_e})`}function alpha$1(s,j){return s=decomposeColor$1(s),j=clampWrapper$1(j),(s.type==="rgb"||s.type==="hsl")&&(s.type+="a"),s.type==="color"?s.values[3]=`/${j}`:s.values[3]=j,recomposeColor$1(s)}function createChainedFunction(...s){return s.reduce((j,$)=>$==null?j:function(...et){j.apply(this,et),$.apply(this,et)},()=>{})}function debounce$1(s,j=166){let $;function _e(...et){const tt=()=>{s.apply(this,et)};clearTimeout($),$=setTimeout(tt,j)}return _e.clear=()=>{clearTimeout($)},_e}function isMuiElement(s,j){var $,_e;return reactExports.isValidElement(s)&&j.indexOf(($=s.type.muiName)!=null?$:(_e=s.type)==null||(_e=_e._payload)==null||(_e=_e.value)==null?void 0:_e.muiName)!==-1}function ownerDocument(s){return s&&s.ownerDocument||document}function ownerWindow(s){return ownerDocument(s).defaultView||window}function setRef(s,j){typeof s=="function"?s(j):s&&(s.current=j)}let globalId=0;function useGlobalId(s){const[j,$]=reactExports.useState(s),_e=s||j;return reactExports.useEffect(()=>{j==null&&(globalId+=1,$(`mui-${globalId}`))},[j]),_e}const maybeReactUseId=React$2.useId;function useId(s){if(maybeReactUseId!==void 0){const j=maybeReactUseId();return s??j}return useGlobalId(s)}function useControlled({controlled:s,default:j,name:$,state:_e="value"}){const{current:et}=reactExports.useRef(s!==void 0),[tt,nt]=reactExports.useState(j),rt=et?s:tt,ot=reactExports.useCallback(it=>{et||nt(it)},[]);return[rt,ot]}function useEventCallback(s){const j=reactExports.useRef(s);return useEnhancedEffect(()=>{j.current=s}),reactExports.useRef((...$)=>(0,j.current)(...$)).current}function useForkRef(...s){return reactExports.useMemo(()=>s.every(j=>j==null)?null:j=>{s.forEach($=>{setRef($,j)})},s)}const UNINITIALIZED={};function useLazyRef(s,j){const $=reactExports.useRef(UNINITIALIZED);return $.current===UNINITIALIZED&&($.current=s(j)),$}const EMPTY=[];function useOnMount(s){reactExports.useEffect(s,EMPTY)}class Timeout{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Timeout}start(j,$){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,$()},j)}}function useTimeout(){const s=useLazyRef(Timeout.create).current;return useOnMount(s.disposeEffect),s}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1;const hadFocusVisibleRecentlyTimeout=new Timeout,inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(s){const{type:j,tagName:$}=s;return!!($==="INPUT"&&inputTypesWhitelist[j]&&!s.readOnly||$==="TEXTAREA"&&!s.readOnly||s.isContentEditable)}function handleKeyDown(s){s.metaKey||s.altKey||s.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(s){s.addEventListener("keydown",handleKeyDown,!0),s.addEventListener("mousedown",handlePointerDown,!0),s.addEventListener("pointerdown",handlePointerDown,!0),s.addEventListener("touchstart",handlePointerDown,!0),s.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(s){const{target:j}=s;try{return j.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(j)}function useIsFocusVisible(){const s=reactExports.useCallback(et=>{et!=null&&prepare(et.ownerDocument)},[]),j=reactExports.useRef(!1);function $(){return j.current?(hadFocusVisibleRecently=!0,hadFocusVisibleRecentlyTimeout.start(100,()=>{hadFocusVisibleRecently=!1}),j.current=!1,!0):!1}function _e(et){return isFocusVisible(et)?(j.current=!0,!0):!1}return{isFocusVisibleRef:j,onFocus:_e,onBlur:$,ref:s}}function getScrollbarSize(s){const j=s.documentElement.clientWidth;return Math.abs(window.innerWidth-j)}function getValidReactChildren(s){return reactExports.Children.toArray(s).filter(j=>reactExports.isValidElement(j))}const visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function composeClasses(s,j,$=void 0){const _e={};return Object.keys(s).forEach(et=>{_e[et]=s[et].reduce((tt,nt)=>{if(nt){const rt=j(nt);rt!==""&&tt.push(rt),$&&$[nt]&&tt.push($[nt])}return tt},[]).join(" ")}),_e}const ThemeContext=reactExports.createContext(null);function useTheme$2(){return reactExports.useContext(ThemeContext)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(s,j){return typeof j=="function"?j(s):_extends$2({},s,j)}function ThemeProvider$2(s){const{children:j,theme:$}=s,_e=useTheme$2(),et=reactExports.useMemo(()=>{const tt=_e===null?$:mergeOuterLocalTheme(_e,$);return tt!=null&&(tt[nested]=_e!==null),tt},[$,_e]);return jsxRuntimeExports.jsx(ThemeContext.Provider,{value:et,children:j})}const _excluded$1g=["value"],RtlContext=reactExports.createContext();function RtlProvider(s){let{value:j}=s,$=_objectWithoutPropertiesLoose(s,_excluded$1g);return jsxRuntimeExports.jsx(RtlContext.Provider,_extends$2({value:j??!0},$))}const useRtl=()=>{const s=reactExports.useContext(RtlContext);return s??!1},EMPTY_THEME={};function useThemeScoping(s,j,$,_e=!1){return reactExports.useMemo(()=>{const et=s&&j[s]||j;if(typeof $=="function"){const tt=$(et),nt=s?_extends$2({},j,{[s]:tt}):tt;return _e?()=>nt:nt}return s?_extends$2({},j,{[s]:$}):_extends$2({},j,$)},[s,j,$,_e])}function ThemeProvider$1(s){const{children:j,theme:$,themeId:_e}=s,et=useTheme$4(EMPTY_THEME),tt=useTheme$2()||EMPTY_THEME,nt=useThemeScoping(_e,et,$),rt=useThemeScoping(_e,tt,$,!0),ot=nt.direction==="rtl";return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:rt,children:jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:nt,children:jsxRuntimeExports.jsx(RtlProvider,{value:ot,children:j})})})}const _excluded$1f=["component","direction","spacing","divider","children","className","useFlexGap"],defaultTheme$2=createTheme$2(),defaultCreateStyledComponent=styled$1("div",{name:"MuiStack",slot:"Root",overridesResolver:(s,j)=>j.root});function useThemePropsDefault(s){return useThemeProps$6({props:s,name:"MuiStack",defaultTheme:defaultTheme$2})}function joinChildren(s,j){const $=reactExports.Children.toArray(s).filter(Boolean);return $.reduce((_e,et,tt)=>(_e.push(et),tt<$.length-1&&_e.push(reactExports.cloneElement(j,{key:`separator-${tt}`})),_e),[])}const getSideFromDirection=s=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[s],style=({ownerState:s,theme:j})=>{let $=_extends$2({display:"flex",flexDirection:"column"},handleBreakpoints({theme:j},resolveBreakpointValues({values:s.direction,breakpoints:j.breakpoints.values}),_e=>({flexDirection:_e})));if(s.spacing){const _e=createUnarySpacing(j),et=Object.keys(j.breakpoints.values).reduce((ot,it)=>((typeof s.spacing=="object"&&s.spacing[it]!=null||typeof s.direction=="object"&&s.direction[it]!=null)&&(ot[it]=!0),ot),{}),tt=resolveBreakpointValues({values:s.direction,base:et}),nt=resolveBreakpointValues({values:s.spacing,base:et});typeof tt=="object"&&Object.keys(tt).forEach((ot,it,st)=>{if(!tt[ot]){const ct=it>0?tt[st[it-1]]:"column";tt[ot]=ct}}),$=deepmerge$1($,handleBreakpoints({theme:j},nt,(ot,it)=>s.useFlexGap?{gap:getValue(_e,ot)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${getSideFromDirection(it?tt[it]:s.direction)}`]:getValue(_e,ot)}}))}return $=mergeBreakpointsInOrder(j.breakpoints,$),$};function createStack(s={}){const{createStyledComponent:j=defaultCreateStyledComponent,useThemeProps:$=useThemePropsDefault,componentName:_e="MuiStack"}=s,et=()=>composeClasses({root:["root"]},ot=>generateUtilityClass$1(_e,ot),{}),tt=j(style);return reactExports.forwardRef(function(ot,it){const st=$(ot),at=extendSxProp(st),{component:ct="div",direction:lt="column",spacing:dt=0,divider:pt,children:ht,className:yt,useFlexGap:gt=!1}=at,ft=_objectWithoutPropertiesLoose(at,_excluded$1f),xt={direction:lt,spacing:dt,useFlexGap:gt},Mt=et();return jsxRuntimeExports.jsx(tt,_extends$2({as:ct,ownerState:xt,ref:it,className:clsx(Mt.root,yt)},ft,{children:pt?joinChildren(ht,pt):ht}))})}function createMixins(s,j){return _extends$2({toolbar:{minHeight:56,[s.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[s.up("sm")]:{minHeight:64}}},j)}var colorManipulator={},interopRequireDefault={exports:{}};(function(s){function j($){return $&&$.__esModule?$:{default:$}}s.exports=j,s.exports.__esModule=!0,s.exports.default=s.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports;const require$$1$3=getAugmentedNamespace(formatMuiErrorMessage),require$$2$1=getAugmentedNamespace(clamp$1);var _interopRequireDefault$1=interopRequireDefaultExports;Object.defineProperty(colorManipulator,"__esModule",{value:!0});var alpha_1=colorManipulator.alpha=alpha;colorManipulator.blend=blend;colorManipulator.colorChannel=void 0;var darken_1=colorManipulator.darken=darken;colorManipulator.decomposeColor=decomposeColor;colorManipulator.emphasize=emphasize;var getContrastRatio_1=colorManipulator.getContrastRatio=getContrastRatio;colorManipulator.getLuminance=getLuminance;colorManipulator.hexToRgb=hexToRgb;colorManipulator.hslToRgb=hslToRgb;var lighten_1=colorManipulator.lighten=lighten;colorManipulator.private_safeAlpha=private_safeAlpha;colorManipulator.private_safeColorChannel=void 0;colorManipulator.private_safeDarken=private_safeDarken;colorManipulator.private_safeEmphasize=private_safeEmphasize;colorManipulator.private_safeLighten=private_safeLighten;colorManipulator.recomposeColor=recomposeColor;colorManipulator.rgbToHex=rgbToHex;var _formatMuiErrorMessage2=_interopRequireDefault$1(require$$1$3),_clamp=_interopRequireDefault$1(require$$2$1);function clampWrapper(s,j=0,$=1){return(0,_clamp.default)(s,j,$)}function hexToRgb(s){s=s.slice(1);const j=new RegExp(`.{1,${s.length>=6?2:1}}`,"g");let $=s.match(j);return $&&$[0].length===1&&($=$.map(_e=>_e+_e)),$?`rgb${$.length===4?"a":""}(${$.map((_e,et)=>et<3?parseInt(_e,16):Math.round(parseInt(_e,16)/255*1e3)/1e3).join(", ")})`:""}function intToHex(s){const j=s.toString(16);return j.length===1?`0${j}`:j}function decomposeColor(s){if(s.type)return s;if(s.charAt(0)==="#")return decomposeColor(hexToRgb(s));const j=s.indexOf("("),$=s.substring(0,j);if(["rgb","rgba","hsl","hsla","color"].indexOf($)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(9,s));let _e=s.substring(j+1,s.length-1),et;if($==="color"){if(_e=_e.split(" "),et=_e.shift(),_e.length===4&&_e[3].charAt(0)==="/"&&(_e[3]=_e[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(et)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(10,et))}else _e=_e.split(",");return _e=_e.map(tt=>parseFloat(tt)),{type:$,values:_e,colorSpace:et}}const colorChannel=s=>{const j=decomposeColor(s);return j.values.slice(0,3).map(($,_e)=>j.type.indexOf("hsl")!==-1&&_e!==0?`${$}%`:$).join(" ")};colorManipulator.colorChannel=colorChannel;const private_safeColorChannel=(s,j)=>{try{return colorChannel(s)}catch{return s}};colorManipulator.private_safeColorChannel=private_safeColorChannel;function recomposeColor(s){const{type:j,colorSpace:$}=s;let{values:_e}=s;return j.indexOf("rgb")!==-1?_e=_e.map((et,tt)=>tt<3?parseInt(et,10):et):j.indexOf("hsl")!==-1&&(_e[1]=`${_e[1]}%`,_e[2]=`${_e[2]}%`),j.indexOf("color")!==-1?_e=`${$} ${_e.join(" ")}`:_e=`${_e.join(", ")}`,`${j}(${_e})`}function rgbToHex(s){if(s.indexOf("#")===0)return s;const{values:j}=decomposeColor(s);return`#${j.map(($,_e)=>intToHex(_e===3?Math.round(255*$):$)).join("")}`}function hslToRgb(s){s=decomposeColor(s);const{values:j}=s,$=j[0],_e=j[1]/100,et=j[2]/100,tt=_e*Math.min(et,1-et),nt=(it,st=(it+$/30)%12)=>et-tt*Math.max(Math.min(st-3,9-st,1),-1);let rt="rgb";const ot=[Math.round(nt(0)*255),Math.round(nt(8)*255),Math.round(nt(4)*255)];return s.type==="hsla"&&(rt+="a",ot.push(j[3])),recomposeColor({type:rt,values:ot})}function getLuminance(s){s=decomposeColor(s);let j=s.type==="hsl"||s.type==="hsla"?decomposeColor(hslToRgb(s)).values:s.values;return j=j.map($=>(s.type!=="color"&&($/=255),$<=.03928?$/12.92:(($+.055)/1.055)**2.4)),Number((.2126*j[0]+.7152*j[1]+.0722*j[2]).toFixed(3))}function getContrastRatio(s,j){const $=getLuminance(s),_e=getLuminance(j);return(Math.max($,_e)+.05)/(Math.min($,_e)+.05)}function alpha(s,j){return s=decomposeColor(s),j=clampWrapper(j),(s.type==="rgb"||s.type==="hsl")&&(s.type+="a"),s.type==="color"?s.values[3]=`/${j}`:s.values[3]=j,recomposeColor(s)}function private_safeAlpha(s,j,$){try{return alpha(s,j)}catch{return s}}function darken(s,j){if(s=decomposeColor(s),j=clampWrapper(j),s.type.indexOf("hsl")!==-1)s.values[2]*=1-j;else if(s.type.indexOf("rgb")!==-1||s.type.indexOf("color")!==-1)for(let $=0;$<3;$+=1)s.values[$]*=1-j;return recomposeColor(s)}function private_safeDarken(s,j,$){try{return darken(s,j)}catch{return s}}function lighten(s,j){if(s=decomposeColor(s),j=clampWrapper(j),s.type.indexOf("hsl")!==-1)s.values[2]+=(100-s.values[2])*j;else if(s.type.indexOf("rgb")!==-1)for(let $=0;$<3;$+=1)s.values[$]+=(255-s.values[$])*j;else if(s.type.indexOf("color")!==-1)for(let $=0;$<3;$+=1)s.values[$]+=(1-s.values[$])*j;return recomposeColor(s)}function private_safeLighten(s,j,$){try{return lighten(s,j)}catch{return s}}function emphasize(s,j=.15){return getLuminance(s)>.5?darken(s,j):lighten(s,j)}function private_safeEmphasize(s,j,$){try{return emphasize(s,j)}catch{return s}}function blend(s,j,$,_e=1){const et=(ot,it)=>Math.round((ot**(1/_e)*(1-$)+it**(1/_e)*$)**_e),tt=decomposeColor(s),nt=decomposeColor(j),rt=[et(tt.values[0],nt.values[0]),et(tt.values[1],nt.values[1]),et(tt.values[2],nt.values[2])];return recomposeColor({type:"rgb",values:rt})}const _excluded$1e=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common.white,default:common.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(s,j,$,_e){const et=_e.light||_e,tt=_e.dark||_e*1.5;s[j]||(s.hasOwnProperty($)?s[j]=s[$]:j==="light"?s.light=lighten_1(s.main,et):j==="dark"&&(s.dark=darken_1(s.main,tt)))}function getDefaultPrimary(s="light"){return s==="dark"?{main:blue[200],light:blue[50],dark:blue[400]}:{main:blue[700],light:blue[400],dark:blue[800]}}function getDefaultSecondary(s="light"){return s==="dark"?{main:purple[200],light:purple[50],dark:purple[400]}:{main:purple[500],light:purple[300],dark:purple[700]}}function getDefaultError(s="light"){return s==="dark"?{main:red[500],light:red[300],dark:red[700]}:{main:red[700],light:red[400],dark:red[800]}}function getDefaultInfo(s="light"){return s==="dark"?{main:lightBlue[400],light:lightBlue[300],dark:lightBlue[700]}:{main:lightBlue[700],light:lightBlue[500],dark:lightBlue[900]}}function getDefaultSuccess(s="light"){return s==="dark"?{main:green[400],light:green[300],dark:green[700]}:{main:green[800],light:green[500],dark:green[900]}}function getDefaultWarning(s="light"){return s==="dark"?{main:orange[400],light:orange[300],dark:orange[700]}:{main:"#ed6c02",light:orange[500],dark:orange[900]}}function createPalette(s){const{mode:j="light",contrastThreshold:$=3,tonalOffset:_e=.2}=s,et=_objectWithoutPropertiesLoose(s,_excluded$1e),tt=s.primary||getDefaultPrimary(j),nt=s.secondary||getDefaultSecondary(j),rt=s.error||getDefaultError(j),ot=s.info||getDefaultInfo(j),it=s.success||getDefaultSuccess(j),st=s.warning||getDefaultWarning(j);function at(pt){return getContrastRatio_1(pt,dark.text.primary)>=$?dark.text.primary:light.text.primary}const ct=({color:pt,name:ht,mainShade:yt=500,lightShade:gt=300,darkShade:ft=700})=>{if(pt=_extends$2({},pt),!pt.main&&pt[yt]&&(pt.main=pt[yt]),!pt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage$1(11,ht?` (${ht})`:"",yt));if(typeof pt.main!="string")throw new Error(formatMuiErrorMessage$1(12,ht?` (${ht})`:"",JSON.stringify(pt.main)));return addLightOrDark(pt,"light",gt,_e),addLightOrDark(pt,"dark",ft,_e),pt.contrastText||(pt.contrastText=at(pt.main)),pt},lt={dark,light};return deepmerge$1(_extends$2({common:_extends$2({},common),mode:j,primary:ct({color:tt,name:"primary"}),secondary:ct({color:nt,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:ct({color:rt,name:"error"}),warning:ct({color:st,name:"warning"}),info:ct({color:ot,name:"info"}),success:ct({color:it,name:"success"}),grey,contrastThreshold:$,getContrastText:at,augmentColor:ct,tonalOffset:_e},lt[j]),et)}const _excluded$1d=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round$2(s){return Math.round(s*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(s,j){const $=typeof j=="function"?j(s):j,{fontFamily:_e=defaultFontFamily,fontSize:et=14,fontWeightLight:tt=300,fontWeightRegular:nt=400,fontWeightMedium:rt=500,fontWeightBold:ot=700,htmlFontSize:it=16,allVariants:st,pxToRem:at}=$,ct=_objectWithoutPropertiesLoose($,_excluded$1d),lt=et/14,dt=at||(yt=>`${yt/it*lt}rem`),pt=(yt,gt,ft,xt,Mt)=>_extends$2({fontFamily:_e,fontWeight:yt,fontSize:dt(gt),lineHeight:ft},_e===defaultFontFamily?{letterSpacing:`${round$2(xt/gt)}em`}:{},Mt,st),ht={h1:pt(tt,96,1.167,-1.5),h2:pt(tt,60,1.2,-.5),h3:pt(nt,48,1.167,0),h4:pt(nt,34,1.235,.25),h5:pt(nt,24,1.334,0),h6:pt(rt,20,1.6,.15),subtitle1:pt(nt,16,1.75,.15),subtitle2:pt(rt,14,1.57,.1),body1:pt(nt,16,1.5,.15),body2:pt(nt,14,1.43,.15),button:pt(rt,14,1.75,.4,caseAllCaps),caption:pt(nt,12,1.66,.4),overline:pt(nt,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge$1(_extends$2({htmlFontSize:it,pxToRem:dt,fontFamily:_e,fontSize:et,fontWeightLight:tt,fontWeightRegular:nt,fontWeightMedium:rt,fontWeightBold:ot},ht),ct,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...s){return[`${s[0]}px ${s[1]}px ${s[2]}px ${s[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${s[4]}px ${s[5]}px ${s[6]}px ${s[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${s[8]}px ${s[9]}px ${s[10]}px ${s[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],_excluded$1c=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(s){return`${Math.round(s)}ms`}function getAutoHeightDuration(s){if(!s)return 0;const j=s/36;return Math.round((4+15*j**.25+j/5)*10)}function createTransitions(s){const j=_extends$2({},easing,s.easing),$=_extends$2({},duration,s.duration);return _extends$2({getAutoHeightDuration,create:(et=["all"],tt={})=>{const{duration:nt=$.standard,easing:rt=j.easeInOut,delay:ot=0}=tt;return _objectWithoutPropertiesLoose(tt,_excluded$1c),(Array.isArray(et)?et:[et]).map(it=>`${it} ${typeof nt=="string"?nt:formatMs(nt)} ${rt} ${typeof ot=="string"?ot:formatMs(ot)}`).join(",")}},s,{easing:j,duration:$})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_excluded$1b=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(s={},...j){const{mixins:$={},palette:_e={},transitions:et={},typography:tt={}}=s,nt=_objectWithoutPropertiesLoose(s,_excluded$1b);if(s.vars)throw new Error(formatMuiErrorMessage$1(18));const rt=createPalette(_e),ot=createTheme$2(s);let it=deepmerge$1(ot,{mixins:createMixins(ot.breakpoints,$),palette:rt,shadows:shadows.slice(),typography:createTypography(rt,tt),transitions:createTransitions(et),zIndex:_extends$2({},zIndex)});return it=deepmerge$1(it,nt),it=j.reduce((st,at)=>deepmerge$1(st,at),it),it.unstable_sxConfig=_extends$2({},defaultSxConfig,nt==null?void 0:nt.unstable_sxConfig),it.unstable_sx=function(at){return styleFunctionSx$1({sx:at,theme:this})},it}function isUnitless(s){return String(parseFloat(s)).length===String(s).length}function getUnit(s){return String(s).match(/[\d.\-+]*\s*(.*)/)[1]||""}function toUnitless(s){return parseFloat(s)}function convertLength(s){return(j,$)=>{const _e=getUnit(j);if(_e===$)return j;let et=toUnitless(j);_e!=="px"&&(_e==="em"||_e==="rem")&&(et=toUnitless(j)*toUnitless(s));let tt=et;if($!=="px")if($==="em")tt=et/toUnitless(s);else if($==="rem")tt=et/toUnitless(s);else return j;return parseFloat(tt.toFixed(5))+$}}function alignProperty({size:s,grid:j}){const $=s-s%j,_e=$+j;return s-$<_e-s?$:_e}function fontGrid({lineHeight:s,pixels:j,htmlFontSize:$}){return j/(s*$)}function responsiveProperty({cssProperty:s,min:j,max:$,unit:_e="rem",breakpoints:et=[600,900,1200],transform:tt=null}){const nt={[s]:`${j}${_e}`},rt=($-j)/et[et.length-1];return et.forEach(ot=>{let it=j+rt*ot;tt!==null&&(it=tt(it)),nt[`@media (min-width:${ot}px)`]={[s]:`${Math.round(it*1e4)/1e4}${_e}`}}),nt}function responsiveFontSizes(s,j={}){const{breakpoints:$=["sm","md","lg"],disableAlign:_e=!1,factor:et=2,variants:tt=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=j,nt=_extends$2({},s);nt.typography=_extends$2({},nt.typography);const rt=nt.typography,ot=convertLength(rt.htmlFontSize),it=$.map(st=>nt.breakpoints.values[st]);return tt.forEach(st=>{const at=rt[st];if(!at)return;const ct=parseFloat(ot(at.fontSize,"rem"));if(ct<=1)return;const lt=ct,dt=1+(lt-1)/et;let{lineHeight:pt}=at;if(!isUnitless(pt)&&!_e)throw new Error(formatMuiErrorMessage$1(6));isUnitless(pt)||(pt=parseFloat(ot(pt,"rem"))/parseFloat(ct));let ht=null;_e||(ht=yt=>alignProperty({size:yt,grid:fontGrid({pixels:4,lineHeight:pt,htmlFontSize:rt.htmlFontSize})})),rt[st]=_extends$2({},at,responsiveProperty({cssProperty:"fontSize",min:dt,max:lt,unit:"rem",breakpoints:it,transform:ht}))}),nt}const defaultTheme$1=createTheme();function useTheme$1(){const s=useTheme$3(defaultTheme$1);return s[THEME_ID]||s}function useThemeProps$5({props:s,name:j}){return useThemeProps$6({props:s,name:j,defaultTheme:defaultTheme$1,themeId:THEME_ID})}var createStyled$1={},objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(s){function j($,_e){if($==null)return{};var et={};for(var tt in $)if({}.hasOwnProperty.call($,tt)){if(_e.includes(tt))continue;et[tt]=$[tt]}return et}s.exports=j,s.exports.__esModule=!0,s.exports.default=s.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}const require$$1$2=getAugmentedNamespace(styledEngine),require$$4=getAugmentedNamespace(deepmerge),require$$5=getAugmentedNamespace(capitalize),require$$6=getAugmentedNamespace(getDisplayName),require$$7=getAugmentedNamespace(createTheme$1),require$$8=getAugmentedNamespace(styleFunctionSx);var _interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(createStyled$1,"__esModule",{value:!0});var _default=createStyled$1.default=createStyled;createStyled$1.shouldForwardProp=shouldForwardProp;createStyled$1.systemDefaultTheme=void 0;var _extends2=_interopRequireDefault(require_extends()),_objectWithoutPropertiesLoose2=_interopRequireDefault(requireObjectWithoutPropertiesLoose()),_styledEngine$1=_interopRequireWildcard$1(require$$1$2),_deepmerge=require$$4;_interopRequireDefault(require$$5);_interopRequireDefault(require$$6);var _createTheme=_interopRequireDefault(require$$7),_styleFunctionSx=_interopRequireDefault(require$$8);const _excluded$1a=["ownerState"],_excluded2$7=["variants"],_excluded3$2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _getRequireWildcardCache$1(s){if(typeof WeakMap!="function")return null;var j=new WeakMap,$=new WeakMap;return(_getRequireWildcardCache$1=function(_e){return _e?$:j})(s)}function _interopRequireWildcard$1(s,j){if(s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var $=_getRequireWildcardCache$1(j);if($&&$.has(s))return $.get(s);var _e={__proto__:null},et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var tt in s)if(tt!=="default"&&Object.prototype.hasOwnProperty.call(s,tt)){var nt=et?Object.getOwnPropertyDescriptor(s,tt):null;nt&&(nt.get||nt.set)?Object.defineProperty(_e,tt,nt):_e[tt]=s[tt]}return _e.default=s,$&&$.set(s,_e),_e}function isEmpty$2(s){return Object.keys(s).length===0}function isStringTag(s){return typeof s=="string"&&s.charCodeAt(0)>96}function shouldForwardProp(s){return s!=="ownerState"&&s!=="theme"&&s!=="sx"&&s!=="as"}const systemDefaultTheme=createStyled$1.systemDefaultTheme=(0,_createTheme.default)(),lowercaseFirstLetter=s=>s&&s.charAt(0).toLowerCase()+s.slice(1);function resolveTheme({defaultTheme:s,theme:j,themeId:$}){return isEmpty$2(j)?s:j[$]||j}function defaultOverridesResolver(s){return s?(j,$)=>$[s]:null}function processStyleArg(s,j){let{ownerState:$}=j,_e=(0,_objectWithoutPropertiesLoose2.default)(j,_excluded$1a);const et=typeof s=="function"?s((0,_extends2.default)({ownerState:$},_e)):s;if(Array.isArray(et))return et.flatMap(tt=>processStyleArg(tt,(0,_extends2.default)({ownerState:$},_e)));if(et&&typeof et=="object"&&Array.isArray(et.variants)){const{variants:tt=[]}=et;let rt=(0,_objectWithoutPropertiesLoose2.default)(et,_excluded2$7);return tt.forEach(ot=>{let it=!0;typeof ot.props=="function"?it=ot.props((0,_extends2.default)({ownerState:$},_e,$)):Object.keys(ot.props).forEach(st=>{($==null?void 0:$[st])!==ot.props[st]&&_e[st]!==ot.props[st]&&(it=!1)}),it&&(Array.isArray(rt)||(rt=[rt]),rt.push(typeof ot.style=="function"?ot.style((0,_extends2.default)({ownerState:$},_e,$)):ot.style))}),rt}return et}function createStyled(s={}){const{themeId:j,defaultTheme:$=systemDefaultTheme,rootShouldForwardProp:_e=shouldForwardProp,slotShouldForwardProp:et=shouldForwardProp}=s,tt=nt=>(0,_styleFunctionSx.default)((0,_extends2.default)({},nt,{theme:resolveTheme((0,_extends2.default)({},nt,{defaultTheme:$,themeId:j}))}));return tt.__mui_systemSx=!0,(nt,rt={})=>{(0,_styledEngine$1.internal_processStyles)(nt,Mt=>Mt.filter(jt=>!(jt!=null&&jt.__mui_systemSx)));const{name:ot,slot:it,skipVariantsResolver:st,skipSx:at,overridesResolver:ct=defaultOverridesResolver(lowercaseFirstLetter(it))}=rt,lt=(0,_objectWithoutPropertiesLoose2.default)(rt,_excluded3$2),dt=st!==void 0?st:it&&it!=="Root"&&it!=="root"||!1,pt=at||!1;let ht,yt=shouldForwardProp;it==="Root"||it==="root"?yt=_e:it?yt=et:isStringTag(nt)&&(yt=void 0);const gt=(0,_styledEngine$1.default)(nt,(0,_extends2.default)({shouldForwardProp:yt,label:ht},lt)),ft=Mt=>typeof Mt=="function"&&Mt.__emotion_real!==Mt||(0,_deepmerge.isPlainObject)(Mt)?jt=>processStyleArg(Mt,(0,_extends2.default)({},jt,{theme:resolveTheme({theme:jt.theme,defaultTheme:$,themeId:j})})):Mt,xt=(Mt,...jt)=>{let wt=ft(Mt);const $t=jt?jt.map(ft):[];ot&&ct&&$t.push(Pt=>{const Ft=resolveTheme((0,_extends2.default)({},Pt,{defaultTheme:$,themeId:j}));if(!Ft.components||!Ft.components[ot]||!Ft.components[ot].styleOverrides)return null;const Nt=Ft.components[ot].styleOverrides,mt={};return Object.entries(Nt).forEach(([bt,St])=>{mt[bt]=processStyleArg(St,(0,_extends2.default)({},Pt,{theme:Ft}))}),ct(Pt,mt)}),ot&&!dt&&$t.push(Pt=>{var Ft;const Nt=resolveTheme((0,_extends2.default)({},Pt,{defaultTheme:$,themeId:j})),mt=Nt==null||(Ft=Nt.components)==null||(Ft=Ft[ot])==null?void 0:Ft.variants;return processStyleArg({variants:mt},(0,_extends2.default)({},Pt,{theme:Nt}))}),pt||$t.push(tt);const zt=$t.length-jt.length;if(Array.isArray(Mt)&&zt>0){const Pt=new Array(zt).fill("");wt=[...Mt,...Pt],wt.raw=[...Mt.raw,...Pt]}const Ot=gt(wt,...$t);return nt.muiName&&(Ot.muiName=nt.muiName),Ot};return gt.withConfig&&(xt.withConfig=gt.withConfig),xt}}function slotShouldForwardProp(s){return s!=="ownerState"&&s!=="theme"&&s!=="sx"&&s!=="as"}const rootShouldForwardProp=s=>slotShouldForwardProp(s)&&s!=="classes",styled=_default({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),_excluded$19=["theme"];function ThemeProvider(s){let{theme:j}=s,$=_objectWithoutPropertiesLoose(s,_excluded$19);const _e=j[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends$2({},$,{themeId:_e?THEME_ID:void 0,theme:_e||j}))}const getOverlayAlpha=s=>{let j;return s<1?j=5.11916*s**2:j=4.5*Math.log(s+1)+2,(j/100).toFixed(2)};function getSvgIconUtilityClass(s){return generateUtilityClass$1("MuiSvgIcon",s)}generateUtilityClasses$1("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _excluded$18=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],useUtilityClasses$Z=s=>{const{color:j,fontSize:$,classes:_e}=s,et={root:["root",j!=="inherit"&&`color${capitalize$1(j)}`,`fontSize${capitalize$1($)}`]};return composeClasses(et,getSvgIconUtilityClass,_e)},SvgIconRoot=styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.color!=="inherit"&&j[`color${capitalize$1($.color)}`],j[`fontSize${capitalize$1($.fontSize)}`]]}})(({theme:s,ownerState:j})=>{var $,_e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:j.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:($=s.transitions)==null||(_e=$.create)==null?void 0:_e.call($,"fill",{duration:(et=s.transitions)==null||(et=et.duration)==null?void 0:et.shorter}),fontSize:{inherit:"inherit",small:((tt=s.typography)==null||(nt=tt.pxToRem)==null?void 0:nt.call(tt,20))||"1.25rem",medium:((rt=s.typography)==null||(ot=rt.pxToRem)==null?void 0:ot.call(rt,24))||"1.5rem",large:((it=s.typography)==null||(st=it.pxToRem)==null?void 0:st.call(it,35))||"2.1875rem"}[j.fontSize],color:(at=(ct=(s.vars||s).palette)==null||(ct=ct[j.color])==null?void 0:ct.main)!=null?at:{action:(lt=(s.vars||s).palette)==null||(lt=lt.action)==null?void 0:lt.active,disabled:(dt=(s.vars||s).palette)==null||(dt=dt.action)==null?void 0:dt.disabled,inherit:void 0}[j.color]}}),SvgIcon=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiSvgIcon"}),{children:et,className:tt,color:nt="inherit",component:rt="svg",fontSize:ot="medium",htmlColor:it,inheritViewBox:st=!1,titleAccess:at,viewBox:ct="0 0 24 24"}=_e,lt=_objectWithoutPropertiesLoose(_e,_excluded$18),dt=reactExports.isValidElement(et)&&et.type==="svg",pt=_extends$2({},_e,{color:nt,component:rt,fontSize:ot,instanceFontSize:j.fontSize,inheritViewBox:st,viewBox:ct,hasSvgAsChild:dt}),ht={};st||(ht.viewBox=ct);const yt=useUtilityClasses$Z(pt);return jsxRuntimeExports.jsxs(SvgIconRoot,_extends$2({as:rt,className:clsx(yt.root,tt),focusable:"false",color:it,"aria-hidden":at?void 0:!0,role:at?"img":void 0,ref:$},ht,lt,dt&&et.props,{ownerState:pt,children:[dt?et.props.children:et,at?jsxRuntimeExports.jsx("title",{children:at}):null]}))});SvgIcon.muiName="SvgIcon";function createSvgIcon(s,j){function $(_e,et){return jsxRuntimeExports.jsx(SvgIcon,_extends$2({"data-testid":`${j}Icon`,ref:et},_e,{children:s}))}return $.muiName=SvgIcon.muiName,reactExports.memo(reactExports.forwardRef($))}var reactIs_production_min={};/** + */var b$1=Symbol.for("react.element"),c$2=Symbol.for("react.portal"),d$1=Symbol.for("react.fragment"),e$1=Symbol.for("react.strict_mode"),f$2=Symbol.for("react.profiler"),g$1=Symbol.for("react.provider"),h$1=Symbol.for("react.context"),k$1=Symbol.for("react.server_context"),l$1=Symbol.for("react.forward_ref"),m$1=Symbol.for("react.suspense"),n$1=Symbol.for("react.suspense_list"),p$1=Symbol.for("react.memo"),q$1=Symbol.for("react.lazy"),t$1=Symbol.for("react.offscreen"),u$1;u$1=Symbol.for("react.module.reference");function v$1(s){if(typeof s=="object"&&s!==null){var j=s.$$typeof;switch(j){case b$1:switch(s=s.type,s){case d$1:case f$2:case e$1:case m$1:case n$1:return s;default:switch(s=s&&s.$$typeof,s){case k$1:case h$1:case l$1:case q$1:case p$1:case g$1:return s;default:return j}}case c$2:return j}}}reactIs_production_min$1.ContextConsumer=h$1;reactIs_production_min$1.ContextProvider=g$1;reactIs_production_min$1.Element=b$1;reactIs_production_min$1.ForwardRef=l$1;reactIs_production_min$1.Fragment=d$1;reactIs_production_min$1.Lazy=q$1;reactIs_production_min$1.Memo=p$1;reactIs_production_min$1.Portal=c$2;reactIs_production_min$1.Profiler=f$2;reactIs_production_min$1.StrictMode=e$1;reactIs_production_min$1.Suspense=m$1;reactIs_production_min$1.SuspenseList=n$1;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(s){return v$1(s)===h$1};reactIs_production_min$1.isContextProvider=function(s){return v$1(s)===g$1};reactIs_production_min$1.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===b$1};reactIs_production_min$1.isForwardRef=function(s){return v$1(s)===l$1};reactIs_production_min$1.isFragment=function(s){return v$1(s)===d$1};reactIs_production_min$1.isLazy=function(s){return v$1(s)===q$1};reactIs_production_min$1.isMemo=function(s){return v$1(s)===p$1};reactIs_production_min$1.isPortal=function(s){return v$1(s)===c$2};reactIs_production_min$1.isProfiler=function(s){return v$1(s)===f$2};reactIs_production_min$1.isStrictMode=function(s){return v$1(s)===e$1};reactIs_production_min$1.isSuspense=function(s){return v$1(s)===m$1};reactIs_production_min$1.isSuspenseList=function(s){return v$1(s)===n$1};reactIs_production_min$1.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===d$1||s===f$2||s===e$1||s===m$1||s===n$1||s===t$1||typeof s=="object"&&s!==null&&(s.$$typeof===q$1||s.$$typeof===p$1||s.$$typeof===g$1||s.$$typeof===h$1||s.$$typeof===l$1||s.$$typeof===u$1||s.getModuleId!==void 0)};reactIs_production_min$1.typeOf=v$1;reactIs.exports=reactIs_production_min$1;var reactIsExports=reactIs.exports;const fnNameMatchRegex=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function getFunctionName(s){const j=`${s}`.match(fnNameMatchRegex);return j&&j[1]||""}function getFunctionComponentName(s,j=""){return s.displayName||s.name||getFunctionName(s)||j}function getWrappedName(s,j,$){const _e=getFunctionComponentName(j);return s.displayName||(_e!==""?`${$}(${_e})`:$)}function getDisplayName$1(s){if(s!=null){if(typeof s=="string")return s;if(typeof s=="function")return getFunctionComponentName(s,"Component");if(typeof s=="object")switch(s.$$typeof){case reactIsExports.ForwardRef:return getWrappedName(s,s.render,"ForwardRef");case reactIsExports.Memo:return getWrappedName(s,s.type,"memo");default:return}}}const getDisplayName=Object.freeze(Object.defineProperty({__proto__:null,default:getDisplayName$1,getFunctionName},Symbol.toStringTag,{value:"Module"})),_excluded$1h=["ownerState"],_excluded2$8=["variants"],_excluded3$3=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty$3(s){return Object.keys(s).length===0}function isStringTag$1(s){return typeof s=="string"&&s.charCodeAt(0)>96}function shouldForwardProp$1(s){return s!=="ownerState"&&s!=="theme"&&s!=="sx"&&s!=="as"}const systemDefaultTheme$1=createTheme$2(),lowercaseFirstLetter$1=s=>s&&s.charAt(0).toLowerCase()+s.slice(1);function resolveTheme$1({defaultTheme:s,theme:j,themeId:$}){return isEmpty$3(j)?s:j[$]||j}function defaultOverridesResolver$1(s){return s?(j,$)=>$[s]:null}function processStyleArg$1(s,j){let{ownerState:$}=j,_e=_objectWithoutPropertiesLoose(j,_excluded$1h);const et=typeof s=="function"?s(_extends$2({ownerState:$},_e)):s;if(Array.isArray(et))return et.flatMap(tt=>processStyleArg$1(tt,_extends$2({ownerState:$},_e)));if(et&&typeof et=="object"&&Array.isArray(et.variants)){const{variants:tt=[]}=et;let rt=_objectWithoutPropertiesLoose(et,_excluded2$8);return tt.forEach(ot=>{let it=!0;typeof ot.props=="function"?it=ot.props(_extends$2({ownerState:$},_e,$)):Object.keys(ot.props).forEach(st=>{($==null?void 0:$[st])!==ot.props[st]&&_e[st]!==ot.props[st]&&(it=!1)}),it&&(Array.isArray(rt)||(rt=[rt]),rt.push(typeof ot.style=="function"?ot.style(_extends$2({ownerState:$},_e,$)):ot.style))}),rt}return et}function createStyled$2(s={}){const{themeId:j,defaultTheme:$=systemDefaultTheme$1,rootShouldForwardProp:_e=shouldForwardProp$1,slotShouldForwardProp:et=shouldForwardProp$1}=s,tt=nt=>styleFunctionSx$1(_extends$2({},nt,{theme:resolveTheme$1(_extends$2({},nt,{defaultTheme:$,themeId:j}))}));return tt.__mui_systemSx=!0,(nt,rt={})=>{internal_processStyles(nt,Ct=>Ct.filter(Dt=>!(Dt!=null&&Dt.__mui_systemSx)));const{name:ot,slot:it,skipVariantsResolver:st,skipSx:at,overridesResolver:ct=defaultOverridesResolver$1(lowercaseFirstLetter$1(it))}=rt,lt=_objectWithoutPropertiesLoose(rt,_excluded3$3),dt=st!==void 0?st:it&&it!=="Root"&&it!=="root"||!1,ft=at||!1;let gt,yt=shouldForwardProp$1;it==="Root"||it==="root"?yt=_e:it?yt=et:isStringTag$1(nt)&&(yt=void 0);const mt=styled$2(nt,_extends$2({shouldForwardProp:yt,label:gt},lt)),pt=Ct=>typeof Ct=="function"&&Ct.__emotion_real!==Ct||isPlainObject$1(Ct)?Dt=>processStyleArg$1(Ct,_extends$2({},Dt,{theme:resolveTheme$1({theme:Dt.theme,defaultTheme:$,themeId:j})})):Ct,xt=(Ct,...Dt)=>{let wt=pt(Ct);const kt=Dt?Dt.map(pt):[];ot&&ct&&kt.push(Ft=>{const Pt=resolveTheme$1(_extends$2({},Ft,{defaultTheme:$,themeId:j}));if(!Pt.components||!Pt.components[ot]||!Pt.components[ot].styleOverrides)return null;const Nt=Pt.components[ot].styleOverrides,ht={};return Object.entries(Nt).forEach(([bt,St])=>{ht[bt]=processStyleArg$1(St,_extends$2({},Ft,{theme:Pt}))}),ct(Ft,ht)}),ot&&!dt&&kt.push(Ft=>{var Pt;const Nt=resolveTheme$1(_extends$2({},Ft,{defaultTheme:$,themeId:j})),ht=Nt==null||(Pt=Nt.components)==null||(Pt=Pt[ot])==null?void 0:Pt.variants;return processStyleArg$1({variants:ht},_extends$2({},Ft,{theme:Nt}))}),ft||kt.push(tt);const zt=kt.length-Dt.length;if(Array.isArray(Ct)&&zt>0){const Ft=new Array(zt).fill("");wt=[...Ct,...Ft],wt.raw=[...Ct.raw,...Ft]}const Ot=mt(wt,...kt);return nt.muiName&&(Ot.muiName=nt.muiName),Ot};return mt.withConfig&&(xt.withConfig=mt.withConfig),xt}}const styled$1=createStyled$2();function resolveProps(s,j){const $=_extends$2({},j);return Object.keys(s).forEach(_e=>{if(_e.toString().match(/^(components|slots)$/))$[_e]=_extends$2({},s[_e],$[_e]);else if(_e.toString().match(/^(componentsProps|slotProps)$/)){const et=s[_e]||{},tt=j[_e];$[_e]={},!tt||!Object.keys(tt)?$[_e]=et:!et||!Object.keys(et)?$[_e]=tt:($[_e]=_extends$2({},tt),Object.keys(et).forEach(nt=>{$[_e][nt]=resolveProps(et[nt],tt[nt])}))}else $[_e]===void 0&&($[_e]=s[_e])}),$}function getThemeProps(s){const{theme:j,name:$,props:_e}=s;return!j||!j.components||!j.components[$]||!j.components[$].defaultProps?_e:resolveProps(j.components[$].defaultProps,_e)}function useThemeProps$6({props:s,name:j,defaultTheme:$,themeId:_e}){let et=useTheme$3($);return _e&&(et=et[_e]||et),getThemeProps({theme:et,name:j,props:s})}const useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useMediaQueryOld(s,j,$,_e,et){const[tt,nt]=reactExports.useState(()=>et&&$?$(s).matches:_e?_e(s).matches:j);return useEnhancedEffect(()=>{let rt=!0;if(!$)return;const ot=$(s),it=()=>{rt&&nt(ot.matches)};return it(),ot.addListener(it),()=>{rt=!1,ot.removeListener(it)}},[s,$]),tt}const maybeReactUseSyncExternalStore=reactExports.useSyncExternalStore;function useMediaQueryNew(s,j,$,_e,et){const tt=reactExports.useCallback(()=>j,[j]),nt=reactExports.useMemo(()=>{if(et&&$)return()=>$(s).matches;if(_e!==null){const{matches:st}=_e(s);return()=>st}return tt},[tt,s,_e,et,$]),[rt,ot]=reactExports.useMemo(()=>{if($===null)return[tt,()=>()=>{}];const st=$(s);return[()=>st.matches,at=>(st.addListener(at),()=>{st.removeListener(at)})]},[tt,$,s]);return maybeReactUseSyncExternalStore(ot,rt,nt)}function useMediaQuery(s,j={}){const $=useTheme$4(),_e=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:et=!1,matchMedia:tt=_e?window.matchMedia:null,ssrMatchMedia:nt=null,noSsr:rt=!1}=getThemeProps({name:"MuiUseMediaQuery",props:j,theme:$});let ot=typeof s=="function"?s($):s;return ot=ot.replace(/^@media( ?)/m,""),(maybeReactUseSyncExternalStore!==void 0?useMediaQueryNew:useMediaQueryOld)(ot,et,tt,nt,rt)}function clamp$2(s,j=Number.MIN_SAFE_INTEGER,$=Number.MAX_SAFE_INTEGER){return Math.max(j,Math.min(s,$))}const clamp$1=Object.freeze(Object.defineProperty({__proto__:null,default:clamp$2},Symbol.toStringTag,{value:"Module"}));function clampWrapper$1(s,j=0,$=1){return clamp$2(s,j,$)}function hexToRgb$1(s){s=s.slice(1);const j=new RegExp(`.{1,${s.length>=6?2:1}}`,"g");let $=s.match(j);return $&&$[0].length===1&&($=$.map(_e=>_e+_e)),$?`rgb${$.length===4?"a":""}(${$.map((_e,et)=>et<3?parseInt(_e,16):Math.round(parseInt(_e,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor$1(s){if(s.type)return s;if(s.charAt(0)==="#")return decomposeColor$1(hexToRgb$1(s));const j=s.indexOf("("),$=s.substring(0,j);if(["rgb","rgba","hsl","hsla","color"].indexOf($)===-1)throw new Error(formatMuiErrorMessage$1(9,s));let _e=s.substring(j+1,s.length-1),et;if($==="color"){if(_e=_e.split(" "),et=_e.shift(),_e.length===4&&_e[3].charAt(0)==="/"&&(_e[3]=_e[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(et)===-1)throw new Error(formatMuiErrorMessage$1(10,et))}else _e=_e.split(",");return _e=_e.map(tt=>parseFloat(tt)),{type:$,values:_e,colorSpace:et}}function recomposeColor$1(s){const{type:j,colorSpace:$}=s;let{values:_e}=s;return j.indexOf("rgb")!==-1?_e=_e.map((et,tt)=>tt<3?parseInt(et,10):et):j.indexOf("hsl")!==-1&&(_e[1]=`${_e[1]}%`,_e[2]=`${_e[2]}%`),j.indexOf("color")!==-1?_e=`${$} ${_e.join(" ")}`:_e=`${_e.join(", ")}`,`${j}(${_e})`}function alpha$1(s,j){return s=decomposeColor$1(s),j=clampWrapper$1(j),(s.type==="rgb"||s.type==="hsl")&&(s.type+="a"),s.type==="color"?s.values[3]=`/${j}`:s.values[3]=j,recomposeColor$1(s)}function createChainedFunction(...s){return s.reduce((j,$)=>$==null?j:function(...et){j.apply(this,et),$.apply(this,et)},()=>{})}function debounce$1(s,j=166){let $;function _e(...et){const tt=()=>{s.apply(this,et)};clearTimeout($),$=setTimeout(tt,j)}return _e.clear=()=>{clearTimeout($)},_e}function isMuiElement(s,j){var $,_e;return reactExports.isValidElement(s)&&j.indexOf(($=s.type.muiName)!=null?$:(_e=s.type)==null||(_e=_e._payload)==null||(_e=_e.value)==null?void 0:_e.muiName)!==-1}function ownerDocument(s){return s&&s.ownerDocument||document}function ownerWindow(s){return ownerDocument(s).defaultView||window}function setRef(s,j){typeof s=="function"?s(j):s&&(s.current=j)}let globalId=0;function useGlobalId(s){const[j,$]=reactExports.useState(s),_e=s||j;return reactExports.useEffect(()=>{j==null&&(globalId+=1,$(`mui-${globalId}`))},[j]),_e}const maybeReactUseId=React$2.useId;function useId(s){if(maybeReactUseId!==void 0){const j=maybeReactUseId();return s??j}return useGlobalId(s)}function useControlled({controlled:s,default:j,name:$,state:_e="value"}){const{current:et}=reactExports.useRef(s!==void 0),[tt,nt]=reactExports.useState(j),rt=et?s:tt,ot=reactExports.useCallback(it=>{et||nt(it)},[]);return[rt,ot]}function useEventCallback(s){const j=reactExports.useRef(s);return useEnhancedEffect(()=>{j.current=s}),reactExports.useRef((...$)=>(0,j.current)(...$)).current}function useForkRef(...s){return reactExports.useMemo(()=>s.every(j=>j==null)?null:j=>{s.forEach($=>{setRef($,j)})},s)}const UNINITIALIZED={};function useLazyRef(s,j){const $=reactExports.useRef(UNINITIALIZED);return $.current===UNINITIALIZED&&($.current=s(j)),$}const EMPTY=[];function useOnMount(s){reactExports.useEffect(s,EMPTY)}class Timeout{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Timeout}start(j,$){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,$()},j)}}function useTimeout(){const s=useLazyRef(Timeout.create).current;return useOnMount(s.disposeEffect),s}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1;const hadFocusVisibleRecentlyTimeout=new Timeout,inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(s){const{type:j,tagName:$}=s;return!!($==="INPUT"&&inputTypesWhitelist[j]&&!s.readOnly||$==="TEXTAREA"&&!s.readOnly||s.isContentEditable)}function handleKeyDown(s){s.metaKey||s.altKey||s.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(s){s.addEventListener("keydown",handleKeyDown,!0),s.addEventListener("mousedown",handlePointerDown,!0),s.addEventListener("pointerdown",handlePointerDown,!0),s.addEventListener("touchstart",handlePointerDown,!0),s.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(s){const{target:j}=s;try{return j.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(j)}function useIsFocusVisible(){const s=reactExports.useCallback(et=>{et!=null&&prepare(et.ownerDocument)},[]),j=reactExports.useRef(!1);function $(){return j.current?(hadFocusVisibleRecently=!0,hadFocusVisibleRecentlyTimeout.start(100,()=>{hadFocusVisibleRecently=!1}),j.current=!1,!0):!1}function _e(et){return isFocusVisible(et)?(j.current=!0,!0):!1}return{isFocusVisibleRef:j,onFocus:_e,onBlur:$,ref:s}}function getScrollbarSize(s){const j=s.documentElement.clientWidth;return Math.abs(window.innerWidth-j)}function getValidReactChildren(s){return reactExports.Children.toArray(s).filter(j=>reactExports.isValidElement(j))}const visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function composeClasses(s,j,$=void 0){const _e={};return Object.keys(s).forEach(et=>{_e[et]=s[et].reduce((tt,nt)=>{if(nt){const rt=j(nt);rt!==""&&tt.push(rt),$&&$[nt]&&tt.push($[nt])}return tt},[]).join(" ")}),_e}const ThemeContext=reactExports.createContext(null);function useTheme$2(){return reactExports.useContext(ThemeContext)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(s,j){return typeof j=="function"?j(s):_extends$2({},s,j)}function ThemeProvider$2(s){const{children:j,theme:$}=s,_e=useTheme$2(),et=reactExports.useMemo(()=>{const tt=_e===null?$:mergeOuterLocalTheme(_e,$);return tt!=null&&(tt[nested]=_e!==null),tt},[$,_e]);return jsxRuntimeExports.jsx(ThemeContext.Provider,{value:et,children:j})}const _excluded$1g=["value"],RtlContext=reactExports.createContext();function RtlProvider(s){let{value:j}=s,$=_objectWithoutPropertiesLoose(s,_excluded$1g);return jsxRuntimeExports.jsx(RtlContext.Provider,_extends$2({value:j??!0},$))}const useRtl=()=>{const s=reactExports.useContext(RtlContext);return s??!1},EMPTY_THEME={};function useThemeScoping(s,j,$,_e=!1){return reactExports.useMemo(()=>{const et=s&&j[s]||j;if(typeof $=="function"){const tt=$(et),nt=s?_extends$2({},j,{[s]:tt}):tt;return _e?()=>nt:nt}return s?_extends$2({},j,{[s]:$}):_extends$2({},j,$)},[s,j,$,_e])}function ThemeProvider$1(s){const{children:j,theme:$,themeId:_e}=s,et=useTheme$4(EMPTY_THEME),tt=useTheme$2()||EMPTY_THEME,nt=useThemeScoping(_e,et,$),rt=useThemeScoping(_e,tt,$,!0),ot=nt.direction==="rtl";return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:rt,children:jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:nt,children:jsxRuntimeExports.jsx(RtlProvider,{value:ot,children:j})})})}const _excluded$1f=["component","direction","spacing","divider","children","className","useFlexGap"],defaultTheme$2=createTheme$2(),defaultCreateStyledComponent=styled$1("div",{name:"MuiStack",slot:"Root",overridesResolver:(s,j)=>j.root});function useThemePropsDefault(s){return useThemeProps$6({props:s,name:"MuiStack",defaultTheme:defaultTheme$2})}function joinChildren(s,j){const $=reactExports.Children.toArray(s).filter(Boolean);return $.reduce((_e,et,tt)=>(_e.push(et),tt<$.length-1&&_e.push(reactExports.cloneElement(j,{key:`separator-${tt}`})),_e),[])}const getSideFromDirection=s=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[s],style=({ownerState:s,theme:j})=>{let $=_extends$2({display:"flex",flexDirection:"column"},handleBreakpoints({theme:j},resolveBreakpointValues({values:s.direction,breakpoints:j.breakpoints.values}),_e=>({flexDirection:_e})));if(s.spacing){const _e=createUnarySpacing(j),et=Object.keys(j.breakpoints.values).reduce((ot,it)=>((typeof s.spacing=="object"&&s.spacing[it]!=null||typeof s.direction=="object"&&s.direction[it]!=null)&&(ot[it]=!0),ot),{}),tt=resolveBreakpointValues({values:s.direction,base:et}),nt=resolveBreakpointValues({values:s.spacing,base:et});typeof tt=="object"&&Object.keys(tt).forEach((ot,it,st)=>{if(!tt[ot]){const ct=it>0?tt[st[it-1]]:"column";tt[ot]=ct}}),$=deepmerge$1($,handleBreakpoints({theme:j},nt,(ot,it)=>s.useFlexGap?{gap:getValue(_e,ot)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${getSideFromDirection(it?tt[it]:s.direction)}`]:getValue(_e,ot)}}))}return $=mergeBreakpointsInOrder(j.breakpoints,$),$};function createStack(s={}){const{createStyledComponent:j=defaultCreateStyledComponent,useThemeProps:$=useThemePropsDefault,componentName:_e="MuiStack"}=s,et=()=>composeClasses({root:["root"]},ot=>generateUtilityClass$1(_e,ot),{}),tt=j(style);return reactExports.forwardRef(function(ot,it){const st=$(ot),at=extendSxProp(st),{component:ct="div",direction:lt="column",spacing:dt=0,divider:ft,children:gt,className:yt,useFlexGap:mt=!1}=at,pt=_objectWithoutPropertiesLoose(at,_excluded$1f),xt={direction:lt,spacing:dt,useFlexGap:mt},Ct=et();return jsxRuntimeExports.jsx(tt,_extends$2({as:ct,ownerState:xt,ref:it,className:clsx(Ct.root,yt)},pt,{children:ft?joinChildren(gt,ft):gt}))})}function createMixins(s,j){return _extends$2({toolbar:{minHeight:56,[s.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[s.up("sm")]:{minHeight:64}}},j)}var colorManipulator={},interopRequireDefault={exports:{}};(function(s){function j($){return $&&$.__esModule?$:{default:$}}s.exports=j,s.exports.__esModule=!0,s.exports.default=s.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports;const require$$1$3=getAugmentedNamespace(formatMuiErrorMessage),require$$2$1=getAugmentedNamespace(clamp$1);var _interopRequireDefault$1=interopRequireDefaultExports;Object.defineProperty(colorManipulator,"__esModule",{value:!0});var alpha_1=colorManipulator.alpha=alpha;colorManipulator.blend=blend;colorManipulator.colorChannel=void 0;var darken_1=colorManipulator.darken=darken;colorManipulator.decomposeColor=decomposeColor;colorManipulator.emphasize=emphasize;var getContrastRatio_1=colorManipulator.getContrastRatio=getContrastRatio;colorManipulator.getLuminance=getLuminance;colorManipulator.hexToRgb=hexToRgb;colorManipulator.hslToRgb=hslToRgb;var lighten_1=colorManipulator.lighten=lighten;colorManipulator.private_safeAlpha=private_safeAlpha;colorManipulator.private_safeColorChannel=void 0;colorManipulator.private_safeDarken=private_safeDarken;colorManipulator.private_safeEmphasize=private_safeEmphasize;colorManipulator.private_safeLighten=private_safeLighten;colorManipulator.recomposeColor=recomposeColor;colorManipulator.rgbToHex=rgbToHex;var _formatMuiErrorMessage2=_interopRequireDefault$1(require$$1$3),_clamp=_interopRequireDefault$1(require$$2$1);function clampWrapper(s,j=0,$=1){return(0,_clamp.default)(s,j,$)}function hexToRgb(s){s=s.slice(1);const j=new RegExp(`.{1,${s.length>=6?2:1}}`,"g");let $=s.match(j);return $&&$[0].length===1&&($=$.map(_e=>_e+_e)),$?`rgb${$.length===4?"a":""}(${$.map((_e,et)=>et<3?parseInt(_e,16):Math.round(parseInt(_e,16)/255*1e3)/1e3).join(", ")})`:""}function intToHex(s){const j=s.toString(16);return j.length===1?`0${j}`:j}function decomposeColor(s){if(s.type)return s;if(s.charAt(0)==="#")return decomposeColor(hexToRgb(s));const j=s.indexOf("("),$=s.substring(0,j);if(["rgb","rgba","hsl","hsla","color"].indexOf($)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(9,s));let _e=s.substring(j+1,s.length-1),et;if($==="color"){if(_e=_e.split(" "),et=_e.shift(),_e.length===4&&_e[3].charAt(0)==="/"&&(_e[3]=_e[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(et)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(10,et))}else _e=_e.split(",");return _e=_e.map(tt=>parseFloat(tt)),{type:$,values:_e,colorSpace:et}}const colorChannel=s=>{const j=decomposeColor(s);return j.values.slice(0,3).map(($,_e)=>j.type.indexOf("hsl")!==-1&&_e!==0?`${$}%`:$).join(" ")};colorManipulator.colorChannel=colorChannel;const private_safeColorChannel=(s,j)=>{try{return colorChannel(s)}catch{return s}};colorManipulator.private_safeColorChannel=private_safeColorChannel;function recomposeColor(s){const{type:j,colorSpace:$}=s;let{values:_e}=s;return j.indexOf("rgb")!==-1?_e=_e.map((et,tt)=>tt<3?parseInt(et,10):et):j.indexOf("hsl")!==-1&&(_e[1]=`${_e[1]}%`,_e[2]=`${_e[2]}%`),j.indexOf("color")!==-1?_e=`${$} ${_e.join(" ")}`:_e=`${_e.join(", ")}`,`${j}(${_e})`}function rgbToHex(s){if(s.indexOf("#")===0)return s;const{values:j}=decomposeColor(s);return`#${j.map(($,_e)=>intToHex(_e===3?Math.round(255*$):$)).join("")}`}function hslToRgb(s){s=decomposeColor(s);const{values:j}=s,$=j[0],_e=j[1]/100,et=j[2]/100,tt=_e*Math.min(et,1-et),nt=(it,st=(it+$/30)%12)=>et-tt*Math.max(Math.min(st-3,9-st,1),-1);let rt="rgb";const ot=[Math.round(nt(0)*255),Math.round(nt(8)*255),Math.round(nt(4)*255)];return s.type==="hsla"&&(rt+="a",ot.push(j[3])),recomposeColor({type:rt,values:ot})}function getLuminance(s){s=decomposeColor(s);let j=s.type==="hsl"||s.type==="hsla"?decomposeColor(hslToRgb(s)).values:s.values;return j=j.map($=>(s.type!=="color"&&($/=255),$<=.03928?$/12.92:(($+.055)/1.055)**2.4)),Number((.2126*j[0]+.7152*j[1]+.0722*j[2]).toFixed(3))}function getContrastRatio(s,j){const $=getLuminance(s),_e=getLuminance(j);return(Math.max($,_e)+.05)/(Math.min($,_e)+.05)}function alpha(s,j){return s=decomposeColor(s),j=clampWrapper(j),(s.type==="rgb"||s.type==="hsl")&&(s.type+="a"),s.type==="color"?s.values[3]=`/${j}`:s.values[3]=j,recomposeColor(s)}function private_safeAlpha(s,j,$){try{return alpha(s,j)}catch{return s}}function darken(s,j){if(s=decomposeColor(s),j=clampWrapper(j),s.type.indexOf("hsl")!==-1)s.values[2]*=1-j;else if(s.type.indexOf("rgb")!==-1||s.type.indexOf("color")!==-1)for(let $=0;$<3;$+=1)s.values[$]*=1-j;return recomposeColor(s)}function private_safeDarken(s,j,$){try{return darken(s,j)}catch{return s}}function lighten(s,j){if(s=decomposeColor(s),j=clampWrapper(j),s.type.indexOf("hsl")!==-1)s.values[2]+=(100-s.values[2])*j;else if(s.type.indexOf("rgb")!==-1)for(let $=0;$<3;$+=1)s.values[$]+=(255-s.values[$])*j;else if(s.type.indexOf("color")!==-1)for(let $=0;$<3;$+=1)s.values[$]+=(1-s.values[$])*j;return recomposeColor(s)}function private_safeLighten(s,j,$){try{return lighten(s,j)}catch{return s}}function emphasize(s,j=.15){return getLuminance(s)>.5?darken(s,j):lighten(s,j)}function private_safeEmphasize(s,j,$){try{return emphasize(s,j)}catch{return s}}function blend(s,j,$,_e=1){const et=(ot,it)=>Math.round((ot**(1/_e)*(1-$)+it**(1/_e)*$)**_e),tt=decomposeColor(s),nt=decomposeColor(j),rt=[et(tt.values[0],nt.values[0]),et(tt.values[1],nt.values[1]),et(tt.values[2],nt.values[2])];return recomposeColor({type:"rgb",values:rt})}const _excluded$1e=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common.white,default:common.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(s,j,$,_e){const et=_e.light||_e,tt=_e.dark||_e*1.5;s[j]||(s.hasOwnProperty($)?s[j]=s[$]:j==="light"?s.light=lighten_1(s.main,et):j==="dark"&&(s.dark=darken_1(s.main,tt)))}function getDefaultPrimary(s="light"){return s==="dark"?{main:blue[200],light:blue[50],dark:blue[400]}:{main:blue[700],light:blue[400],dark:blue[800]}}function getDefaultSecondary(s="light"){return s==="dark"?{main:purple[200],light:purple[50],dark:purple[400]}:{main:purple[500],light:purple[300],dark:purple[700]}}function getDefaultError(s="light"){return s==="dark"?{main:red[500],light:red[300],dark:red[700]}:{main:red[700],light:red[400],dark:red[800]}}function getDefaultInfo(s="light"){return s==="dark"?{main:lightBlue[400],light:lightBlue[300],dark:lightBlue[700]}:{main:lightBlue[700],light:lightBlue[500],dark:lightBlue[900]}}function getDefaultSuccess(s="light"){return s==="dark"?{main:green[400],light:green[300],dark:green[700]}:{main:green[800],light:green[500],dark:green[900]}}function getDefaultWarning(s="light"){return s==="dark"?{main:orange[400],light:orange[300],dark:orange[700]}:{main:"#ed6c02",light:orange[500],dark:orange[900]}}function createPalette(s){const{mode:j="light",contrastThreshold:$=3,tonalOffset:_e=.2}=s,et=_objectWithoutPropertiesLoose(s,_excluded$1e),tt=s.primary||getDefaultPrimary(j),nt=s.secondary||getDefaultSecondary(j),rt=s.error||getDefaultError(j),ot=s.info||getDefaultInfo(j),it=s.success||getDefaultSuccess(j),st=s.warning||getDefaultWarning(j);function at(ft){return getContrastRatio_1(ft,dark.text.primary)>=$?dark.text.primary:light.text.primary}const ct=({color:ft,name:gt,mainShade:yt=500,lightShade:mt=300,darkShade:pt=700})=>{if(ft=_extends$2({},ft),!ft.main&&ft[yt]&&(ft.main=ft[yt]),!ft.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage$1(11,gt?` (${gt})`:"",yt));if(typeof ft.main!="string")throw new Error(formatMuiErrorMessage$1(12,gt?` (${gt})`:"",JSON.stringify(ft.main)));return addLightOrDark(ft,"light",mt,_e),addLightOrDark(ft,"dark",pt,_e),ft.contrastText||(ft.contrastText=at(ft.main)),ft},lt={dark,light};return deepmerge$1(_extends$2({common:_extends$2({},common),mode:j,primary:ct({color:tt,name:"primary"}),secondary:ct({color:nt,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:ct({color:rt,name:"error"}),warning:ct({color:st,name:"warning"}),info:ct({color:ot,name:"info"}),success:ct({color:it,name:"success"}),grey,contrastThreshold:$,getContrastText:at,augmentColor:ct,tonalOffset:_e},lt[j]),et)}const _excluded$1d=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round$2(s){return Math.round(s*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(s,j){const $=typeof j=="function"?j(s):j,{fontFamily:_e=defaultFontFamily,fontSize:et=14,fontWeightLight:tt=300,fontWeightRegular:nt=400,fontWeightMedium:rt=500,fontWeightBold:ot=700,htmlFontSize:it=16,allVariants:st,pxToRem:at}=$,ct=_objectWithoutPropertiesLoose($,_excluded$1d),lt=et/14,dt=at||(yt=>`${yt/it*lt}rem`),ft=(yt,mt,pt,xt,Ct)=>_extends$2({fontFamily:_e,fontWeight:yt,fontSize:dt(mt),lineHeight:pt},_e===defaultFontFamily?{letterSpacing:`${round$2(xt/mt)}em`}:{},Ct,st),gt={h1:ft(tt,96,1.167,-1.5),h2:ft(tt,60,1.2,-.5),h3:ft(nt,48,1.167,0),h4:ft(nt,34,1.235,.25),h5:ft(nt,24,1.334,0),h6:ft(rt,20,1.6,.15),subtitle1:ft(nt,16,1.75,.15),subtitle2:ft(rt,14,1.57,.1),body1:ft(nt,16,1.5,.15),body2:ft(nt,14,1.43,.15),button:ft(rt,14,1.75,.4,caseAllCaps),caption:ft(nt,12,1.66,.4),overline:ft(nt,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge$1(_extends$2({htmlFontSize:it,pxToRem:dt,fontFamily:_e,fontSize:et,fontWeightLight:tt,fontWeightRegular:nt,fontWeightMedium:rt,fontWeightBold:ot},gt),ct,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...s){return[`${s[0]}px ${s[1]}px ${s[2]}px ${s[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${s[4]}px ${s[5]}px ${s[6]}px ${s[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${s[8]}px ${s[9]}px ${s[10]}px ${s[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],_excluded$1c=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(s){return`${Math.round(s)}ms`}function getAutoHeightDuration(s){if(!s)return 0;const j=s/36;return Math.round((4+15*j**.25+j/5)*10)}function createTransitions(s){const j=_extends$2({},easing,s.easing),$=_extends$2({},duration,s.duration);return _extends$2({getAutoHeightDuration,create:(et=["all"],tt={})=>{const{duration:nt=$.standard,easing:rt=j.easeInOut,delay:ot=0}=tt;return _objectWithoutPropertiesLoose(tt,_excluded$1c),(Array.isArray(et)?et:[et]).map(it=>`${it} ${typeof nt=="string"?nt:formatMs(nt)} ${rt} ${typeof ot=="string"?ot:formatMs(ot)}`).join(",")}},s,{easing:j,duration:$})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_excluded$1b=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(s={},...j){const{mixins:$={},palette:_e={},transitions:et={},typography:tt={}}=s,nt=_objectWithoutPropertiesLoose(s,_excluded$1b);if(s.vars)throw new Error(formatMuiErrorMessage$1(18));const rt=createPalette(_e),ot=createTheme$2(s);let it=deepmerge$1(ot,{mixins:createMixins(ot.breakpoints,$),palette:rt,shadows:shadows.slice(),typography:createTypography(rt,tt),transitions:createTransitions(et),zIndex:_extends$2({},zIndex)});return it=deepmerge$1(it,nt),it=j.reduce((st,at)=>deepmerge$1(st,at),it),it.unstable_sxConfig=_extends$2({},defaultSxConfig,nt==null?void 0:nt.unstable_sxConfig),it.unstable_sx=function(at){return styleFunctionSx$1({sx:at,theme:this})},it}function isUnitless(s){return String(parseFloat(s)).length===String(s).length}function getUnit(s){return String(s).match(/[\d.\-+]*\s*(.*)/)[1]||""}function toUnitless(s){return parseFloat(s)}function convertLength(s){return(j,$)=>{const _e=getUnit(j);if(_e===$)return j;let et=toUnitless(j);_e!=="px"&&(_e==="em"||_e==="rem")&&(et=toUnitless(j)*toUnitless(s));let tt=et;if($!=="px")if($==="em")tt=et/toUnitless(s);else if($==="rem")tt=et/toUnitless(s);else return j;return parseFloat(tt.toFixed(5))+$}}function alignProperty({size:s,grid:j}){const $=s-s%j,_e=$+j;return s-$<_e-s?$:_e}function fontGrid({lineHeight:s,pixels:j,htmlFontSize:$}){return j/(s*$)}function responsiveProperty({cssProperty:s,min:j,max:$,unit:_e="rem",breakpoints:et=[600,900,1200],transform:tt=null}){const nt={[s]:`${j}${_e}`},rt=($-j)/et[et.length-1];return et.forEach(ot=>{let it=j+rt*ot;tt!==null&&(it=tt(it)),nt[`@media (min-width:${ot}px)`]={[s]:`${Math.round(it*1e4)/1e4}${_e}`}}),nt}function responsiveFontSizes(s,j={}){const{breakpoints:$=["sm","md","lg"],disableAlign:_e=!1,factor:et=2,variants:tt=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=j,nt=_extends$2({},s);nt.typography=_extends$2({},nt.typography);const rt=nt.typography,ot=convertLength(rt.htmlFontSize),it=$.map(st=>nt.breakpoints.values[st]);return tt.forEach(st=>{const at=rt[st];if(!at)return;const ct=parseFloat(ot(at.fontSize,"rem"));if(ct<=1)return;const lt=ct,dt=1+(lt-1)/et;let{lineHeight:ft}=at;if(!isUnitless(ft)&&!_e)throw new Error(formatMuiErrorMessage$1(6));isUnitless(ft)||(ft=parseFloat(ot(ft,"rem"))/parseFloat(ct));let gt=null;_e||(gt=yt=>alignProperty({size:yt,grid:fontGrid({pixels:4,lineHeight:ft,htmlFontSize:rt.htmlFontSize})})),rt[st]=_extends$2({},at,responsiveProperty({cssProperty:"fontSize",min:dt,max:lt,unit:"rem",breakpoints:it,transform:gt}))}),nt}const defaultTheme$1=createTheme();function useTheme$1(){const s=useTheme$3(defaultTheme$1);return s[THEME_ID]||s}function useThemeProps$5({props:s,name:j}){return useThemeProps$6({props:s,name:j,defaultTheme:defaultTheme$1,themeId:THEME_ID})}var createStyled$1={},objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(s){function j($,_e){if($==null)return{};var et={};for(var tt in $)if({}.hasOwnProperty.call($,tt)){if(_e.includes(tt))continue;et[tt]=$[tt]}return et}s.exports=j,s.exports.__esModule=!0,s.exports.default=s.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}const require$$1$2=getAugmentedNamespace(styledEngine),require$$4=getAugmentedNamespace(deepmerge),require$$5=getAugmentedNamespace(capitalize),require$$6=getAugmentedNamespace(getDisplayName),require$$7=getAugmentedNamespace(createTheme$1),require$$8=getAugmentedNamespace(styleFunctionSx);var _interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(createStyled$1,"__esModule",{value:!0});var _default=createStyled$1.default=createStyled;createStyled$1.shouldForwardProp=shouldForwardProp;createStyled$1.systemDefaultTheme=void 0;var _extends2=_interopRequireDefault(require_extends()),_objectWithoutPropertiesLoose2=_interopRequireDefault(requireObjectWithoutPropertiesLoose()),_styledEngine$1=_interopRequireWildcard$1(require$$1$2),_deepmerge=require$$4;_interopRequireDefault(require$$5);_interopRequireDefault(require$$6);var _createTheme=_interopRequireDefault(require$$7),_styleFunctionSx=_interopRequireDefault(require$$8);const _excluded$1a=["ownerState"],_excluded2$7=["variants"],_excluded3$2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _getRequireWildcardCache$1(s){if(typeof WeakMap!="function")return null;var j=new WeakMap,$=new WeakMap;return(_getRequireWildcardCache$1=function(_e){return _e?$:j})(s)}function _interopRequireWildcard$1(s,j){if(s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var $=_getRequireWildcardCache$1(j);if($&&$.has(s))return $.get(s);var _e={__proto__:null},et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var tt in s)if(tt!=="default"&&Object.prototype.hasOwnProperty.call(s,tt)){var nt=et?Object.getOwnPropertyDescriptor(s,tt):null;nt&&(nt.get||nt.set)?Object.defineProperty(_e,tt,nt):_e[tt]=s[tt]}return _e.default=s,$&&$.set(s,_e),_e}function isEmpty$2(s){return Object.keys(s).length===0}function isStringTag(s){return typeof s=="string"&&s.charCodeAt(0)>96}function shouldForwardProp(s){return s!=="ownerState"&&s!=="theme"&&s!=="sx"&&s!=="as"}const systemDefaultTheme=createStyled$1.systemDefaultTheme=(0,_createTheme.default)(),lowercaseFirstLetter=s=>s&&s.charAt(0).toLowerCase()+s.slice(1);function resolveTheme({defaultTheme:s,theme:j,themeId:$}){return isEmpty$2(j)?s:j[$]||j}function defaultOverridesResolver(s){return s?(j,$)=>$[s]:null}function processStyleArg(s,j){let{ownerState:$}=j,_e=(0,_objectWithoutPropertiesLoose2.default)(j,_excluded$1a);const et=typeof s=="function"?s((0,_extends2.default)({ownerState:$},_e)):s;if(Array.isArray(et))return et.flatMap(tt=>processStyleArg(tt,(0,_extends2.default)({ownerState:$},_e)));if(et&&typeof et=="object"&&Array.isArray(et.variants)){const{variants:tt=[]}=et;let rt=(0,_objectWithoutPropertiesLoose2.default)(et,_excluded2$7);return tt.forEach(ot=>{let it=!0;typeof ot.props=="function"?it=ot.props((0,_extends2.default)({ownerState:$},_e,$)):Object.keys(ot.props).forEach(st=>{($==null?void 0:$[st])!==ot.props[st]&&_e[st]!==ot.props[st]&&(it=!1)}),it&&(Array.isArray(rt)||(rt=[rt]),rt.push(typeof ot.style=="function"?ot.style((0,_extends2.default)({ownerState:$},_e,$)):ot.style))}),rt}return et}function createStyled(s={}){const{themeId:j,defaultTheme:$=systemDefaultTheme,rootShouldForwardProp:_e=shouldForwardProp,slotShouldForwardProp:et=shouldForwardProp}=s,tt=nt=>(0,_styleFunctionSx.default)((0,_extends2.default)({},nt,{theme:resolveTheme((0,_extends2.default)({},nt,{defaultTheme:$,themeId:j}))}));return tt.__mui_systemSx=!0,(nt,rt={})=>{(0,_styledEngine$1.internal_processStyles)(nt,Ct=>Ct.filter(Dt=>!(Dt!=null&&Dt.__mui_systemSx)));const{name:ot,slot:it,skipVariantsResolver:st,skipSx:at,overridesResolver:ct=defaultOverridesResolver(lowercaseFirstLetter(it))}=rt,lt=(0,_objectWithoutPropertiesLoose2.default)(rt,_excluded3$2),dt=st!==void 0?st:it&&it!=="Root"&&it!=="root"||!1,ft=at||!1;let gt,yt=shouldForwardProp;it==="Root"||it==="root"?yt=_e:it?yt=et:isStringTag(nt)&&(yt=void 0);const mt=(0,_styledEngine$1.default)(nt,(0,_extends2.default)({shouldForwardProp:yt,label:gt},lt)),pt=Ct=>typeof Ct=="function"&&Ct.__emotion_real!==Ct||(0,_deepmerge.isPlainObject)(Ct)?Dt=>processStyleArg(Ct,(0,_extends2.default)({},Dt,{theme:resolveTheme({theme:Dt.theme,defaultTheme:$,themeId:j})})):Ct,xt=(Ct,...Dt)=>{let wt=pt(Ct);const kt=Dt?Dt.map(pt):[];ot&&ct&&kt.push(Ft=>{const Pt=resolveTheme((0,_extends2.default)({},Ft,{defaultTheme:$,themeId:j}));if(!Pt.components||!Pt.components[ot]||!Pt.components[ot].styleOverrides)return null;const Nt=Pt.components[ot].styleOverrides,ht={};return Object.entries(Nt).forEach(([bt,St])=>{ht[bt]=processStyleArg(St,(0,_extends2.default)({},Ft,{theme:Pt}))}),ct(Ft,ht)}),ot&&!dt&&kt.push(Ft=>{var Pt;const Nt=resolveTheme((0,_extends2.default)({},Ft,{defaultTheme:$,themeId:j})),ht=Nt==null||(Pt=Nt.components)==null||(Pt=Pt[ot])==null?void 0:Pt.variants;return processStyleArg({variants:ht},(0,_extends2.default)({},Ft,{theme:Nt}))}),ft||kt.push(tt);const zt=kt.length-Dt.length;if(Array.isArray(Ct)&&zt>0){const Ft=new Array(zt).fill("");wt=[...Ct,...Ft],wt.raw=[...Ct.raw,...Ft]}const Ot=mt(wt,...kt);return nt.muiName&&(Ot.muiName=nt.muiName),Ot};return mt.withConfig&&(xt.withConfig=mt.withConfig),xt}}function slotShouldForwardProp(s){return s!=="ownerState"&&s!=="theme"&&s!=="sx"&&s!=="as"}const rootShouldForwardProp=s=>slotShouldForwardProp(s)&&s!=="classes",styled=_default({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),_excluded$19=["theme"];function ThemeProvider(s){let{theme:j}=s,$=_objectWithoutPropertiesLoose(s,_excluded$19);const _e=j[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends$2({},$,{themeId:_e?THEME_ID:void 0,theme:_e||j}))}const getOverlayAlpha=s=>{let j;return s<1?j=5.11916*s**2:j=4.5*Math.log(s+1)+2,(j/100).toFixed(2)};function getSvgIconUtilityClass(s){return generateUtilityClass$1("MuiSvgIcon",s)}generateUtilityClasses$1("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _excluded$18=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],useUtilityClasses$Z=s=>{const{color:j,fontSize:$,classes:_e}=s,et={root:["root",j!=="inherit"&&`color${capitalize$1(j)}`,`fontSize${capitalize$1($)}`]};return composeClasses(et,getSvgIconUtilityClass,_e)},SvgIconRoot=styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.color!=="inherit"&&j[`color${capitalize$1($.color)}`],j[`fontSize${capitalize$1($.fontSize)}`]]}})(({theme:s,ownerState:j})=>{var $,_e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:j.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:($=s.transitions)==null||(_e=$.create)==null?void 0:_e.call($,"fill",{duration:(et=s.transitions)==null||(et=et.duration)==null?void 0:et.shorter}),fontSize:{inherit:"inherit",small:((tt=s.typography)==null||(nt=tt.pxToRem)==null?void 0:nt.call(tt,20))||"1.25rem",medium:((rt=s.typography)==null||(ot=rt.pxToRem)==null?void 0:ot.call(rt,24))||"1.5rem",large:((it=s.typography)==null||(st=it.pxToRem)==null?void 0:st.call(it,35))||"2.1875rem"}[j.fontSize],color:(at=(ct=(s.vars||s).palette)==null||(ct=ct[j.color])==null?void 0:ct.main)!=null?at:{action:(lt=(s.vars||s).palette)==null||(lt=lt.action)==null?void 0:lt.active,disabled:(dt=(s.vars||s).palette)==null||(dt=dt.action)==null?void 0:dt.disabled,inherit:void 0}[j.color]}}),SvgIcon=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiSvgIcon"}),{children:et,className:tt,color:nt="inherit",component:rt="svg",fontSize:ot="medium",htmlColor:it,inheritViewBox:st=!1,titleAccess:at,viewBox:ct="0 0 24 24"}=_e,lt=_objectWithoutPropertiesLoose(_e,_excluded$18),dt=reactExports.isValidElement(et)&&et.type==="svg",ft=_extends$2({},_e,{color:nt,component:rt,fontSize:ot,instanceFontSize:j.fontSize,inheritViewBox:st,viewBox:ct,hasSvgAsChild:dt}),gt={};st||(gt.viewBox=ct);const yt=useUtilityClasses$Z(ft);return jsxRuntimeExports.jsxs(SvgIconRoot,_extends$2({as:rt,className:clsx(yt.root,tt),focusable:"false",color:it,"aria-hidden":at?void 0:!0,role:at?"img":void 0,ref:$},gt,lt,dt&&et.props,{ownerState:ft,children:[dt?et.props.children:et,at?jsxRuntimeExports.jsx("title",{children:at}):null]}))});SvgIcon.muiName="SvgIcon";function createSvgIcon(s,j){function $(_e,et){return jsxRuntimeExports.jsx(SvgIcon,_extends$2({"data-testid":`${j}Icon`,ref:et},_e,{children:s}))}return $.muiName=SvgIcon.muiName,reactExports.memo(reactExports.forwardRef($))}var reactIs_production_min={};/** * @license React * react-is.production.min.js * @@ -65,7 +65,7 @@ Error generating stack: `+tt.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b=Symbol.for("react.element"),c$1=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f$1=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");function v(s){if(typeof s=="object"&&s!==null){var j=s.$$typeof;switch(j){case b:switch(s=s.type,s){case d:case f$1:case e:case m:case n:return s;default:switch(s=s&&s.$$typeof,s){case k:case h:case l:case q:case p:case g:return s;default:return j}}case c$1:return j}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c$1;reactIs_production_min.Profiler=f$1;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return!1};reactIs_production_min.isConcurrentMode=function(){return!1};reactIs_production_min.isContextConsumer=function(s){return v(s)===h};reactIs_production_min.isContextProvider=function(s){return v(s)===g};reactIs_production_min.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===b};reactIs_production_min.isForwardRef=function(s){return v(s)===l};reactIs_production_min.isFragment=function(s){return v(s)===d};reactIs_production_min.isLazy=function(s){return v(s)===q};reactIs_production_min.isMemo=function(s){return v(s)===p};reactIs_production_min.isPortal=function(s){return v(s)===c$1};reactIs_production_min.isProfiler=function(s){return v(s)===f$1};reactIs_production_min.isStrictMode=function(s){return v(s)===e};reactIs_production_min.isSuspense=function(s){return v(s)===m};reactIs_production_min.isSuspenseList=function(s){return v(s)===n};reactIs_production_min.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===d||s===f$1||s===e||s===m||s===n||s===t||typeof s=="object"&&s!==null&&(s.$$typeof===q||s.$$typeof===p||s.$$typeof===g||s.$$typeof===h||s.$$typeof===l||s.$$typeof===u||s.getModuleId!==void 0)};reactIs_production_min.typeOf=v;function createUseThemeProps(s){return useThemeProps$5}function _setPrototypeOf(s,j){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,_e){return $.__proto__=_e,$},_setPrototypeOf(s,j)}function _inheritsLoose(s,j){s.prototype=Object.create(j.prototype),s.prototype.constructor=s,_setPrototypeOf(s,j)}const config={disabled:!1},TransitionGroupContext=React$1.createContext(null);var forceReflow=function(j){return j.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(s){_inheritsLoose(j,s);function j(_e,et){var tt;tt=s.call(this,_e,et)||this;var nt=et,rt=nt&&!nt.isMounting?_e.enter:_e.appear,ot;return tt.appearStatus=null,_e.in?rt?(ot=EXITED,tt.appearStatus=ENTERING):ot=ENTERED:_e.unmountOnExit||_e.mountOnEnter?ot=UNMOUNTED:ot=EXITED,tt.state={status:ot},tt.nextCallback=null,tt}j.getDerivedStateFromProps=function(et,tt){var nt=et.in;return nt&&tt.status===UNMOUNTED?{status:EXITED}:null};var $=j.prototype;return $.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},$.componentDidUpdate=function(et){var tt=null;if(et!==this.props){var nt=this.state.status;this.props.in?nt!==ENTERING&&nt!==ENTERED&&(tt=ENTERING):(nt===ENTERING||nt===ENTERED)&&(tt=EXITING)}this.updateStatus(!1,tt)},$.componentWillUnmount=function(){this.cancelNextCallback()},$.getTimeouts=function(){var et=this.props.timeout,tt,nt,rt;return tt=nt=rt=et,et!=null&&typeof et!="number"&&(tt=et.exit,nt=et.enter,rt=et.appear!==void 0?et.appear:nt),{exit:tt,enter:nt,appear:rt}},$.updateStatus=function(et,tt){if(et===void 0&&(et=!1),tt!==null)if(this.cancelNextCallback(),tt===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var nt=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);nt&&forceReflow(nt)}this.performEnter(et)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},$.performEnter=function(et){var tt=this,nt=this.props.enter,rt=this.context?this.context.isMounting:et,ot=this.props.nodeRef?[rt]:[ReactDOM.findDOMNode(this),rt],it=ot[0],st=ot[1],at=this.getTimeouts(),ct=rt?at.appear:at.enter;if(!et&&!nt||config.disabled){this.safeSetState({status:ENTERED},function(){tt.props.onEntered(it)});return}this.props.onEnter(it,st),this.safeSetState({status:ENTERING},function(){tt.props.onEntering(it,st),tt.onTransitionEnd(ct,function(){tt.safeSetState({status:ENTERED},function(){tt.props.onEntered(it,st)})})})},$.performExit=function(){var et=this,tt=this.props.exit,nt=this.getTimeouts(),rt=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!tt||config.disabled){this.safeSetState({status:EXITED},function(){et.props.onExited(rt)});return}this.props.onExit(rt),this.safeSetState({status:EXITING},function(){et.props.onExiting(rt),et.onTransitionEnd(nt.exit,function(){et.safeSetState({status:EXITED},function(){et.props.onExited(rt)})})})},$.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},$.safeSetState=function(et,tt){tt=this.setNextCallback(tt),this.setState(et,tt)},$.setNextCallback=function(et){var tt=this,nt=!0;return this.nextCallback=function(rt){nt&&(nt=!1,tt.nextCallback=null,et(rt))},this.nextCallback.cancel=function(){nt=!1},this.nextCallback},$.onTransitionEnd=function(et,tt){this.setNextCallback(tt);var nt=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),rt=et==null&&!this.props.addEndListener;if(!nt||rt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ot=this.props.nodeRef?[this.nextCallback]:[nt,this.nextCallback],it=ot[0],st=ot[1];this.props.addEndListener(it,st)}et!=null&&setTimeout(this.nextCallback,et)},$.render=function(){var et=this.state.status;if(et===UNMOUNTED)return null;var tt=this.props,nt=tt.children;tt.in,tt.mountOnEnter,tt.unmountOnExit,tt.appear,tt.enter,tt.exit,tt.timeout,tt.addEndListener,tt.onEnter,tt.onEntering,tt.onEntered,tt.onExit,tt.onExiting,tt.onExited,tt.nodeRef;var rt=_objectWithoutPropertiesLoose(tt,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$1.createElement(TransitionGroupContext.Provider,{value:null},typeof nt=="function"?nt(et,rt):React$1.cloneElement(React$1.Children.only(nt),rt))},j}(React$1.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$3(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$3,onEntering:noop$3,onEntered:noop$3,onExit:noop$3,onExiting:noop$3,onExited:noop$3};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;function _assertThisInitialized(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function getChildMapping(s,j){var $=function(tt){return j&&reactExports.isValidElement(tt)?j(tt):tt},_e=Object.create(null);return s&&reactExports.Children.map(s,function(et){return et}).forEach(function(et){_e[et.key]=$(et)}),_e}function mergeChildMappings(s,j){s=s||{},j=j||{};function $(st){return st in j?j[st]:s[st]}var _e=Object.create(null),et=[];for(var tt in s)tt in j?et.length&&(_e[tt]=et,et=[]):et.push(tt);var nt,rt={};for(var ot in j){if(_e[ot])for(nt=0;nt<_e[ot].length;nt++){var it=_e[ot][nt];rt[_e[ot][nt]]=$(it)}rt[ot]=$(ot)}for(nt=0;nts.scrollTop;function getTransitionProps(s,j){var $,_e;const{timeout:et,easing:tt,style:nt={}}=s;return{duration:($=nt.transitionDuration)!=null?$:typeof et=="number"?et:et[j.mode]||0,easing:(_e=nt.transitionTimingFunction)!=null?_e:typeof tt=="object"?tt[j.mode]:tt,delay:nt.transitionDelay}}function getCollapseUtilityClass(s){return generateUtilityClass$1("MuiCollapse",s)}generateUtilityClasses$1("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _excluded$17=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],useUtilityClasses$Y=s=>{const{orientation:j,classes:$}=s,_e={root:["root",`${j}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${j}`],wrapperInner:["wrapperInner",`${j}`]};return composeClasses(_e,getCollapseUtilityClass,$)},CollapseRoot=styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.orientation],$.state==="entered"&&j.entered,$.state==="exited"&&!$.in&&$.collapsedSize==="0px"&&j.hidden]}})(({theme:s,ownerState:j})=>_extends$2({height:0,overflow:"hidden",transition:s.transitions.create("height")},j.orientation==="horizontal"&&{height:"auto",width:0,transition:s.transitions.create("width")},j.state==="entered"&&_extends$2({height:"auto",overflow:"visible"},j.orientation==="horizontal"&&{width:"auto"}),j.state==="exited"&&!j.in&&j.collapsedSize==="0px"&&{visibility:"hidden"})),CollapseWrapper=styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(s,j)=>j.wrapper})(({ownerState:s})=>_extends$2({display:"flex",width:"100%"},s.orientation==="horizontal"&&{width:"auto",height:"100%"})),CollapseWrapperInner=styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(s,j)=>j.wrapperInner})(({ownerState:s})=>_extends$2({width:"100%"},s.orientation==="horizontal"&&{width:"auto",height:"100%"})),Collapse=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiCollapse"}),{addEndListener:et,children:tt,className:nt,collapsedSize:rt="0px",component:ot,easing:it,in:st,onEnter:at,onEntered:ct,onEntering:lt,onExit:dt,onExited:pt,onExiting:ht,orientation:yt="vertical",style:gt,timeout:ft=duration.standard,TransitionComponent:xt=Transition}=_e,Mt=_objectWithoutPropertiesLoose(_e,_excluded$17),jt=_extends$2({},_e,{orientation:yt,collapsedSize:rt}),wt=useUtilityClasses$Y(jt),$t=useTheme$1(),zt=useTimeout(),Ot=reactExports.useRef(null),Pt=reactExports.useRef(),Ft=typeof rt=="number"?`${rt}px`:rt,Nt=yt==="horizontal",mt=Nt?"width":"height",bt=reactExports.useRef(null),St=useForkRef($,bt),vt=Ht=>tn=>{if(Ht){const Jt=bt.current;tn===void 0?Ht(Jt):Ht(Jt,tn)}},At=()=>Ot.current?Ot.current[Nt?"clientWidth":"clientHeight"]:0,Tt=vt((Ht,tn)=>{Ot.current&&Nt&&(Ot.current.style.position="absolute"),Ht.style[mt]=Ft,at&&at(Ht,tn)}),Dt=vt((Ht,tn)=>{const Jt=At();Ot.current&&Nt&&(Ot.current.style.position="");const{duration:Kt,easing:dn}=getTransitionProps({style:gt,timeout:ft,easing:it},{mode:"enter"});if(ft==="auto"){const en=$t.transitions.getAutoHeightDuration(Jt);Ht.style.transitionDuration=`${en}ms`,Pt.current=en}else Ht.style.transitionDuration=typeof Kt=="string"?Kt:`${Kt}ms`;Ht.style[mt]=`${Jt}px`,Ht.style.transitionTimingFunction=dn,lt&<(Ht,tn)}),Lt=vt((Ht,tn)=>{Ht.style[mt]="auto",ct&&ct(Ht,tn)}),Et=vt(Ht=>{Ht.style[mt]=`${At()}px`,dt&&dt(Ht)}),kt=vt(pt),Ut=vt(Ht=>{const tn=At(),{duration:Jt,easing:Kt}=getTransitionProps({style:gt,timeout:ft,easing:it},{mode:"exit"});if(ft==="auto"){const dn=$t.transitions.getAutoHeightDuration(tn);Ht.style.transitionDuration=`${dn}ms`,Pt.current=dn}else Ht.style.transitionDuration=typeof Jt=="string"?Jt:`${Jt}ms`;Ht.style[mt]=Ft,Ht.style.transitionTimingFunction=Kt,ht&&ht(Ht)}),Gt=Ht=>{ft==="auto"&&zt.start(Pt.current||0,Ht),et&&et(bt.current,Ht)};return jsxRuntimeExports.jsx(xt,_extends$2({in:st,onEnter:Tt,onEntered:Lt,onEntering:Dt,onExit:Et,onExited:kt,onExiting:Ut,addEndListener:Gt,nodeRef:bt,timeout:ft==="auto"?null:ft},Mt,{children:(Ht,tn)=>jsxRuntimeExports.jsx(CollapseRoot,_extends$2({as:ot,className:clsx(wt.root,nt,{entered:wt.entered,exited:!st&&Ft==="0px"&&wt.hidden}[Ht]),style:_extends$2({[Nt?"minWidth":"minHeight"]:Ft},gt),ref:St},tn,{ownerState:_extends$2({},jt,{state:Ht}),children:jsxRuntimeExports.jsx(CollapseWrapper,{ownerState:_extends$2({},jt,{state:Ht}),className:wt.wrapper,ref:Ot,children:jsxRuntimeExports.jsx(CollapseWrapperInner,{ownerState:_extends$2({},jt,{state:Ht}),className:wt.wrapperInner,children:tt})})}))}))});Collapse.muiSupportAuto=!0;function getPaperUtilityClass(s){return generateUtilityClass$1("MuiPaper",s)}generateUtilityClasses$1("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const _excluded$16=["className","component","elevation","square","variant"],useUtilityClasses$X=s=>{const{square:j,elevation:$,variant:_e,classes:et}=s,tt={root:["root",_e,!j&&"rounded",_e==="elevation"&&`elevation${$}`]};return composeClasses(tt,getPaperUtilityClass,et)},PaperRoot=styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.variant],!$.square&&j.rounded,$.variant==="elevation"&&j[`elevation${$.elevation}`]]}})(({theme:s,ownerState:j})=>{var $;return _extends$2({backgroundColor:(s.vars||s).palette.background.paper,color:(s.vars||s).palette.text.primary,transition:s.transitions.create("box-shadow")},!j.square&&{borderRadius:s.shape.borderRadius},j.variant==="outlined"&&{border:`1px solid ${(s.vars||s).palette.divider}`},j.variant==="elevation"&&_extends$2({boxShadow:(s.vars||s).shadows[j.elevation]},!s.vars&&s.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${alpha_1("#fff",getOverlayAlpha(j.elevation))}, ${alpha_1("#fff",getOverlayAlpha(j.elevation))})`},s.vars&&{backgroundImage:($=s.vars.overlays)==null?void 0:$[j.elevation]}))}),Paper=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiPaper"}),{className:et,component:tt="div",elevation:nt=1,square:rt=!1,variant:ot="elevation"}=_e,it=_objectWithoutPropertiesLoose(_e,_excluded$16),st=_extends$2({},_e,{component:tt,elevation:nt,square:rt,variant:ot}),at=useUtilityClasses$X(st);return jsxRuntimeExports.jsx(PaperRoot,_extends$2({as:tt,ownerState:st,className:clsx(at.root,et),ref:$},it))}),AccordionContext=reactExports.createContext({});function isHostComponent(s){return typeof s=="string"}function appendOwnerState(s,j,$){return s===void 0||isHostComponent(s)?j:_extends$2({},j,{ownerState:_extends$2({},j.ownerState,$)})}function areArraysEqual(s,j,$=(_e,et)=>_e===et){return s.length===j.length&&s.every((_e,et)=>$(_e,j[et]))}const defaultContextValue={disableDefaultClasses:!1},ClassNameConfiguratorContext=reactExports.createContext(defaultContextValue);function useClassNamesOverride(s){const{disableDefaultClasses:j}=reactExports.useContext(ClassNameConfiguratorContext);return $=>j?"":s($)}function extractEventHandlers(s,j=[]){if(s===void 0)return{};const $={};return Object.keys(s).filter(_e=>_e.match(/^on[A-Z]/)&&typeof s[_e]=="function"&&!j.includes(_e)).forEach(_e=>{$[_e]=s[_e]}),$}function resolveComponentProps(s,j,$){return typeof s=="function"?s(j,$):s}function omitEventHandlers(s){if(s===void 0)return{};const j={};return Object.keys(s).filter($=>!($.match(/^on[A-Z]/)&&typeof s[$]=="function")).forEach($=>{j[$]=s[$]}),j}function mergeSlotProps(s){const{getSlotProps:j,additionalProps:$,externalSlotProps:_e,externalForwardedProps:et,className:tt}=s;if(!j){const lt=clsx($==null?void 0:$.className,tt,et==null?void 0:et.className,_e==null?void 0:_e.className),dt=_extends$2({},$==null?void 0:$.style,et==null?void 0:et.style,_e==null?void 0:_e.style),pt=_extends$2({},$,et,_e);return lt.length>0&&(pt.className=lt),Object.keys(dt).length>0&&(pt.style=dt),{props:pt,internalRef:void 0}}const nt=extractEventHandlers(_extends$2({},et,_e)),rt=omitEventHandlers(_e),ot=omitEventHandlers(et),it=j(nt),st=clsx(it==null?void 0:it.className,$==null?void 0:$.className,tt,et==null?void 0:et.className,_e==null?void 0:_e.className),at=_extends$2({},it==null?void 0:it.style,$==null?void 0:$.style,et==null?void 0:et.style,_e==null?void 0:_e.style),ct=_extends$2({},it,$,ot,rt);return st.length>0&&(ct.className=st),Object.keys(at).length>0&&(ct.style=at),{props:ct,internalRef:it.ref}}const _excluded$15=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function useSlotProps(s){var j;const{elementType:$,externalSlotProps:_e,ownerState:et,skipResolvingSlotProps:tt=!1}=s,nt=_objectWithoutPropertiesLoose(s,_excluded$15),rt=tt?{}:resolveComponentProps(_e,et),{props:ot,internalRef:it}=mergeSlotProps(_extends$2({},nt,{externalSlotProps:rt})),st=useForkRef(it,rt==null?void 0:rt.ref,(j=s.additionalProps)==null?void 0:j.ref);return appendOwnerState($,_extends$2({},ot,{ref:st}),et)}const _excluded$14=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],_excluded2$6=["component","slots","slotProps"],_excluded3$1=["component"];function useSlot(s,j){const{className:$,elementType:_e,ownerState:et,externalForwardedProps:tt,getSlotOwnerState:nt,internalForwardedProps:rt}=j,ot=_objectWithoutPropertiesLoose(j,_excluded$14),{component:it,slots:st={[s]:void 0},slotProps:at={[s]:void 0}}=tt,ct=_objectWithoutPropertiesLoose(tt,_excluded2$6),lt=st[s]||_e,dt=resolveComponentProps(at[s],et),pt=mergeSlotProps(_extends$2({className:$},ot,{externalForwardedProps:s==="root"?ct:void 0,externalSlotProps:dt})),{props:{component:ht},internalRef:yt}=pt,gt=_objectWithoutPropertiesLoose(pt.props,_excluded3$1),ft=useForkRef(yt,dt==null?void 0:dt.ref,j.ref),xt=nt?nt(gt):{},Mt=_extends$2({},et,xt),jt=s==="root"?ht||it:ht,wt=appendOwnerState(lt,_extends$2({},s==="root"&&!it&&!st[s]&&rt,s!=="root"&&!st[s]&&rt,gt,jt&&{as:jt},{ref:ft}),Mt);return Object.keys(xt).forEach($t=>{delete wt[$t]}),[lt,wt]}function getAccordionUtilityClass(s){return generateUtilityClass$1("MuiAccordion",s)}const accordionClasses=generateUtilityClasses$1("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),_excluded$13=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],useThemeProps$4=createUseThemeProps(),useUtilityClasses$W=s=>{const{classes:j,square:$,expanded:_e,disabled:et,disableGutters:tt}=s;return composeClasses({root:["root",!$&&"rounded",_e&&"expanded",et&&"disabled",!tt&&"gutters"],region:["region"]},getAccordionUtilityClass,j)},AccordionRoot=styled(Paper,{name:"MuiAccordion",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${accordionClasses.region}`]:j.region},j.root,!$.square&&j.rounded,!$.disableGutters&&j.gutters]}})(({theme:s})=>{const j={duration:s.transitions.duration.shortest};return{position:"relative",transition:s.transitions.create(["margin"],j),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(s.vars||s).palette.divider,transition:s.transitions.create(["opacity","background-color"],j)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${accordionClasses.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${accordionClasses.disabled}`]:{backgroundColor:(s.vars||s).palette.action.disabledBackground}}},({theme:s})=>({variants:[{props:j=>!j.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(s.vars||s).shape.borderRadius,borderTopRightRadius:(s.vars||s).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(s.vars||s).shape.borderRadius,borderBottomRightRadius:(s.vars||s).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:j=>!j.disableGutters,style:{[`&.${accordionClasses.expanded}`]:{margin:"16px 0"}}}]})),Accordion=reactExports.forwardRef(function(j,$){const _e=useThemeProps$4({props:j,name:"MuiAccordion"}),{children:et,className:tt,defaultExpanded:nt=!1,disabled:rt=!1,disableGutters:ot=!1,expanded:it,onChange:st,square:at=!1,slots:ct={},slotProps:lt={},TransitionComponent:dt,TransitionProps:pt}=_e,ht=_objectWithoutPropertiesLoose(_e,_excluded$13),[yt,gt]=useControlled({controlled:it,default:nt,name:"Accordion",state:"expanded"}),ft=reactExports.useCallback(Nt=>{gt(!yt),st&&st(Nt,!yt)},[yt,st,gt]),[xt,...Mt]=reactExports.Children.toArray(et),jt=reactExports.useMemo(()=>({expanded:yt,disabled:rt,disableGutters:ot,toggle:ft}),[yt,rt,ot,ft]),wt=_extends$2({},_e,{square:at,disabled:rt,disableGutters:ot,expanded:yt}),$t=useUtilityClasses$W(wt),zt=_extends$2({transition:dt},ct),Ot=_extends$2({transition:pt},lt),[Pt,Ft]=useSlot("transition",{elementType:Collapse,externalForwardedProps:{slots:zt,slotProps:Ot},ownerState:wt});return jsxRuntimeExports.jsxs(AccordionRoot,_extends$2({className:clsx($t.root,tt),ref:$,ownerState:wt,square:at},ht,{children:[jsxRuntimeExports.jsx(AccordionContext.Provider,{value:jt,children:xt}),jsxRuntimeExports.jsx(Pt,_extends$2({in:yt,timeout:"auto"},Ft,{children:jsxRuntimeExports.jsx("div",{"aria-labelledby":xt.props.id,id:xt.props["aria-controls"],role:"region",className:$t.region,children:Mt})}))]}))});function getAccordionDetailsUtilityClass(s){return generateUtilityClass$1("MuiAccordionDetails",s)}generateUtilityClasses$1("MuiAccordionDetails",["root"]);const _excluded$12=["className"],useThemeProps$3=createUseThemeProps(),useUtilityClasses$V=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getAccordionDetailsUtilityClass,j)},AccordionDetailsRoot=styled("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(s,j)=>j.root})(({theme:s})=>({padding:s.spacing(1,2,2)})),AccordionDetails=reactExports.forwardRef(function(j,$){const _e=useThemeProps$3({props:j,name:"MuiAccordionDetails"}),{className:et}=_e,tt=_objectWithoutPropertiesLoose(_e,_excluded$12),nt=_e,rt=useUtilityClasses$V(nt);return jsxRuntimeExports.jsx(AccordionDetailsRoot,_extends$2({className:clsx(rt.root,et),ref:$,ownerState:nt},tt))});function Ripple(s){const{className:j,classes:$,pulsate:_e=!1,rippleX:et,rippleY:tt,rippleSize:nt,in:rt,onExited:ot,timeout:it}=s,[st,at]=reactExports.useState(!1),ct=clsx(j,$.ripple,$.rippleVisible,_e&&$.ripplePulsate),lt={width:nt,height:nt,top:-(nt/2)+tt,left:-(nt/2)+et},dt=clsx($.child,st&&$.childLeaving,_e&&$.childPulsate);return!rt&&!st&&at(!0),reactExports.useEffect(()=>{if(!rt&&ot!=null){const pt=setTimeout(ot,it);return()=>{clearTimeout(pt)}}},[ot,rt,it]),jsxRuntimeExports.jsx("span",{className:ct,style:lt,children:jsxRuntimeExports.jsx("span",{className:dt})})}const touchRippleClasses=generateUtilityClasses$1("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_excluded$11=["center","classes","className"];let _$2=s=>s,_t$2,_t2$2,_t3$2,_t4$2;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$2||(_t$2=_$2` + */var b=Symbol.for("react.element"),c$1=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f$1=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");function v(s){if(typeof s=="object"&&s!==null){var j=s.$$typeof;switch(j){case b:switch(s=s.type,s){case d:case f$1:case e:case m:case n:return s;default:switch(s=s&&s.$$typeof,s){case k:case h:case l:case q:case p:case g:return s;default:return j}}case c$1:return j}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c$1;reactIs_production_min.Profiler=f$1;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return!1};reactIs_production_min.isConcurrentMode=function(){return!1};reactIs_production_min.isContextConsumer=function(s){return v(s)===h};reactIs_production_min.isContextProvider=function(s){return v(s)===g};reactIs_production_min.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===b};reactIs_production_min.isForwardRef=function(s){return v(s)===l};reactIs_production_min.isFragment=function(s){return v(s)===d};reactIs_production_min.isLazy=function(s){return v(s)===q};reactIs_production_min.isMemo=function(s){return v(s)===p};reactIs_production_min.isPortal=function(s){return v(s)===c$1};reactIs_production_min.isProfiler=function(s){return v(s)===f$1};reactIs_production_min.isStrictMode=function(s){return v(s)===e};reactIs_production_min.isSuspense=function(s){return v(s)===m};reactIs_production_min.isSuspenseList=function(s){return v(s)===n};reactIs_production_min.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===d||s===f$1||s===e||s===m||s===n||s===t||typeof s=="object"&&s!==null&&(s.$$typeof===q||s.$$typeof===p||s.$$typeof===g||s.$$typeof===h||s.$$typeof===l||s.$$typeof===u||s.getModuleId!==void 0)};reactIs_production_min.typeOf=v;function createUseThemeProps(s){return useThemeProps$5}function _setPrototypeOf(s,j){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,_e){return $.__proto__=_e,$},_setPrototypeOf(s,j)}function _inheritsLoose(s,j){s.prototype=Object.create(j.prototype),s.prototype.constructor=s,_setPrototypeOf(s,j)}const config={disabled:!1},TransitionGroupContext=React$1.createContext(null);var forceReflow=function(j){return j.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(s){_inheritsLoose(j,s);function j(_e,et){var tt;tt=s.call(this,_e,et)||this;var nt=et,rt=nt&&!nt.isMounting?_e.enter:_e.appear,ot;return tt.appearStatus=null,_e.in?rt?(ot=EXITED,tt.appearStatus=ENTERING):ot=ENTERED:_e.unmountOnExit||_e.mountOnEnter?ot=UNMOUNTED:ot=EXITED,tt.state={status:ot},tt.nextCallback=null,tt}j.getDerivedStateFromProps=function(et,tt){var nt=et.in;return nt&&tt.status===UNMOUNTED?{status:EXITED}:null};var $=j.prototype;return $.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},$.componentDidUpdate=function(et){var tt=null;if(et!==this.props){var nt=this.state.status;this.props.in?nt!==ENTERING&&nt!==ENTERED&&(tt=ENTERING):(nt===ENTERING||nt===ENTERED)&&(tt=EXITING)}this.updateStatus(!1,tt)},$.componentWillUnmount=function(){this.cancelNextCallback()},$.getTimeouts=function(){var et=this.props.timeout,tt,nt,rt;return tt=nt=rt=et,et!=null&&typeof et!="number"&&(tt=et.exit,nt=et.enter,rt=et.appear!==void 0?et.appear:nt),{exit:tt,enter:nt,appear:rt}},$.updateStatus=function(et,tt){if(et===void 0&&(et=!1),tt!==null)if(this.cancelNextCallback(),tt===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var nt=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);nt&&forceReflow(nt)}this.performEnter(et)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},$.performEnter=function(et){var tt=this,nt=this.props.enter,rt=this.context?this.context.isMounting:et,ot=this.props.nodeRef?[rt]:[ReactDOM.findDOMNode(this),rt],it=ot[0],st=ot[1],at=this.getTimeouts(),ct=rt?at.appear:at.enter;if(!et&&!nt||config.disabled){this.safeSetState({status:ENTERED},function(){tt.props.onEntered(it)});return}this.props.onEnter(it,st),this.safeSetState({status:ENTERING},function(){tt.props.onEntering(it,st),tt.onTransitionEnd(ct,function(){tt.safeSetState({status:ENTERED},function(){tt.props.onEntered(it,st)})})})},$.performExit=function(){var et=this,tt=this.props.exit,nt=this.getTimeouts(),rt=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!tt||config.disabled){this.safeSetState({status:EXITED},function(){et.props.onExited(rt)});return}this.props.onExit(rt),this.safeSetState({status:EXITING},function(){et.props.onExiting(rt),et.onTransitionEnd(nt.exit,function(){et.safeSetState({status:EXITED},function(){et.props.onExited(rt)})})})},$.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},$.safeSetState=function(et,tt){tt=this.setNextCallback(tt),this.setState(et,tt)},$.setNextCallback=function(et){var tt=this,nt=!0;return this.nextCallback=function(rt){nt&&(nt=!1,tt.nextCallback=null,et(rt))},this.nextCallback.cancel=function(){nt=!1},this.nextCallback},$.onTransitionEnd=function(et,tt){this.setNextCallback(tt);var nt=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),rt=et==null&&!this.props.addEndListener;if(!nt||rt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ot=this.props.nodeRef?[this.nextCallback]:[nt,this.nextCallback],it=ot[0],st=ot[1];this.props.addEndListener(it,st)}et!=null&&setTimeout(this.nextCallback,et)},$.render=function(){var et=this.state.status;if(et===UNMOUNTED)return null;var tt=this.props,nt=tt.children;tt.in,tt.mountOnEnter,tt.unmountOnExit,tt.appear,tt.enter,tt.exit,tt.timeout,tt.addEndListener,tt.onEnter,tt.onEntering,tt.onEntered,tt.onExit,tt.onExiting,tt.onExited,tt.nodeRef;var rt=_objectWithoutPropertiesLoose(tt,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$1.createElement(TransitionGroupContext.Provider,{value:null},typeof nt=="function"?nt(et,rt):React$1.cloneElement(React$1.Children.only(nt),rt))},j}(React$1.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$3(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$3,onEntering:noop$3,onEntered:noop$3,onExit:noop$3,onExiting:noop$3,onExited:noop$3};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;function _assertThisInitialized(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function getChildMapping(s,j){var $=function(tt){return j&&reactExports.isValidElement(tt)?j(tt):tt},_e=Object.create(null);return s&&reactExports.Children.map(s,function(et){return et}).forEach(function(et){_e[et.key]=$(et)}),_e}function mergeChildMappings(s,j){s=s||{},j=j||{};function $(st){return st in j?j[st]:s[st]}var _e=Object.create(null),et=[];for(var tt in s)tt in j?et.length&&(_e[tt]=et,et=[]):et.push(tt);var nt,rt={};for(var ot in j){if(_e[ot])for(nt=0;nt<_e[ot].length;nt++){var it=_e[ot][nt];rt[_e[ot][nt]]=$(it)}rt[ot]=$(ot)}for(nt=0;nts.scrollTop;function getTransitionProps(s,j){var $,_e;const{timeout:et,easing:tt,style:nt={}}=s;return{duration:($=nt.transitionDuration)!=null?$:typeof et=="number"?et:et[j.mode]||0,easing:(_e=nt.transitionTimingFunction)!=null?_e:typeof tt=="object"?tt[j.mode]:tt,delay:nt.transitionDelay}}function getCollapseUtilityClass(s){return generateUtilityClass$1("MuiCollapse",s)}generateUtilityClasses$1("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _excluded$17=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],useUtilityClasses$Y=s=>{const{orientation:j,classes:$}=s,_e={root:["root",`${j}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${j}`],wrapperInner:["wrapperInner",`${j}`]};return composeClasses(_e,getCollapseUtilityClass,$)},CollapseRoot=styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.orientation],$.state==="entered"&&j.entered,$.state==="exited"&&!$.in&&$.collapsedSize==="0px"&&j.hidden]}})(({theme:s,ownerState:j})=>_extends$2({height:0,overflow:"hidden",transition:s.transitions.create("height")},j.orientation==="horizontal"&&{height:"auto",width:0,transition:s.transitions.create("width")},j.state==="entered"&&_extends$2({height:"auto",overflow:"visible"},j.orientation==="horizontal"&&{width:"auto"}),j.state==="exited"&&!j.in&&j.collapsedSize==="0px"&&{visibility:"hidden"})),CollapseWrapper=styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(s,j)=>j.wrapper})(({ownerState:s})=>_extends$2({display:"flex",width:"100%"},s.orientation==="horizontal"&&{width:"auto",height:"100%"})),CollapseWrapperInner=styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(s,j)=>j.wrapperInner})(({ownerState:s})=>_extends$2({width:"100%"},s.orientation==="horizontal"&&{width:"auto",height:"100%"})),Collapse=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiCollapse"}),{addEndListener:et,children:tt,className:nt,collapsedSize:rt="0px",component:ot,easing:it,in:st,onEnter:at,onEntered:ct,onEntering:lt,onExit:dt,onExited:ft,onExiting:gt,orientation:yt="vertical",style:mt,timeout:pt=duration.standard,TransitionComponent:xt=Transition}=_e,Ct=_objectWithoutPropertiesLoose(_e,_excluded$17),Dt=_extends$2({},_e,{orientation:yt,collapsedSize:rt}),wt=useUtilityClasses$Y(Dt),kt=useTheme$1(),zt=useTimeout(),Ot=reactExports.useRef(null),Ft=reactExports.useRef(),Pt=typeof rt=="number"?`${rt}px`:rt,Nt=yt==="horizontal",ht=Nt?"width":"height",bt=reactExports.useRef(null),St=useForkRef($,bt),vt=Ht=>tn=>{if(Ht){const Jt=bt.current;tn===void 0?Ht(Jt):Ht(Jt,tn)}},At=()=>Ot.current?Ot.current[Nt?"clientWidth":"clientHeight"]:0,Tt=vt((Ht,tn)=>{Ot.current&&Nt&&(Ot.current.style.position="absolute"),Ht.style[ht]=Pt,at&&at(Ht,tn)}),jt=vt((Ht,tn)=>{const Jt=At();Ot.current&&Nt&&(Ot.current.style.position="");const{duration:Kt,easing:dn}=getTransitionProps({style:mt,timeout:pt,easing:it},{mode:"enter"});if(pt==="auto"){const en=kt.transitions.getAutoHeightDuration(Jt);Ht.style.transitionDuration=`${en}ms`,Ft.current=en}else Ht.style.transitionDuration=typeof Kt=="string"?Kt:`${Kt}ms`;Ht.style[ht]=`${Jt}px`,Ht.style.transitionTimingFunction=dn,lt&<(Ht,tn)}),Lt=vt((Ht,tn)=>{Ht.style[ht]="auto",ct&&ct(Ht,tn)}),Mt=vt(Ht=>{Ht.style[ht]=`${At()}px`,dt&&dt(Ht)}),$t=vt(ft),Ut=vt(Ht=>{const tn=At(),{duration:Jt,easing:Kt}=getTransitionProps({style:mt,timeout:pt,easing:it},{mode:"exit"});if(pt==="auto"){const dn=kt.transitions.getAutoHeightDuration(tn);Ht.style.transitionDuration=`${dn}ms`,Ft.current=dn}else Ht.style.transitionDuration=typeof Jt=="string"?Jt:`${Jt}ms`;Ht.style[ht]=Pt,Ht.style.transitionTimingFunction=Kt,gt&>(Ht)}),Gt=Ht=>{pt==="auto"&&zt.start(Ft.current||0,Ht),et&&et(bt.current,Ht)};return jsxRuntimeExports.jsx(xt,_extends$2({in:st,onEnter:Tt,onEntered:Lt,onEntering:jt,onExit:Mt,onExited:$t,onExiting:Ut,addEndListener:Gt,nodeRef:bt,timeout:pt==="auto"?null:pt},Ct,{children:(Ht,tn)=>jsxRuntimeExports.jsx(CollapseRoot,_extends$2({as:ot,className:clsx(wt.root,nt,{entered:wt.entered,exited:!st&&Pt==="0px"&&wt.hidden}[Ht]),style:_extends$2({[Nt?"minWidth":"minHeight"]:Pt},mt),ref:St},tn,{ownerState:_extends$2({},Dt,{state:Ht}),children:jsxRuntimeExports.jsx(CollapseWrapper,{ownerState:_extends$2({},Dt,{state:Ht}),className:wt.wrapper,ref:Ot,children:jsxRuntimeExports.jsx(CollapseWrapperInner,{ownerState:_extends$2({},Dt,{state:Ht}),className:wt.wrapperInner,children:tt})})}))}))});Collapse.muiSupportAuto=!0;function getPaperUtilityClass(s){return generateUtilityClass$1("MuiPaper",s)}generateUtilityClasses$1("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const _excluded$16=["className","component","elevation","square","variant"],useUtilityClasses$X=s=>{const{square:j,elevation:$,variant:_e,classes:et}=s,tt={root:["root",_e,!j&&"rounded",_e==="elevation"&&`elevation${$}`]};return composeClasses(tt,getPaperUtilityClass,et)},PaperRoot=styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.variant],!$.square&&j.rounded,$.variant==="elevation"&&j[`elevation${$.elevation}`]]}})(({theme:s,ownerState:j})=>{var $;return _extends$2({backgroundColor:(s.vars||s).palette.background.paper,color:(s.vars||s).palette.text.primary,transition:s.transitions.create("box-shadow")},!j.square&&{borderRadius:s.shape.borderRadius},j.variant==="outlined"&&{border:`1px solid ${(s.vars||s).palette.divider}`},j.variant==="elevation"&&_extends$2({boxShadow:(s.vars||s).shadows[j.elevation]},!s.vars&&s.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${alpha_1("#fff",getOverlayAlpha(j.elevation))}, ${alpha_1("#fff",getOverlayAlpha(j.elevation))})`},s.vars&&{backgroundImage:($=s.vars.overlays)==null?void 0:$[j.elevation]}))}),Paper=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiPaper"}),{className:et,component:tt="div",elevation:nt=1,square:rt=!1,variant:ot="elevation"}=_e,it=_objectWithoutPropertiesLoose(_e,_excluded$16),st=_extends$2({},_e,{component:tt,elevation:nt,square:rt,variant:ot}),at=useUtilityClasses$X(st);return jsxRuntimeExports.jsx(PaperRoot,_extends$2({as:tt,ownerState:st,className:clsx(at.root,et),ref:$},it))}),AccordionContext=reactExports.createContext({});function isHostComponent(s){return typeof s=="string"}function appendOwnerState(s,j,$){return s===void 0||isHostComponent(s)?j:_extends$2({},j,{ownerState:_extends$2({},j.ownerState,$)})}function areArraysEqual(s,j,$=(_e,et)=>_e===et){return s.length===j.length&&s.every((_e,et)=>$(_e,j[et]))}const defaultContextValue={disableDefaultClasses:!1},ClassNameConfiguratorContext=reactExports.createContext(defaultContextValue);function useClassNamesOverride(s){const{disableDefaultClasses:j}=reactExports.useContext(ClassNameConfiguratorContext);return $=>j?"":s($)}function extractEventHandlers(s,j=[]){if(s===void 0)return{};const $={};return Object.keys(s).filter(_e=>_e.match(/^on[A-Z]/)&&typeof s[_e]=="function"&&!j.includes(_e)).forEach(_e=>{$[_e]=s[_e]}),$}function resolveComponentProps(s,j,$){return typeof s=="function"?s(j,$):s}function omitEventHandlers(s){if(s===void 0)return{};const j={};return Object.keys(s).filter($=>!($.match(/^on[A-Z]/)&&typeof s[$]=="function")).forEach($=>{j[$]=s[$]}),j}function mergeSlotProps(s){const{getSlotProps:j,additionalProps:$,externalSlotProps:_e,externalForwardedProps:et,className:tt}=s;if(!j){const lt=clsx($==null?void 0:$.className,tt,et==null?void 0:et.className,_e==null?void 0:_e.className),dt=_extends$2({},$==null?void 0:$.style,et==null?void 0:et.style,_e==null?void 0:_e.style),ft=_extends$2({},$,et,_e);return lt.length>0&&(ft.className=lt),Object.keys(dt).length>0&&(ft.style=dt),{props:ft,internalRef:void 0}}const nt=extractEventHandlers(_extends$2({},et,_e)),rt=omitEventHandlers(_e),ot=omitEventHandlers(et),it=j(nt),st=clsx(it==null?void 0:it.className,$==null?void 0:$.className,tt,et==null?void 0:et.className,_e==null?void 0:_e.className),at=_extends$2({},it==null?void 0:it.style,$==null?void 0:$.style,et==null?void 0:et.style,_e==null?void 0:_e.style),ct=_extends$2({},it,$,ot,rt);return st.length>0&&(ct.className=st),Object.keys(at).length>0&&(ct.style=at),{props:ct,internalRef:it.ref}}const _excluded$15=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function useSlotProps(s){var j;const{elementType:$,externalSlotProps:_e,ownerState:et,skipResolvingSlotProps:tt=!1}=s,nt=_objectWithoutPropertiesLoose(s,_excluded$15),rt=tt?{}:resolveComponentProps(_e,et),{props:ot,internalRef:it}=mergeSlotProps(_extends$2({},nt,{externalSlotProps:rt})),st=useForkRef(it,rt==null?void 0:rt.ref,(j=s.additionalProps)==null?void 0:j.ref);return appendOwnerState($,_extends$2({},ot,{ref:st}),et)}const _excluded$14=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],_excluded2$6=["component","slots","slotProps"],_excluded3$1=["component"];function useSlot(s,j){const{className:$,elementType:_e,ownerState:et,externalForwardedProps:tt,getSlotOwnerState:nt,internalForwardedProps:rt}=j,ot=_objectWithoutPropertiesLoose(j,_excluded$14),{component:it,slots:st={[s]:void 0},slotProps:at={[s]:void 0}}=tt,ct=_objectWithoutPropertiesLoose(tt,_excluded2$6),lt=st[s]||_e,dt=resolveComponentProps(at[s],et),ft=mergeSlotProps(_extends$2({className:$},ot,{externalForwardedProps:s==="root"?ct:void 0,externalSlotProps:dt})),{props:{component:gt},internalRef:yt}=ft,mt=_objectWithoutPropertiesLoose(ft.props,_excluded3$1),pt=useForkRef(yt,dt==null?void 0:dt.ref,j.ref),xt=nt?nt(mt):{},Ct=_extends$2({},et,xt),Dt=s==="root"?gt||it:gt,wt=appendOwnerState(lt,_extends$2({},s==="root"&&!it&&!st[s]&&rt,s!=="root"&&!st[s]&&rt,mt,Dt&&{as:Dt},{ref:pt}),Ct);return Object.keys(xt).forEach(kt=>{delete wt[kt]}),[lt,wt]}function getAccordionUtilityClass(s){return generateUtilityClass$1("MuiAccordion",s)}const accordionClasses=generateUtilityClasses$1("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),_excluded$13=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],useThemeProps$4=createUseThemeProps(),useUtilityClasses$W=s=>{const{classes:j,square:$,expanded:_e,disabled:et,disableGutters:tt}=s;return composeClasses({root:["root",!$&&"rounded",_e&&"expanded",et&&"disabled",!tt&&"gutters"],region:["region"]},getAccordionUtilityClass,j)},AccordionRoot=styled(Paper,{name:"MuiAccordion",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${accordionClasses.region}`]:j.region},j.root,!$.square&&j.rounded,!$.disableGutters&&j.gutters]}})(({theme:s})=>{const j={duration:s.transitions.duration.shortest};return{position:"relative",transition:s.transitions.create(["margin"],j),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(s.vars||s).palette.divider,transition:s.transitions.create(["opacity","background-color"],j)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${accordionClasses.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${accordionClasses.disabled}`]:{backgroundColor:(s.vars||s).palette.action.disabledBackground}}},({theme:s})=>({variants:[{props:j=>!j.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(s.vars||s).shape.borderRadius,borderTopRightRadius:(s.vars||s).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(s.vars||s).shape.borderRadius,borderBottomRightRadius:(s.vars||s).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:j=>!j.disableGutters,style:{[`&.${accordionClasses.expanded}`]:{margin:"16px 0"}}}]})),Accordion=reactExports.forwardRef(function(j,$){const _e=useThemeProps$4({props:j,name:"MuiAccordion"}),{children:et,className:tt,defaultExpanded:nt=!1,disabled:rt=!1,disableGutters:ot=!1,expanded:it,onChange:st,square:at=!1,slots:ct={},slotProps:lt={},TransitionComponent:dt,TransitionProps:ft}=_e,gt=_objectWithoutPropertiesLoose(_e,_excluded$13),[yt,mt]=useControlled({controlled:it,default:nt,name:"Accordion",state:"expanded"}),pt=reactExports.useCallback(Nt=>{mt(!yt),st&&st(Nt,!yt)},[yt,st,mt]),[xt,...Ct]=reactExports.Children.toArray(et),Dt=reactExports.useMemo(()=>({expanded:yt,disabled:rt,disableGutters:ot,toggle:pt}),[yt,rt,ot,pt]),wt=_extends$2({},_e,{square:at,disabled:rt,disableGutters:ot,expanded:yt}),kt=useUtilityClasses$W(wt),zt=_extends$2({transition:dt},ct),Ot=_extends$2({transition:ft},lt),[Ft,Pt]=useSlot("transition",{elementType:Collapse,externalForwardedProps:{slots:zt,slotProps:Ot},ownerState:wt});return jsxRuntimeExports.jsxs(AccordionRoot,_extends$2({className:clsx(kt.root,tt),ref:$,ownerState:wt,square:at},gt,{children:[jsxRuntimeExports.jsx(AccordionContext.Provider,{value:Dt,children:xt}),jsxRuntimeExports.jsx(Ft,_extends$2({in:yt,timeout:"auto"},Pt,{children:jsxRuntimeExports.jsx("div",{"aria-labelledby":xt.props.id,id:xt.props["aria-controls"],role:"region",className:kt.region,children:Ct})}))]}))});function getAccordionDetailsUtilityClass(s){return generateUtilityClass$1("MuiAccordionDetails",s)}generateUtilityClasses$1("MuiAccordionDetails",["root"]);const _excluded$12=["className"],useThemeProps$3=createUseThemeProps(),useUtilityClasses$V=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getAccordionDetailsUtilityClass,j)},AccordionDetailsRoot=styled("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(s,j)=>j.root})(({theme:s})=>({padding:s.spacing(1,2,2)})),AccordionDetails=reactExports.forwardRef(function(j,$){const _e=useThemeProps$3({props:j,name:"MuiAccordionDetails"}),{className:et}=_e,tt=_objectWithoutPropertiesLoose(_e,_excluded$12),nt=_e,rt=useUtilityClasses$V(nt);return jsxRuntimeExports.jsx(AccordionDetailsRoot,_extends$2({className:clsx(rt.root,et),ref:$,ownerState:nt},tt))});function Ripple(s){const{className:j,classes:$,pulsate:_e=!1,rippleX:et,rippleY:tt,rippleSize:nt,in:rt,onExited:ot,timeout:it}=s,[st,at]=reactExports.useState(!1),ct=clsx(j,$.ripple,$.rippleVisible,_e&&$.ripplePulsate),lt={width:nt,height:nt,top:-(nt/2)+tt,left:-(nt/2)+et},dt=clsx($.child,st&&$.childLeaving,_e&&$.childPulsate);return!rt&&!st&&at(!0),reactExports.useEffect(()=>{if(!rt&&ot!=null){const ft=setTimeout(ot,it);return()=>{clearTimeout(ft)}}},[ot,rt,it]),jsxRuntimeExports.jsx("span",{className:ct,style:lt,children:jsxRuntimeExports.jsx("span",{className:dt})})}const touchRippleClasses=generateUtilityClasses$1("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_excluded$11=["center","classes","className"];let _$2=s=>s,_t$2,_t2$2,_t3$2,_t4$2;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$2||(_t$2=_$2` 0% { transform: scale(0); opacity: 0.1; @@ -138,8 +138,8 @@ Error generating stack: `+tt.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),touchRippleClasses.rippleVisible,enterKeyframe,DURATION,({theme:s})=>s.transitions.easing.easeInOut,touchRippleClasses.ripplePulsate,({theme:s})=>s.transitions.duration.shorter,touchRippleClasses.child,touchRippleClasses.childLeaving,exitKeyframe,DURATION,({theme:s})=>s.transitions.easing.easeInOut,touchRippleClasses.childPulsate,pulsateKeyframe,({theme:s})=>s.transitions.easing.easeInOut),TouchRipple=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTouchRipple"}),{center:et=!1,classes:tt={},className:nt}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$11),[ot,it]=reactExports.useState([]),st=reactExports.useRef(0),at=reactExports.useRef(null);reactExports.useEffect(()=>{at.current&&(at.current(),at.current=null)},[ot]);const ct=reactExports.useRef(!1),lt=useTimeout(),dt=reactExports.useRef(null),pt=reactExports.useRef(null),ht=reactExports.useCallback(xt=>{const{pulsate:Mt,rippleX:jt,rippleY:wt,rippleSize:$t,cb:zt}=xt;it(Ot=>[...Ot,jsxRuntimeExports.jsx(TouchRippleRipple,{classes:{ripple:clsx(tt.ripple,touchRippleClasses.ripple),rippleVisible:clsx(tt.rippleVisible,touchRippleClasses.rippleVisible),ripplePulsate:clsx(tt.ripplePulsate,touchRippleClasses.ripplePulsate),child:clsx(tt.child,touchRippleClasses.child),childLeaving:clsx(tt.childLeaving,touchRippleClasses.childLeaving),childPulsate:clsx(tt.childPulsate,touchRippleClasses.childPulsate)},timeout:DURATION,pulsate:Mt,rippleX:jt,rippleY:wt,rippleSize:$t},st.current)]),st.current+=1,at.current=zt},[tt]),yt=reactExports.useCallback((xt={},Mt={},jt=()=>{})=>{const{pulsate:wt=!1,center:$t=et||Mt.pulsate,fakeElement:zt=!1}=Mt;if((xt==null?void 0:xt.type)==="mousedown"&&ct.current){ct.current=!1;return}(xt==null?void 0:xt.type)==="touchstart"&&(ct.current=!0);const Ot=zt?null:pt.current,Pt=Ot?Ot.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Ft,Nt,mt;if($t||xt===void 0||xt.clientX===0&&xt.clientY===0||!xt.clientX&&!xt.touches)Ft=Math.round(Pt.width/2),Nt=Math.round(Pt.height/2);else{const{clientX:bt,clientY:St}=xt.touches&&xt.touches.length>0?xt.touches[0]:xt;Ft=Math.round(bt-Pt.left),Nt=Math.round(St-Pt.top)}if($t)mt=Math.sqrt((2*Pt.width**2+Pt.height**2)/3),mt%2===0&&(mt+=1);else{const bt=Math.max(Math.abs((Ot?Ot.clientWidth:0)-Ft),Ft)*2+2,St=Math.max(Math.abs((Ot?Ot.clientHeight:0)-Nt),Nt)*2+2;mt=Math.sqrt(bt**2+St**2)}xt!=null&&xt.touches?dt.current===null&&(dt.current=()=>{ht({pulsate:wt,rippleX:Ft,rippleY:Nt,rippleSize:mt,cb:jt})},lt.start(DELAY_RIPPLE,()=>{dt.current&&(dt.current(),dt.current=null)})):ht({pulsate:wt,rippleX:Ft,rippleY:Nt,rippleSize:mt,cb:jt})},[et,ht,lt]),gt=reactExports.useCallback(()=>{yt({},{pulsate:!0})},[yt]),ft=reactExports.useCallback((xt,Mt)=>{if(lt.clear(),(xt==null?void 0:xt.type)==="touchend"&&dt.current){dt.current(),dt.current=null,lt.start(0,()=>{ft(xt,Mt)});return}dt.current=null,it(jt=>jt.length>0?jt.slice(1):jt),at.current=Mt},[lt]);return reactExports.useImperativeHandle($,()=>({pulsate:gt,start:yt,stop:ft}),[gt,yt,ft]),jsxRuntimeExports.jsx(TouchRippleRoot,_extends$2({className:clsx(touchRippleClasses.root,tt.root,nt),ref:pt},rt,{children:jsxRuntimeExports.jsx(TransitionGroup,{component:null,exit:!0,children:ot})}))});function getButtonBaseUtilityClass(s){return generateUtilityClass$1("MuiButtonBase",s)}const buttonBaseClasses=generateUtilityClasses$1("MuiButtonBase",["root","disabled","focusVisible"]),_excluded$10=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],useUtilityClasses$U=s=>{const{disabled:j,focusVisible:$,focusVisibleClassName:_e,classes:et}=s,nt=composeClasses({root:["root",j&&"disabled",$&&"focusVisible"]},getButtonBaseUtilityClass,et);return $&&_e&&(nt.root+=` ${_e}`),nt},ButtonBaseRoot=styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(s,j)=>j.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiButtonBase"}),{action:et,centerRipple:tt=!1,children:nt,className:rt,component:ot="button",disabled:it=!1,disableRipple:st=!1,disableTouchRipple:at=!1,focusRipple:ct=!1,LinkComponent:lt="a",onBlur:dt,onClick:pt,onContextMenu:ht,onDragLeave:yt,onFocus:gt,onFocusVisible:ft,onKeyDown:xt,onKeyUp:Mt,onMouseDown:jt,onMouseLeave:wt,onMouseUp:$t,onTouchEnd:zt,onTouchMove:Ot,onTouchStart:Pt,tabIndex:Ft=0,TouchRippleProps:Nt,touchRippleRef:mt,type:bt}=_e,St=_objectWithoutPropertiesLoose(_e,_excluded$10),vt=reactExports.useRef(null),At=reactExports.useRef(null),Tt=useForkRef(At,mt),{isFocusVisibleRef:Dt,onFocus:Lt,onBlur:Et,ref:kt}=useIsFocusVisible(),[Ut,Gt]=reactExports.useState(!1);it&&Ut&&Gt(!1),reactExports.useImperativeHandle(et,()=>({focusVisible:()=>{Gt(!0),vt.current.focus()}}),[]);const[Ht,tn]=reactExports.useState(!1);reactExports.useEffect(()=>{tn(!0)},[]);const Jt=Ht&&!st&&!it;reactExports.useEffect(()=>{Ut&&ct&&!st&&Ht&&At.current.pulsate()},[st,ct,Ut,Ht]);function Kt(It,Bt,Wt=at){return useEventCallback(Vt=>(Bt&&Bt(Vt),!Wt&&At.current&&At.current[It](Vt),!0))}const dn=Kt("start",jt),en=Kt("stop",ht),Zt=Kt("stop",yt),Qt=Kt("stop",$t),qt=Kt("stop",It=>{Ut&&It.preventDefault(),wt&&wt(It)}),Xt=Kt("start",Pt),sn=Kt("stop",zt),nn=Kt("stop",Ot),rn=Kt("stop",It=>{Et(It),Dt.current===!1&&Gt(!1),dt&&dt(It)},!1),hn=useEventCallback(It=>{vt.current||(vt.current=It.currentTarget),Lt(It),Dt.current===!0&&(Gt(!0),ft&&ft(It)),gt&>(It)}),on=()=>{const It=vt.current;return ot&&ot!=="button"&&!(It.tagName==="A"&&It.href)},an=reactExports.useRef(!1),gn=useEventCallback(It=>{ct&&!an.current&&Ut&&At.current&&It.key===" "&&(an.current=!0,At.current.stop(It,()=>{At.current.start(It)})),It.target===It.currentTarget&&on()&&It.key===" "&&It.preventDefault(),xt&&xt(It),It.target===It.currentTarget&&on()&&It.key==="Enter"&&!it&&(It.preventDefault(),pt&&pt(It))}),fn=useEventCallback(It=>{ct&&It.key===" "&&At.current&&Ut&&!It.defaultPrevented&&(an.current=!1,At.current.stop(It,()=>{At.current.pulsate(It)})),Mt&&Mt(It),pt&&It.target===It.currentTarget&&on()&&It.key===" "&&!It.defaultPrevented&&pt(It)});let ln=ot;ln==="button"&&(St.href||St.to)&&(ln=lt);const yn={};ln==="button"?(yn.type=bt===void 0?"button":bt,yn.disabled=it):(!St.href&&!St.to&&(yn.role="button"),it&&(yn["aria-disabled"]=it));const mn=useForkRef($,kt,vt),Rt=_extends$2({},_e,{centerRipple:tt,component:ot,disabled:it,disableRipple:st,disableTouchRipple:at,focusRipple:ct,tabIndex:Ft,focusVisible:Ut}),Ct=useUtilityClasses$U(Rt);return jsxRuntimeExports.jsxs(ButtonBaseRoot,_extends$2({as:ln,className:clsx(Ct.root,rt),ownerState:Rt,onBlur:rn,onClick:pt,onContextMenu:en,onFocus:hn,onKeyDown:gn,onKeyUp:fn,onMouseDown:dn,onMouseLeave:qt,onMouseUp:Qt,onDragLeave:Zt,onTouchEnd:sn,onTouchMove:nn,onTouchStart:Xt,ref:mn,tabIndex:it?-1:Ft,type:bt},yn,St,{children:[nt,Jt?jsxRuntimeExports.jsx(TouchRipple,_extends$2({ref:Tt,center:tt},Nt)):null]}))});function getAccordionSummaryUtilityClass(s){return generateUtilityClass$1("MuiAccordionSummary",s)}const accordionSummaryClasses=generateUtilityClasses$1("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),_excluded$$=["children","className","expandIcon","focusVisibleClassName","onClick"],useThemeProps$2=createUseThemeProps(),useUtilityClasses$T=s=>{const{classes:j,expanded:$,disabled:_e,disableGutters:et}=s;return composeClasses({root:["root",$&&"expanded",_e&&"disabled",!et&&"gutters"],focusVisible:["focusVisible"],content:["content",$&&"expanded",!et&&"contentGutters"],expandIconWrapper:["expandIconWrapper",$&&"expanded"]},getAccordionSummaryUtilityClass,j)},AccordionSummaryRoot=styled(ButtonBase,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(s,j)=>j.root})(({theme:s})=>{const j={duration:s.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:s.spacing(0,2),transition:s.transitions.create(["min-height","background-color"],j),[`&.${accordionSummaryClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`&.${accordionSummaryClasses.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity},[`&:hover:not(.${accordionSummaryClasses.disabled})`]:{cursor:"pointer"},variants:[{props:$=>!$.disableGutters,style:{[`&.${accordionSummaryClasses.expanded}`]:{minHeight:64}}}]}}),AccordionSummaryContent=styled("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(s,j)=>j.content})(({theme:s})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:j=>!j.disableGutters,style:{transition:s.transitions.create(["margin"],{duration:s.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{margin:"20px 0"}}}]})),AccordionSummaryExpandIconWrapper=styled("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(s,j)=>j.expandIconWrapper})(({theme:s})=>({display:"flex",color:(s.vars||s).palette.action.active,transform:"rotate(0deg)",transition:s.transitions.create("transform",{duration:s.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{transform:"rotate(180deg)"}})),AccordionSummary=reactExports.forwardRef(function(j,$){const _e=useThemeProps$2({props:j,name:"MuiAccordionSummary"}),{children:et,className:tt,expandIcon:nt,focusVisibleClassName:rt,onClick:ot}=_e,it=_objectWithoutPropertiesLoose(_e,_excluded$$),{disabled:st=!1,disableGutters:at,expanded:ct,toggle:lt}=reactExports.useContext(AccordionContext),dt=yt=>{lt&<(yt),ot&&ot(yt)},pt=_extends$2({},_e,{expanded:ct,disabled:st,disableGutters:at}),ht=useUtilityClasses$T(pt);return jsxRuntimeExports.jsxs(AccordionSummaryRoot,_extends$2({focusRipple:!1,disableRipple:!0,disabled:st,component:"div","aria-expanded":ct,className:clsx(ht.root,tt),focusVisibleClassName:clsx(ht.focusVisible,rt),onClick:dt,ref:$,ownerState:pt},it,{children:[jsxRuntimeExports.jsx(AccordionSummaryContent,{className:ht.content,ownerState:pt,children:et}),nt&&jsxRuntimeExports.jsx(AccordionSummaryExpandIconWrapper,{className:ht.expandIconWrapper,ownerState:pt,children:nt})]}))});function getAlertUtilityClass(s){return generateUtilityClass$1("MuiAlert",s)}const alertClasses=generateUtilityClasses$1("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function getIconButtonUtilityClass(s){return generateUtilityClass$1("MuiIconButton",s)}const iconButtonClasses=generateUtilityClasses$1("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_excluded$_=["edge","children","className","color","disabled","disableFocusRipple","size"],useUtilityClasses$S=s=>{const{classes:j,disabled:$,color:_e,edge:et,size:tt}=s,nt={root:["root",$&&"disabled",_e!=="default"&&`color${capitalize$1(_e)}`,et&&`edge${capitalize$1(et)}`,`size${capitalize$1(tt)}`]};return composeClasses(nt,getIconButtonUtilityClass,j)},IconButtonRoot=styled(ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.color!=="default"&&j[`color${capitalize$1($.color)}`],$.edge&&j[`edge${capitalize$1($.edge)}`],j[`size${capitalize$1($.size)}`]]}})(({theme:s,ownerState:j})=>_extends$2({textAlign:"center",flex:"0 0 auto",fontSize:s.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(s.vars||s).palette.action.active,transition:s.transitions.create("background-color",{duration:s.transitions.duration.shortest})},!j.disableRipple&&{"&:hover":{backgroundColor:s.vars?`rgba(${s.vars.palette.action.activeChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette.action.active,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},j.edge==="start"&&{marginLeft:j.size==="small"?-3:-12},j.edge==="end"&&{marginRight:j.size==="small"?-3:-12}),({theme:s,ownerState:j})=>{var $;const _e=($=(s.vars||s).palette)==null?void 0:$[j.color];return _extends$2({},j.color==="inherit"&&{color:"inherit"},j.color!=="inherit"&&j.color!=="default"&&_extends$2({color:_e==null?void 0:_e.main},!j.disableRipple&&{"&:hover":_extends$2({},_e&&{backgroundColor:s.vars?`rgba(${_e.mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(_e.main,s.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),j.size==="small"&&{padding:5,fontSize:s.typography.pxToRem(18)},j.size==="large"&&{padding:12,fontSize:s.typography.pxToRem(28)},{[`&.${iconButtonClasses.disabled}`]:{backgroundColor:"transparent",color:(s.vars||s).palette.action.disabled}})}),IconButton=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiIconButton"}),{edge:et=!1,children:tt,className:nt,color:rt="default",disabled:ot=!1,disableFocusRipple:it=!1,size:st="medium"}=_e,at=_objectWithoutPropertiesLoose(_e,_excluded$_),ct=_extends$2({},_e,{edge:et,color:rt,disabled:ot,disableFocusRipple:it,size:st}),lt=useUtilityClasses$S(ct);return jsxRuntimeExports.jsx(IconButtonRoot,_extends$2({className:clsx(lt.root,nt),centerRipple:!0,focusRipple:!it,disabled:ot,ref:$},at,{ownerState:ct,children:tt}))}),SuccessOutlinedIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ReportProblemOutlinedIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),ErrorOutlineIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),InfoOutlinedIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ClearIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),_excluded$Z=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],useThemeProps$1=createUseThemeProps(),useUtilityClasses$R=s=>{const{variant:j,color:$,severity:_e,classes:et}=s,tt={root:["root",`color${capitalize$1($||_e)}`,`${j}${capitalize$1($||_e)}`,`${j}`],icon:["icon"],message:["message"],action:["action"]};return composeClasses(tt,getAlertUtilityClass,et)},AlertRoot=styled(Paper,{name:"MuiAlert",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.variant],j[`${$.variant}${capitalize$1($.color||$.severity)}`]]}})(({theme:s})=>{const j=s.palette.mode==="light"?darken_1:lighten_1,$=s.palette.mode==="light"?lighten_1:darken_1;return _extends$2({},s.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(s.palette).filter(([,_e])=>_e.main&&_e.light).map(([_e])=>({props:{colorSeverity:_e,variant:"standard"},style:{color:s.vars?s.vars.palette.Alert[`${_e}Color`]:j(s.palette[_e].light,.6),backgroundColor:s.vars?s.vars.palette.Alert[`${_e}StandardBg`]:$(s.palette[_e].light,.9),[`& .${alertClasses.icon}`]:s.vars?{color:s.vars.palette.Alert[`${_e}IconColor`]}:{color:s.palette[_e].main}}})),...Object.entries(s.palette).filter(([,_e])=>_e.main&&_e.light).map(([_e])=>({props:{colorSeverity:_e,variant:"outlined"},style:{color:s.vars?s.vars.palette.Alert[`${_e}Color`]:j(s.palette[_e].light,.6),border:`1px solid ${(s.vars||s).palette[_e].light}`,[`& .${alertClasses.icon}`]:s.vars?{color:s.vars.palette.Alert[`${_e}IconColor`]}:{color:s.palette[_e].main}}})),...Object.entries(s.palette).filter(([,_e])=>_e.main&&_e.dark).map(([_e])=>({props:{colorSeverity:_e,variant:"filled"},style:_extends$2({fontWeight:s.typography.fontWeightMedium},s.vars?{color:s.vars.palette.Alert[`${_e}FilledColor`],backgroundColor:s.vars.palette.Alert[`${_e}FilledBg`]}:{backgroundColor:s.palette.mode==="dark"?s.palette[_e].dark:s.palette[_e].main,color:s.palette.getContrastText(s.palette[_e].main)})}))]})}),AlertIcon=styled("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(s,j)=>j.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),AlertMessage=styled("div",{name:"MuiAlert",slot:"Message",overridesResolver:(s,j)=>j.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),AlertAction=styled("div",{name:"MuiAlert",slot:"Action",overridesResolver:(s,j)=>j.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),defaultIconMapping={success:jsxRuntimeExports.jsx(SuccessOutlinedIcon,{fontSize:"inherit"}),warning:jsxRuntimeExports.jsx(ReportProblemOutlinedIcon,{fontSize:"inherit"}),error:jsxRuntimeExports.jsx(ErrorOutlineIcon,{fontSize:"inherit"}),info:jsxRuntimeExports.jsx(InfoOutlinedIcon,{fontSize:"inherit"})},Alert=reactExports.forwardRef(function(j,$){const _e=useThemeProps$1({props:j,name:"MuiAlert"}),{action:et,children:tt,className:nt,closeText:rt="Close",color:ot,components:it={},componentsProps:st={},icon:at,iconMapping:ct=defaultIconMapping,onClose:lt,role:dt="alert",severity:pt="success",slotProps:ht={},slots:yt={},variant:gt="standard"}=_e,ft=_objectWithoutPropertiesLoose(_e,_excluded$Z),xt=_extends$2({},_e,{color:ot,severity:pt,variant:gt,colorSeverity:ot||pt}),Mt=useUtilityClasses$R(xt),jt={slots:_extends$2({closeButton:it.CloseButton,closeIcon:it.CloseIcon},yt),slotProps:_extends$2({},st,ht)},[wt,$t]=useSlot("closeButton",{elementType:IconButton,externalForwardedProps:jt,ownerState:xt}),[zt,Ot]=useSlot("closeIcon",{elementType:ClearIcon,externalForwardedProps:jt,ownerState:xt});return jsxRuntimeExports.jsxs(AlertRoot,_extends$2({role:dt,elevation:0,ownerState:xt,className:clsx(Mt.root,nt),ref:$},ft,{children:[at!==!1?jsxRuntimeExports.jsx(AlertIcon,{ownerState:xt,className:Mt.icon,children:at||ct[pt]||defaultIconMapping[pt]}):null,jsxRuntimeExports.jsx(AlertMessage,{ownerState:xt,className:Mt.message,children:tt}),et!=null?jsxRuntimeExports.jsx(AlertAction,{ownerState:xt,className:Mt.action,children:et}):null,et==null&<?jsxRuntimeExports.jsx(AlertAction,{ownerState:xt,className:Mt.action,children:jsxRuntimeExports.jsx(wt,_extends$2({size:"small","aria-label":rt,title:rt,color:"inherit",onClick:lt},$t,{children:jsxRuntimeExports.jsx(zt,_extends$2({fontSize:"small"},Ot))}))}):null]}))});function getTypographyUtilityClass(s){return generateUtilityClass$1("MuiTypography",s)}generateUtilityClasses$1("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _excluded$Y=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],useUtilityClasses$Q=s=>{const{align:j,gutterBottom:$,noWrap:_e,paragraph:et,variant:tt,classes:nt}=s,rt={root:["root",tt,s.align!=="inherit"&&`align${capitalize$1(j)}`,$&&"gutterBottom",_e&&"noWrap",et&&"paragraph"]};return composeClasses(rt,getTypographyUtilityClass,nt)},TypographyRoot=styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.variant&&j[$.variant],$.align!=="inherit"&&j[`align${capitalize$1($.align)}`],$.noWrap&&j.noWrap,$.gutterBottom&&j.gutterBottom,$.paragraph&&j.paragraph]}})(({theme:s,ownerState:j})=>_extends$2({margin:0},j.variant==="inherit"&&{font:"inherit"},j.variant!=="inherit"&&s.typography[j.variant],j.align!=="inherit"&&{textAlign:j.align},j.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},j.gutterBottom&&{marginBottom:"0.35em"},j.paragraph&&{marginBottom:16})),defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},colorTransformations$1={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},transformDeprecatedColors$1=s=>colorTransformations$1[s]||s,Typography=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTypography"}),et=transformDeprecatedColors$1(_e.color),tt=extendSxProp(_extends$2({},_e,{color:et})),{align:nt="inherit",className:rt,component:ot,gutterBottom:it=!1,noWrap:st=!1,paragraph:at=!1,variant:ct="body1",variantMapping:lt=defaultVariantMapping}=tt,dt=_objectWithoutPropertiesLoose(tt,_excluded$Y),pt=_extends$2({},tt,{align:nt,color:et,className:rt,component:ot,gutterBottom:it,noWrap:st,paragraph:at,variant:ct,variantMapping:lt}),ht=ot||(at?"p":lt[ct]||defaultVariantMapping[ct])||"span",yt=useUtilityClasses$Q(pt);return jsxRuntimeExports.jsx(TypographyRoot,_extends$2({as:ht,ref:$,ownerState:pt,className:clsx(yt.root,rt)},dt))});function getAppBarUtilityClass(s){return generateUtilityClass$1("MuiAppBar",s)}generateUtilityClasses$1("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _excluded$X=["className","color","enableColorOnDark","position"],useUtilityClasses$P=s=>{const{color:j,position:$,classes:_e}=s,et={root:["root",`color${capitalize$1(j)}`,`position${capitalize$1($)}`]};return composeClasses(et,getAppBarUtilityClass,_e)},joinVars=(s,j)=>s?`${s==null?void 0:s.replace(")","")}, ${j})`:j,AppBarRoot=styled(Paper,{name:"MuiAppBar",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[`position${capitalize$1($.position)}`],j[`color${capitalize$1($.color)}`]]}})(({theme:s,ownerState:j})=>{const $=s.palette.mode==="light"?s.palette.grey[100]:s.palette.grey[900];return _extends$2({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},j.position==="fixed"&&{position:"fixed",zIndex:(s.vars||s).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},j.position==="absolute"&&{position:"absolute",zIndex:(s.vars||s).zIndex.appBar,top:0,left:"auto",right:0},j.position==="sticky"&&{position:"sticky",zIndex:(s.vars||s).zIndex.appBar,top:0,left:"auto",right:0},j.position==="static"&&{position:"static"},j.position==="relative"&&{position:"relative"},!s.vars&&_extends$2({},j.color==="default"&&{backgroundColor:$,color:s.palette.getContrastText($)},j.color&&j.color!=="default"&&j.color!=="inherit"&&j.color!=="transparent"&&{backgroundColor:s.palette[j.color].main,color:s.palette[j.color].contrastText},j.color==="inherit"&&{color:"inherit"},s.palette.mode==="dark"&&!j.enableColorOnDark&&{backgroundColor:null,color:null},j.color==="transparent"&&_extends$2({backgroundColor:"transparent",color:"inherit"},s.palette.mode==="dark"&&{backgroundImage:"none"})),s.vars&&_extends$2({},j.color==="default"&&{"--AppBar-background":j.enableColorOnDark?s.vars.palette.AppBar.defaultBg:joinVars(s.vars.palette.AppBar.darkBg,s.vars.palette.AppBar.defaultBg),"--AppBar-color":j.enableColorOnDark?s.vars.palette.text.primary:joinVars(s.vars.palette.AppBar.darkColor,s.vars.palette.text.primary)},j.color&&!j.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":j.enableColorOnDark?s.vars.palette[j.color].main:joinVars(s.vars.palette.AppBar.darkBg,s.vars.palette[j.color].main),"--AppBar-color":j.enableColorOnDark?s.vars.palette[j.color].contrastText:joinVars(s.vars.palette.AppBar.darkColor,s.vars.palette[j.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:j.color==="inherit"?"inherit":"var(--AppBar-color)"},j.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),AppBar=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiAppBar"}),{className:et,color:tt="primary",enableColorOnDark:nt=!1,position:rt="fixed"}=_e,ot=_objectWithoutPropertiesLoose(_e,_excluded$X),it=_extends$2({},_e,{color:tt,position:rt,enableColorOnDark:nt}),st=useUtilityClasses$P(it);return jsxRuntimeExports.jsx(AppBarRoot,_extends$2({square:!0,component:"header",ownerState:it,elevation:4,className:clsx(st.root,et,rt==="fixed"&&"mui-fixed"),ref:$},ot))}),GLOBAL_CLASS_PREFIX="base";function buildStateClass(s){return`${GLOBAL_CLASS_PREFIX}--${s}`}function buildSlotClass(s,j){return`${GLOBAL_CLASS_PREFIX}-${s}-${j}`}function generateUtilityClass(s,j){const $=globalStateClasses[j];return $?buildStateClass($):buildSlotClass(s,j)}function generateUtilityClasses(s,j){const $={};return j.forEach(_e=>{$[_e]=generateUtilityClass(s,_e)}),$}const candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex(s){const j=parseInt(s.getAttribute("tabindex")||"",10);return Number.isNaN(j)?s.contentEditable==="true"||(s.nodeName==="AUDIO"||s.nodeName==="VIDEO"||s.nodeName==="DETAILS")&&s.getAttribute("tabindex")===null?0:s.tabIndex:j}function isNonTabbableRadio(s){if(s.tagName!=="INPUT"||s.type!=="radio"||!s.name)return!1;const j=_e=>s.ownerDocument.querySelector(`input[type="radio"]${_e}`);let $=j(`[name="${s.name}"]:checked`);return $||($=j(`[name="${s.name}"]`)),$!==s}function isNodeMatchingSelectorFocusable(s){return!(s.disabled||s.tagName==="INPUT"&&s.type==="hidden"||isNonTabbableRadio(s))}function defaultGetTabbable(s){const j=[],$=[];return Array.from(s.querySelectorAll(candidatesSelector)).forEach((_e,et)=>{const tt=getTabIndex(_e);tt===-1||!isNodeMatchingSelectorFocusable(_e)||(tt===0?j.push(_e):$.push({documentOrder:et,tabIndex:tt,node:_e}))}),$.sort((_e,et)=>_e.tabIndex===et.tabIndex?_e.documentOrder-et.documentOrder:_e.tabIndex-et.tabIndex).map(_e=>_e.node).concat(j)}function defaultIsEnabled(){return!0}function FocusTrap(s){const{children:j,disableAutoFocus:$=!1,disableEnforceFocus:_e=!1,disableRestoreFocus:et=!1,getTabbable:tt=defaultGetTabbable,isEnabled:nt=defaultIsEnabled,open:rt}=s,ot=reactExports.useRef(!1),it=reactExports.useRef(null),st=reactExports.useRef(null),at=reactExports.useRef(null),ct=reactExports.useRef(null),lt=reactExports.useRef(!1),dt=reactExports.useRef(null),pt=useForkRef(j.ref,dt),ht=reactExports.useRef(null);reactExports.useEffect(()=>{!rt||!dt.current||(lt.current=!$)},[$,rt]),reactExports.useEffect(()=>{if(!rt||!dt.current)return;const ft=ownerDocument(dt.current);return dt.current.contains(ft.activeElement)||(dt.current.hasAttribute("tabIndex")||dt.current.setAttribute("tabIndex","-1"),lt.current&&dt.current.focus()),()=>{et||(at.current&&at.current.focus&&(ot.current=!0,at.current.focus()),at.current=null)}},[rt]),reactExports.useEffect(()=>{if(!rt||!dt.current)return;const ft=ownerDocument(dt.current),xt=wt=>{ht.current=wt,!(_e||!nt()||wt.key!=="Tab")&&ft.activeElement===dt.current&&wt.shiftKey&&(ot.current=!0,st.current&&st.current.focus())},Mt=()=>{const wt=dt.current;if(wt===null)return;if(!ft.hasFocus()||!nt()||ot.current){ot.current=!1;return}if(wt.contains(ft.activeElement)||_e&&ft.activeElement!==it.current&&ft.activeElement!==st.current)return;if(ft.activeElement!==ct.current)ct.current=null;else if(ct.current!==null)return;if(!lt.current)return;let $t=[];if((ft.activeElement===it.current||ft.activeElement===st.current)&&($t=tt(dt.current)),$t.length>0){var zt,Ot;const Pt=!!((zt=ht.current)!=null&&zt.shiftKey&&((Ot=ht.current)==null?void 0:Ot.key)==="Tab"),Ft=$t[0],Nt=$t[$t.length-1];typeof Ft!="string"&&typeof Nt!="string"&&(Pt?Nt.focus():Ft.focus())}else wt.focus()};ft.addEventListener("focusin",Mt),ft.addEventListener("keydown",xt,!0);const jt=setInterval(()=>{ft.activeElement&&ft.activeElement.tagName==="BODY"&&Mt()},50);return()=>{clearInterval(jt),ft.removeEventListener("focusin",Mt),ft.removeEventListener("keydown",xt,!0)}},[$,_e,et,nt,rt,tt]);const yt=ft=>{at.current===null&&(at.current=ft.relatedTarget),lt.current=!0,ct.current=ft.target;const xt=j.props.onFocus;xt&&xt(ft)},gt=ft=>{at.current===null&&(at.current=ft.relatedTarget),lt.current=!0};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{tabIndex:rt?0:-1,onFocus:gt,ref:it,"data-testid":"sentinelStart"}),reactExports.cloneElement(j,{ref:pt,onFocus:yt}),jsxRuntimeExports.jsx("div",{tabIndex:rt?0:-1,onFocus:gt,ref:st,"data-testid":"sentinelEnd"})]})}function getContainer$1(s){return typeof s=="function"?s():s}const Portal=reactExports.forwardRef(function(j,$){const{children:_e,container:et,disablePortal:tt=!1}=j,[nt,rt]=reactExports.useState(null),ot=useForkRef(reactExports.isValidElement(_e)?_e.ref:null,$);if(useEnhancedEffect(()=>{tt||rt(getContainer$1(et)||document.body)},[et,tt]),useEnhancedEffect(()=>{if(nt&&!tt)return setRef($,nt),()=>{setRef($,null)}},[$,nt,tt]),tt){if(reactExports.isValidElement(_e)){const it={ref:ot};return reactExports.cloneElement(_e,it)}return jsxRuntimeExports.jsx(reactExports.Fragment,{children:_e})}return jsxRuntimeExports.jsx(reactExports.Fragment,{children:nt&&reactDomExports.createPortal(_e,nt)})});function isOverflowing(s){const j=ownerDocument(s);return j.body===s?ownerWindow(s).innerWidth>j.documentElement.clientWidth:s.scrollHeight>s.clientHeight}function ariaHidden(s,j){j?s.setAttribute("aria-hidden","true"):s.removeAttribute("aria-hidden")}function getPaddingRight(s){return parseInt(ownerWindow(s).getComputedStyle(s).paddingRight,10)||0}function isAriaHiddenForbiddenOnElement(s){const $=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(s.tagName)!==-1,_e=s.tagName==="INPUT"&&s.getAttribute("type")==="hidden";return $||_e}function ariaHiddenSiblings(s,j,$,_e,et){const tt=[j,$,..._e];[].forEach.call(s.children,nt=>{const rt=tt.indexOf(nt)===-1,ot=!isAriaHiddenForbiddenOnElement(nt);rt&&ot&&ariaHidden(nt,et)})}function findIndexOf(s,j){let $=-1;return s.some((_e,et)=>j(_e)?($=et,!0):!1),$}function handleContainer(s,j){const $=[],_e=s.container;if(!j.disableScrollLock){if(isOverflowing(_e)){const nt=getScrollbarSize(ownerDocument(_e));$.push({value:_e.style.paddingRight,property:"padding-right",el:_e}),_e.style.paddingRight=`${getPaddingRight(_e)+nt}px`;const rt=ownerDocument(_e).querySelectorAll(".mui-fixed");[].forEach.call(rt,ot=>{$.push({value:ot.style.paddingRight,property:"padding-right",el:ot}),ot.style.paddingRight=`${getPaddingRight(ot)+nt}px`})}let tt;if(_e.parentNode instanceof DocumentFragment)tt=ownerDocument(_e).body;else{const nt=_e.parentElement,rt=ownerWindow(_e);tt=(nt==null?void 0:nt.nodeName)==="HTML"&&rt.getComputedStyle(nt).overflowY==="scroll"?nt:_e}$.push({value:tt.style.overflow,property:"overflow",el:tt},{value:tt.style.overflowX,property:"overflow-x",el:tt},{value:tt.style.overflowY,property:"overflow-y",el:tt}),tt.style.overflow="hidden"}return()=>{$.forEach(({value:tt,el:nt,property:rt})=>{tt?nt.style.setProperty(rt,tt):nt.style.removeProperty(rt)})}}function getHiddenSiblings(s){const j=[];return[].forEach.call(s.children,$=>{$.getAttribute("aria-hidden")==="true"&&j.push($)}),j}class ModalManager{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(j,$){let _e=this.modals.indexOf(j);if(_e!==-1)return _e;_e=this.modals.length,this.modals.push(j),j.modalRef&&ariaHidden(j.modalRef,!1);const et=getHiddenSiblings($);ariaHiddenSiblings($,j.mount,j.modalRef,et,!0);const tt=findIndexOf(this.containers,nt=>nt.container===$);return tt!==-1?(this.containers[tt].modals.push(j),_e):(this.containers.push({modals:[j],container:$,restore:null,hiddenSiblings:et}),_e)}mount(j,$){const _e=findIndexOf(this.containers,tt=>tt.modals.indexOf(j)!==-1),et=this.containers[_e];et.restore||(et.restore=handleContainer(et,$))}remove(j,$=!0){const _e=this.modals.indexOf(j);if(_e===-1)return _e;const et=findIndexOf(this.containers,nt=>nt.modals.indexOf(j)!==-1),tt=this.containers[et];if(tt.modals.splice(tt.modals.indexOf(j),1),this.modals.splice(_e,1),tt.modals.length===0)tt.restore&&tt.restore(),j.modalRef&&ariaHidden(j.modalRef,$),ariaHiddenSiblings(tt.container,j.mount,j.modalRef,tt.hiddenSiblings,!1),this.containers.splice(et,1);else{const nt=tt.modals[tt.modals.length-1];nt.modalRef&&ariaHidden(nt.modalRef,!1)}return _e}isTopModal(j){return this.modals.length>0&&this.modals[this.modals.length-1]===j}}function getContainer(s){return typeof s=="function"?s():s}function getHasTransition(s){return s?s.props.hasOwnProperty("in"):!1}const defaultManager=new ModalManager;function useModal(s){const{container:j,disableEscapeKeyDown:$=!1,disableScrollLock:_e=!1,manager:et=defaultManager,closeAfterTransition:tt=!1,onTransitionEnter:nt,onTransitionExited:rt,children:ot,onClose:it,open:st,rootRef:at}=s,ct=reactExports.useRef({}),lt=reactExports.useRef(null),dt=reactExports.useRef(null),pt=useForkRef(dt,at),[ht,yt]=reactExports.useState(!st),gt=getHasTransition(ot);let ft=!0;(s["aria-hidden"]==="false"||s["aria-hidden"]===!1)&&(ft=!1);const xt=()=>ownerDocument(lt.current),Mt=()=>(ct.current.modalRef=dt.current,ct.current.mount=lt.current,ct.current),jt=()=>{et.mount(Mt(),{disableScrollLock:_e}),dt.current&&(dt.current.scrollTop=0)},wt=useEventCallback(()=>{const St=getContainer(j)||xt().body;et.add(Mt(),St),dt.current&&jt()}),$t=reactExports.useCallback(()=>et.isTopModal(Mt()),[et]),zt=useEventCallback(St=>{lt.current=St,St&&(st&&$t()?jt():dt.current&&ariaHidden(dt.current,ft))}),Ot=reactExports.useCallback(()=>{et.remove(Mt(),ft)},[ft,et]);reactExports.useEffect(()=>()=>{Ot()},[Ot]),reactExports.useEffect(()=>{st?wt():(!gt||!tt)&&Ot()},[st,Ot,gt,tt,wt]);const Pt=St=>vt=>{var At;(At=St.onKeyDown)==null||At.call(St,vt),!(vt.key!=="Escape"||vt.which===229||!$t())&&($||(vt.stopPropagation(),it&&it(vt,"escapeKeyDown")))},Ft=St=>vt=>{var At;(At=St.onClick)==null||At.call(St,vt),vt.target===vt.currentTarget&&it&&it(vt,"backdropClick")};return{getRootProps:(St={})=>{const vt=extractEventHandlers(s);delete vt.onTransitionEnter,delete vt.onTransitionExited;const At=_extends$2({},vt,St);return _extends$2({role:"presentation"},At,{onKeyDown:Pt(At),ref:pt})},getBackdropProps:(St={})=>{const vt=St;return _extends$2({"aria-hidden":!0},vt,{onClick:Ft(vt),open:st})},getTransitionProps:()=>{const St=()=>{yt(!1),nt&&nt()},vt=()=>{yt(!0),rt&&rt(),tt&&Ot()};return{onEnter:createChainedFunction(St,ot==null?void 0:ot.props.onEnter),onExited:createChainedFunction(vt,ot==null?void 0:ot.props.onExited)}},rootRef:pt,portalRef:zt,isTopModal:$t,exited:ht,hasTransition:gt}}var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(s,j){return s.concat([j+"-"+start,j+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(s,j){return s.concat([j,j+"-"+start,j+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(s){return s?(s.nodeName||"").toLowerCase():null}function getWindow(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var j=s.ownerDocument;return j&&j.defaultView||window}return s}function isElement(s){var j=getWindow(s).Element;return s instanceof j||s instanceof Element}function isHTMLElement$1(s){var j=getWindow(s).HTMLElement;return s instanceof j||s instanceof HTMLElement}function isShadowRoot(s){if(typeof ShadowRoot>"u")return!1;var j=getWindow(s).ShadowRoot;return s instanceof j||s instanceof ShadowRoot}function applyStyles(s){var j=s.state;Object.keys(j.elements).forEach(function($){var _e=j.styles[$]||{},et=j.attributes[$]||{},tt=j.elements[$];!isHTMLElement$1(tt)||!getNodeName(tt)||(Object.assign(tt.style,_e),Object.keys(et).forEach(function(nt){var rt=et[nt];rt===!1?tt.removeAttribute(nt):tt.setAttribute(nt,rt===!0?"":rt)}))})}function effect$2(s){var j=s.state,$={popper:{position:j.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(j.elements.popper.style,$.popper),j.styles=$,j.elements.arrow&&Object.assign(j.elements.arrow.style,$.arrow),function(){Object.keys(j.elements).forEach(function(_e){var et=j.elements[_e],tt=j.attributes[_e]||{},nt=Object.keys(j.styles.hasOwnProperty(_e)?j.styles[_e]:$[_e]),rt=nt.reduce(function(ot,it){return ot[it]="",ot},{});!isHTMLElement$1(et)||!getNodeName(et)||(Object.assign(et.style,rt),Object.keys(tt).forEach(function(ot){et.removeAttribute(ot)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(s){return s.split("-")[0]}var max$1=Math.max,min$1=Math.min,round$1=Math.round;function getUAString(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(j){return j.brand+"/"+j.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(s,j,$){j===void 0&&(j=!1),$===void 0&&($=!1);var _e=s.getBoundingClientRect(),et=1,tt=1;j&&isHTMLElement$1(s)&&(et=s.offsetWidth>0&&round$1(_e.width)/s.offsetWidth||1,tt=s.offsetHeight>0&&round$1(_e.height)/s.offsetHeight||1);var nt=isElement(s)?getWindow(s):window,rt=nt.visualViewport,ot=!isLayoutViewport()&&$,it=(_e.left+(ot&&rt?rt.offsetLeft:0))/et,st=(_e.top+(ot&&rt?rt.offsetTop:0))/tt,at=_e.width/et,ct=_e.height/tt;return{width:at,height:ct,top:st,right:it+at,bottom:st+ct,left:it,x:it,y:st}}function getLayoutRect(s){var j=getBoundingClientRect(s),$=s.offsetWidth,_e=s.offsetHeight;return Math.abs(j.width-$)<=1&&($=j.width),Math.abs(j.height-_e)<=1&&(_e=j.height),{x:s.offsetLeft,y:s.offsetTop,width:$,height:_e}}function contains(s,j){var $=j.getRootNode&&j.getRootNode();if(s.contains(j))return!0;if($&&isShadowRoot($)){var _e=j;do{if(_e&&s.isSameNode(_e))return!0;_e=_e.parentNode||_e.host}while(_e)}return!1}function getComputedStyle(s){return getWindow(s).getComputedStyle(s)}function isTableElement(s){return["table","td","th"].indexOf(getNodeName(s))>=0}function getDocumentElement(s){return((isElement(s)?s.ownerDocument:s.document)||window.document).documentElement}function getParentNode(s){return getNodeName(s)==="html"?s:s.assignedSlot||s.parentNode||(isShadowRoot(s)?s.host:null)||getDocumentElement(s)}function getTrueOffsetParent(s){return!isHTMLElement$1(s)||getComputedStyle(s).position==="fixed"?null:s.offsetParent}function getContainingBlock(s){var j=/firefox/i.test(getUAString()),$=/Trident/i.test(getUAString());if($&&isHTMLElement$1(s)){var _e=getComputedStyle(s);if(_e.position==="fixed")return null}var et=getParentNode(s);for(isShadowRoot(et)&&(et=et.host);isHTMLElement$1(et)&&["html","body"].indexOf(getNodeName(et))<0;){var tt=getComputedStyle(et);if(tt.transform!=="none"||tt.perspective!=="none"||tt.contain==="paint"||["transform","perspective"].indexOf(tt.willChange)!==-1||j&&tt.willChange==="filter"||j&&tt.filter&&tt.filter!=="none")return et;et=et.parentNode}return null}function getOffsetParent(s){for(var j=getWindow(s),$=getTrueOffsetParent(s);$&&isTableElement($)&&getComputedStyle($).position==="static";)$=getTrueOffsetParent($);return $&&(getNodeName($)==="html"||getNodeName($)==="body"&&getComputedStyle($).position==="static")?j:$||getContainingBlock(s)||j}function getMainAxisFromPlacement(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function within(s,j,$){return max$1(s,min$1(j,$))}function withinMaxClamp(s,j,$){var _e=within(s,j,$);return _e>$?$:_e}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(s){return Object.assign({},getFreshSideObject(),s)}function expandToHashMap(s,j){return j.reduce(function($,_e){return $[_e]=s,$},{})}var toPaddingObject=function(j,$){return j=typeof j=="function"?j(Object.assign({},$.rects,{placement:$.placement})):j,mergePaddingObject(typeof j!="number"?j:expandToHashMap(j,basePlacements))};function arrow(s){var j,$=s.state,_e=s.name,et=s.options,tt=$.elements.arrow,nt=$.modifiersData.popperOffsets,rt=getBasePlacement($.placement),ot=getMainAxisFromPlacement(rt),it=[left,right].indexOf(rt)>=0,st=it?"height":"width";if(!(!tt||!nt)){var at=toPaddingObject(et.padding,$),ct=getLayoutRect(tt),lt=ot==="y"?top:left,dt=ot==="y"?bottom:right,pt=$.rects.reference[st]+$.rects.reference[ot]-nt[ot]-$.rects.popper[st],ht=nt[ot]-$.rects.reference[ot],yt=getOffsetParent(tt),gt=yt?ot==="y"?yt.clientHeight||0:yt.clientWidth||0:0,ft=pt/2-ht/2,xt=at[lt],Mt=gt-ct[st]-at[dt],jt=gt/2-ct[st]/2+ft,wt=within(xt,jt,Mt),$t=ot;$.modifiersData[_e]=(j={},j[$t]=wt,j.centerOffset=wt-jt,j)}}function effect$1(s){var j=s.state,$=s.options,_e=$.element,et=_e===void 0?"[data-popper-arrow]":_e;et!=null&&(typeof et=="string"&&(et=j.elements.popper.querySelector(et),!et)||contains(j.elements.popper,et)&&(j.elements.arrow=et))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(s){return s.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(s,j){var $=s.x,_e=s.y,et=j.devicePixelRatio||1;return{x:round$1($*et)/et||0,y:round$1(_e*et)/et||0}}function mapToStyles(s){var j,$=s.popper,_e=s.popperRect,et=s.placement,tt=s.variation,nt=s.offsets,rt=s.position,ot=s.gpuAcceleration,it=s.adaptive,st=s.roundOffsets,at=s.isFixed,ct=nt.x,lt=ct===void 0?0:ct,dt=nt.y,pt=dt===void 0?0:dt,ht=typeof st=="function"?st({x:lt,y:pt}):{x:lt,y:pt};lt=ht.x,pt=ht.y;var yt=nt.hasOwnProperty("x"),gt=nt.hasOwnProperty("y"),ft=left,xt=top,Mt=window;if(it){var jt=getOffsetParent($),wt="clientHeight",$t="clientWidth";if(jt===getWindow($)&&(jt=getDocumentElement($),getComputedStyle(jt).position!=="static"&&rt==="absolute"&&(wt="scrollHeight",$t="scrollWidth")),jt=jt,et===top||(et===left||et===right)&&tt===end){xt=bottom;var zt=at&&jt===Mt&&Mt.visualViewport?Mt.visualViewport.height:jt[wt];pt-=zt-_e.height,pt*=ot?1:-1}if(et===left||(et===top||et===bottom)&&tt===end){ft=right;var Ot=at&&jt===Mt&&Mt.visualViewport?Mt.visualViewport.width:jt[$t];lt-=Ot-_e.width,lt*=ot?1:-1}}var Pt=Object.assign({position:rt},it&&unsetSides),Ft=st===!0?roundOffsetsByDPR({x:lt,y:pt},getWindow($)):{x:lt,y:pt};if(lt=Ft.x,pt=Ft.y,ot){var Nt;return Object.assign({},Pt,(Nt={},Nt[xt]=gt?"0":"",Nt[ft]=yt?"0":"",Nt.transform=(Mt.devicePixelRatio||1)<=1?"translate("+lt+"px, "+pt+"px)":"translate3d("+lt+"px, "+pt+"px, 0)",Nt))}return Object.assign({},Pt,(j={},j[xt]=gt?pt+"px":"",j[ft]=yt?lt+"px":"",j.transform="",j))}function computeStyles(s){var j=s.state,$=s.options,_e=$.gpuAcceleration,et=_e===void 0?!0:_e,tt=$.adaptive,nt=tt===void 0?!0:tt,rt=$.roundOffsets,ot=rt===void 0?!0:rt,it={placement:getBasePlacement(j.placement),variation:getVariation(j.placement),popper:j.elements.popper,popperRect:j.rects.popper,gpuAcceleration:et,isFixed:j.options.strategy==="fixed"};j.modifiersData.popperOffsets!=null&&(j.styles.popper=Object.assign({},j.styles.popper,mapToStyles(Object.assign({},it,{offsets:j.modifiersData.popperOffsets,position:j.options.strategy,adaptive:nt,roundOffsets:ot})))),j.modifiersData.arrow!=null&&(j.styles.arrow=Object.assign({},j.styles.arrow,mapToStyles(Object.assign({},it,{offsets:j.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ot})))),j.attributes.popper=Object.assign({},j.attributes.popper,{"data-popper-placement":j.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(s){var j=s.state,$=s.instance,_e=s.options,et=_e.scroll,tt=et===void 0?!0:et,nt=_e.resize,rt=nt===void 0?!0:nt,ot=getWindow(j.elements.popper),it=[].concat(j.scrollParents.reference,j.scrollParents.popper);return tt&&it.forEach(function(st){st.addEventListener("scroll",$.update,passive)}),rt&&ot.addEventListener("resize",$.update,passive),function(){tt&&it.forEach(function(st){st.removeEventListener("scroll",$.update,passive)}),rt&&ot.removeEventListener("resize",$.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$3={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(s){return s.replace(/left|right|bottom|top/g,function(j){return hash$3[j]})}var hash$2={start:"end",end:"start"};function getOppositeVariationPlacement(s){return s.replace(/start|end/g,function(j){return hash$2[j]})}function getWindowScroll(s){var j=getWindow(s),$=j.pageXOffset,_e=j.pageYOffset;return{scrollLeft:$,scrollTop:_e}}function getWindowScrollBarX(s){return getBoundingClientRect(getDocumentElement(s)).left+getWindowScroll(s).scrollLeft}function getViewportRect(s,j){var $=getWindow(s),_e=getDocumentElement(s),et=$.visualViewport,tt=_e.clientWidth,nt=_e.clientHeight,rt=0,ot=0;if(et){tt=et.width,nt=et.height;var it=isLayoutViewport();(it||!it&&j==="fixed")&&(rt=et.offsetLeft,ot=et.offsetTop)}return{width:tt,height:nt,x:rt+getWindowScrollBarX(s),y:ot}}function getDocumentRect(s){var j,$=getDocumentElement(s),_e=getWindowScroll(s),et=(j=s.ownerDocument)==null?void 0:j.body,tt=max$1($.scrollWidth,$.clientWidth,et?et.scrollWidth:0,et?et.clientWidth:0),nt=max$1($.scrollHeight,$.clientHeight,et?et.scrollHeight:0,et?et.clientHeight:0),rt=-_e.scrollLeft+getWindowScrollBarX(s),ot=-_e.scrollTop;return getComputedStyle(et||$).direction==="rtl"&&(rt+=max$1($.clientWidth,et?et.clientWidth:0)-tt),{width:tt,height:nt,x:rt,y:ot}}function isScrollParent(s){var j=getComputedStyle(s),$=j.overflow,_e=j.overflowX,et=j.overflowY;return/auto|scroll|overlay|hidden/.test($+et+_e)}function getScrollParent(s){return["html","body","#document"].indexOf(getNodeName(s))>=0?s.ownerDocument.body:isHTMLElement$1(s)&&isScrollParent(s)?s:getScrollParent(getParentNode(s))}function listScrollParents(s,j){var $;j===void 0&&(j=[]);var _e=getScrollParent(s),et=_e===(($=s.ownerDocument)==null?void 0:$.body),tt=getWindow(_e),nt=et?[tt].concat(tt.visualViewport||[],isScrollParent(_e)?_e:[]):_e,rt=j.concat(nt);return et?rt:rt.concat(listScrollParents(getParentNode(nt)))}function rectToClientRect(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function getInnerBoundingClientRect(s,j){var $=getBoundingClientRect(s,!1,j==="fixed");return $.top=$.top+s.clientTop,$.left=$.left+s.clientLeft,$.bottom=$.top+s.clientHeight,$.right=$.left+s.clientWidth,$.width=s.clientWidth,$.height=s.clientHeight,$.x=$.left,$.y=$.top,$}function getClientRectFromMixedType(s,j,$){return j===viewport?rectToClientRect(getViewportRect(s,$)):isElement(j)?getInnerBoundingClientRect(j,$):rectToClientRect(getDocumentRect(getDocumentElement(s)))}function getClippingParents(s){var j=listScrollParents(getParentNode(s)),$=["absolute","fixed"].indexOf(getComputedStyle(s).position)>=0,_e=$&&isHTMLElement$1(s)?getOffsetParent(s):s;return isElement(_e)?j.filter(function(et){return isElement(et)&&contains(et,_e)&&getNodeName(et)!=="body"}):[]}function getClippingRect(s,j,$,_e){var et=j==="clippingParents"?getClippingParents(s):[].concat(j),tt=[].concat(et,[$]),nt=tt[0],rt=tt.reduce(function(ot,it){var st=getClientRectFromMixedType(s,it,_e);return ot.top=max$1(st.top,ot.top),ot.right=min$1(st.right,ot.right),ot.bottom=min$1(st.bottom,ot.bottom),ot.left=max$1(st.left,ot.left),ot},getClientRectFromMixedType(s,nt,_e));return rt.width=rt.right-rt.left,rt.height=rt.bottom-rt.top,rt.x=rt.left,rt.y=rt.top,rt}function computeOffsets(s){var j=s.reference,$=s.element,_e=s.placement,et=_e?getBasePlacement(_e):null,tt=_e?getVariation(_e):null,nt=j.x+j.width/2-$.width/2,rt=j.y+j.height/2-$.height/2,ot;switch(et){case top:ot={x:nt,y:j.y-$.height};break;case bottom:ot={x:nt,y:j.y+j.height};break;case right:ot={x:j.x+j.width,y:rt};break;case left:ot={x:j.x-$.width,y:rt};break;default:ot={x:j.x,y:j.y}}var it=et?getMainAxisFromPlacement(et):null;if(it!=null){var st=it==="y"?"height":"width";switch(tt){case start:ot[it]=ot[it]-(j[st]/2-$[st]/2);break;case end:ot[it]=ot[it]+(j[st]/2-$[st]/2);break}}return ot}function detectOverflow(s,j){j===void 0&&(j={});var $=j,_e=$.placement,et=_e===void 0?s.placement:_e,tt=$.strategy,nt=tt===void 0?s.strategy:tt,rt=$.boundary,ot=rt===void 0?clippingParents:rt,it=$.rootBoundary,st=it===void 0?viewport:it,at=$.elementContext,ct=at===void 0?popper:at,lt=$.altBoundary,dt=lt===void 0?!1:lt,pt=$.padding,ht=pt===void 0?0:pt,yt=mergePaddingObject(typeof ht!="number"?ht:expandToHashMap(ht,basePlacements)),gt=ct===popper?reference:popper,ft=s.rects.popper,xt=s.elements[dt?gt:ct],Mt=getClippingRect(isElement(xt)?xt:xt.contextElement||getDocumentElement(s.elements.popper),ot,st,nt),jt=getBoundingClientRect(s.elements.reference),wt=computeOffsets({reference:jt,element:ft,strategy:"absolute",placement:et}),$t=rectToClientRect(Object.assign({},ft,wt)),zt=ct===popper?$t:jt,Ot={top:Mt.top-zt.top+yt.top,bottom:zt.bottom-Mt.bottom+yt.bottom,left:Mt.left-zt.left+yt.left,right:zt.right-Mt.right+yt.right},Pt=s.modifiersData.offset;if(ct===popper&&Pt){var Ft=Pt[et];Object.keys(Ot).forEach(function(Nt){var mt=[right,bottom].indexOf(Nt)>=0?1:-1,bt=[top,bottom].indexOf(Nt)>=0?"y":"x";Ot[Nt]+=Ft[bt]*mt})}return Ot}function computeAutoPlacement(s,j){j===void 0&&(j={});var $=j,_e=$.placement,et=$.boundary,tt=$.rootBoundary,nt=$.padding,rt=$.flipVariations,ot=$.allowedAutoPlacements,it=ot===void 0?placements:ot,st=getVariation(_e),at=st?rt?variationPlacements:variationPlacements.filter(function(dt){return getVariation(dt)===st}):basePlacements,ct=at.filter(function(dt){return it.indexOf(dt)>=0});ct.length===0&&(ct=at);var lt=ct.reduce(function(dt,pt){return dt[pt]=detectOverflow(s,{placement:pt,boundary:et,rootBoundary:tt,padding:nt})[getBasePlacement(pt)],dt},{});return Object.keys(lt).sort(function(dt,pt){return lt[dt]-lt[pt]})}function getExpandedFallbackPlacements(s){if(getBasePlacement(s)===auto)return[];var j=getOppositePlacement(s);return[getOppositeVariationPlacement(s),j,getOppositeVariationPlacement(j)]}function flip(s){var j=s.state,$=s.options,_e=s.name;if(!j.modifiersData[_e]._skip){for(var et=$.mainAxis,tt=et===void 0?!0:et,nt=$.altAxis,rt=nt===void 0?!0:nt,ot=$.fallbackPlacements,it=$.padding,st=$.boundary,at=$.rootBoundary,ct=$.altBoundary,lt=$.flipVariations,dt=lt===void 0?!0:lt,pt=$.allowedAutoPlacements,ht=j.options.placement,yt=getBasePlacement(ht),gt=yt===ht,ft=ot||(gt||!dt?[getOppositePlacement(ht)]:getExpandedFallbackPlacements(ht)),xt=[ht].concat(ft).reduce(function(Ut,Gt){return Ut.concat(getBasePlacement(Gt)===auto?computeAutoPlacement(j,{placement:Gt,boundary:st,rootBoundary:at,padding:it,flipVariations:dt,allowedAutoPlacements:pt}):Gt)},[]),Mt=j.rects.reference,jt=j.rects.popper,wt=new Map,$t=!0,zt=xt[0],Ot=0;Ot=0,bt=mt?"width":"height",St=detectOverflow(j,{placement:Pt,boundary:st,rootBoundary:at,altBoundary:ct,padding:it}),vt=mt?Nt?right:left:Nt?bottom:top;Mt[bt]>jt[bt]&&(vt=getOppositePlacement(vt));var At=getOppositePlacement(vt),Tt=[];if(tt&&Tt.push(St[Ft]<=0),rt&&Tt.push(St[vt]<=0,St[At]<=0),Tt.every(function(Ut){return Ut})){zt=Pt,$t=!1;break}wt.set(Pt,Tt)}if($t)for(var Dt=dt?3:1,Lt=function(Gt){var Ht=xt.find(function(tn){var Jt=wt.get(tn);if(Jt)return Jt.slice(0,Gt).every(function(Kt){return Kt})});if(Ht)return zt=Ht,"break"},Et=Dt;Et>0;Et--){var kt=Lt(Et);if(kt==="break")break}j.placement!==zt&&(j.modifiersData[_e]._skip=!0,j.placement=zt,j.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(s,j,$){return $===void 0&&($={x:0,y:0}),{top:s.top-j.height-$.y,right:s.right-j.width+$.x,bottom:s.bottom-j.height+$.y,left:s.left-j.width-$.x}}function isAnySideFullyClipped(s){return[top,right,bottom,left].some(function(j){return s[j]>=0})}function hide(s){var j=s.state,$=s.name,_e=j.rects.reference,et=j.rects.popper,tt=j.modifiersData.preventOverflow,nt=detectOverflow(j,{elementContext:"reference"}),rt=detectOverflow(j,{altBoundary:!0}),ot=getSideOffsets(nt,_e),it=getSideOffsets(rt,et,tt),st=isAnySideFullyClipped(ot),at=isAnySideFullyClipped(it);j.modifiersData[$]={referenceClippingOffsets:ot,popperEscapeOffsets:it,isReferenceHidden:st,hasPopperEscaped:at},j.attributes.popper=Object.assign({},j.attributes.popper,{"data-popper-reference-hidden":st,"data-popper-escaped":at})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(s,j,$){var _e=getBasePlacement(s),et=[left,top].indexOf(_e)>=0?-1:1,tt=typeof $=="function"?$(Object.assign({},j,{placement:s})):$,nt=tt[0],rt=tt[1];return nt=nt||0,rt=(rt||0)*et,[left,right].indexOf(_e)>=0?{x:rt,y:nt}:{x:nt,y:rt}}function offset$1(s){var j=s.state,$=s.options,_e=s.name,et=$.offset,tt=et===void 0?[0,0]:et,nt=placements.reduce(function(st,at){return st[at]=distanceAndSkiddingToXY(at,j.rects,tt),st},{}),rt=nt[j.placement],ot=rt.x,it=rt.y;j.modifiersData.popperOffsets!=null&&(j.modifiersData.popperOffsets.x+=ot,j.modifiersData.popperOffsets.y+=it),j.modifiersData[_e]=nt}const offset$2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset$1};function popperOffsets(s){var j=s.state,$=s.name;j.modifiersData[$]=computeOffsets({reference:j.rects.reference,element:j.rects.popper,strategy:"absolute",placement:j.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(s){return s==="x"?"y":"x"}function preventOverflow(s){var j=s.state,$=s.options,_e=s.name,et=$.mainAxis,tt=et===void 0?!0:et,nt=$.altAxis,rt=nt===void 0?!1:nt,ot=$.boundary,it=$.rootBoundary,st=$.altBoundary,at=$.padding,ct=$.tether,lt=ct===void 0?!0:ct,dt=$.tetherOffset,pt=dt===void 0?0:dt,ht=detectOverflow(j,{boundary:ot,rootBoundary:it,padding:at,altBoundary:st}),yt=getBasePlacement(j.placement),gt=getVariation(j.placement),ft=!gt,xt=getMainAxisFromPlacement(yt),Mt=getAltAxis(xt),jt=j.modifiersData.popperOffsets,wt=j.rects.reference,$t=j.rects.popper,zt=typeof pt=="function"?pt(Object.assign({},j.rects,{placement:j.placement})):pt,Ot=typeof zt=="number"?{mainAxis:zt,altAxis:zt}:Object.assign({mainAxis:0,altAxis:0},zt),Pt=j.modifiersData.offset?j.modifiersData.offset[j.placement]:null,Ft={x:0,y:0};if(jt){if(tt){var Nt,mt=xt==="y"?top:left,bt=xt==="y"?bottom:right,St=xt==="y"?"height":"width",vt=jt[xt],At=vt+ht[mt],Tt=vt-ht[bt],Dt=lt?-$t[St]/2:0,Lt=gt===start?wt[St]:$t[St],Et=gt===start?-$t[St]:-wt[St],kt=j.elements.arrow,Ut=lt&&kt?getLayoutRect(kt):{width:0,height:0},Gt=j.modifiersData["arrow#persistent"]?j.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Ht=Gt[mt],tn=Gt[bt],Jt=within(0,wt[St],Ut[St]),Kt=ft?wt[St]/2-Dt-Jt-Ht-Ot.mainAxis:Lt-Jt-Ht-Ot.mainAxis,dn=ft?-wt[St]/2+Dt+Jt+tn+Ot.mainAxis:Et+Jt+tn+Ot.mainAxis,en=j.elements.arrow&&getOffsetParent(j.elements.arrow),Zt=en?xt==="y"?en.clientTop||0:en.clientLeft||0:0,Qt=(Nt=Pt==null?void 0:Pt[xt])!=null?Nt:0,qt=vt+Kt-Qt-Zt,Xt=vt+dn-Qt,sn=within(lt?min$1(At,qt):At,vt,lt?max$1(Tt,Xt):Tt);jt[xt]=sn,Ft[xt]=sn-vt}if(rt){var nn,rn=xt==="x"?top:left,hn=xt==="x"?bottom:right,on=jt[Mt],an=Mt==="y"?"height":"width",gn=on+ht[rn],fn=on-ht[hn],ln=[top,left].indexOf(yt)!==-1,yn=(nn=Pt==null?void 0:Pt[Mt])!=null?nn:0,mn=ln?gn:on-wt[an]-$t[an]-yn+Ot.altAxis,Rt=ln?on+wt[an]+$t[an]-yn-Ot.altAxis:fn,Ct=lt&&ln?withinMaxClamp(mn,on,Rt):within(lt?mn:gn,on,lt?Rt:fn);jt[Mt]=Ct,Ft[Mt]=Ct-on}j.modifiersData[_e]=Ft}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function getNodeScroll(s){return s===getWindow(s)||!isHTMLElement$1(s)?getWindowScroll(s):getHTMLElementScroll(s)}function isElementScaled(s){var j=s.getBoundingClientRect(),$=round$1(j.width)/s.offsetWidth||1,_e=round$1(j.height)/s.offsetHeight||1;return $!==1||_e!==1}function getCompositeRect(s,j,$){$===void 0&&($=!1);var _e=isHTMLElement$1(j),et=isHTMLElement$1(j)&&isElementScaled(j),tt=getDocumentElement(j),nt=getBoundingClientRect(s,et,$),rt={scrollLeft:0,scrollTop:0},ot={x:0,y:0};return(_e||!_e&&!$)&&((getNodeName(j)!=="body"||isScrollParent(tt))&&(rt=getNodeScroll(j)),isHTMLElement$1(j)?(ot=getBoundingClientRect(j,!0),ot.x+=j.clientLeft,ot.y+=j.clientTop):tt&&(ot.x=getWindowScrollBarX(tt))),{x:nt.left+rt.scrollLeft-ot.x,y:nt.top+rt.scrollTop-ot.y,width:nt.width,height:nt.height}}function order(s){var j=new Map,$=new Set,_e=[];s.forEach(function(tt){j.set(tt.name,tt)});function et(tt){$.add(tt.name);var nt=[].concat(tt.requires||[],tt.requiresIfExists||[]);nt.forEach(function(rt){if(!$.has(rt)){var ot=j.get(rt);ot&&et(ot)}}),_e.push(tt)}return s.forEach(function(tt){$.has(tt.name)||et(tt)}),_e}function orderModifiers(s){var j=order(s);return modifierPhases.reduce(function($,_e){return $.concat(j.filter(function(et){return et.phase===_e}))},[])}function debounce(s){var j;return function(){return j||(j=new Promise(function($){Promise.resolve().then(function(){j=void 0,$(s())})})),j}}function mergeByName(s){var j=s.reduce(function($,_e){var et=$[_e.name];return $[_e.name]=et?Object.assign({},et,_e,{options:Object.assign({},et.options,_e.options),data:Object.assign({},et.data,_e.data)}):_e,$},{});return Object.keys(j).map(function($){return j[$]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var s=arguments.length,j=new Array(s),$=0;$composeClasses({root:["root"]},useClassNamesOverride(getPopperUtilityClass)),defaultPopperOptions={},PopperTooltip=reactExports.forwardRef(function(j,$){var _e;const{anchorEl:et,children:tt,direction:nt,disablePortal:rt,modifiers:ot,open:it,placement:st,popperOptions:at,popperRef:ct,slotProps:lt={},slots:dt={},TransitionProps:pt}=j,ht=_objectWithoutPropertiesLoose(j,_excluded$W),yt=reactExports.useRef(null),gt=useForkRef(yt,$),ft=reactExports.useRef(null),xt=useForkRef(ft,ct),Mt=reactExports.useRef(xt);useEnhancedEffect(()=>{Mt.current=xt},[xt]),reactExports.useImperativeHandle(ct,()=>ft.current,[]);const jt=flipPlacement(st,nt),[wt,$t]=reactExports.useState(jt),[zt,Ot]=reactExports.useState(resolveAnchorEl$1(et));reactExports.useEffect(()=>{ft.current&&ft.current.forceUpdate()}),reactExports.useEffect(()=>{et&&Ot(resolveAnchorEl$1(et))},[et]),useEnhancedEffect(()=>{if(!zt||!it)return;const bt=At=>{$t(At.placement)};let St=[{name:"preventOverflow",options:{altBoundary:rt}},{name:"flip",options:{altBoundary:rt}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:At})=>{bt(At)}}];ot!=null&&(St=St.concat(ot)),at&&at.modifiers!=null&&(St=St.concat(at.modifiers));const vt=createPopper(zt,yt.current,_extends$2({placement:jt},at,{modifiers:St}));return Mt.current(vt),()=>{vt.destroy(),Mt.current(null)}},[zt,rt,ot,it,at,jt]);const Pt={placement:wt};pt!==null&&(Pt.TransitionProps=pt);const Ft=useUtilityClasses$O(),Nt=(_e=dt.root)!=null?_e:"div",mt=useSlotProps({elementType:Nt,externalSlotProps:lt.root,externalForwardedProps:ht,additionalProps:{role:"tooltip",ref:gt},ownerState:j,className:Ft.root});return jsxRuntimeExports.jsx(Nt,_extends$2({},mt,{children:typeof tt=="function"?tt(Pt):tt}))}),Popper$1=reactExports.forwardRef(function(j,$){const{anchorEl:_e,children:et,container:tt,direction:nt="ltr",disablePortal:rt=!1,keepMounted:ot=!1,modifiers:it,open:st,placement:at="bottom",popperOptions:ct=defaultPopperOptions,popperRef:lt,style:dt,transition:pt=!1,slotProps:ht={},slots:yt={}}=j,gt=_objectWithoutPropertiesLoose(j,_excluded2$5),[ft,xt]=reactExports.useState(!0),Mt=()=>{xt(!1)},jt=()=>{xt(!0)};if(!ot&&!st&&(!pt||ft))return null;let wt;if(tt)wt=tt;else if(_e){const Ot=resolveAnchorEl$1(_e);wt=Ot&&isHTMLElement(Ot)?ownerDocument(Ot).body:ownerDocument(null).body}const $t=!st&&ot&&(!pt||ft)?"none":void 0,zt=pt?{in:st,onEnter:Mt,onExited:jt}:void 0;return jsxRuntimeExports.jsx(Portal,{disablePortal:rt,container:wt,children:jsxRuntimeExports.jsx(PopperTooltip,_extends$2({anchorEl:_e,direction:nt,disablePortal:rt,modifiers:it,ref:$,open:pt?!ft:st,placement:at,popperOptions:ct,popperRef:lt,slotProps:ht,slots:yt},gt,{style:_extends$2({position:"fixed",top:0,left:0,display:$t},dt),TransitionProps:zt,children:et}))})}),INTENTIONAL_DRAG_COUNT_THRESHOLD=2;function asc(s,j){return s-j}function findClosest(s,j){var $;const{index:_e}=($=s.reduce((et,tt,nt)=>{const rt=Math.abs(j-tt);return et===null||rt({left:`${s}%`}),leap:s=>({width:`${s}%`})},"horizontal-reverse":{offset:s=>({right:`${s}%`}),leap:s=>({width:`${s}%`})},vertical:{offset:s=>({bottom:`${s}%`}),leap:s=>({height:`${s}%`})}},Identity$1=s=>s;let cachedSupportsTouchActionNone;function doesSupportTouchActionNone(){return cachedSupportsTouchActionNone===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?cachedSupportsTouchActionNone=CSS.supports("touch-action","none"):cachedSupportsTouchActionNone=!0),cachedSupportsTouchActionNone}function useSlider(s){const{"aria-labelledby":j,defaultValue:$,disabled:_e=!1,disableSwap:et=!1,isRtl:tt=!1,marks:nt=!1,max:rt=100,min:ot=0,name:it,onChange:st,onChangeCommitted:at,orientation:ct="horizontal",rootRef:lt,scale:dt=Identity$1,step:pt=1,shiftStep:ht=10,tabIndex:yt,value:gt}=s,ft=reactExports.useRef(),[xt,Mt]=reactExports.useState(-1),[jt,wt]=reactExports.useState(-1),[$t,zt]=reactExports.useState(!1),Ot=reactExports.useRef(0),[Pt,Ft]=useControlled({controlled:gt,default:$??ot,name:"Slider"}),Nt=st&&((Ct,It,Bt)=>{const Wt=Ct.nativeEvent||Ct,Vt=new Wt.constructor(Wt.type,Wt);Object.defineProperty(Vt,"target",{writable:!0,value:{value:It,name:it}}),st(Vt,It,Bt)}),mt=Array.isArray(Pt);let bt=mt?Pt.slice().sort(asc):[Pt];bt=bt.map(Ct=>Ct==null?ot:clamp$2(Ct,ot,rt));const St=nt===!0&&pt!==null?[...Array(Math.floor((rt-ot)/pt)+1)].map((Ct,It)=>({value:ot+pt*It})):nt||[],vt=St.map(Ct=>Ct.value),{isFocusVisibleRef:At,onBlur:Tt,onFocus:Dt,ref:Lt}=useIsFocusVisible(),[Et,kt]=reactExports.useState(-1),Ut=reactExports.useRef(),Gt=useForkRef(Lt,Ut),Ht=useForkRef(lt,Gt),tn=Ct=>It=>{var Bt;const Wt=Number(It.currentTarget.getAttribute("data-index"));Dt(It),At.current===!0&&kt(Wt),wt(Wt),Ct==null||(Bt=Ct.onFocus)==null||Bt.call(Ct,It)},Jt=Ct=>It=>{var Bt;Tt(It),At.current===!1&&kt(-1),wt(-1),Ct==null||(Bt=Ct.onBlur)==null||Bt.call(Ct,It)},Kt=(Ct,It)=>{const Bt=Number(Ct.currentTarget.getAttribute("data-index")),Wt=bt[Bt],Vt=vt.indexOf(Wt);let Yt=It;if(St&&pt==null){const cn=vt[vt.length-1];Yt>cn?Yt=cn:YtIt=>{var Bt;if(pt!==null){const Wt=Number(It.currentTarget.getAttribute("data-index")),Vt=bt[Wt];let Yt=null;(It.key==="ArrowLeft"||It.key==="ArrowDown")&&It.shiftKey||It.key==="PageDown"?Yt=Math.max(Vt-ht,ot):((It.key==="ArrowRight"||It.key==="ArrowUp")&&It.shiftKey||It.key==="PageUp")&&(Yt=Math.min(Vt+ht,rt)),Yt!==null&&(Kt(It,Yt),It.preventDefault())}Ct==null||(Bt=Ct.onKeyDown)==null||Bt.call(Ct,It)};useEnhancedEffect(()=>{if(_e&&Ut.current.contains(document.activeElement)){var Ct;(Ct=document.activeElement)==null||Ct.blur()}},[_e]),_e&&xt!==-1&&Mt(-1),_e&&Et!==-1&&kt(-1);const en=Ct=>It=>{var Bt;(Bt=Ct.onChange)==null||Bt.call(Ct,It),Kt(It,It.target.valueAsNumber)},Zt=reactExports.useRef();let Qt=ct;tt&&ct==="horizontal"&&(Qt+="-reverse");const qt=({finger:Ct,move:It=!1})=>{const{current:Bt}=Ut,{width:Wt,height:Vt,bottom:Yt,left:cn}=Bt.getBoundingClientRect();let pn;Qt.indexOf("vertical")===0?pn=(Yt-Ct.y)/Vt:pn=(Ct.x-cn)/Wt,Qt.indexOf("-reverse")!==-1&&(pn=1-pn);let un;if(un=percentToValue(pn,ot,rt),pt)un=roundValueToStep(un,pt,ot);else{const xn=findClosest(vt,un);un=vt[xn]}un=clamp$2(un,ot,rt);let En=0;if(mt){It?En=Zt.current:En=findClosest(bt,un),et&&(un=clamp$2(un,bt[En-1]||-1/0,bt[En+1]||1/0));const xn=un;un=setValueIndex({values:bt,newValue:un,index:En}),et&&It||(En=un.indexOf(xn),Zt.current=En)}return{newValue:un,activeIndex:En}},Xt=useEventCallback(Ct=>{const It=trackFinger(Ct,ft);if(!It)return;if(Ot.current+=1,Ct.type==="mousemove"&&Ct.buttons===0){sn(Ct);return}const{newValue:Bt,activeIndex:Wt}=qt({finger:It,move:!0});focusThumb({sliderRef:Ut,activeIndex:Wt,setActive:Mt}),Ft(Bt),!$t&&Ot.current>INTENTIONAL_DRAG_COUNT_THRESHOLD&&zt(!0),Nt&&!areValuesEqual(Bt,Pt)&&Nt(Ct,Bt,Wt)}),sn=useEventCallback(Ct=>{const It=trackFinger(Ct,ft);if(zt(!1),!It)return;const{newValue:Bt}=qt({finger:It,move:!0});Mt(-1),Ct.type==="touchend"&&wt(-1),at&&at(Ct,Bt),ft.current=void 0,rn()}),nn=useEventCallback(Ct=>{if(_e)return;doesSupportTouchActionNone()||Ct.preventDefault();const It=Ct.changedTouches[0];It!=null&&(ft.current=It.identifier);const Bt=trackFinger(Ct,ft);if(Bt!==!1){const{newValue:Vt,activeIndex:Yt}=qt({finger:Bt});focusThumb({sliderRef:Ut,activeIndex:Yt,setActive:Mt}),Ft(Vt),Nt&&!areValuesEqual(Vt,Pt)&&Nt(Ct,Vt,Yt)}Ot.current=0;const Wt=ownerDocument(Ut.current);Wt.addEventListener("touchmove",Xt,{passive:!0}),Wt.addEventListener("touchend",sn,{passive:!0})}),rn=reactExports.useCallback(()=>{const Ct=ownerDocument(Ut.current);Ct.removeEventListener("mousemove",Xt),Ct.removeEventListener("mouseup",sn),Ct.removeEventListener("touchmove",Xt),Ct.removeEventListener("touchend",sn)},[sn,Xt]);reactExports.useEffect(()=>{const{current:Ct}=Ut;return Ct.addEventListener("touchstart",nn,{passive:doesSupportTouchActionNone()}),()=>{Ct.removeEventListener("touchstart",nn),rn()}},[rn,nn]),reactExports.useEffect(()=>{_e&&rn()},[_e,rn]);const hn=Ct=>It=>{var Bt;if((Bt=Ct.onMouseDown)==null||Bt.call(Ct,It),_e||It.defaultPrevented||It.button!==0)return;It.preventDefault();const Wt=trackFinger(It,ft);if(Wt!==!1){const{newValue:Yt,activeIndex:cn}=qt({finger:Wt});focusThumb({sliderRef:Ut,activeIndex:cn,setActive:Mt}),Ft(Yt),Nt&&!areValuesEqual(Yt,Pt)&&Nt(It,Yt,cn)}Ot.current=0;const Vt=ownerDocument(Ut.current);Vt.addEventListener("mousemove",Xt,{passive:!0}),Vt.addEventListener("mouseup",sn)},on=valueToPercent(mt?bt[0]:ot,ot,rt),an=valueToPercent(bt[bt.length-1],ot,rt)-on,gn=(Ct={})=>{const It=extractEventHandlers(Ct),Bt={onMouseDown:hn(It||{})},Wt=_extends$2({},It,Bt);return _extends$2({},Ct,{ref:Ht},Wt)},fn=Ct=>It=>{var Bt;(Bt=Ct.onMouseOver)==null||Bt.call(Ct,It);const Wt=Number(It.currentTarget.getAttribute("data-index"));wt(Wt)},ln=Ct=>It=>{var Bt;(Bt=Ct.onMouseLeave)==null||Bt.call(Ct,It),wt(-1)};return{active:xt,axis:Qt,axisProps,dragging:$t,focusedThumbIndex:Et,getHiddenInputProps:(Ct={})=>{var It;const Bt=extractEventHandlers(Ct),Wt={onChange:en(Bt||{}),onFocus:tn(Bt||{}),onBlur:Jt(Bt||{}),onKeyDown:dn(Bt||{})},Vt=_extends$2({},Bt,Wt);return _extends$2({tabIndex:yt,"aria-labelledby":j,"aria-orientation":ct,"aria-valuemax":dt(rt),"aria-valuemin":dt(ot),name:it,type:"range",min:s.min,max:s.max,step:s.step===null&&s.marks?"any":(It=s.step)!=null?It:void 0,disabled:_e},Ct,Vt,{style:_extends$2({},visuallyHidden,{direction:tt?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:gn,getThumbProps:(Ct={})=>{const It=extractEventHandlers(Ct),Bt={onMouseOver:fn(It||{}),onMouseLeave:ln(It||{})};return _extends$2({},Ct,It,Bt)},marks:St,open:jt,range:mt,rootRef:Ht,trackLeap:an,trackOffset:on,values:bt,getThumbStyle:Ct=>({pointerEvents:xt!==-1&&xt!==Ct?"none":void 0})}}const _excluded$V=["onChange","maxRows","minRows","style","value"];function getStyleValue(s){return parseInt(s,10)||0}const styles$3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function isEmpty$1(s){return s==null||Object.keys(s).length===0||s.outerHeightStyle===0&&!s.overflowing}const TextareaAutosize=reactExports.forwardRef(function(j,$){const{onChange:_e,maxRows:et,minRows:tt=1,style:nt,value:rt}=j,ot=_objectWithoutPropertiesLoose(j,_excluded$V),{current:it}=reactExports.useRef(rt!=null),st=reactExports.useRef(null),at=useForkRef($,st),ct=reactExports.useRef(null),lt=reactExports.useCallback(()=>{const ht=st.current,gt=ownerWindow(ht).getComputedStyle(ht);if(gt.width==="0px")return{outerHeightStyle:0,overflowing:!1};const ft=ct.current;ft.style.width=gt.width,ft.value=ht.value||j.placeholder||"x",ft.value.slice(-1)===` -`&&(ft.value+=" ");const xt=gt.boxSizing,Mt=getStyleValue(gt.paddingBottom)+getStyleValue(gt.paddingTop),jt=getStyleValue(gt.borderBottomWidth)+getStyleValue(gt.borderTopWidth),wt=ft.scrollHeight;ft.value="x";const $t=ft.scrollHeight;let zt=wt;tt&&(zt=Math.max(Number(tt)*$t,zt)),et&&(zt=Math.min(Number(et)*$t,zt)),zt=Math.max(zt,$t);const Ot=zt+(xt==="border-box"?Mt+jt:0),Pt=Math.abs(zt-wt)<=1;return{outerHeightStyle:Ot,overflowing:Pt}},[et,tt,j.placeholder]),dt=reactExports.useCallback(()=>{const ht=lt();if(isEmpty$1(ht))return;const yt=st.current;yt.style.height=`${ht.outerHeightStyle}px`,yt.style.overflow=ht.overflowing?"hidden":""},[lt]);useEnhancedEffect(()=>{const ht=()=>{dt()};let yt;const gt=debounce$1(ht),ft=st.current,xt=ownerWindow(ft);xt.addEventListener("resize",gt);let Mt;return typeof ResizeObserver<"u"&&(Mt=new ResizeObserver(ht),Mt.observe(ft)),()=>{gt.clear(),cancelAnimationFrame(yt),xt.removeEventListener("resize",gt),Mt&&Mt.disconnect()}},[lt,dt]),useEnhancedEffect(()=>{dt()});const pt=ht=>{it||dt(),_e&&_e(ht)};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("textarea",_extends$2({value:rt,onChange:pt,ref:at,rows:tt,style:nt},ot)),jsxRuntimeExports.jsx("textarea",{"aria-hidden":!0,className:j.className,readOnly:!0,ref:ct,tabIndex:-1,style:_extends$2({},styles$3.shadow,nt,{paddingTop:0,paddingBottom:0})})]})});var useThemeWithoutDefault={};Object.defineProperty(useThemeWithoutDefault,"__esModule",{value:!0});var default_1=useThemeWithoutDefault.default=void 0,React=_interopRequireWildcard(reactExports),_styledEngine=require$$1$2;function _getRequireWildcardCache(s){if(typeof WeakMap!="function")return null;var j=new WeakMap,$=new WeakMap;return(_getRequireWildcardCache=function(_e){return _e?$:j})(s)}function _interopRequireWildcard(s,j){if(s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var $=_getRequireWildcardCache(j);if($&&$.has(s))return $.get(s);var _e={__proto__:null},et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var tt in s)if(tt!=="default"&&Object.prototype.hasOwnProperty.call(s,tt)){var nt=et?Object.getOwnPropertyDescriptor(s,tt):null;nt&&(nt.get||nt.set)?Object.defineProperty(_e,tt,nt):_e[tt]=s[tt]}return _e.default=s,$&&$.set(s,_e),_e}function isObjectEmpty(s){return Object.keys(s).length===0}function useTheme(s=null){const j=React.useContext(_styledEngine.ThemeContext);return!j||isObjectEmpty(j)?s:j}default_1=useThemeWithoutDefault.default=useTheme;const _excluded$U=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],PopperRoot=styled(Popper$1,{name:"MuiPopper",slot:"Root",overridesResolver:(s,j)=>j.root})({}),Popper=reactExports.forwardRef(function(j,$){var _e;const et=default_1(),tt=useThemeProps$5({props:j,name:"MuiPopper"}),{anchorEl:nt,component:rt,components:ot,componentsProps:it,container:st,disablePortal:at,keepMounted:ct,modifiers:lt,open:dt,placement:pt,popperOptions:ht,popperRef:yt,transition:gt,slots:ft,slotProps:xt}=tt,Mt=_objectWithoutPropertiesLoose(tt,_excluded$U),jt=(_e=ft==null?void 0:ft.root)!=null?_e:ot==null?void 0:ot.Root,wt=_extends$2({anchorEl:nt,container:st,disablePortal:at,keepMounted:ct,modifiers:lt,open:dt,placement:pt,popperOptions:ht,popperRef:yt,transition:gt},Mt);return jsxRuntimeExports.jsx(PopperRoot,_extends$2({as:rt,direction:et==null?void 0:et.direction,slots:{root:jt},slotProps:xt??it},wt,{ref:$}))}),CancelIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function getChipUtilityClass(s){return generateUtilityClass$1("MuiChip",s)}const chipClasses=generateUtilityClasses$1("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),_excluded$T=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],useUtilityClasses$N=s=>{const{classes:j,disabled:$,size:_e,color:et,iconColor:tt,onDelete:nt,clickable:rt,variant:ot}=s,it={root:["root",ot,$&&"disabled",`size${capitalize$1(_e)}`,`color${capitalize$1(et)}`,rt&&"clickable",rt&&`clickableColor${capitalize$1(et)}`,nt&&"deletable",nt&&`deletableColor${capitalize$1(et)}`,`${ot}${capitalize$1(et)}`],label:["label",`label${capitalize$1(_e)}`],avatar:["avatar",`avatar${capitalize$1(_e)}`,`avatarColor${capitalize$1(et)}`],icon:["icon",`icon${capitalize$1(_e)}`,`iconColor${capitalize$1(tt)}`],deleteIcon:["deleteIcon",`deleteIcon${capitalize$1(_e)}`,`deleteIconColor${capitalize$1(et)}`,`deleteIcon${capitalize$1(ot)}Color${capitalize$1(et)}`]};return composeClasses(it,getChipUtilityClass,j)},ChipRoot=styled("div",{name:"MuiChip",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s,{color:_e,iconColor:et,clickable:tt,onDelete:nt,size:rt,variant:ot}=$;return[{[`& .${chipClasses.avatar}`]:j.avatar},{[`& .${chipClasses.avatar}`]:j[`avatar${capitalize$1(rt)}`]},{[`& .${chipClasses.avatar}`]:j[`avatarColor${capitalize$1(_e)}`]},{[`& .${chipClasses.icon}`]:j.icon},{[`& .${chipClasses.icon}`]:j[`icon${capitalize$1(rt)}`]},{[`& .${chipClasses.icon}`]:j[`iconColor${capitalize$1(et)}`]},{[`& .${chipClasses.deleteIcon}`]:j.deleteIcon},{[`& .${chipClasses.deleteIcon}`]:j[`deleteIcon${capitalize$1(rt)}`]},{[`& .${chipClasses.deleteIcon}`]:j[`deleteIconColor${capitalize$1(_e)}`]},{[`& .${chipClasses.deleteIcon}`]:j[`deleteIcon${capitalize$1(ot)}Color${capitalize$1(_e)}`]},j.root,j[`size${capitalize$1(rt)}`],j[`color${capitalize$1(_e)}`],tt&&j.clickable,tt&&_e!=="default"&&j[`clickableColor${capitalize$1(_e)})`],nt&&j.deletable,nt&&_e!=="default"&&j[`deletableColor${capitalize$1(_e)}`],j[ot],j[`${ot}${capitalize$1(_e)}`]]}})(({theme:s,ownerState:j})=>{const $=s.palette.mode==="light"?s.palette.grey[700]:s.palette.grey[300];return _extends$2({maxWidth:"100%",fontFamily:s.typography.fontFamily,fontSize:s.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(s.vars||s).palette.text.primary,backgroundColor:(s.vars||s).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:s.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${chipClasses.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${chipClasses.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:s.vars?s.vars.palette.Chip.defaultAvatarColor:$,fontSize:s.typography.pxToRem(12)},[`& .${chipClasses.avatarColorPrimary}`]:{color:(s.vars||s).palette.primary.contrastText,backgroundColor:(s.vars||s).palette.primary.dark},[`& .${chipClasses.avatarColorSecondary}`]:{color:(s.vars||s).palette.secondary.contrastText,backgroundColor:(s.vars||s).palette.secondary.dark},[`& .${chipClasses.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:s.typography.pxToRem(10)},[`& .${chipClasses.icon}`]:_extends$2({marginLeft:5,marginRight:-6},j.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},j.iconColor===j.color&&_extends$2({color:s.vars?s.vars.palette.Chip.defaultIconColor:$},j.color!=="default"&&{color:"inherit"})),[`& .${chipClasses.deleteIcon}`]:_extends$2({WebkitTapHighlightColor:"transparent",color:s.vars?`rgba(${s.vars.palette.text.primaryChannel} / 0.26)`:alpha_1(s.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:s.vars?`rgba(${s.vars.palette.text.primaryChannel} / 0.4)`:alpha_1(s.palette.text.primary,.4)}},j.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},j.color!=="default"&&{color:s.vars?`rgba(${s.vars.palette[j.color].contrastTextChannel} / 0.7)`:alpha_1(s.palette[j.color].contrastText,.7),"&:hover, &:active":{color:(s.vars||s).palette[j.color].contrastText}})},j.size==="small"&&{height:24},j.color!=="default"&&{backgroundColor:(s.vars||s).palette[j.color].main,color:(s.vars||s).palette[j.color].contrastText},j.onDelete&&{[`&.${chipClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.action.selectedChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.focusOpacity}))`:alpha_1(s.palette.action.selected,s.palette.action.selectedOpacity+s.palette.action.focusOpacity)}},j.onDelete&&j.color!=="default"&&{[`&.${chipClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette[j.color].dark}})},({theme:s,ownerState:j})=>_extends$2({},j.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:s.vars?`rgba(${s.vars.palette.action.selectedChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha_1(s.palette.action.selected,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.action.selectedChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.focusOpacity}))`:alpha_1(s.palette.action.selected,s.palette.action.selectedOpacity+s.palette.action.focusOpacity)},"&:active":{boxShadow:(s.vars||s).shadows[1]}},j.clickable&&j.color!=="default"&&{[`&:hover, &.${chipClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette[j.color].dark}}),({theme:s,ownerState:j})=>_extends$2({},j.variant==="outlined"&&{backgroundColor:"transparent",border:s.vars?`1px solid ${s.vars.palette.Chip.defaultBorder}`:`1px solid ${s.palette.mode==="light"?s.palette.grey[400]:s.palette.grey[700]}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:(s.vars||s).palette.action.hover},[`&.${chipClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`& .${chipClasses.avatar}`]:{marginLeft:4},[`& .${chipClasses.avatarSmall}`]:{marginLeft:2},[`& .${chipClasses.icon}`]:{marginLeft:4},[`& .${chipClasses.iconSmall}`]:{marginLeft:2},[`& .${chipClasses.deleteIcon}`]:{marginRight:5},[`& .${chipClasses.deleteIconSmall}`]:{marginRight:3}},j.variant==="outlined"&&j.color!=="default"&&{color:(s.vars||s).palette[j.color].main,border:`1px solid ${s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / 0.7)`:alpha_1(s.palette[j.color].main,.7)}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette[j.color].main,s.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.focusOpacity})`:alpha_1(s.palette[j.color].main,s.palette.action.focusOpacity)},[`& .${chipClasses.deleteIcon}`]:{color:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / 0.7)`:alpha_1(s.palette[j.color].main,.7),"&:hover, &:active":{color:(s.vars||s).palette[j.color].main}}})),ChipLabel=styled("span",{name:"MuiChip",slot:"Label",overridesResolver:(s,j)=>{const{ownerState:$}=s,{size:_e}=$;return[j.label,j[`label${capitalize$1(_e)}`]]}})(({ownerState:s})=>_extends$2({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},s.variant==="outlined"&&{paddingLeft:11,paddingRight:11},s.size==="small"&&{paddingLeft:8,paddingRight:8},s.size==="small"&&s.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function isDeleteKeyboardEvent(s){return s.key==="Backspace"||s.key==="Delete"}const Chip=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiChip"}),{avatar:et,className:tt,clickable:nt,color:rt="default",component:ot,deleteIcon:it,disabled:st=!1,icon:at,label:ct,onClick:lt,onDelete:dt,onKeyDown:pt,onKeyUp:ht,size:yt="medium",variant:gt="filled",tabIndex:ft,skipFocusWhenDisabled:xt=!1}=_e,Mt=_objectWithoutPropertiesLoose(_e,_excluded$T),jt=reactExports.useRef(null),wt=useForkRef(jt,$),$t=Tt=>{Tt.stopPropagation(),dt&&dt(Tt)},zt=Tt=>{Tt.currentTarget===Tt.target&&isDeleteKeyboardEvent(Tt)&&Tt.preventDefault(),pt&&pt(Tt)},Ot=Tt=>{Tt.currentTarget===Tt.target&&(dt&&isDeleteKeyboardEvent(Tt)?dt(Tt):Tt.key==="Escape"&&jt.current&&jt.current.blur()),ht&&ht(Tt)},Pt=nt!==!1&<?!0:nt,Ft=Pt||dt?ButtonBase:ot||"div",Nt=_extends$2({},_e,{component:Ft,disabled:st,size:yt,color:rt,iconColor:reactExports.isValidElement(at)&&at.props.color||rt,onDelete:!!dt,clickable:Pt,variant:gt}),mt=useUtilityClasses$N(Nt),bt=Ft===ButtonBase?_extends$2({component:ot||"div",focusVisibleClassName:mt.focusVisible},dt&&{disableRipple:!0}):{};let St=null;dt&&(St=it&&reactExports.isValidElement(it)?reactExports.cloneElement(it,{className:clsx(it.props.className,mt.deleteIcon),onClick:$t}):jsxRuntimeExports.jsx(CancelIcon,{className:clsx(mt.deleteIcon),onClick:$t}));let vt=null;et&&reactExports.isValidElement(et)&&(vt=reactExports.cloneElement(et,{className:clsx(mt.avatar,et.props.className)}));let At=null;return at&&reactExports.isValidElement(at)&&(At=reactExports.cloneElement(at,{className:clsx(mt.icon,at.props.className)})),jsxRuntimeExports.jsxs(ChipRoot,_extends$2({as:Ft,className:clsx(mt.root,tt),disabled:Pt&&st?!0:void 0,onClick:lt,onKeyDown:zt,onKeyUp:Ot,ref:wt,tabIndex:xt&&st?-1:ft,ownerState:Nt},bt,Mt,{children:[vt||At,jsxRuntimeExports.jsx(ChipLabel,{className:clsx(mt.label),ownerState:Nt,children:ct}),St]}))});function formControlState({props:s,states:j,muiFormControl:$}){return j.reduce((_e,et)=>(_e[et]=s[et],$&&typeof s[et]>"u"&&(_e[et]=$[et]),_e),{})}const FormControlContext=reactExports.createContext(void 0);function useFormControl(){return reactExports.useContext(FormControlContext)}function GlobalStyles(s){return jsxRuntimeExports.jsx(GlobalStyles$1,_extends$2({},s,{defaultTheme:defaultTheme$1,themeId:THEME_ID}))}function hasValue(s){return s!=null&&!(Array.isArray(s)&&s.length===0)}function isFilled(s,j=!1){return s&&(hasValue(s.value)&&s.value!==""||j&&hasValue(s.defaultValue)&&s.defaultValue!=="")}function isAdornedStart(s){return s.startAdornment}function getInputBaseUtilityClass(s){return generateUtilityClass$1("MuiInputBase",s)}const inputBaseClasses=generateUtilityClasses$1("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_excluded$S=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],rootOverridesResolver=(s,j)=>{const{ownerState:$}=s;return[j.root,$.formControl&&j.formControl,$.startAdornment&&j.adornedStart,$.endAdornment&&j.adornedEnd,$.error&&j.error,$.size==="small"&&j.sizeSmall,$.multiline&&j.multiline,$.color&&j[`color${capitalize$1($.color)}`],$.fullWidth&&j.fullWidth,$.hiddenLabel&&j.hiddenLabel]},inputOverridesResolver=(s,j)=>{const{ownerState:$}=s;return[j.input,$.size==="small"&&j.inputSizeSmall,$.multiline&&j.inputMultiline,$.type==="search"&&j.inputTypeSearch,$.startAdornment&&j.inputAdornedStart,$.endAdornment&&j.inputAdornedEnd,$.hiddenLabel&&j.inputHiddenLabel]},useUtilityClasses$M=s=>{const{classes:j,color:$,disabled:_e,error:et,endAdornment:tt,focused:nt,formControl:rt,fullWidth:ot,hiddenLabel:it,multiline:st,readOnly:at,size:ct,startAdornment:lt,type:dt}=s,pt={root:["root",`color${capitalize$1($)}`,_e&&"disabled",et&&"error",ot&&"fullWidth",nt&&"focused",rt&&"formControl",ct&&ct!=="medium"&&`size${capitalize$1(ct)}`,st&&"multiline",lt&&"adornedStart",tt&&"adornedEnd",it&&"hiddenLabel",at&&"readOnly"],input:["input",_e&&"disabled",dt==="search"&&"inputTypeSearch",st&&"inputMultiline",ct==="small"&&"inputSizeSmall",it&&"inputHiddenLabel",lt&&"inputAdornedStart",tt&&"inputAdornedEnd",at&&"readOnly"]};return composeClasses(pt,getInputBaseUtilityClass,j)},InputBaseRoot=styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:s,ownerState:j})=>_extends$2({},s.typography.body1,{color:(s.vars||s).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${inputBaseClasses.disabled}`]:{color:(s.vars||s).palette.text.disabled,cursor:"default"}},j.multiline&&_extends$2({padding:"4px 0 5px"},j.size==="small"&&{paddingTop:1}),j.fullWidth&&{width:"100%"})),InputBaseComponent=styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:s,ownerState:j})=>{const $=s.palette.mode==="light",_e=_extends$2({color:"currentColor"},s.vars?{opacity:s.vars.opacity.inputPlaceholder}:{opacity:$?.42:.5},{transition:s.transitions.create("opacity",{duration:s.transitions.duration.shorter})}),et={opacity:"0 !important"},tt=s.vars?{opacity:s.vars.opacity.inputPlaceholder}:{opacity:$?.42:.5};return _extends$2({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":_e,"&::-moz-placeholder":_e,"&:-ms-input-placeholder":_e,"&::-ms-input-placeholder":_e,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${inputBaseClasses.formControl} &`]:{"&::-webkit-input-placeholder":et,"&::-moz-placeholder":et,"&:-ms-input-placeholder":et,"&::-ms-input-placeholder":et,"&:focus::-webkit-input-placeholder":tt,"&:focus::-moz-placeholder":tt,"&:focus:-ms-input-placeholder":tt,"&:focus::-ms-input-placeholder":tt},[`&.${inputBaseClasses.disabled}`]:{opacity:1,WebkitTextFillColor:(s.vars||s).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},j.size==="small"&&{paddingTop:1},j.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},j.type==="search"&&{MozAppearance:"textfield"})}),inputGlobalStyles=jsxRuntimeExports.jsx(GlobalStyles,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),InputBase=reactExports.forwardRef(function(j,$){var _e;const et=useThemeProps$5({props:j,name:"MuiInputBase"}),{"aria-describedby":tt,autoComplete:nt,autoFocus:rt,className:ot,components:it={},componentsProps:st={},defaultValue:at,disabled:ct,disableInjectingGlobalStyles:lt,endAdornment:dt,fullWidth:pt=!1,id:ht,inputComponent:yt="input",inputProps:gt={},inputRef:ft,maxRows:xt,minRows:Mt,multiline:jt=!1,name:wt,onBlur:$t,onChange:zt,onClick:Ot,onFocus:Pt,onKeyDown:Ft,onKeyUp:Nt,placeholder:mt,readOnly:bt,renderSuffix:St,rows:vt,slotProps:At={},slots:Tt={},startAdornment:Dt,type:Lt="text",value:Et}=et,kt=_objectWithoutPropertiesLoose(et,_excluded$S),Ut=gt.value!=null?gt.value:Et,{current:Gt}=reactExports.useRef(Ut!=null),Ht=reactExports.useRef(),tn=reactExports.useCallback(Ct=>{},[]),Jt=useForkRef(Ht,ft,gt.ref,tn),[Kt,dn]=reactExports.useState(!1),en=useFormControl(),Zt=formControlState({props:et,muiFormControl:en,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Zt.focused=en?en.focused:Kt,reactExports.useEffect(()=>{!en&&ct&&Kt&&(dn(!1),$t&&$t())},[en,ct,Kt,$t]);const Qt=en&&en.onFilled,qt=en&&en.onEmpty,Xt=reactExports.useCallback(Ct=>{isFilled(Ct)?Qt&&Qt():qt&&qt()},[Qt,qt]);useEnhancedEffect(()=>{Gt&&Xt({value:Ut})},[Ut,Xt,Gt]);const sn=Ct=>{if(Zt.disabled){Ct.stopPropagation();return}Pt&&Pt(Ct),gt.onFocus&>.onFocus(Ct),en&&en.onFocus?en.onFocus(Ct):dn(!0)},nn=Ct=>{$t&&$t(Ct),gt.onBlur&>.onBlur(Ct),en&&en.onBlur?en.onBlur(Ct):dn(!1)},rn=(Ct,...It)=>{if(!Gt){const Bt=Ct.target||Ht.current;if(Bt==null)throw new Error(formatMuiErrorMessage$1(1));Xt({value:Bt.value})}gt.onChange&>.onChange(Ct,...It),zt&&zt(Ct,...It)};reactExports.useEffect(()=>{Xt(Ht.current)},[]);const hn=Ct=>{Ht.current&&Ct.currentTarget===Ct.target&&Ht.current.focus(),Ot&&Ot(Ct)};let on=yt,an=gt;jt&&on==="input"&&(vt?an=_extends$2({type:void 0,minRows:vt,maxRows:vt},an):an=_extends$2({type:void 0,maxRows:xt,minRows:Mt},an),on=TextareaAutosize);const gn=Ct=>{Xt(Ct.animationName==="mui-auto-fill-cancel"?Ht.current:{value:"x"})};reactExports.useEffect(()=>{en&&en.setAdornedStart(!!Dt)},[en,Dt]);const fn=_extends$2({},et,{color:Zt.color||"primary",disabled:Zt.disabled,endAdornment:dt,error:Zt.error,focused:Zt.focused,formControl:en,fullWidth:pt,hiddenLabel:Zt.hiddenLabel,multiline:jt,size:Zt.size,startAdornment:Dt,type:Lt}),ln=useUtilityClasses$M(fn),yn=Tt.root||it.Root||InputBaseRoot,mn=At.root||st.root||{},Rt=Tt.input||it.Input||InputBaseComponent;return an=_extends$2({},an,(_e=At.input)!=null?_e:st.input),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[!lt&&inputGlobalStyles,jsxRuntimeExports.jsxs(yn,_extends$2({},mn,!isHostComponent(yn)&&{ownerState:_extends$2({},fn,mn.ownerState)},{ref:$,onClick:hn},kt,{className:clsx(ln.root,mn.className,ot,bt&&"MuiInputBase-readOnly"),children:[Dt,jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(Rt,_extends$2({ownerState:fn,"aria-invalid":Zt.error,"aria-describedby":tt,autoComplete:nt,autoFocus:rt,defaultValue:at,disabled:Zt.disabled,id:ht,onAnimationStart:gn,name:wt,placeholder:mt,readOnly:bt,required:Zt.required,rows:vt,value:Ut,onKeyDown:Ft,onKeyUp:Nt,type:Lt},an,!isHostComponent(Rt)&&{as:on,ownerState:_extends$2({},fn,an.ownerState)},{ref:Jt,className:clsx(ln.input,an.className,bt&&"MuiInputBase-readOnly"),onBlur:nn,onChange:rn,onFocus:sn}))}),dt,St?St(_extends$2({},Zt,{startAdornment:Dt})):null]}))]})}),InputBase$1=InputBase;function getInputUtilityClass(s){return generateUtilityClass$1("MuiInput",s)}const inputClasses=_extends$2({},inputBaseClasses,generateUtilityClasses$1("MuiInput",["root","underline","input"]));function getOutlinedInputUtilityClass(s){return generateUtilityClass$1("MuiOutlinedInput",s)}const outlinedInputClasses=_extends$2({},inputBaseClasses,generateUtilityClasses$1("MuiOutlinedInput",["root","notchedOutline","input"]));function getFilledInputUtilityClass(s){return generateUtilityClass$1("MuiFilledInput",s)}const filledInputClasses=_extends$2({},inputBaseClasses,generateUtilityClasses$1("MuiFilledInput",["root","underline","input"])),ArrowDropDownIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),_excluded$R=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],styles$2={entering:{opacity:1},entered:{opacity:1}},Fade=reactExports.forwardRef(function(j,$){const _e=useTheme$1(),et={enter:_e.transitions.duration.enteringScreen,exit:_e.transitions.duration.leavingScreen},{addEndListener:tt,appear:nt=!0,children:rt,easing:ot,in:it,onEnter:st,onEntered:at,onEntering:ct,onExit:lt,onExited:dt,onExiting:pt,style:ht,timeout:yt=et,TransitionComponent:gt=Transition}=j,ft=_objectWithoutPropertiesLoose(j,_excluded$R),xt=reactExports.useRef(null),Mt=useForkRef(xt,rt.ref,$),jt=mt=>bt=>{if(mt){const St=xt.current;bt===void 0?mt(St):mt(St,bt)}},wt=jt(ct),$t=jt((mt,bt)=>{reflow(mt);const St=getTransitionProps({style:ht,timeout:yt,easing:ot},{mode:"enter"});mt.style.webkitTransition=_e.transitions.create("opacity",St),mt.style.transition=_e.transitions.create("opacity",St),st&&st(mt,bt)}),zt=jt(at),Ot=jt(pt),Pt=jt(mt=>{const bt=getTransitionProps({style:ht,timeout:yt,easing:ot},{mode:"exit"});mt.style.webkitTransition=_e.transitions.create("opacity",bt),mt.style.transition=_e.transitions.create("opacity",bt),lt&<(mt)}),Ft=jt(dt),Nt=mt=>{tt&&tt(xt.current,mt)};return jsxRuntimeExports.jsx(gt,_extends$2({appear:nt,in:it,nodeRef:xt,onEnter:$t,onEntered:zt,onEntering:wt,onExit:Pt,onExited:Ft,onExiting:Ot,addEndListener:Nt,timeout:yt},ft,{children:(mt,bt)=>reactExports.cloneElement(rt,_extends$2({style:_extends$2({opacity:0,visibility:mt==="exited"&&!it?"hidden":void 0},styles$2[mt],ht,rt.props.style),ref:Mt},bt))}))});function getBackdropUtilityClass(s){return generateUtilityClass$1("MuiBackdrop",s)}generateUtilityClasses$1("MuiBackdrop",["root","invisible"]);const _excluded$Q=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],useUtilityClasses$L=s=>{const{classes:j,invisible:$}=s;return composeClasses({root:["root",$&&"invisible"]},getBackdropUtilityClass,j)},BackdropRoot=styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.invisible&&j.invisible]}})(({ownerState:s})=>_extends$2({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},s.invisible&&{backgroundColor:"transparent"})),Backdrop=reactExports.forwardRef(function(j,$){var _e,et,tt;const nt=useThemeProps$5({props:j,name:"MuiBackdrop"}),{children:rt,className:ot,component:it="div",components:st={},componentsProps:at={},invisible:ct=!1,open:lt,slotProps:dt={},slots:pt={},TransitionComponent:ht=Fade,transitionDuration:yt}=nt,gt=_objectWithoutPropertiesLoose(nt,_excluded$Q),ft=_extends$2({},nt,{component:it,invisible:ct}),xt=useUtilityClasses$L(ft),Mt=(_e=dt.root)!=null?_e:at.root;return jsxRuntimeExports.jsx(ht,_extends$2({in:lt,timeout:yt},gt,{children:jsxRuntimeExports.jsx(BackdropRoot,_extends$2({"aria-hidden":!0},Mt,{as:(et=(tt=pt.root)!=null?tt:st.Root)!=null?et:it,className:clsx(xt.root,ot,Mt==null?void 0:Mt.className),ownerState:_extends$2({},ft,Mt==null?void 0:Mt.ownerState),classes:xt,ref:$,children:rt}))}))}),boxClasses=generateUtilityClasses$1("MuiBox",["root"]),defaultTheme=createTheme(),Box=createBox({themeId:THEME_ID,defaultTheme,defaultClassName:boxClasses.root,generateClassName:ClassNameGenerator.generate});function getButtonUtilityClass(s){return generateUtilityClass$1("MuiButton",s)}const buttonClasses=generateUtilityClasses$1("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ButtonGroupContext=reactExports.createContext({}),ButtonGroupButtonContext=reactExports.createContext(void 0),_excluded$P=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$K=s=>{const{color:j,disableElevation:$,fullWidth:_e,size:et,variant:tt,classes:nt}=s,rt={root:["root",tt,`${tt}${capitalize$1(j)}`,`size${capitalize$1(et)}`,`${tt}Size${capitalize$1(et)}`,`color${capitalize$1(j)}`,$&&"disableElevation",_e&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${capitalize$1(et)}`],endIcon:["icon","endIcon",`iconSize${capitalize$1(et)}`]},ot=composeClasses(rt,getButtonUtilityClass,nt);return _extends$2({},nt,ot)},commonIconStyles=s=>_extends$2({},s.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},s.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},s.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled(ButtonBase,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiButton",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.variant],j[`${$.variant}${capitalize$1($.color)}`],j[`size${capitalize$1($.size)}`],j[`${$.variant}Size${capitalize$1($.size)}`],$.color==="inherit"&&j.colorInherit,$.disableElevation&&j.disableElevation,$.fullWidth&&j.fullWidth]}})(({theme:s,ownerState:j})=>{var $,_e;const et=s.palette.mode==="light"?s.palette.grey[300]:s.palette.grey[800],tt=s.palette.mode==="light"?s.palette.grey.A100:s.palette.grey[700];return _extends$2({},s.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(s.vars||s).shape.borderRadius,transition:s.transitions.create(["background-color","box-shadow","border-color","color"],{duration:s.transitions.duration.short}),"&:hover":_extends$2({textDecoration:"none",backgroundColor:s.vars?`rgba(${s.vars.palette.text.primaryChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette.text.primary,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},j.variant==="text"&&j.color!=="inherit"&&{backgroundColor:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette[j.color].main,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},j.variant==="outlined"&&j.color!=="inherit"&&{border:`1px solid ${(s.vars||s).palette[j.color].main}`,backgroundColor:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette[j.color].main,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},j.variant==="contained"&&{backgroundColor:s.vars?s.vars.palette.Button.inheritContainedHoverBg:tt,boxShadow:(s.vars||s).shadows[4],"@media (hover: none)":{boxShadow:(s.vars||s).shadows[2],backgroundColor:(s.vars||s).palette.grey[300]}},j.variant==="contained"&&j.color!=="inherit"&&{backgroundColor:(s.vars||s).palette[j.color].dark,"@media (hover: none)":{backgroundColor:(s.vars||s).palette[j.color].main}}),"&:active":_extends$2({},j.variant==="contained"&&{boxShadow:(s.vars||s).shadows[8]}),[`&.${buttonClasses.focusVisible}`]:_extends$2({},j.variant==="contained"&&{boxShadow:(s.vars||s).shadows[6]}),[`&.${buttonClasses.disabled}`]:_extends$2({color:(s.vars||s).palette.action.disabled},j.variant==="outlined"&&{border:`1px solid ${(s.vars||s).palette.action.disabledBackground}`},j.variant==="contained"&&{color:(s.vars||s).palette.action.disabled,boxShadow:(s.vars||s).shadows[0],backgroundColor:(s.vars||s).palette.action.disabledBackground})},j.variant==="text"&&{padding:"6px 8px"},j.variant==="text"&&j.color!=="inherit"&&{color:(s.vars||s).palette[j.color].main},j.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},j.variant==="outlined"&&j.color!=="inherit"&&{color:(s.vars||s).palette[j.color].main,border:s.vars?`1px solid rgba(${s.vars.palette[j.color].mainChannel} / 0.5)`:`1px solid ${alpha_1(s.palette[j.color].main,.5)}`},j.variant==="contained"&&{color:s.vars?s.vars.palette.text.primary:($=(_e=s.palette).getContrastText)==null?void 0:$.call(_e,s.palette.grey[300]),backgroundColor:s.vars?s.vars.palette.Button.inheritContainedBg:et,boxShadow:(s.vars||s).shadows[2]},j.variant==="contained"&&j.color!=="inherit"&&{color:(s.vars||s).palette[j.color].contrastText,backgroundColor:(s.vars||s).palette[j.color].main},j.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},j.size==="small"&&j.variant==="text"&&{padding:"4px 5px",fontSize:s.typography.pxToRem(13)},j.size==="large"&&j.variant==="text"&&{padding:"8px 11px",fontSize:s.typography.pxToRem(15)},j.size==="small"&&j.variant==="outlined"&&{padding:"3px 9px",fontSize:s.typography.pxToRem(13)},j.size==="large"&&j.variant==="outlined"&&{padding:"7px 21px",fontSize:s.typography.pxToRem(15)},j.size==="small"&&j.variant==="contained"&&{padding:"4px 10px",fontSize:s.typography.pxToRem(13)},j.size==="large"&&j.variant==="contained"&&{padding:"8px 22px",fontSize:s.typography.pxToRem(15)},j.fullWidth&&{width:"100%"})},({ownerState:s})=>s.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.startIcon,j[`iconSize${capitalize$1($.size)}`]]}})(({ownerState:s})=>_extends$2({display:"inherit",marginRight:8,marginLeft:-4},s.size==="small"&&{marginLeft:-2},commonIconStyles(s))),ButtonEndIcon=styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.endIcon,j[`iconSize${capitalize$1($.size)}`]]}})(({ownerState:s})=>_extends$2({display:"inherit",marginRight:-4,marginLeft:8},s.size==="small"&&{marginRight:-2},commonIconStyles(s))),Button=reactExports.forwardRef(function(j,$){const _e=reactExports.useContext(ButtonGroupContext),et=reactExports.useContext(ButtonGroupButtonContext),tt=resolveProps(_e,j),nt=useThemeProps$5({props:tt,name:"MuiButton"}),{children:rt,color:ot="primary",component:it="button",className:st,disabled:at=!1,disableElevation:ct=!1,disableFocusRipple:lt=!1,endIcon:dt,focusVisibleClassName:pt,fullWidth:ht=!1,size:yt="medium",startIcon:gt,type:ft,variant:xt="text"}=nt,Mt=_objectWithoutPropertiesLoose(nt,_excluded$P),jt=_extends$2({},nt,{color:ot,component:it,disabled:at,disableElevation:ct,disableFocusRipple:lt,fullWidth:ht,size:yt,type:ft,variant:xt}),wt=useUtilityClasses$K(jt),$t=gt&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:wt.startIcon,ownerState:jt,children:gt}),zt=dt&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:wt.endIcon,ownerState:jt,children:dt}),Ot=et||"";return jsxRuntimeExports.jsxs(ButtonRoot,_extends$2({ownerState:jt,className:clsx(_e.className,wt.root,st,Ot),component:it,disabled:at,focusRipple:!lt,focusVisibleClassName:clsx(wt.focusVisible,pt),ref:$,type:ft},Mt,{classes:wt,children:[$t,rt,zt]}))});function getCardUtilityClass(s){return generateUtilityClass$1("MuiCard",s)}generateUtilityClasses$1("MuiCard",["root"]);const _excluded$O=["className","raised"],useUtilityClasses$J=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getCardUtilityClass,j)},CardRoot=styled(Paper,{name:"MuiCard",slot:"Root",overridesResolver:(s,j)=>j.root})(()=>({overflow:"hidden"})),Card=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiCard"}),{className:et,raised:tt=!1}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$O),rt=_extends$2({},_e,{raised:tt}),ot=useUtilityClasses$J(rt);return jsxRuntimeExports.jsx(CardRoot,_extends$2({className:clsx(ot.root,et),elevation:tt?8:void 0,ref:$,ownerState:rt},nt))});function getCardActionAreaUtilityClass(s){return generateUtilityClass$1("MuiCardActionArea",s)}const cardActionAreaClasses=generateUtilityClasses$1("MuiCardActionArea",["root","focusVisible","focusHighlight"]),_excluded$N=["children","className","focusVisibleClassName"],useUtilityClasses$I=s=>{const{classes:j}=s;return composeClasses({root:["root"],focusHighlight:["focusHighlight"]},getCardActionAreaUtilityClass,j)},CardActionAreaRoot=styled(ButtonBase,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(s,j)=>j.root})(({theme:s})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${cardActionAreaClasses.focusHighlight}`]:{opacity:(s.vars||s).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${cardActionAreaClasses.focusVisible} .${cardActionAreaClasses.focusHighlight}`]:{opacity:(s.vars||s).palette.action.focusOpacity}})),CardActionAreaFocusHighlight=styled("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(s,j)=>j.focusHighlight})(({theme:s})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:s.transitions.create("opacity",{duration:s.transitions.duration.short})})),CardActionArea=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiCardActionArea"}),{children:et,className:tt,focusVisibleClassName:nt}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$N),ot=_e,it=useUtilityClasses$I(ot);return jsxRuntimeExports.jsxs(CardActionAreaRoot,_extends$2({className:clsx(it.root,tt),focusVisibleClassName:clsx(nt,it.focusVisible),ref:$,ownerState:ot},rt,{children:[et,jsxRuntimeExports.jsx(CardActionAreaFocusHighlight,{className:it.focusHighlight,ownerState:ot})]}))});function getSwitchBaseUtilityClass(s){return generateUtilityClass$1("PrivateSwitchBase",s)}generateUtilityClasses$1("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _excluded$M=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],useUtilityClasses$H=s=>{const{classes:j,checked:$,disabled:_e,edge:et}=s,tt={root:["root",$&&"checked",_e&&"disabled",et&&`edge${capitalize$1(et)}`],input:["input"]};return composeClasses(tt,getSwitchBaseUtilityClass,j)},SwitchBaseRoot=styled(ButtonBase)(({ownerState:s})=>_extends$2({padding:9,borderRadius:"50%"},s.edge==="start"&&{marginLeft:s.size==="small"?-3:-12},s.edge==="end"&&{marginRight:s.size==="small"?-3:-12})),SwitchBaseInput=styled("input",{shouldForwardProp:rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),SwitchBase=reactExports.forwardRef(function(j,$){const{autoFocus:_e,checked:et,checkedIcon:tt,className:nt,defaultChecked:rt,disabled:ot,disableFocusRipple:it=!1,edge:st=!1,icon:at,id:ct,inputProps:lt,inputRef:dt,name:pt,onBlur:ht,onChange:yt,onFocus:gt,readOnly:ft,required:xt=!1,tabIndex:Mt,type:jt,value:wt}=j,$t=_objectWithoutPropertiesLoose(j,_excluded$M),[zt,Ot]=useControlled({controlled:et,default:!!rt,name:"SwitchBase",state:"checked"}),Pt=useFormControl(),Ft=Tt=>{gt&>(Tt),Pt&&Pt.onFocus&&Pt.onFocus(Tt)},Nt=Tt=>{ht&&ht(Tt),Pt&&Pt.onBlur&&Pt.onBlur(Tt)},mt=Tt=>{if(Tt.nativeEvent.defaultPrevented)return;const Dt=Tt.target.checked;Ot(Dt),yt&&yt(Tt,Dt)};let bt=ot;Pt&&typeof bt>"u"&&(bt=Pt.disabled);const St=jt==="checkbox"||jt==="radio",vt=_extends$2({},j,{checked:zt,disabled:bt,disableFocusRipple:it,edge:st}),At=useUtilityClasses$H(vt);return jsxRuntimeExports.jsxs(SwitchBaseRoot,_extends$2({component:"span",className:clsx(At.root,nt),centerRipple:!0,focusRipple:!it,disabled:bt,tabIndex:null,role:void 0,onFocus:Ft,onBlur:Nt,ownerState:vt,ref:$},$t,{children:[jsxRuntimeExports.jsx(SwitchBaseInput,_extends$2({autoFocus:_e,checked:et,defaultChecked:rt,className:At.input,disabled:bt,id:St?ct:void 0,name:pt,onChange:mt,readOnly:ft,ref:dt,required:xt,ownerState:vt,tabIndex:Mt,type:jt},jt==="checkbox"&&wt===void 0?{}:{value:wt},lt)),zt?tt:at]}))}),CheckBoxOutlineBlankIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),CheckBoxIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),IndeterminateCheckBoxIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function getCheckboxUtilityClass(s){return generateUtilityClass$1("MuiCheckbox",s)}const checkboxClasses=generateUtilityClasses$1("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_excluded$L=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],useUtilityClasses$G=s=>{const{classes:j,indeterminate:$,color:_e,size:et}=s,tt={root:["root",$&&"indeterminate",`color${capitalize$1(_e)}`,`size${capitalize$1(et)}`]},nt=composeClasses(tt,getCheckboxUtilityClass,j);return _extends$2({},j,nt)},CheckboxRoot=styled(SwitchBase,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.indeterminate&&j.indeterminate,j[`size${capitalize$1($.size)}`],$.color!=="default"&&j[`color${capitalize$1($.color)}`]]}})(({theme:s,ownerState:j})=>_extends$2({color:(s.vars||s).palette.text.secondary},!j.disableRipple&&{"&:hover":{backgroundColor:s.vars?`rgba(${j.color==="default"?s.vars.palette.action.activeChannel:s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(j.color==="default"?s.palette.action.active:s.palette[j.color].main,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},j.color!=="default"&&{[`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]:{color:(s.vars||s).palette[j.color].main},[`&.${checkboxClasses.disabled}`]:{color:(s.vars||s).palette.action.disabled}})),defaultCheckedIcon=jsxRuntimeExports.jsx(CheckBoxIcon,{}),defaultIcon=jsxRuntimeExports.jsx(CheckBoxOutlineBlankIcon,{}),defaultIndeterminateIcon=jsxRuntimeExports.jsx(IndeterminateCheckBoxIcon,{}),Checkbox=reactExports.forwardRef(function(j,$){var _e,et;const tt=useThemeProps$5({props:j,name:"MuiCheckbox"}),{checkedIcon:nt=defaultCheckedIcon,color:rt="primary",icon:ot=defaultIcon,indeterminate:it=!1,indeterminateIcon:st=defaultIndeterminateIcon,inputProps:at,size:ct="medium",className:lt}=tt,dt=_objectWithoutPropertiesLoose(tt,_excluded$L),pt=it?st:ot,ht=it?st:nt,yt=_extends$2({},tt,{color:rt,indeterminate:it,size:ct}),gt=useUtilityClasses$G(yt);return jsxRuntimeExports.jsx(CheckboxRoot,_extends$2({type:"checkbox",inputProps:_extends$2({"data-indeterminate":it},at),icon:reactExports.cloneElement(pt,{fontSize:(_e=pt.props.fontSize)!=null?_e:ct}),checkedIcon:reactExports.cloneElement(ht,{fontSize:(et=ht.props.fontSize)!=null?et:ct}),ownerState:yt,ref:$,className:clsx(gt.root,lt)},dt,{classes:gt}))});function getCircularProgressUtilityClass(s){return generateUtilityClass$1("MuiCircularProgress",s)}generateUtilityClasses$1("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _excluded$K=["className","color","disableShrink","size","style","thickness","value","variant"];let _$1=s=>s,_t$1,_t2$1,_t3$1,_t4$1;const SIZE=44,circularRotateKeyframe=keyframes(_t$1||(_t$1=_$1` +`),touchRippleClasses.rippleVisible,enterKeyframe,DURATION,({theme:s})=>s.transitions.easing.easeInOut,touchRippleClasses.ripplePulsate,({theme:s})=>s.transitions.duration.shorter,touchRippleClasses.child,touchRippleClasses.childLeaving,exitKeyframe,DURATION,({theme:s})=>s.transitions.easing.easeInOut,touchRippleClasses.childPulsate,pulsateKeyframe,({theme:s})=>s.transitions.easing.easeInOut),TouchRipple=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTouchRipple"}),{center:et=!1,classes:tt={},className:nt}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$11),[ot,it]=reactExports.useState([]),st=reactExports.useRef(0),at=reactExports.useRef(null);reactExports.useEffect(()=>{at.current&&(at.current(),at.current=null)},[ot]);const ct=reactExports.useRef(!1),lt=useTimeout(),dt=reactExports.useRef(null),ft=reactExports.useRef(null),gt=reactExports.useCallback(xt=>{const{pulsate:Ct,rippleX:Dt,rippleY:wt,rippleSize:kt,cb:zt}=xt;it(Ot=>[...Ot,jsxRuntimeExports.jsx(TouchRippleRipple,{classes:{ripple:clsx(tt.ripple,touchRippleClasses.ripple),rippleVisible:clsx(tt.rippleVisible,touchRippleClasses.rippleVisible),ripplePulsate:clsx(tt.ripplePulsate,touchRippleClasses.ripplePulsate),child:clsx(tt.child,touchRippleClasses.child),childLeaving:clsx(tt.childLeaving,touchRippleClasses.childLeaving),childPulsate:clsx(tt.childPulsate,touchRippleClasses.childPulsate)},timeout:DURATION,pulsate:Ct,rippleX:Dt,rippleY:wt,rippleSize:kt},st.current)]),st.current+=1,at.current=zt},[tt]),yt=reactExports.useCallback((xt={},Ct={},Dt=()=>{})=>{const{pulsate:wt=!1,center:kt=et||Ct.pulsate,fakeElement:zt=!1}=Ct;if((xt==null?void 0:xt.type)==="mousedown"&&ct.current){ct.current=!1;return}(xt==null?void 0:xt.type)==="touchstart"&&(ct.current=!0);const Ot=zt?null:ft.current,Ft=Ot?Ot.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Pt,Nt,ht;if(kt||xt===void 0||xt.clientX===0&&xt.clientY===0||!xt.clientX&&!xt.touches)Pt=Math.round(Ft.width/2),Nt=Math.round(Ft.height/2);else{const{clientX:bt,clientY:St}=xt.touches&&xt.touches.length>0?xt.touches[0]:xt;Pt=Math.round(bt-Ft.left),Nt=Math.round(St-Ft.top)}if(kt)ht=Math.sqrt((2*Ft.width**2+Ft.height**2)/3),ht%2===0&&(ht+=1);else{const bt=Math.max(Math.abs((Ot?Ot.clientWidth:0)-Pt),Pt)*2+2,St=Math.max(Math.abs((Ot?Ot.clientHeight:0)-Nt),Nt)*2+2;ht=Math.sqrt(bt**2+St**2)}xt!=null&&xt.touches?dt.current===null&&(dt.current=()=>{gt({pulsate:wt,rippleX:Pt,rippleY:Nt,rippleSize:ht,cb:Dt})},lt.start(DELAY_RIPPLE,()=>{dt.current&&(dt.current(),dt.current=null)})):gt({pulsate:wt,rippleX:Pt,rippleY:Nt,rippleSize:ht,cb:Dt})},[et,gt,lt]),mt=reactExports.useCallback(()=>{yt({},{pulsate:!0})},[yt]),pt=reactExports.useCallback((xt,Ct)=>{if(lt.clear(),(xt==null?void 0:xt.type)==="touchend"&&dt.current){dt.current(),dt.current=null,lt.start(0,()=>{pt(xt,Ct)});return}dt.current=null,it(Dt=>Dt.length>0?Dt.slice(1):Dt),at.current=Ct},[lt]);return reactExports.useImperativeHandle($,()=>({pulsate:mt,start:yt,stop:pt}),[mt,yt,pt]),jsxRuntimeExports.jsx(TouchRippleRoot,_extends$2({className:clsx(touchRippleClasses.root,tt.root,nt),ref:ft},rt,{children:jsxRuntimeExports.jsx(TransitionGroup,{component:null,exit:!0,children:ot})}))});function getButtonBaseUtilityClass(s){return generateUtilityClass$1("MuiButtonBase",s)}const buttonBaseClasses=generateUtilityClasses$1("MuiButtonBase",["root","disabled","focusVisible"]),_excluded$10=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],useUtilityClasses$U=s=>{const{disabled:j,focusVisible:$,focusVisibleClassName:_e,classes:et}=s,nt=composeClasses({root:["root",j&&"disabled",$&&"focusVisible"]},getButtonBaseUtilityClass,et);return $&&_e&&(nt.root+=` ${_e}`),nt},ButtonBaseRoot=styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(s,j)=>j.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiButtonBase"}),{action:et,centerRipple:tt=!1,children:nt,className:rt,component:ot="button",disabled:it=!1,disableRipple:st=!1,disableTouchRipple:at=!1,focusRipple:ct=!1,LinkComponent:lt="a",onBlur:dt,onClick:ft,onContextMenu:gt,onDragLeave:yt,onFocus:mt,onFocusVisible:pt,onKeyDown:xt,onKeyUp:Ct,onMouseDown:Dt,onMouseLeave:wt,onMouseUp:kt,onTouchEnd:zt,onTouchMove:Ot,onTouchStart:Ft,tabIndex:Pt=0,TouchRippleProps:Nt,touchRippleRef:ht,type:bt}=_e,St=_objectWithoutPropertiesLoose(_e,_excluded$10),vt=reactExports.useRef(null),At=reactExports.useRef(null),Tt=useForkRef(At,ht),{isFocusVisibleRef:jt,onFocus:Lt,onBlur:Mt,ref:$t}=useIsFocusVisible(),[Ut,Gt]=reactExports.useState(!1);it&&Ut&&Gt(!1),reactExports.useImperativeHandle(et,()=>({focusVisible:()=>{Gt(!0),vt.current.focus()}}),[]);const[Ht,tn]=reactExports.useState(!1);reactExports.useEffect(()=>{tn(!0)},[]);const Jt=Ht&&!st&&!it;reactExports.useEffect(()=>{Ut&&ct&&!st&&Ht&&At.current.pulsate()},[st,ct,Ut,Ht]);function Kt(It,Bt,Wt=at){return useEventCallback(Vt=>(Bt&&Bt(Vt),!Wt&&At.current&&At.current[It](Vt),!0))}const dn=Kt("start",Dt),en=Kt("stop",gt),qt=Kt("stop",yt),Qt=Kt("stop",kt),Zt=Kt("stop",It=>{Ut&&It.preventDefault(),wt&&wt(It)}),Xt=Kt("start",Ft),sn=Kt("stop",zt),nn=Kt("stop",Ot),rn=Kt("stop",It=>{Mt(It),jt.current===!1&&Gt(!1),dt&&dt(It)},!1),gn=useEventCallback(It=>{vt.current||(vt.current=It.currentTarget),Lt(It),jt.current===!0&&(Gt(!0),pt&&pt(It)),mt&&mt(It)}),on=()=>{const It=vt.current;return ot&&ot!=="button"&&!(It.tagName==="A"&&It.href)},an=reactExports.useRef(!1),hn=useEventCallback(It=>{ct&&!an.current&&Ut&&At.current&&It.key===" "&&(an.current=!0,At.current.stop(It,()=>{At.current.start(It)})),It.target===It.currentTarget&&on()&&It.key===" "&&It.preventDefault(),xt&&xt(It),It.target===It.currentTarget&&on()&&It.key==="Enter"&&!it&&(It.preventDefault(),ft&&ft(It))}),fn=useEventCallback(It=>{ct&&It.key===" "&&At.current&&Ut&&!It.defaultPrevented&&(an.current=!1,At.current.stop(It,()=>{At.current.pulsate(It)})),Ct&&Ct(It),ft&&It.target===It.currentTarget&&on()&&It.key===" "&&!It.defaultPrevented&&ft(It)});let ln=ot;ln==="button"&&(St.href||St.to)&&(ln=lt);const yn={};ln==="button"?(yn.type=bt===void 0?"button":bt,yn.disabled=it):(!St.href&&!St.to&&(yn.role="button"),it&&(yn["aria-disabled"]=it));const mn=useForkRef($,$t,vt),Rt=_extends$2({},_e,{centerRipple:tt,component:ot,disabled:it,disableRipple:st,disableTouchRipple:at,focusRipple:ct,tabIndex:Pt,focusVisible:Ut}),Et=useUtilityClasses$U(Rt);return jsxRuntimeExports.jsxs(ButtonBaseRoot,_extends$2({as:ln,className:clsx(Et.root,rt),ownerState:Rt,onBlur:rn,onClick:ft,onContextMenu:en,onFocus:gn,onKeyDown:hn,onKeyUp:fn,onMouseDown:dn,onMouseLeave:Zt,onMouseUp:Qt,onDragLeave:qt,onTouchEnd:sn,onTouchMove:nn,onTouchStart:Xt,ref:mn,tabIndex:it?-1:Pt,type:bt},yn,St,{children:[nt,Jt?jsxRuntimeExports.jsx(TouchRipple,_extends$2({ref:Tt,center:tt},Nt)):null]}))});function getAccordionSummaryUtilityClass(s){return generateUtilityClass$1("MuiAccordionSummary",s)}const accordionSummaryClasses=generateUtilityClasses$1("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),_excluded$$=["children","className","expandIcon","focusVisibleClassName","onClick"],useThemeProps$2=createUseThemeProps(),useUtilityClasses$T=s=>{const{classes:j,expanded:$,disabled:_e,disableGutters:et}=s;return composeClasses({root:["root",$&&"expanded",_e&&"disabled",!et&&"gutters"],focusVisible:["focusVisible"],content:["content",$&&"expanded",!et&&"contentGutters"],expandIconWrapper:["expandIconWrapper",$&&"expanded"]},getAccordionSummaryUtilityClass,j)},AccordionSummaryRoot=styled(ButtonBase,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(s,j)=>j.root})(({theme:s})=>{const j={duration:s.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:s.spacing(0,2),transition:s.transitions.create(["min-height","background-color"],j),[`&.${accordionSummaryClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`&.${accordionSummaryClasses.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity},[`&:hover:not(.${accordionSummaryClasses.disabled})`]:{cursor:"pointer"},variants:[{props:$=>!$.disableGutters,style:{[`&.${accordionSummaryClasses.expanded}`]:{minHeight:64}}}]}}),AccordionSummaryContent=styled("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(s,j)=>j.content})(({theme:s})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:j=>!j.disableGutters,style:{transition:s.transitions.create(["margin"],{duration:s.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{margin:"20px 0"}}}]})),AccordionSummaryExpandIconWrapper=styled("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(s,j)=>j.expandIconWrapper})(({theme:s})=>({display:"flex",color:(s.vars||s).palette.action.active,transform:"rotate(0deg)",transition:s.transitions.create("transform",{duration:s.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{transform:"rotate(180deg)"}})),AccordionSummary=reactExports.forwardRef(function(j,$){const _e=useThemeProps$2({props:j,name:"MuiAccordionSummary"}),{children:et,className:tt,expandIcon:nt,focusVisibleClassName:rt,onClick:ot}=_e,it=_objectWithoutPropertiesLoose(_e,_excluded$$),{disabled:st=!1,disableGutters:at,expanded:ct,toggle:lt}=reactExports.useContext(AccordionContext),dt=yt=>{lt&<(yt),ot&&ot(yt)},ft=_extends$2({},_e,{expanded:ct,disabled:st,disableGutters:at}),gt=useUtilityClasses$T(ft);return jsxRuntimeExports.jsxs(AccordionSummaryRoot,_extends$2({focusRipple:!1,disableRipple:!0,disabled:st,component:"div","aria-expanded":ct,className:clsx(gt.root,tt),focusVisibleClassName:clsx(gt.focusVisible,rt),onClick:dt,ref:$,ownerState:ft},it,{children:[jsxRuntimeExports.jsx(AccordionSummaryContent,{className:gt.content,ownerState:ft,children:et}),nt&&jsxRuntimeExports.jsx(AccordionSummaryExpandIconWrapper,{className:gt.expandIconWrapper,ownerState:ft,children:nt})]}))});function getAlertUtilityClass(s){return generateUtilityClass$1("MuiAlert",s)}const alertClasses=generateUtilityClasses$1("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function getIconButtonUtilityClass(s){return generateUtilityClass$1("MuiIconButton",s)}const iconButtonClasses=generateUtilityClasses$1("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_excluded$_=["edge","children","className","color","disabled","disableFocusRipple","size"],useUtilityClasses$S=s=>{const{classes:j,disabled:$,color:_e,edge:et,size:tt}=s,nt={root:["root",$&&"disabled",_e!=="default"&&`color${capitalize$1(_e)}`,et&&`edge${capitalize$1(et)}`,`size${capitalize$1(tt)}`]};return composeClasses(nt,getIconButtonUtilityClass,j)},IconButtonRoot=styled(ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.color!=="default"&&j[`color${capitalize$1($.color)}`],$.edge&&j[`edge${capitalize$1($.edge)}`],j[`size${capitalize$1($.size)}`]]}})(({theme:s,ownerState:j})=>_extends$2({textAlign:"center",flex:"0 0 auto",fontSize:s.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(s.vars||s).palette.action.active,transition:s.transitions.create("background-color",{duration:s.transitions.duration.shortest})},!j.disableRipple&&{"&:hover":{backgroundColor:s.vars?`rgba(${s.vars.palette.action.activeChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette.action.active,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},j.edge==="start"&&{marginLeft:j.size==="small"?-3:-12},j.edge==="end"&&{marginRight:j.size==="small"?-3:-12}),({theme:s,ownerState:j})=>{var $;const _e=($=(s.vars||s).palette)==null?void 0:$[j.color];return _extends$2({},j.color==="inherit"&&{color:"inherit"},j.color!=="inherit"&&j.color!=="default"&&_extends$2({color:_e==null?void 0:_e.main},!j.disableRipple&&{"&:hover":_extends$2({},_e&&{backgroundColor:s.vars?`rgba(${_e.mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(_e.main,s.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),j.size==="small"&&{padding:5,fontSize:s.typography.pxToRem(18)},j.size==="large"&&{padding:12,fontSize:s.typography.pxToRem(28)},{[`&.${iconButtonClasses.disabled}`]:{backgroundColor:"transparent",color:(s.vars||s).palette.action.disabled}})}),IconButton=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiIconButton"}),{edge:et=!1,children:tt,className:nt,color:rt="default",disabled:ot=!1,disableFocusRipple:it=!1,size:st="medium"}=_e,at=_objectWithoutPropertiesLoose(_e,_excluded$_),ct=_extends$2({},_e,{edge:et,color:rt,disabled:ot,disableFocusRipple:it,size:st}),lt=useUtilityClasses$S(ct);return jsxRuntimeExports.jsx(IconButtonRoot,_extends$2({className:clsx(lt.root,nt),centerRipple:!0,focusRipple:!it,disabled:ot,ref:$},at,{ownerState:ct,children:tt}))}),SuccessOutlinedIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ReportProblemOutlinedIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),ErrorOutlineIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),InfoOutlinedIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ClearIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),_excluded$Z=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],useThemeProps$1=createUseThemeProps(),useUtilityClasses$R=s=>{const{variant:j,color:$,severity:_e,classes:et}=s,tt={root:["root",`color${capitalize$1($||_e)}`,`${j}${capitalize$1($||_e)}`,`${j}`],icon:["icon"],message:["message"],action:["action"]};return composeClasses(tt,getAlertUtilityClass,et)},AlertRoot=styled(Paper,{name:"MuiAlert",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.variant],j[`${$.variant}${capitalize$1($.color||$.severity)}`]]}})(({theme:s})=>{const j=s.palette.mode==="light"?darken_1:lighten_1,$=s.palette.mode==="light"?lighten_1:darken_1;return _extends$2({},s.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(s.palette).filter(([,_e])=>_e.main&&_e.light).map(([_e])=>({props:{colorSeverity:_e,variant:"standard"},style:{color:s.vars?s.vars.palette.Alert[`${_e}Color`]:j(s.palette[_e].light,.6),backgroundColor:s.vars?s.vars.palette.Alert[`${_e}StandardBg`]:$(s.palette[_e].light,.9),[`& .${alertClasses.icon}`]:s.vars?{color:s.vars.palette.Alert[`${_e}IconColor`]}:{color:s.palette[_e].main}}})),...Object.entries(s.palette).filter(([,_e])=>_e.main&&_e.light).map(([_e])=>({props:{colorSeverity:_e,variant:"outlined"},style:{color:s.vars?s.vars.palette.Alert[`${_e}Color`]:j(s.palette[_e].light,.6),border:`1px solid ${(s.vars||s).palette[_e].light}`,[`& .${alertClasses.icon}`]:s.vars?{color:s.vars.palette.Alert[`${_e}IconColor`]}:{color:s.palette[_e].main}}})),...Object.entries(s.palette).filter(([,_e])=>_e.main&&_e.dark).map(([_e])=>({props:{colorSeverity:_e,variant:"filled"},style:_extends$2({fontWeight:s.typography.fontWeightMedium},s.vars?{color:s.vars.palette.Alert[`${_e}FilledColor`],backgroundColor:s.vars.palette.Alert[`${_e}FilledBg`]}:{backgroundColor:s.palette.mode==="dark"?s.palette[_e].dark:s.palette[_e].main,color:s.palette.getContrastText(s.palette[_e].main)})}))]})}),AlertIcon=styled("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(s,j)=>j.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),AlertMessage=styled("div",{name:"MuiAlert",slot:"Message",overridesResolver:(s,j)=>j.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),AlertAction=styled("div",{name:"MuiAlert",slot:"Action",overridesResolver:(s,j)=>j.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),defaultIconMapping={success:jsxRuntimeExports.jsx(SuccessOutlinedIcon,{fontSize:"inherit"}),warning:jsxRuntimeExports.jsx(ReportProblemOutlinedIcon,{fontSize:"inherit"}),error:jsxRuntimeExports.jsx(ErrorOutlineIcon,{fontSize:"inherit"}),info:jsxRuntimeExports.jsx(InfoOutlinedIcon,{fontSize:"inherit"})},Alert=reactExports.forwardRef(function(j,$){const _e=useThemeProps$1({props:j,name:"MuiAlert"}),{action:et,children:tt,className:nt,closeText:rt="Close",color:ot,components:it={},componentsProps:st={},icon:at,iconMapping:ct=defaultIconMapping,onClose:lt,role:dt="alert",severity:ft="success",slotProps:gt={},slots:yt={},variant:mt="standard"}=_e,pt=_objectWithoutPropertiesLoose(_e,_excluded$Z),xt=_extends$2({},_e,{color:ot,severity:ft,variant:mt,colorSeverity:ot||ft}),Ct=useUtilityClasses$R(xt),Dt={slots:_extends$2({closeButton:it.CloseButton,closeIcon:it.CloseIcon},yt),slotProps:_extends$2({},st,gt)},[wt,kt]=useSlot("closeButton",{elementType:IconButton,externalForwardedProps:Dt,ownerState:xt}),[zt,Ot]=useSlot("closeIcon",{elementType:ClearIcon,externalForwardedProps:Dt,ownerState:xt});return jsxRuntimeExports.jsxs(AlertRoot,_extends$2({role:dt,elevation:0,ownerState:xt,className:clsx(Ct.root,nt),ref:$},pt,{children:[at!==!1?jsxRuntimeExports.jsx(AlertIcon,{ownerState:xt,className:Ct.icon,children:at||ct[ft]||defaultIconMapping[ft]}):null,jsxRuntimeExports.jsx(AlertMessage,{ownerState:xt,className:Ct.message,children:tt}),et!=null?jsxRuntimeExports.jsx(AlertAction,{ownerState:xt,className:Ct.action,children:et}):null,et==null&<?jsxRuntimeExports.jsx(AlertAction,{ownerState:xt,className:Ct.action,children:jsxRuntimeExports.jsx(wt,_extends$2({size:"small","aria-label":rt,title:rt,color:"inherit",onClick:lt},kt,{children:jsxRuntimeExports.jsx(zt,_extends$2({fontSize:"small"},Ot))}))}):null]}))});function getTypographyUtilityClass(s){return generateUtilityClass$1("MuiTypography",s)}generateUtilityClasses$1("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _excluded$Y=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],useUtilityClasses$Q=s=>{const{align:j,gutterBottom:$,noWrap:_e,paragraph:et,variant:tt,classes:nt}=s,rt={root:["root",tt,s.align!=="inherit"&&`align${capitalize$1(j)}`,$&&"gutterBottom",_e&&"noWrap",et&&"paragraph"]};return composeClasses(rt,getTypographyUtilityClass,nt)},TypographyRoot=styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.variant&&j[$.variant],$.align!=="inherit"&&j[`align${capitalize$1($.align)}`],$.noWrap&&j.noWrap,$.gutterBottom&&j.gutterBottom,$.paragraph&&j.paragraph]}})(({theme:s,ownerState:j})=>_extends$2({margin:0},j.variant==="inherit"&&{font:"inherit"},j.variant!=="inherit"&&s.typography[j.variant],j.align!=="inherit"&&{textAlign:j.align},j.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},j.gutterBottom&&{marginBottom:"0.35em"},j.paragraph&&{marginBottom:16})),defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},colorTransformations$1={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},transformDeprecatedColors$1=s=>colorTransformations$1[s]||s,Typography=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTypography"}),et=transformDeprecatedColors$1(_e.color),tt=extendSxProp(_extends$2({},_e,{color:et})),{align:nt="inherit",className:rt,component:ot,gutterBottom:it=!1,noWrap:st=!1,paragraph:at=!1,variant:ct="body1",variantMapping:lt=defaultVariantMapping}=tt,dt=_objectWithoutPropertiesLoose(tt,_excluded$Y),ft=_extends$2({},tt,{align:nt,color:et,className:rt,component:ot,gutterBottom:it,noWrap:st,paragraph:at,variant:ct,variantMapping:lt}),gt=ot||(at?"p":lt[ct]||defaultVariantMapping[ct])||"span",yt=useUtilityClasses$Q(ft);return jsxRuntimeExports.jsx(TypographyRoot,_extends$2({as:gt,ref:$,ownerState:ft,className:clsx(yt.root,rt)},dt))});function getAppBarUtilityClass(s){return generateUtilityClass$1("MuiAppBar",s)}generateUtilityClasses$1("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _excluded$X=["className","color","enableColorOnDark","position"],useUtilityClasses$P=s=>{const{color:j,position:$,classes:_e}=s,et={root:["root",`color${capitalize$1(j)}`,`position${capitalize$1($)}`]};return composeClasses(et,getAppBarUtilityClass,_e)},joinVars=(s,j)=>s?`${s==null?void 0:s.replace(")","")}, ${j})`:j,AppBarRoot=styled(Paper,{name:"MuiAppBar",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[`position${capitalize$1($.position)}`],j[`color${capitalize$1($.color)}`]]}})(({theme:s,ownerState:j})=>{const $=s.palette.mode==="light"?s.palette.grey[100]:s.palette.grey[900];return _extends$2({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},j.position==="fixed"&&{position:"fixed",zIndex:(s.vars||s).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},j.position==="absolute"&&{position:"absolute",zIndex:(s.vars||s).zIndex.appBar,top:0,left:"auto",right:0},j.position==="sticky"&&{position:"sticky",zIndex:(s.vars||s).zIndex.appBar,top:0,left:"auto",right:0},j.position==="static"&&{position:"static"},j.position==="relative"&&{position:"relative"},!s.vars&&_extends$2({},j.color==="default"&&{backgroundColor:$,color:s.palette.getContrastText($)},j.color&&j.color!=="default"&&j.color!=="inherit"&&j.color!=="transparent"&&{backgroundColor:s.palette[j.color].main,color:s.palette[j.color].contrastText},j.color==="inherit"&&{color:"inherit"},s.palette.mode==="dark"&&!j.enableColorOnDark&&{backgroundColor:null,color:null},j.color==="transparent"&&_extends$2({backgroundColor:"transparent",color:"inherit"},s.palette.mode==="dark"&&{backgroundImage:"none"})),s.vars&&_extends$2({},j.color==="default"&&{"--AppBar-background":j.enableColorOnDark?s.vars.palette.AppBar.defaultBg:joinVars(s.vars.palette.AppBar.darkBg,s.vars.palette.AppBar.defaultBg),"--AppBar-color":j.enableColorOnDark?s.vars.palette.text.primary:joinVars(s.vars.palette.AppBar.darkColor,s.vars.palette.text.primary)},j.color&&!j.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":j.enableColorOnDark?s.vars.palette[j.color].main:joinVars(s.vars.palette.AppBar.darkBg,s.vars.palette[j.color].main),"--AppBar-color":j.enableColorOnDark?s.vars.palette[j.color].contrastText:joinVars(s.vars.palette.AppBar.darkColor,s.vars.palette[j.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:j.color==="inherit"?"inherit":"var(--AppBar-color)"},j.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),AppBar=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiAppBar"}),{className:et,color:tt="primary",enableColorOnDark:nt=!1,position:rt="fixed"}=_e,ot=_objectWithoutPropertiesLoose(_e,_excluded$X),it=_extends$2({},_e,{color:tt,position:rt,enableColorOnDark:nt}),st=useUtilityClasses$P(it);return jsxRuntimeExports.jsx(AppBarRoot,_extends$2({square:!0,component:"header",ownerState:it,elevation:4,className:clsx(st.root,et,rt==="fixed"&&"mui-fixed"),ref:$},ot))}),GLOBAL_CLASS_PREFIX="base";function buildStateClass(s){return`${GLOBAL_CLASS_PREFIX}--${s}`}function buildSlotClass(s,j){return`${GLOBAL_CLASS_PREFIX}-${s}-${j}`}function generateUtilityClass(s,j){const $=globalStateClasses[j];return $?buildStateClass($):buildSlotClass(s,j)}function generateUtilityClasses(s,j){const $={};return j.forEach(_e=>{$[_e]=generateUtilityClass(s,_e)}),$}const candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex(s){const j=parseInt(s.getAttribute("tabindex")||"",10);return Number.isNaN(j)?s.contentEditable==="true"||(s.nodeName==="AUDIO"||s.nodeName==="VIDEO"||s.nodeName==="DETAILS")&&s.getAttribute("tabindex")===null?0:s.tabIndex:j}function isNonTabbableRadio(s){if(s.tagName!=="INPUT"||s.type!=="radio"||!s.name)return!1;const j=_e=>s.ownerDocument.querySelector(`input[type="radio"]${_e}`);let $=j(`[name="${s.name}"]:checked`);return $||($=j(`[name="${s.name}"]`)),$!==s}function isNodeMatchingSelectorFocusable(s){return!(s.disabled||s.tagName==="INPUT"&&s.type==="hidden"||isNonTabbableRadio(s))}function defaultGetTabbable(s){const j=[],$=[];return Array.from(s.querySelectorAll(candidatesSelector)).forEach((_e,et)=>{const tt=getTabIndex(_e);tt===-1||!isNodeMatchingSelectorFocusable(_e)||(tt===0?j.push(_e):$.push({documentOrder:et,tabIndex:tt,node:_e}))}),$.sort((_e,et)=>_e.tabIndex===et.tabIndex?_e.documentOrder-et.documentOrder:_e.tabIndex-et.tabIndex).map(_e=>_e.node).concat(j)}function defaultIsEnabled(){return!0}function FocusTrap(s){const{children:j,disableAutoFocus:$=!1,disableEnforceFocus:_e=!1,disableRestoreFocus:et=!1,getTabbable:tt=defaultGetTabbable,isEnabled:nt=defaultIsEnabled,open:rt}=s,ot=reactExports.useRef(!1),it=reactExports.useRef(null),st=reactExports.useRef(null),at=reactExports.useRef(null),ct=reactExports.useRef(null),lt=reactExports.useRef(!1),dt=reactExports.useRef(null),ft=useForkRef(j.ref,dt),gt=reactExports.useRef(null);reactExports.useEffect(()=>{!rt||!dt.current||(lt.current=!$)},[$,rt]),reactExports.useEffect(()=>{if(!rt||!dt.current)return;const pt=ownerDocument(dt.current);return dt.current.contains(pt.activeElement)||(dt.current.hasAttribute("tabIndex")||dt.current.setAttribute("tabIndex","-1"),lt.current&&dt.current.focus()),()=>{et||(at.current&&at.current.focus&&(ot.current=!0,at.current.focus()),at.current=null)}},[rt]),reactExports.useEffect(()=>{if(!rt||!dt.current)return;const pt=ownerDocument(dt.current),xt=wt=>{gt.current=wt,!(_e||!nt()||wt.key!=="Tab")&&pt.activeElement===dt.current&&wt.shiftKey&&(ot.current=!0,st.current&&st.current.focus())},Ct=()=>{const wt=dt.current;if(wt===null)return;if(!pt.hasFocus()||!nt()||ot.current){ot.current=!1;return}if(wt.contains(pt.activeElement)||_e&&pt.activeElement!==it.current&&pt.activeElement!==st.current)return;if(pt.activeElement!==ct.current)ct.current=null;else if(ct.current!==null)return;if(!lt.current)return;let kt=[];if((pt.activeElement===it.current||pt.activeElement===st.current)&&(kt=tt(dt.current)),kt.length>0){var zt,Ot;const Ft=!!((zt=gt.current)!=null&&zt.shiftKey&&((Ot=gt.current)==null?void 0:Ot.key)==="Tab"),Pt=kt[0],Nt=kt[kt.length-1];typeof Pt!="string"&&typeof Nt!="string"&&(Ft?Nt.focus():Pt.focus())}else wt.focus()};pt.addEventListener("focusin",Ct),pt.addEventListener("keydown",xt,!0);const Dt=setInterval(()=>{pt.activeElement&&pt.activeElement.tagName==="BODY"&&Ct()},50);return()=>{clearInterval(Dt),pt.removeEventListener("focusin",Ct),pt.removeEventListener("keydown",xt,!0)}},[$,_e,et,nt,rt,tt]);const yt=pt=>{at.current===null&&(at.current=pt.relatedTarget),lt.current=!0,ct.current=pt.target;const xt=j.props.onFocus;xt&&xt(pt)},mt=pt=>{at.current===null&&(at.current=pt.relatedTarget),lt.current=!0};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{tabIndex:rt?0:-1,onFocus:mt,ref:it,"data-testid":"sentinelStart"}),reactExports.cloneElement(j,{ref:ft,onFocus:yt}),jsxRuntimeExports.jsx("div",{tabIndex:rt?0:-1,onFocus:mt,ref:st,"data-testid":"sentinelEnd"})]})}function getContainer$1(s){return typeof s=="function"?s():s}const Portal=reactExports.forwardRef(function(j,$){const{children:_e,container:et,disablePortal:tt=!1}=j,[nt,rt]=reactExports.useState(null),ot=useForkRef(reactExports.isValidElement(_e)?_e.ref:null,$);if(useEnhancedEffect(()=>{tt||rt(getContainer$1(et)||document.body)},[et,tt]),useEnhancedEffect(()=>{if(nt&&!tt)return setRef($,nt),()=>{setRef($,null)}},[$,nt,tt]),tt){if(reactExports.isValidElement(_e)){const it={ref:ot};return reactExports.cloneElement(_e,it)}return jsxRuntimeExports.jsx(reactExports.Fragment,{children:_e})}return jsxRuntimeExports.jsx(reactExports.Fragment,{children:nt&&reactDomExports.createPortal(_e,nt)})});function isOverflowing(s){const j=ownerDocument(s);return j.body===s?ownerWindow(s).innerWidth>j.documentElement.clientWidth:s.scrollHeight>s.clientHeight}function ariaHidden(s,j){j?s.setAttribute("aria-hidden","true"):s.removeAttribute("aria-hidden")}function getPaddingRight(s){return parseInt(ownerWindow(s).getComputedStyle(s).paddingRight,10)||0}function isAriaHiddenForbiddenOnElement(s){const $=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(s.tagName)!==-1,_e=s.tagName==="INPUT"&&s.getAttribute("type")==="hidden";return $||_e}function ariaHiddenSiblings(s,j,$,_e,et){const tt=[j,$,..._e];[].forEach.call(s.children,nt=>{const rt=tt.indexOf(nt)===-1,ot=!isAriaHiddenForbiddenOnElement(nt);rt&&ot&&ariaHidden(nt,et)})}function findIndexOf(s,j){let $=-1;return s.some((_e,et)=>j(_e)?($=et,!0):!1),$}function handleContainer(s,j){const $=[],_e=s.container;if(!j.disableScrollLock){if(isOverflowing(_e)){const nt=getScrollbarSize(ownerDocument(_e));$.push({value:_e.style.paddingRight,property:"padding-right",el:_e}),_e.style.paddingRight=`${getPaddingRight(_e)+nt}px`;const rt=ownerDocument(_e).querySelectorAll(".mui-fixed");[].forEach.call(rt,ot=>{$.push({value:ot.style.paddingRight,property:"padding-right",el:ot}),ot.style.paddingRight=`${getPaddingRight(ot)+nt}px`})}let tt;if(_e.parentNode instanceof DocumentFragment)tt=ownerDocument(_e).body;else{const nt=_e.parentElement,rt=ownerWindow(_e);tt=(nt==null?void 0:nt.nodeName)==="HTML"&&rt.getComputedStyle(nt).overflowY==="scroll"?nt:_e}$.push({value:tt.style.overflow,property:"overflow",el:tt},{value:tt.style.overflowX,property:"overflow-x",el:tt},{value:tt.style.overflowY,property:"overflow-y",el:tt}),tt.style.overflow="hidden"}return()=>{$.forEach(({value:tt,el:nt,property:rt})=>{tt?nt.style.setProperty(rt,tt):nt.style.removeProperty(rt)})}}function getHiddenSiblings(s){const j=[];return[].forEach.call(s.children,$=>{$.getAttribute("aria-hidden")==="true"&&j.push($)}),j}class ModalManager{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(j,$){let _e=this.modals.indexOf(j);if(_e!==-1)return _e;_e=this.modals.length,this.modals.push(j),j.modalRef&&ariaHidden(j.modalRef,!1);const et=getHiddenSiblings($);ariaHiddenSiblings($,j.mount,j.modalRef,et,!0);const tt=findIndexOf(this.containers,nt=>nt.container===$);return tt!==-1?(this.containers[tt].modals.push(j),_e):(this.containers.push({modals:[j],container:$,restore:null,hiddenSiblings:et}),_e)}mount(j,$){const _e=findIndexOf(this.containers,tt=>tt.modals.indexOf(j)!==-1),et=this.containers[_e];et.restore||(et.restore=handleContainer(et,$))}remove(j,$=!0){const _e=this.modals.indexOf(j);if(_e===-1)return _e;const et=findIndexOf(this.containers,nt=>nt.modals.indexOf(j)!==-1),tt=this.containers[et];if(tt.modals.splice(tt.modals.indexOf(j),1),this.modals.splice(_e,1),tt.modals.length===0)tt.restore&&tt.restore(),j.modalRef&&ariaHidden(j.modalRef,$),ariaHiddenSiblings(tt.container,j.mount,j.modalRef,tt.hiddenSiblings,!1),this.containers.splice(et,1);else{const nt=tt.modals[tt.modals.length-1];nt.modalRef&&ariaHidden(nt.modalRef,!1)}return _e}isTopModal(j){return this.modals.length>0&&this.modals[this.modals.length-1]===j}}function getContainer(s){return typeof s=="function"?s():s}function getHasTransition(s){return s?s.props.hasOwnProperty("in"):!1}const defaultManager=new ModalManager;function useModal(s){const{container:j,disableEscapeKeyDown:$=!1,disableScrollLock:_e=!1,manager:et=defaultManager,closeAfterTransition:tt=!1,onTransitionEnter:nt,onTransitionExited:rt,children:ot,onClose:it,open:st,rootRef:at}=s,ct=reactExports.useRef({}),lt=reactExports.useRef(null),dt=reactExports.useRef(null),ft=useForkRef(dt,at),[gt,yt]=reactExports.useState(!st),mt=getHasTransition(ot);let pt=!0;(s["aria-hidden"]==="false"||s["aria-hidden"]===!1)&&(pt=!1);const xt=()=>ownerDocument(lt.current),Ct=()=>(ct.current.modalRef=dt.current,ct.current.mount=lt.current,ct.current),Dt=()=>{et.mount(Ct(),{disableScrollLock:_e}),dt.current&&(dt.current.scrollTop=0)},wt=useEventCallback(()=>{const St=getContainer(j)||xt().body;et.add(Ct(),St),dt.current&&Dt()}),kt=reactExports.useCallback(()=>et.isTopModal(Ct()),[et]),zt=useEventCallback(St=>{lt.current=St,St&&(st&&kt()?Dt():dt.current&&ariaHidden(dt.current,pt))}),Ot=reactExports.useCallback(()=>{et.remove(Ct(),pt)},[pt,et]);reactExports.useEffect(()=>()=>{Ot()},[Ot]),reactExports.useEffect(()=>{st?wt():(!mt||!tt)&&Ot()},[st,Ot,mt,tt,wt]);const Ft=St=>vt=>{var At;(At=St.onKeyDown)==null||At.call(St,vt),!(vt.key!=="Escape"||vt.which===229||!kt())&&($||(vt.stopPropagation(),it&&it(vt,"escapeKeyDown")))},Pt=St=>vt=>{var At;(At=St.onClick)==null||At.call(St,vt),vt.target===vt.currentTarget&&it&&it(vt,"backdropClick")};return{getRootProps:(St={})=>{const vt=extractEventHandlers(s);delete vt.onTransitionEnter,delete vt.onTransitionExited;const At=_extends$2({},vt,St);return _extends$2({role:"presentation"},At,{onKeyDown:Ft(At),ref:ft})},getBackdropProps:(St={})=>{const vt=St;return _extends$2({"aria-hidden":!0},vt,{onClick:Pt(vt),open:st})},getTransitionProps:()=>{const St=()=>{yt(!1),nt&&nt()},vt=()=>{yt(!0),rt&&rt(),tt&&Ot()};return{onEnter:createChainedFunction(St,ot==null?void 0:ot.props.onEnter),onExited:createChainedFunction(vt,ot==null?void 0:ot.props.onExited)}},rootRef:ft,portalRef:zt,isTopModal:kt,exited:gt,hasTransition:mt}}var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(s,j){return s.concat([j+"-"+start,j+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(s,j){return s.concat([j,j+"-"+start,j+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(s){return s?(s.nodeName||"").toLowerCase():null}function getWindow(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var j=s.ownerDocument;return j&&j.defaultView||window}return s}function isElement(s){var j=getWindow(s).Element;return s instanceof j||s instanceof Element}function isHTMLElement$1(s){var j=getWindow(s).HTMLElement;return s instanceof j||s instanceof HTMLElement}function isShadowRoot(s){if(typeof ShadowRoot>"u")return!1;var j=getWindow(s).ShadowRoot;return s instanceof j||s instanceof ShadowRoot}function applyStyles(s){var j=s.state;Object.keys(j.elements).forEach(function($){var _e=j.styles[$]||{},et=j.attributes[$]||{},tt=j.elements[$];!isHTMLElement$1(tt)||!getNodeName(tt)||(Object.assign(tt.style,_e),Object.keys(et).forEach(function(nt){var rt=et[nt];rt===!1?tt.removeAttribute(nt):tt.setAttribute(nt,rt===!0?"":rt)}))})}function effect$2(s){var j=s.state,$={popper:{position:j.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(j.elements.popper.style,$.popper),j.styles=$,j.elements.arrow&&Object.assign(j.elements.arrow.style,$.arrow),function(){Object.keys(j.elements).forEach(function(_e){var et=j.elements[_e],tt=j.attributes[_e]||{},nt=Object.keys(j.styles.hasOwnProperty(_e)?j.styles[_e]:$[_e]),rt=nt.reduce(function(ot,it){return ot[it]="",ot},{});!isHTMLElement$1(et)||!getNodeName(et)||(Object.assign(et.style,rt),Object.keys(tt).forEach(function(ot){et.removeAttribute(ot)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(s){return s.split("-")[0]}var max$1=Math.max,min$1=Math.min,round$1=Math.round;function getUAString(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(j){return j.brand+"/"+j.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(s,j,$){j===void 0&&(j=!1),$===void 0&&($=!1);var _e=s.getBoundingClientRect(),et=1,tt=1;j&&isHTMLElement$1(s)&&(et=s.offsetWidth>0&&round$1(_e.width)/s.offsetWidth||1,tt=s.offsetHeight>0&&round$1(_e.height)/s.offsetHeight||1);var nt=isElement(s)?getWindow(s):window,rt=nt.visualViewport,ot=!isLayoutViewport()&&$,it=(_e.left+(ot&&rt?rt.offsetLeft:0))/et,st=(_e.top+(ot&&rt?rt.offsetTop:0))/tt,at=_e.width/et,ct=_e.height/tt;return{width:at,height:ct,top:st,right:it+at,bottom:st+ct,left:it,x:it,y:st}}function getLayoutRect(s){var j=getBoundingClientRect(s),$=s.offsetWidth,_e=s.offsetHeight;return Math.abs(j.width-$)<=1&&($=j.width),Math.abs(j.height-_e)<=1&&(_e=j.height),{x:s.offsetLeft,y:s.offsetTop,width:$,height:_e}}function contains(s,j){var $=j.getRootNode&&j.getRootNode();if(s.contains(j))return!0;if($&&isShadowRoot($)){var _e=j;do{if(_e&&s.isSameNode(_e))return!0;_e=_e.parentNode||_e.host}while(_e)}return!1}function getComputedStyle(s){return getWindow(s).getComputedStyle(s)}function isTableElement(s){return["table","td","th"].indexOf(getNodeName(s))>=0}function getDocumentElement(s){return((isElement(s)?s.ownerDocument:s.document)||window.document).documentElement}function getParentNode(s){return getNodeName(s)==="html"?s:s.assignedSlot||s.parentNode||(isShadowRoot(s)?s.host:null)||getDocumentElement(s)}function getTrueOffsetParent(s){return!isHTMLElement$1(s)||getComputedStyle(s).position==="fixed"?null:s.offsetParent}function getContainingBlock(s){var j=/firefox/i.test(getUAString()),$=/Trident/i.test(getUAString());if($&&isHTMLElement$1(s)){var _e=getComputedStyle(s);if(_e.position==="fixed")return null}var et=getParentNode(s);for(isShadowRoot(et)&&(et=et.host);isHTMLElement$1(et)&&["html","body"].indexOf(getNodeName(et))<0;){var tt=getComputedStyle(et);if(tt.transform!=="none"||tt.perspective!=="none"||tt.contain==="paint"||["transform","perspective"].indexOf(tt.willChange)!==-1||j&&tt.willChange==="filter"||j&&tt.filter&&tt.filter!=="none")return et;et=et.parentNode}return null}function getOffsetParent(s){for(var j=getWindow(s),$=getTrueOffsetParent(s);$&&isTableElement($)&&getComputedStyle($).position==="static";)$=getTrueOffsetParent($);return $&&(getNodeName($)==="html"||getNodeName($)==="body"&&getComputedStyle($).position==="static")?j:$||getContainingBlock(s)||j}function getMainAxisFromPlacement(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function within(s,j,$){return max$1(s,min$1(j,$))}function withinMaxClamp(s,j,$){var _e=within(s,j,$);return _e>$?$:_e}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(s){return Object.assign({},getFreshSideObject(),s)}function expandToHashMap(s,j){return j.reduce(function($,_e){return $[_e]=s,$},{})}var toPaddingObject=function(j,$){return j=typeof j=="function"?j(Object.assign({},$.rects,{placement:$.placement})):j,mergePaddingObject(typeof j!="number"?j:expandToHashMap(j,basePlacements))};function arrow(s){var j,$=s.state,_e=s.name,et=s.options,tt=$.elements.arrow,nt=$.modifiersData.popperOffsets,rt=getBasePlacement($.placement),ot=getMainAxisFromPlacement(rt),it=[left,right].indexOf(rt)>=0,st=it?"height":"width";if(!(!tt||!nt)){var at=toPaddingObject(et.padding,$),ct=getLayoutRect(tt),lt=ot==="y"?top:left,dt=ot==="y"?bottom:right,ft=$.rects.reference[st]+$.rects.reference[ot]-nt[ot]-$.rects.popper[st],gt=nt[ot]-$.rects.reference[ot],yt=getOffsetParent(tt),mt=yt?ot==="y"?yt.clientHeight||0:yt.clientWidth||0:0,pt=ft/2-gt/2,xt=at[lt],Ct=mt-ct[st]-at[dt],Dt=mt/2-ct[st]/2+pt,wt=within(xt,Dt,Ct),kt=ot;$.modifiersData[_e]=(j={},j[kt]=wt,j.centerOffset=wt-Dt,j)}}function effect$1(s){var j=s.state,$=s.options,_e=$.element,et=_e===void 0?"[data-popper-arrow]":_e;et!=null&&(typeof et=="string"&&(et=j.elements.popper.querySelector(et),!et)||contains(j.elements.popper,et)&&(j.elements.arrow=et))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(s){return s.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(s,j){var $=s.x,_e=s.y,et=j.devicePixelRatio||1;return{x:round$1($*et)/et||0,y:round$1(_e*et)/et||0}}function mapToStyles(s){var j,$=s.popper,_e=s.popperRect,et=s.placement,tt=s.variation,nt=s.offsets,rt=s.position,ot=s.gpuAcceleration,it=s.adaptive,st=s.roundOffsets,at=s.isFixed,ct=nt.x,lt=ct===void 0?0:ct,dt=nt.y,ft=dt===void 0?0:dt,gt=typeof st=="function"?st({x:lt,y:ft}):{x:lt,y:ft};lt=gt.x,ft=gt.y;var yt=nt.hasOwnProperty("x"),mt=nt.hasOwnProperty("y"),pt=left,xt=top,Ct=window;if(it){var Dt=getOffsetParent($),wt="clientHeight",kt="clientWidth";if(Dt===getWindow($)&&(Dt=getDocumentElement($),getComputedStyle(Dt).position!=="static"&&rt==="absolute"&&(wt="scrollHeight",kt="scrollWidth")),Dt=Dt,et===top||(et===left||et===right)&&tt===end){xt=bottom;var zt=at&&Dt===Ct&&Ct.visualViewport?Ct.visualViewport.height:Dt[wt];ft-=zt-_e.height,ft*=ot?1:-1}if(et===left||(et===top||et===bottom)&&tt===end){pt=right;var Ot=at&&Dt===Ct&&Ct.visualViewport?Ct.visualViewport.width:Dt[kt];lt-=Ot-_e.width,lt*=ot?1:-1}}var Ft=Object.assign({position:rt},it&&unsetSides),Pt=st===!0?roundOffsetsByDPR({x:lt,y:ft},getWindow($)):{x:lt,y:ft};if(lt=Pt.x,ft=Pt.y,ot){var Nt;return Object.assign({},Ft,(Nt={},Nt[xt]=mt?"0":"",Nt[pt]=yt?"0":"",Nt.transform=(Ct.devicePixelRatio||1)<=1?"translate("+lt+"px, "+ft+"px)":"translate3d("+lt+"px, "+ft+"px, 0)",Nt))}return Object.assign({},Ft,(j={},j[xt]=mt?ft+"px":"",j[pt]=yt?lt+"px":"",j.transform="",j))}function computeStyles(s){var j=s.state,$=s.options,_e=$.gpuAcceleration,et=_e===void 0?!0:_e,tt=$.adaptive,nt=tt===void 0?!0:tt,rt=$.roundOffsets,ot=rt===void 0?!0:rt,it={placement:getBasePlacement(j.placement),variation:getVariation(j.placement),popper:j.elements.popper,popperRect:j.rects.popper,gpuAcceleration:et,isFixed:j.options.strategy==="fixed"};j.modifiersData.popperOffsets!=null&&(j.styles.popper=Object.assign({},j.styles.popper,mapToStyles(Object.assign({},it,{offsets:j.modifiersData.popperOffsets,position:j.options.strategy,adaptive:nt,roundOffsets:ot})))),j.modifiersData.arrow!=null&&(j.styles.arrow=Object.assign({},j.styles.arrow,mapToStyles(Object.assign({},it,{offsets:j.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ot})))),j.attributes.popper=Object.assign({},j.attributes.popper,{"data-popper-placement":j.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(s){var j=s.state,$=s.instance,_e=s.options,et=_e.scroll,tt=et===void 0?!0:et,nt=_e.resize,rt=nt===void 0?!0:nt,ot=getWindow(j.elements.popper),it=[].concat(j.scrollParents.reference,j.scrollParents.popper);return tt&&it.forEach(function(st){st.addEventListener("scroll",$.update,passive)}),rt&&ot.addEventListener("resize",$.update,passive),function(){tt&&it.forEach(function(st){st.removeEventListener("scroll",$.update,passive)}),rt&&ot.removeEventListener("resize",$.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$3={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(s){return s.replace(/left|right|bottom|top/g,function(j){return hash$3[j]})}var hash$2={start:"end",end:"start"};function getOppositeVariationPlacement(s){return s.replace(/start|end/g,function(j){return hash$2[j]})}function getWindowScroll(s){var j=getWindow(s),$=j.pageXOffset,_e=j.pageYOffset;return{scrollLeft:$,scrollTop:_e}}function getWindowScrollBarX(s){return getBoundingClientRect(getDocumentElement(s)).left+getWindowScroll(s).scrollLeft}function getViewportRect(s,j){var $=getWindow(s),_e=getDocumentElement(s),et=$.visualViewport,tt=_e.clientWidth,nt=_e.clientHeight,rt=0,ot=0;if(et){tt=et.width,nt=et.height;var it=isLayoutViewport();(it||!it&&j==="fixed")&&(rt=et.offsetLeft,ot=et.offsetTop)}return{width:tt,height:nt,x:rt+getWindowScrollBarX(s),y:ot}}function getDocumentRect(s){var j,$=getDocumentElement(s),_e=getWindowScroll(s),et=(j=s.ownerDocument)==null?void 0:j.body,tt=max$1($.scrollWidth,$.clientWidth,et?et.scrollWidth:0,et?et.clientWidth:0),nt=max$1($.scrollHeight,$.clientHeight,et?et.scrollHeight:0,et?et.clientHeight:0),rt=-_e.scrollLeft+getWindowScrollBarX(s),ot=-_e.scrollTop;return getComputedStyle(et||$).direction==="rtl"&&(rt+=max$1($.clientWidth,et?et.clientWidth:0)-tt),{width:tt,height:nt,x:rt,y:ot}}function isScrollParent(s){var j=getComputedStyle(s),$=j.overflow,_e=j.overflowX,et=j.overflowY;return/auto|scroll|overlay|hidden/.test($+et+_e)}function getScrollParent(s){return["html","body","#document"].indexOf(getNodeName(s))>=0?s.ownerDocument.body:isHTMLElement$1(s)&&isScrollParent(s)?s:getScrollParent(getParentNode(s))}function listScrollParents(s,j){var $;j===void 0&&(j=[]);var _e=getScrollParent(s),et=_e===(($=s.ownerDocument)==null?void 0:$.body),tt=getWindow(_e),nt=et?[tt].concat(tt.visualViewport||[],isScrollParent(_e)?_e:[]):_e,rt=j.concat(nt);return et?rt:rt.concat(listScrollParents(getParentNode(nt)))}function rectToClientRect(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function getInnerBoundingClientRect(s,j){var $=getBoundingClientRect(s,!1,j==="fixed");return $.top=$.top+s.clientTop,$.left=$.left+s.clientLeft,$.bottom=$.top+s.clientHeight,$.right=$.left+s.clientWidth,$.width=s.clientWidth,$.height=s.clientHeight,$.x=$.left,$.y=$.top,$}function getClientRectFromMixedType(s,j,$){return j===viewport?rectToClientRect(getViewportRect(s,$)):isElement(j)?getInnerBoundingClientRect(j,$):rectToClientRect(getDocumentRect(getDocumentElement(s)))}function getClippingParents(s){var j=listScrollParents(getParentNode(s)),$=["absolute","fixed"].indexOf(getComputedStyle(s).position)>=0,_e=$&&isHTMLElement$1(s)?getOffsetParent(s):s;return isElement(_e)?j.filter(function(et){return isElement(et)&&contains(et,_e)&&getNodeName(et)!=="body"}):[]}function getClippingRect(s,j,$,_e){var et=j==="clippingParents"?getClippingParents(s):[].concat(j),tt=[].concat(et,[$]),nt=tt[0],rt=tt.reduce(function(ot,it){var st=getClientRectFromMixedType(s,it,_e);return ot.top=max$1(st.top,ot.top),ot.right=min$1(st.right,ot.right),ot.bottom=min$1(st.bottom,ot.bottom),ot.left=max$1(st.left,ot.left),ot},getClientRectFromMixedType(s,nt,_e));return rt.width=rt.right-rt.left,rt.height=rt.bottom-rt.top,rt.x=rt.left,rt.y=rt.top,rt}function computeOffsets(s){var j=s.reference,$=s.element,_e=s.placement,et=_e?getBasePlacement(_e):null,tt=_e?getVariation(_e):null,nt=j.x+j.width/2-$.width/2,rt=j.y+j.height/2-$.height/2,ot;switch(et){case top:ot={x:nt,y:j.y-$.height};break;case bottom:ot={x:nt,y:j.y+j.height};break;case right:ot={x:j.x+j.width,y:rt};break;case left:ot={x:j.x-$.width,y:rt};break;default:ot={x:j.x,y:j.y}}var it=et?getMainAxisFromPlacement(et):null;if(it!=null){var st=it==="y"?"height":"width";switch(tt){case start:ot[it]=ot[it]-(j[st]/2-$[st]/2);break;case end:ot[it]=ot[it]+(j[st]/2-$[st]/2);break}}return ot}function detectOverflow(s,j){j===void 0&&(j={});var $=j,_e=$.placement,et=_e===void 0?s.placement:_e,tt=$.strategy,nt=tt===void 0?s.strategy:tt,rt=$.boundary,ot=rt===void 0?clippingParents:rt,it=$.rootBoundary,st=it===void 0?viewport:it,at=$.elementContext,ct=at===void 0?popper:at,lt=$.altBoundary,dt=lt===void 0?!1:lt,ft=$.padding,gt=ft===void 0?0:ft,yt=mergePaddingObject(typeof gt!="number"?gt:expandToHashMap(gt,basePlacements)),mt=ct===popper?reference:popper,pt=s.rects.popper,xt=s.elements[dt?mt:ct],Ct=getClippingRect(isElement(xt)?xt:xt.contextElement||getDocumentElement(s.elements.popper),ot,st,nt),Dt=getBoundingClientRect(s.elements.reference),wt=computeOffsets({reference:Dt,element:pt,strategy:"absolute",placement:et}),kt=rectToClientRect(Object.assign({},pt,wt)),zt=ct===popper?kt:Dt,Ot={top:Ct.top-zt.top+yt.top,bottom:zt.bottom-Ct.bottom+yt.bottom,left:Ct.left-zt.left+yt.left,right:zt.right-Ct.right+yt.right},Ft=s.modifiersData.offset;if(ct===popper&&Ft){var Pt=Ft[et];Object.keys(Ot).forEach(function(Nt){var ht=[right,bottom].indexOf(Nt)>=0?1:-1,bt=[top,bottom].indexOf(Nt)>=0?"y":"x";Ot[Nt]+=Pt[bt]*ht})}return Ot}function computeAutoPlacement(s,j){j===void 0&&(j={});var $=j,_e=$.placement,et=$.boundary,tt=$.rootBoundary,nt=$.padding,rt=$.flipVariations,ot=$.allowedAutoPlacements,it=ot===void 0?placements:ot,st=getVariation(_e),at=st?rt?variationPlacements:variationPlacements.filter(function(dt){return getVariation(dt)===st}):basePlacements,ct=at.filter(function(dt){return it.indexOf(dt)>=0});ct.length===0&&(ct=at);var lt=ct.reduce(function(dt,ft){return dt[ft]=detectOverflow(s,{placement:ft,boundary:et,rootBoundary:tt,padding:nt})[getBasePlacement(ft)],dt},{});return Object.keys(lt).sort(function(dt,ft){return lt[dt]-lt[ft]})}function getExpandedFallbackPlacements(s){if(getBasePlacement(s)===auto)return[];var j=getOppositePlacement(s);return[getOppositeVariationPlacement(s),j,getOppositeVariationPlacement(j)]}function flip(s){var j=s.state,$=s.options,_e=s.name;if(!j.modifiersData[_e]._skip){for(var et=$.mainAxis,tt=et===void 0?!0:et,nt=$.altAxis,rt=nt===void 0?!0:nt,ot=$.fallbackPlacements,it=$.padding,st=$.boundary,at=$.rootBoundary,ct=$.altBoundary,lt=$.flipVariations,dt=lt===void 0?!0:lt,ft=$.allowedAutoPlacements,gt=j.options.placement,yt=getBasePlacement(gt),mt=yt===gt,pt=ot||(mt||!dt?[getOppositePlacement(gt)]:getExpandedFallbackPlacements(gt)),xt=[gt].concat(pt).reduce(function(Ut,Gt){return Ut.concat(getBasePlacement(Gt)===auto?computeAutoPlacement(j,{placement:Gt,boundary:st,rootBoundary:at,padding:it,flipVariations:dt,allowedAutoPlacements:ft}):Gt)},[]),Ct=j.rects.reference,Dt=j.rects.popper,wt=new Map,kt=!0,zt=xt[0],Ot=0;Ot=0,bt=ht?"width":"height",St=detectOverflow(j,{placement:Ft,boundary:st,rootBoundary:at,altBoundary:ct,padding:it}),vt=ht?Nt?right:left:Nt?bottom:top;Ct[bt]>Dt[bt]&&(vt=getOppositePlacement(vt));var At=getOppositePlacement(vt),Tt=[];if(tt&&Tt.push(St[Pt]<=0),rt&&Tt.push(St[vt]<=0,St[At]<=0),Tt.every(function(Ut){return Ut})){zt=Ft,kt=!1;break}wt.set(Ft,Tt)}if(kt)for(var jt=dt?3:1,Lt=function(Gt){var Ht=xt.find(function(tn){var Jt=wt.get(tn);if(Jt)return Jt.slice(0,Gt).every(function(Kt){return Kt})});if(Ht)return zt=Ht,"break"},Mt=jt;Mt>0;Mt--){var $t=Lt(Mt);if($t==="break")break}j.placement!==zt&&(j.modifiersData[_e]._skip=!0,j.placement=zt,j.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(s,j,$){return $===void 0&&($={x:0,y:0}),{top:s.top-j.height-$.y,right:s.right-j.width+$.x,bottom:s.bottom-j.height+$.y,left:s.left-j.width-$.x}}function isAnySideFullyClipped(s){return[top,right,bottom,left].some(function(j){return s[j]>=0})}function hide(s){var j=s.state,$=s.name,_e=j.rects.reference,et=j.rects.popper,tt=j.modifiersData.preventOverflow,nt=detectOverflow(j,{elementContext:"reference"}),rt=detectOverflow(j,{altBoundary:!0}),ot=getSideOffsets(nt,_e),it=getSideOffsets(rt,et,tt),st=isAnySideFullyClipped(ot),at=isAnySideFullyClipped(it);j.modifiersData[$]={referenceClippingOffsets:ot,popperEscapeOffsets:it,isReferenceHidden:st,hasPopperEscaped:at},j.attributes.popper=Object.assign({},j.attributes.popper,{"data-popper-reference-hidden":st,"data-popper-escaped":at})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(s,j,$){var _e=getBasePlacement(s),et=[left,top].indexOf(_e)>=0?-1:1,tt=typeof $=="function"?$(Object.assign({},j,{placement:s})):$,nt=tt[0],rt=tt[1];return nt=nt||0,rt=(rt||0)*et,[left,right].indexOf(_e)>=0?{x:rt,y:nt}:{x:nt,y:rt}}function offset$1(s){var j=s.state,$=s.options,_e=s.name,et=$.offset,tt=et===void 0?[0,0]:et,nt=placements.reduce(function(st,at){return st[at]=distanceAndSkiddingToXY(at,j.rects,tt),st},{}),rt=nt[j.placement],ot=rt.x,it=rt.y;j.modifiersData.popperOffsets!=null&&(j.modifiersData.popperOffsets.x+=ot,j.modifiersData.popperOffsets.y+=it),j.modifiersData[_e]=nt}const offset$2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset$1};function popperOffsets(s){var j=s.state,$=s.name;j.modifiersData[$]=computeOffsets({reference:j.rects.reference,element:j.rects.popper,strategy:"absolute",placement:j.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(s){return s==="x"?"y":"x"}function preventOverflow(s){var j=s.state,$=s.options,_e=s.name,et=$.mainAxis,tt=et===void 0?!0:et,nt=$.altAxis,rt=nt===void 0?!1:nt,ot=$.boundary,it=$.rootBoundary,st=$.altBoundary,at=$.padding,ct=$.tether,lt=ct===void 0?!0:ct,dt=$.tetherOffset,ft=dt===void 0?0:dt,gt=detectOverflow(j,{boundary:ot,rootBoundary:it,padding:at,altBoundary:st}),yt=getBasePlacement(j.placement),mt=getVariation(j.placement),pt=!mt,xt=getMainAxisFromPlacement(yt),Ct=getAltAxis(xt),Dt=j.modifiersData.popperOffsets,wt=j.rects.reference,kt=j.rects.popper,zt=typeof ft=="function"?ft(Object.assign({},j.rects,{placement:j.placement})):ft,Ot=typeof zt=="number"?{mainAxis:zt,altAxis:zt}:Object.assign({mainAxis:0,altAxis:0},zt),Ft=j.modifiersData.offset?j.modifiersData.offset[j.placement]:null,Pt={x:0,y:0};if(Dt){if(tt){var Nt,ht=xt==="y"?top:left,bt=xt==="y"?bottom:right,St=xt==="y"?"height":"width",vt=Dt[xt],At=vt+gt[ht],Tt=vt-gt[bt],jt=lt?-kt[St]/2:0,Lt=mt===start?wt[St]:kt[St],Mt=mt===start?-kt[St]:-wt[St],$t=j.elements.arrow,Ut=lt&&$t?getLayoutRect($t):{width:0,height:0},Gt=j.modifiersData["arrow#persistent"]?j.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Ht=Gt[ht],tn=Gt[bt],Jt=within(0,wt[St],Ut[St]),Kt=pt?wt[St]/2-jt-Jt-Ht-Ot.mainAxis:Lt-Jt-Ht-Ot.mainAxis,dn=pt?-wt[St]/2+jt+Jt+tn+Ot.mainAxis:Mt+Jt+tn+Ot.mainAxis,en=j.elements.arrow&&getOffsetParent(j.elements.arrow),qt=en?xt==="y"?en.clientTop||0:en.clientLeft||0:0,Qt=(Nt=Ft==null?void 0:Ft[xt])!=null?Nt:0,Zt=vt+Kt-Qt-qt,Xt=vt+dn-Qt,sn=within(lt?min$1(At,Zt):At,vt,lt?max$1(Tt,Xt):Tt);Dt[xt]=sn,Pt[xt]=sn-vt}if(rt){var nn,rn=xt==="x"?top:left,gn=xt==="x"?bottom:right,on=Dt[Ct],an=Ct==="y"?"height":"width",hn=on+gt[rn],fn=on-gt[gn],ln=[top,left].indexOf(yt)!==-1,yn=(nn=Ft==null?void 0:Ft[Ct])!=null?nn:0,mn=ln?hn:on-wt[an]-kt[an]-yn+Ot.altAxis,Rt=ln?on+wt[an]+kt[an]-yn-Ot.altAxis:fn,Et=lt&&ln?withinMaxClamp(mn,on,Rt):within(lt?mn:hn,on,lt?Rt:fn);Dt[Ct]=Et,Pt[Ct]=Et-on}j.modifiersData[_e]=Pt}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function getNodeScroll(s){return s===getWindow(s)||!isHTMLElement$1(s)?getWindowScroll(s):getHTMLElementScroll(s)}function isElementScaled(s){var j=s.getBoundingClientRect(),$=round$1(j.width)/s.offsetWidth||1,_e=round$1(j.height)/s.offsetHeight||1;return $!==1||_e!==1}function getCompositeRect(s,j,$){$===void 0&&($=!1);var _e=isHTMLElement$1(j),et=isHTMLElement$1(j)&&isElementScaled(j),tt=getDocumentElement(j),nt=getBoundingClientRect(s,et,$),rt={scrollLeft:0,scrollTop:0},ot={x:0,y:0};return(_e||!_e&&!$)&&((getNodeName(j)!=="body"||isScrollParent(tt))&&(rt=getNodeScroll(j)),isHTMLElement$1(j)?(ot=getBoundingClientRect(j,!0),ot.x+=j.clientLeft,ot.y+=j.clientTop):tt&&(ot.x=getWindowScrollBarX(tt))),{x:nt.left+rt.scrollLeft-ot.x,y:nt.top+rt.scrollTop-ot.y,width:nt.width,height:nt.height}}function order(s){var j=new Map,$=new Set,_e=[];s.forEach(function(tt){j.set(tt.name,tt)});function et(tt){$.add(tt.name);var nt=[].concat(tt.requires||[],tt.requiresIfExists||[]);nt.forEach(function(rt){if(!$.has(rt)){var ot=j.get(rt);ot&&et(ot)}}),_e.push(tt)}return s.forEach(function(tt){$.has(tt.name)||et(tt)}),_e}function orderModifiers(s){var j=order(s);return modifierPhases.reduce(function($,_e){return $.concat(j.filter(function(et){return et.phase===_e}))},[])}function debounce(s){var j;return function(){return j||(j=new Promise(function($){Promise.resolve().then(function(){j=void 0,$(s())})})),j}}function mergeByName(s){var j=s.reduce(function($,_e){var et=$[_e.name];return $[_e.name]=et?Object.assign({},et,_e,{options:Object.assign({},et.options,_e.options),data:Object.assign({},et.data,_e.data)}):_e,$},{});return Object.keys(j).map(function($){return j[$]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var s=arguments.length,j=new Array(s),$=0;$composeClasses({root:["root"]},useClassNamesOverride(getPopperUtilityClass)),defaultPopperOptions={},PopperTooltip=reactExports.forwardRef(function(j,$){var _e;const{anchorEl:et,children:tt,direction:nt,disablePortal:rt,modifiers:ot,open:it,placement:st,popperOptions:at,popperRef:ct,slotProps:lt={},slots:dt={},TransitionProps:ft}=j,gt=_objectWithoutPropertiesLoose(j,_excluded$W),yt=reactExports.useRef(null),mt=useForkRef(yt,$),pt=reactExports.useRef(null),xt=useForkRef(pt,ct),Ct=reactExports.useRef(xt);useEnhancedEffect(()=>{Ct.current=xt},[xt]),reactExports.useImperativeHandle(ct,()=>pt.current,[]);const Dt=flipPlacement(st,nt),[wt,kt]=reactExports.useState(Dt),[zt,Ot]=reactExports.useState(resolveAnchorEl$1(et));reactExports.useEffect(()=>{pt.current&&pt.current.forceUpdate()}),reactExports.useEffect(()=>{et&&Ot(resolveAnchorEl$1(et))},[et]),useEnhancedEffect(()=>{if(!zt||!it)return;const bt=At=>{kt(At.placement)};let St=[{name:"preventOverflow",options:{altBoundary:rt}},{name:"flip",options:{altBoundary:rt}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:At})=>{bt(At)}}];ot!=null&&(St=St.concat(ot)),at&&at.modifiers!=null&&(St=St.concat(at.modifiers));const vt=createPopper(zt,yt.current,_extends$2({placement:Dt},at,{modifiers:St}));return Ct.current(vt),()=>{vt.destroy(),Ct.current(null)}},[zt,rt,ot,it,at,Dt]);const Ft={placement:wt};ft!==null&&(Ft.TransitionProps=ft);const Pt=useUtilityClasses$O(),Nt=(_e=dt.root)!=null?_e:"div",ht=useSlotProps({elementType:Nt,externalSlotProps:lt.root,externalForwardedProps:gt,additionalProps:{role:"tooltip",ref:mt},ownerState:j,className:Pt.root});return jsxRuntimeExports.jsx(Nt,_extends$2({},ht,{children:typeof tt=="function"?tt(Ft):tt}))}),Popper$1=reactExports.forwardRef(function(j,$){const{anchorEl:_e,children:et,container:tt,direction:nt="ltr",disablePortal:rt=!1,keepMounted:ot=!1,modifiers:it,open:st,placement:at="bottom",popperOptions:ct=defaultPopperOptions,popperRef:lt,style:dt,transition:ft=!1,slotProps:gt={},slots:yt={}}=j,mt=_objectWithoutPropertiesLoose(j,_excluded2$5),[pt,xt]=reactExports.useState(!0),Ct=()=>{xt(!1)},Dt=()=>{xt(!0)};if(!ot&&!st&&(!ft||pt))return null;let wt;if(tt)wt=tt;else if(_e){const Ot=resolveAnchorEl$1(_e);wt=Ot&&isHTMLElement(Ot)?ownerDocument(Ot).body:ownerDocument(null).body}const kt=!st&&ot&&(!ft||pt)?"none":void 0,zt=ft?{in:st,onEnter:Ct,onExited:Dt}:void 0;return jsxRuntimeExports.jsx(Portal,{disablePortal:rt,container:wt,children:jsxRuntimeExports.jsx(PopperTooltip,_extends$2({anchorEl:_e,direction:nt,disablePortal:rt,modifiers:it,ref:$,open:ft?!pt:st,placement:at,popperOptions:ct,popperRef:lt,slotProps:gt,slots:yt},mt,{style:_extends$2({position:"fixed",top:0,left:0,display:kt},dt),TransitionProps:zt,children:et}))})}),INTENTIONAL_DRAG_COUNT_THRESHOLD=2;function asc(s,j){return s-j}function findClosest(s,j){var $;const{index:_e}=($=s.reduce((et,tt,nt)=>{const rt=Math.abs(j-tt);return et===null||rt({left:`${s}%`}),leap:s=>({width:`${s}%`})},"horizontal-reverse":{offset:s=>({right:`${s}%`}),leap:s=>({width:`${s}%`})},vertical:{offset:s=>({bottom:`${s}%`}),leap:s=>({height:`${s}%`})}},Identity$1=s=>s;let cachedSupportsTouchActionNone;function doesSupportTouchActionNone(){return cachedSupportsTouchActionNone===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?cachedSupportsTouchActionNone=CSS.supports("touch-action","none"):cachedSupportsTouchActionNone=!0),cachedSupportsTouchActionNone}function useSlider(s){const{"aria-labelledby":j,defaultValue:$,disabled:_e=!1,disableSwap:et=!1,isRtl:tt=!1,marks:nt=!1,max:rt=100,min:ot=0,name:it,onChange:st,onChangeCommitted:at,orientation:ct="horizontal",rootRef:lt,scale:dt=Identity$1,step:ft=1,shiftStep:gt=10,tabIndex:yt,value:mt}=s,pt=reactExports.useRef(),[xt,Ct]=reactExports.useState(-1),[Dt,wt]=reactExports.useState(-1),[kt,zt]=reactExports.useState(!1),Ot=reactExports.useRef(0),[Ft,Pt]=useControlled({controlled:mt,default:$??ot,name:"Slider"}),Nt=st&&((Et,It,Bt)=>{const Wt=Et.nativeEvent||Et,Vt=new Wt.constructor(Wt.type,Wt);Object.defineProperty(Vt,"target",{writable:!0,value:{value:It,name:it}}),st(Vt,It,Bt)}),ht=Array.isArray(Ft);let bt=ht?Ft.slice().sort(asc):[Ft];bt=bt.map(Et=>Et==null?ot:clamp$2(Et,ot,rt));const St=nt===!0&&ft!==null?[...Array(Math.floor((rt-ot)/ft)+1)].map((Et,It)=>({value:ot+ft*It})):nt||[],vt=St.map(Et=>Et.value),{isFocusVisibleRef:At,onBlur:Tt,onFocus:jt,ref:Lt}=useIsFocusVisible(),[Mt,$t]=reactExports.useState(-1),Ut=reactExports.useRef(),Gt=useForkRef(Lt,Ut),Ht=useForkRef(lt,Gt),tn=Et=>It=>{var Bt;const Wt=Number(It.currentTarget.getAttribute("data-index"));jt(It),At.current===!0&&$t(Wt),wt(Wt),Et==null||(Bt=Et.onFocus)==null||Bt.call(Et,It)},Jt=Et=>It=>{var Bt;Tt(It),At.current===!1&&$t(-1),wt(-1),Et==null||(Bt=Et.onBlur)==null||Bt.call(Et,It)},Kt=(Et,It)=>{const Bt=Number(Et.currentTarget.getAttribute("data-index")),Wt=bt[Bt],Vt=vt.indexOf(Wt);let Yt=It;if(St&&ft==null){const cn=vt[vt.length-1];Yt>cn?Yt=cn:YtIt=>{var Bt;if(ft!==null){const Wt=Number(It.currentTarget.getAttribute("data-index")),Vt=bt[Wt];let Yt=null;(It.key==="ArrowLeft"||It.key==="ArrowDown")&&It.shiftKey||It.key==="PageDown"?Yt=Math.max(Vt-gt,ot):((It.key==="ArrowRight"||It.key==="ArrowUp")&&It.shiftKey||It.key==="PageUp")&&(Yt=Math.min(Vt+gt,rt)),Yt!==null&&(Kt(It,Yt),It.preventDefault())}Et==null||(Bt=Et.onKeyDown)==null||Bt.call(Et,It)};useEnhancedEffect(()=>{if(_e&&Ut.current.contains(document.activeElement)){var Et;(Et=document.activeElement)==null||Et.blur()}},[_e]),_e&&xt!==-1&&Ct(-1),_e&&Mt!==-1&&$t(-1);const en=Et=>It=>{var Bt;(Bt=Et.onChange)==null||Bt.call(Et,It),Kt(It,It.target.valueAsNumber)},qt=reactExports.useRef();let Qt=ct;tt&&ct==="horizontal"&&(Qt+="-reverse");const Zt=({finger:Et,move:It=!1})=>{const{current:Bt}=Ut,{width:Wt,height:Vt,bottom:Yt,left:cn}=Bt.getBoundingClientRect();let pn;Qt.indexOf("vertical")===0?pn=(Yt-Et.y)/Vt:pn=(Et.x-cn)/Wt,Qt.indexOf("-reverse")!==-1&&(pn=1-pn);let un;if(un=percentToValue(pn,ot,rt),ft)un=roundValueToStep(un,ft,ot);else{const xn=findClosest(vt,un);un=vt[xn]}un=clamp$2(un,ot,rt);let En=0;if(ht){It?En=qt.current:En=findClosest(bt,un),et&&(un=clamp$2(un,bt[En-1]||-1/0,bt[En+1]||1/0));const xn=un;un=setValueIndex({values:bt,newValue:un,index:En}),et&&It||(En=un.indexOf(xn),qt.current=En)}return{newValue:un,activeIndex:En}},Xt=useEventCallback(Et=>{const It=trackFinger(Et,pt);if(!It)return;if(Ot.current+=1,Et.type==="mousemove"&&Et.buttons===0){sn(Et);return}const{newValue:Bt,activeIndex:Wt}=Zt({finger:It,move:!0});focusThumb({sliderRef:Ut,activeIndex:Wt,setActive:Ct}),Pt(Bt),!kt&&Ot.current>INTENTIONAL_DRAG_COUNT_THRESHOLD&&zt(!0),Nt&&!areValuesEqual(Bt,Ft)&&Nt(Et,Bt,Wt)}),sn=useEventCallback(Et=>{const It=trackFinger(Et,pt);if(zt(!1),!It)return;const{newValue:Bt}=Zt({finger:It,move:!0});Ct(-1),Et.type==="touchend"&&wt(-1),at&&at(Et,Bt),pt.current=void 0,rn()}),nn=useEventCallback(Et=>{if(_e)return;doesSupportTouchActionNone()||Et.preventDefault();const It=Et.changedTouches[0];It!=null&&(pt.current=It.identifier);const Bt=trackFinger(Et,pt);if(Bt!==!1){const{newValue:Vt,activeIndex:Yt}=Zt({finger:Bt});focusThumb({sliderRef:Ut,activeIndex:Yt,setActive:Ct}),Pt(Vt),Nt&&!areValuesEqual(Vt,Ft)&&Nt(Et,Vt,Yt)}Ot.current=0;const Wt=ownerDocument(Ut.current);Wt.addEventListener("touchmove",Xt,{passive:!0}),Wt.addEventListener("touchend",sn,{passive:!0})}),rn=reactExports.useCallback(()=>{const Et=ownerDocument(Ut.current);Et.removeEventListener("mousemove",Xt),Et.removeEventListener("mouseup",sn),Et.removeEventListener("touchmove",Xt),Et.removeEventListener("touchend",sn)},[sn,Xt]);reactExports.useEffect(()=>{const{current:Et}=Ut;return Et.addEventListener("touchstart",nn,{passive:doesSupportTouchActionNone()}),()=>{Et.removeEventListener("touchstart",nn),rn()}},[rn,nn]),reactExports.useEffect(()=>{_e&&rn()},[_e,rn]);const gn=Et=>It=>{var Bt;if((Bt=Et.onMouseDown)==null||Bt.call(Et,It),_e||It.defaultPrevented||It.button!==0)return;It.preventDefault();const Wt=trackFinger(It,pt);if(Wt!==!1){const{newValue:Yt,activeIndex:cn}=Zt({finger:Wt});focusThumb({sliderRef:Ut,activeIndex:cn,setActive:Ct}),Pt(Yt),Nt&&!areValuesEqual(Yt,Ft)&&Nt(It,Yt,cn)}Ot.current=0;const Vt=ownerDocument(Ut.current);Vt.addEventListener("mousemove",Xt,{passive:!0}),Vt.addEventListener("mouseup",sn)},on=valueToPercent(ht?bt[0]:ot,ot,rt),an=valueToPercent(bt[bt.length-1],ot,rt)-on,hn=(Et={})=>{const It=extractEventHandlers(Et),Bt={onMouseDown:gn(It||{})},Wt=_extends$2({},It,Bt);return _extends$2({},Et,{ref:Ht},Wt)},fn=Et=>It=>{var Bt;(Bt=Et.onMouseOver)==null||Bt.call(Et,It);const Wt=Number(It.currentTarget.getAttribute("data-index"));wt(Wt)},ln=Et=>It=>{var Bt;(Bt=Et.onMouseLeave)==null||Bt.call(Et,It),wt(-1)};return{active:xt,axis:Qt,axisProps,dragging:kt,focusedThumbIndex:Mt,getHiddenInputProps:(Et={})=>{var It;const Bt=extractEventHandlers(Et),Wt={onChange:en(Bt||{}),onFocus:tn(Bt||{}),onBlur:Jt(Bt||{}),onKeyDown:dn(Bt||{})},Vt=_extends$2({},Bt,Wt);return _extends$2({tabIndex:yt,"aria-labelledby":j,"aria-orientation":ct,"aria-valuemax":dt(rt),"aria-valuemin":dt(ot),name:it,type:"range",min:s.min,max:s.max,step:s.step===null&&s.marks?"any":(It=s.step)!=null?It:void 0,disabled:_e},Et,Vt,{style:_extends$2({},visuallyHidden,{direction:tt?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:hn,getThumbProps:(Et={})=>{const It=extractEventHandlers(Et),Bt={onMouseOver:fn(It||{}),onMouseLeave:ln(It||{})};return _extends$2({},Et,It,Bt)},marks:St,open:Dt,range:ht,rootRef:Ht,trackLeap:an,trackOffset:on,values:bt,getThumbStyle:Et=>({pointerEvents:xt!==-1&&xt!==Et?"none":void 0})}}const _excluded$V=["onChange","maxRows","minRows","style","value"];function getStyleValue(s){return parseInt(s,10)||0}const styles$3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function isEmpty$1(s){return s==null||Object.keys(s).length===0||s.outerHeightStyle===0&&!s.overflowing}const TextareaAutosize=reactExports.forwardRef(function(j,$){const{onChange:_e,maxRows:et,minRows:tt=1,style:nt,value:rt}=j,ot=_objectWithoutPropertiesLoose(j,_excluded$V),{current:it}=reactExports.useRef(rt!=null),st=reactExports.useRef(null),at=useForkRef($,st),ct=reactExports.useRef(null),lt=reactExports.useCallback(()=>{const gt=st.current,mt=ownerWindow(gt).getComputedStyle(gt);if(mt.width==="0px")return{outerHeightStyle:0,overflowing:!1};const pt=ct.current;pt.style.width=mt.width,pt.value=gt.value||j.placeholder||"x",pt.value.slice(-1)===` +`&&(pt.value+=" ");const xt=mt.boxSizing,Ct=getStyleValue(mt.paddingBottom)+getStyleValue(mt.paddingTop),Dt=getStyleValue(mt.borderBottomWidth)+getStyleValue(mt.borderTopWidth),wt=pt.scrollHeight;pt.value="x";const kt=pt.scrollHeight;let zt=wt;tt&&(zt=Math.max(Number(tt)*kt,zt)),et&&(zt=Math.min(Number(et)*kt,zt)),zt=Math.max(zt,kt);const Ot=zt+(xt==="border-box"?Ct+Dt:0),Ft=Math.abs(zt-wt)<=1;return{outerHeightStyle:Ot,overflowing:Ft}},[et,tt,j.placeholder]),dt=reactExports.useCallback(()=>{const gt=lt();if(isEmpty$1(gt))return;const yt=st.current;yt.style.height=`${gt.outerHeightStyle}px`,yt.style.overflow=gt.overflowing?"hidden":""},[lt]);useEnhancedEffect(()=>{const gt=()=>{dt()};let yt;const mt=debounce$1(gt),pt=st.current,xt=ownerWindow(pt);xt.addEventListener("resize",mt);let Ct;return typeof ResizeObserver<"u"&&(Ct=new ResizeObserver(gt),Ct.observe(pt)),()=>{mt.clear(),cancelAnimationFrame(yt),xt.removeEventListener("resize",mt),Ct&&Ct.disconnect()}},[lt,dt]),useEnhancedEffect(()=>{dt()});const ft=gt=>{it||dt(),_e&&_e(gt)};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("textarea",_extends$2({value:rt,onChange:ft,ref:at,rows:tt,style:nt},ot)),jsxRuntimeExports.jsx("textarea",{"aria-hidden":!0,className:j.className,readOnly:!0,ref:ct,tabIndex:-1,style:_extends$2({},styles$3.shadow,nt,{paddingTop:0,paddingBottom:0})})]})});var useThemeWithoutDefault={};Object.defineProperty(useThemeWithoutDefault,"__esModule",{value:!0});var default_1=useThemeWithoutDefault.default=void 0,React=_interopRequireWildcard(reactExports),_styledEngine=require$$1$2;function _getRequireWildcardCache(s){if(typeof WeakMap!="function")return null;var j=new WeakMap,$=new WeakMap;return(_getRequireWildcardCache=function(_e){return _e?$:j})(s)}function _interopRequireWildcard(s,j){if(s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var $=_getRequireWildcardCache(j);if($&&$.has(s))return $.get(s);var _e={__proto__:null},et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var tt in s)if(tt!=="default"&&Object.prototype.hasOwnProperty.call(s,tt)){var nt=et?Object.getOwnPropertyDescriptor(s,tt):null;nt&&(nt.get||nt.set)?Object.defineProperty(_e,tt,nt):_e[tt]=s[tt]}return _e.default=s,$&&$.set(s,_e),_e}function isObjectEmpty(s){return Object.keys(s).length===0}function useTheme(s=null){const j=React.useContext(_styledEngine.ThemeContext);return!j||isObjectEmpty(j)?s:j}default_1=useThemeWithoutDefault.default=useTheme;const _excluded$U=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],PopperRoot=styled(Popper$1,{name:"MuiPopper",slot:"Root",overridesResolver:(s,j)=>j.root})({}),Popper=reactExports.forwardRef(function(j,$){var _e;const et=default_1(),tt=useThemeProps$5({props:j,name:"MuiPopper"}),{anchorEl:nt,component:rt,components:ot,componentsProps:it,container:st,disablePortal:at,keepMounted:ct,modifiers:lt,open:dt,placement:ft,popperOptions:gt,popperRef:yt,transition:mt,slots:pt,slotProps:xt}=tt,Ct=_objectWithoutPropertiesLoose(tt,_excluded$U),Dt=(_e=pt==null?void 0:pt.root)!=null?_e:ot==null?void 0:ot.Root,wt=_extends$2({anchorEl:nt,container:st,disablePortal:at,keepMounted:ct,modifiers:lt,open:dt,placement:ft,popperOptions:gt,popperRef:yt,transition:mt},Ct);return jsxRuntimeExports.jsx(PopperRoot,_extends$2({as:rt,direction:et==null?void 0:et.direction,slots:{root:Dt},slotProps:xt??it},wt,{ref:$}))}),CancelIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function getChipUtilityClass(s){return generateUtilityClass$1("MuiChip",s)}const chipClasses=generateUtilityClasses$1("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),_excluded$T=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],useUtilityClasses$N=s=>{const{classes:j,disabled:$,size:_e,color:et,iconColor:tt,onDelete:nt,clickable:rt,variant:ot}=s,it={root:["root",ot,$&&"disabled",`size${capitalize$1(_e)}`,`color${capitalize$1(et)}`,rt&&"clickable",rt&&`clickableColor${capitalize$1(et)}`,nt&&"deletable",nt&&`deletableColor${capitalize$1(et)}`,`${ot}${capitalize$1(et)}`],label:["label",`label${capitalize$1(_e)}`],avatar:["avatar",`avatar${capitalize$1(_e)}`,`avatarColor${capitalize$1(et)}`],icon:["icon",`icon${capitalize$1(_e)}`,`iconColor${capitalize$1(tt)}`],deleteIcon:["deleteIcon",`deleteIcon${capitalize$1(_e)}`,`deleteIconColor${capitalize$1(et)}`,`deleteIcon${capitalize$1(ot)}Color${capitalize$1(et)}`]};return composeClasses(it,getChipUtilityClass,j)},ChipRoot=styled("div",{name:"MuiChip",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s,{color:_e,iconColor:et,clickable:tt,onDelete:nt,size:rt,variant:ot}=$;return[{[`& .${chipClasses.avatar}`]:j.avatar},{[`& .${chipClasses.avatar}`]:j[`avatar${capitalize$1(rt)}`]},{[`& .${chipClasses.avatar}`]:j[`avatarColor${capitalize$1(_e)}`]},{[`& .${chipClasses.icon}`]:j.icon},{[`& .${chipClasses.icon}`]:j[`icon${capitalize$1(rt)}`]},{[`& .${chipClasses.icon}`]:j[`iconColor${capitalize$1(et)}`]},{[`& .${chipClasses.deleteIcon}`]:j.deleteIcon},{[`& .${chipClasses.deleteIcon}`]:j[`deleteIcon${capitalize$1(rt)}`]},{[`& .${chipClasses.deleteIcon}`]:j[`deleteIconColor${capitalize$1(_e)}`]},{[`& .${chipClasses.deleteIcon}`]:j[`deleteIcon${capitalize$1(ot)}Color${capitalize$1(_e)}`]},j.root,j[`size${capitalize$1(rt)}`],j[`color${capitalize$1(_e)}`],tt&&j.clickable,tt&&_e!=="default"&&j[`clickableColor${capitalize$1(_e)})`],nt&&j.deletable,nt&&_e!=="default"&&j[`deletableColor${capitalize$1(_e)}`],j[ot],j[`${ot}${capitalize$1(_e)}`]]}})(({theme:s,ownerState:j})=>{const $=s.palette.mode==="light"?s.palette.grey[700]:s.palette.grey[300];return _extends$2({maxWidth:"100%",fontFamily:s.typography.fontFamily,fontSize:s.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(s.vars||s).palette.text.primary,backgroundColor:(s.vars||s).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:s.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${chipClasses.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${chipClasses.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:s.vars?s.vars.palette.Chip.defaultAvatarColor:$,fontSize:s.typography.pxToRem(12)},[`& .${chipClasses.avatarColorPrimary}`]:{color:(s.vars||s).palette.primary.contrastText,backgroundColor:(s.vars||s).palette.primary.dark},[`& .${chipClasses.avatarColorSecondary}`]:{color:(s.vars||s).palette.secondary.contrastText,backgroundColor:(s.vars||s).palette.secondary.dark},[`& .${chipClasses.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:s.typography.pxToRem(10)},[`& .${chipClasses.icon}`]:_extends$2({marginLeft:5,marginRight:-6},j.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},j.iconColor===j.color&&_extends$2({color:s.vars?s.vars.palette.Chip.defaultIconColor:$},j.color!=="default"&&{color:"inherit"})),[`& .${chipClasses.deleteIcon}`]:_extends$2({WebkitTapHighlightColor:"transparent",color:s.vars?`rgba(${s.vars.palette.text.primaryChannel} / 0.26)`:alpha_1(s.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:s.vars?`rgba(${s.vars.palette.text.primaryChannel} / 0.4)`:alpha_1(s.palette.text.primary,.4)}},j.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},j.color!=="default"&&{color:s.vars?`rgba(${s.vars.palette[j.color].contrastTextChannel} / 0.7)`:alpha_1(s.palette[j.color].contrastText,.7),"&:hover, &:active":{color:(s.vars||s).palette[j.color].contrastText}})},j.size==="small"&&{height:24},j.color!=="default"&&{backgroundColor:(s.vars||s).palette[j.color].main,color:(s.vars||s).palette[j.color].contrastText},j.onDelete&&{[`&.${chipClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.action.selectedChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.focusOpacity}))`:alpha_1(s.palette.action.selected,s.palette.action.selectedOpacity+s.palette.action.focusOpacity)}},j.onDelete&&j.color!=="default"&&{[`&.${chipClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette[j.color].dark}})},({theme:s,ownerState:j})=>_extends$2({},j.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:s.vars?`rgba(${s.vars.palette.action.selectedChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha_1(s.palette.action.selected,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.action.selectedChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.focusOpacity}))`:alpha_1(s.palette.action.selected,s.palette.action.selectedOpacity+s.palette.action.focusOpacity)},"&:active":{boxShadow:(s.vars||s).shadows[1]}},j.clickable&&j.color!=="default"&&{[`&:hover, &.${chipClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette[j.color].dark}}),({theme:s,ownerState:j})=>_extends$2({},j.variant==="outlined"&&{backgroundColor:"transparent",border:s.vars?`1px solid ${s.vars.palette.Chip.defaultBorder}`:`1px solid ${s.palette.mode==="light"?s.palette.grey[400]:s.palette.grey[700]}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:(s.vars||s).palette.action.hover},[`&.${chipClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`& .${chipClasses.avatar}`]:{marginLeft:4},[`& .${chipClasses.avatarSmall}`]:{marginLeft:2},[`& .${chipClasses.icon}`]:{marginLeft:4},[`& .${chipClasses.iconSmall}`]:{marginLeft:2},[`& .${chipClasses.deleteIcon}`]:{marginRight:5},[`& .${chipClasses.deleteIconSmall}`]:{marginRight:3}},j.variant==="outlined"&&j.color!=="default"&&{color:(s.vars||s).palette[j.color].main,border:`1px solid ${s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / 0.7)`:alpha_1(s.palette[j.color].main,.7)}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette[j.color].main,s.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.focusOpacity})`:alpha_1(s.palette[j.color].main,s.palette.action.focusOpacity)},[`& .${chipClasses.deleteIcon}`]:{color:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / 0.7)`:alpha_1(s.palette[j.color].main,.7),"&:hover, &:active":{color:(s.vars||s).palette[j.color].main}}})),ChipLabel=styled("span",{name:"MuiChip",slot:"Label",overridesResolver:(s,j)=>{const{ownerState:$}=s,{size:_e}=$;return[j.label,j[`label${capitalize$1(_e)}`]]}})(({ownerState:s})=>_extends$2({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},s.variant==="outlined"&&{paddingLeft:11,paddingRight:11},s.size==="small"&&{paddingLeft:8,paddingRight:8},s.size==="small"&&s.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function isDeleteKeyboardEvent(s){return s.key==="Backspace"||s.key==="Delete"}const Chip=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiChip"}),{avatar:et,className:tt,clickable:nt,color:rt="default",component:ot,deleteIcon:it,disabled:st=!1,icon:at,label:ct,onClick:lt,onDelete:dt,onKeyDown:ft,onKeyUp:gt,size:yt="medium",variant:mt="filled",tabIndex:pt,skipFocusWhenDisabled:xt=!1}=_e,Ct=_objectWithoutPropertiesLoose(_e,_excluded$T),Dt=reactExports.useRef(null),wt=useForkRef(Dt,$),kt=Tt=>{Tt.stopPropagation(),dt&&dt(Tt)},zt=Tt=>{Tt.currentTarget===Tt.target&&isDeleteKeyboardEvent(Tt)&&Tt.preventDefault(),ft&&ft(Tt)},Ot=Tt=>{Tt.currentTarget===Tt.target&&(dt&&isDeleteKeyboardEvent(Tt)?dt(Tt):Tt.key==="Escape"&&Dt.current&&Dt.current.blur()),gt&>(Tt)},Ft=nt!==!1&<?!0:nt,Pt=Ft||dt?ButtonBase:ot||"div",Nt=_extends$2({},_e,{component:Pt,disabled:st,size:yt,color:rt,iconColor:reactExports.isValidElement(at)&&at.props.color||rt,onDelete:!!dt,clickable:Ft,variant:mt}),ht=useUtilityClasses$N(Nt),bt=Pt===ButtonBase?_extends$2({component:ot||"div",focusVisibleClassName:ht.focusVisible},dt&&{disableRipple:!0}):{};let St=null;dt&&(St=it&&reactExports.isValidElement(it)?reactExports.cloneElement(it,{className:clsx(it.props.className,ht.deleteIcon),onClick:kt}):jsxRuntimeExports.jsx(CancelIcon,{className:clsx(ht.deleteIcon),onClick:kt}));let vt=null;et&&reactExports.isValidElement(et)&&(vt=reactExports.cloneElement(et,{className:clsx(ht.avatar,et.props.className)}));let At=null;return at&&reactExports.isValidElement(at)&&(At=reactExports.cloneElement(at,{className:clsx(ht.icon,at.props.className)})),jsxRuntimeExports.jsxs(ChipRoot,_extends$2({as:Pt,className:clsx(ht.root,tt),disabled:Ft&&st?!0:void 0,onClick:lt,onKeyDown:zt,onKeyUp:Ot,ref:wt,tabIndex:xt&&st?-1:pt,ownerState:Nt},bt,Ct,{children:[vt||At,jsxRuntimeExports.jsx(ChipLabel,{className:clsx(ht.label),ownerState:Nt,children:ct}),St]}))});function formControlState({props:s,states:j,muiFormControl:$}){return j.reduce((_e,et)=>(_e[et]=s[et],$&&typeof s[et]>"u"&&(_e[et]=$[et]),_e),{})}const FormControlContext=reactExports.createContext(void 0);function useFormControl(){return reactExports.useContext(FormControlContext)}function GlobalStyles(s){return jsxRuntimeExports.jsx(GlobalStyles$1,_extends$2({},s,{defaultTheme:defaultTheme$1,themeId:THEME_ID}))}function hasValue(s){return s!=null&&!(Array.isArray(s)&&s.length===0)}function isFilled(s,j=!1){return s&&(hasValue(s.value)&&s.value!==""||j&&hasValue(s.defaultValue)&&s.defaultValue!=="")}function isAdornedStart(s){return s.startAdornment}function getInputBaseUtilityClass(s){return generateUtilityClass$1("MuiInputBase",s)}const inputBaseClasses=generateUtilityClasses$1("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_excluded$S=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],rootOverridesResolver=(s,j)=>{const{ownerState:$}=s;return[j.root,$.formControl&&j.formControl,$.startAdornment&&j.adornedStart,$.endAdornment&&j.adornedEnd,$.error&&j.error,$.size==="small"&&j.sizeSmall,$.multiline&&j.multiline,$.color&&j[`color${capitalize$1($.color)}`],$.fullWidth&&j.fullWidth,$.hiddenLabel&&j.hiddenLabel]},inputOverridesResolver=(s,j)=>{const{ownerState:$}=s;return[j.input,$.size==="small"&&j.inputSizeSmall,$.multiline&&j.inputMultiline,$.type==="search"&&j.inputTypeSearch,$.startAdornment&&j.inputAdornedStart,$.endAdornment&&j.inputAdornedEnd,$.hiddenLabel&&j.inputHiddenLabel]},useUtilityClasses$M=s=>{const{classes:j,color:$,disabled:_e,error:et,endAdornment:tt,focused:nt,formControl:rt,fullWidth:ot,hiddenLabel:it,multiline:st,readOnly:at,size:ct,startAdornment:lt,type:dt}=s,ft={root:["root",`color${capitalize$1($)}`,_e&&"disabled",et&&"error",ot&&"fullWidth",nt&&"focused",rt&&"formControl",ct&&ct!=="medium"&&`size${capitalize$1(ct)}`,st&&"multiline",lt&&"adornedStart",tt&&"adornedEnd",it&&"hiddenLabel",at&&"readOnly"],input:["input",_e&&"disabled",dt==="search"&&"inputTypeSearch",st&&"inputMultiline",ct==="small"&&"inputSizeSmall",it&&"inputHiddenLabel",lt&&"inputAdornedStart",tt&&"inputAdornedEnd",at&&"readOnly"]};return composeClasses(ft,getInputBaseUtilityClass,j)},InputBaseRoot=styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:s,ownerState:j})=>_extends$2({},s.typography.body1,{color:(s.vars||s).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${inputBaseClasses.disabled}`]:{color:(s.vars||s).palette.text.disabled,cursor:"default"}},j.multiline&&_extends$2({padding:"4px 0 5px"},j.size==="small"&&{paddingTop:1}),j.fullWidth&&{width:"100%"})),InputBaseComponent=styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:s,ownerState:j})=>{const $=s.palette.mode==="light",_e=_extends$2({color:"currentColor"},s.vars?{opacity:s.vars.opacity.inputPlaceholder}:{opacity:$?.42:.5},{transition:s.transitions.create("opacity",{duration:s.transitions.duration.shorter})}),et={opacity:"0 !important"},tt=s.vars?{opacity:s.vars.opacity.inputPlaceholder}:{opacity:$?.42:.5};return _extends$2({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":_e,"&::-moz-placeholder":_e,"&:-ms-input-placeholder":_e,"&::-ms-input-placeholder":_e,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${inputBaseClasses.formControl} &`]:{"&::-webkit-input-placeholder":et,"&::-moz-placeholder":et,"&:-ms-input-placeholder":et,"&::-ms-input-placeholder":et,"&:focus::-webkit-input-placeholder":tt,"&:focus::-moz-placeholder":tt,"&:focus:-ms-input-placeholder":tt,"&:focus::-ms-input-placeholder":tt},[`&.${inputBaseClasses.disabled}`]:{opacity:1,WebkitTextFillColor:(s.vars||s).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},j.size==="small"&&{paddingTop:1},j.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},j.type==="search"&&{MozAppearance:"textfield"})}),inputGlobalStyles=jsxRuntimeExports.jsx(GlobalStyles,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),InputBase=reactExports.forwardRef(function(j,$){var _e;const et=useThemeProps$5({props:j,name:"MuiInputBase"}),{"aria-describedby":tt,autoComplete:nt,autoFocus:rt,className:ot,components:it={},componentsProps:st={},defaultValue:at,disabled:ct,disableInjectingGlobalStyles:lt,endAdornment:dt,fullWidth:ft=!1,id:gt,inputComponent:yt="input",inputProps:mt={},inputRef:pt,maxRows:xt,minRows:Ct,multiline:Dt=!1,name:wt,onBlur:kt,onChange:zt,onClick:Ot,onFocus:Ft,onKeyDown:Pt,onKeyUp:Nt,placeholder:ht,readOnly:bt,renderSuffix:St,rows:vt,slotProps:At={},slots:Tt={},startAdornment:jt,type:Lt="text",value:Mt}=et,$t=_objectWithoutPropertiesLoose(et,_excluded$S),Ut=mt.value!=null?mt.value:Mt,{current:Gt}=reactExports.useRef(Ut!=null),Ht=reactExports.useRef(),tn=reactExports.useCallback(Et=>{},[]),Jt=useForkRef(Ht,pt,mt.ref,tn),[Kt,dn]=reactExports.useState(!1),en=useFormControl(),qt=formControlState({props:et,muiFormControl:en,states:["color","disabled","error","hiddenLabel","size","required","filled"]});qt.focused=en?en.focused:Kt,reactExports.useEffect(()=>{!en&&ct&&Kt&&(dn(!1),kt&&kt())},[en,ct,Kt,kt]);const Qt=en&&en.onFilled,Zt=en&&en.onEmpty,Xt=reactExports.useCallback(Et=>{isFilled(Et)?Qt&&Qt():Zt&&Zt()},[Qt,Zt]);useEnhancedEffect(()=>{Gt&&Xt({value:Ut})},[Ut,Xt,Gt]);const sn=Et=>{if(qt.disabled){Et.stopPropagation();return}Ft&&Ft(Et),mt.onFocus&&mt.onFocus(Et),en&&en.onFocus?en.onFocus(Et):dn(!0)},nn=Et=>{kt&&kt(Et),mt.onBlur&&mt.onBlur(Et),en&&en.onBlur?en.onBlur(Et):dn(!1)},rn=(Et,...It)=>{if(!Gt){const Bt=Et.target||Ht.current;if(Bt==null)throw new Error(formatMuiErrorMessage$1(1));Xt({value:Bt.value})}mt.onChange&&mt.onChange(Et,...It),zt&&zt(Et,...It)};reactExports.useEffect(()=>{Xt(Ht.current)},[]);const gn=Et=>{Ht.current&&Et.currentTarget===Et.target&&Ht.current.focus(),Ot&&Ot(Et)};let on=yt,an=mt;Dt&&on==="input"&&(vt?an=_extends$2({type:void 0,minRows:vt,maxRows:vt},an):an=_extends$2({type:void 0,maxRows:xt,minRows:Ct},an),on=TextareaAutosize);const hn=Et=>{Xt(Et.animationName==="mui-auto-fill-cancel"?Ht.current:{value:"x"})};reactExports.useEffect(()=>{en&&en.setAdornedStart(!!jt)},[en,jt]);const fn=_extends$2({},et,{color:qt.color||"primary",disabled:qt.disabled,endAdornment:dt,error:qt.error,focused:qt.focused,formControl:en,fullWidth:ft,hiddenLabel:qt.hiddenLabel,multiline:Dt,size:qt.size,startAdornment:jt,type:Lt}),ln=useUtilityClasses$M(fn),yn=Tt.root||it.Root||InputBaseRoot,mn=At.root||st.root||{},Rt=Tt.input||it.Input||InputBaseComponent;return an=_extends$2({},an,(_e=At.input)!=null?_e:st.input),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[!lt&&inputGlobalStyles,jsxRuntimeExports.jsxs(yn,_extends$2({},mn,!isHostComponent(yn)&&{ownerState:_extends$2({},fn,mn.ownerState)},{ref:$,onClick:gn},$t,{className:clsx(ln.root,mn.className,ot,bt&&"MuiInputBase-readOnly"),children:[jt,jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(Rt,_extends$2({ownerState:fn,"aria-invalid":qt.error,"aria-describedby":tt,autoComplete:nt,autoFocus:rt,defaultValue:at,disabled:qt.disabled,id:gt,onAnimationStart:hn,name:wt,placeholder:ht,readOnly:bt,required:qt.required,rows:vt,value:Ut,onKeyDown:Pt,onKeyUp:Nt,type:Lt},an,!isHostComponent(Rt)&&{as:on,ownerState:_extends$2({},fn,an.ownerState)},{ref:Jt,className:clsx(ln.input,an.className,bt&&"MuiInputBase-readOnly"),onBlur:nn,onChange:rn,onFocus:sn}))}),dt,St?St(_extends$2({},qt,{startAdornment:jt})):null]}))]})}),InputBase$1=InputBase;function getInputUtilityClass(s){return generateUtilityClass$1("MuiInput",s)}const inputClasses=_extends$2({},inputBaseClasses,generateUtilityClasses$1("MuiInput",["root","underline","input"]));function getOutlinedInputUtilityClass(s){return generateUtilityClass$1("MuiOutlinedInput",s)}const outlinedInputClasses=_extends$2({},inputBaseClasses,generateUtilityClasses$1("MuiOutlinedInput",["root","notchedOutline","input"]));function getFilledInputUtilityClass(s){return generateUtilityClass$1("MuiFilledInput",s)}const filledInputClasses=_extends$2({},inputBaseClasses,generateUtilityClasses$1("MuiFilledInput",["root","underline","input"])),ArrowDropDownIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),_excluded$R=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],styles$2={entering:{opacity:1},entered:{opacity:1}},Fade=reactExports.forwardRef(function(j,$){const _e=useTheme$1(),et={enter:_e.transitions.duration.enteringScreen,exit:_e.transitions.duration.leavingScreen},{addEndListener:tt,appear:nt=!0,children:rt,easing:ot,in:it,onEnter:st,onEntered:at,onEntering:ct,onExit:lt,onExited:dt,onExiting:ft,style:gt,timeout:yt=et,TransitionComponent:mt=Transition}=j,pt=_objectWithoutPropertiesLoose(j,_excluded$R),xt=reactExports.useRef(null),Ct=useForkRef(xt,rt.ref,$),Dt=ht=>bt=>{if(ht){const St=xt.current;bt===void 0?ht(St):ht(St,bt)}},wt=Dt(ct),kt=Dt((ht,bt)=>{reflow(ht);const St=getTransitionProps({style:gt,timeout:yt,easing:ot},{mode:"enter"});ht.style.webkitTransition=_e.transitions.create("opacity",St),ht.style.transition=_e.transitions.create("opacity",St),st&&st(ht,bt)}),zt=Dt(at),Ot=Dt(ft),Ft=Dt(ht=>{const bt=getTransitionProps({style:gt,timeout:yt,easing:ot},{mode:"exit"});ht.style.webkitTransition=_e.transitions.create("opacity",bt),ht.style.transition=_e.transitions.create("opacity",bt),lt&<(ht)}),Pt=Dt(dt),Nt=ht=>{tt&&tt(xt.current,ht)};return jsxRuntimeExports.jsx(mt,_extends$2({appear:nt,in:it,nodeRef:xt,onEnter:kt,onEntered:zt,onEntering:wt,onExit:Ft,onExited:Pt,onExiting:Ot,addEndListener:Nt,timeout:yt},pt,{children:(ht,bt)=>reactExports.cloneElement(rt,_extends$2({style:_extends$2({opacity:0,visibility:ht==="exited"&&!it?"hidden":void 0},styles$2[ht],gt,rt.props.style),ref:Ct},bt))}))});function getBackdropUtilityClass(s){return generateUtilityClass$1("MuiBackdrop",s)}generateUtilityClasses$1("MuiBackdrop",["root","invisible"]);const _excluded$Q=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],useUtilityClasses$L=s=>{const{classes:j,invisible:$}=s;return composeClasses({root:["root",$&&"invisible"]},getBackdropUtilityClass,j)},BackdropRoot=styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.invisible&&j.invisible]}})(({ownerState:s})=>_extends$2({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},s.invisible&&{backgroundColor:"transparent"})),Backdrop=reactExports.forwardRef(function(j,$){var _e,et,tt;const nt=useThemeProps$5({props:j,name:"MuiBackdrop"}),{children:rt,className:ot,component:it="div",components:st={},componentsProps:at={},invisible:ct=!1,open:lt,slotProps:dt={},slots:ft={},TransitionComponent:gt=Fade,transitionDuration:yt}=nt,mt=_objectWithoutPropertiesLoose(nt,_excluded$Q),pt=_extends$2({},nt,{component:it,invisible:ct}),xt=useUtilityClasses$L(pt),Ct=(_e=dt.root)!=null?_e:at.root;return jsxRuntimeExports.jsx(gt,_extends$2({in:lt,timeout:yt},mt,{children:jsxRuntimeExports.jsx(BackdropRoot,_extends$2({"aria-hidden":!0},Ct,{as:(et=(tt=ft.root)!=null?tt:st.Root)!=null?et:it,className:clsx(xt.root,ot,Ct==null?void 0:Ct.className),ownerState:_extends$2({},pt,Ct==null?void 0:Ct.ownerState),classes:xt,ref:$,children:rt}))}))}),boxClasses=generateUtilityClasses$1("MuiBox",["root"]),defaultTheme=createTheme(),Box=createBox({themeId:THEME_ID,defaultTheme,defaultClassName:boxClasses.root,generateClassName:ClassNameGenerator.generate});function getButtonUtilityClass(s){return generateUtilityClass$1("MuiButton",s)}const buttonClasses=generateUtilityClasses$1("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ButtonGroupContext=reactExports.createContext({}),ButtonGroupButtonContext=reactExports.createContext(void 0),_excluded$P=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$K=s=>{const{color:j,disableElevation:$,fullWidth:_e,size:et,variant:tt,classes:nt}=s,rt={root:["root",tt,`${tt}${capitalize$1(j)}`,`size${capitalize$1(et)}`,`${tt}Size${capitalize$1(et)}`,`color${capitalize$1(j)}`,$&&"disableElevation",_e&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${capitalize$1(et)}`],endIcon:["icon","endIcon",`iconSize${capitalize$1(et)}`]},ot=composeClasses(rt,getButtonUtilityClass,nt);return _extends$2({},nt,ot)},commonIconStyles=s=>_extends$2({},s.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},s.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},s.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled(ButtonBase,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiButton",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.variant],j[`${$.variant}${capitalize$1($.color)}`],j[`size${capitalize$1($.size)}`],j[`${$.variant}Size${capitalize$1($.size)}`],$.color==="inherit"&&j.colorInherit,$.disableElevation&&j.disableElevation,$.fullWidth&&j.fullWidth]}})(({theme:s,ownerState:j})=>{var $,_e;const et=s.palette.mode==="light"?s.palette.grey[300]:s.palette.grey[800],tt=s.palette.mode==="light"?s.palette.grey.A100:s.palette.grey[700];return _extends$2({},s.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(s.vars||s).shape.borderRadius,transition:s.transitions.create(["background-color","box-shadow","border-color","color"],{duration:s.transitions.duration.short}),"&:hover":_extends$2({textDecoration:"none",backgroundColor:s.vars?`rgba(${s.vars.palette.text.primaryChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette.text.primary,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},j.variant==="text"&&j.color!=="inherit"&&{backgroundColor:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette[j.color].main,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},j.variant==="outlined"&&j.color!=="inherit"&&{border:`1px solid ${(s.vars||s).palette[j.color].main}`,backgroundColor:s.vars?`rgba(${s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(s.palette[j.color].main,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},j.variant==="contained"&&{backgroundColor:s.vars?s.vars.palette.Button.inheritContainedHoverBg:tt,boxShadow:(s.vars||s).shadows[4],"@media (hover: none)":{boxShadow:(s.vars||s).shadows[2],backgroundColor:(s.vars||s).palette.grey[300]}},j.variant==="contained"&&j.color!=="inherit"&&{backgroundColor:(s.vars||s).palette[j.color].dark,"@media (hover: none)":{backgroundColor:(s.vars||s).palette[j.color].main}}),"&:active":_extends$2({},j.variant==="contained"&&{boxShadow:(s.vars||s).shadows[8]}),[`&.${buttonClasses.focusVisible}`]:_extends$2({},j.variant==="contained"&&{boxShadow:(s.vars||s).shadows[6]}),[`&.${buttonClasses.disabled}`]:_extends$2({color:(s.vars||s).palette.action.disabled},j.variant==="outlined"&&{border:`1px solid ${(s.vars||s).palette.action.disabledBackground}`},j.variant==="contained"&&{color:(s.vars||s).palette.action.disabled,boxShadow:(s.vars||s).shadows[0],backgroundColor:(s.vars||s).palette.action.disabledBackground})},j.variant==="text"&&{padding:"6px 8px"},j.variant==="text"&&j.color!=="inherit"&&{color:(s.vars||s).palette[j.color].main},j.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},j.variant==="outlined"&&j.color!=="inherit"&&{color:(s.vars||s).palette[j.color].main,border:s.vars?`1px solid rgba(${s.vars.palette[j.color].mainChannel} / 0.5)`:`1px solid ${alpha_1(s.palette[j.color].main,.5)}`},j.variant==="contained"&&{color:s.vars?s.vars.palette.text.primary:($=(_e=s.palette).getContrastText)==null?void 0:$.call(_e,s.palette.grey[300]),backgroundColor:s.vars?s.vars.palette.Button.inheritContainedBg:et,boxShadow:(s.vars||s).shadows[2]},j.variant==="contained"&&j.color!=="inherit"&&{color:(s.vars||s).palette[j.color].contrastText,backgroundColor:(s.vars||s).palette[j.color].main},j.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},j.size==="small"&&j.variant==="text"&&{padding:"4px 5px",fontSize:s.typography.pxToRem(13)},j.size==="large"&&j.variant==="text"&&{padding:"8px 11px",fontSize:s.typography.pxToRem(15)},j.size==="small"&&j.variant==="outlined"&&{padding:"3px 9px",fontSize:s.typography.pxToRem(13)},j.size==="large"&&j.variant==="outlined"&&{padding:"7px 21px",fontSize:s.typography.pxToRem(15)},j.size==="small"&&j.variant==="contained"&&{padding:"4px 10px",fontSize:s.typography.pxToRem(13)},j.size==="large"&&j.variant==="contained"&&{padding:"8px 22px",fontSize:s.typography.pxToRem(15)},j.fullWidth&&{width:"100%"})},({ownerState:s})=>s.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.startIcon,j[`iconSize${capitalize$1($.size)}`]]}})(({ownerState:s})=>_extends$2({display:"inherit",marginRight:8,marginLeft:-4},s.size==="small"&&{marginLeft:-2},commonIconStyles(s))),ButtonEndIcon=styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.endIcon,j[`iconSize${capitalize$1($.size)}`]]}})(({ownerState:s})=>_extends$2({display:"inherit",marginRight:-4,marginLeft:8},s.size==="small"&&{marginRight:-2},commonIconStyles(s))),Button=reactExports.forwardRef(function(j,$){const _e=reactExports.useContext(ButtonGroupContext),et=reactExports.useContext(ButtonGroupButtonContext),tt=resolveProps(_e,j),nt=useThemeProps$5({props:tt,name:"MuiButton"}),{children:rt,color:ot="primary",component:it="button",className:st,disabled:at=!1,disableElevation:ct=!1,disableFocusRipple:lt=!1,endIcon:dt,focusVisibleClassName:ft,fullWidth:gt=!1,size:yt="medium",startIcon:mt,type:pt,variant:xt="text"}=nt,Ct=_objectWithoutPropertiesLoose(nt,_excluded$P),Dt=_extends$2({},nt,{color:ot,component:it,disabled:at,disableElevation:ct,disableFocusRipple:lt,fullWidth:gt,size:yt,type:pt,variant:xt}),wt=useUtilityClasses$K(Dt),kt=mt&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:wt.startIcon,ownerState:Dt,children:mt}),zt=dt&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:wt.endIcon,ownerState:Dt,children:dt}),Ot=et||"";return jsxRuntimeExports.jsxs(ButtonRoot,_extends$2({ownerState:Dt,className:clsx(_e.className,wt.root,st,Ot),component:it,disabled:at,focusRipple:!lt,focusVisibleClassName:clsx(wt.focusVisible,ft),ref:$,type:pt},Ct,{classes:wt,children:[kt,rt,zt]}))});function getCardUtilityClass(s){return generateUtilityClass$1("MuiCard",s)}generateUtilityClasses$1("MuiCard",["root"]);const _excluded$O=["className","raised"],useUtilityClasses$J=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getCardUtilityClass,j)},CardRoot=styled(Paper,{name:"MuiCard",slot:"Root",overridesResolver:(s,j)=>j.root})(()=>({overflow:"hidden"})),Card=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiCard"}),{className:et,raised:tt=!1}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$O),rt=_extends$2({},_e,{raised:tt}),ot=useUtilityClasses$J(rt);return jsxRuntimeExports.jsx(CardRoot,_extends$2({className:clsx(ot.root,et),elevation:tt?8:void 0,ref:$,ownerState:rt},nt))});function getCardActionAreaUtilityClass(s){return generateUtilityClass$1("MuiCardActionArea",s)}const cardActionAreaClasses=generateUtilityClasses$1("MuiCardActionArea",["root","focusVisible","focusHighlight"]),_excluded$N=["children","className","focusVisibleClassName"],useUtilityClasses$I=s=>{const{classes:j}=s;return composeClasses({root:["root"],focusHighlight:["focusHighlight"]},getCardActionAreaUtilityClass,j)},CardActionAreaRoot=styled(ButtonBase,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(s,j)=>j.root})(({theme:s})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${cardActionAreaClasses.focusHighlight}`]:{opacity:(s.vars||s).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${cardActionAreaClasses.focusVisible} .${cardActionAreaClasses.focusHighlight}`]:{opacity:(s.vars||s).palette.action.focusOpacity}})),CardActionAreaFocusHighlight=styled("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(s,j)=>j.focusHighlight})(({theme:s})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:s.transitions.create("opacity",{duration:s.transitions.duration.short})})),CardActionArea=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiCardActionArea"}),{children:et,className:tt,focusVisibleClassName:nt}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$N),ot=_e,it=useUtilityClasses$I(ot);return jsxRuntimeExports.jsxs(CardActionAreaRoot,_extends$2({className:clsx(it.root,tt),focusVisibleClassName:clsx(nt,it.focusVisible),ref:$,ownerState:ot},rt,{children:[et,jsxRuntimeExports.jsx(CardActionAreaFocusHighlight,{className:it.focusHighlight,ownerState:ot})]}))});function getSwitchBaseUtilityClass(s){return generateUtilityClass$1("PrivateSwitchBase",s)}generateUtilityClasses$1("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _excluded$M=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],useUtilityClasses$H=s=>{const{classes:j,checked:$,disabled:_e,edge:et}=s,tt={root:["root",$&&"checked",_e&&"disabled",et&&`edge${capitalize$1(et)}`],input:["input"]};return composeClasses(tt,getSwitchBaseUtilityClass,j)},SwitchBaseRoot=styled(ButtonBase)(({ownerState:s})=>_extends$2({padding:9,borderRadius:"50%"},s.edge==="start"&&{marginLeft:s.size==="small"?-3:-12},s.edge==="end"&&{marginRight:s.size==="small"?-3:-12})),SwitchBaseInput=styled("input",{shouldForwardProp:rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),SwitchBase=reactExports.forwardRef(function(j,$){const{autoFocus:_e,checked:et,checkedIcon:tt,className:nt,defaultChecked:rt,disabled:ot,disableFocusRipple:it=!1,edge:st=!1,icon:at,id:ct,inputProps:lt,inputRef:dt,name:ft,onBlur:gt,onChange:yt,onFocus:mt,readOnly:pt,required:xt=!1,tabIndex:Ct,type:Dt,value:wt}=j,kt=_objectWithoutPropertiesLoose(j,_excluded$M),[zt,Ot]=useControlled({controlled:et,default:!!rt,name:"SwitchBase",state:"checked"}),Ft=useFormControl(),Pt=Tt=>{mt&&mt(Tt),Ft&&Ft.onFocus&&Ft.onFocus(Tt)},Nt=Tt=>{gt&>(Tt),Ft&&Ft.onBlur&&Ft.onBlur(Tt)},ht=Tt=>{if(Tt.nativeEvent.defaultPrevented)return;const jt=Tt.target.checked;Ot(jt),yt&&yt(Tt,jt)};let bt=ot;Ft&&typeof bt>"u"&&(bt=Ft.disabled);const St=Dt==="checkbox"||Dt==="radio",vt=_extends$2({},j,{checked:zt,disabled:bt,disableFocusRipple:it,edge:st}),At=useUtilityClasses$H(vt);return jsxRuntimeExports.jsxs(SwitchBaseRoot,_extends$2({component:"span",className:clsx(At.root,nt),centerRipple:!0,focusRipple:!it,disabled:bt,tabIndex:null,role:void 0,onFocus:Pt,onBlur:Nt,ownerState:vt,ref:$},kt,{children:[jsxRuntimeExports.jsx(SwitchBaseInput,_extends$2({autoFocus:_e,checked:et,defaultChecked:rt,className:At.input,disabled:bt,id:St?ct:void 0,name:ft,onChange:ht,readOnly:pt,ref:dt,required:xt,ownerState:vt,tabIndex:Ct,type:Dt},Dt==="checkbox"&&wt===void 0?{}:{value:wt},lt)),zt?tt:at]}))}),CheckBoxOutlineBlankIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),CheckBoxIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),IndeterminateCheckBoxIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function getCheckboxUtilityClass(s){return generateUtilityClass$1("MuiCheckbox",s)}const checkboxClasses=generateUtilityClasses$1("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_excluded$L=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],useUtilityClasses$G=s=>{const{classes:j,indeterminate:$,color:_e,size:et}=s,tt={root:["root",$&&"indeterminate",`color${capitalize$1(_e)}`,`size${capitalize$1(et)}`]},nt=composeClasses(tt,getCheckboxUtilityClass,j);return _extends$2({},j,nt)},CheckboxRoot=styled(SwitchBase,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.indeterminate&&j.indeterminate,j[`size${capitalize$1($.size)}`],$.color!=="default"&&j[`color${capitalize$1($.color)}`]]}})(({theme:s,ownerState:j})=>_extends$2({color:(s.vars||s).palette.text.secondary},!j.disableRipple&&{"&:hover":{backgroundColor:s.vars?`rgba(${j.color==="default"?s.vars.palette.action.activeChannel:s.vars.palette[j.color].mainChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha_1(j.color==="default"?s.palette.action.active:s.palette[j.color].main,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},j.color!=="default"&&{[`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]:{color:(s.vars||s).palette[j.color].main},[`&.${checkboxClasses.disabled}`]:{color:(s.vars||s).palette.action.disabled}})),defaultCheckedIcon=jsxRuntimeExports.jsx(CheckBoxIcon,{}),defaultIcon=jsxRuntimeExports.jsx(CheckBoxOutlineBlankIcon,{}),defaultIndeterminateIcon=jsxRuntimeExports.jsx(IndeterminateCheckBoxIcon,{}),Checkbox=reactExports.forwardRef(function(j,$){var _e,et;const tt=useThemeProps$5({props:j,name:"MuiCheckbox"}),{checkedIcon:nt=defaultCheckedIcon,color:rt="primary",icon:ot=defaultIcon,indeterminate:it=!1,indeterminateIcon:st=defaultIndeterminateIcon,inputProps:at,size:ct="medium",className:lt}=tt,dt=_objectWithoutPropertiesLoose(tt,_excluded$L),ft=it?st:ot,gt=it?st:nt,yt=_extends$2({},tt,{color:rt,indeterminate:it,size:ct}),mt=useUtilityClasses$G(yt);return jsxRuntimeExports.jsx(CheckboxRoot,_extends$2({type:"checkbox",inputProps:_extends$2({"data-indeterminate":it},at),icon:reactExports.cloneElement(ft,{fontSize:(_e=ft.props.fontSize)!=null?_e:ct}),checkedIcon:reactExports.cloneElement(gt,{fontSize:(et=gt.props.fontSize)!=null?et:ct}),ownerState:yt,ref:$,className:clsx(mt.root,lt)},dt,{classes:mt}))});function getCircularProgressUtilityClass(s){return generateUtilityClass$1("MuiCircularProgress",s)}generateUtilityClasses$1("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _excluded$K=["className","color","disableShrink","size","style","thickness","value","variant"];let _$1=s=>s,_t$1,_t2$1,_t3$1,_t4$1;const SIZE=44,circularRotateKeyframe=keyframes(_t$1||(_t$1=_$1` 0% { transform: rotate(0deg); } @@ -166,7 +166,7 @@ Error generating stack: `+tt.message+` animation: ${0} 1.4s linear infinite; `),circularRotateKeyframe)),CircularProgressSVG=styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(s,j)=>j.svg})({display:"block"}),CircularProgressCircle=styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.circle,j[`circle${capitalize$1($.variant)}`],$.disableShrink&&j.circleDisableShrink]}})(({ownerState:s,theme:j})=>_extends$2({stroke:"currentColor"},s.variant==="determinate"&&{transition:j.transitions.create("stroke-dashoffset")},s.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:s})=>s.variant==="indeterminate"&&!s.disableShrink&&css(_t4$1||(_t4$1=_$1` animation: ${0} 1.4s ease-in-out infinite; - `),circularDashKeyframe)),CircularProgress=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiCircularProgress"}),{className:et,color:tt="primary",disableShrink:nt=!1,size:rt=40,style:ot,thickness:it=3.6,value:st=0,variant:at="indeterminate"}=_e,ct=_objectWithoutPropertiesLoose(_e,_excluded$K),lt=_extends$2({},_e,{color:tt,disableShrink:nt,size:rt,thickness:it,value:st,variant:at}),dt=useUtilityClasses$F(lt),pt={},ht={},yt={};if(at==="determinate"){const gt=2*Math.PI*((SIZE-it)/2);pt.strokeDasharray=gt.toFixed(3),yt["aria-valuenow"]=Math.round(st),pt.strokeDashoffset=`${((100-st)/100*gt).toFixed(3)}px`,ht.transform="rotate(-90deg)"}return jsxRuntimeExports.jsx(CircularProgressRoot,_extends$2({className:clsx(dt.root,et),style:_extends$2({width:rt,height:rt},ht,ot),ownerState:lt,ref:$,role:"progressbar"},yt,ct,{children:jsxRuntimeExports.jsx(CircularProgressSVG,{className:dt.svg,ownerState:lt,viewBox:`${SIZE/2} ${SIZE/2} ${SIZE} ${SIZE}`,children:jsxRuntimeExports.jsx(CircularProgressCircle,{className:dt.circle,style:pt,ownerState:lt,cx:SIZE,cy:SIZE,r:(SIZE-it)/2,fill:"none",strokeWidth:it})})}))}),html=(s,j)=>_extends$2({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},j&&!s.vars&&{colorScheme:s.palette.mode}),body=s=>_extends$2({color:(s.vars||s).palette.text.primary},s.typography.body1,{backgroundColor:(s.vars||s).palette.background.default,"@media print":{backgroundColor:(s.vars||s).palette.common.white}}),styles$1=(s,j=!1)=>{var $;const _e={};j&&s.colorSchemes&&Object.entries(s.colorSchemes).forEach(([nt,rt])=>{var ot;_e[s.getColorSchemeSelector(nt).replace(/\s*&/,"")]={colorScheme:(ot=rt.palette)==null?void 0:ot.mode}});let et=_extends$2({html:html(s,j),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:s.typography.fontWeightBold},body:_extends$2({margin:0},body(s),{"&::backdrop":{backgroundColor:(s.vars||s).palette.background.default}})},_e);const tt=($=s.components)==null||($=$.MuiCssBaseline)==null?void 0:$.styleOverrides;return tt&&(et=[et,tt]),et};function CssBaseline(s){const j=useThemeProps$5({props:s,name:"MuiCssBaseline"}),{children:$,enableColorScheme:_e=!1}=j;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(GlobalStyles,{styles:et=>styles$1(et,_e)}),$]})}function getModalUtilityClass(s){return generateUtilityClass$1("MuiModal",s)}generateUtilityClasses$1("MuiModal",["root","hidden","backdrop"]);const _excluded$J=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],useUtilityClasses$E=s=>{const{open:j,exited:$,classes:_e}=s;return composeClasses({root:["root",!j&&$&&"hidden"],backdrop:["backdrop"]},getModalUtilityClass,_e)},ModalRoot=styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,!$.open&&$.exited&&j.hidden]}})(({theme:s,ownerState:j})=>_extends$2({position:"fixed",zIndex:(s.vars||s).zIndex.modal,right:0,bottom:0,top:0,left:0},!j.open&&j.exited&&{visibility:"hidden"})),ModalBackdrop=styled(Backdrop,{name:"MuiModal",slot:"Backdrop",overridesResolver:(s,j)=>j.backdrop})({zIndex:-1}),Modal=reactExports.forwardRef(function(j,$){var _e,et,tt,nt,rt,ot;const it=useThemeProps$5({name:"MuiModal",props:j}),{BackdropComponent:st=ModalBackdrop,BackdropProps:at,className:ct,closeAfterTransition:lt=!1,children:dt,container:pt,component:ht,components:yt={},componentsProps:gt={},disableAutoFocus:ft=!1,disableEnforceFocus:xt=!1,disableEscapeKeyDown:Mt=!1,disablePortal:jt=!1,disableRestoreFocus:wt=!1,disableScrollLock:$t=!1,hideBackdrop:zt=!1,keepMounted:Ot=!1,onBackdropClick:Pt,open:Ft,slotProps:Nt,slots:mt}=it,bt=_objectWithoutPropertiesLoose(it,_excluded$J),St=_extends$2({},it,{closeAfterTransition:lt,disableAutoFocus:ft,disableEnforceFocus:xt,disableEscapeKeyDown:Mt,disablePortal:jt,disableRestoreFocus:wt,disableScrollLock:$t,hideBackdrop:zt,keepMounted:Ot}),{getRootProps:vt,getBackdropProps:At,getTransitionProps:Tt,portalRef:Dt,isTopModal:Lt,exited:Et,hasTransition:kt}=useModal(_extends$2({},St,{rootRef:$})),Ut=_extends$2({},St,{exited:Et}),Gt=useUtilityClasses$E(Ut),Ht={};if(dt.props.tabIndex===void 0&&(Ht.tabIndex="-1"),kt){const{onEnter:Qt,onExited:qt}=Tt();Ht.onEnter=Qt,Ht.onExited=qt}const tn=(_e=(et=mt==null?void 0:mt.root)!=null?et:yt.Root)!=null?_e:ModalRoot,Jt=(tt=(nt=mt==null?void 0:mt.backdrop)!=null?nt:yt.Backdrop)!=null?tt:st,Kt=(rt=Nt==null?void 0:Nt.root)!=null?rt:gt.root,dn=(ot=Nt==null?void 0:Nt.backdrop)!=null?ot:gt.backdrop,en=useSlotProps({elementType:tn,externalSlotProps:Kt,externalForwardedProps:bt,getSlotProps:vt,additionalProps:{ref:$,as:ht},ownerState:Ut,className:clsx(ct,Kt==null?void 0:Kt.className,Gt==null?void 0:Gt.root,!Ut.open&&Ut.exited&&(Gt==null?void 0:Gt.hidden))}),Zt=useSlotProps({elementType:Jt,externalSlotProps:dn,additionalProps:at,getSlotProps:Qt=>At(_extends$2({},Qt,{onClick:qt=>{Pt&&Pt(qt),Qt!=null&&Qt.onClick&&Qt.onClick(qt)}})),className:clsx(dn==null?void 0:dn.className,at==null?void 0:at.className,Gt==null?void 0:Gt.backdrop),ownerState:Ut});return!Ot&&!Ft&&(!kt||Et)?null:jsxRuntimeExports.jsx(Portal,{ref:Dt,container:pt,disablePortal:jt,children:jsxRuntimeExports.jsxs(tn,_extends$2({},en,{children:[!zt&&st?jsxRuntimeExports.jsx(Jt,_extends$2({},Zt)):null,jsxRuntimeExports.jsx(FocusTrap,{disableEnforceFocus:xt,disableAutoFocus:ft,disableRestoreFocus:wt,isEnabled:Lt,open:Ft,children:reactExports.cloneElement(dt,Ht)})]}))})});function getDialogUtilityClass(s){return generateUtilityClass$1("MuiDialog",s)}const dialogClasses=generateUtilityClasses$1("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DialogContext=reactExports.createContext({}),_excluded$I=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],DialogBackdrop=styled(Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(s,j)=>j.backdrop})({zIndex:-1}),useUtilityClasses$D=s=>{const{classes:j,scroll:$,maxWidth:_e,fullWidth:et,fullScreen:tt}=s,nt={root:["root"],container:["container",`scroll${capitalize$1($)}`],paper:["paper",`paperScroll${capitalize$1($)}`,`paperWidth${capitalize$1(String(_e))}`,et&&"paperFullWidth",tt&&"paperFullScreen"]};return composeClasses(nt,getDialogUtilityClass,j)},DialogRoot=styled(Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(s,j)=>j.root})({"@media print":{position:"absolute !important"}}),DialogContainer=styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.container,j[`scroll${capitalize$1($.scroll)}`]]}})(({ownerState:s})=>_extends$2({height:"100%","@media print":{height:"auto"},outline:0},s.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},s.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),DialogPaper=styled(Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.paper,j[`scrollPaper${capitalize$1($.scroll)}`],j[`paperWidth${capitalize$1(String($.maxWidth))}`],$.fullWidth&&j.paperFullWidth,$.fullScreen&&j.paperFullScreen]}})(({theme:s,ownerState:j})=>_extends$2({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},j.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},j.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!j.maxWidth&&{maxWidth:"calc(100% - 64px)"},j.maxWidth==="xs"&&{maxWidth:s.breakpoints.unit==="px"?Math.max(s.breakpoints.values.xs,444):`max(${s.breakpoints.values.xs}${s.breakpoints.unit}, 444px)`,[`&.${dialogClasses.paperScrollBody}`]:{[s.breakpoints.down(Math.max(s.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},j.maxWidth&&j.maxWidth!=="xs"&&{maxWidth:`${s.breakpoints.values[j.maxWidth]}${s.breakpoints.unit}`,[`&.${dialogClasses.paperScrollBody}`]:{[s.breakpoints.down(s.breakpoints.values[j.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},j.fullWidth&&{width:"calc(100% - 64px)"},j.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dialogClasses.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Dialog=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiDialog"}),et=useTheme$1(),tt={enter:et.transitions.duration.enteringScreen,exit:et.transitions.duration.leavingScreen},{"aria-describedby":nt,"aria-labelledby":rt,BackdropComponent:ot,BackdropProps:it,children:st,className:at,disableEscapeKeyDown:ct=!1,fullScreen:lt=!1,fullWidth:dt=!1,maxWidth:pt="sm",onBackdropClick:ht,onClick:yt,onClose:gt,open:ft,PaperComponent:xt=Paper,PaperProps:Mt={},scroll:jt="paper",TransitionComponent:wt=Fade,transitionDuration:$t=tt,TransitionProps:zt}=_e,Ot=_objectWithoutPropertiesLoose(_e,_excluded$I),Pt=_extends$2({},_e,{disableEscapeKeyDown:ct,fullScreen:lt,fullWidth:dt,maxWidth:pt,scroll:jt}),Ft=useUtilityClasses$D(Pt),Nt=reactExports.useRef(),mt=At=>{Nt.current=At.target===At.currentTarget},bt=At=>{yt&&yt(At),Nt.current&&(Nt.current=null,ht&&ht(At),gt&>(At,"backdropClick"))},St=useId(rt),vt=reactExports.useMemo(()=>({titleId:St}),[St]);return jsxRuntimeExports.jsx(DialogRoot,_extends$2({className:clsx(Ft.root,at),closeAfterTransition:!0,components:{Backdrop:DialogBackdrop},componentsProps:{backdrop:_extends$2({transitionDuration:$t,as:ot},it)},disableEscapeKeyDown:ct,onClose:gt,open:ft,ref:$,onClick:bt,ownerState:Pt},Ot,{children:jsxRuntimeExports.jsx(wt,_extends$2({appear:!0,in:ft,timeout:$t,role:"presentation"},zt,{children:jsxRuntimeExports.jsx(DialogContainer,{className:clsx(Ft.container),onMouseDown:mt,ownerState:Pt,children:jsxRuntimeExports.jsx(DialogPaper,_extends$2({as:xt,elevation:24,role:"dialog","aria-describedby":nt,"aria-labelledby":St},Mt,{className:clsx(Ft.paper,Mt.className),ownerState:Pt,children:jsxRuntimeExports.jsx(DialogContext.Provider,{value:vt,children:st})}))})}))}))});function getDialogContentUtilityClass(s){return generateUtilityClass$1("MuiDialogContent",s)}generateUtilityClasses$1("MuiDialogContent",["root","dividers"]);function getDialogTitleUtilityClass(s){return generateUtilityClass$1("MuiDialogTitle",s)}const dialogTitleClasses=generateUtilityClasses$1("MuiDialogTitle",["root"]),_excluded$H=["className","dividers"],useUtilityClasses$C=s=>{const{classes:j,dividers:$}=s;return composeClasses({root:["root",$&&"dividers"]},getDialogContentUtilityClass,j)},DialogContentRoot=styled("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.dividers&&j.dividers]}})(({theme:s,ownerState:j})=>_extends$2({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},j.dividers?{padding:"16px 24px",borderTop:`1px solid ${(s.vars||s).palette.divider}`,borderBottom:`1px solid ${(s.vars||s).palette.divider}`}:{[`.${dialogTitleClasses.root} + &`]:{paddingTop:0}})),DialogContent=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiDialogContent"}),{className:et,dividers:tt=!1}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$H),rt=_extends$2({},_e,{dividers:tt}),ot=useUtilityClasses$C(rt);return jsxRuntimeExports.jsx(DialogContentRoot,_extends$2({className:clsx(ot.root,et),ownerState:rt,ref:$},nt))}),_excluded$G=["className","id"],useUtilityClasses$B=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getDialogTitleUtilityClass,j)},DialogTitleRoot=styled(Typography,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(s,j)=>j.root})({padding:"16px 24px",flex:"0 0 auto"}),DialogTitle=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiDialogTitle"}),{className:et,id:tt}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$G),rt=_e,ot=useUtilityClasses$B(rt),{titleId:it=tt}=reactExports.useContext(DialogContext);return jsxRuntimeExports.jsx(DialogTitleRoot,_extends$2({component:"h2",className:clsx(ot.root,et),ownerState:rt,ref:$,variant:"h6",id:tt??it},nt))});function getDividerUtilityClass(s){return generateUtilityClass$1("MuiDivider",s)}const dividerClasses=generateUtilityClasses$1("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_excluded$F=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],useUtilityClasses$A=s=>{const{absolute:j,children:$,classes:_e,flexItem:et,light:tt,orientation:nt,textAlign:rt,variant:ot}=s;return composeClasses({root:["root",j&&"absolute",ot,tt&&"light",nt==="vertical"&&"vertical",et&&"flexItem",$&&"withChildren",$&&nt==="vertical"&&"withChildrenVertical",rt==="right"&&nt!=="vertical"&&"textAlignRight",rt==="left"&&nt!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",nt==="vertical"&&"wrapperVertical"]},getDividerUtilityClass,_e)},DividerRoot=styled("div",{name:"MuiDivider",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.absolute&&j.absolute,j[$.variant],$.light&&j.light,$.orientation==="vertical"&&j.vertical,$.flexItem&&j.flexItem,$.children&&j.withChildren,$.children&&$.orientation==="vertical"&&j.withChildrenVertical,$.textAlign==="right"&&$.orientation!=="vertical"&&j.textAlignRight,$.textAlign==="left"&&$.orientation!=="vertical"&&j.textAlignLeft]}})(({theme:s,ownerState:j})=>_extends$2({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(s.vars||s).palette.divider,borderBottomWidth:"thin"},j.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},j.light&&{borderColor:s.vars?`rgba(${s.vars.palette.dividerChannel} / 0.08)`:alpha_1(s.palette.divider,.08)},j.variant==="inset"&&{marginLeft:72},j.variant==="middle"&&j.orientation==="horizontal"&&{marginLeft:s.spacing(2),marginRight:s.spacing(2)},j.variant==="middle"&&j.orientation==="vertical"&&{marginTop:s.spacing(1),marginBottom:s.spacing(1)},j.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},j.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:s})=>_extends$2({},s.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:s,ownerState:j})=>_extends$2({},j.children&&j.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(s.vars||s).palette.divider}`}}),({theme:s,ownerState:j})=>_extends$2({},j.children&&j.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(s.vars||s).palette.divider}`}}),({ownerState:s})=>_extends$2({},s.textAlign==="right"&&s.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},s.textAlign==="left"&&s.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),DividerWrapper=styled("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.wrapper,$.orientation==="vertical"&&j.wrapperVertical]}})(({theme:s,ownerState:j})=>_extends$2({display:"inline-block",paddingLeft:`calc(${s.spacing(1)} * 1.2)`,paddingRight:`calc(${s.spacing(1)} * 1.2)`},j.orientation==="vertical"&&{paddingTop:`calc(${s.spacing(1)} * 1.2)`,paddingBottom:`calc(${s.spacing(1)} * 1.2)`})),Divider=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiDivider"}),{absolute:et=!1,children:tt,className:nt,component:rt=tt?"div":"hr",flexItem:ot=!1,light:it=!1,orientation:st="horizontal",role:at=rt!=="hr"?"separator":void 0,textAlign:ct="center",variant:lt="fullWidth"}=_e,dt=_objectWithoutPropertiesLoose(_e,_excluded$F),pt=_extends$2({},_e,{absolute:et,component:rt,flexItem:ot,light:it,orientation:st,role:at,textAlign:ct,variant:lt}),ht=useUtilityClasses$A(pt);return jsxRuntimeExports.jsx(DividerRoot,_extends$2({as:rt,className:clsx(ht.root,nt),role:at,ref:$,ownerState:pt},dt,{children:tt?jsxRuntimeExports.jsx(DividerWrapper,{className:ht.wrapper,ownerState:pt,children:tt}):null}))});Divider.muiSkipListHighlight=!0;const _excluded$E=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$z=s=>{const{classes:j,disableUnderline:$}=s,et=composeClasses({root:["root",!$&&"underline"],input:["input"]},getFilledInputUtilityClass,j);return _extends$2({},j,et)},FilledInputRoot=styled(InputBaseRoot,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[...rootOverridesResolver(s,j),!$.disableUnderline&&j.underline]}})(({theme:s,ownerState:j})=>{var $;const _e=s.palette.mode==="light",et=_e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",tt=_e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",nt=_e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",rt=_e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return _extends$2({position:"relative",backgroundColor:s.vars?s.vars.palette.FilledInput.bg:tt,borderTopLeftRadius:(s.vars||s).shape.borderRadius,borderTopRightRadius:(s.vars||s).shape.borderRadius,transition:s.transitions.create("background-color",{duration:s.transitions.duration.shorter,easing:s.transitions.easing.easeOut}),"&:hover":{backgroundColor:s.vars?s.vars.palette.FilledInput.hoverBg:nt,"@media (hover: none)":{backgroundColor:s.vars?s.vars.palette.FilledInput.bg:tt}},[`&.${filledInputClasses.focused}`]:{backgroundColor:s.vars?s.vars.palette.FilledInput.bg:tt},[`&.${filledInputClasses.disabled}`]:{backgroundColor:s.vars?s.vars.palette.FilledInput.disabledBg:rt}},!j.disableUnderline&&{"&::after":{borderBottom:`2px solid ${($=(s.vars||s).palette[j.color||"primary"])==null?void 0:$.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:s.transitions.create("transform",{duration:s.transitions.duration.shorter,easing:s.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${filledInputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${filledInputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(s.vars||s).palette.error.main}},"&::before":{borderBottom:`1px solid ${s.vars?`rgba(${s.vars.palette.common.onBackgroundChannel} / ${s.vars.opacity.inputUnderline})`:et}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:s.transitions.create("border-bottom-color",{duration:s.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]:{borderBottom:`1px solid ${(s.vars||s).palette.text.primary}`},[`&.${filledInputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}},j.startAdornment&&{paddingLeft:12},j.endAdornment&&{paddingRight:12},j.multiline&&_extends$2({padding:"25px 12px 8px"},j.size==="small"&&{paddingTop:21,paddingBottom:4},j.hiddenLabel&&{paddingTop:16,paddingBottom:17},j.hiddenLabel&&j.size==="small"&&{paddingTop:8,paddingBottom:9}))}),FilledInputInput=styled(InputBaseComponent,{name:"MuiFilledInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:s,ownerState:j})=>_extends$2({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!s.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:s.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:s.palette.mode==="light"?null:"#fff",caretColor:s.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},s.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[s.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},j.size==="small"&&{paddingTop:21,paddingBottom:4},j.hiddenLabel&&{paddingTop:16,paddingBottom:17},j.startAdornment&&{paddingLeft:0},j.endAdornment&&{paddingRight:0},j.hiddenLabel&&j.size==="small"&&{paddingTop:8,paddingBottom:9},j.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),FilledInput=reactExports.forwardRef(function(j,$){var _e,et,tt,nt;const rt=useThemeProps$5({props:j,name:"MuiFilledInput"}),{components:ot={},componentsProps:it,fullWidth:st=!1,inputComponent:at="input",multiline:ct=!1,slotProps:lt,slots:dt={},type:pt="text"}=rt,ht=_objectWithoutPropertiesLoose(rt,_excluded$E),yt=_extends$2({},rt,{fullWidth:st,inputComponent:at,multiline:ct,type:pt}),gt=useUtilityClasses$z(rt),ft={root:{ownerState:yt},input:{ownerState:yt}},xt=lt??it?deepmerge$1(ft,lt??it):ft,Mt=(_e=(et=dt.root)!=null?et:ot.Root)!=null?_e:FilledInputRoot,jt=(tt=(nt=dt.input)!=null?nt:ot.Input)!=null?tt:FilledInputInput;return jsxRuntimeExports.jsx(InputBase$1,_extends$2({slots:{root:Mt,input:jt},componentsProps:xt,fullWidth:st,inputComponent:at,multiline:ct,ref:$,type:pt},ht,{classes:gt}))});FilledInput.muiName="Input";function getFormControlUtilityClasses(s){return generateUtilityClass$1("MuiFormControl",s)}generateUtilityClasses$1("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _excluded$D=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],useUtilityClasses$y=s=>{const{classes:j,margin:$,fullWidth:_e}=s,et={root:["root",$!=="none"&&`margin${capitalize$1($)}`,_e&&"fullWidth"]};return composeClasses(et,getFormControlUtilityClasses,j)},FormControlRoot=styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:s},j)=>_extends$2({},j.root,j[`margin${capitalize$1(s.margin)}`],s.fullWidth&&j.fullWidth)})(({ownerState:s})=>_extends$2({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},s.margin==="normal"&&{marginTop:16,marginBottom:8},s.margin==="dense"&&{marginTop:8,marginBottom:4},s.fullWidth&&{width:"100%"})),FormControl=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiFormControl"}),{children:et,className:tt,color:nt="primary",component:rt="div",disabled:ot=!1,error:it=!1,focused:st,fullWidth:at=!1,hiddenLabel:ct=!1,margin:lt="none",required:dt=!1,size:pt="medium",variant:ht="outlined"}=_e,yt=_objectWithoutPropertiesLoose(_e,_excluded$D),gt=_extends$2({},_e,{color:nt,component:rt,disabled:ot,error:it,fullWidth:at,hiddenLabel:ct,margin:lt,required:dt,size:pt,variant:ht}),ft=useUtilityClasses$y(gt),[xt,Mt]=reactExports.useState(()=>{let Nt=!1;return et&&reactExports.Children.forEach(et,mt=>{if(!isMuiElement(mt,["Input","Select"]))return;const bt=isMuiElement(mt,["Select"])?mt.props.input:mt;bt&&isAdornedStart(bt.props)&&(Nt=!0)}),Nt}),[jt,wt]=reactExports.useState(()=>{let Nt=!1;return et&&reactExports.Children.forEach(et,mt=>{isMuiElement(mt,["Input","Select"])&&(isFilled(mt.props,!0)||isFilled(mt.props.inputProps,!0))&&(Nt=!0)}),Nt}),[$t,zt]=reactExports.useState(!1);ot&&$t&&zt(!1);const Ot=st!==void 0&&!ot?st:$t;let Pt;const Ft=reactExports.useMemo(()=>({adornedStart:xt,setAdornedStart:Mt,color:nt,disabled:ot,error:it,filled:jt,focused:Ot,fullWidth:at,hiddenLabel:ct,size:pt,onBlur:()=>{zt(!1)},onEmpty:()=>{wt(!1)},onFilled:()=>{wt(!0)},onFocus:()=>{zt(!0)},registerEffect:Pt,required:dt,variant:ht}),[xt,nt,ot,it,jt,Ot,at,ct,Pt,dt,pt,ht]);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:Ft,children:jsxRuntimeExports.jsx(FormControlRoot,_extends$2({as:rt,ownerState:gt,className:clsx(ft.root,tt),ref:$},yt,{children:et}))})}),Stack=createStack({createStyledComponent:styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(s,j)=>j.root}),useThemeProps:s=>useThemeProps$5({props:s,name:"MuiStack"})});function getFormControlLabelUtilityClasses(s){return generateUtilityClass$1("MuiFormControlLabel",s)}const formControlLabelClasses=generateUtilityClasses$1("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_excluded$C=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],useUtilityClasses$x=s=>{const{classes:j,disabled:$,labelPlacement:_e,error:et,required:tt}=s,nt={root:["root",$&&"disabled",`labelPlacement${capitalize$1(_e)}`,et&&"error",tt&&"required"],label:["label",$&&"disabled"],asterisk:["asterisk",et&&"error"]};return composeClasses(nt,getFormControlLabelUtilityClasses,j)},FormControlLabelRoot=styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${formControlLabelClasses.label}`]:j.label},j.root,j[`labelPlacement${capitalize$1($.labelPlacement)}`]]}})(({theme:s,ownerState:j})=>_extends$2({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${formControlLabelClasses.disabled}`]:{cursor:"default"}},j.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},j.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},j.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${formControlLabelClasses.label}`]:{[`&.${formControlLabelClasses.disabled}`]:{color:(s.vars||s).palette.text.disabled}}})),AsteriskComponent$1=styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(s,j)=>j.asterisk})(({theme:s})=>({[`&.${formControlLabelClasses.error}`]:{color:(s.vars||s).palette.error.main}})),FormControlLabel=reactExports.forwardRef(function(j,$){var _e,et;const tt=useThemeProps$5({props:j,name:"MuiFormControlLabel"}),{className:nt,componentsProps:rt={},control:ot,disabled:it,disableTypography:st,label:at,labelPlacement:ct="end",required:lt,slotProps:dt={}}=tt,pt=_objectWithoutPropertiesLoose(tt,_excluded$C),ht=useFormControl(),yt=(_e=it??ot.props.disabled)!=null?_e:ht==null?void 0:ht.disabled,gt=lt??ot.props.required,ft={disabled:yt,required:gt};["checked","name","onChange","value","inputRef"].forEach(zt=>{typeof ot.props[zt]>"u"&&typeof tt[zt]<"u"&&(ft[zt]=tt[zt])});const xt=formControlState({props:tt,muiFormControl:ht,states:["error"]}),Mt=_extends$2({},tt,{disabled:yt,labelPlacement:ct,required:gt,error:xt.error}),jt=useUtilityClasses$x(Mt),wt=(et=dt.typography)!=null?et:rt.typography;let $t=at;return $t!=null&&$t.type!==Typography&&!st&&($t=jsxRuntimeExports.jsx(Typography,_extends$2({component:"span"},wt,{className:clsx(jt.label,wt==null?void 0:wt.className),children:$t}))),jsxRuntimeExports.jsxs(FormControlLabelRoot,_extends$2({className:clsx(jt.root,nt),ownerState:Mt,ref:$},pt,{children:[reactExports.cloneElement(ot,ft),gt?jsxRuntimeExports.jsxs(Stack,{display:"block",children:[$t,jsxRuntimeExports.jsxs(AsteriskComponent$1,{ownerState:Mt,"aria-hidden":!0,className:jt.asterisk,children:[" ","*"]})]}):$t]}))});function getFormHelperTextUtilityClasses(s){return generateUtilityClass$1("MuiFormHelperText",s)}const formHelperTextClasses=generateUtilityClasses$1("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _span$3;const _excluded$B=["children","className","component","disabled","error","filled","focused","margin","required","variant"],useUtilityClasses$w=s=>{const{classes:j,contained:$,size:_e,disabled:et,error:tt,filled:nt,focused:rt,required:ot}=s,it={root:["root",et&&"disabled",tt&&"error",_e&&`size${capitalize$1(_e)}`,$&&"contained",rt&&"focused",nt&&"filled",ot&&"required"]};return composeClasses(it,getFormHelperTextUtilityClasses,j)},FormHelperTextRoot=styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.size&&j[`size${capitalize$1($.size)}`],$.contained&&j.contained,$.filled&&j.filled]}})(({theme:s,ownerState:j})=>_extends$2({color:(s.vars||s).palette.text.secondary},s.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${formHelperTextClasses.disabled}`]:{color:(s.vars||s).palette.text.disabled},[`&.${formHelperTextClasses.error}`]:{color:(s.vars||s).palette.error.main}},j.size==="small"&&{marginTop:4},j.contained&&{marginLeft:14,marginRight:14})),FormHelperText=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiFormHelperText"}),{children:et,className:tt,component:nt="p"}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$B),ot=useFormControl(),it=formControlState({props:_e,muiFormControl:ot,states:["variant","size","disabled","error","filled","focused","required"]}),st=_extends$2({},_e,{component:nt,contained:it.variant==="filled"||it.variant==="outlined",variant:it.variant,size:it.size,disabled:it.disabled,error:it.error,filled:it.filled,focused:it.focused,required:it.required}),at=useUtilityClasses$w(st);return jsxRuntimeExports.jsx(FormHelperTextRoot,_extends$2({as:nt,ownerState:st,className:clsx(at.root,tt),ref:$},rt,{children:et===" "?_span$3||(_span$3=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})):et}))});function getFormLabelUtilityClasses(s){return generateUtilityClass$1("MuiFormLabel",s)}const formLabelClasses=generateUtilityClasses$1("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_excluded$A=["children","className","color","component","disabled","error","filled","focused","required"],useUtilityClasses$v=s=>{const{classes:j,color:$,focused:_e,disabled:et,error:tt,filled:nt,required:rt}=s,ot={root:["root",`color${capitalize$1($)}`,et&&"disabled",tt&&"error",nt&&"filled",_e&&"focused",rt&&"required"],asterisk:["asterisk",tt&&"error"]};return composeClasses(ot,getFormLabelUtilityClasses,j)},FormLabelRoot=styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:s},j)=>_extends$2({},j.root,s.color==="secondary"&&j.colorSecondary,s.filled&&j.filled)})(({theme:s,ownerState:j})=>_extends$2({color:(s.vars||s).palette.text.secondary},s.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${formLabelClasses.focused}`]:{color:(s.vars||s).palette[j.color].main},[`&.${formLabelClasses.disabled}`]:{color:(s.vars||s).palette.text.disabled},[`&.${formLabelClasses.error}`]:{color:(s.vars||s).palette.error.main}})),AsteriskComponent=styled("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(s,j)=>j.asterisk})(({theme:s})=>({[`&.${formLabelClasses.error}`]:{color:(s.vars||s).palette.error.main}})),FormLabel=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiFormLabel"}),{children:et,className:tt,component:nt="label"}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$A),ot=useFormControl(),it=formControlState({props:_e,muiFormControl:ot,states:["color","required","focused","disabled","error","filled"]}),st=_extends$2({},_e,{color:it.color||"primary",component:nt,disabled:it.disabled,error:it.error,filled:it.filled,focused:it.focused,required:it.required}),at=useUtilityClasses$v(st);return jsxRuntimeExports.jsxs(FormLabelRoot,_extends$2({as:nt,ownerState:st,className:clsx(at.root,tt),ref:$},rt,{children:[et,it.required&&jsxRuntimeExports.jsxs(AsteriskComponent,{ownerState:st,"aria-hidden":!0,className:at.asterisk,children:[" ","*"]})]}))}),_excluded$z=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getScale(s){return`scale(${s}, ${s**2})`}const styles={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},isWebKit154=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Grow=reactExports.forwardRef(function(j,$){const{addEndListener:_e,appear:et=!0,children:tt,easing:nt,in:rt,onEnter:ot,onEntered:it,onEntering:st,onExit:at,onExited:ct,onExiting:lt,style:dt,timeout:pt="auto",TransitionComponent:ht=Transition}=j,yt=_objectWithoutPropertiesLoose(j,_excluded$z),gt=useTimeout(),ft=reactExports.useRef(),xt=useTheme$1(),Mt=reactExports.useRef(null),jt=useForkRef(Mt,tt.ref,$),wt=bt=>St=>{if(bt){const vt=Mt.current;St===void 0?bt(vt):bt(vt,St)}},$t=wt(st),zt=wt((bt,St)=>{reflow(bt);const{duration:vt,delay:At,easing:Tt}=getTransitionProps({style:dt,timeout:pt,easing:nt},{mode:"enter"});let Dt;pt==="auto"?(Dt=xt.transitions.getAutoHeightDuration(bt.clientHeight),ft.current=Dt):Dt=vt,bt.style.transition=[xt.transitions.create("opacity",{duration:Dt,delay:At}),xt.transitions.create("transform",{duration:isWebKit154?Dt:Dt*.666,delay:At,easing:Tt})].join(","),ot&&ot(bt,St)}),Ot=wt(it),Pt=wt(lt),Ft=wt(bt=>{const{duration:St,delay:vt,easing:At}=getTransitionProps({style:dt,timeout:pt,easing:nt},{mode:"exit"});let Tt;pt==="auto"?(Tt=xt.transitions.getAutoHeightDuration(bt.clientHeight),ft.current=Tt):Tt=St,bt.style.transition=[xt.transitions.create("opacity",{duration:Tt,delay:vt}),xt.transitions.create("transform",{duration:isWebKit154?Tt:Tt*.666,delay:isWebKit154?vt:vt||Tt*.333,easing:At})].join(","),bt.style.opacity=0,bt.style.transform=getScale(.75),at&&at(bt)}),Nt=wt(ct),mt=bt=>{pt==="auto"&>.start(ft.current||0,bt),_e&&_e(Mt.current,bt)};return jsxRuntimeExports.jsx(ht,_extends$2({appear:et,in:rt,nodeRef:Mt,onEnter:zt,onEntered:Ot,onEntering:$t,onExit:Ft,onExited:Nt,onExiting:Pt,addEndListener:mt,timeout:pt==="auto"?null:pt},yt,{children:(bt,St)=>reactExports.cloneElement(tt,_extends$2({style:_extends$2({opacity:0,transform:getScale(.75),visibility:bt==="exited"&&!rt?"hidden":void 0},styles[bt],dt,tt.props.style),ref:jt},St))}))});Grow.muiSupportAuto=!0;const _excluded$y=["initialWidth","width"],breakpointKeys=["xs","sm","md","lg","xl"],isWidthUp=(s,j,$=!0)=>$?breakpointKeys.indexOf(s)<=breakpointKeys.indexOf(j):breakpointKeys.indexOf(s)$?breakpointKeys.indexOf(j)<=breakpointKeys.indexOf(s):breakpointKeys.indexOf(j)j=>{const{withTheme:$=!1,noSSR:_e=!1,initialWidth:et}=s;function tt(nt){const rt=useTheme$1(),ot=nt.theme||rt,it=getThemeProps({theme:ot,name:"MuiWithWidth",props:nt}),{initialWidth:st,width:at}=it,ct=_objectWithoutPropertiesLoose(it,_excluded$y),[lt,dt]=reactExports.useState(!1);useEnhancedEffect(()=>{dt(!0)},[]);const ht=ot.breakpoints.keys.slice().reverse().reduce((gt,ft)=>{const xt=useMediaQuery(ot.breakpoints.up(ft));return!gt&&xt?ft:gt},null),yt=_extends$2({width:at||(lt||_e?ht:void 0)||st||et},$?{theme:ot}:{},ct);return yt.width===void 0?null:jsxRuntimeExports.jsx(j,_extends$2({},yt))}return tt};function HiddenJs(s){const{children:j,only:$,width:_e}=s,et=useTheme$1();let tt=!0;if($)if(Array.isArray($))for(let nt=0;nt<$.length;nt+=1){const rt=$[nt];if(_e===rt){tt=!1;break}}else $&&_e===$&&(tt=!1);if(tt)for(let nt=0;nt{const{classes:j,breakpoints:$}=s,_e={root:["root",...$.map(({breakpoint:et,dir:tt})=>tt==="only"?`${tt}${capitalize$1(et)}`:`${et}${capitalize$1(tt)}`)]};return composeClasses(_e,getHiddenCssUtilityClass,j)},HiddenCssRoot=styled("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:s,ownerState:j})=>{const $={display:"none"};return _extends$2({},j.breakpoints.map(({breakpoint:_e,dir:et})=>et==="only"?{[s.breakpoints.only(_e)]:$}:et==="up"?{[s.breakpoints.up(_e)]:$}:{[s.breakpoints.down(_e)]:$}).reduce((_e,et)=>(Object.keys(et).forEach(tt=>{_e[tt]=et[tt]}),_e),{}))});function HiddenCss(s){const{children:j,className:$,only:_e}=s,et=_objectWithoutPropertiesLoose(s,_excluded$x),tt=useTheme$1(),nt=[];for(let it=0;it{nt.push({breakpoint:st,dir:"only"})});const rt=_extends$2({},s,{breakpoints:nt}),ot=useUtilityClasses$u(rt);return jsxRuntimeExports.jsx(HiddenCssRoot,{className:clsx(ot.root,$),ownerState:rt,children:j})}const _excluded$w=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Hidden(s){const{implementation:j="js",lgDown:$=!1,lgUp:_e=!1,mdDown:et=!1,mdUp:tt=!1,smDown:nt=!1,smUp:rt=!1,xlDown:ot=!1,xlUp:it=!1,xsDown:st=!1,xsUp:at=!1}=s,ct=_objectWithoutPropertiesLoose(s,_excluded$w);return j==="js"?jsxRuntimeExports.jsx(HiddenJs$1,_extends$2({lgDown:$,lgUp:_e,mdDown:et,mdUp:tt,smDown:nt,smUp:rt,xlDown:ot,xlUp:it,xsDown:st,xsUp:at},ct)):jsxRuntimeExports.jsx(HiddenCss,_extends$2({lgDown:$,lgUp:_e,mdDown:et,mdUp:tt,smDown:nt,smUp:rt,xlDown:ot,xlUp:it,xsDown:st,xsUp:at},ct))}const _excluded$v=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$t=s=>{const{classes:j,disableUnderline:$}=s,et=composeClasses({root:["root",!$&&"underline"],input:["input"]},getInputUtilityClass,j);return _extends$2({},j,et)},InputRoot=styled(InputBaseRoot,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiInput",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[...rootOverridesResolver(s,j),!$.disableUnderline&&j.underline]}})(({theme:s,ownerState:j})=>{let _e=s.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return s.vars&&(_e=`rgba(${s.vars.palette.common.onBackgroundChannel} / ${s.vars.opacity.inputUnderline})`),_extends$2({position:"relative"},j.formControl&&{"label + &":{marginTop:16}},!j.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(s.vars||s).palette[j.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:s.transitions.create("transform",{duration:s.transitions.duration.shorter,easing:s.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${inputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${inputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(s.vars||s).palette.error.main}},"&::before":{borderBottom:`1px solid ${_e}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:s.transitions.create("border-bottom-color",{duration:s.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]:{borderBottom:`2px solid ${(s.vars||s).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${_e}`}},[`&.${inputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}})}),InputInput=styled(InputBaseComponent,{name:"MuiInput",slot:"Input",overridesResolver:inputOverridesResolver})({}),Input=reactExports.forwardRef(function(j,$){var _e,et,tt,nt;const rt=useThemeProps$5({props:j,name:"MuiInput"}),{disableUnderline:ot,components:it={},componentsProps:st,fullWidth:at=!1,inputComponent:ct="input",multiline:lt=!1,slotProps:dt,slots:pt={},type:ht="text"}=rt,yt=_objectWithoutPropertiesLoose(rt,_excluded$v),gt=useUtilityClasses$t(rt),xt={root:{ownerState:{disableUnderline:ot}}},Mt=dt??st?deepmerge$1(dt??st,xt):xt,jt=(_e=(et=pt.root)!=null?et:it.Root)!=null?_e:InputRoot,wt=(tt=(nt=pt.input)!=null?nt:it.Input)!=null?tt:InputInput;return jsxRuntimeExports.jsx(InputBase$1,_extends$2({slots:{root:jt,input:wt},slotProps:Mt,fullWidth:at,inputComponent:ct,multiline:lt,ref:$,type:ht},yt,{classes:gt}))});Input.muiName="Input";function getInputAdornmentUtilityClass(s){return generateUtilityClass$1("MuiInputAdornment",s)}const inputAdornmentClasses=generateUtilityClasses$1("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _span$2;const _excluded$u=["children","className","component","disablePointerEvents","disableTypography","position","variant"],overridesResolver$2=(s,j)=>{const{ownerState:$}=s;return[j.root,j[`position${capitalize$1($.position)}`],$.disablePointerEvents===!0&&j.disablePointerEvents,j[$.variant]]},useUtilityClasses$s=s=>{const{classes:j,disablePointerEvents:$,hiddenLabel:_e,position:et,size:tt,variant:nt}=s,rt={root:["root",$&&"disablePointerEvents",et&&`position${capitalize$1(et)}`,nt,_e&&"hiddenLabel",tt&&`size${capitalize$1(tt)}`]};return composeClasses(rt,getInputAdornmentUtilityClass,j)},InputAdornmentRoot=styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:overridesResolver$2})(({theme:s,ownerState:j})=>_extends$2({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(s.vars||s).palette.action.active},j.variant==="filled"&&{[`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]:{marginTop:16}},j.position==="start"&&{marginRight:8},j.position==="end"&&{marginLeft:8},j.disablePointerEvents===!0&&{pointerEvents:"none"})),InputAdornment=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiInputAdornment"}),{children:et,className:tt,component:nt="div",disablePointerEvents:rt=!1,disableTypography:ot=!1,position:it,variant:st}=_e,at=_objectWithoutPropertiesLoose(_e,_excluded$u),ct=useFormControl()||{};let lt=st;st&&ct.variant,ct&&!lt&&(lt=ct.variant);const dt=_extends$2({},_e,{hiddenLabel:ct.hiddenLabel,size:ct.size,disablePointerEvents:rt,position:it,variant:lt}),pt=useUtilityClasses$s(dt);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(InputAdornmentRoot,_extends$2({as:nt,ownerState:dt,className:clsx(pt.root,tt),ref:$},at,{children:typeof et=="string"&&!ot?jsxRuntimeExports.jsx(Typography,{color:"text.secondary",children:et}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[it==="start"?_span$2||(_span$2=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})):null,et]})}))})});function getInputLabelUtilityClasses(s){return generateUtilityClass$1("MuiInputLabel",s)}generateUtilityClasses$1("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _excluded$t=["disableAnimation","margin","shrink","variant","className"],useUtilityClasses$r=s=>{const{classes:j,formControl:$,size:_e,shrink:et,disableAnimation:tt,variant:nt,required:rt}=s,ot={root:["root",$&&"formControl",!tt&&"animated",et&&"shrink",_e&&_e!=="normal"&&`size${capitalize$1(_e)}`,nt],asterisk:[rt&&"asterisk"]},it=composeClasses(ot,getInputLabelUtilityClasses,j);return _extends$2({},j,it)},InputLabelRoot=styled(FormLabel,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${formLabelClasses.asterisk}`]:j.asterisk},j.root,$.formControl&&j.formControl,$.size==="small"&&j.sizeSmall,$.shrink&&j.shrink,!$.disableAnimation&&j.animated,$.focused&&j.focused,j[$.variant]]}})(({theme:s,ownerState:j})=>_extends$2({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},j.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},j.size==="small"&&{transform:"translate(0, 17px) scale(1)"},j.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!j.disableAnimation&&{transition:s.transitions.create(["color","transform","max-width"],{duration:s.transitions.duration.shorter,easing:s.transitions.easing.easeOut})},j.variant==="filled"&&_extends$2({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},j.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},j.shrink&&_extends$2({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},j.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),j.variant==="outlined"&&_extends$2({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},j.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},j.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),InputLabel=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({name:"MuiInputLabel",props:j}),{disableAnimation:et=!1,shrink:tt,className:nt}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$t),ot=useFormControl();let it=tt;typeof it>"u"&&ot&&(it=ot.filled||ot.focused||ot.adornedStart);const st=formControlState({props:_e,muiFormControl:ot,states:["size","variant","required","focused"]}),at=_extends$2({},_e,{disableAnimation:et,formControl:ot,shrink:it,size:st.size,variant:st.variant,required:st.required,focused:st.focused}),ct=useUtilityClasses$r(at);return jsxRuntimeExports.jsx(InputLabelRoot,_extends$2({"data-shrink":it,ownerState:at,ref:$,className:clsx(ct.root,nt)},rt,{classes:ct}))});function getLinearProgressUtilityClass(s){return generateUtilityClass$1("MuiLinearProgress",s)}generateUtilityClasses$1("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const _excluded$s=["className","color","value","valueBuffer","variant"];let _=s=>s,_t,_t2,_t3,_t4,_t5,_t6;const TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes(_t||(_t=_` + `),circularDashKeyframe)),CircularProgress=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiCircularProgress"}),{className:et,color:tt="primary",disableShrink:nt=!1,size:rt=40,style:ot,thickness:it=3.6,value:st=0,variant:at="indeterminate"}=_e,ct=_objectWithoutPropertiesLoose(_e,_excluded$K),lt=_extends$2({},_e,{color:tt,disableShrink:nt,size:rt,thickness:it,value:st,variant:at}),dt=useUtilityClasses$F(lt),ft={},gt={},yt={};if(at==="determinate"){const mt=2*Math.PI*((SIZE-it)/2);ft.strokeDasharray=mt.toFixed(3),yt["aria-valuenow"]=Math.round(st),ft.strokeDashoffset=`${((100-st)/100*mt).toFixed(3)}px`,gt.transform="rotate(-90deg)"}return jsxRuntimeExports.jsx(CircularProgressRoot,_extends$2({className:clsx(dt.root,et),style:_extends$2({width:rt,height:rt},gt,ot),ownerState:lt,ref:$,role:"progressbar"},yt,ct,{children:jsxRuntimeExports.jsx(CircularProgressSVG,{className:dt.svg,ownerState:lt,viewBox:`${SIZE/2} ${SIZE/2} ${SIZE} ${SIZE}`,children:jsxRuntimeExports.jsx(CircularProgressCircle,{className:dt.circle,style:ft,ownerState:lt,cx:SIZE,cy:SIZE,r:(SIZE-it)/2,fill:"none",strokeWidth:it})})}))}),html=(s,j)=>_extends$2({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},j&&!s.vars&&{colorScheme:s.palette.mode}),body=s=>_extends$2({color:(s.vars||s).palette.text.primary},s.typography.body1,{backgroundColor:(s.vars||s).palette.background.default,"@media print":{backgroundColor:(s.vars||s).palette.common.white}}),styles$1=(s,j=!1)=>{var $;const _e={};j&&s.colorSchemes&&Object.entries(s.colorSchemes).forEach(([nt,rt])=>{var ot;_e[s.getColorSchemeSelector(nt).replace(/\s*&/,"")]={colorScheme:(ot=rt.palette)==null?void 0:ot.mode}});let et=_extends$2({html:html(s,j),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:s.typography.fontWeightBold},body:_extends$2({margin:0},body(s),{"&::backdrop":{backgroundColor:(s.vars||s).palette.background.default}})},_e);const tt=($=s.components)==null||($=$.MuiCssBaseline)==null?void 0:$.styleOverrides;return tt&&(et=[et,tt]),et};function CssBaseline(s){const j=useThemeProps$5({props:s,name:"MuiCssBaseline"}),{children:$,enableColorScheme:_e=!1}=j;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(GlobalStyles,{styles:et=>styles$1(et,_e)}),$]})}function getModalUtilityClass(s){return generateUtilityClass$1("MuiModal",s)}generateUtilityClasses$1("MuiModal",["root","hidden","backdrop"]);const _excluded$J=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],useUtilityClasses$E=s=>{const{open:j,exited:$,classes:_e}=s;return composeClasses({root:["root",!j&&$&&"hidden"],backdrop:["backdrop"]},getModalUtilityClass,_e)},ModalRoot=styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,!$.open&&$.exited&&j.hidden]}})(({theme:s,ownerState:j})=>_extends$2({position:"fixed",zIndex:(s.vars||s).zIndex.modal,right:0,bottom:0,top:0,left:0},!j.open&&j.exited&&{visibility:"hidden"})),ModalBackdrop=styled(Backdrop,{name:"MuiModal",slot:"Backdrop",overridesResolver:(s,j)=>j.backdrop})({zIndex:-1}),Modal=reactExports.forwardRef(function(j,$){var _e,et,tt,nt,rt,ot;const it=useThemeProps$5({name:"MuiModal",props:j}),{BackdropComponent:st=ModalBackdrop,BackdropProps:at,className:ct,closeAfterTransition:lt=!1,children:dt,container:ft,component:gt,components:yt={},componentsProps:mt={},disableAutoFocus:pt=!1,disableEnforceFocus:xt=!1,disableEscapeKeyDown:Ct=!1,disablePortal:Dt=!1,disableRestoreFocus:wt=!1,disableScrollLock:kt=!1,hideBackdrop:zt=!1,keepMounted:Ot=!1,onBackdropClick:Ft,open:Pt,slotProps:Nt,slots:ht}=it,bt=_objectWithoutPropertiesLoose(it,_excluded$J),St=_extends$2({},it,{closeAfterTransition:lt,disableAutoFocus:pt,disableEnforceFocus:xt,disableEscapeKeyDown:Ct,disablePortal:Dt,disableRestoreFocus:wt,disableScrollLock:kt,hideBackdrop:zt,keepMounted:Ot}),{getRootProps:vt,getBackdropProps:At,getTransitionProps:Tt,portalRef:jt,isTopModal:Lt,exited:Mt,hasTransition:$t}=useModal(_extends$2({},St,{rootRef:$})),Ut=_extends$2({},St,{exited:Mt}),Gt=useUtilityClasses$E(Ut),Ht={};if(dt.props.tabIndex===void 0&&(Ht.tabIndex="-1"),$t){const{onEnter:Qt,onExited:Zt}=Tt();Ht.onEnter=Qt,Ht.onExited=Zt}const tn=(_e=(et=ht==null?void 0:ht.root)!=null?et:yt.Root)!=null?_e:ModalRoot,Jt=(tt=(nt=ht==null?void 0:ht.backdrop)!=null?nt:yt.Backdrop)!=null?tt:st,Kt=(rt=Nt==null?void 0:Nt.root)!=null?rt:mt.root,dn=(ot=Nt==null?void 0:Nt.backdrop)!=null?ot:mt.backdrop,en=useSlotProps({elementType:tn,externalSlotProps:Kt,externalForwardedProps:bt,getSlotProps:vt,additionalProps:{ref:$,as:gt},ownerState:Ut,className:clsx(ct,Kt==null?void 0:Kt.className,Gt==null?void 0:Gt.root,!Ut.open&&Ut.exited&&(Gt==null?void 0:Gt.hidden))}),qt=useSlotProps({elementType:Jt,externalSlotProps:dn,additionalProps:at,getSlotProps:Qt=>At(_extends$2({},Qt,{onClick:Zt=>{Ft&&Ft(Zt),Qt!=null&&Qt.onClick&&Qt.onClick(Zt)}})),className:clsx(dn==null?void 0:dn.className,at==null?void 0:at.className,Gt==null?void 0:Gt.backdrop),ownerState:Ut});return!Ot&&!Pt&&(!$t||Mt)?null:jsxRuntimeExports.jsx(Portal,{ref:jt,container:ft,disablePortal:Dt,children:jsxRuntimeExports.jsxs(tn,_extends$2({},en,{children:[!zt&&st?jsxRuntimeExports.jsx(Jt,_extends$2({},qt)):null,jsxRuntimeExports.jsx(FocusTrap,{disableEnforceFocus:xt,disableAutoFocus:pt,disableRestoreFocus:wt,isEnabled:Lt,open:Pt,children:reactExports.cloneElement(dt,Ht)})]}))})});function getDialogUtilityClass(s){return generateUtilityClass$1("MuiDialog",s)}const dialogClasses=generateUtilityClasses$1("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DialogContext=reactExports.createContext({}),_excluded$I=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],DialogBackdrop=styled(Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(s,j)=>j.backdrop})({zIndex:-1}),useUtilityClasses$D=s=>{const{classes:j,scroll:$,maxWidth:_e,fullWidth:et,fullScreen:tt}=s,nt={root:["root"],container:["container",`scroll${capitalize$1($)}`],paper:["paper",`paperScroll${capitalize$1($)}`,`paperWidth${capitalize$1(String(_e))}`,et&&"paperFullWidth",tt&&"paperFullScreen"]};return composeClasses(nt,getDialogUtilityClass,j)},DialogRoot=styled(Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(s,j)=>j.root})({"@media print":{position:"absolute !important"}}),DialogContainer=styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.container,j[`scroll${capitalize$1($.scroll)}`]]}})(({ownerState:s})=>_extends$2({height:"100%","@media print":{height:"auto"},outline:0},s.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},s.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),DialogPaper=styled(Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.paper,j[`scrollPaper${capitalize$1($.scroll)}`],j[`paperWidth${capitalize$1(String($.maxWidth))}`],$.fullWidth&&j.paperFullWidth,$.fullScreen&&j.paperFullScreen]}})(({theme:s,ownerState:j})=>_extends$2({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},j.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},j.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!j.maxWidth&&{maxWidth:"calc(100% - 64px)"},j.maxWidth==="xs"&&{maxWidth:s.breakpoints.unit==="px"?Math.max(s.breakpoints.values.xs,444):`max(${s.breakpoints.values.xs}${s.breakpoints.unit}, 444px)`,[`&.${dialogClasses.paperScrollBody}`]:{[s.breakpoints.down(Math.max(s.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},j.maxWidth&&j.maxWidth!=="xs"&&{maxWidth:`${s.breakpoints.values[j.maxWidth]}${s.breakpoints.unit}`,[`&.${dialogClasses.paperScrollBody}`]:{[s.breakpoints.down(s.breakpoints.values[j.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},j.fullWidth&&{width:"calc(100% - 64px)"},j.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dialogClasses.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Dialog=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiDialog"}),et=useTheme$1(),tt={enter:et.transitions.duration.enteringScreen,exit:et.transitions.duration.leavingScreen},{"aria-describedby":nt,"aria-labelledby":rt,BackdropComponent:ot,BackdropProps:it,children:st,className:at,disableEscapeKeyDown:ct=!1,fullScreen:lt=!1,fullWidth:dt=!1,maxWidth:ft="sm",onBackdropClick:gt,onClick:yt,onClose:mt,open:pt,PaperComponent:xt=Paper,PaperProps:Ct={},scroll:Dt="paper",TransitionComponent:wt=Fade,transitionDuration:kt=tt,TransitionProps:zt}=_e,Ot=_objectWithoutPropertiesLoose(_e,_excluded$I),Ft=_extends$2({},_e,{disableEscapeKeyDown:ct,fullScreen:lt,fullWidth:dt,maxWidth:ft,scroll:Dt}),Pt=useUtilityClasses$D(Ft),Nt=reactExports.useRef(),ht=At=>{Nt.current=At.target===At.currentTarget},bt=At=>{yt&&yt(At),Nt.current&&(Nt.current=null,gt&>(At),mt&&mt(At,"backdropClick"))},St=useId(rt),vt=reactExports.useMemo(()=>({titleId:St}),[St]);return jsxRuntimeExports.jsx(DialogRoot,_extends$2({className:clsx(Pt.root,at),closeAfterTransition:!0,components:{Backdrop:DialogBackdrop},componentsProps:{backdrop:_extends$2({transitionDuration:kt,as:ot},it)},disableEscapeKeyDown:ct,onClose:mt,open:pt,ref:$,onClick:bt,ownerState:Ft},Ot,{children:jsxRuntimeExports.jsx(wt,_extends$2({appear:!0,in:pt,timeout:kt,role:"presentation"},zt,{children:jsxRuntimeExports.jsx(DialogContainer,{className:clsx(Pt.container),onMouseDown:ht,ownerState:Ft,children:jsxRuntimeExports.jsx(DialogPaper,_extends$2({as:xt,elevation:24,role:"dialog","aria-describedby":nt,"aria-labelledby":St},Ct,{className:clsx(Pt.paper,Ct.className),ownerState:Ft,children:jsxRuntimeExports.jsx(DialogContext.Provider,{value:vt,children:st})}))})}))}))});function getDialogContentUtilityClass(s){return generateUtilityClass$1("MuiDialogContent",s)}generateUtilityClasses$1("MuiDialogContent",["root","dividers"]);function getDialogTitleUtilityClass(s){return generateUtilityClass$1("MuiDialogTitle",s)}const dialogTitleClasses=generateUtilityClasses$1("MuiDialogTitle",["root"]),_excluded$H=["className","dividers"],useUtilityClasses$C=s=>{const{classes:j,dividers:$}=s;return composeClasses({root:["root",$&&"dividers"]},getDialogContentUtilityClass,j)},DialogContentRoot=styled("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.dividers&&j.dividers]}})(({theme:s,ownerState:j})=>_extends$2({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},j.dividers?{padding:"16px 24px",borderTop:`1px solid ${(s.vars||s).palette.divider}`,borderBottom:`1px solid ${(s.vars||s).palette.divider}`}:{[`.${dialogTitleClasses.root} + &`]:{paddingTop:0}})),DialogContent=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiDialogContent"}),{className:et,dividers:tt=!1}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$H),rt=_extends$2({},_e,{dividers:tt}),ot=useUtilityClasses$C(rt);return jsxRuntimeExports.jsx(DialogContentRoot,_extends$2({className:clsx(ot.root,et),ownerState:rt,ref:$},nt))}),_excluded$G=["className","id"],useUtilityClasses$B=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getDialogTitleUtilityClass,j)},DialogTitleRoot=styled(Typography,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(s,j)=>j.root})({padding:"16px 24px",flex:"0 0 auto"}),DialogTitle=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiDialogTitle"}),{className:et,id:tt}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$G),rt=_e,ot=useUtilityClasses$B(rt),{titleId:it=tt}=reactExports.useContext(DialogContext);return jsxRuntimeExports.jsx(DialogTitleRoot,_extends$2({component:"h2",className:clsx(ot.root,et),ownerState:rt,ref:$,variant:"h6",id:tt??it},nt))});function getDividerUtilityClass(s){return generateUtilityClass$1("MuiDivider",s)}const dividerClasses=generateUtilityClasses$1("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_excluded$F=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],useUtilityClasses$A=s=>{const{absolute:j,children:$,classes:_e,flexItem:et,light:tt,orientation:nt,textAlign:rt,variant:ot}=s;return composeClasses({root:["root",j&&"absolute",ot,tt&&"light",nt==="vertical"&&"vertical",et&&"flexItem",$&&"withChildren",$&&nt==="vertical"&&"withChildrenVertical",rt==="right"&&nt!=="vertical"&&"textAlignRight",rt==="left"&&nt!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",nt==="vertical"&&"wrapperVertical"]},getDividerUtilityClass,_e)},DividerRoot=styled("div",{name:"MuiDivider",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.absolute&&j.absolute,j[$.variant],$.light&&j.light,$.orientation==="vertical"&&j.vertical,$.flexItem&&j.flexItem,$.children&&j.withChildren,$.children&&$.orientation==="vertical"&&j.withChildrenVertical,$.textAlign==="right"&&$.orientation!=="vertical"&&j.textAlignRight,$.textAlign==="left"&&$.orientation!=="vertical"&&j.textAlignLeft]}})(({theme:s,ownerState:j})=>_extends$2({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(s.vars||s).palette.divider,borderBottomWidth:"thin"},j.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},j.light&&{borderColor:s.vars?`rgba(${s.vars.palette.dividerChannel} / 0.08)`:alpha_1(s.palette.divider,.08)},j.variant==="inset"&&{marginLeft:72},j.variant==="middle"&&j.orientation==="horizontal"&&{marginLeft:s.spacing(2),marginRight:s.spacing(2)},j.variant==="middle"&&j.orientation==="vertical"&&{marginTop:s.spacing(1),marginBottom:s.spacing(1)},j.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},j.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:s})=>_extends$2({},s.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:s,ownerState:j})=>_extends$2({},j.children&&j.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(s.vars||s).palette.divider}`}}),({theme:s,ownerState:j})=>_extends$2({},j.children&&j.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(s.vars||s).palette.divider}`}}),({ownerState:s})=>_extends$2({},s.textAlign==="right"&&s.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},s.textAlign==="left"&&s.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),DividerWrapper=styled("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.wrapper,$.orientation==="vertical"&&j.wrapperVertical]}})(({theme:s,ownerState:j})=>_extends$2({display:"inline-block",paddingLeft:`calc(${s.spacing(1)} * 1.2)`,paddingRight:`calc(${s.spacing(1)} * 1.2)`},j.orientation==="vertical"&&{paddingTop:`calc(${s.spacing(1)} * 1.2)`,paddingBottom:`calc(${s.spacing(1)} * 1.2)`})),Divider=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiDivider"}),{absolute:et=!1,children:tt,className:nt,component:rt=tt?"div":"hr",flexItem:ot=!1,light:it=!1,orientation:st="horizontal",role:at=rt!=="hr"?"separator":void 0,textAlign:ct="center",variant:lt="fullWidth"}=_e,dt=_objectWithoutPropertiesLoose(_e,_excluded$F),ft=_extends$2({},_e,{absolute:et,component:rt,flexItem:ot,light:it,orientation:st,role:at,textAlign:ct,variant:lt}),gt=useUtilityClasses$A(ft);return jsxRuntimeExports.jsx(DividerRoot,_extends$2({as:rt,className:clsx(gt.root,nt),role:at,ref:$,ownerState:ft},dt,{children:tt?jsxRuntimeExports.jsx(DividerWrapper,{className:gt.wrapper,ownerState:ft,children:tt}):null}))});Divider.muiSkipListHighlight=!0;const _excluded$E=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$z=s=>{const{classes:j,disableUnderline:$}=s,et=composeClasses({root:["root",!$&&"underline"],input:["input"]},getFilledInputUtilityClass,j);return _extends$2({},j,et)},FilledInputRoot=styled(InputBaseRoot,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[...rootOverridesResolver(s,j),!$.disableUnderline&&j.underline]}})(({theme:s,ownerState:j})=>{var $;const _e=s.palette.mode==="light",et=_e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",tt=_e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",nt=_e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",rt=_e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return _extends$2({position:"relative",backgroundColor:s.vars?s.vars.palette.FilledInput.bg:tt,borderTopLeftRadius:(s.vars||s).shape.borderRadius,borderTopRightRadius:(s.vars||s).shape.borderRadius,transition:s.transitions.create("background-color",{duration:s.transitions.duration.shorter,easing:s.transitions.easing.easeOut}),"&:hover":{backgroundColor:s.vars?s.vars.palette.FilledInput.hoverBg:nt,"@media (hover: none)":{backgroundColor:s.vars?s.vars.palette.FilledInput.bg:tt}},[`&.${filledInputClasses.focused}`]:{backgroundColor:s.vars?s.vars.palette.FilledInput.bg:tt},[`&.${filledInputClasses.disabled}`]:{backgroundColor:s.vars?s.vars.palette.FilledInput.disabledBg:rt}},!j.disableUnderline&&{"&::after":{borderBottom:`2px solid ${($=(s.vars||s).palette[j.color||"primary"])==null?void 0:$.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:s.transitions.create("transform",{duration:s.transitions.duration.shorter,easing:s.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${filledInputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${filledInputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(s.vars||s).palette.error.main}},"&::before":{borderBottom:`1px solid ${s.vars?`rgba(${s.vars.palette.common.onBackgroundChannel} / ${s.vars.opacity.inputUnderline})`:et}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:s.transitions.create("border-bottom-color",{duration:s.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]:{borderBottom:`1px solid ${(s.vars||s).palette.text.primary}`},[`&.${filledInputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}},j.startAdornment&&{paddingLeft:12},j.endAdornment&&{paddingRight:12},j.multiline&&_extends$2({padding:"25px 12px 8px"},j.size==="small"&&{paddingTop:21,paddingBottom:4},j.hiddenLabel&&{paddingTop:16,paddingBottom:17},j.hiddenLabel&&j.size==="small"&&{paddingTop:8,paddingBottom:9}))}),FilledInputInput=styled(InputBaseComponent,{name:"MuiFilledInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:s,ownerState:j})=>_extends$2({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!s.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:s.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:s.palette.mode==="light"?null:"#fff",caretColor:s.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},s.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[s.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},j.size==="small"&&{paddingTop:21,paddingBottom:4},j.hiddenLabel&&{paddingTop:16,paddingBottom:17},j.startAdornment&&{paddingLeft:0},j.endAdornment&&{paddingRight:0},j.hiddenLabel&&j.size==="small"&&{paddingTop:8,paddingBottom:9},j.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),FilledInput=reactExports.forwardRef(function(j,$){var _e,et,tt,nt;const rt=useThemeProps$5({props:j,name:"MuiFilledInput"}),{components:ot={},componentsProps:it,fullWidth:st=!1,inputComponent:at="input",multiline:ct=!1,slotProps:lt,slots:dt={},type:ft="text"}=rt,gt=_objectWithoutPropertiesLoose(rt,_excluded$E),yt=_extends$2({},rt,{fullWidth:st,inputComponent:at,multiline:ct,type:ft}),mt=useUtilityClasses$z(rt),pt={root:{ownerState:yt},input:{ownerState:yt}},xt=lt??it?deepmerge$1(pt,lt??it):pt,Ct=(_e=(et=dt.root)!=null?et:ot.Root)!=null?_e:FilledInputRoot,Dt=(tt=(nt=dt.input)!=null?nt:ot.Input)!=null?tt:FilledInputInput;return jsxRuntimeExports.jsx(InputBase$1,_extends$2({slots:{root:Ct,input:Dt},componentsProps:xt,fullWidth:st,inputComponent:at,multiline:ct,ref:$,type:ft},gt,{classes:mt}))});FilledInput.muiName="Input";function getFormControlUtilityClasses(s){return generateUtilityClass$1("MuiFormControl",s)}generateUtilityClasses$1("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _excluded$D=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],useUtilityClasses$y=s=>{const{classes:j,margin:$,fullWidth:_e}=s,et={root:["root",$!=="none"&&`margin${capitalize$1($)}`,_e&&"fullWidth"]};return composeClasses(et,getFormControlUtilityClasses,j)},FormControlRoot=styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:s},j)=>_extends$2({},j.root,j[`margin${capitalize$1(s.margin)}`],s.fullWidth&&j.fullWidth)})(({ownerState:s})=>_extends$2({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},s.margin==="normal"&&{marginTop:16,marginBottom:8},s.margin==="dense"&&{marginTop:8,marginBottom:4},s.fullWidth&&{width:"100%"})),FormControl=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiFormControl"}),{children:et,className:tt,color:nt="primary",component:rt="div",disabled:ot=!1,error:it=!1,focused:st,fullWidth:at=!1,hiddenLabel:ct=!1,margin:lt="none",required:dt=!1,size:ft="medium",variant:gt="outlined"}=_e,yt=_objectWithoutPropertiesLoose(_e,_excluded$D),mt=_extends$2({},_e,{color:nt,component:rt,disabled:ot,error:it,fullWidth:at,hiddenLabel:ct,margin:lt,required:dt,size:ft,variant:gt}),pt=useUtilityClasses$y(mt),[xt,Ct]=reactExports.useState(()=>{let Nt=!1;return et&&reactExports.Children.forEach(et,ht=>{if(!isMuiElement(ht,["Input","Select"]))return;const bt=isMuiElement(ht,["Select"])?ht.props.input:ht;bt&&isAdornedStart(bt.props)&&(Nt=!0)}),Nt}),[Dt,wt]=reactExports.useState(()=>{let Nt=!1;return et&&reactExports.Children.forEach(et,ht=>{isMuiElement(ht,["Input","Select"])&&(isFilled(ht.props,!0)||isFilled(ht.props.inputProps,!0))&&(Nt=!0)}),Nt}),[kt,zt]=reactExports.useState(!1);ot&&kt&&zt(!1);const Ot=st!==void 0&&!ot?st:kt;let Ft;const Pt=reactExports.useMemo(()=>({adornedStart:xt,setAdornedStart:Ct,color:nt,disabled:ot,error:it,filled:Dt,focused:Ot,fullWidth:at,hiddenLabel:ct,size:ft,onBlur:()=>{zt(!1)},onEmpty:()=>{wt(!1)},onFilled:()=>{wt(!0)},onFocus:()=>{zt(!0)},registerEffect:Ft,required:dt,variant:gt}),[xt,nt,ot,it,Dt,Ot,at,ct,Ft,dt,ft,gt]);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:Pt,children:jsxRuntimeExports.jsx(FormControlRoot,_extends$2({as:rt,ownerState:mt,className:clsx(pt.root,tt),ref:$},yt,{children:et}))})}),Stack=createStack({createStyledComponent:styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(s,j)=>j.root}),useThemeProps:s=>useThemeProps$5({props:s,name:"MuiStack"})});function getFormControlLabelUtilityClasses(s){return generateUtilityClass$1("MuiFormControlLabel",s)}const formControlLabelClasses=generateUtilityClasses$1("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_excluded$C=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],useUtilityClasses$x=s=>{const{classes:j,disabled:$,labelPlacement:_e,error:et,required:tt}=s,nt={root:["root",$&&"disabled",`labelPlacement${capitalize$1(_e)}`,et&&"error",tt&&"required"],label:["label",$&&"disabled"],asterisk:["asterisk",et&&"error"]};return composeClasses(nt,getFormControlLabelUtilityClasses,j)},FormControlLabelRoot=styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${formControlLabelClasses.label}`]:j.label},j.root,j[`labelPlacement${capitalize$1($.labelPlacement)}`]]}})(({theme:s,ownerState:j})=>_extends$2({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${formControlLabelClasses.disabled}`]:{cursor:"default"}},j.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},j.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},j.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${formControlLabelClasses.label}`]:{[`&.${formControlLabelClasses.disabled}`]:{color:(s.vars||s).palette.text.disabled}}})),AsteriskComponent$1=styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(s,j)=>j.asterisk})(({theme:s})=>({[`&.${formControlLabelClasses.error}`]:{color:(s.vars||s).palette.error.main}})),FormControlLabel=reactExports.forwardRef(function(j,$){var _e,et;const tt=useThemeProps$5({props:j,name:"MuiFormControlLabel"}),{className:nt,componentsProps:rt={},control:ot,disabled:it,disableTypography:st,label:at,labelPlacement:ct="end",required:lt,slotProps:dt={}}=tt,ft=_objectWithoutPropertiesLoose(tt,_excluded$C),gt=useFormControl(),yt=(_e=it??ot.props.disabled)!=null?_e:gt==null?void 0:gt.disabled,mt=lt??ot.props.required,pt={disabled:yt,required:mt};["checked","name","onChange","value","inputRef"].forEach(zt=>{typeof ot.props[zt]>"u"&&typeof tt[zt]<"u"&&(pt[zt]=tt[zt])});const xt=formControlState({props:tt,muiFormControl:gt,states:["error"]}),Ct=_extends$2({},tt,{disabled:yt,labelPlacement:ct,required:mt,error:xt.error}),Dt=useUtilityClasses$x(Ct),wt=(et=dt.typography)!=null?et:rt.typography;let kt=at;return kt!=null&&kt.type!==Typography&&!st&&(kt=jsxRuntimeExports.jsx(Typography,_extends$2({component:"span"},wt,{className:clsx(Dt.label,wt==null?void 0:wt.className),children:kt}))),jsxRuntimeExports.jsxs(FormControlLabelRoot,_extends$2({className:clsx(Dt.root,nt),ownerState:Ct,ref:$},ft,{children:[reactExports.cloneElement(ot,pt),mt?jsxRuntimeExports.jsxs(Stack,{display:"block",children:[kt,jsxRuntimeExports.jsxs(AsteriskComponent$1,{ownerState:Ct,"aria-hidden":!0,className:Dt.asterisk,children:[" ","*"]})]}):kt]}))});function getFormHelperTextUtilityClasses(s){return generateUtilityClass$1("MuiFormHelperText",s)}const formHelperTextClasses=generateUtilityClasses$1("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _span$3;const _excluded$B=["children","className","component","disabled","error","filled","focused","margin","required","variant"],useUtilityClasses$w=s=>{const{classes:j,contained:$,size:_e,disabled:et,error:tt,filled:nt,focused:rt,required:ot}=s,it={root:["root",et&&"disabled",tt&&"error",_e&&`size${capitalize$1(_e)}`,$&&"contained",rt&&"focused",nt&&"filled",ot&&"required"]};return composeClasses(it,getFormHelperTextUtilityClasses,j)},FormHelperTextRoot=styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.size&&j[`size${capitalize$1($.size)}`],$.contained&&j.contained,$.filled&&j.filled]}})(({theme:s,ownerState:j})=>_extends$2({color:(s.vars||s).palette.text.secondary},s.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${formHelperTextClasses.disabled}`]:{color:(s.vars||s).palette.text.disabled},[`&.${formHelperTextClasses.error}`]:{color:(s.vars||s).palette.error.main}},j.size==="small"&&{marginTop:4},j.contained&&{marginLeft:14,marginRight:14})),FormHelperText=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiFormHelperText"}),{children:et,className:tt,component:nt="p"}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$B),ot=useFormControl(),it=formControlState({props:_e,muiFormControl:ot,states:["variant","size","disabled","error","filled","focused","required"]}),st=_extends$2({},_e,{component:nt,contained:it.variant==="filled"||it.variant==="outlined",variant:it.variant,size:it.size,disabled:it.disabled,error:it.error,filled:it.filled,focused:it.focused,required:it.required}),at=useUtilityClasses$w(st);return jsxRuntimeExports.jsx(FormHelperTextRoot,_extends$2({as:nt,ownerState:st,className:clsx(at.root,tt),ref:$},rt,{children:et===" "?_span$3||(_span$3=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})):et}))});function getFormLabelUtilityClasses(s){return generateUtilityClass$1("MuiFormLabel",s)}const formLabelClasses=generateUtilityClasses$1("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_excluded$A=["children","className","color","component","disabled","error","filled","focused","required"],useUtilityClasses$v=s=>{const{classes:j,color:$,focused:_e,disabled:et,error:tt,filled:nt,required:rt}=s,ot={root:["root",`color${capitalize$1($)}`,et&&"disabled",tt&&"error",nt&&"filled",_e&&"focused",rt&&"required"],asterisk:["asterisk",tt&&"error"]};return composeClasses(ot,getFormLabelUtilityClasses,j)},FormLabelRoot=styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:s},j)=>_extends$2({},j.root,s.color==="secondary"&&j.colorSecondary,s.filled&&j.filled)})(({theme:s,ownerState:j})=>_extends$2({color:(s.vars||s).palette.text.secondary},s.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${formLabelClasses.focused}`]:{color:(s.vars||s).palette[j.color].main},[`&.${formLabelClasses.disabled}`]:{color:(s.vars||s).palette.text.disabled},[`&.${formLabelClasses.error}`]:{color:(s.vars||s).palette.error.main}})),AsteriskComponent=styled("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(s,j)=>j.asterisk})(({theme:s})=>({[`&.${formLabelClasses.error}`]:{color:(s.vars||s).palette.error.main}})),FormLabel=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiFormLabel"}),{children:et,className:tt,component:nt="label"}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$A),ot=useFormControl(),it=formControlState({props:_e,muiFormControl:ot,states:["color","required","focused","disabled","error","filled"]}),st=_extends$2({},_e,{color:it.color||"primary",component:nt,disabled:it.disabled,error:it.error,filled:it.filled,focused:it.focused,required:it.required}),at=useUtilityClasses$v(st);return jsxRuntimeExports.jsxs(FormLabelRoot,_extends$2({as:nt,ownerState:st,className:clsx(at.root,tt),ref:$},rt,{children:[et,it.required&&jsxRuntimeExports.jsxs(AsteriskComponent,{ownerState:st,"aria-hidden":!0,className:at.asterisk,children:[" ","*"]})]}))}),_excluded$z=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getScale(s){return`scale(${s}, ${s**2})`}const styles={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},isWebKit154=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Grow=reactExports.forwardRef(function(j,$){const{addEndListener:_e,appear:et=!0,children:tt,easing:nt,in:rt,onEnter:ot,onEntered:it,onEntering:st,onExit:at,onExited:ct,onExiting:lt,style:dt,timeout:ft="auto",TransitionComponent:gt=Transition}=j,yt=_objectWithoutPropertiesLoose(j,_excluded$z),mt=useTimeout(),pt=reactExports.useRef(),xt=useTheme$1(),Ct=reactExports.useRef(null),Dt=useForkRef(Ct,tt.ref,$),wt=bt=>St=>{if(bt){const vt=Ct.current;St===void 0?bt(vt):bt(vt,St)}},kt=wt(st),zt=wt((bt,St)=>{reflow(bt);const{duration:vt,delay:At,easing:Tt}=getTransitionProps({style:dt,timeout:ft,easing:nt},{mode:"enter"});let jt;ft==="auto"?(jt=xt.transitions.getAutoHeightDuration(bt.clientHeight),pt.current=jt):jt=vt,bt.style.transition=[xt.transitions.create("opacity",{duration:jt,delay:At}),xt.transitions.create("transform",{duration:isWebKit154?jt:jt*.666,delay:At,easing:Tt})].join(","),ot&&ot(bt,St)}),Ot=wt(it),Ft=wt(lt),Pt=wt(bt=>{const{duration:St,delay:vt,easing:At}=getTransitionProps({style:dt,timeout:ft,easing:nt},{mode:"exit"});let Tt;ft==="auto"?(Tt=xt.transitions.getAutoHeightDuration(bt.clientHeight),pt.current=Tt):Tt=St,bt.style.transition=[xt.transitions.create("opacity",{duration:Tt,delay:vt}),xt.transitions.create("transform",{duration:isWebKit154?Tt:Tt*.666,delay:isWebKit154?vt:vt||Tt*.333,easing:At})].join(","),bt.style.opacity=0,bt.style.transform=getScale(.75),at&&at(bt)}),Nt=wt(ct),ht=bt=>{ft==="auto"&&mt.start(pt.current||0,bt),_e&&_e(Ct.current,bt)};return jsxRuntimeExports.jsx(gt,_extends$2({appear:et,in:rt,nodeRef:Ct,onEnter:zt,onEntered:Ot,onEntering:kt,onExit:Pt,onExited:Nt,onExiting:Ft,addEndListener:ht,timeout:ft==="auto"?null:ft},yt,{children:(bt,St)=>reactExports.cloneElement(tt,_extends$2({style:_extends$2({opacity:0,transform:getScale(.75),visibility:bt==="exited"&&!rt?"hidden":void 0},styles[bt],dt,tt.props.style),ref:Dt},St))}))});Grow.muiSupportAuto=!0;const _excluded$y=["initialWidth","width"],breakpointKeys=["xs","sm","md","lg","xl"],isWidthUp=(s,j,$=!0)=>$?breakpointKeys.indexOf(s)<=breakpointKeys.indexOf(j):breakpointKeys.indexOf(s)$?breakpointKeys.indexOf(j)<=breakpointKeys.indexOf(s):breakpointKeys.indexOf(j)j=>{const{withTheme:$=!1,noSSR:_e=!1,initialWidth:et}=s;function tt(nt){const rt=useTheme$1(),ot=nt.theme||rt,it=getThemeProps({theme:ot,name:"MuiWithWidth",props:nt}),{initialWidth:st,width:at}=it,ct=_objectWithoutPropertiesLoose(it,_excluded$y),[lt,dt]=reactExports.useState(!1);useEnhancedEffect(()=>{dt(!0)},[]);const gt=ot.breakpoints.keys.slice().reverse().reduce((mt,pt)=>{const xt=useMediaQuery(ot.breakpoints.up(pt));return!mt&&xt?pt:mt},null),yt=_extends$2({width:at||(lt||_e?gt:void 0)||st||et},$?{theme:ot}:{},ct);return yt.width===void 0?null:jsxRuntimeExports.jsx(j,_extends$2({},yt))}return tt};function HiddenJs(s){const{children:j,only:$,width:_e}=s,et=useTheme$1();let tt=!0;if($)if(Array.isArray($))for(let nt=0;nt<$.length;nt+=1){const rt=$[nt];if(_e===rt){tt=!1;break}}else $&&_e===$&&(tt=!1);if(tt)for(let nt=0;nt{const{classes:j,breakpoints:$}=s,_e={root:["root",...$.map(({breakpoint:et,dir:tt})=>tt==="only"?`${tt}${capitalize$1(et)}`:`${et}${capitalize$1(tt)}`)]};return composeClasses(_e,getHiddenCssUtilityClass,j)},HiddenCssRoot=styled("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:s,ownerState:j})=>{const $={display:"none"};return _extends$2({},j.breakpoints.map(({breakpoint:_e,dir:et})=>et==="only"?{[s.breakpoints.only(_e)]:$}:et==="up"?{[s.breakpoints.up(_e)]:$}:{[s.breakpoints.down(_e)]:$}).reduce((_e,et)=>(Object.keys(et).forEach(tt=>{_e[tt]=et[tt]}),_e),{}))});function HiddenCss(s){const{children:j,className:$,only:_e}=s,et=_objectWithoutPropertiesLoose(s,_excluded$x),tt=useTheme$1(),nt=[];for(let it=0;it{nt.push({breakpoint:st,dir:"only"})});const rt=_extends$2({},s,{breakpoints:nt}),ot=useUtilityClasses$u(rt);return jsxRuntimeExports.jsx(HiddenCssRoot,{className:clsx(ot.root,$),ownerState:rt,children:j})}const _excluded$w=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Hidden(s){const{implementation:j="js",lgDown:$=!1,lgUp:_e=!1,mdDown:et=!1,mdUp:tt=!1,smDown:nt=!1,smUp:rt=!1,xlDown:ot=!1,xlUp:it=!1,xsDown:st=!1,xsUp:at=!1}=s,ct=_objectWithoutPropertiesLoose(s,_excluded$w);return j==="js"?jsxRuntimeExports.jsx(HiddenJs$1,_extends$2({lgDown:$,lgUp:_e,mdDown:et,mdUp:tt,smDown:nt,smUp:rt,xlDown:ot,xlUp:it,xsDown:st,xsUp:at},ct)):jsxRuntimeExports.jsx(HiddenCss,_extends$2({lgDown:$,lgUp:_e,mdDown:et,mdUp:tt,smDown:nt,smUp:rt,xlDown:ot,xlUp:it,xsDown:st,xsUp:at},ct))}const _excluded$v=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$t=s=>{const{classes:j,disableUnderline:$}=s,et=composeClasses({root:["root",!$&&"underline"],input:["input"]},getInputUtilityClass,j);return _extends$2({},j,et)},InputRoot=styled(InputBaseRoot,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiInput",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[...rootOverridesResolver(s,j),!$.disableUnderline&&j.underline]}})(({theme:s,ownerState:j})=>{let _e=s.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return s.vars&&(_e=`rgba(${s.vars.palette.common.onBackgroundChannel} / ${s.vars.opacity.inputUnderline})`),_extends$2({position:"relative"},j.formControl&&{"label + &":{marginTop:16}},!j.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(s.vars||s).palette[j.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:s.transitions.create("transform",{duration:s.transitions.duration.shorter,easing:s.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${inputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${inputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(s.vars||s).palette.error.main}},"&::before":{borderBottom:`1px solid ${_e}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:s.transitions.create("border-bottom-color",{duration:s.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]:{borderBottom:`2px solid ${(s.vars||s).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${_e}`}},[`&.${inputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}})}),InputInput=styled(InputBaseComponent,{name:"MuiInput",slot:"Input",overridesResolver:inputOverridesResolver})({}),Input=reactExports.forwardRef(function(j,$){var _e,et,tt,nt;const rt=useThemeProps$5({props:j,name:"MuiInput"}),{disableUnderline:ot,components:it={},componentsProps:st,fullWidth:at=!1,inputComponent:ct="input",multiline:lt=!1,slotProps:dt,slots:ft={},type:gt="text"}=rt,yt=_objectWithoutPropertiesLoose(rt,_excluded$v),mt=useUtilityClasses$t(rt),xt={root:{ownerState:{disableUnderline:ot}}},Ct=dt??st?deepmerge$1(dt??st,xt):xt,Dt=(_e=(et=ft.root)!=null?et:it.Root)!=null?_e:InputRoot,wt=(tt=(nt=ft.input)!=null?nt:it.Input)!=null?tt:InputInput;return jsxRuntimeExports.jsx(InputBase$1,_extends$2({slots:{root:Dt,input:wt},slotProps:Ct,fullWidth:at,inputComponent:ct,multiline:lt,ref:$,type:gt},yt,{classes:mt}))});Input.muiName="Input";function getInputAdornmentUtilityClass(s){return generateUtilityClass$1("MuiInputAdornment",s)}const inputAdornmentClasses=generateUtilityClasses$1("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _span$2;const _excluded$u=["children","className","component","disablePointerEvents","disableTypography","position","variant"],overridesResolver$2=(s,j)=>{const{ownerState:$}=s;return[j.root,j[`position${capitalize$1($.position)}`],$.disablePointerEvents===!0&&j.disablePointerEvents,j[$.variant]]},useUtilityClasses$s=s=>{const{classes:j,disablePointerEvents:$,hiddenLabel:_e,position:et,size:tt,variant:nt}=s,rt={root:["root",$&&"disablePointerEvents",et&&`position${capitalize$1(et)}`,nt,_e&&"hiddenLabel",tt&&`size${capitalize$1(tt)}`]};return composeClasses(rt,getInputAdornmentUtilityClass,j)},InputAdornmentRoot=styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:overridesResolver$2})(({theme:s,ownerState:j})=>_extends$2({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(s.vars||s).palette.action.active},j.variant==="filled"&&{[`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]:{marginTop:16}},j.position==="start"&&{marginRight:8},j.position==="end"&&{marginLeft:8},j.disablePointerEvents===!0&&{pointerEvents:"none"})),InputAdornment=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiInputAdornment"}),{children:et,className:tt,component:nt="div",disablePointerEvents:rt=!1,disableTypography:ot=!1,position:it,variant:st}=_e,at=_objectWithoutPropertiesLoose(_e,_excluded$u),ct=useFormControl()||{};let lt=st;st&&ct.variant,ct&&!lt&&(lt=ct.variant);const dt=_extends$2({},_e,{hiddenLabel:ct.hiddenLabel,size:ct.size,disablePointerEvents:rt,position:it,variant:lt}),ft=useUtilityClasses$s(dt);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(InputAdornmentRoot,_extends$2({as:nt,ownerState:dt,className:clsx(ft.root,tt),ref:$},at,{children:typeof et=="string"&&!ot?jsxRuntimeExports.jsx(Typography,{color:"text.secondary",children:et}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[it==="start"?_span$2||(_span$2=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})):null,et]})}))})});function getInputLabelUtilityClasses(s){return generateUtilityClass$1("MuiInputLabel",s)}generateUtilityClasses$1("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _excluded$t=["disableAnimation","margin","shrink","variant","className"],useUtilityClasses$r=s=>{const{classes:j,formControl:$,size:_e,shrink:et,disableAnimation:tt,variant:nt,required:rt}=s,ot={root:["root",$&&"formControl",!tt&&"animated",et&&"shrink",_e&&_e!=="normal"&&`size${capitalize$1(_e)}`,nt],asterisk:[rt&&"asterisk"]},it=composeClasses(ot,getInputLabelUtilityClasses,j);return _extends$2({},j,it)},InputLabelRoot=styled(FormLabel,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${formLabelClasses.asterisk}`]:j.asterisk},j.root,$.formControl&&j.formControl,$.size==="small"&&j.sizeSmall,$.shrink&&j.shrink,!$.disableAnimation&&j.animated,$.focused&&j.focused,j[$.variant]]}})(({theme:s,ownerState:j})=>_extends$2({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},j.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},j.size==="small"&&{transform:"translate(0, 17px) scale(1)"},j.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!j.disableAnimation&&{transition:s.transitions.create(["color","transform","max-width"],{duration:s.transitions.duration.shorter,easing:s.transitions.easing.easeOut})},j.variant==="filled"&&_extends$2({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},j.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},j.shrink&&_extends$2({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},j.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),j.variant==="outlined"&&_extends$2({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},j.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},j.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),InputLabel=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({name:"MuiInputLabel",props:j}),{disableAnimation:et=!1,shrink:tt,className:nt}=_e,rt=_objectWithoutPropertiesLoose(_e,_excluded$t),ot=useFormControl();let it=tt;typeof it>"u"&&ot&&(it=ot.filled||ot.focused||ot.adornedStart);const st=formControlState({props:_e,muiFormControl:ot,states:["size","variant","required","focused"]}),at=_extends$2({},_e,{disableAnimation:et,formControl:ot,shrink:it,size:st.size,variant:st.variant,required:st.required,focused:st.focused}),ct=useUtilityClasses$r(at);return jsxRuntimeExports.jsx(InputLabelRoot,_extends$2({"data-shrink":it,ownerState:at,ref:$,className:clsx(ct.root,nt)},rt,{classes:ct}))});function getLinearProgressUtilityClass(s){return generateUtilityClass$1("MuiLinearProgress",s)}generateUtilityClasses$1("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const _excluded$s=["className","color","value","valueBuffer","variant"];let _=s=>s,_t,_t2,_t3,_t4,_t5,_t6;const TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes(_t||(_t=_` 0% { left: -35%; right: 100%; @@ -219,23 +219,23 @@ Error generating stack: `+tt.message+` `),indeterminate1Keyframe)),LinearProgressBar2=styled("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.bar,j[`barColor${capitalize$1($.color)}`],($.variant==="indeterminate"||$.variant==="query")&&j.bar2Indeterminate,$.variant==="buffer"&&j.bar2Buffer]}})(({ownerState:s,theme:j})=>_extends$2({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},s.variant!=="buffer"&&{backgroundColor:s.color==="inherit"?"currentColor":(j.vars||j).palette[s.color].main},s.color==="inherit"&&{opacity:.3},s.variant==="buffer"&&{backgroundColor:getColorShade(j,s.color),transition:`transform .${TRANSITION_DURATION}s linear`}),({ownerState:s})=>(s.variant==="indeterminate"||s.variant==="query")&&css(_t6||(_t6=_` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),indeterminate2Keyframe)),LinearProgress=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiLinearProgress"}),{className:et,color:tt="primary",value:nt,valueBuffer:rt,variant:ot="indeterminate"}=_e,it=_objectWithoutPropertiesLoose(_e,_excluded$s),st=_extends$2({},_e,{color:tt,variant:ot}),at=useUtilityClasses$q(st),ct=useRtl(),lt={},dt={bar1:{},bar2:{}};if((ot==="determinate"||ot==="buffer")&&nt!==void 0){lt["aria-valuenow"]=Math.round(nt),lt["aria-valuemin"]=0,lt["aria-valuemax"]=100;let pt=nt-100;ct&&(pt=-pt),dt.bar1.transform=`translateX(${pt}%)`}if(ot==="buffer"&&rt!==void 0){let pt=(rt||0)-100;ct&&(pt=-pt),dt.bar2.transform=`translateX(${pt}%)`}return jsxRuntimeExports.jsxs(LinearProgressRoot,_extends$2({className:clsx(at.root,et),ownerState:st,role:"progressbar"},lt,{ref:$},it,{children:[ot==="buffer"?jsxRuntimeExports.jsx(LinearProgressDashed,{className:at.dashed,ownerState:st}):null,jsxRuntimeExports.jsx(LinearProgressBar1,{className:at.bar1,ownerState:st,style:dt.bar1}),ot==="determinate"?null:jsxRuntimeExports.jsx(LinearProgressBar2,{className:at.bar2,ownerState:st,style:dt.bar2})]}))});function getLinkUtilityClass(s){return generateUtilityClass$1("MuiLink",s)}const linkClasses=generateUtilityClasses$1("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),colorTransformations={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},transformDeprecatedColors=s=>colorTransformations[s]||s,getTextDecoration=({theme:s,ownerState:j})=>{const $=transformDeprecatedColors(j.color),_e=getPath(s,`palette.${$}`,!1)||j.color,et=getPath(s,`palette.${$}Channel`);return"vars"in s&&et?`rgba(${et} / 0.4)`:alpha_1(_e,.4)},_excluded$r=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],useUtilityClasses$p=s=>{const{classes:j,component:$,focusVisible:_e,underline:et}=s,tt={root:["root",`underline${capitalize$1(et)}`,$==="button"&&"button",_e&&"focusVisible"]};return composeClasses(tt,getLinkUtilityClass,j)},LinkRoot=styled(Typography,{name:"MuiLink",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[`underline${capitalize$1($.underline)}`],$.component==="button"&&j.button]}})(({theme:s,ownerState:j})=>_extends$2({},j.underline==="none"&&{textDecoration:"none"},j.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},j.underline==="always"&&_extends$2({textDecoration:"underline"},j.color!=="inherit"&&{textDecorationColor:getTextDecoration({theme:s,ownerState:j})},{"&:hover":{textDecorationColor:"inherit"}}),j.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${linkClasses.focusVisible}`]:{outline:"auto"}})),Link$1=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiLink"}),{className:et,color:tt="primary",component:nt="a",onBlur:rt,onFocus:ot,TypographyClasses:it,underline:st="always",variant:at="inherit",sx:ct}=_e,lt=_objectWithoutPropertiesLoose(_e,_excluded$r),{isFocusVisibleRef:dt,onBlur:pt,onFocus:ht,ref:yt}=useIsFocusVisible(),[gt,ft]=reactExports.useState(!1),xt=useForkRef($,yt),Mt=zt=>{pt(zt),dt.current===!1&&ft(!1),rt&&rt(zt)},jt=zt=>{ht(zt),dt.current===!0&&ft(!0),ot&&ot(zt)},wt=_extends$2({},_e,{color:tt,component:nt,focusVisible:gt,underline:st,variant:at}),$t=useUtilityClasses$p(wt);return jsxRuntimeExports.jsx(LinkRoot,_extends$2({color:tt,className:clsx($t.root,et),classes:it,component:nt,onBlur:Mt,onFocus:jt,ref:xt,ownerState:wt,variant:at,sx:[...Object.keys(colorTransformations).includes(tt)?[]:[{color:tt}],...Array.isArray(ct)?ct:[ct]]},lt))}),ListContext=reactExports.createContext({});function getListUtilityClass(s){return generateUtilityClass$1("MuiList",s)}generateUtilityClasses$1("MuiList",["root","padding","dense","subheader"]);const _excluded$q=["children","className","component","dense","disablePadding","subheader"],useUtilityClasses$o=s=>{const{classes:j,disablePadding:$,dense:_e,subheader:et}=s;return composeClasses({root:["root",!$&&"padding",_e&&"dense",et&&"subheader"]},getListUtilityClass,j)},ListRoot=styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,!$.disablePadding&&j.padding,$.dense&&j.dense,$.subheader&&j.subheader]}})(({ownerState:s})=>_extends$2({listStyle:"none",margin:0,padding:0,position:"relative"},!s.disablePadding&&{paddingTop:8,paddingBottom:8},s.subheader&&{paddingTop:0})),List=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiList"}),{children:et,className:tt,component:nt="ul",dense:rt=!1,disablePadding:ot=!1,subheader:it}=_e,st=_objectWithoutPropertiesLoose(_e,_excluded$q),at=reactExports.useMemo(()=>({dense:rt}),[rt]),ct=_extends$2({},_e,{component:nt,dense:rt,disablePadding:ot}),lt=useUtilityClasses$o(ct);return jsxRuntimeExports.jsx(ListContext.Provider,{value:at,children:jsxRuntimeExports.jsxs(ListRoot,_extends$2({as:nt,className:clsx(lt.root,tt),ref:$,ownerState:ct},st,{children:[it,et]}))})});function getListItemUtilityClass(s){return generateUtilityClass$1("MuiListItem",s)}const listItemClasses=generateUtilityClasses$1("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),listItemButtonClasses=generateUtilityClasses$1("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function getListItemSecondaryActionClassesUtilityClass(s){return generateUtilityClass$1("MuiListItemSecondaryAction",s)}generateUtilityClasses$1("MuiListItemSecondaryAction",["root","disableGutters"]);const _excluded$p=["className"],useUtilityClasses$n=s=>{const{disableGutters:j,classes:$}=s;return composeClasses({root:["root",j&&"disableGutters"]},getListItemSecondaryActionClassesUtilityClass,$)},ListItemSecondaryActionRoot=styled("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.disableGutters&&j.disableGutters]}})(({ownerState:s})=>_extends$2({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},s.disableGutters&&{right:0})),ListItemSecondaryAction=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiListItemSecondaryAction"}),{className:et}=_e,tt=_objectWithoutPropertiesLoose(_e,_excluded$p),nt=reactExports.useContext(ListContext),rt=_extends$2({},_e,{disableGutters:nt.disableGutters}),ot=useUtilityClasses$n(rt);return jsxRuntimeExports.jsx(ListItemSecondaryActionRoot,_extends$2({className:clsx(ot.root,et),ownerState:rt,ref:$},tt))});ListItemSecondaryAction.muiName="ListItemSecondaryAction";const _excluded$o=["className"],_excluded2$4=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],overridesResolver$1=(s,j)=>{const{ownerState:$}=s;return[j.root,$.dense&&j.dense,$.alignItems==="flex-start"&&j.alignItemsFlexStart,$.divider&&j.divider,!$.disableGutters&&j.gutters,!$.disablePadding&&j.padding,$.button&&j.button,$.hasSecondaryAction&&j.secondaryAction]},useUtilityClasses$m=s=>{const{alignItems:j,button:$,classes:_e,dense:et,disabled:tt,disableGutters:nt,disablePadding:rt,divider:ot,hasSecondaryAction:it,selected:st}=s;return composeClasses({root:["root",et&&"dense",!nt&&"gutters",!rt&&"padding",ot&&"divider",tt&&"disabled",$&&"button",j==="flex-start"&&"alignItemsFlexStart",it&&"secondaryAction",st&&"selected"],container:["container"]},getListItemUtilityClass,_e)},ListItemRoot=styled("div",{name:"MuiListItem",slot:"Root",overridesResolver:overridesResolver$1})(({theme:s,ownerState:j})=>_extends$2({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!j.disablePadding&&_extends$2({paddingTop:8,paddingBottom:8},j.dense&&{paddingTop:4,paddingBottom:4},!j.disableGutters&&{paddingLeft:16,paddingRight:16},!!j.secondaryAction&&{paddingRight:48}),!!j.secondaryAction&&{[`& > .${listItemButtonClasses.root}`]:{paddingRight:48}},{[`&.${listItemClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`&.${listItemClasses.selected}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity),[`&.${listItemClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.focusOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.focusOpacity)}},[`&.${listItemClasses.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity}},j.alignItems==="flex-start"&&{alignItems:"flex-start"},j.divider&&{borderBottom:`1px solid ${(s.vars||s).palette.divider}`,backgroundClip:"padding-box"},j.button&&{transition:s.transitions.create("background-color",{duration:s.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(s.vars||s).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${listItemClasses.selected}:hover`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity)}}},j.hasSecondaryAction&&{paddingRight:48})),ListItemContainer=styled("li",{name:"MuiListItem",slot:"Container",overridesResolver:(s,j)=>j.container})({position:"relative"}),ListItem=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiListItem"}),{alignItems:et="center",autoFocus:tt=!1,button:nt=!1,children:rt,className:ot,component:it,components:st={},componentsProps:at={},ContainerComponent:ct="li",ContainerProps:{className:lt}={},dense:dt=!1,disabled:pt=!1,disableGutters:ht=!1,disablePadding:yt=!1,divider:gt=!1,focusVisibleClassName:ft,secondaryAction:xt,selected:Mt=!1,slotProps:jt={},slots:wt={}}=_e,$t=_objectWithoutPropertiesLoose(_e.ContainerProps,_excluded$o),zt=_objectWithoutPropertiesLoose(_e,_excluded2$4),Ot=reactExports.useContext(ListContext),Pt=reactExports.useMemo(()=>({dense:dt||Ot.dense||!1,alignItems:et,disableGutters:ht}),[et,Ot.dense,dt,ht]),Ft=reactExports.useRef(null);useEnhancedEffect(()=>{tt&&Ft.current&&Ft.current.focus()},[tt]);const Nt=reactExports.Children.toArray(rt),mt=Nt.length&&isMuiElement(Nt[Nt.length-1],["ListItemSecondaryAction"]),bt=_extends$2({},_e,{alignItems:et,autoFocus:tt,button:nt,dense:Pt.dense,disabled:pt,disableGutters:ht,disablePadding:yt,divider:gt,hasSecondaryAction:mt,selected:Mt}),St=useUtilityClasses$m(bt),vt=useForkRef(Ft,$),At=wt.root||st.Root||ListItemRoot,Tt=jt.root||at.root||{},Dt=_extends$2({className:clsx(St.root,Tt.className,ot),disabled:pt},zt);let Lt=it||"li";return nt&&(Dt.component=it||"div",Dt.focusVisibleClassName=clsx(listItemClasses.focusVisible,ft),Lt=ButtonBase),mt?(Lt=!Dt.component&&!it?"div":Lt,ct==="li"&&(Lt==="li"?Lt="div":Dt.component==="li"&&(Dt.component="div")),jsxRuntimeExports.jsx(ListContext.Provider,{value:Pt,children:jsxRuntimeExports.jsxs(ListItemContainer,_extends$2({as:ct,className:clsx(St.container,lt),ref:vt,ownerState:bt},$t,{children:[jsxRuntimeExports.jsx(At,_extends$2({},Tt,!isHostComponent(At)&&{as:Lt,ownerState:_extends$2({},bt,Tt.ownerState)},Dt,{children:Nt})),Nt.pop()]}))})):jsxRuntimeExports.jsx(ListContext.Provider,{value:Pt,children:jsxRuntimeExports.jsxs(At,_extends$2({},Tt,{as:Lt,ref:vt},!isHostComponent(At)&&{ownerState:_extends$2({},bt,Tt.ownerState)},Dt,{children:[Nt,xt&&jsxRuntimeExports.jsx(ListItemSecondaryAction,{children:xt})]}))})});function getListItemIconUtilityClass(s){return generateUtilityClass$1("MuiListItemIcon",s)}const listItemIconClasses=generateUtilityClasses$1("MuiListItemIcon",["root","alignItemsFlexStart"]),_excluded$n=["className"],useUtilityClasses$l=s=>{const{alignItems:j,classes:$}=s;return composeClasses({root:["root",j==="flex-start"&&"alignItemsFlexStart"]},getListItemIconUtilityClass,$)},ListItemIconRoot=styled("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.alignItems==="flex-start"&&j.alignItemsFlexStart]}})(({theme:s,ownerState:j})=>_extends$2({minWidth:56,color:(s.vars||s).palette.action.active,flexShrink:0,display:"inline-flex"},j.alignItems==="flex-start"&&{marginTop:8})),ListItemIcon=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiListItemIcon"}),{className:et}=_e,tt=_objectWithoutPropertiesLoose(_e,_excluded$n),nt=reactExports.useContext(ListContext),rt=_extends$2({},_e,{alignItems:nt.alignItems}),ot=useUtilityClasses$l(rt);return jsxRuntimeExports.jsx(ListItemIconRoot,_extends$2({className:clsx(ot.root,et),ownerState:rt,ref:$},tt))});function getListItemTextUtilityClass(s){return generateUtilityClass$1("MuiListItemText",s)}const listItemTextClasses=generateUtilityClasses$1("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_excluded$m=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],useUtilityClasses$k=s=>{const{classes:j,inset:$,primary:_e,secondary:et,dense:tt}=s;return composeClasses({root:["root",$&&"inset",tt&&"dense",_e&&et&&"multiline"],primary:["primary"],secondary:["secondary"]},getListItemTextUtilityClass,j)},ListItemTextRoot=styled("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${listItemTextClasses.primary}`]:j.primary},{[`& .${listItemTextClasses.secondary}`]:j.secondary},j.root,$.inset&&j.inset,$.primary&&$.secondary&&j.multiline,$.dense&&j.dense]}})(({ownerState:s})=>_extends$2({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},s.primary&&s.secondary&&{marginTop:6,marginBottom:6},s.inset&&{paddingLeft:56})),ListItemText=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiListItemText"}),{children:et,className:tt,disableTypography:nt=!1,inset:rt=!1,primary:ot,primaryTypographyProps:it,secondary:st,secondaryTypographyProps:at}=_e,ct=_objectWithoutPropertiesLoose(_e,_excluded$m),{dense:lt}=reactExports.useContext(ListContext);let dt=ot??et,pt=st;const ht=_extends$2({},_e,{disableTypography:nt,inset:rt,primary:!!dt,secondary:!!pt,dense:lt}),yt=useUtilityClasses$k(ht);return dt!=null&&dt.type!==Typography&&!nt&&(dt=jsxRuntimeExports.jsx(Typography,_extends$2({variant:lt?"body2":"body1",className:yt.primary,component:it!=null&&it.variant?void 0:"span",display:"block"},it,{children:dt}))),pt!=null&&pt.type!==Typography&&!nt&&(pt=jsxRuntimeExports.jsx(Typography,_extends$2({variant:"body2",className:yt.secondary,color:"text.secondary",display:"block"},at,{children:pt}))),jsxRuntimeExports.jsxs(ListItemTextRoot,_extends$2({className:clsx(yt.root,tt),ownerState:ht,ref:$},ct,{children:[dt,pt]}))}),_excluded$l=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nextItem(s,j,$){return s===j?s.firstChild:j&&j.nextElementSibling?j.nextElementSibling:$?null:s.firstChild}function previousItem(s,j,$){return s===j?$?s.firstChild:s.lastChild:j&&j.previousElementSibling?j.previousElementSibling:$?null:s.lastChild}function textCriteriaMatches(s,j){if(j===void 0)return!0;let $=s.innerText;return $===void 0&&($=s.textContent),$=$.trim().toLowerCase(),$.length===0?!1:j.repeating?$[0]===j.keys[0]:$.indexOf(j.keys.join(""))===0}function moveFocus(s,j,$,_e,et,tt){let nt=!1,rt=et(s,j,j?$:!1);for(;rt;){if(rt===s.firstChild){if(nt)return!1;nt=!0}const ot=_e?!1:rt.disabled||rt.getAttribute("aria-disabled")==="true";if(!rt.hasAttribute("tabindex")||!textCriteriaMatches(rt,tt)||ot)rt=et(s,rt,$);else return rt.focus(),!0}return!1}const MenuList=reactExports.forwardRef(function(j,$){const{actions:_e,autoFocus:et=!1,autoFocusItem:tt=!1,children:nt,className:rt,disabledItemsFocusable:ot=!1,disableListWrap:it=!1,onKeyDown:st,variant:at="selectedMenu"}=j,ct=_objectWithoutPropertiesLoose(j,_excluded$l),lt=reactExports.useRef(null),dt=reactExports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect(()=>{et&<.current.focus()},[et]),reactExports.useImperativeHandle(_e,()=>({adjustStyleForScrollbar:(ft,{direction:xt})=>{const Mt=!lt.current.style.width;if(ft.clientHeight{const xt=lt.current,Mt=ft.key,jt=ownerDocument(xt).activeElement;if(Mt==="ArrowDown")ft.preventDefault(),moveFocus(xt,jt,it,ot,nextItem);else if(Mt==="ArrowUp")ft.preventDefault(),moveFocus(xt,jt,it,ot,previousItem);else if(Mt==="Home")ft.preventDefault(),moveFocus(xt,null,it,ot,nextItem);else if(Mt==="End")ft.preventDefault(),moveFocus(xt,null,it,ot,previousItem);else if(Mt.length===1){const wt=dt.current,$t=Mt.toLowerCase(),zt=performance.now();wt.keys.length>0&&(zt-wt.lastTime>500?(wt.keys=[],wt.repeating=!0,wt.previousKeyMatched=!0):wt.repeating&&$t!==wt.keys[0]&&(wt.repeating=!1)),wt.lastTime=zt,wt.keys.push($t);const Ot=jt&&!wt.repeating&&textCriteriaMatches(jt,wt);wt.previousKeyMatched&&(Ot||moveFocus(xt,jt,!1,ot,nextItem,wt))?ft.preventDefault():wt.previousKeyMatched=!1}st&&st(ft)},ht=useForkRef(lt,$);let yt=-1;reactExports.Children.forEach(nt,(ft,xt)=>{if(!reactExports.isValidElement(ft)){yt===xt&&(yt+=1,yt>=nt.length&&(yt=-1));return}ft.props.disabled||(at==="selectedMenu"&&ft.props.selected||yt===-1)&&(yt=xt),yt===xt&&(ft.props.disabled||ft.props.muiSkipListHighlight||ft.type.muiSkipListHighlight)&&(yt+=1,yt>=nt.length&&(yt=-1))});const gt=reactExports.Children.map(nt,(ft,xt)=>{if(xt===yt){const Mt={};return tt&&(Mt.autoFocus=!0),ft.props.tabIndex===void 0&&at==="selectedMenu"&&(Mt.tabIndex=0),reactExports.cloneElement(ft,Mt)}return ft});return jsxRuntimeExports.jsx(List,_extends$2({role:"menu",ref:ht,className:rt,onKeyDown:pt,tabIndex:et?0:-1},ct,{children:gt}))});function getPopoverUtilityClass(s){return generateUtilityClass$1("MuiPopover",s)}generateUtilityClasses$1("MuiPopover",["root","paper"]);const _excluded$k=["onEntering"],_excluded2$3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_excluded3=["slotProps"];function getOffsetTop(s,j){let $=0;return typeof j=="number"?$=j:j==="center"?$=s.height/2:j==="bottom"&&($=s.height),$}function getOffsetLeft(s,j){let $=0;return typeof j=="number"?$=j:j==="center"?$=s.width/2:j==="right"&&($=s.width),$}function getTransformOriginValue(s){return[s.horizontal,s.vertical].map(j=>typeof j=="number"?`${j}px`:j).join(" ")}function resolveAnchorEl(s){return typeof s=="function"?s():s}const useUtilityClasses$j=s=>{const{classes:j}=s;return composeClasses({root:["root"],paper:["paper"]},getPopoverUtilityClass,j)},PopoverRoot=styled(Modal,{name:"MuiPopover",slot:"Root",overridesResolver:(s,j)=>j.root})({}),PopoverPaper=styled(Paper,{name:"MuiPopover",slot:"Paper",overridesResolver:(s,j)=>j.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Popover=reactExports.forwardRef(function(j,$){var _e,et,tt;const nt=useThemeProps$5({props:j,name:"MuiPopover"}),{action:rt,anchorEl:ot,anchorOrigin:it={vertical:"top",horizontal:"left"},anchorPosition:st,anchorReference:at="anchorEl",children:ct,className:lt,container:dt,elevation:pt=8,marginThreshold:ht=16,open:yt,PaperProps:gt={},slots:ft,slotProps:xt,transformOrigin:Mt={vertical:"top",horizontal:"left"},TransitionComponent:jt=Grow,transitionDuration:wt="auto",TransitionProps:{onEntering:$t}={},disableScrollLock:zt=!1}=nt,Ot=_objectWithoutPropertiesLoose(nt.TransitionProps,_excluded$k),Pt=_objectWithoutPropertiesLoose(nt,_excluded2$3),Ft=(_e=xt==null?void 0:xt.paper)!=null?_e:gt,Nt=reactExports.useRef(),mt=useForkRef(Nt,Ft.ref),bt=_extends$2({},nt,{anchorOrigin:it,anchorReference:at,elevation:pt,marginThreshold:ht,externalPaperSlotProps:Ft,transformOrigin:Mt,TransitionComponent:jt,transitionDuration:wt,TransitionProps:Ot}),St=useUtilityClasses$j(bt),vt=reactExports.useCallback(()=>{if(at==="anchorPosition")return st;const Qt=resolveAnchorEl(ot),Xt=(Qt&&Qt.nodeType===1?Qt:ownerDocument(Nt.current).body).getBoundingClientRect();return{top:Xt.top+getOffsetTop(Xt,it.vertical),left:Xt.left+getOffsetLeft(Xt,it.horizontal)}},[ot,it.horizontal,it.vertical,st,at]),At=reactExports.useCallback(Qt=>({vertical:getOffsetTop(Qt,Mt.vertical),horizontal:getOffsetLeft(Qt,Mt.horizontal)}),[Mt.horizontal,Mt.vertical]),Tt=reactExports.useCallback(Qt=>{const qt={width:Qt.offsetWidth,height:Qt.offsetHeight},Xt=At(qt);if(at==="none")return{top:null,left:null,transformOrigin:getTransformOriginValue(Xt)};const sn=vt();let nn=sn.top-Xt.vertical,rn=sn.left-Xt.horizontal;const hn=nn+qt.height,on=rn+qt.width,an=ownerWindow(resolveAnchorEl(ot)),gn=an.innerHeight-ht,fn=an.innerWidth-ht;if(ht!==null&&nngn){const ln=hn-gn;nn-=ln,Xt.vertical+=ln}if(ht!==null&&rnfn){const ln=on-fn;rn-=ln,Xt.horizontal+=ln}return{top:`${Math.round(nn)}px`,left:`${Math.round(rn)}px`,transformOrigin:getTransformOriginValue(Xt)}},[ot,at,vt,At,ht]),[Dt,Lt]=reactExports.useState(yt),Et=reactExports.useCallback(()=>{const Qt=Nt.current;if(!Qt)return;const qt=Tt(Qt);qt.top!==null&&(Qt.style.top=qt.top),qt.left!==null&&(Qt.style.left=qt.left),Qt.style.transformOrigin=qt.transformOrigin,Lt(!0)},[Tt]);reactExports.useEffect(()=>(zt&&window.addEventListener("scroll",Et),()=>window.removeEventListener("scroll",Et)),[ot,zt,Et]);const kt=(Qt,qt)=>{$t&&$t(Qt,qt),Et()},Ut=()=>{Lt(!1)};reactExports.useEffect(()=>{yt&&Et()}),reactExports.useImperativeHandle(rt,()=>yt?{updatePosition:()=>{Et()}}:null,[yt,Et]),reactExports.useEffect(()=>{if(!yt)return;const Qt=debounce$1(()=>{Et()}),qt=ownerWindow(ot);return qt.addEventListener("resize",Qt),()=>{Qt.clear(),qt.removeEventListener("resize",Qt)}},[ot,yt,Et]);let Gt=wt;wt==="auto"&&!jt.muiSupportAuto&&(Gt=void 0);const Ht=dt||(ot?ownerDocument(resolveAnchorEl(ot)).body:void 0),tn=(et=ft==null?void 0:ft.root)!=null?et:PopoverRoot,Jt=(tt=ft==null?void 0:ft.paper)!=null?tt:PopoverPaper,Kt=useSlotProps({elementType:Jt,externalSlotProps:_extends$2({},Ft,{style:Dt?Ft.style:_extends$2({},Ft.style,{opacity:0})}),additionalProps:{elevation:pt,ref:mt},ownerState:bt,className:clsx(St.paper,Ft==null?void 0:Ft.className)}),dn=useSlotProps({elementType:tn,externalSlotProps:(xt==null?void 0:xt.root)||{},externalForwardedProps:Pt,additionalProps:{ref:$,slotProps:{backdrop:{invisible:!0}},container:Ht,open:yt},ownerState:bt,className:clsx(St.root,lt)}),{slotProps:en}=dn,Zt=_objectWithoutPropertiesLoose(dn,_excluded3);return jsxRuntimeExports.jsx(tn,_extends$2({},Zt,!isHostComponent(tn)&&{slotProps:en,disableScrollLock:zt},{children:jsxRuntimeExports.jsx(jt,_extends$2({appear:!0,in:yt,onEntering:kt,onExited:Ut,timeout:Gt},Ot,{children:jsxRuntimeExports.jsx(Jt,_extends$2({},Kt,{children:ct}))}))}))});function getMenuUtilityClass(s){return generateUtilityClass$1("MuiMenu",s)}generateUtilityClasses$1("MuiMenu",["root","paper","list"]);const _excluded$j=["onEntering"],_excluded2$2=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},useUtilityClasses$i=s=>{const{classes:j}=s;return composeClasses({root:["root"],paper:["paper"],list:["list"]},getMenuUtilityClass,j)},MenuRoot=styled(Popover,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(s,j)=>j.root})({}),MenuPaper=styled(PopoverPaper,{name:"MuiMenu",slot:"Paper",overridesResolver:(s,j)=>j.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),MenuMenuList=styled(MenuList,{name:"MuiMenu",slot:"List",overridesResolver:(s,j)=>j.list})({outline:0}),Menu=reactExports.forwardRef(function(j,$){var _e,et;const tt=useThemeProps$5({props:j,name:"MuiMenu"}),{autoFocus:nt=!0,children:rt,className:ot,disableAutoFocusItem:it=!1,MenuListProps:st={},onClose:at,open:ct,PaperProps:lt={},PopoverClasses:dt,transitionDuration:pt="auto",TransitionProps:{onEntering:ht}={},variant:yt="selectedMenu",slots:gt={},slotProps:ft={}}=tt,xt=_objectWithoutPropertiesLoose(tt.TransitionProps,_excluded$j),Mt=_objectWithoutPropertiesLoose(tt,_excluded2$2),jt=useRtl(),wt=_extends$2({},tt,{autoFocus:nt,disableAutoFocusItem:it,MenuListProps:st,onEntering:ht,PaperProps:lt,transitionDuration:pt,TransitionProps:xt,variant:yt}),$t=useUtilityClasses$i(wt),zt=nt&&!it&&ct,Ot=reactExports.useRef(null),Pt=(At,Tt)=>{Ot.current&&Ot.current.adjustStyleForScrollbar(At,{direction:jt?"rtl":"ltr"}),ht&&ht(At,Tt)},Ft=At=>{At.key==="Tab"&&(At.preventDefault(),at&&at(At,"tabKeyDown"))};let Nt=-1;reactExports.Children.map(rt,(At,Tt)=>{reactExports.isValidElement(At)&&(At.props.disabled||(yt==="selectedMenu"&&At.props.selected||Nt===-1)&&(Nt=Tt))});const mt=(_e=gt.paper)!=null?_e:MenuPaper,bt=(et=ft.paper)!=null?et:lt,St=useSlotProps({elementType:gt.root,externalSlotProps:ft.root,ownerState:wt,className:[$t.root,ot]}),vt=useSlotProps({elementType:mt,externalSlotProps:bt,ownerState:wt,className:$t.paper});return jsxRuntimeExports.jsx(MenuRoot,_extends$2({onClose:at,anchorOrigin:{vertical:"bottom",horizontal:jt?"right":"left"},transformOrigin:jt?RTL_ORIGIN:LTR_ORIGIN,slots:{paper:mt,root:gt.root},slotProps:{root:St,paper:vt},open:ct,ref:$,transitionDuration:pt,TransitionProps:_extends$2({onEntering:Pt},xt),ownerState:wt},Mt,{classes:dt,children:jsxRuntimeExports.jsx(MenuMenuList,_extends$2({onKeyDown:Ft,actions:Ot,autoFocus:nt&&(Nt===-1||it),autoFocusItem:zt,variant:yt},st,{className:clsx($t.list,st.className),children:rt}))}))});function getMenuItemUtilityClass(s){return generateUtilityClass$1("MuiMenuItem",s)}const menuItemClasses=generateUtilityClasses$1("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_excluded$i=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],overridesResolver=(s,j)=>{const{ownerState:$}=s;return[j.root,$.dense&&j.dense,$.divider&&j.divider,!$.disableGutters&&j.gutters]},useUtilityClasses$h=s=>{const{disabled:j,dense:$,divider:_e,disableGutters:et,selected:tt,classes:nt}=s,ot=composeClasses({root:["root",$&&"dense",j&&"disabled",!et&&"gutters",_e&&"divider",tt&&"selected"]},getMenuItemUtilityClass,nt);return _extends$2({},nt,ot)},MenuItemRoot=styled(ButtonBase,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver})(({theme:s,ownerState:j})=>_extends$2({},s.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!j.disableGutters&&{paddingLeft:16,paddingRight:16},j.divider&&{borderBottom:`1px solid ${(s.vars||s).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(s.vars||s).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${menuItemClasses.selected}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity),[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.focusOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.focusOpacity)}},[`&.${menuItemClasses.selected}:hover`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity)}},[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`&.${menuItemClasses.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity},[`& + .${dividerClasses.root}`]:{marginTop:s.spacing(1),marginBottom:s.spacing(1)},[`& + .${dividerClasses.inset}`]:{marginLeft:52},[`& .${listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${listItemIconClasses.root}`]:{minWidth:36}},!j.dense&&{[s.breakpoints.up("sm")]:{minHeight:"auto"}},j.dense&&_extends$2({minHeight:32,paddingTop:4,paddingBottom:4},s.typography.body2,{[`& .${listItemIconClasses.root} svg`]:{fontSize:"1.25rem"}}))),MenuItem=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiMenuItem"}),{autoFocus:et=!1,component:tt="li",dense:nt=!1,divider:rt=!1,disableGutters:ot=!1,focusVisibleClassName:it,role:st="menuitem",tabIndex:at,className:ct}=_e,lt=_objectWithoutPropertiesLoose(_e,_excluded$i),dt=reactExports.useContext(ListContext),pt=reactExports.useMemo(()=>({dense:nt||dt.dense||!1,disableGutters:ot}),[dt.dense,nt,ot]),ht=reactExports.useRef(null);useEnhancedEffect(()=>{et&&ht.current&&ht.current.focus()},[et]);const yt=_extends$2({},_e,{dense:pt.dense,divider:rt,disableGutters:ot}),gt=useUtilityClasses$h(_e),ft=useForkRef(ht,$);let xt;return _e.disabled||(xt=at!==void 0?at:-1),jsxRuntimeExports.jsx(ListContext.Provider,{value:pt,children:jsxRuntimeExports.jsx(MenuItemRoot,_extends$2({ref:ft,role:st,tabIndex:xt,component:tt,focusVisibleClassName:clsx(gt.focusVisible,it),className:clsx(gt.root,ct)},lt,{ownerState:yt,classes:gt}))})});function getNativeSelectUtilityClasses(s){return generateUtilityClass$1("MuiNativeSelect",s)}const nativeSelectClasses=generateUtilityClasses$1("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_excluded$h=["className","disabled","error","IconComponent","inputRef","variant"],useUtilityClasses$g=s=>{const{classes:j,variant:$,disabled:_e,multiple:et,open:tt,error:nt}=s,rt={select:["select",$,_e&&"disabled",et&&"multiple",nt&&"error"],icon:["icon",`icon${capitalize$1($)}`,tt&&"iconOpen",_e&&"disabled"]};return composeClasses(rt,getNativeSelectUtilityClasses,j)},nativeSelectSelectStyles=({ownerState:s,theme:j})=>_extends$2({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":_extends$2({},j.vars?{backgroundColor:`rgba(${j.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:j.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${nativeSelectClasses.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(j.vars||j).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},s.variant==="filled"&&{"&&&":{paddingRight:32}},s.variant==="outlined"&&{borderRadius:(j.vars||j).shape.borderRadius,"&:focus":{borderRadius:(j.vars||j).shape.borderRadius},"&&&":{paddingRight:32}}),NativeSelectSelect=styled("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rootShouldForwardProp,overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.select,j[$.variant],$.error&&j.error,{[`&.${nativeSelectClasses.multiple}`]:j.multiple}]}})(nativeSelectSelectStyles),nativeSelectIconStyles=({ownerState:s,theme:j})=>_extends$2({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(j.vars||j).palette.action.active,[`&.${nativeSelectClasses.disabled}`]:{color:(j.vars||j).palette.action.disabled}},s.open&&{transform:"rotate(180deg)"},s.variant==="filled"&&{right:7},s.variant==="outlined"&&{right:7}),NativeSelectIcon=styled("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.icon,$.variant&&j[`icon${capitalize$1($.variant)}`],$.open&&j.iconOpen]}})(nativeSelectIconStyles),NativeSelectInput=reactExports.forwardRef(function(j,$){const{className:_e,disabled:et,error:tt,IconComponent:nt,inputRef:rt,variant:ot="standard"}=j,it=_objectWithoutPropertiesLoose(j,_excluded$h),st=_extends$2({},j,{disabled:et,variant:ot,error:tt}),at=useUtilityClasses$g(st);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(NativeSelectSelect,_extends$2({ownerState:st,className:clsx(at.select,_e),disabled:et,ref:rt||$},it)),j.multiple?null:jsxRuntimeExports.jsx(NativeSelectIcon,{as:nt,ownerState:st,className:at.icon})]})});var _span$1;const _excluded$g=["children","classes","className","label","notched"],NotchedOutlineRoot$1=styled("fieldset",{shouldForwardProp:rootShouldForwardProp})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),NotchedOutlineLegend=styled("legend",{shouldForwardProp:rootShouldForwardProp})(({ownerState:s,theme:j})=>_extends$2({float:"unset",width:"auto",overflow:"hidden"},!s.withLabel&&{padding:0,lineHeight:"11px",transition:j.transitions.create("width",{duration:150,easing:j.transitions.easing.easeOut})},s.withLabel&&_extends$2({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:j.transitions.create("max-width",{duration:50,easing:j.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},s.notched&&{maxWidth:"100%",transition:j.transitions.create("max-width",{duration:100,easing:j.transitions.easing.easeOut,delay:50})})));function NotchedOutline(s){const{className:j,label:$,notched:_e}=s,et=_objectWithoutPropertiesLoose(s,_excluded$g),tt=$!=null&&$!=="",nt=_extends$2({},s,{notched:_e,withLabel:tt});return jsxRuntimeExports.jsx(NotchedOutlineRoot$1,_extends$2({"aria-hidden":!0,className:j,ownerState:nt},et,{children:jsxRuntimeExports.jsx(NotchedOutlineLegend,{ownerState:nt,children:tt?jsxRuntimeExports.jsx("span",{children:$}):_span$1||(_span$1=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"}))})}))}const _excluded$f=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],useUtilityClasses$f=s=>{const{classes:j}=s,_e=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getOutlinedInputUtilityClass,j);return _extends$2({},j,_e)},OutlinedInputRoot=styled(InputBaseRoot,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:s,ownerState:j})=>{const $=s.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return _extends$2({position:"relative",borderRadius:(s.vars||s).shape.borderRadius,[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:(s.vars||s).palette.text.primary},"@media (hover: none)":{[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:s.vars?`rgba(${s.vars.palette.common.onBackgroundChannel} / 0.23)`:$}},[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(s.vars||s).palette[j.color].main,borderWidth:2},[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(s.vars||s).palette.error.main},[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(s.vars||s).palette.action.disabled}},j.startAdornment&&{paddingLeft:14},j.endAdornment&&{paddingRight:14},j.multiline&&_extends$2({padding:"16.5px 14px"},j.size==="small"&&{padding:"8.5px 14px"}))}),NotchedOutlineRoot=styled(NotchedOutline,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(s,j)=>j.notchedOutline})(({theme:s})=>{const j=s.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:s.vars?`rgba(${s.vars.palette.common.onBackgroundChannel} / 0.23)`:j}}),OutlinedInputInput=styled(InputBaseComponent,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:s,ownerState:j})=>_extends$2({padding:"16.5px 14px"},!s.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:s.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:s.palette.mode==="light"?null:"#fff",caretColor:s.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},s.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[s.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},j.size==="small"&&{padding:"8.5px 14px"},j.multiline&&{padding:0},j.startAdornment&&{paddingLeft:0},j.endAdornment&&{paddingRight:0})),OutlinedInput=reactExports.forwardRef(function(j,$){var _e,et,tt,nt,rt;const ot=useThemeProps$5({props:j,name:"MuiOutlinedInput"}),{components:it={},fullWidth:st=!1,inputComponent:at="input",label:ct,multiline:lt=!1,notched:dt,slots:pt={},type:ht="text"}=ot,yt=_objectWithoutPropertiesLoose(ot,_excluded$f),gt=useUtilityClasses$f(ot),ft=useFormControl(),xt=formControlState({props:ot,muiFormControl:ft,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),Mt=_extends$2({},ot,{color:xt.color||"primary",disabled:xt.disabled,error:xt.error,focused:xt.focused,formControl:ft,fullWidth:st,hiddenLabel:xt.hiddenLabel,multiline:lt,size:xt.size,type:ht}),jt=(_e=(et=pt.root)!=null?et:it.Root)!=null?_e:OutlinedInputRoot,wt=(tt=(nt=pt.input)!=null?nt:it.Input)!=null?tt:OutlinedInputInput;return jsxRuntimeExports.jsx(InputBase$1,_extends$2({slots:{root:jt,input:wt},renderSuffix:$t=>jsxRuntimeExports.jsx(NotchedOutlineRoot,{ownerState:Mt,className:gt.notchedOutline,label:ct!=null&&ct!==""&&xt.required?rt||(rt=jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ct," ","*"]})):ct,notched:typeof dt<"u"?dt:!!($t.startAdornment||$t.filled||$t.focused)}),fullWidth:st,inputComponent:at,multiline:lt,ref:$,type:ht},yt,{classes:_extends$2({},gt,{notchedOutline:null})}))});OutlinedInput.muiName="Input";function getSelectUtilityClasses(s){return generateUtilityClass$1("MuiSelect",s)}const selectClasses=generateUtilityClasses$1("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _span;const _excluded$e=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],SelectSelect=styled("div",{name:"MuiSelect",slot:"Select",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`&.${selectClasses.select}`]:j.select},{[`&.${selectClasses.select}`]:j[$.variant]},{[`&.${selectClasses.error}`]:j.error},{[`&.${selectClasses.multiple}`]:j.multiple}]}})(nativeSelectSelectStyles,{[`&.${selectClasses.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SelectIcon=styled("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.icon,$.variant&&j[`icon${capitalize$1($.variant)}`],$.open&&j.iconOpen]}})(nativeSelectIconStyles),SelectNativeInput=styled("input",{shouldForwardProp:s=>slotShouldForwardProp(s)&&s!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(s,j)=>j.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues(s,j){return typeof j=="object"&&j!==null?s===j:String(s)===String(j)}function isEmpty(s){return s==null||typeof s=="string"&&!s.trim()}const useUtilityClasses$e=s=>{const{classes:j,variant:$,disabled:_e,multiple:et,open:tt,error:nt}=s,rt={select:["select",$,_e&&"disabled",et&&"multiple",nt&&"error"],icon:["icon",`icon${capitalize$1($)}`,tt&&"iconOpen",_e&&"disabled"],nativeInput:["nativeInput"]};return composeClasses(rt,getSelectUtilityClasses,j)},SelectInput=reactExports.forwardRef(function(j,$){var _e;const{"aria-describedby":et,"aria-label":tt,autoFocus:nt,autoWidth:rt,children:ot,className:it,defaultOpen:st,defaultValue:at,disabled:ct,displayEmpty:lt,error:dt=!1,IconComponent:pt,inputRef:ht,labelId:yt,MenuProps:gt={},multiple:ft,name:xt,onBlur:Mt,onChange:jt,onClose:wt,onFocus:$t,onOpen:zt,open:Ot,readOnly:Pt,renderValue:Ft,SelectDisplayProps:Nt={},tabIndex:mt,value:bt,variant:St="standard"}=j,vt=_objectWithoutPropertiesLoose(j,_excluded$e),[At,Tt]=useControlled({controlled:bt,default:at,name:"Select"}),[Dt,Lt]=useControlled({controlled:Ot,default:st,name:"Select"}),Et=reactExports.useRef(null),kt=reactExports.useRef(null),[Ut,Gt]=reactExports.useState(null),{current:Ht}=reactExports.useRef(Ot!=null),[tn,Jt]=reactExports.useState(),Kt=useForkRef($,ht),dn=reactExports.useCallback(Yt=>{kt.current=Yt,Yt&&Gt(Yt)},[]),en=Ut==null?void 0:Ut.parentNode;reactExports.useImperativeHandle(Kt,()=>({focus:()=>{kt.current.focus()},node:Et.current,value:At}),[At]),reactExports.useEffect(()=>{st&&Dt&&Ut&&!Ht&&(Jt(rt?null:en.clientWidth),kt.current.focus())},[Ut,rt]),reactExports.useEffect(()=>{nt&&kt.current.focus()},[nt]),reactExports.useEffect(()=>{if(!yt)return;const Yt=ownerDocument(kt.current).getElementById(yt);if(Yt){const cn=()=>{getSelection().isCollapsed&&kt.current.focus()};return Yt.addEventListener("click",cn),()=>{Yt.removeEventListener("click",cn)}}},[yt]);const Zt=(Yt,cn)=>{Yt?zt&&zt(cn):wt&&wt(cn),Ht||(Jt(rt?null:en.clientWidth),Lt(Yt))},Qt=Yt=>{Yt.button===0&&(Yt.preventDefault(),kt.current.focus(),Zt(!0,Yt))},qt=Yt=>{Zt(!1,Yt)},Xt=reactExports.Children.toArray(ot),sn=Yt=>{const cn=Xt.find(pn=>pn.props.value===Yt.target.value);cn!==void 0&&(Tt(cn.props.value),jt&&jt(Yt,cn))},nn=Yt=>cn=>{let pn;if(cn.currentTarget.hasAttribute("tabindex")){if(ft){pn=Array.isArray(At)?At.slice():[];const un=At.indexOf(Yt.props.value);un===-1?pn.push(Yt.props.value):pn.splice(un,1)}else pn=Yt.props.value;if(Yt.props.onClick&&Yt.props.onClick(cn),At!==pn&&(Tt(pn),jt)){const un=cn.nativeEvent||cn,En=new un.constructor(un.type,un);Object.defineProperty(En,"target",{writable:!0,value:{value:pn,name:xt}}),jt(En,Yt)}ft||Zt(!1,cn)}},rn=Yt=>{Pt||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Yt.key)!==-1&&(Yt.preventDefault(),Zt(!0,Yt))},hn=Ut!==null&&Dt,on=Yt=>{!hn&&Mt&&(Object.defineProperty(Yt,"target",{writable:!0,value:{value:At,name:xt}}),Mt(Yt))};delete vt["aria-invalid"];let an,gn;const fn=[];let ln=!1;(isFilled({value:At})||lt)&&(Ft?an=Ft(At):ln=!0);const yn=Xt.map(Yt=>{if(!reactExports.isValidElement(Yt))return null;let cn;if(ft){if(!Array.isArray(At))throw new Error(formatMuiErrorMessage$1(2));cn=At.some(pn=>areEqualValues(pn,Yt.props.value)),cn&&ln&&fn.push(Yt.props.children)}else cn=areEqualValues(At,Yt.props.value),cn&&ln&&(gn=Yt.props.children);return reactExports.cloneElement(Yt,{"aria-selected":cn?"true":"false",onClick:nn(Yt),onKeyUp:pn=>{pn.key===" "&&pn.preventDefault(),Yt.props.onKeyUp&&Yt.props.onKeyUp(pn)},role:"option",selected:cn,value:void 0,"data-value":Yt.props.value})});ln&&(ft?fn.length===0?an=null:an=fn.reduce((Yt,cn,pn)=>(Yt.push(cn),pn{const{classes:j}=s;return j},styledRootConfig={name:"MuiSelect",overridesResolver:(s,j)=>j.root,shouldForwardProp:s=>rootShouldForwardProp(s)&&s!=="variant",slot:"Root"},StyledInput=styled(Input,styledRootConfig)(""),StyledOutlinedInput=styled(OutlinedInput,styledRootConfig)(""),StyledFilledInput=styled(FilledInput,styledRootConfig)(""),Select=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({name:"MuiSelect",props:j}),{autoWidth:et=!1,children:tt,classes:nt={},className:rt,defaultOpen:ot=!1,displayEmpty:it=!1,IconComponent:st=ArrowDropDownIcon,id:at,input:ct,inputProps:lt,label:dt,labelId:pt,MenuProps:ht,multiple:yt=!1,native:gt=!1,onClose:ft,onOpen:xt,open:Mt,renderValue:jt,SelectDisplayProps:wt,variant:$t="outlined"}=_e,zt=_objectWithoutPropertiesLoose(_e,_excluded$d),Ot=gt?NativeSelectInput:SelectInput,Pt=useFormControl(),Ft=formControlState({props:_e,muiFormControl:Pt,states:["variant","error"]}),Nt=Ft.variant||$t,mt=_extends$2({},_e,{variant:Nt,classes:nt}),bt=useUtilityClasses$d(mt),St=_objectWithoutPropertiesLoose(bt,_excluded2$1),vt=ct||{standard:jsxRuntimeExports.jsx(StyledInput,{ownerState:mt}),outlined:jsxRuntimeExports.jsx(StyledOutlinedInput,{label:dt,ownerState:mt}),filled:jsxRuntimeExports.jsx(StyledFilledInput,{ownerState:mt})}[Nt],At=useForkRef($,vt.ref);return jsxRuntimeExports.jsx(reactExports.Fragment,{children:reactExports.cloneElement(vt,_extends$2({inputComponent:Ot,inputProps:_extends$2({children:tt,error:Ft.error,IconComponent:st,variant:Nt,type:void 0,multiple:yt},gt?{id:at}:{autoWidth:et,defaultOpen:ot,displayEmpty:it,labelId:pt,MenuProps:ht,onClose:ft,onOpen:xt,open:Mt,renderValue:jt,SelectDisplayProps:_extends$2({id:at},wt)},lt,{classes:lt?deepmerge$1(St,lt.classes):St},ct?ct.props.inputProps:{})},(yt&>||it)&&Nt==="outlined"?{notched:!0}:{},{ref:At,className:clsx(vt.props.className,rt,bt.root)},!ct&&{variant:Nt},zt))})});Select.muiName="Select";const shouldSpreadAdditionalProps=s=>!s||!isHostComponent(s);function getSliderUtilityClass(s){return generateUtilityClass$1("MuiSlider",s)}const sliderClasses=generateUtilityClasses$1("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),useValueLabelClasses=s=>{const{open:j}=s;return{offset:clsx(j&&sliderClasses.valueLabelOpen),circle:sliderClasses.valueLabelCircle,label:sliderClasses.valueLabelLabel}};function SliderValueLabel$1(s){const{children:j,className:$,value:_e}=s,et=useValueLabelClasses(s);return j?reactExports.cloneElement(j,{className:clsx(j.props.className)},jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[j.props.children,jsxRuntimeExports.jsx("span",{className:clsx(et.offset,$),"aria-hidden":!0,children:jsxRuntimeExports.jsx("span",{className:et.circle,children:jsxRuntimeExports.jsx("span",{className:et.label,children:_e})})})]})):null}const _excluded$c=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],useThemeProps=createUseThemeProps();function Identity(s){return s}const SliderRoot=styled("span",{name:"MuiSlider",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[`color${capitalize$1($.color)}`],$.size!=="medium"&&j[`size${capitalize$1($.size)}`],$.marked&&j.marked,$.orientation==="vertical"&&j.vertical,$.track==="inverted"&&j.trackInverted,$.track===!1&&j.trackFalse]}})(({theme:s})=>{var j;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${sliderClasses.disabled}`]:{pointerEvents:"none",cursor:"default",color:(s.vars||s).palette.grey[400]},[`&.${sliderClasses.dragging}`]:{[`& .${sliderClasses.thumb}, & .${sliderClasses.track}`]:{transition:"none"}},variants:[...Object.keys(((j=s.vars)!=null?j:s).palette).filter($=>{var _e;return((_e=s.vars)!=null?_e:s).palette[$].main}).map($=>({props:{color:$},style:{color:(s.vars||s).palette[$].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),SliderRail=styled("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(s,j)=>j.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),SliderTrack=styled("span",{name:"MuiSlider",slot:"Track",overridesResolver:(s,j)=>j.track})(({theme:s})=>{var j;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:s.transitions.create(["left","width","bottom","height"],{duration:s.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((j=s.vars)!=null?j:s).palette).filter($=>{var _e;return((_e=s.vars)!=null?_e:s).palette[$].main}).map($=>({props:{color:$,track:"inverted"},style:_extends$2({},s.vars?{backgroundColor:s.vars.palette.Slider[`${$}Track`],borderColor:s.vars.palette.Slider[`${$}Track`]}:_extends$2({backgroundColor:lighten_1(s.palette[$].main,.62),borderColor:lighten_1(s.palette[$].main,.62)},s.applyStyles("dark",{backgroundColor:darken_1(s.palette[$].main,.5)}),s.applyStyles("dark",{borderColor:darken_1(s.palette[$].main,.5)})))}))]}}),SliderThumb=styled("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.thumb,j[`thumbColor${capitalize$1($.color)}`],$.size!=="medium"&&j[`thumbSize${capitalize$1($.size)}`]]}})(({theme:s})=>{var j;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:s.transitions.create(["box-shadow","left","bottom"],{duration:s.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(s.vars||s).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${sliderClasses.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((j=s.vars)!=null?j:s).palette).filter($=>{var _e;return((_e=s.vars)!=null?_e:s).palette[$].main}).map($=>({props:{color:$},style:{[`&:hover, &.${sliderClasses.focusVisible}`]:_extends$2({},s.vars?{boxShadow:`0px 0px 0px 8px rgba(${s.vars.palette[$].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${alpha_1(s.palette[$].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${sliderClasses.active}`]:_extends$2({},s.vars?{boxShadow:`0px 0px 0px 14px rgba(${s.vars.palette[$].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${alpha_1(s.palette[$].main,.16)}`})}}))]}}),SliderValueLabel=styled(SliderValueLabel$1,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(s,j)=>j.valueLabel})(({theme:s})=>_extends$2({zIndex:1,whiteSpace:"nowrap"},s.typography.body2,{fontWeight:500,transition:s.transitions.create(["transform"],{duration:s.transitions.duration.shortest}),position:"absolute",backgroundColor:(s.vars||s).palette.grey[600],borderRadius:2,color:(s.vars||s).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${sliderClasses.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${sliderClasses.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:s.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),SliderMark=styled("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:s=>slotShouldForwardProp(s)&&s!=="markActive",overridesResolver:(s,j)=>{const{markActive:$}=s;return[j.mark,$&&j.markActive]}})(({theme:s})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(s.vars||s).palette.background.paper,opacity:.8}}]})),SliderMarkLabel=styled("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:s=>slotShouldForwardProp(s)&&s!=="markLabelActive",overridesResolver:(s,j)=>j.markLabel})(({theme:s})=>_extends$2({},s.typography.body2,{color:(s.vars||s).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(s.vars||s).palette.text.primary}}]})),useUtilityClasses$c=s=>{const{disabled:j,dragging:$,marked:_e,orientation:et,track:tt,classes:nt,color:rt,size:ot}=s,it={root:["root",j&&"disabled",$&&"dragging",_e&&"marked",et==="vertical"&&"vertical",tt==="inverted"&&"trackInverted",tt===!1&&"trackFalse",rt&&`color${capitalize$1(rt)}`,ot&&`size${capitalize$1(ot)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",j&&"disabled",ot&&`thumbSize${capitalize$1(ot)}`,rt&&`thumbColor${capitalize$1(rt)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return composeClasses(it,getSliderUtilityClass,nt)},Forward=({children:s})=>s,Slider=reactExports.forwardRef(function(j,$){var _e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,pt,ht,yt,gt,ft,xt,Mt,jt,wt,$t,zt,Ot;const Pt=useThemeProps({props:j,name:"MuiSlider"}),Ft=useRtl(),{"aria-label":Nt,"aria-valuetext":mt,"aria-labelledby":bt,component:St="span",components:vt={},componentsProps:At={},color:Tt="primary",classes:Dt,className:Lt,disableSwap:Et=!1,disabled:kt=!1,getAriaLabel:Ut,getAriaValueText:Gt,marks:Ht=!1,max:tn=100,min:Jt=0,orientation:Kt="horizontal",shiftStep:dn=10,size:en="medium",step:Zt=1,scale:Qt=Identity,slotProps:qt,slots:Xt,track:sn="normal",valueLabelDisplay:nn="off",valueLabelFormat:rn=Identity}=Pt,hn=_objectWithoutPropertiesLoose(Pt,_excluded$c),on=_extends$2({},Pt,{isRtl:Ft,max:tn,min:Jt,classes:Dt,disabled:kt,disableSwap:Et,orientation:Kt,marks:Ht,color:Tt,size:en,step:Zt,shiftStep:dn,scale:Qt,track:sn,valueLabelDisplay:nn,valueLabelFormat:rn}),{axisProps:an,getRootProps:gn,getHiddenInputProps:fn,getThumbProps:ln,open:yn,active:mn,axis:Rt,focusedThumbIndex:Ct,range:It,dragging:Bt,marks:Wt,values:Vt,trackOffset:Yt,trackLeap:cn,getThumbStyle:pn}=useSlider(_extends$2({},on,{rootRef:$}));on.marked=Wt.length>0&&Wt.some(kn=>kn.label),on.dragging=Bt,on.focusedThumbIndex=Ct;const un=useUtilityClasses$c(on),En=(_e=(et=Xt==null?void 0:Xt.root)!=null?et:vt.Root)!=null?_e:SliderRoot,xn=(tt=(nt=Xt==null?void 0:Xt.rail)!=null?nt:vt.Rail)!=null?tt:SliderRail,Bn=(rt=(ot=Xt==null?void 0:Xt.track)!=null?ot:vt.Track)!=null?rt:SliderTrack,Qn=(it=(st=Xt==null?void 0:Xt.thumb)!=null?st:vt.Thumb)!=null?it:SliderThumb,On=(at=(ct=Xt==null?void 0:Xt.valueLabel)!=null?ct:vt.ValueLabel)!=null?at:SliderValueLabel,wn=(lt=(dt=Xt==null?void 0:Xt.mark)!=null?dt:vt.Mark)!=null?lt:SliderMark,Yn=(pt=(ht=Xt==null?void 0:Xt.markLabel)!=null?ht:vt.MarkLabel)!=null?pt:SliderMarkLabel,Nn=(yt=(gt=Xt==null?void 0:Xt.input)!=null?gt:vt.Input)!=null?yt:"input",Ln=(ft=qt==null?void 0:qt.root)!=null?ft:At.root,qn=(xt=qt==null?void 0:qt.rail)!=null?xt:At.rail,Dn=(Mt=qt==null?void 0:qt.track)!=null?Mt:At.track,_n=(jt=qt==null?void 0:qt.thumb)!=null?jt:At.thumb,Wn=(wt=qt==null?void 0:qt.valueLabel)!=null?wt:At.valueLabel,Pn=($t=qt==null?void 0:qt.mark)!=null?$t:At.mark,Tn=(zt=qt==null?void 0:qt.markLabel)!=null?zt:At.markLabel,Vn=(Ot=qt==null?void 0:qt.input)!=null?Ot:At.input,Sn=useSlotProps({elementType:En,getSlotProps:gn,externalSlotProps:Ln,externalForwardedProps:hn,additionalProps:_extends$2({},shouldSpreadAdditionalProps(En)&&{as:St}),ownerState:_extends$2({},on,Ln==null?void 0:Ln.ownerState),className:[un.root,Lt]}),vn=useSlotProps({elementType:xn,externalSlotProps:qn,ownerState:on,className:un.rail}),Zn=useSlotProps({elementType:Bn,externalSlotProps:Dn,additionalProps:{style:_extends$2({},an[Rt].offset(Yt),an[Rt].leap(cn))},ownerState:_extends$2({},on,Dn==null?void 0:Dn.ownerState),className:un.track}),An=useSlotProps({elementType:Qn,getSlotProps:ln,externalSlotProps:_n,ownerState:_extends$2({},on,_n==null?void 0:_n.ownerState),className:un.thumb}),$n=useSlotProps({elementType:On,externalSlotProps:Wn,ownerState:_extends$2({},on,Wn==null?void 0:Wn.ownerState),className:un.valueLabel}),Gn=useSlotProps({elementType:wn,externalSlotProps:Pn,ownerState:on,className:un.mark}),jn=useSlotProps({elementType:Yn,externalSlotProps:Tn,ownerState:on,className:un.markLabel}),zn=useSlotProps({elementType:Nn,getSlotProps:fn,externalSlotProps:Vn,ownerState:on});return jsxRuntimeExports.jsxs(En,_extends$2({},Sn,{children:[jsxRuntimeExports.jsx(xn,_extends$2({},vn)),jsxRuntimeExports.jsx(Bn,_extends$2({},Zn)),Wt.filter(kn=>kn.value>=Jt&&kn.value<=tn).map((kn,Cn)=>{const Rn=valueToPercent(kn.value,Jt,tn),Hn=an[Rt].offset(Rn);let Un;return sn===!1?Un=Vt.indexOf(kn.value)!==-1:Un=sn==="normal"&&(It?kn.value>=Vt[0]&&kn.value<=Vt[Vt.length-1]:kn.value<=Vt[0])||sn==="inverted"&&(It?kn.value<=Vt[0]||kn.value>=Vt[Vt.length-1]:kn.value>=Vt[0]),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(wn,_extends$2({"data-index":Cn},Gn,!isHostComponent(wn)&&{markActive:Un},{style:_extends$2({},Hn,Gn.style),className:clsx(Gn.className,Un&&un.markActive)})),kn.label!=null?jsxRuntimeExports.jsx(Yn,_extends$2({"aria-hidden":!0,"data-index":Cn},jn,!isHostComponent(Yn)&&{markLabelActive:Un},{style:_extends$2({},Hn,jn.style),className:clsx(un.markLabel,jn.className,Un&&un.markLabelActive),children:kn.label})):null]},Cn)}),Vt.map((kn,Cn)=>{const Rn=valueToPercent(kn,Jt,tn),Hn=an[Rt].offset(Rn),Un=nn==="off"?Forward:On;return jsxRuntimeExports.jsx(Un,_extends$2({},!isHostComponent(Un)&&{valueLabelFormat:rn,valueLabelDisplay:nn,value:typeof rn=="function"?rn(Qt(kn),Cn):rn,index:Cn,open:yn===Cn||mn===Cn||nn==="on",disabled:kt},$n,{children:jsxRuntimeExports.jsx(Qn,_extends$2({"data-index":Cn},An,{className:clsx(un.thumb,An.className,mn===Cn&&un.active,Ct===Cn&&un.focusVisible),style:_extends$2({},Hn,pn(Cn),An.style),children:jsxRuntimeExports.jsx(Nn,_extends$2({"data-index":Cn,"aria-label":Ut?Ut(Cn):Nt,"aria-valuenow":Qt(kn),"aria-labelledby":bt,"aria-valuetext":Gt?Gt(Qt(kn),Cn):mt,value:Vt[Cn]},zn))}))}),Cn)})]}))});function getTooltipUtilityClass(s){return generateUtilityClass$1("MuiTooltip",s)}const tooltipClasses=generateUtilityClasses$1("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_excluded$b=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function round(s){return Math.round(s*1e5)/1e5}const useUtilityClasses$b=s=>{const{classes:j,disableInteractive:$,arrow:_e,touch:et,placement:tt}=s,nt={popper:["popper",!$&&"popperInteractive",_e&&"popperArrow"],tooltip:["tooltip",_e&&"tooltipArrow",et&&"touch",`tooltipPlacement${capitalize$1(tt.split("-")[0])}`],arrow:["arrow"]};return composeClasses(nt,getTooltipUtilityClass,j)},TooltipPopper=styled(Popper,{name:"MuiTooltip",slot:"Popper",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.popper,!$.disableInteractive&&j.popperInteractive,$.arrow&&j.popperArrow,!$.open&&j.popperClose]}})(({theme:s,ownerState:j,open:$})=>_extends$2({zIndex:(s.vars||s).zIndex.tooltip,pointerEvents:"none"},!j.disableInteractive&&{pointerEvents:"auto"},!$&&{pointerEvents:"none"},j.arrow&&{[`&[data-popper-placement*="bottom"] .${tooltipClasses.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tooltipClasses.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]:_extends$2({},j.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]:_extends$2({},j.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),TooltipTooltip=styled("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.tooltip,$.touch&&j.touch,$.arrow&&j.tooltipArrow,j[`tooltipPlacement${capitalize$1($.placement.split("-")[0])}`]]}})(({theme:s,ownerState:j})=>_extends$2({backgroundColor:s.vars?s.vars.palette.Tooltip.bg:alpha_1(s.palette.grey[700],.92),borderRadius:(s.vars||s).shape.borderRadius,color:(s.vars||s).palette.common.white,fontFamily:s.typography.fontFamily,padding:"4px 8px",fontSize:s.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:s.typography.fontWeightMedium},j.arrow&&{position:"relative",margin:0},j.touch&&{padding:"8px 16px",fontSize:s.typography.pxToRem(14),lineHeight:`${round(16/14)}em`,fontWeight:s.typography.fontWeightRegular},{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:_extends$2({transformOrigin:"right center"},j.isRtl?_extends$2({marginLeft:"14px"},j.touch&&{marginLeft:"24px"}):_extends$2({marginRight:"14px"},j.touch&&{marginRight:"24px"})),[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:_extends$2({transformOrigin:"left center"},j.isRtl?_extends$2({marginRight:"14px"},j.touch&&{marginRight:"24px"}):_extends$2({marginLeft:"14px"},j.touch&&{marginLeft:"24px"})),[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]:_extends$2({transformOrigin:"center bottom",marginBottom:"14px"},j.touch&&{marginBottom:"24px"}),[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]:_extends$2({transformOrigin:"center top",marginTop:"14px"},j.touch&&{marginTop:"24px"})})),TooltipArrow=styled("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(s,j)=>j.arrow})(({theme:s})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:s.vars?s.vars.palette.Tooltip.bg:alpha_1(s.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let hystersisOpen=!1;const hystersisTimer=new Timeout;let cursorPosition={x:0,y:0};function composeEventHandler(s,j){return($,..._e)=>{j&&j($,..._e),s($,..._e)}}const Tooltip=reactExports.forwardRef(function(j,$){var _e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,pt,ht,yt,gt,ft,xt,Mt;const jt=useThemeProps$5({props:j,name:"MuiTooltip"}),{arrow:wt=!1,children:$t,components:zt={},componentsProps:Ot={},describeChild:Pt=!1,disableFocusListener:Ft=!1,disableHoverListener:Nt=!1,disableInteractive:mt=!1,disableTouchListener:bt=!1,enterDelay:St=100,enterNextDelay:vt=0,enterTouchDelay:At=700,followCursor:Tt=!1,id:Dt,leaveDelay:Lt=0,leaveTouchDelay:Et=1500,onClose:kt,onOpen:Ut,open:Gt,placement:Ht="bottom",PopperComponent:tn,PopperProps:Jt={},slotProps:Kt={},slots:dn={},title:en,TransitionComponent:Zt=Grow,TransitionProps:Qt}=jt,qt=_objectWithoutPropertiesLoose(jt,_excluded$b),Xt=reactExports.isValidElement($t)?$t:jsxRuntimeExports.jsx("span",{children:$t}),sn=useTheme$1(),nn=useRtl(),[rn,hn]=reactExports.useState(),[on,an]=reactExports.useState(null),gn=reactExports.useRef(!1),fn=mt||Tt,ln=useTimeout(),yn=useTimeout(),mn=useTimeout(),Rt=useTimeout(),[Ct,It]=useControlled({controlled:Gt,default:!1,name:"Tooltip",state:"open"});let Bt=Ct;const Wt=useId(Dt),Vt=reactExports.useRef(),Yt=useEventCallback(()=>{Vt.current!==void 0&&(document.body.style.WebkitUserSelect=Vt.current,Vt.current=void 0),Rt.clear()});reactExports.useEffect(()=>Yt,[Yt]);const cn=In=>{hystersisTimer.clear(),hystersisOpen=!0,It(!0),Ut&&!Bt&&Ut(In)},pn=useEventCallback(In=>{hystersisTimer.start(800+Lt,()=>{hystersisOpen=!1}),It(!1),kt&&Bt&&kt(In),ln.start(sn.transitions.duration.shortest,()=>{gn.current=!1})}),un=In=>{gn.current&&In.type!=="touchstart"||(rn&&rn.removeAttribute("title"),yn.clear(),mn.clear(),St||hystersisOpen&&vt?yn.start(hystersisOpen?vt:St,()=>{cn(In)}):cn(In))},En=In=>{yn.clear(),mn.start(Lt,()=>{pn(In)})},{isFocusVisibleRef:xn,onBlur:Bn,onFocus:Qn,ref:On}=useIsFocusVisible(),[,wn]=reactExports.useState(!1),Yn=In=>{Bn(In),xn.current===!1&&(wn(!1),En(In))},Nn=In=>{rn||hn(In.currentTarget),Qn(In),xn.current===!0&&(wn(!0),un(In))},Ln=In=>{gn.current=!0;const Fn=Xt.props;Fn.onTouchStart&&Fn.onTouchStart(In)},qn=In=>{Ln(In),mn.clear(),ln.clear(),Yt(),Vt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Rt.start(At,()=>{document.body.style.WebkitUserSelect=Vt.current,un(In)})},Dn=In=>{Xt.props.onTouchEnd&&Xt.props.onTouchEnd(In),Yt(),mn.start(Et,()=>{pn(In)})};reactExports.useEffect(()=>{if(!Bt)return;function In(Fn){(Fn.key==="Escape"||Fn.key==="Esc")&&pn(Fn)}return document.addEventListener("keydown",In),()=>{document.removeEventListener("keydown",In)}},[pn,Bt]);const _n=useForkRef(Xt.ref,On,hn,$);!en&&en!==0&&(Bt=!1);const Wn=reactExports.useRef(),Pn=In=>{const Fn=Xt.props;Fn.onMouseMove&&Fn.onMouseMove(In),cursorPosition={x:In.clientX,y:In.clientY},Wn.current&&Wn.current.update()},Tn={},Vn=typeof en=="string";Pt?(Tn.title=!Bt&&Vn&&!Nt?en:null,Tn["aria-describedby"]=Bt?Wt:null):(Tn["aria-label"]=Vn?en:null,Tn["aria-labelledby"]=Bt&&!Vn?Wt:null);const Sn=_extends$2({},Tn,qt,Xt.props,{className:clsx(qt.className,Xt.props.className),onTouchStart:Ln,ref:_n},Tt?{onMouseMove:Pn}:{}),vn={};bt||(Sn.onTouchStart=qn,Sn.onTouchEnd=Dn),Nt||(Sn.onMouseOver=composeEventHandler(un,Sn.onMouseOver),Sn.onMouseLeave=composeEventHandler(En,Sn.onMouseLeave),fn||(vn.onMouseOver=un,vn.onMouseLeave=En)),Ft||(Sn.onFocus=composeEventHandler(Nn,Sn.onFocus),Sn.onBlur=composeEventHandler(Yn,Sn.onBlur),fn||(vn.onFocus=Nn,vn.onBlur=Yn));const Zn=reactExports.useMemo(()=>{var In;let Fn=[{name:"arrow",enabled:!!on,options:{element:on,padding:4}}];return(In=Jt.popperOptions)!=null&&In.modifiers&&(Fn=Fn.concat(Jt.popperOptions.modifiers)),_extends$2({},Jt.popperOptions,{modifiers:Fn})},[on,Jt]),An=_extends$2({},jt,{isRtl:nn,arrow:wt,disableInteractive:fn,placement:Ht,PopperComponentProp:tn,touch:gn.current}),$n=useUtilityClasses$b(An),Gn=(_e=(et=dn.popper)!=null?et:zt.Popper)!=null?_e:TooltipPopper,jn=(tt=(nt=(rt=dn.transition)!=null?rt:zt.Transition)!=null?nt:Zt)!=null?tt:Grow,zn=(ot=(it=dn.tooltip)!=null?it:zt.Tooltip)!=null?ot:TooltipTooltip,kn=(st=(at=dn.arrow)!=null?at:zt.Arrow)!=null?st:TooltipArrow,Cn=appendOwnerState(Gn,_extends$2({},Jt,(ct=Kt.popper)!=null?ct:Ot.popper,{className:clsx($n.popper,Jt==null?void 0:Jt.className,(lt=(dt=Kt.popper)!=null?dt:Ot.popper)==null?void 0:lt.className)}),An),Rn=appendOwnerState(jn,_extends$2({},Qt,(pt=Kt.transition)!=null?pt:Ot.transition),An),Hn=appendOwnerState(zn,_extends$2({},(ht=Kt.tooltip)!=null?ht:Ot.tooltip,{className:clsx($n.tooltip,(yt=(gt=Kt.tooltip)!=null?gt:Ot.tooltip)==null?void 0:yt.className)}),An),Un=appendOwnerState(kn,_extends$2({},(ft=Kt.arrow)!=null?ft:Ot.arrow,{className:clsx($n.arrow,(xt=(Mt=Kt.arrow)!=null?Mt:Ot.arrow)==null?void 0:xt.className)}),An);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[reactExports.cloneElement(Xt,Sn),jsxRuntimeExports.jsx(Gn,_extends$2({as:tn??Popper,placement:Ht,anchorEl:Tt?{getBoundingClientRect:()=>({top:cursorPosition.y,left:cursorPosition.x,right:cursorPosition.x,bottom:cursorPosition.y,width:0,height:0})}:rn,popperRef:Wn,open:rn?Bt:!1,id:Wt,transition:!0},vn,Cn,{popperOptions:Zn,children:({TransitionProps:In})=>jsxRuntimeExports.jsx(jn,_extends$2({timeout:sn.transitions.duration.shorter},In,Rn,{children:jsxRuntimeExports.jsxs(zn,_extends$2({},Hn,{children:[en,wt?jsxRuntimeExports.jsx(kn,_extends$2({},Un,{ref:an})):null]}))}))}))]})}),TableContext=reactExports.createContext();function getTableUtilityClass(s){return generateUtilityClass$1("MuiTable",s)}generateUtilityClasses$1("MuiTable",["root","stickyHeader"]);const _excluded$a=["className","component","padding","size","stickyHeader"],useUtilityClasses$a=s=>{const{classes:j,stickyHeader:$}=s;return composeClasses({root:["root",$&&"stickyHeader"]},getTableUtilityClass,j)},TableRoot=styled("table",{name:"MuiTable",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.stickyHeader&&j.stickyHeader]}})(({theme:s,ownerState:j})=>_extends$2({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":_extends$2({},s.typography.body2,{padding:s.spacing(2),color:(s.vars||s).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},j.stickyHeader&&{borderCollapse:"separate"})),defaultComponent$4="table",Table$1=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTable"}),{className:et,component:tt=defaultComponent$4,padding:nt="normal",size:rt="medium",stickyHeader:ot=!1}=_e,it=_objectWithoutPropertiesLoose(_e,_excluded$a),st=_extends$2({},_e,{component:tt,padding:nt,size:rt,stickyHeader:ot}),at=useUtilityClasses$a(st),ct=reactExports.useMemo(()=>({padding:nt,size:rt,stickyHeader:ot}),[nt,rt,ot]);return jsxRuntimeExports.jsx(TableContext.Provider,{value:ct,children:jsxRuntimeExports.jsx(TableRoot,_extends$2({as:tt,role:tt===defaultComponent$4?null:"table",ref:$,className:clsx(at.root,et),ownerState:st},it))})}),Tablelvl2Context=reactExports.createContext();function getTableBodyUtilityClass(s){return generateUtilityClass$1("MuiTableBody",s)}generateUtilityClasses$1("MuiTableBody",["root"]);const _excluded$9=["className","component"],useUtilityClasses$9=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTableBodyUtilityClass,j)},TableBodyRoot=styled("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(s,j)=>j.root})({display:"table-row-group"}),tablelvl2$2={variant:"body"},defaultComponent$3="tbody",TableBody=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableBody"}),{className:et,component:tt=defaultComponent$3}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$9),rt=_extends$2({},_e,{component:tt}),ot=useUtilityClasses$9(rt);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2$2,children:jsxRuntimeExports.jsx(TableBodyRoot,_extends$2({className:clsx(ot.root,et),as:tt,ref:$,role:tt===defaultComponent$3?null:"rowgroup",ownerState:rt},nt))})});function getTableCellUtilityClass(s){return generateUtilityClass$1("MuiTableCell",s)}const tableCellClasses=generateUtilityClasses$1("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_excluded$8=["align","className","component","padding","scope","size","sortDirection","variant"],useUtilityClasses$8=s=>{const{classes:j,variant:$,align:_e,padding:et,size:tt,stickyHeader:nt}=s,rt={root:["root",$,nt&&"stickyHeader",_e!=="inherit"&&`align${capitalize$1(_e)}`,et!=="normal"&&`padding${capitalize$1(et)}`,`size${capitalize$1(tt)}`]};return composeClasses(rt,getTableCellUtilityClass,j)},TableCellRoot=styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.variant],j[`size${capitalize$1($.size)}`],$.padding!=="normal"&&j[`padding${capitalize$1($.padding)}`],$.align!=="inherit"&&j[`align${capitalize$1($.align)}`],$.stickyHeader&&j.stickyHeader]}})(({theme:s,ownerState:j})=>_extends$2({},s.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:s.vars?`1px solid ${s.vars.palette.TableCell.border}`:`1px solid - ${s.palette.mode==="light"?lighten_1(alpha_1(s.palette.divider,1),.88):darken_1(alpha_1(s.palette.divider,1),.68)}`,textAlign:"left",padding:16},j.variant==="head"&&{color:(s.vars||s).palette.text.primary,lineHeight:s.typography.pxToRem(24),fontWeight:s.typography.fontWeightMedium},j.variant==="body"&&{color:(s.vars||s).palette.text.primary},j.variant==="footer"&&{color:(s.vars||s).palette.text.secondary,lineHeight:s.typography.pxToRem(21),fontSize:s.typography.pxToRem(12)},j.size==="small"&&{padding:"6px 16px",[`&.${tableCellClasses.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},j.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},j.padding==="none"&&{padding:0},j.align==="left"&&{textAlign:"left"},j.align==="center"&&{textAlign:"center"},j.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},j.align==="justify"&&{textAlign:"justify"},j.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(s.vars||s).palette.background.default})),TableCell=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableCell"}),{align:et="inherit",className:tt,component:nt,padding:rt,scope:ot,size:it,sortDirection:st,variant:at}=_e,ct=_objectWithoutPropertiesLoose(_e,_excluded$8),lt=reactExports.useContext(TableContext),dt=reactExports.useContext(Tablelvl2Context),pt=dt&&dt.variant==="head";let ht;nt?ht=nt:ht=pt?"th":"td";let yt=ot;ht==="td"?yt=void 0:!yt&&pt&&(yt="col");const gt=at||dt&&dt.variant,ft=_extends$2({},_e,{align:et,component:ht,padding:rt||(lt&<.padding?lt.padding:"normal"),size:it||(lt&<.size?lt.size:"medium"),sortDirection:st,stickyHeader:gt==="head"&<&<.stickyHeader,variant:gt}),xt=useUtilityClasses$8(ft);let Mt=null;return st&&(Mt=st==="asc"?"ascending":"descending"),jsxRuntimeExports.jsx(TableCellRoot,_extends$2({as:ht,ref:$,className:clsx(xt.root,tt),"aria-sort":Mt,scope:yt,ownerState:ft},ct))});function getTableContainerUtilityClass(s){return generateUtilityClass$1("MuiTableContainer",s)}generateUtilityClasses$1("MuiTableContainer",["root"]);const _excluded$7=["className","component"],useUtilityClasses$7=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTableContainerUtilityClass,j)},TableContainerRoot=styled("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(s,j)=>j.root})({width:"100%",overflowX:"auto"}),TableContainer=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableContainer"}),{className:et,component:tt="div"}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$7),rt=_extends$2({},_e,{component:tt}),ot=useUtilityClasses$7(rt);return jsxRuntimeExports.jsx(TableContainerRoot,_extends$2({ref:$,as:tt,className:clsx(ot.root,et),ownerState:rt},nt))});function getTableFooterUtilityClass(s){return generateUtilityClass$1("MuiTableFooter",s)}generateUtilityClasses$1("MuiTableFooter",["root"]);const _excluded$6=["className","component"],useUtilityClasses$6=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTableFooterUtilityClass,j)},TableFooterRoot=styled("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(s,j)=>j.root})({display:"table-footer-group"}),tablelvl2$1={variant:"footer"},defaultComponent$2="tfoot",TableFooter=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableFooter"}),{className:et,component:tt=defaultComponent$2}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$6),rt=_extends$2({},_e,{component:tt}),ot=useUtilityClasses$6(rt);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2$1,children:jsxRuntimeExports.jsx(TableFooterRoot,_extends$2({as:tt,className:clsx(ot.root,et),ref:$,role:tt===defaultComponent$2?null:"rowgroup",ownerState:rt},nt))})});function getTableHeadUtilityClass(s){return generateUtilityClass$1("MuiTableHead",s)}generateUtilityClasses$1("MuiTableHead",["root"]);const _excluded$5=["className","component"],useUtilityClasses$5=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTableHeadUtilityClass,j)},TableHeadRoot=styled("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(s,j)=>j.root})({display:"table-header-group"}),tablelvl2={variant:"head"},defaultComponent$1="thead",TableHead=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableHead"}),{className:et,component:tt=defaultComponent$1}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$5),rt=_extends$2({},_e,{component:tt}),ot=useUtilityClasses$5(rt);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2,children:jsxRuntimeExports.jsx(TableHeadRoot,_extends$2({as:tt,className:clsx(ot.root,et),ref:$,role:tt===defaultComponent$1?null:"rowgroup",ownerState:rt},nt))})});function getToolbarUtilityClass(s){return generateUtilityClass$1("MuiToolbar",s)}generateUtilityClasses$1("MuiToolbar",["root","gutters","regular","dense"]);const _excluded$4=["className","component","disableGutters","variant"],useUtilityClasses$4=s=>{const{classes:j,disableGutters:$,variant:_e}=s;return composeClasses({root:["root",!$&&"gutters",_e]},getToolbarUtilityClass,j)},ToolbarRoot=styled("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,!$.disableGutters&&j.gutters,j[$.variant]]}})(({theme:s,ownerState:j})=>_extends$2({position:"relative",display:"flex",alignItems:"center"},!j.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},j.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:j})=>j.variant==="regular"&&s.mixins.toolbar),Toolbar=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiToolbar"}),{className:et,component:tt="div",disableGutters:nt=!1,variant:rt="regular"}=_e,ot=_objectWithoutPropertiesLoose(_e,_excluded$4),it=_extends$2({},_e,{component:tt,disableGutters:nt,variant:rt}),st=useUtilityClasses$4(it);return jsxRuntimeExports.jsx(ToolbarRoot,_extends$2({as:tt,className:clsx(st.root,et),ref:$,ownerState:it},ot))});function getTableRowUtilityClass(s){return generateUtilityClass$1("MuiTableRow",s)}const tableRowClasses=generateUtilityClasses$1("MuiTableRow",["root","selected","hover","head","footer"]),_excluded$3=["className","component","hover","selected"],useUtilityClasses$3=s=>{const{classes:j,selected:$,hover:_e,head:et,footer:tt}=s;return composeClasses({root:["root",$&&"selected",_e&&"hover",et&&"head",tt&&"footer"]},getTableRowUtilityClass,j)},TableRowRoot=styled("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.head&&j.head,$.footer&&j.footer]}})(({theme:s})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tableRowClasses.hover}:hover`]:{backgroundColor:(s.vars||s).palette.action.hover},[`&.${tableRowClasses.selected}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity),"&:hover":{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity)}}})),defaultComponent="tr",TableRow=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableRow"}),{className:et,component:tt=defaultComponent,hover:nt=!1,selected:rt=!1}=_e,ot=_objectWithoutPropertiesLoose(_e,_excluded$3),it=reactExports.useContext(Tablelvl2Context),st=_extends$2({},_e,{component:tt,hover:nt,selected:rt,head:it&&it.variant==="head",footer:it&&it.variant==="footer"}),at=useUtilityClasses$3(st);return jsxRuntimeExports.jsx(TableRowRoot,_extends$2({as:tt,ref:$,className:clsx(at.root,et),role:tt===defaultComponent?null:"row",ownerState:st},ot))});function getTextFieldUtilityClass(s){return generateUtilityClass$1("MuiTextField",s)}generateUtilityClasses$1("MuiTextField",["root"]);const _excluded$2=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],variantComponent={standard:Input,filled:FilledInput,outlined:OutlinedInput},useUtilityClasses$2=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTextFieldUtilityClass,j)},TextFieldRoot=styled(FormControl,{name:"MuiTextField",slot:"Root",overridesResolver:(s,j)=>j.root})({}),TextField=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTextField"}),{autoComplete:et,autoFocus:tt=!1,children:nt,className:rt,color:ot="primary",defaultValue:it,disabled:st=!1,error:at=!1,FormHelperTextProps:ct,fullWidth:lt=!1,helperText:dt,id:pt,InputLabelProps:ht,inputProps:yt,InputProps:gt,inputRef:ft,label:xt,maxRows:Mt,minRows:jt,multiline:wt=!1,name:$t,onBlur:zt,onChange:Ot,onFocus:Pt,placeholder:Ft,required:Nt=!1,rows:mt,select:bt=!1,SelectProps:St,type:vt,value:At,variant:Tt="outlined"}=_e,Dt=_objectWithoutPropertiesLoose(_e,_excluded$2),Lt=_extends$2({},_e,{autoFocus:tt,color:ot,disabled:st,error:at,fullWidth:lt,multiline:wt,required:Nt,select:bt,variant:Tt}),Et=useUtilityClasses$2(Lt),kt={};Tt==="outlined"&&(ht&&typeof ht.shrink<"u"&&(kt.notched=ht.shrink),kt.label=xt),bt&&((!St||!St.native)&&(kt.id=void 0),kt["aria-describedby"]=void 0);const Ut=useId(pt),Gt=dt&&Ut?`${Ut}-helper-text`:void 0,Ht=xt&&Ut?`${Ut}-label`:void 0,tn=variantComponent[Tt],Jt=jsxRuntimeExports.jsx(tn,_extends$2({"aria-describedby":Gt,autoComplete:et,autoFocus:tt,defaultValue:it,fullWidth:lt,multiline:wt,name:$t,rows:mt,maxRows:Mt,minRows:jt,type:vt,value:At,id:Ut,inputRef:ft,onBlur:zt,onChange:Ot,onFocus:Pt,placeholder:Ft,inputProps:yt},kt,gt));return jsxRuntimeExports.jsxs(TextFieldRoot,_extends$2({className:clsx(Et.root,rt),disabled:st,error:at,fullWidth:lt,ref:$,required:Nt,color:ot,variant:Tt,ownerState:Lt},Dt,{children:[xt!=null&&xt!==""&&jsxRuntimeExports.jsx(InputLabel,_extends$2({htmlFor:Ut,id:Ht},ht,{children:xt})),bt?jsxRuntimeExports.jsx(Select,_extends$2({"aria-describedby":Gt,id:Ut,labelId:Ht,value:At,input:Jt},St,{children:nt})):Jt,dt&&jsxRuntimeExports.jsx(FormHelperText,_extends$2({id:Gt},ct,{children:dt}))]}))});function getToggleButtonUtilityClass(s){return generateUtilityClass$1("MuiToggleButton",s)}const toggleButtonClasses=generateUtilityClasses$1("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ToggleButtonGroupContext=reactExports.createContext({}),ToggleButtonGroupButtonContext=reactExports.createContext(void 0);function isValueSelected(s,j){return j===void 0||s===void 0?!1:Array.isArray(j)?j.indexOf(s)>=0:s===j}const _excluded$1=["value"],_excluded2=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],useUtilityClasses$1=s=>{const{classes:j,fullWidth:$,selected:_e,disabled:et,size:tt,color:nt}=s,rt={root:["root",_e&&"selected",et&&"disabled",$&&"fullWidth",`size${capitalize$1(tt)}`,nt]};return composeClasses(rt,getToggleButtonUtilityClass,j)},ToggleButtonRoot=styled(ButtonBase,{name:"MuiToggleButton",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[`size${capitalize$1($.size)}`]]}})(({theme:s,ownerState:j})=>{let $=j.color==="standard"?s.palette.text.primary:s.palette[j.color].main,_e;return s.vars&&($=j.color==="standard"?s.vars.palette.text.primary:s.vars.palette[j.color].main,_e=j.color==="standard"?s.vars.palette.text.primaryChannel:s.vars.palette[j.color].mainChannel),_extends$2({},s.typography.button,{borderRadius:(s.vars||s).shape.borderRadius,padding:11,border:`1px solid ${(s.vars||s).palette.divider}`,color:(s.vars||s).palette.action.active},j.fullWidth&&{width:"100%"},{[`&.${toggleButtonClasses.disabled}`]:{color:(s.vars||s).palette.action.disabled,border:`1px solid ${(s.vars||s).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:s.vars?`rgba(${s.vars.palette.text.primaryChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha$1(s.palette.text.primary,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${toggleButtonClasses.selected}`]:{color:$,backgroundColor:s.vars?`rgba(${_e} / ${s.vars.palette.action.selectedOpacity})`:alpha$1($,s.palette.action.selectedOpacity),"&:hover":{backgroundColor:s.vars?`rgba(${_e} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha$1($,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:s.vars?`rgba(${_e} / ${s.vars.palette.action.selectedOpacity})`:alpha$1($,s.palette.action.selectedOpacity)}}}},j.size==="small"&&{padding:7,fontSize:s.typography.pxToRem(13)},j.size==="large"&&{padding:15,fontSize:s.typography.pxToRem(15)})}),ToggleButton=reactExports.forwardRef(function(j,$){const _e=reactExports.useContext(ToggleButtonGroupContext),{value:et}=_e,tt=_objectWithoutPropertiesLoose(_e,_excluded$1),nt=reactExports.useContext(ToggleButtonGroupButtonContext),rt=resolveProps(_extends$2({},tt,{selected:isValueSelected(j.value,et)}),j),ot=useThemeProps$5({props:rt,name:"MuiToggleButton"}),{children:it,className:st,color:at="standard",disabled:ct=!1,disableFocusRipple:lt=!1,fullWidth:dt=!1,onChange:pt,onClick:ht,selected:yt,size:gt="medium",value:ft}=ot,xt=_objectWithoutPropertiesLoose(ot,_excluded2),Mt=_extends$2({},ot,{color:at,disabled:ct,disableFocusRipple:lt,fullWidth:dt,size:gt}),jt=useUtilityClasses$1(Mt),wt=zt=>{ht&&(ht(zt,ft),zt.defaultPrevented)||pt&&pt(zt,ft)},$t=nt||"";return jsxRuntimeExports.jsx(ToggleButtonRoot,_extends$2({className:clsx(tt.className,jt.root,st,$t),disabled:ct,focusRipple:!lt,ref:$,onClick:wt,onChange:pt,value:ft,ownerState:Mt,"aria-pressed":yt},xt,{children:it}))});function getToggleButtonGroupUtilityClass(s){return generateUtilityClass$1("MuiToggleButtonGroup",s)}const toggleButtonGroupClasses=generateUtilityClasses$1("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),_excluded=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],useUtilityClasses=s=>{const{classes:j,orientation:$,fullWidth:_e,disabled:et}=s,tt={root:["root",$==="vertical"&&"vertical",_e&&"fullWidth"],grouped:["grouped",`grouped${capitalize$1($)}`,et&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return composeClasses(tt,getToggleButtonGroupUtilityClass,j)},ToggleButtonGroupRoot=styled("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${toggleButtonGroupClasses.grouped}`]:j.grouped},{[`& .${toggleButtonGroupClasses.grouped}`]:j[`grouped${capitalize$1($.orientation)}`]},{[`& .${toggleButtonGroupClasses.firstButton}`]:j.firstButton},{[`& .${toggleButtonGroupClasses.lastButton}`]:j.lastButton},{[`& .${toggleButtonGroupClasses.middleButton}`]:j.middleButton},j.root,$.orientation==="vertical"&&j.vertical,$.fullWidth&&j.fullWidth]}})(({ownerState:s,theme:j})=>_extends$2({display:"inline-flex",borderRadius:(j.vars||j).shape.borderRadius},s.orientation==="vertical"&&{flexDirection:"column"},s.fullWidth&&{width:"100%"},{[`& .${toggleButtonGroupClasses.grouped}`]:_extends$2({},s.orientation==="horizontal"?{[`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]:{borderTop:0,marginTop:0}})},s.orientation==="horizontal"?{[`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},s.orientation==="horizontal"?{[`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]:{borderTop:"1px solid transparent"}})),ToggleButtonGroup=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiToggleButtonGroup"}),{children:et,className:tt,color:nt="standard",disabled:rt=!1,exclusive:ot=!1,fullWidth:it=!1,onChange:st,orientation:at="horizontal",size:ct="medium",value:lt}=_e,dt=_objectWithoutPropertiesLoose(_e,_excluded),pt=_extends$2({},_e,{disabled:rt,fullWidth:it,orientation:at,size:ct}),ht=useUtilityClasses(pt),yt=reactExports.useCallback((wt,$t)=>{if(!st)return;const zt=lt&<.indexOf($t);let Ot;lt&&zt>=0?(Ot=lt.slice(),Ot.splice(zt,1)):Ot=lt?lt.concat($t):[$t],st(wt,Ot)},[st,lt]),gt=reactExports.useCallback((wt,$t)=>{st&&st(wt,lt===$t?null:$t)},[st,lt]),ft=reactExports.useMemo(()=>({className:ht.grouped,onChange:ot?gt:yt,value:lt,size:ct,fullWidth:it,color:nt,disabled:rt}),[ht.grouped,ot,gt,yt,lt,ct,it,nt,rt]),xt=getValidReactChildren(et),Mt=xt.length,jt=wt=>{const $t=wt===0,zt=wt===Mt-1;return $t&&zt?"":$t?ht.firstButton:zt?ht.lastButton:ht.middleButton};return jsxRuntimeExports.jsx(ToggleButtonGroupRoot,_extends$2({role:"group",className:clsx(ht.root,tt),ref:$,ownerState:pt},dt,{children:jsxRuntimeExports.jsx(ToggleButtonGroupContext.Provider,{value:ft,children:xt.map((wt,$t)=>jsxRuntimeExports.jsx(ToggleButtonGroupButtonContext.Provider,{value:jt($t),children:wt},$t))})}))});function isAbsolute(s){return s.charAt(0)==="/"}function spliceOne(s,j){for(var $=j,_e=$+1,et=s.length;_e=0;st--){var at=_e[st];at==="."?spliceOne(_e,st):at===".."?(spliceOne(_e,st),it++):it&&(spliceOne(_e,st),it--)}if(!nt)for(;it--;it)_e.unshift("..");nt&&_e[0]!==""&&(!_e[0]||!isAbsolute(_e[0]))&&_e.unshift("");var ct=_e.join("/");return rt&&ct.substr(-1)!=="/"&&(ct+="/"),ct}var prefix="Invariant failed";function invariant(s,j){throw new Error(prefix)}function addLeadingSlash$1(s){return s.charAt(0)==="/"?s:"/"+s}function stripLeadingSlash(s){return s.charAt(0)==="/"?s.substr(1):s}function hasBasename(s,j){return s.toLowerCase().indexOf(j.toLowerCase())===0&&"/?#".indexOf(s.charAt(j.length))!==-1}function stripBasename$1(s,j){return hasBasename(s,j)?s.substr(j.length):s}function stripTrailingSlash(s){return s.charAt(s.length-1)==="/"?s.slice(0,-1):s}function parsePath(s){var j=s||"/",$="",_e="",et=j.indexOf("#");et!==-1&&(_e=j.substr(et),j=j.substr(0,et));var tt=j.indexOf("?");return tt!==-1&&($=j.substr(tt),j=j.substr(0,tt)),{pathname:j,search:$==="?"?"":$,hash:_e==="#"?"":_e}}function createPath(s){var j=s.pathname,$=s.search,_e=s.hash,et=j||"/";return $&&$!=="?"&&(et+=$.charAt(0)==="?"?$:"?"+$),_e&&_e!=="#"&&(et+=_e.charAt(0)==="#"?_e:"#"+_e),et}function createLocation(s,j,$,_e){var et;typeof s=="string"?(et=parsePath(s),et.state=j):(et=_extends$2({},s),et.pathname===void 0&&(et.pathname=""),et.search?et.search.charAt(0)!=="?"&&(et.search="?"+et.search):et.search="",et.hash?et.hash.charAt(0)!=="#"&&(et.hash="#"+et.hash):et.hash="",j!==void 0&&et.state===void 0&&(et.state=j));try{et.pathname=decodeURI(et.pathname)}catch(tt){throw tt instanceof URIError?new URIError('Pathname "'+et.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):tt}return $&&(et.key=$),_e?et.pathname?et.pathname.charAt(0)!=="/"&&(et.pathname=resolvePathname(et.pathname,_e.pathname)):et.pathname=_e.pathname:et.pathname||(et.pathname="/"),et}function createTransitionManager(){var s=null;function j(nt){return s=nt,function(){s===nt&&(s=null)}}function $(nt,rt,ot,it){if(s!=null){var st=typeof s=="function"?s(nt,rt):s;typeof st=="string"?typeof ot=="function"?ot(st,it):it(!0):it(st!==!1)}else it(!0)}var _e=[];function et(nt){var rt=!0;function ot(){rt&&nt.apply(void 0,arguments)}return _e.push(ot),function(){rt=!1,_e=_e.filter(function(it){return it!==ot})}}function tt(){for(var nt=arguments.length,rt=new Array(nt),ot=0;otmt?bt.splice(mt,bt.length-mt,Pt):bt.push(Pt),st({action:Ot,location:Pt,index:mt,entries:bt})}})}function ht($t,zt){var Ot="REPLACE",Pt=createLocation($t,zt,at(),wt.location);it.confirmTransitionTo(Pt,Ot,$,function(Ft){Ft&&(wt.entries[wt.index]=Pt,st({action:Ot,location:Pt}))})}function yt($t){var zt=clamp(wt.index+$t,0,wt.entries.length-1),Ot="POP",Pt=wt.entries[zt];it.confirmTransitionTo(Pt,Ot,$,function(Ft){Ft?st({action:Ot,location:Pt,index:zt}):st()})}function gt(){yt(-1)}function ft(){yt(1)}function xt($t){var zt=wt.index+$t;return zt>=0&&zt"u"&&(forwardRef=forwardRefShim);function isModifiedEvent(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}var LinkAnchor=forwardRef(function(s,j){var $=s.innerRef,_e=s.navigate,et=s.onClick,tt=_objectWithoutPropertiesLoose(s,["innerRef","navigate","onClick"]),nt=tt.target,rt=_extends$2({},tt,{onClick:function(it){try{et&&et(it)}catch(st){throw it.preventDefault(),st}!it.defaultPrevented&&it.button===0&&(!nt||nt==="_self")&&!isModifiedEvent(it)&&(it.preventDefault(),_e())}});return forwardRefShim!==forwardRef?rt.ref=j||$:rt.ref=$,React$1.createElement("a",rt)}),Link=forwardRef(function(s,j){var $=s.component,_e=$===void 0?LinkAnchor:$,et=s.replace,tt=s.to,nt=s.innerRef,rt=_objectWithoutPropertiesLoose(s,["component","replace","to","innerRef"]);return React$1.createElement(context.Consumer,null,function(ot){ot||invariant();var it=ot.history,st=normalizeToLocation(resolveToLocation(tt,ot.location),ot.location),at=st?it.createHref(st):"",ct=_extends$2({},rt,{href:at,navigate:function(){var dt=resolveToLocation(tt,ot.location),pt=createPath(ot.location)===createPath(normalizeToLocation(dt)),ht=et||pt?it.replace:it.push;ht(dt)}});return forwardRefShim!==forwardRef?ct.ref=j||nt:ct.innerRef=nt,React$1.createElement(_e,ct)})}),forwardRefShim$1=function(j){return j},forwardRef$1=React$1.forwardRef;typeof forwardRef$1>"u"&&(forwardRef$1=forwardRefShim$1);function joinClassnames(){for(var s=arguments.length,j=new Array(s),$=0;$s&&(s==="light"||s==="dark"||s==="auto"),isSettings=s=>s&&s.theme&&isTheme(s.theme);let localStorageSettings=null;try{const s=localStorage.getItem(STORAGE_KEY);if(s){const j=JSON.parse(s);isSettings(j)&&(localStorageSettings=j)}}catch{}const initialSettings=localStorageSettings||{theme:"auto"},saveSettings=s=>{try{localStorage.setItem(STORAGE_KEY,JSON.stringify(s))}catch{}},SettingsContext=React$1.createContext({settings:initialSettings,updateBackgroundOpacity:s=>{},updateBackgroundUrl:s=>{},updateTheme:s=>{},updateShowChainName:s=>{},updateShowAllMisses:s=>{},updateShowMonitorDetails:s=>{}}),SettingsContextProvider=({children:s})=>{const[j,$]=reactExports.useState(initialSettings),_e=reactExports.useCallback(st=>{$(at=>({...at,backgroundOpacity:st}))},[]),et=reactExports.useCallback(st=>{$(at=>({...at,backgroundUrl:st}))},[]),tt=reactExports.useCallback(st=>{$(at=>({...at,theme:st}))},[]),nt=reactExports.useCallback(st=>{$(at=>({...at,showChainName:st}))},[]),rt=reactExports.useCallback(st=>{$(at=>({...at,showAllMisses:st}))},[]),ot=reactExports.useCallback(st=>{$(at=>({...at,showMonitorDetails:st}))},[]);reactExports.useEffect(()=>{saveSettings(j)},[j]);const it=reactExports.useMemo(()=>({settings:j,updateBackgroundOpacity:_e,updateBackgroundUrl:et,updateTheme:tt,updateShowChainName:nt,updateShowAllMisses:rt,updateShowMonitorDetails:ot}),[j,_e,et,tt,nt,rt,ot]);return jsxRuntimeExports.jsx(SettingsContext.Provider,{value:it,children:s})},useSettingsContext=()=>reactExports.useContext(SettingsContext),mediaQueryList=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");function CustomThemeProvider({children:s}){const{settings:{theme:j,backgroundOpacity:$,backgroundUrl:_e}}=useSettingsContext(),[et,tt]=reactExports.useState(!!(mediaQueryList&&mediaQueryList.matches)),nt=reactExports.useCallback(it=>{tt(!!it.matches)},[]);reactExports.useEffect(()=>{if(j==="auto")return mediaQueryList.addEventListener("change",nt),()=>{mediaQueryList.removeEventListener("change",nt)}},[j,nt]);const rt=j==="dark"||j==="auto"&&et?"dark":"light",ot=reactExports.useMemo(()=>responsiveFontSizes(createTheme({palette:{mode:rt},components:{MuiCssBaseline:{styleOverrides:{body:{overflowY:"scroll"},"*":{scrollbarWidth:"thin",scrollbarColor:rt==="dark"?`${grey[700]} ${grey[900]}`:`${grey[400]} rgb(255,255,255)`},"*::-webkit-scrollbar":{width:"8px",height:"8px",backgroundColor:rt==="dark"?grey[900]:"rgb(255,255,255)"},"*::-webkit-scrollbar-thumb":{backgroundColor:rt==="dark"?grey[700]:grey[400],borderRadius:"4px"},"*::-webkit-scrollbar-corner":{backgroundColor:"transparent"}}}}})),[rt]);return jsxRuntimeExports.jsxs(ThemeProvider,{theme:ot,children:[s,_e&&jsxRuntimeExports.jsx(Box,{sx:{backgroundImage:`url(${_e})`,backgroundPosition:"center",backgroundSize:"cover",opacity:$||.1,position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:-1}})]})}const ArrowDownward=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),ArrowUpward=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),CheckCircleOutline=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),Code=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),ContrastOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10m1-17.93c3.94.49 7 3.85 7 7.93s-3.05 7.44-7 7.93z"}),"ContrastOutlined"),DarkModeOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkModeOutlined"),ErrorOutline=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),ExpandMore=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),FirstPage=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),GitHub=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),GridView=createSvgIcon(jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M3 3v8h8V3zm6 6H5V5h4zm-6 4v8h8v-8zm6 6H5v-4h4zm4-16v8h8V3zm6 6h-4V5h4zm-6 4v8h8v-8zm6 6h-4v-4h4z"}),"GridView"),InfoOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),KeyboardArrowDown=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),KeyboardArrowRight=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),LastPage=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Launch=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch"),LightModeOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightModeOutlined"),LinkIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),MonitorHeartOutlined=createSvgIcon([jsxRuntimeExports.jsx("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v3h2V6h16v3h2V6c0-1.1-.9-2-2-2m0 14H4v-3H2v3c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-3h-2z"},"0"),jsxRuntimeExports.jsx("path",{d:"M14.89 7.55c-.34-.68-1.45-.68-1.79 0L10 13.76l-1.11-2.21A.988.988 0 0 0 8 11H2v2h5.38l1.72 3.45c.18.34.52.55.9.55s.72-.21.89-.55L14 10.24l1.11 2.21c.17.34.51.55.89.55h6v-2h-5.38z"},"1")],"MonitorHeartOutlined"),NavigateBefore=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),NavigateNext=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),PlayCircleOutline=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline"),ReceiptLongOutlined=createSvgIcon([jsxRuntimeExports.jsx("path",{d:"M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2zM15 20H6c-.55 0-1-.45-1-1v-1h10zm4-1c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11z"},"0"),jsxRuntimeExports.jsx("path",{d:"M9 7h6v2H9zm7 0h2v2h-2zm-7 3h6v2H9zm7 0h2v2h-2z"},"1")],"ReceiptLongOutlined"),Search=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),SettingsOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"SettingsOutlined"),SyncAltOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M7.41 13.41 6 12l-4 4 4 4 1.41-1.41L5.83 17H21v-2H5.83zm9.18-2.82L18 12l4-4-4-4-1.41 1.41L18.17 7H3v2h15.17z"}),"SyncAltOutlined"),ViewList=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList"),WarningAmberOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"WarningAmberOutlined"),networks=["Mainnet","Testnet","Devnet"],isNetwork=s=>networks.includes(s),networks$1=Object.freeze(Object.defineProperty({__proto__:null,isNetwork,networks},Symbol.toStringTag,{value:"Module"})),range=s=>[...Array(s).keys()],elementIndexPairs=s=>range(s.length).map(j=>[s[j],j]),entries=s=>range(s.length).map(j=>[j,s[j]]),column=(s,j)=>s.map($=>$[j]),zip=s=>range(s[0].length).map(j=>range(s.length).map($=>s[$][j]));function isMappableKey(s){return["string","number","symbol","bigint","boolean"].includes(typeof s)}const isRecursiveTuple=s=>s.length===2&&!Array.isArray(s[0])&&Array.isArray(s[1]),cartesianRightRecursive=s=>s.length===0?[]:Array.isArray(s[0])?s.map(([j,$])=>Array.isArray($)?(isRecursiveTuple($)?cartesianRightRecursive($):$).map(_e=>[j,_e].flat()):[[j,$]]).flat():isRecursiveTuple(s)?cartesianRightRecursive(s[1]).map(j=>[s[0],j]):s,toMapping=(s,j)=>{const $=cartesianRightRecursive(s);if($.length===0)throw new Error("Invalid mapping: empty");const _e=j===void 0?[range($[0].length-1),[$[0].length-1]]:j.map(ct=>typeof ct=="number"?[ct]:ct);let et=[],tt=!0;const nt=(ct,lt)=>{const dt=Array.from(new Set(ct[0]).values()),pt=new Map(dt.map(yt=>[yt,[]]));for(const[yt,gt]of ct[0].entries())pt.get(gt).push(yt);if(ct.length===1){const yt=Object.fromEntries(dt.map(gt=>[gt,pt.get(gt).map(ft=>lt[ft].length===1?lt[ft][0]:lt[ft])]));if(tt){for(const gt of pt.values())if(gt.length>1)return tt=!1,yt;et.push(yt)}return yt}const ht=zip(ct.slice(1));return Object.fromEntries(dt.map(yt=>{const gt=pt.get(yt),ft=zip(gt.map(Mt=>ht[Mt])),xt=gt.map(Mt=>lt[Mt]);return[yt,nt(ft,xt)]}))},rt=zip($),ot=ct=>{const lt=rt[ct];if(lt===void 0)throw new Error(`Invalid shape: column ${ct} does not exist`);return lt},[it,st]=_e.map(ct=>ct.map(lt=>ot(lt)));if(it.length===0)throw new Error("Invalid shape: empty key set");if(st.length===0)throw new Error("Invalid shape: empty value set");for(const ct of it)for(const lt of ct)if(!isMappableKey(lt))throw new Error(`Invalid key: ${lt} in ${ct}`);const at=nt(it,zip(st));if(tt)for(const ct of et)for(const lt of Object.keys(ct))ct[lt]=ct[lt][0];return at};function constMap(s,j){const $=toMapping(s,j),_e=(...et)=>et.reduce((tt,nt)=>tt?tt[nt.toString()]??void 0:void 0,$);return Object.assign(_e,{has:(...et)=>_e(...et)!==void 0,get:(...et)=>_e(...et),subMap:et=>$[et.toString()]})}function lazyInstantiate$1(s){let j=null;return()=>(j||(j=s()),j)}function onlyOnce$1(s,...j){let $=!1;return()=>{$||($=!0,s(...j))}}function throws$1(s){try{return s(),!1}catch{return!0}}const binaryLiterals=["int","uint","bytes","array","switch"],defaultEndianness="big",numberMaxSize=6,isNumType=s=>typeof s=="number"||typeof s=="bigint",isBytesType=s=>s instanceof Uint8Array,isPrimitiveType=s=>isNumType(s)||isBytesType(s),isLayoutItem=s=>binaryLiterals.includes(s==null?void 0:s.binary),isLayout=s=>isLayoutItem(s)||Array.isArray(s)&&s.every(isLayoutItem),isFixedNumberConversion=s=>typeof(s==null?void 0:s.from)=="number",isFixedBigintConversion=s=>typeof(s==null?void 0:s.from)=="bigint",isFixedUintConversion=s=>isFixedNumberConversion(s)||isFixedBigintConversion(s),isFixedBytesConversion=s=>isBytesType(s==null?void 0:s.from),isFixedPrimitiveConversion=s=>isFixedUintConversion(s)||isFixedBytesConversion(s),customizableBytes=(s,j)=>({...s,binary:"bytes",...j===void 0?{}:isLayout(j)?{layout:j}:j instanceof Uint8Array||isFixedBytesConversion(j)||!Array.isArray(j)?{custom:j}:{layout:j[0],custom:j[1]}}),checkSize=(s,j)=>{if(s!==j)throw new Error(`size mismatch: layout size: ${s}, data size: ${j}`);return j},checkItemSize=(s,j)=>"size"in s&&s.size!==void 0?checkSize(s.size,j):j,checkNumEquals=(s,j)=>{if(s!=j)throw new Error(`value mismatch: (constant) layout value: ${s}, data value: ${j}`)},checkBytesTypeEqual=(s,j,$)=>{const _e=(it,st)=>st===void 0?[0,it.length]:Array.isArray(st)?st:[st,it.length],[et,tt]=_e(s,$==null?void 0:$.customSlice),[nt,rt]=_e(j,$==null?void 0:$.dataSlize),ot=tt-et;checkSize(ot,rt-nt);for(let it=0;it(Array.isArray(_e)?_e[1]:_e)==$)}function calcItemSize$1(s,j){switch(s.binary){case"int":case"uint":return s.size;case"bytes":{const $="lengthSize"in s?s.lengthSize|0:0;if("layout"in s){const{custom:et}=s,tt=internalCalcLayoutSize$1(s.layout,et===void 0?j:typeof et.from=="function"?et.from(j):et.from);return tt===null?"size"in s?s.size??null:null:$+checkItemSize(s,tt)}const{custom:_e}=s;return isBytesType(_e)?$+_e.length:isFixedBytesConversion(_e)?$+_e.from.length:_e===void 0?j?$+checkItemSize(s,j.length):null:j!==void 0?$+checkItemSize(s,_e.from(j).length):null}case"array":{const $="length"in s?s.length:void 0;if(j===void 0){if($!==void 0){const et=internalCalcLayoutSize$1(s.layout);return et===null?null:$*et}return null}let _e=0;if($!==void 0&&$!==j.length)throw new Error(`array length mismatch: layout length: ${$}, data length: ${j.length}`);"lengthSize"in s&&s.lengthSize!==void 0&&(_e+=s.lengthSize);for(let et=0;et{s.bytes.set(j,s.offset),s.offset+=j.length};function serializeLayout$1(s,j,$,_e=0){const et={bytes:$??new Uint8Array(calcLayoutSize$1(s,j)),offset:_e};if(internalSerializeLayout$1(s,j,et),!$&&et.offset!==et.bytes.length)throw new Error(`encoded data is shorter than expected: ${et.bytes.length} > ${et.offset}`);return $?et.offset:et.bytes}const maxAllowedNumberVal$1=2**(numberMaxSize*8);function serializeNum$1(s,j,$,_e=defaultEndianness,et=!1){if(!et&&s<0)throw new Error(`Value ${s} is negative but unsigned`);if(typeof s=="number"){if(!Number.isInteger(s))throw new Error(`Value ${s} is not an integer`);if(j>numberMaxSize){if(s>=maxAllowedNumberVal$1)throw new Error(`Value ${s} is too large to be safely converted into an integer`);if(et&&s<=-maxAllowedNumberVal$1)throw new Error(`Value ${s} is too small to be safely converted into an integer`)}}const tt=2n**BigInt(j*8);if(s>=tt)throw new Error(`Value ${s} is too large for ${j} bytes`);if(et&&s<-tt)throw new Error(`Value ${s} is too small for ${j} bytes`);for(let nt=0;nt>BigInt(8*(_e==="big"?j-nt-1:nt))&0xffn);$.offset+=j}function internalSerializeLayout$1(s,j,$){if(isLayoutItem(s))serializeLayoutItem$1(s,j,$);else for(const _e of s)try{serializeLayoutItem$1(_e,j[_e.name],$)}catch(et){throw et.message=`when serializing item '${_e.name}': ${et.message}`,et}}function serializeLayoutItem$1(s,j,$){switch(s.binary){case"int":case"uint":{const _e=(()=>{var et;return isNumType(s.custom)?("omit"in s&&s.omit||checkNumEquals(s.custom,j),s.custom):isNumType((et=s==null?void 0:s.custom)==null?void 0:et.from)?s.custom.from:s.custom!==void 0?s.custom.from(j):j})();serializeNum$1(_e,s.size,$,s.endianness,s.binary==="int");break}case"bytes":{const _e=$.offset;if("lengthSize"in s&&s.lengthSize!==void 0&&($.offset+=s.lengthSize),"layout"in s){const{custom:et}=s;let tt;et===void 0?tt=j:typeof et.from!="function"?tt=et.from:tt=et.from(j),internalSerializeLayout$1(s.layout,tt,$)}else{const{custom:et}=s;isBytesType(et)?("omit"in s&&s.omit||checkBytesTypeEqual(et,j),cursorWrite$1($,et)):isFixedBytesConversion(et)?cursorWrite$1($,et.from):cursorWrite$1($,et!==void 0?et.from(j):j)}if("lengthSize"in s&&s.lengthSize!==void 0){const et=$.offset-_e-s.lengthSize,tt=$.offset;$.offset=_e,serializeNum$1(et,s.lengthSize,$,s.lengthEndianness),$.offset=tt}else checkItemSize(s,$.offset-_e);break}case"array":{if("length"in s&&s.length!==j.length)throw new Error(`array length mismatch: layout length: ${s.length}, data length: ${j.length}`);"lengthSize"in s&&s.lengthSize!==void 0&&serializeNum$1(j.length,s.lengthSize,$,s.lengthEndianness);for(let _e=0;_e ${_e.offset}`);return($==null?void 0:$.consumeAll)??!0?et:[et,_e.offset]}function updateOffset$1(s,j){const $=s.offset+j;if($>s.end)throw new Error(`chunk is shorter than expected: ${s.end} < ${$}`);s.offset=$}function internalDeserializeLayout$1(s,j){if(!Array.isArray(s))return deserializeLayoutItem$1(s,j);let $={};for(const _e of s)try{(_e.omit?{}:$)[_e.name]=deserializeLayoutItem$1(_e,j)}catch(et){throw et.message=`when deserializing item '${_e.name}': ${et.message}`,et}return $}function deserializeNum$1(s,j,$=defaultEndianness,_e=!1){let et=0n;for(let tt=0;ttnumberMaxSize?et:Number(et)}function deserializeLayoutItem$1(s,j){switch(s.binary){case"int":case"uint":{const $=deserializeNum$1(j,s.size,s.endianness,s.binary==="int"),{custom:_e}=s;return isNumType(_e)?(checkNumEquals(_e,$),_e):isNumType(_e==null?void 0:_e.from)?(checkNumEquals(_e.from,$),_e.to):_e!==void 0?_e.to($):$}case"bytes":{const $="lengthSize"in s&&s.lengthSize!==void 0?deserializeNum$1(j,s.lengthSize,s.lengthEndianness):s==null?void 0:s.size;if("layout"in s){const{custom:rt}=s,ot=j.offset;let it;if($===void 0)it=internalDeserializeLayout$1(s.layout,j);else{const st={...j,end:j.offset+$};if(updateOffset$1(j,$),it=internalDeserializeLayout$1(s.layout,st),st.offset!==st.end)throw new Error(`read less data than expected: ${st.offset-j.offset} < ${$}`)}return rt!==void 0?typeof rt.from!="function"?(checkBytesTypeEqual(getCachedSerializedFrom$1(s),j.bytes,{dataSlize:[ot,j.offset]}),rt.to):rt.to(it):it}const{custom:_e}=s;{let rt,ot;if(isBytesType(_e)?rt=_e:isFixedBytesConversion(_e)&&(rt=_e.from,ot=_e.to),rt!==void 0){const it=$??rt.length,st=j.bytes.slice(j.offset,j.offset+it);return checkBytesTypeEqual(rt,st),updateOffset$1(j,it),ot??rt}}const et=j.offset,tt=$!==void 0?j.offset+$:j.end;updateOffset$1(j,tt-et);const nt=j.bytes.slice(et,tt);return _e!==void 0?_e.to(nt):nt}case"array":{let $=[];const{layout:_e}=s,et=()=>{const nt=internalDeserializeLayout$1(_e,j);$.push(nt)};let tt=null;if("length"in s&&s.length!==void 0?tt=s.length:"lengthSize"in s&&s.lengthSize!==void 0&&(tt=deserializeNum$1(j,s.lengthSize,s.lengthEndianness)),tt!==null)for(let nt=0;ntet?it===$:it[0]===$);if(tt===void 0)throw new Error(`unknown id value: ${$}`);const[nt,rt]=tt,ot=internalDeserializeLayout$1(rt,j);return{[s.idTag??"id"]:et?$:nt[1],...ot}}}}function filterItem$1(s,j){switch(s.binary){case"bytes":if("layout"in s){const{custom:$}=s;if($===void 0){const{layout:et}=s;if(isLayoutItem(et))return filterItem$1(et,j);const tt=internalFilterItemsOfProperLayout$1(et,j);return tt.length>0?{...s,layout:tt}:null}const _e=typeof $.from!="function";return j&&_e||!j&&!_e?s:null}case"int":case"uint":{const{custom:$}=s,_e=isPrimitiveType($)||isFixedPrimitiveConversion($);return j&&_e||!j&&!_e?s:null}case"array":{const $=internalFilterItemsOfLayout$1(s.layout,j);return $!==null?{...s,layout:$}:null}case"switch":{const $=s.layouts.reduce((_e,[et,tt])=>{const nt=internalFilterItemsOfProperLayout$1(tt,j);return nt.length>0?[..._e,[et,nt]]:_e},[]);return{...s,layouts:$}}}}function internalFilterItemsOfProperLayout$1(s,j){return s.reduce(($,_e)=>{const et=filterItem$1(_e,j);return et!==null?[...$,et]:$},[])}function internalFilterItemsOfLayout$1(s,j){return Array.isArray(s)?internalFilterItemsOfProperLayout$1(s,j):filterItem$1(s,j)}function filterItemsOfLayout$1(s,j){return internalFilterItemsOfLayout$1(s,j)}const fixedItemsOfLayout$1=s=>filterItemsOfLayout$1(s,!0),dynamicItemsOfLayout$1=s=>filterItemsOfLayout$1(s,!1);function internalAddFixedValuesItem$1(s,j){switch(s.binary){case"bytes":if("layout"in s){const{custom:$}=s;return $===void 0||typeof $.from!="function"?internalAddFixedValues$1(s.layout,$?$.from:j):j}case"int":case"uint":{const{custom:$}=s;return s!=null&&s.omit?void 0:isPrimitiveType($)?$:isFixedPrimitiveConversion($)?$.to:j}case"array":return Array.isArray(j)?j.map($=>internalAddFixedValues$1(s.layout,$)):void 0;case"switch":{const $=j[s.idTag??"id"],[_e,et]=s.layouts.find(([tt])=>(Array.isArray(tt)?tt[1]:tt)==$);return{[s.idTag??"id"]:$,...internalAddFixedValues$1(et,j)}}}}function internalAddFixedValues$1(s,j){if(j=j??{},isLayoutItem(s))return internalAddFixedValuesItem$1(s,j);const $={};for(const _e of s){const et=internalAddFixedValuesItem$1(_e,j[_e.name]??{});et!==void 0&&($[_e.name]=et)}return $}function addFixedValues$1(s,j){return internalAddFixedValues$1(s,j)}function arrayToBitset$1(s){return s.reduce((j,$)=>j|BigInt(1)<0n;s>>=1n,++$)s&1n&&j.push(Number($));return j}function count$2(s){let j=0;for(;s>0n;s>>=1n)j+=Number(s&1n);return j}const lengthSizeMax$1=s=>s>0?2**(8*s)-1:1/0;function layoutItemMeta$1(s,j,$){var _e;switch(s.binary){case"int":case"uint":{const et=isNumType(s.custom)?s.custom:isNumType((_e=s==null?void 0:s.custom)==null?void 0:_e.from)?s.custom.from:null;if(et!==null&&j!==null){const tt={bytes:new Uint8Array(s.size),offset:0};serializeNum$1(et,s.size,tt,s.endianness,s.binary==="int"),$.push([j,tt.bytes])}return[s.size,s.size]}case"bytes":{const et="lengthSize"in s?s.lengthSize|0:0;let tt,nt;if("layout"in s){const{custom:ot}=s;if(ot!==void 0&&typeof ot.from!="function")tt=getCachedSerializedFrom$1(s),nt=tt.length;else{const it=calcStaticLayoutSize$1(s.layout);it!==null&&(nt=it)}}else{const{custom:ot}=s;isBytesType(ot)?(tt=ot,nt=ot.length):isFixedBytesConversion(ot)&&(tt=ot.from,nt=ot.from.length)}if(et>0&&j!==null){if(nt!==void 0){const ot={bytes:new Uint8Array(et),offset:0},it=s.lengthEndianness;serializeNum$1(nt,et,ot,it,!1),$.push([j,ot.bytes])}j+=et}if(tt!==void 0)return j!==null&&$.push([j,tt]),[et+tt.length,et+tt.length];const rt="size"in s&&s.size!==void 0?[s.size,s.size]:void 0;if("layout"in s){const ot=createLayoutMeta$1(s.layout,j,$);return rt??[et+ot[0],et+ot[1]]}return rt??[et,lengthSizeMax$1(et)]}case"array":{if("length"in s){let tt=[];const nt=createLayoutMeta$1(s.layout,0,tt);if(j!==null)if(nt[0]!==nt[1]){if(s.length>0)for(const[rt,ot]of tt)$.push([j+rt,ot])}else for(let rt=0;rt[]),{idSize:tt,idEndianness:nt}=s,rt=s.layouts.map(([ot,it],st)=>{const at=Array.isArray(ot)?ot[0]:ot;if(j!==null){const lt={bytes:new Uint8Array(tt),offset:0};serializeNum$1(at,tt,lt,nt),et[st].push([0,lt.bytes])}const ct=createLayoutMeta$1(it,j!==null?tt:null,et[st]);return[ct[0]+tt,ct[1]+tt]});return j!==null&&et.every(ot=>ot.length>0)&&(()=>{const ot=Math.min(...et.map(st=>st.at(-1)[0]+st.at(-1)[1].length)),it=et.map(st=>0);for(let st=0;stot)),Math.max(...rt.map(([ot,it])=>it))]}}}function createLayoutMeta$1(s,j,$){if(!Array.isArray(s))return layoutItemMeta$1(s,j,$);let _e=[0,0];for(const et of s){const tt=layoutItemMeta$1(et,j,$);_e[0]+=tt[0],_e[1]+=tt[1],j!==null&&(j=tt[0]===tt[1]?j+tt[0]:null)}return _e}function buildAscendingBounds$1(s){const j=new Map;let $=[];const _e=et=>{for(;$.length>0&&$[0][0]tt<=rt);nt===-1?$=[]:$.splice(0,nt),j.set(tt,arrayToBitset$1($.map(([,rt])=>rt)))}};for(const[[et,tt],nt]of s){_e(et);const rt=$.findIndex(([ot])=>ot>tt);rt===-1?$.push([tt,nt]):$.splice(rt,0,[tt,nt]),j.set(et,arrayToBitset$1($.map(([,ot])=>ot)))}return _e(1/0),j}function generateLayoutDiscriminator$1(s){if(s.length===0)throw new Error("Cannot discriminate empty set of layouts");const j=0n,$=(1n<[]),et=s.map((ft,xt)=>createLayoutMeta$1(ft,0,_e[xt])),tt=et.map((ft,xt)=>[ft,xt]).sort(([[ft]],[[xt]])=>ft-xt),nt=(()=>{let ft=$;const xt=new Map;for(const[[Mt],jt]of tt)ft^=1n<count$2(ft))),it=ft=>{let xt=$;for(const[Mt,jt]of nt){if(ft{let xt=j;for(const[Mt,jt]of rt){if(ftft.length>0?ft.at(-1)[0]+ft.at(-1)[1].length:0))}).map(()=>[]);for(let ft=0;ft<_e.length;++ft)for(const[xt,Mt]of _e[ft])for(let jt=0;jtOt)),wt=$^Mt,$t=new Map;for(const[Ot,Pt]of xt)$t.has(Ot)||$t.set(Ot,j),$t.set(Ot,$t.get(Ot)|1n<bitsetToArray$1(Ot.length<=ft?wt:$t.get(Ot[ft])??j)];ct.push([zt,ft,wt,$t,jt])}}if(ot===s.length-1)return[!0,ft=>bitsetToArray$1(st(ft.length))];ct.sort(([ft],[xt])=>xt-ft);let lt=!0;const dt=new Map,pt=new Map,ht=(ft,xt)=>{dt.set(ft,xt),pt.has(count$2(ft))||pt.set(count$2(ft),[]),pt.get(count$2(ft)).push(ft)},yt=(ft,xt)=>{if(count$2(ft)<=1||dt.has(ft))return;let Mt=0;const jt=new Map;for(const $t of bitsetToArray$1(ft)){const zt=et[$t][0],Ot=rt.get(zt)&ft;jt.set(zt,Ot),Mt=Math.max(Mt,count$2(Ot))}Mt=count$2(ft)-Mt;const wt=[];for(const[$t,zt,Ot,Pt,Ft]of xt){const Nt=new Map;let mt=0;for(const[vt,At]of Pt){const Tt=At&ft;count$2(Tt)>0&&(Nt.set(vt,Tt),mt+=count$2(Tt))}const bt=Ot&ft;let St=Nt.size>0?$t:0;for(const vt of Nt.values()){const At=mt-count$2(vt)+count$2(bt);St=Math.min(St,At)}if(St!==0){if(St===count$2(ft)-1){ht(ft,[zt,bt,Nt]);return}wt.push([St,zt,bt,Nt,Ft&ft])}}if(Mt===count$2(ft)-1){ht(ft,"size");return}if(wt.sort(([$t],[zt])=>zt-$t),wt.length>0&&wt[0][0]>=Mt){const[,$t,zt,Ot,Pt]=wt[0];ht(ft,[$t,zt,Ot]),yt(zt,wt);for(const Ft of Ot.values())yt(Ft|Pt,wt.slice(1));return}if(Mt>0){ht(ft,"size");for(const $t of jt.values())yt($t,wt);return}ht(ft,"indistinguishable"),lt=!1};yt($,ct);const gt=ft=>{for(let xt=count$2(ft)+1;xt{let xt=$,Mt=dt.get(xt);for(;Mt!=="indistinguishable";){if(Mt==="size")xt&=st(ft.length);else{const[jt,wt,$t]=Mt;if(ft.length<=jt)xt&=wt;else{const zt=ft[jt];for(const[Ot,Pt]of $t)Ot!==zt&&(xt^=xt&Pt);xt^=xt&wt}}if(count$2(xt)<=1)break;Mt=dt.get(xt)??gt(xt)}return bitsetToArray$1(xt)}]}function layoutDiscriminator$1(s,j){const[$,_e]=generateLayoutDiscriminator$1(s);if(!$&&!j)throw new Error("Cannot uniquely distinguished the given layouts");return j?_e:et=>{const tt=_e(et);return tt.length===0?null:tt[0]}}function enumItem$1(s,j){const $=Object.fromEntries(s.map(([et,tt])=>[tt,et])),_e=Object.fromEntries(s);return{binary:"uint",size:(j==null?void 0:j.size)??1,endianness:(j==null?void 0:j.endianness)??"big",custom:{to:et=>{const tt=$[et];if(tt===void 0)throw new Error(`Invalid enum value: ${et}`);return tt},from:et=>_e[et]}}}const baseOptionItem$1=s=>({binary:"switch",idSize:1,idTag:"isSome",layouts:[[[0,!1],[]],[[1,!0],[customizableBytes({name:"value"},s)]]]});function optionItem$1(s){return{binary:"bytes",layout:baseOptionItem$1(s),custom:{to:j=>j.isSome===!0?j.value:void 0,from:j=>j===void 0?{isSome:!1}:{isSome:!0,value:j}}}}function bitsetItem$1(s,j){return{binary:"uint",size:j??Math.ceil(s.length/8),custom:{to:$=>{const _e={};for(let et=0;et{let _e=0n;for(let et=0;etnumberMaxSize?_e:Number(_e)}}}}const index$1=Object.freeze(Object.defineProperty({__proto__:null,addFixedValues:addFixedValues$1,binaryLiterals,bitsetItem:bitsetItem$1,calcLayoutSize:calcLayoutSize$1,calcStaticLayoutSize:calcStaticLayoutSize$1,checkBytesTypeEqual,checkItemSize,checkNumEquals,checkSize,customizableBytes,defaultEndianness,deserializeLayout:deserializeLayout$1,dynamicItemsOfLayout:dynamicItemsOfLayout$1,enumItem:enumItem$1,findIdLayoutPair,fixedItemsOfLayout:fixedItemsOfLayout$1,getCachedSerializedFrom:getCachedSerializedFrom$1,isBytesType,isFixedBytesConversion,isFixedPrimitiveConversion,isFixedUintConversion,isLayout,isLayoutItem,isNumType,isPrimitiveType,layoutDiscriminator:layoutDiscriminator$1,numberMaxSize,optionItem:optionItem$1,serializeLayout:serializeLayout$1,serializeNum:serializeNum$1},Symbol.toStringTag,{value:"Module"}));function denoise$1(s,j){return Number(Number(s).toFixed(j))}function parse$2(s,j){if(validateAmountInput$1(s,j),s=s.toString(),s.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const $=s.split(".");if($.length>2)throw"Too many decimals";let[_e,et]=$.length===0?["0",""]:$.length===1?[$[0],""]:$;if(et=et.padEnd(j,"0"),et.length>j){if(BigInt(et.substring(j))!==0n)throw new Error("Amount: invalid input. Decimals too low.");et=et.substring(0,j)}return{amount:BigInt(_e+et).toString(),decimals:j}}function truncate$1(s,j){if(s.decimals<=j)return s;const $=BigInt(s.decimals-j);return{amount:(units$1(s)/10n**$*10n**$).toString(),decimals:s.decimals}}function scale$1(s,j){if(s.decimals===j)return s;if(s.amount==="0")return{amount:s.amount,decimals:j};const $=j-s.decimals;if($>0)return{amount:s.amount+"0".repeat($),decimals:j};if(BigInt(s.amount.substring(s.amount.length+$))===0n)return{amount:s.amount.substring(0,s.amount.length+$),decimals:j};throw new Error(`scaleAmount(${JSON.stringify(s)}, ${j}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}function fromBaseUnits$1(s,j){return{amount:s.toString(),decimals:j}}function units$1(s){return validateAmount$1(s),BigInt(s.amount)}function display$1(s,j){validateAmount$1(s);let $=s.amount.substring(0,s.amount.length-s.decimals).padStart(1,"0"),_e=s.amount.substring(s.amount.length-s.decimals).padStart(s.decimals,"0");if(j!==void 0){for(;_e.length>j&&_e[_e.length-1]==="0";)_e=_e.substring(0,_e.length-1);_e=_e.padEnd(j,"0")}else _e=_e.replace(/0+$/,"");return _e.length>0?`${$}.${_e}`:$}function whole$1(s){return Number(display$1(s))}function fmt$1(s,j){return display$1(fromBaseUnits$1(s,j))}function validateAmountInput$1(s,j){if(typeof s=="number"){if(!isFinite(s))throw new Error("Amount: invalid input. Amount must be finite");if(s<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(s))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(j))throw new Error("Amount: invalid input. Decimals must be finite")}function validateAmount$1(s){if(!/^[0-9]*$/.test(s.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(s.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(s.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}const amount$2=Object.freeze(Object.defineProperty({__proto__:null,denoise:denoise$1,display:display$1,fmt:fmt$1,fromBaseUnits:fromBaseUnits$1,parse:parse$2,scale:scale$1,truncate:truncate$1,units:units$1,whole:whole$1},Symbol.toStringTag,{value:"Module"}));/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function assertNumber(s){if(!Number.isSafeInteger(s))throw new Error(`Wrong integer: ${s}`)}function isBytes$5(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}function chain$2(...s){const j=tt=>tt,$=(tt,nt)=>rt=>tt(nt(rt)),_e=s.map(tt=>tt.encode).reduceRight($,j),et=s.map(tt=>tt.decode).reduce($,j);return{encode:_e,decode:et}}function alphabet(s){return{encode:j=>{if(!Array.isArray(j)||j.length&&typeof j[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return j.map($=>{if($<0||$>=s.length)throw new Error(`Digit index outside alphabet: ${$} (alphabet: ${s.length})`);return s[$]})},decode:j=>{if(!Array.isArray(j)||j.length&&typeof j[0]!="string")throw new Error("alphabet.decode input should be array of strings");return j.map($=>{if(typeof $!="string")throw new Error(`alphabet.decode: not string element=${$}`);const _e=s.indexOf($);if(_e===-1)throw new Error(`Unknown letter: "${$}". Allowed: ${s}`);return _e})}}}function join(s=""){if(typeof s!="string")throw new Error("join separator should be string");return{encode:j=>{if(!Array.isArray(j)||j.length&&typeof j[0]!="string")throw new Error("join.encode input should be array of strings");for(let $ of j)if(typeof $!="string")throw new Error(`join.encode: non-string input=${$}`);return j.join(s)},decode:j=>{if(typeof j!="string")throw new Error("join.decode input should be string");return j.split(s)}}}function padding(s,j="="){if(typeof j!="string")throw new Error("padding chr should be string");return{encode($){if(!Array.isArray($)||$.length&&typeof $[0]!="string")throw new Error("padding.encode input should be array of strings");for(let _e of $)if(typeof _e!="string")throw new Error(`padding.encode: non-string input=${_e}`);for(;$.length*s%8;)$.push(j);return $},decode($){if(!Array.isArray($)||$.length&&typeof $[0]!="string")throw new Error("padding.encode input should be array of strings");for(let et of $)if(typeof et!="string")throw new Error(`padding.decode: non-string input=${et}`);let _e=$.length;if(_e*s%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;_e>0&&$[_e-1]===j;_e--)if(!((_e-1)*s%8))throw new Error("Invalid padding: string has too much padding");return $.slice(0,_e)}}}function normalize(s){if(typeof s!="function")throw new Error("normalize fn should be function");return{encode:j=>j,decode:j=>s(j)}}function convertRadix(s,j,$){if(j<2)throw new Error(`convertRadix: wrong from=${j}, base cannot be less than 2`);if($<2)throw new Error(`convertRadix: wrong to=${$}, base cannot be less than 2`);if(!Array.isArray(s))throw new Error("convertRadix: data should be array");if(!s.length)return[];let _e=0;const et=[],tt=Array.from(s);for(tt.forEach(nt=>{if(nt<0||nt>=j)throw new Error(`Wrong integer: ${nt}`)});;){let nt=0,rt=!0;for(let ot=_e;otj?gcd(j,s%j):s,radix2carry=(s,j)=>s+(j-gcd(s,j));function convertRadix2(s,j,$,_e){if(!Array.isArray(s))throw new Error("convertRadix2: data should be array");if(j<=0||j>32)throw new Error(`convertRadix2: wrong from=${j}`);if($<=0||$>32)throw new Error(`convertRadix2: wrong to=${$}`);if(radix2carry(j,$)>32)throw new Error(`convertRadix2: carry overflow from=${j} to=${$} carryBits=${radix2carry(j,$)}`);let et=0,tt=0;const nt=2**$-1,rt=[];for(const ot of s){if(ot>=2**j)throw new Error(`convertRadix2: invalid data word=${ot} from=${j}`);if(et=et<32)throw new Error(`convertRadix2: carry overflow pos=${tt} from=${j}`);for(tt+=j;tt>=$;tt-=$)rt.push((et>>tt-$&nt)>>>0);et&=2**tt-1}if(et=et<<$-tt&nt,!_e&&tt>=j)throw new Error("Excess padding");if(!_e&&et)throw new Error(`Non-zero padding: ${et}`);return _e&&tt>0&&rt.push(et>>>0),rt}function radix(s){return{encode:j=>{if(!isBytes$5(j))throw new Error("radix.encode input should be Uint8Array");return convertRadix(Array.from(j),2**8,s)},decode:j=>{if(!Array.isArray(j)||j.length&&typeof j[0]!="number")throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(convertRadix(j,s,2**8))}}}function radix2(s,j=!1){if(s<=0||s>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry(8,s)>32||radix2carry(s,8)>32)throw new Error("radix2: carry overflow");return{encode:$=>{if(!isBytes$5($))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2(Array.from($),8,s,!j)},decode:$=>{if(!Array.isArray($)||$.length&&typeof $[0]!="number")throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(convertRadix2($,s,8,j))}}}function unsafeWrapper(s){if(typeof s!="function")throw new Error("unsafeWrapper fn should be function");return function(...j){try{return s.apply(null,j)}catch{}}}function checksum(s,j){if(typeof j!="function")throw new Error("checksum fn should be function");return{encode($){if(!isBytes$5($))throw new Error("checksum.encode: input should be Uint8Array");const _e=j($).slice(0,s),et=new Uint8Array($.length+s);return et.set($),et.set(_e,$.length),et},decode($){if(!isBytes$5($))throw new Error("checksum.decode: input should be Uint8Array");const _e=$.slice(0,-s),et=j(_e).slice(0,s),tt=$.slice(-s);for(let nt=0;nts.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),base64$2=chain$2(radix2(6),alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),padding(6),join("")),base64nopad=chain$2(radix2(6),alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),join("")),base64url=chain$2(radix2(6),alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),padding(6),join("")),base64urlnopad=chain$2(radix2(6),alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),join("")),genBase58=s=>chain$2(radix(58),alphabet(s),join("")),base58$1=genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),base58flickr=genBase58("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),base58xrp=genBase58("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),XMR_BLOCK_LEN=[0,2,3,5,6,7,9,10,11],base58xmr={encode(s){let j="";for(let $=0;$chain$2(checksum(4,j=>s(s(j))),base58$1),base58check=createBase58check,BECH_ALPHABET=chain$2(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),join("")),POLYMOD_GENERATORS=[996825010,642813549,513874426,1027748829,705979059];function bech32Polymod(s){const j=s>>25;let $=(s&33554431)<<5;for(let _e=0;_e>_e&1)===1&&($^=POLYMOD_GENERATORS[_e]);return $}function bechChecksum(s,j,$=1){const _e=s.length;let et=1;for(let tt=0;tt<_e;tt++){const nt=s.charCodeAt(tt);if(nt<33||nt>126)throw new Error(`Invalid prefix (${s})`);et=bech32Polymod(et)^nt>>5}et=bech32Polymod(et);for(let tt=0;tt<_e;tt++)et=bech32Polymod(et)^s.charCodeAt(tt)&31;for(let tt of j)et=bech32Polymod(et)^tt;for(let tt=0;tt<6;tt++)et=bech32Polymod(et);return et^=$,BECH_ALPHABET.encode(convertRadix2([et%2**30],30,5,!1))}function genBech32(s){const j=s==="bech32"?1:734539939,$=radix2(5),_e=$.decode,et=$.encode,tt=unsafeWrapper(_e);function nt(st,at,ct=90){if(typeof st!="string")throw new Error(`bech32.encode prefix should be string, not ${typeof st}`);if(!Array.isArray(at)||at.length&&typeof at[0]!="number")throw new Error(`bech32.encode words should be array of numbers, not ${typeof at}`);if(st.length===0)throw new TypeError(`Invalid prefix length ${st.length}`);const lt=st.length+7+at.length;if(ct!==!1&<>ct)throw new TypeError(`Length ${lt} exceeds limit ${ct}`);const dt=st.toLowerCase(),pt=bechChecksum(dt,at,j);return`${dt}1${BECH_ALPHABET.encode(at)}${pt}`}function rt(st,at=90){if(typeof st!="string")throw new Error(`bech32.decode input should be string, not ${typeof st}`);if(st.length<8||at!==!1&&st.length>at)throw new TypeError(`Wrong string length: ${st.length} (${st}). Expected (8..${at})`);const ct=st.toLowerCase();if(st!==ct&&st!==st.toUpperCase())throw new Error("String must be lowercase or uppercase");const lt=ct.lastIndexOf("1");if(lt===0||lt===-1)throw new Error('Letter "1" must be present between prefix and data only');const dt=ct.slice(0,lt),pt=ct.slice(lt+1);if(pt.length<6)throw new Error("Data must be at least 6 characters long");const ht=BECH_ALPHABET.decode(pt).slice(0,-6),yt=bechChecksum(dt,ht,j);if(!pt.endsWith(yt))throw new Error(`Invalid checksum in ${st}: expected "${yt}"`);return{prefix:dt,words:ht}}const ot=unsafeWrapper(rt);function it(st){const{prefix:at,words:ct}=rt(st,!1);return{prefix:at,words:ct,bytes:_e(ct)}}return{encode:nt,decode:rt,decodeToBytes:it,decodeUnsafe:ot,fromWords:_e,fromWordsUnsafe:tt,toWords:et}}const bech32=genBech32("bech32"),bech32m=genBech32("bech32m"),utf8$3={encode:s=>new TextDecoder().decode(s),decode:s=>new TextEncoder().encode(s)},hex$1=chain$2(radix2(4),alphabet("0123456789abcdef"),join(""),normalize(s=>{if(typeof s!="string"||s.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof s} with length ${s.length}`);return s.toLowerCase()})),CODERS={utf8:utf8$3,hex:hex$1,base16,base32,base64:base64$2,base64url,base58:base58$1,base58xmr},coderTypeError="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",bytesToString=(s,j)=>{if(typeof s!="string"||!CODERS.hasOwnProperty(s))throw new TypeError(coderTypeError);if(!isBytes$5(j))throw new TypeError("bytesToString() expects Uint8Array");return CODERS[s].encode(j)},str=bytesToString,stringToBytes$1=(s,j)=>{if(!CODERS.hasOwnProperty(s))throw new TypeError(coderTypeError);if(typeof j!="string")throw new TypeError("stringToBytes() expects string");return CODERS[s].decode(j)},bytes$3=stringToBytes$1,esm$1=Object.freeze(Object.defineProperty({__proto__:null,assertNumber,base16,base32,base32crockford,base32hex,base58:base58$1,base58check,base58flickr,base58xmr,base58xrp,base64:base64$2,base64nopad,base64url,base64urlnopad,bech32,bech32m,bytes:bytes$3,bytesToString,createBase58check,hex:hex$1,str,stringToBytes:stringToBytes$1,utf8:utf8$3,utils:utils$9},Symbol.toStringTag,{value:"Module"})),stripPrefix=(s,j)=>j.startsWith(s)?j.slice(s.length):j,isHexRegex=/^(?:0x)?[0-9a-fA-F]+$/,hex={valid:s=>isHexRegex.test(s),decode:s=>base16.decode(stripPrefix("0x",s).toUpperCase()),encode:(s,j=!1)=>(s=typeof s=="string"?bytes$2.encode(s):s,(j?"0x":"")+base16.encode(s).toLowerCase())},isB64Regex=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,b64={valid:s=>isB64Regex.test(s),decode:base64$2.decode,encode:s=>base64$2.encode(typeof s=="string"?bytes$2.encode(s):s)},b58={decode:base58$1.decode,encode:s=>base58$1.encode(typeof s=="string"?bytes$2.encode(s):s)},bignum={decode:s=>(typeof s!="string"&&(s=hex.encode(s,!0)),s===""||s==="0x"?0n:BigInt(s)),encode:(s,j=!1)=>bignum.toString(s,j),toString:(s,j=!1)=>{let $=s.toString(16);return $=$.length%2===1?$="0"+$:$,j?"0x"+$:$},toBytes:(s,j)=>{typeof s=="number"&&(s=bignum.toBigInt(s));const $=hex.decode(bignum.toString(s));if(!j)return $;if(j<$.length)throw new Error(`Can't fit ${s} into ${j} bytes.`);return bytes$2.zpad($,j)},toNumber:s=>{if(s>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${s} exceeds MAX_SAFE_INTEGER`);return Number(s)},toBigInt:s=>{if(s>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${s} exceeds MAX_SAFE_INTEGER`);return BigInt(s)}},bytes$2={encode:s=>new TextEncoder().encode(s),decode:s=>new TextDecoder().decode(s),equals:(s,j)=>s.length===j.length&&s.every(($,_e)=>$===j[_e]),zpad:(s,j,$=!0)=>$?bytes$2.concat(new Uint8Array(j-s.length),s):bytes$2.concat(s,new Uint8Array(j-s.length)),concat:(...s)=>{const j=s.reduce((et,tt)=>et+tt.length,0),$=new Uint8Array(j);let _e=0;return s.forEach(et=>{$.set(et,_e),_e+=et.length}),$}},encoding$3=Object.freeze(Object.defineProperty({__proto__:null,b58,b64,bech32,bignum,bytes:bytes$2,hex,stripPrefix},Symbol.toStringTag,{value:"Module"})),chainIdAndChainEntries=[[1,"Solana"],[2,"Ethereum"],[3,"Terra"],[4,"Bsc"],[5,"Polygon"],[6,"Avalanche"],[7,"Oasis"],[8,"Algorand"],[9,"Aurora"],[10,"Fantom"],[11,"Karura"],[12,"Acala"],[13,"Klaytn"],[14,"Celo"],[15,"Near"],[16,"Moonbeam"],[17,"Neon"],[18,"Terra2"],[19,"Injective"],[20,"Osmosis"],[21,"Sui"],[22,"Aptos"],[23,"Arbitrum"],[24,"Optimism"],[25,"Gnosis"],[26,"Pythnet"],[28,"Xpla"],[29,"Btc"],[30,"Base"],[32,"Sei"],[33,"Rootstock"],[34,"Scroll"],[35,"Mantle"],[36,"Blast"],[37,"Xlayer"],[38,"Linea"],[39,"Berachain"],[40,"Seievm"],[43,"Snaxchain"],[44,"Unichain"],[45,"Worldchain"],[46,"Ink"],[3104,"Wormchain"],[4e3,"Cosmoshub"],[4001,"Evmos"],[4002,"Kujira"],[4003,"Neutron"],[4004,"Celestia"],[4005,"Stargaze"],[4006,"Seda"],[4007,"Dymension"],[4008,"Provenance"],[10002,"Sepolia"],[10003,"ArbitrumSepolia"],[10004,"BaseSepolia"],[10005,"OptimismSepolia"],[10006,"Holesky"],[10007,"PolygonSepolia"],[10008,"MonadDevnet"]],[chainIds,chains]=zip(chainIdAndChainEntries),chainToChainId=constMap(chainIdAndChainEntries,[1,0]),chainIdToChain=constMap(chainIdAndChainEntries),isChain=s=>chainToChainId.has(s),isChainId=s=>chainIdToChain.has(s);function assertChainId(s){if(!isChainId(s))throw Error(`Unknown Wormhole chain id: ${s}`)}function assertChain(s){if(!isChain(s))throw Error(`Unknown Wormhole chain: ${s}`)}const asChainId=s=>(assertChainId(s),s),toChainId=s=>{switch(typeof s){case"string":if(isChain(s))return chainToChainId(s);break;case"number":if(isChainId(s))return s;break}throw Error(`Cannot convert to ChainId: ${s}`)},toChain=s=>{switch(typeof s){case"string":if(isChain(s))return s;break;case"number":if(isChainId(s))return chainIdToChain(s);break;case"bigint":if(isChainId(Number(s)))return chainIdToChain.get(Number(s));break}throw Error(`Cannot convert to Chain: ${s}`)},chains$1=Object.freeze(Object.defineProperty({__proto__:null,asChainId,assertChain,assertChainId,chainIdToChain,chainIds,chainToChainId,chains,isChain,isChainId,toChain,toChainId},Symbol.toStringTag,{value:"Module"})),platformAndChainsEntries=[["Evm",["Acala","Arbitrum","Aurora","Avalanche","Base","Bsc","Celo","Ethereum","Fantom","Gnosis","Karura","Klaytn","Moonbeam","Neon","Oasis","Optimism","Polygon","Rootstock","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky","PolygonSepolia","Mantle","Scroll","Blast","Xlayer","Linea","Berachain","Seievm","Snaxchain","Unichain","Worldchain","Ink","MonadDevnet"]],["Solana",["Solana","Pythnet"]],["Cosmwasm",["Cosmoshub","Evmos","Injective","Kujira","Osmosis","Sei","Terra","Terra2","Wormchain","Xpla","Dymension","Neutron","Stargaze","Celestia","Seda","Provenance"]],["Btc",["Btc"]],["Algorand",["Algorand"]],["Sui",["Sui"]],["Aptos",["Aptos"]],["Near",["Near"]]],platforms=column(platformAndChainsEntries,0),platformToChains=constMap(platformAndChainsEntries),chainToPlatform=constMap(platformAndChainsEntries,[1,0]),isPlatform=s=>platformToChains.has(s),platformAddressFormatEntries=[["Evm","hex"],["Solana","base58"],["Cosmwasm","bech32"],["Btc","bech32"],["Algorand","algorandAppId"],["Sui","hex"],["Aptos","hex"],["Near","sha256"]],platformToAddressFormat=constMap(platformAddressFormatEntries),platforms$1=Object.freeze(Object.defineProperty({__proto__:null,chainToPlatform,isPlatform,platformToAddressFormat,platformToChains,platforms},Symbol.toStringTag,{value:"Module"})),filters={byAddress:(s,j)=>Object.values(s).find($=>isEqualCaseInsensitive($.address,j)),native:s=>filters.byAddress(s,"native"),bySymbol:(s,j)=>{const $=Object.values(s).filter(_e=>_e.symbol===j);return $&&$.length>0?$:void 0},byKey:(s,j)=>{const $=Object.entries(s).find(([_e])=>j===_e);return $?$[1]:void 0}},isEqualCaseInsensitive=(s,j)=>s.toLowerCase()===j.toLowerCase();var ConsistencyLevels;(function(s){s[s.Finalized=1]="Finalized",s[s.Immediate=200]="Immediate",s[s.Safe=201]="Safe"})(ConsistencyLevels||(ConsistencyLevels={}));const safeThresholds=[["Ethereum",32]],safeThreshold=constMap(safeThresholds),finalityThresholds=[["Solana",32],["Ethereum",72],["Bsc",15],["Optimism",512],["Base",512],["Arbitrum",4096],["Blast",512],["Xlayer",300],["Scroll",300],["Mantle",512],["Polygon",32],["Fantom",1],["Celo",1],["Moonbeam",1],["Karura",1],["Acala",1],["Oasis",1],["Avalanche",0],["Sui",0],["Algorand",0],["Aptos",0],["Klaytn",0],["Sei",0],["Near",0],["Osmosis",0],["Terra",0],["Terra2",0],["Xpla",0],["Injective",0],["Berachain",1],["Snaxchain",512],["Unichain",512],["Worldchain",512],["Ink",512],["Cosmoshub",0],["Evmos",0],["Kujira",0],["Neutron",0],["Celestia",0],["Stargaze",0],["Dymension",0],["Provenance",0],["Sepolia",96],["ArbitrumSepolia",4096],["BaseSepolia",512],["OptimismSepolia",512],["PolygonSepolia",32],["MonadDevnet",1]],finalityThreshold=constMap(finalityThresholds),blockTimeMilliseconds=[["Acala",12e3],["Algorand",3300],["Aptos",4e3],["Arbitrum",260],["ArbitrumSepolia",260],["Aurora",3e3],["Avalanche",2e3],["Base",2e3],["BaseSepolia",2e3],["Blast",2e3],["Bsc",3e3],["Celo",5e3],["Cosmoshub",5e3],["Ethereum",15e3],["Evmos",2e3],["Fantom",2500],["Gnosis",5e3],["Holesky",15e3],["Injective",2500],["Karura",12e3],["Klaytn",1e3],["Kujira",3e3],["Mantle",2e3],["Moonbeam",12e3],["MonadDevnet",1e3],["Near",1500],["Neon",3e4],["Oasis",6e3],["Optimism",2e3],["OptimismSepolia",2e3],["Osmosis",6e3],["Polygon",2e3],["PolygonSepolia",2e3],["Rootstock",3e4],["Scroll",3e3],["Sei",400],["Sepolia",15e3],["Solana",400],["Sui",3e3],["Terra",6e3],["Terra2",6e3],["Xpla",5e3],["Xlayer",3e3],["Wormchain",5e3],["Btc",6e5],["Pythnet",400],["Dymension",5e3],["Celestia",5e3],["Neutron",5e3],["Stargaze",5e3],["Seda",7500]],blockTime=constMap(blockTimeMilliseconds);function consistencyLevelToBlock(s,j,$=0n){if(j===ConsistencyLevels.Immediate)return $;if(s==="Bsc")return $+BigInt(j);if(s==="Solana"&&j===0)return $;const _e=finalityThreshold.get(s);if(_e===void 0)throw new Error("Cannot find chain finality for "+s);if(_e===0)return $;if(j!==ConsistencyLevels.Safe)return $+BigInt(_e);const et=safeThreshold.get(s);if(et===void 0)throw new Error("Cannot find safe threshold for "+s);switch(s){case"Ethereum":const tt=$%BigInt(et),nt=tt===0n?0n:BigInt(et)-tt;return $+nt;default:throw new Error("Only Ethereum safe is supported for now")}}function estimateFinalityTime(s){const j=finalityThreshold.get(s);if(j===void 0)throw new Error("Cannot find finality for "+s);const $=blockTime.get(s);if($===void 0)throw new Error("Cannot find block time for "+s);return j*$}const finality=Object.freeze(Object.defineProperty({__proto__:null,get ConsistencyLevels(){return ConsistencyLevels},blockTime,consistencyLevelToBlock,estimateFinalityTime,finalityThreshold,safeThreshold},Symbol.toStringTag,{value:"Module"})),nativeDecimalEntries=[["Evm",18],["Solana",9],["Sui",9],["Aptos",8],["Cosmwasm",6],["Algorand",6],["Btc",8],["Near",12]],nativeDecimals=constMap(nativeDecimalEntries),decimals=Object.freeze(Object.defineProperty({__proto__:null,nativeDecimals},Symbol.toStringTag,{value:"Module"})),explorerConfig=[["Mainnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/mainnet/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala.network/",endpoints:{tx:"tx/",account:"address/"}}]]],["Testnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://goerli.etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://mumbai.polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://testnet.bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://testnet.snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://testnet.ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/alfajores/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonbase.moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"},networkQuery:{default:"Devnet",Testnet:"?cluster=testnet",Devnet:"?cluster=devnet"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura-testnet.aca-staging.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala-dev.aca-dev.network/",endpoints:{tx:"tx/",account:"address/"}}]]]],explorerConfs=constMap(explorerConfig),explorerConfigs=(s,j)=>s==="Devnet"?void 0:explorerConfs.get(s,j);function linkToTx(s,j,$){const _e=explorerConfigs($,s);if(!_e)throw new Error("invalid chain, explorer config not found");const{baseUrl:et,endpoints:tt,networkQuery:nt}=_e,rt=nt?nt[$]:"";return`${et}${tt.tx}${j}${rt}`}function linkToAccount(s,j,$){const _e=explorerConfigs($,s);if(!_e)throw new Error("invalid chain, explorer config not found");const{baseUrl:et,endpoints:tt,networkQuery:nt}=_e,rt=nt?nt[$]:"";return`${et}${tt.account}${j}${rt}`}const explorer$1=Object.freeze(Object.defineProperty({__proto__:null,explorerConfigs,explorerConfs,linkToAccount,linkToTx},Symbol.toStringTag,{value:"Module"})),rpcConfig=[["Mainnet",[["Ethereum","https://rpc.ankr.com/eth"],["Solana","https://api.mainnet-beta.solana.com"],["Polygon","https://rpc.ankr.com/polygon"],["Bsc","https://bscrpc.com"],["Avalanche","https://rpc.ankr.com/avalanche"],["Fantom","https://rpc.ankr.com/fantom"],["Celo","https://rpc.ankr.com/celo"],["Moonbeam","https://rpc.ankr.com/moonbeam"],["Sui","https://rpc.mainnet.sui.io"],["Aptos","https://fullnode.mainnet.aptoslabs.com/v1"],["Arbitrum","https://arb1.arbitrum.io/rpc"],["Optimism","https://mainnet.optimism.io"],["Base","https://mainnet.base.org"],["Osmosis","https://osmosis-rpc.polkachu.com"],["Cosmoshub","https://cosmos-rpc.publicnode.com:443"],["Evmos","https://evmos-rpc.polkachu.com"],["Injective","https://sentry.tm.injective.network"],["Wormchain","https://wormchain-rpc.quickapi.com"],["Xpla","https://dimension-rpc.xpla.dev"],["Sei","https://sei-rpc.polkachu.com/"],["Algorand","https://mainnet-api.algonode.cloud"],["Terra","https://terra-classic-rpc.publicnode.com"],["Terra2","https://terra-rpc.polkachu.com"],["Karura","https://eth-rpc-karura.aca-api.network"],["Acala","https://eth-rpc-acala.aca-api.network"],["Oasis","https://emerald.oasis.dev"],["Dymension","https://dymension-rpc.polkachu.com/"],["Stargaze","https://stargaze-rpc.polkachu.com/"],["Celestia","https://celestia-rpc.polkachu.com/"],["Neutron","https://neutron-rpc.polkachu.com/"],["Blast","https://rpc.blast.io"],["Provenance","https://rpc.provenance.io/"],["Linea","https://rpc.linea.build"],["Scroll","https://rpc.ankr.com/scroll"],["Xlayer","https://xlayerrpc.okx.com/"],["Gnosis","https://rpc.ankr.com/gnosis"],["Rootstock","https://public-node.rsk.co"],["Mantle","https://rpc.mantle.xyz"],["Klaytn","https://rpc.ankr.com/klaytn"],["Snaxchain","https://mainnet.snaxchain.io"],["Worldchain","https://worldchain-mainnet.g.alchemy.com/public"]]],["Testnet",[["Ethereum","https://eth-goerli.public.blastapi.io"],["Polygon","https://rpc-mumbai.polygon.technology"],["Bsc","https://data-seed-prebsc-1-s3.binance.org:8545"],["Avalanche","https://api.avax-test.network/ext/bc/C/rpc"],["Fantom","https://rpc.ankr.com/fantom_testnet"],["Celo","https://alfajores-forno.celo-testnet.org"],["Solana","https://api.devnet.solana.com"],["Oasis","https://testnet.emerald.oasis.io"],["Moonbeam","https://rpc.api.moonbase.moonbeam.network"],["Sui","https://fullnode.testnet.sui.io"],["Aptos","https://fullnode.testnet.aptoslabs.com/v1"],["Sei","https://sei-testnet-rpc.polkachu.com"],["Arbitrum","https://arbitrum-goerli.public.blastapi.io"],["Optimism","https://optimism-goerli.public.blastapi.io"],["Base","https://base-goerli.public.blastapi.io"],["Injective","https://testnet.sentry.tm.injective.network"],["Osmosis","https://rpc.testnet.osmosis.zone"],["Cosmoshub","https://rpc.sentry-02.theta-testnet.polypore.xyz"],["Evmos","https://evmos-testnet-rpc.polkachu.com"],["Wormchain","https://gateway.testnet.xlabs.xyz/"],["Xpla","https://cube-rpc.xpla.dev"],["Sepolia","https://ethereum-sepolia.publicnode.com"],["Algorand","https://testnet-api.algonode.cloud"],["Terra","https://bombay.stakesystems.io"],["Terra2","https://terra-testnet-rpc.polkachu.com"],["ArbitrumSepolia","https://sepolia-rollup.arbitrum.io/rpc"],["OptimismSepolia","https://sepolia.optimism.io"],["BaseSepolia","https://sepolia.base.org"],["PolygonSepolia","https://rpc-amoy.polygon.technology/"],["Mantle","https://mantle-sepolia.drpc.org"],["Karura","https://eth-rpc-karura-testnet.aca-staging.network"],["Acala","https://eth-rpc-acala-testnet.aca-staging.network"],["Blast","https://sepolia.blast.io"],["Berachain","https://artio.rpc.berachain.com"],["Linea","https://rpc.sepolia.linea.build"],["Xlayer","https://testrpc.xlayer.tech/"],["Scroll","https://rpc.ankr.com/scroll_sepolia_testnet"],["Rootstock","https://public-node.testnet.rsk.co"],["Gnosis","https://rpc.chiadochain.net"],["Klaytn","https://rpc.ankr.com/klaytn_testnet"],["Snaxchain","https://testnet.snaxchain.io"],["Unichain","https://sepolia.unichain.org"],["Worldchain","https://worldchain-sepolia.g.alchemy.com/public"],["Ink","https://rpc-qnd-sepolia.inkonchain.com"],["MonadDevnet",""]]],["Devnet",[["Ethereum","http://eth-devnet:8545"],["Bsc","http://eth-devnet2:8545"],["Solana","http://solana-devnet:8899"]]]],rpc$2=constMap(rpcConfig),rpcAddress=(s,j)=>rpc$2.get(s,j)??"",rpc$3=Object.freeze(Object.defineProperty({__proto__:null,rpcAddress},Symbol.toStringTag,{value:"Module"})),chainNetworkNativeChainIdEntries=[["Mainnet",[["Aptos",1n],["Algorand","mainnet-v1.0"],["Near","mainnet"],["Cosmoshub","cosmoshub-4"],["Evmos","evmos_9001-2"],["Injective","injective-1"],["Osmosis","osmosis-1"],["Sei","pacific-1"],["Terra","columbus-5"],["Terra2","phoenix-1"],["Wormchain","wormchain"],["Xpla","dimension_37-1"],["Kujira","kaiyo-1"],["Solana","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"],["Sui","35834a8a"],["Acala",787n],["Arbitrum",42161n],["Aurora",1313161554n],["Avalanche",43114n],["Base",8453n],["Bsc",56n],["Celo",42220n],["Ethereum",1n],["Fantom",250n],["Gnosis",100n],["Karura",686n],["Klaytn",8217n],["Moonbeam",1284n],["Neon",245022934n],["Oasis",42262n],["Optimism",10n],["Polygon",137n],["Rootstock",30n],["Neutron","neutron-1"],["Stargaze","stargaze-1"],["Celestia","celestia"],["Dymension","dymension_1100-1"],["Provenance","pio-mainnet-1"],["Xlayer",196n],["Mantle",5000n],["Scroll",534352n],["Blast",81457n],["Linea",59144n],["Snaxchain",2192n],["Worldchain",480n]]],["Testnet",[["Aptos",2n],["Algorand","testnet-v1.0"],["Near","testnet"],["Cosmoshub","theta-testnet-001"],["Evmos","evmos_9000-4"],["Injective","injective-888"],["Osmosis","osmo-test-5"],["Sei","atlantic-2"],["Terra","bombay-12"],["Terra2","pisco-1"],["Wormchain","wormchain-testnet-0"],["Xpla","cube_47-5"],["Kujira","harpoon-4"],["Solana","EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG"],["Sui","4c78adac"],["Acala",597n],["Arbitrum",421613n],["Aurora",1313161555n],["Avalanche",43113n],["Base",84531n],["Bsc",97n],["Celo",44787n],["Ethereum",5n],["Fantom",4002n],["Gnosis",10200n],["Karura",596n],["Klaytn",1001n],["Moonbeam",1287n],["Neon",245022940n],["Oasis",42261n],["Optimism",420n],["Polygon",80001n],["Rootstock",31n],["Sepolia",11155111n],["ArbitrumSepolia",421614n],["BaseSepolia",84532n],["OptimismSepolia",11155420n],["PolygonSepolia",80002n],["Holesky",17000n],["Neutron","pion-1"],["Celestia","mocha-4"],["Seda","seda-1-testnet"],["Blast",168587773n],["Mantle",5003n],["Scroll",534351n],["Berachain",80084n],["Snaxchain",13001n],["Unichain",1301n],["Worldchain",4801n],["Ink",763373n],["Xlayer",195n],["Linea",59141n],["MonadDevnet",41454n]]],["Devnet",[["Aptos",0n],["Algorand","sandnet-v1.0"],["Bsc",1397n],["Ethereum",1337n],["Injective","injective_devnet_fake"],["Solana","8wF6jKV3cKwyaVkWcoV9KpDqmkjvEYno9hKZrKx8TbZn"]]]],networkChainToNativeChainId=constMap(chainNetworkNativeChainIdEntries),nativeChainIdToNetworkChain=constMap(chainNetworkNativeChainIdEntries,[2,[0,1]]);function platformNativeChainIdToNetworkChain(s,j){const _e=nativeChainIdToNetworkChain(j).filter(([et,tt])=>chainToPlatform(tt)===s);if(_e.length!==1)throw new Error(`Platform ${s} has multiple chains with native chain id ${j}`);return _e[0]}const nativeChainIds=Object.freeze(Object.defineProperty({__proto__:null,networkChainToNativeChainId,platformNativeChainIdToNetworkChain},Symbol.toStringTag,{value:"Module"})),circleAPIs=[["Mainnet","https://iris-api.circle.com/v1/attestations"],["Testnet","https://iris-api-sandbox.circle.com/v1/attestations"]],circleAPI=constMap(circleAPIs),usdcContracts=[["Mainnet",[["Ethereum","0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"],["Avalanche","0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e"],["Optimism","0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"],["Arbitrum","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],["Solana","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],["Base","0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"],["Polygon","0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"]]],["Testnet",[["Sepolia","0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],["Avalanche","0x5425890298aed601595a70AB815c96711a31Bc65"],["OptimismSepolia","0x5fd84259d66Cd46123540766Be93DFE6D43130D7"],["ArbitrumSepolia","0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"],["Solana","4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"],["BaseSepolia","0x036CbD53842c5426634e7929541eC2318f3dCF7e"],["Polygon","0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"],["Sui","0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"]]]],usdcContract=constMap(usdcContracts),circleDomains=[["Mainnet",[["Ethereum",0],["Avalanche",1],["Optimism",2],["Arbitrum",3],["Solana",5],["Base",6],["Polygon",7],["Sui",8]]],["Testnet",[["Sepolia",0],["Avalanche",1],["OptimismSepolia",2],["ArbitrumSepolia",3],["Solana",5],["BaseSepolia",6],["Polygon",7],["Sui",8]]]],circleChainId=constMap(circleDomains,[[0,1],2]),circleChainIdToChain=constMap(circleDomains,[[0,2],1]),[circleNetworks,circleChainMap]=zip(circleDomains),isCircleChain=(s,j)=>circleChainId.has(s,j),isCircleChainId=(s,j)=>circleChainIdToChain.has(s,j),isCircleSupported=(s,j)=>usdcContract.has(s,j);function assertCircleChainId(s,j){if(!isCircleChainId(s,j))throw Error(`Unknown Circle chain id: ${j}`)}function assertCircleChain(s,j){if(!isCircleChain(s,j))throw Error(`Unknown Circle chain: ${j}`)}const asCircleChainId=(s,j)=>(assertCircleChainId(s,j),j),toCircleChainId=(s,j)=>{switch(typeof j){case"string":if(isCircleChain(s,j))return circleChainId.get(s,j);break;case"number":if(isCircleChainId(s,j))return j;break;case"bigint":const $=Number(j);if(isCircleChainId(s,$))return $;break}throw Error(`Cannot convert to ChainId: ${j}`)},toCircleChain=(s,j)=>{switch(typeof j){case"string":if(isCircleChain(s,j))return j;break;case"number":if(isCircleChainId(s,j))return circleChainIdToChain(s,j);break;case"bigint":const $=Number(j);if(isCircleChainId(s,$))return circleChainIdToChain(s,$);break}throw Error(`Cannot convert to Chain: ${j}`)},circle$1=Object.freeze(Object.defineProperty({__proto__:null,asCircleChainId,assertCircleChain,assertCircleChainId,circleAPI,circleChainId,circleChainIdToChain,circleChainMap,circleNetworks,isCircleChain,isCircleChainId,isCircleSupported,toCircleChain,toCircleChainId,usdcContract},Symbol.toStringTag,{value:"Module"})),coreBridgeContracts=[["Mainnet",[["Solana","worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"],["Ethereum","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Terra","terra1dq03ugtd40zu9hcgdzrsq6z2z4hwhc9tqk2uy5"],["Bsc","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Polygon","0x7A4B5a56256163F07b2C80A7cA55aBE66c4ec4d7"],["Avalanche","0x54a8e5f9c4CbA08F9943965859F6c34eAF03E26c"],["Oasis","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"],["Algorand","842125965"],["Aurora","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Fantom","0x126783A6Cb203a3E35344528B26ca3a0489a1485"],["Karura","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Acala","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Klaytn","0x0C21603c4f3a6387e241c0091A7EA39E43E90bb7"],["Celo","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Near","contract.wormhole_crypto.near"],["Injective","inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c"],["Moonbeam","0xC8e2b0cD52Cf01b0Ce87d389Daa3d414d4cE29f3"],["Terra2","terra12mrnzvhx3rpej6843uge2yyfppfyd3u9c3uq223q8sl48huz9juqffcnhp"],["Arbitrum","0xa5f208e072434bC67592E4C49C1B991BA79BCA46"],["Optimism","0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722"],["Gnosis","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Pythnet","H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU"],["Base","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Rootstock","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Xlayer","0x194B123c5E96B9b2E49763619985790Dc241CAC0"],["Xpla","xpla1jn8qmdda5m6f6fqu9qv46rt7ajhklg40ukpqchkejcvy8x7w26cqxamv3w"],["Sei","sei1gjrrme22cyha4ht2xapn3f08zzw6z3d4uxx6fyy9zd5dyr3yxgzqqncdqn"],["Wormchain","wormhole1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqaqfk2j"],["Neutron","neutron16rerygcpahqcxx5t8vjla46ym8ccn7xz7rtc6ju5ujcd36cmc7zs9zrunh"],["Blast","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Scroll","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Mantle","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Snaxchain","0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4"],["Worldchain","0xcbcEe4e081464A15d8Ad5f58BB493954421eB506"]]],["Testnet",[["Solana","3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"],["Ethereum","0x706abc4E45D419950511e474C7B9Ed348A4a716c"],["Terra","terra1pd65m0q9tl3v8znnz5f5ltsfegyzah7g42cx5v"],["Bsc","0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"],["Polygon","0x0CBE91CF822c73C2315FB05100C2F714765d5c20"],["Avalanche","0x7bbcE28e64B3F8b84d876Ab298393c38ad7aac4C"],["Oasis","0xc1C338397ffA53a2Eb12A7038b4eeb34791F8aCb"],["Algorand","86525623"],["Aurora","0xBd07292de7b505a4E803CEe286184f7Acf908F5e"],["Fantom","0x1BB3B4119b7BA9dfad76B0545fb3F531383c3bB7"],["Karura","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Acala","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Klaytn","0x1830CC6eE66c84D2F177B94D544967c774E624cA"],["Celo","0x88505117CA88e7dd2eC6EA1E13f0948db2D50D56"],["Near","wormhole.wormhole.testnet"],["Injective","inj1xx3aupmgv3ce537c0yce8zzd3sz567syuyedpg"],["Osmosis","osmo1hggkxr0hpw83f8vuft7ruvmmamsxmwk2hzz6nytdkzyup9krt0dq27sgyx"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790"],["Moonbeam","0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901"],["Neon","0x268557122Ffd64c85750d630b716471118F323c8"],["Terra2","terra19nv3xr5lrmmr7egvrk2kqgw4kcn43xrtd5g0mpgwwvhetusk4k7s66jyv0"],["Arbitrum","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Gnosis","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Pythnet","EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z"],["Xpla","xpla1upkjn4mthr0047kahvn0llqx4qpqfn75lnph4jpxfn8walmm8mqsanyy35"],["Base","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Sei","sei1nna9mzp274djrgzhzkac2gvm3j27l402s4xzr08chq57pjsupqnqaj0d5s"],["Sepolia","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Rootstock","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Wormchain","wormhole16jzpxp0e8550c9aht6q9svcux30vtyyyyxv5w2l2djjra46580wsazcjwp"],["ArbitrumSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["BaseSepolia","0x79A1027a6A159502049F10906D333EC57E95F083"],["OptimismSepolia","0x31377888146f3253211EFEf5c676D41ECe7D58Fe"],["Holesky","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Neutron","neutron1enf63k37nnv9cugggpm06mg70emcnxgj9p64v2s8yx7a2yhhzk2q6xesk4"],["Mantle","0x376428e7f26D5867e69201b275553C45B09EE090"],["PolygonSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Scroll","0x055F47F1250012C6B20c436570a76e52c17Af2D5"],["Blast","0x473e002D7add6fB67a4964F13bFd61280Ca46886"],["Berachain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Snaxchain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Unichain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Worldchain","0xe5E02cD12B6FcA153b0d7fF4bF55730AE7B3C93A"],["Ink","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Xlayer","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["Linea","0x79A1027a6A159502049F10906D333EC57E95F083"],["MonadDevnet","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"]]],["Devnet",[["Solana","Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"],["Ethereum","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Terra","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Bsc","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Algorand","1004"],["Near","wormhole.test.near"],["Aptos","0xde0036a9600559e295d5f6802ef6f3f802f510366e0c23912b0655d972166017"],["Sui","0x5a5160ca3c2037f4b4051344096ef7a48ebf4400b3f385e57ea90e1628a8bde0"],["Terra2","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Wormchain","wormhole17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgshdnj3k"]]]],tokenBridgeContracts=[["Mainnet",[["Solana","wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb"],["Ethereum","0x3ee18B2214AFF97000D974cf647E7C347E8fa585"],["Terra","terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf"],["Bsc","0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7"],["Polygon","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Avalanche","0x0e082F06FF657D94310cB8cE8B0D9a04541d8052"],["Oasis","0x5848C791e09901b40A9Ef749f2a6735b418d7564"],["Algorand","842126029"],["Aurora","0x51b5123a7b0F9b2bA265f9c4C8de7D78D52f510F"],["Fantom","0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2"],["Karura","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Acala","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Klaytn","0x5b08ac39EAED75c0439FC750d9FE7E1F9dD0193F"],["Celo","0x796Dff6D74F3E27060B71255Fe517BFb23C93eed"],["Near","contract.portalbridge.near"],["Injective","inj1ghd753shjuwexxywmgs4xz7x2q732vcnxxynfn"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0xc57508ee0d4595e5a8728974a4a93a787d38f339757230d441e895422c07aba9"],["Moonbeam","0xb1731c586ca89a23809861c6103f0b96b3f57d92"],["Terra2","terra153366q50k7t8nn7gec00hg66crnhkdggpgdtaxltaq6xrutkkz3s992fw9"],["Arbitrum","0x0b2402144Bb366A632D14B83F244D2e0e21bD39c"],["Optimism","0x1D68124e65faFC907325e3EDbF8c4d84499DAa8b"],["Base","0x8d2de8d2f73F1F4cAB472AC9A881C9b123C79627"],["Xlayer","0x5537857664B0f9eFe38C9f320F75fEf23234D904"],["Xpla","xpla137w0wfch2dfmz7jl2ap8pcmswasj8kg06ay4dtjzw7tzkn77ufxqfw7acv"],["Sei","sei1smzlm9t79kur392nu9egl8p8je9j92q4gzguewj56a05kyxxra0qy0nuf3"],["Wormchain","wormhole1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjq4lyjmh"],["Blast","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Scroll","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Mantle","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Snaxchain","0x8B94bfE456B48a6025b92E11Be393BAa86e68410"],["Worldchain","0xc309275443519adca74c9136b02A38eF96E3a1f6"]]],["Testnet",[["Solana","DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe"],["Ethereum","0xF890982f9310df57d00f659cf4fd87e65adEd8d7"],["Terra","terra1pseddrv0yfsn76u4zxrjmtf45kdlmalswdv39a"],["Bsc","0x9dcF9D205C9De35334D646BeE44b2D2859712A09"],["Polygon","0x377D55a7928c046E18eEbb61977e714d2a76472a"],["Avalanche","0x61E44E506Ca5659E6c0bba9b678586fA2d729756"],["Oasis","0x88d8004A9BdbfD9D28090A02010C19897a29605c"],["Algorand","86525641"],["Aurora","0xD05eD3ad637b890D68a854d607eEAF11aF456fba"],["Fantom","0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8"],["Karura","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Acala","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Klaytn","0xC7A13BE098720840dEa132D860fDfa030884b09A"],["Celo","0x05ca6037eC51F8b712eD2E6Fa72219FEaE74E153"],["Near","token.wormhole.testnet"],["Injective","inj1q0e70vhrv063eah90mu97sazhywmeegp7myvnh"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0x6fb10cdb7aa299e9a4308752dadecb049ff55a892de92992a1edbd7912b3d6da"],["Moonbeam","0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96"],["Neon","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Terra2","terra1c02vds4uhgtrmcw7ldlg75zumdqxr8hwf7npseuf2h58jzhpgjxsgmwkvk"],["Arbitrum","0x23908A62110e21C04F3A4e011d24F901F911744A"],["ArbitrumSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["OptimismSepolia","0x99737Ec4B815d816c49A385943baf0380e75c0Ac"],["Xpla","xpla1kek6zgdaxcsu35nqfsyvs2t9vs87dqkkq6hjdgczacysjn67vt8sern93x"],["Base","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["BaseSepolia","0x86F55A04690fd7815A3D802bD587e83eA888B239"],["Sei","sei1jv5xw094mclanxt5emammy875qelf3v62u4tl4lp5nhte3w3s9ts9w9az2"],["Sepolia","0xDB5492265f6038831E89f495670FF909aDe94bd9"],["Wormchain","wormhole1aaf9r6s7nxhysuegqrxv0wpm27ypyv4886medd3mrkrw6t4yfcnst3qpex"],["Holesky","0x76d093BbaE4529a342080546cAFEec4AcbA59EC6"],["Mantle","0x75Bfa155a9D7A3714b0861c8a8aF0C4633c45b5D"],["PolygonSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Scroll","0x22427d90B7dA3fA4642F7025A854c7254E4e45BF"],["Blast","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Xlayer","0xdA91a06299BBF302091B053c6B9EF86Eff0f930D"],["Berachain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Snaxchain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Unichain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Worldchain","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Ink","0x376428e7f26D5867e69201b275553C45B09EE090"],["Linea","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"]]],["Devnet",[["Solana","B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE"],["Ethereum","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Terra","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Bsc","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Algorand","1006"],["Near","token.test.near"],["Aptos","0x84a5f374d29fc77e370014dce4fd6a55b58ad608de8074b0be5571701724da31"],["Sui","0xa6a3da85bbe05da5bfd953708d56f1a3a023e7fb58e5a824a3d4de3791e8f690"],["Terra2","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Wormchain","wormhole1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrqtm7t3h"]]]],tokenBridgeRelayerContracts=[["Mainnet",[["Ethereum","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Bsc","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Polygon","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Avalanche","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Fantom","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Celo","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Sui","0x57f4e0ba41a7045e29d435bc66cc4175f381eb700e6ec16d4fdfe92e5a4dff9f"],["Solana","3vxKRPwUTiEkeUVyoZ9MXFe1V71sRLbLqu1gRYaWmehQ"],["Base","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Moonbeam","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Arbitrum","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Optimism","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"]]],["Testnet",[["Ethereum","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Bsc","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Polygon","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Avalanche","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Sui","0xb30040e5120f8cb853b691cb6d45981ae884b1d68521a9dc7c3ae881c0031923"],["Base","0xae8dc4a7438801ec4edc0b035eccccf3807f4cc1"],["Moonbeam","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Solana","3bPRWXqtSfUaCw3S4wdgvypQtsSzcmvDeaqSqPDkncrg"],["Sepolia",""],["ArbitrumSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["OptimismSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["BaseSepolia",""]]]],nftBridgeContracts=[["Mainnet",[["Solana","WnFt12ZrnzZrFZkt2xsNsaNWoQribnuQ5B5FrDbwDhD"],["Ethereum","0x6FFd7EdE62328b3Af38FCD61461Bbfc52F5651fE"],["Bsc","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Polygon","0x90BBd86a6Fe93D3bc3ed6335935447E75fAb7fCf"],["Avalanche","0xf7B6737Ca9c4e08aE573F75A97B73D7a813f5De5"],["Oasis","0x04952D522Ff217f40B5Ef3cbF659EcA7b952a6c1"],["Aurora","0x6dcC0484472523ed9Cdc017F711Bcbf909789284"],["Fantom","0xA9c7119aBDa80d4a4E0C06C8F4d8cF5893234535"],["Karura","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Acala","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Klaytn","0x3c3c561757BAa0b78c5C025CdEAa4ee24C1dFfEf"],["Celo","0xA6A377d75ca5c9052c9a77ED1e865Cc25Bd97bf3"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["Moonbeam","0x453cfbe096c0f8d763e8c5f24b441097d577bde2"],["Arbitrum","0x3dD14D553cFD986EAC8e3bddF629d82073e188c8"],["Base","0xDA3adC6621B2677BEf9aD26598e6939CF0D92f88"],["Optimism","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"]]],["Testnet",[["Solana","2rHhojZ7hpu1zA91nvZmT8TqWWvMcKmmNBCr2mKTtMq4"],["Ethereum","0xD8E4C2DbDd2e2bd8F1336EA691dBFF6952B1a6eB"],["Bsc","0xcD16E5613EF35599dc82B24Cb45B5A93D779f1EE"],["Polygon","0x51a02d0dcb5e52F5b92bdAA38FA013C91c7309A9"],["Avalanche","0xD601BAf2EEE3C028344471684F6b27E789D9075D"],["Oasis","0xC5c25B41AB0b797571620F5204Afa116A44c0ebA"],["Aurora","0x8F399607E9BA2405D87F5f3e1B78D950b44b2e24"],["Fantom","0x63eD9318628D26BdCB15df58B53BB27231D1B227"],["Klaytn","0x94c994fC51c13101062958b567e743f1a04432dE"],["Celo","0xaCD8190F647a31E56A656748bC30F69259f245Db"],["Moonbeam","0x98A0F4B96972b32Fcb3BD03cAeB66A44a6aB9Edb"],["Neon","0x66E5BcFD45D2F3f166c567ADa663f9d2ffb292B4"],["Arbitrum","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Optimism","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Base","0xF681d1cc5F25a3694E348e7975d7564Aa581db59"],["Sepolia","0x6a0B52ac198e4870e5F3797d5B403838a5bbFD99"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["ArbitrumSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["BaseSepolia","0x268557122Ffd64c85750d630b716471118F323c8"],["OptimismSepolia","0x27812285fbe85BA1DF242929B906B31EE3dd1b9f"],["Holesky","0xc8941d483c45eF8FB72E4d1F9dDE089C95fF8171"],["PolygonSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Mantle","0xD7D732C8Bf5eBF620EA55b5828eae20418eEF083"],["Scroll","0x47B9a1406BEe29a3001BFEB7e45aE45fFFB40c18"]]],["Devnet",[["Solana","NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA"],["Ethereum","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Terra","terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl"],["Bsc","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Aptos","0x46da3d4c569388af61f951bdd1153f4c875f90c2991f6b2d0a38e2161a40852c"]]]],relayerContracts=[["Mainnet",[["Ethereum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Bsc","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Polygon","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Avalanche","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Fantom","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Klaytn","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Celo","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Moonbeam","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Base","0x706f82e9bb5b0813501714ab5974216704980e31"],["Arbitrum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Optimism","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Blast","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Scroll","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Mantle","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Xlayer","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Snaxchain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"]]],["Testnet",[["Ethereum","0x28D8F1Be96f97C1387e94A53e00eCcFb4E75175a"],["Bsc","0x80aC94316391752A193C1c47E27D382b507c93F3"],["Polygon","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Avalanche","0xA3cF45939bD6260bcFe3D66bc73d60f19e49a8BB"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x306B68267Deb7c5DfCDa3619E22E9Ca39C374f84"],["Moonbeam","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Arbitrum","0xAd753479354283eEE1b86c9470c84D42f229FF43"],["Optimism","0x01A957A525a5b7A72808bA9D10c389674E459891"],["Base","0xea8029CD7FCAEFFcD1F53686430Db0Fc8ed384E1"],["Sepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["ArbitrumSepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["BaseSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["OptimismSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"]]],["Devnet",[["Ethereum","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"],["Bsc","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"]]]],circleContracts$1=[["Mainnet",[["Ethereum",{tokenMessenger:"0xbd3fa81b58ba92a82136038b25adec7066af3155",messageTransmitter:"0x0a992d191deec32afe36203ad87d7d289a738f81",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0xAaDA05BD399372f0b0463744C09113c137636f6a"}],["Avalanche",{tokenMessenger:"0x6b25532e1060ce10cc3b0a99e5683b91bfde6982",messageTransmitter:"0x8186359af5f57fbb40c6b14a588d2a59c0c29880",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x09Fb06A271faFf70A651047395AaEb6265265F13"}],["Optimism",{tokenMessenger:"0x2B4069517957735bE00ceE0fadAE88a26365528f",messageTransmitter:"0x4d41f22c5a0e5c74090899e5a8fb597a8842b3e8",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Arbitrum",{tokenMessenger:"0x19330d10D9Cc8751218eaf51E8885D058642E08A",messageTransmitter:"0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Base",{tokenMessenger:"0x1682Ae6375C4E4A97e4B583BC394c861A46D8962",messageTransmitter:"0xAD09780d193884d503182aD4588450C416D6F9D4",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x03faBB06Fa052557143dC28eFCFc63FC12843f1D"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["Polygon",{tokenMessenger:"0x9daF8c91AEFAE50b9c0E69629D3F6Ca40cA3B3FE",messageTransmitter:"0xF3be9355363857F3e001be68856A2f96b4C39Ba9",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x0FF28217dCc90372345954563486528aa865cDd6"}],["Sui",{tokenMessenger:"",messageTransmitter:"",wormholeRelayer:"",wormhole:""}]]],["Testnet",[["Sepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Avalanche",{tokenMessenger:"0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0",messageTransmitter:"0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79",wormholeRelayer:"0x774a70bbd03327c21460b60f25b677d9e46ab458",wormhole:"0x58f4c17449c90665891c42e14d34aae7a26a472e"}],["OptimismSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["ArbitrumSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xaCF1ceeF35caAc005e15888dDb8A3515C41B4872",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["BaseSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Polygon",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Sui",{tokenMessenger:"0x4e16078afc5ebfc244a8107ded4044970df5d84db384e7194b7fc444090683fd",messageTransmitter:"0x4741a96a5903c80613f2d013492a47741cf10c6246ea38a724d354a09895cf8f",wormholeRelayer:"",wormhole:""}]]]],gatewayContracts=[["Mainnet",[["Wormchain","wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]],["Testnet",[["Wormchain","wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]],translatorContracts=[["Mainnet",[["Sei","sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l"]]],["Testnet",[["Sei","sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak"]]]],rollupContractAddresses=[["Mainnet",[["Polygon",["Ethereum","0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]],["Optimism",["Ethereum","0xdfe97868233d1aa22e815a266982f2cf17685a27"]],["Arbitrum",["Ethereum","0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]],["Testnet",[["Polygon",["Ethereum","0x2890ba17efe978480615e330ecb65333b880928e"]],["Optimism",["Ethereum","0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]],["Arbitrum",["Ethereum","0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]],porticoContracts=[["Mainnet",[["Ethereum",{porticoUniswap:"0x48b6101128C0ed1E208b7C910e60542A2ee6f476",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0x4db1683d60e0a933A9A477a19FA32F472bB9d06e",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Polygon",{porticoUniswap:"0x227bABe533fa9a1085f5261210E0B7137E44437B",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Bsc",{porticoUniswap:"0x05498574BD0Fa99eeCB01e1241661E7eE58F8a85",uniswapQuoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",porticoPancakeSwap:"0xF352DC165783538A26e38A536e76DceF227d90F2",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Avalanche",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Arbitrum",{porticoUniswap:"0x48fa7528bFD6164DdF09dF0Ed22451cF59c84130",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0xE70946692E2e56ae47BfAe2d93d31bd60952B090",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Optimism",{porticoUniswap:"0x9ae506cDDd27DEe1275fd1fe6627E5dc65257061",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Base",{porticoUniswap:"0x610d4DFAC3EC32e0be98D18DDb280DACD76A1889",uniswapQuoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",porticoPancakeSwap:"0x4568aa1eA0ED54db666c58B4526B3FC9BD9be9bf",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Celo",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}]]]],coreBridge=constMap(coreBridgeContracts),tokenBridge$2=constMap(tokenBridgeContracts),tokenBridgeRelayer=constMap(tokenBridgeRelayerContracts),nftBridge=constMap(nftBridgeContracts),relayer$1=constMap(relayerContracts),gateway=constMap(gatewayContracts),translator=constMap(translatorContracts),portico$2=constMap(porticoContracts),circleContracts=constMap(circleContracts$1),rollupContracts=constMap(rollupContractAddresses),tokenBridgeChains=constMap(tokenBridgeContracts,[0,1]),tokenBridgeRelayerChains=constMap(tokenBridgeRelayerContracts,[0,1]),circleContractChains=constMap(circleContracts$1,[0,1]),porticoContractChains=constMap(porticoContracts,[0,1]),index=Object.freeze(Object.defineProperty({__proto__:null,circleContractChains,circleContracts,coreBridge,gateway,nftBridge,portico:portico$2,porticoContractChains,relayer:relayer$1,rollupContracts,tokenBridge:tokenBridge$2,tokenBridgeChains,tokenBridgeRelayer,tokenBridgeRelayerChains,translator},Symbol.toStringTag,{value:"Module"})),guardianKeyAndNameEntries=[["Mainnet",[["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5","JumpCrypto"],["0xfF6CB952589BDE862c25Ef4392132fb9D4A42157","Staked"],["0x114De8460193bdf3A2fCf81f86a09765F4762fD1","Figment"],["0x107A0086b32d7A0977926A205131d8731D39cbEB","ChainodeTech"],["0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2","Inotel"],["0x11b39756C042441BE6D8650b69b54EbE715E2343","HashQuark"],["0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd","Chainlayer"],["0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20","xLabs"],["0x74a3bf913953D695260D88BC1aA25A4eeE363ef0","Forbole"],["0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e","StakingFund"],["0xAF45Ced136b9D9e24903464AE889F5C8a723FC14","MoonletWallet"],["0xf93124b7c738843CBB89E864c862c38cddCccF95","P2PValidator"],["0xD2CC37A4dc036a8D232b48f62cDD4731412f4890","01Node"],["0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811","MCF"],["0x71AA1BE1D36CaFE3867910F99C09e347899C19C3","Everstake"],["0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf","ChorusOne"],["0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8","Syncnode"],["0x5E1487F35515d02A92753504a8D75471b9f49EdB","Triton"],["0x6FbEBc898F403E4773E95feB15E80C9A99c8348d","StakingFacilities"]]],["Testnet",[["0x13947Bd48b18E53fdAeEe77F3473391aC727C638","Testnet guardian"]]]],guardianKeys=column(cartesianRightRecursive(guardianKeyAndNameEntries),1),guardianNames=column(cartesianRightRecursive(guardianKeyAndNameEntries),2),guardianNameToKey=constMap(guardianKeyAndNameEntries,[[0,2],1]),guardianKeyToName=constMap(guardianKeyAndNameEntries,[1,[0,2]]),devnetGuardianPrivateKey="cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0",guardianAttestationEta=5,guardians=Object.freeze(Object.defineProperty({__proto__:null,devnetGuardianPrivateKey,guardianAttestationEta,guardianKeyToName,guardianKeys,guardianNameToKey,guardianNames},Symbol.toStringTag,{value:"Module"})),esm=Object.freeze(Object.defineProperty({__proto__:null,addFixedValues:addFixedValues$1,amount:amount$2,asChainId,assertChain,assertChainId,binaryLiterals,bitsetItem:bitsetItem$1,calcLayoutSize:calcLayoutSize$1,calcStaticLayoutSize:calcStaticLayoutSize$1,cartesianRightRecursive,chain:chains$1,chainIdToChain,chainIds,chainToChainId,chainToPlatform,chains,checkBytesTypeEqual,checkItemSize,checkNumEquals,checkSize,circle:circle$1,column,constMap,contracts:index,customizableBytes,decimals,defaultEndianness,deserializeLayout:deserializeLayout$1,dynamicItemsOfLayout:dynamicItemsOfLayout$1,elementIndexPairs,encoding:encoding$3,entries,enumItem:enumItem$1,explorer:explorer$1,filters,finality,findIdLayoutPair,fixedItemsOfLayout:fixedItemsOfLayout$1,getCachedSerializedFrom:getCachedSerializedFrom$1,guardians,isBytesType,isChain,isChainId,isEqualCaseInsensitive,isFixedBytesConversion,isFixedPrimitiveConversion,isFixedUintConversion,isLayout,isLayoutItem,isNetwork,isNumType,isPlatform,isPrimitiveType,layout:index$1,layoutDiscriminator:layoutDiscriminator$1,lazyInstantiate:lazyInstantiate$1,nativeChainIds,network:networks$1,networks,numberMaxSize,onlyOnce:onlyOnce$1,optionItem:optionItem$1,platform:platforms$1,platformToAddressFormat,platformToChains,platforms,range,rpc:rpc$3,serializeLayout:serializeLayout$1,serializeNum:serializeNum$1,throws:throws$1,toChain,toChainId,zip},Symbol.toStringTag,{value:"Module"})),networkOptions=[{env:"Mainnet",endpoint:"https://europe-west3-wormhole-message-db-mainnet.cloudfunctions.net",name:"Mainnet",logo:"",type:"cloudfunction"},{env:"Mainnet",endpoint:"https://wormhole-v2-mainnet-api.mcf.rocks",name:"MCF",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCA0OCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuODk2IDEyVjAuNDhIMy4zNDRMNy4zNzYgNS4yOTZMMTEuMzkyIDAuNDhIMTMuODU2VjEySDExLjUzNlYzLjkyTDcuMzc2IDguODk2TDMuMiAzLjkzNlYxMkgwLjg5NlpNMjEuODAzOCAxMkMyMS4zNzcxIDEyIDIwLjk4NzggMTEuODk4NyAyMC42MzU4IDExLjY5NkMyMC4yOTQ0IDExLjQ4MjcgMjAuMDE3MSAxMS4yMDUzIDE5LjgwMzggMTAuODY0QzE5LjYwMTEgMTAuNTEyIDE5LjQ5OTggMTAuMTIyNyAxOS40OTk4IDkuNjk2VjIuNzg0QzE5LjQ5OTggMi4zNTczMyAxOS42MDExIDEuOTczMzMgMTkuODAzOCAxLjYzMkMyMC4wMTcxIDEuMjggMjAuMjk0NCAxLjAwMjY3IDIwLjYzNTggMC43OTk5OTlDMjAuOTg3OCAwLjU4NjY2NiAyMS4zNzcxIDAuNDggMjEuODAzOCAwLjQ4SDMwLjk4NzhWMi44SDIyLjM0NzhDMjIuMTc3MSAyLjggMjIuMDQzOCAyLjg0OCAyMS45NDc4IDIuOTQ0QzIxLjg1MTggMy4wMjkzMyAyMS44MDM4IDMuMTYyNjcgMjEuODAzOCAzLjM0NFY5LjEzNkMyMS44MDM4IDkuMzA2NjcgMjEuODUxOCA5LjQ0IDIxLjk0NzggOS41MzZDMjIuMDQzOCA5LjYzMiAyMi4xNzcxIDkuNjggMjIuMzQ3OCA5LjY4SDMwLjk4NzhWMTJIMjEuODAzOFpNMzYuNDQ4IDEyVjAuNDhINDcuMDcyVjIuOEgzOC43ODRWNS4wNzJINDUuNDU2VjcuNDA4SDM4Ljc4NFYxMkgzNi40NDhaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",type:"guardian"},{env:"Mainnet",endpoint:"https://wormhole-v2-mainnet-api.chainlayer.network",name:"ChainLayer",logo:"",type:"guardian"},{env:"Mainnet",endpoint:"https://worm-dash-01.rockrpc.net",name:"RockawayX",logo:"",type:"guardian"},{env:"Mainnet",endpoint:"https://wormhole-v2-mainnet-api.staking.fund",name:"Staking Fund",logo:"",type:"guardian"},{env:"Mainnet",endpoint:"https://guardian.mainnet.xlabs.xyz",name:"xLabs",logo:"",type:"guardian"},{env:"Testnet",endpoint:"https://europe-west3-wormhole-message-db-testnet.cloudfunctions.net",name:"Testnet",logo:"",type:"cloudfunction"},{env:"Testnet",endpoint:"https://p2p-guardian-testnet-web.solana.p2p.org",name:"Testnet - P2P",logo:"",type:"guardian"},{env:"Testnet",endpoint:"https://guardian.testnet.xlabs.xyz",name:"Testnet - xLabs (LB)",logo:"",type:"guardian"},{env:"Testnet",endpoint:"https://guardian-01.testnet.xlabs.xyz",name:"Testnet - xLabs 1",logo:"",type:"guardian"},{env:"Testnet",endpoint:"https://guardian-02.testnet.xlabs.xyz",name:"Testnet - xLabs 2",logo:"",type:"guardian"},{env:"Devnet",endpoint:"http://localhost:7071",name:"Devnet",logo:"",type:"guardian"}],defaultNetwork=networkOptions[0],urlParamKey="endpoint",NetworkContext=React$1.createContext({currentNetwork:defaultNetwork,setCurrentNetwork:()=>{}}),NetworkContextProvider=({children:s})=>{const{push:j,replace:$}=useHistory(),{search:_e}=useLocation(),{urlParams:et,urlNetwork:tt,currentNetwork:nt}=reactExports.useMemo(()=>{const it=new URLSearchParams(_e),st=it.get(urlParamKey),at=networkOptions.find(ct=>ct.name===st)||defaultNetwork;return{urlParams:it,urlNetwork:st,currentNetwork:at}},[_e]),rt=reactExports.useCallback((it,st)=>{tt!==it.name&&(et.set(urlParamKey,it.name),st?$({search:et.toString()}):j({search:et.toString()}))},[tt,et,$,j]);reactExports.useEffect(()=>{rt(nt,!0)},[nt,rt]);const ot=reactExports.useMemo(()=>({currentNetwork:nt,setCurrentNetwork:rt}),[nt,rt]);return jsxRuntimeExports.jsx(NetworkContext.Provider,{value:ot,children:s})},useNetworkContext=()=>reactExports.useContext(NetworkContext),useCurrentEnvironment=()=>reactExports.useContext(NetworkContext).currentNetwork.env;function useChainHeartbeats(s){const j={};return s.forEach(($,_e)=>{$.networks.forEach(et=>{j[et.id]||(j[et.id]=s.map(tt=>({guardian:tt.guardianAddr,name:tt.nodeName,network:{...et,contractAddress:"",errorCount:"0",height:"0",safeHeight:"0",finalizedHeight:"0"}}))),j[et.id][_e]={guardian:$.guardianAddr,name:$.nodeName,network:et}})}),j}var dist={},arrays={};Object.defineProperty(arrays,"__esModule",{value:!0});arrays.chunkArray=void 0;function chunkArray(s,j){const $=[];for(let _e=0;_e{try{return(0,sdk_base_1$f.toChain)(s)}catch{}return"Unknown"};chainIdToName$1.chainIdToName=chainIdToName;var consts={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.isTokenDenylisted=s.TVL_TOKEN_DENYLIST=s.STANDBY_GUARDIANS=s.GUARDIAN_SET_4=s.NTT_ACCOUNTANT_CONTRACT_ADDRESS_TESTNET=s.NTT_ACCOUNTANT_CONTRACT_ADDRESS_MAINNET=s.ACCOUNTANT_CONTRACT_ADDRESS=s.CIRCLE_DOMAIN_TO_CHAIN_ID=s.isCircleIntegrationEmitter=s.CIRCLE_INTEGRATION_EMITTERS=s.isNFTBridgeEmitter=s.NFT_BRIDGE_EMITTERS=s.isTokenBridgeEmitter=s.TOKEN_BRIDGE_EMITTERS=s.getMissThreshold=s.INITIAL_DEPLOYMENT_BLOCK_BY_MODE=s.INITIAL_FT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN=s.INITIAL_NTT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN=s.INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN=s.VAA_VERSION=s.MAX_VAA_DECIMALS=s.MISS_THRESHOLD_LABEL=void 0;const j=require$$0$7,$=40;s.MISS_THRESHOLD_LABEL="40 minutes",s.MAX_VAA_DECIMALS=8,s.VAA_VERSION=1,s.INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN={Mainnet:{Ethereum:"12959638",Terra:"4810000",Bsc:"9745450",Polygon:"20629146",Avalanche:"8237163",Oasis:"1757",Algorand:"22931277",Fantom:"31817467",Karura:"1824665",Acala:"1144161",Klaytn:"90563824",Celo:"12947144",Moonbeam:"1486591",Terra2:"399813",Injective:"20908376",Arbitrum:"18128584",Optimism:"69401779",Aptos:"0",Near:"72767136",Xpla:"777549",Solana:"94396403",Sui:"1485552",Base:"1422314",Scroll:"4955534",Mantle:"64176265",Blast:"2375628",Sei:"238594",Wormchain:"4510119",Snaxchain:"306315",Worldchain:"5805110"},Testnet:{Ethereum:"0",Terra:"0",Bsc:"0",Polygon:"0",Avalanche:"0",Oasis:"0",Algorand:"0",Fantom:"0",Karura:"0",Acala:"0",Klaytn:"0",Celo:"0",Moonbeam:"0",Terra2:"0",Injective:"0",Arbitrum:"0",Optimism:"0",Aptos:"0",Near:"0",Xpla:"0",Solana:"0",Sui:"0",Scroll:"0",Mantle:"0",Blast:"0",Base:"0",Sei:"0",Wormchain:"4495661",PolygonSepolia:"2379275",Berachain:"1473347",Snaxchain:"482557",Unichain:"254961",Worldchain:"4487948",MonadDevnet:"3670467",Ink:"1907965"},Devnet:{}},s.INITIAL_NTT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN={Mainnet:{Solana:"260508723",Ethereum:"19583505",Fantom:"78727372",Arbitrum:"201652677",Optimism:"118840800",Base:"13245519"},Testnet:{Solana:"285100152",Sepolia:"5472203",ArbitrumSepolia:"22501243",BaseSepolia:"7249669",OptimismSepolia:"9232548"},Devnet:{}},s.INITIAL_FT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN={Mainnet:{Solana:"285350104",Arbitrum:"245882390",Base:"18956026"},Testnet:{Solana:"302162456",ArbitrumSepolia:"49505590"},Devnet:{}},s.INITIAL_DEPLOYMENT_BLOCK_BY_MODE={vaa:s.INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN,ntt:s.INITIAL_NTT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN,ft:s.INITIAL_FT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN};function _e(ot,it){let st;try{let ct;typeof it=="string"&&!Number.isNaN(Number(it))?ct=(0,j.toChainId)(Number(it)):ct=(0,j.toChainId)(it),st=ct===(0,j.toChainId)("Scroll")?120:$}catch{st=$}const at=ot;return at.setMinutes(at.getMinutes()-st),at.toISOString()}s.getMissThreshold=_e,s.TOKEN_BRIDGE_EMITTERS={Solana:"ec7372995d5cc8732397fb0ad35c0121e0eaa90d26f828a534cab54391b3a4f5",Ethereum:"0000000000000000000000003ee18b2214aff97000d974cf647e7c347e8fa585",Terra:"0000000000000000000000007cf7b764e38a0a5e967972c1df77d432510564e2",Terra2:"a463ad028fb79679cfc8ce1efba35ac0e77b35080a1abe9bebe83461f176b0a3",Bsc:"000000000000000000000000b6f6d86a8f9879a9c87f643768d9efc38c1da6e7",Polygon:"0000000000000000000000005a58505a96d1dbf8df91cb21b54419fc36e93fde",Avalanche:"0000000000000000000000000e082f06ff657d94310cb8ce8b0d9a04541d8052",Oasis:"0000000000000000000000005848c791e09901b40a9ef749f2a6735b418d7564",Algorand:"67e93fa6c8ac5c819990aa7340c0c16b508abb1178be9b30d024b8ac25193d45",Aptos:"0000000000000000000000000000000000000000000000000000000000000001",Aurora:"00000000000000000000000051b5123a7b0f9b2ba265f9c4c8de7d78d52f510f",Fantom:"0000000000000000000000007c9fc5741288cdfdd83ceb07f3ea7e22618d79d2",Karura:"000000000000000000000000ae9d7fe007b3327aa64a32824aaac52c42a6e624",Acala:"000000000000000000000000ae9d7fe007b3327aa64a32824aaac52c42a6e624",Klaytn:"0000000000000000000000005b08ac39eaed75c0439fc750d9fe7e1f9dd0193f",Celo:"000000000000000000000000796dff6d74f3e27060b71255fe517bfb23c93eed",Near:"148410499d3fcda4dcfd68a1ebfcdddda16ab28326448d4aae4d2f0465cdfcb7",Moonbeam:"000000000000000000000000b1731c586ca89a23809861c6103f0b96b3f57d92",Arbitrum:"0000000000000000000000000b2402144bb366a632d14b83f244d2e0e21bd39c",Optimism:"0000000000000000000000001d68124e65fafc907325e3edbf8c4d84499daa8b",Xpla:"8f9cf727175353b17a5f574270e370776123d90fd74956ae4277962b4fdee24c",Injective:"00000000000000000000000045dbea4617971d93188eda21530bc6503d153313",Sui:"ccceeb29348f71bdd22ffef43a2a19c1f5b5e17c5cca5411529120182672ade5",Base:"0000000000000000000000008d2de8d2f73f1f4cab472ac9a881c9b123c79627",Scroll:"00000000000000000000000024850c6f61C438823F01B7A3BF2B89B72174Fa9d",Mantle:"00000000000000000000000024850c6f61C438823F01B7A3BF2B89B72174Fa9d",Blast:"00000000000000000000000024850c6f61C438823F01B7A3BF2B89B72174Fa9d",Xlayer:"0000000000000000000000005537857664B0f9eFe38C9f320F75fEf23234D904",Sei:"86c5fd957e2db8389553e1728f9c27964b22a8154091ccba54d75f4b10c61f5e",Wormchain:"aeb534c45c3049d380b9d9b966f9895f53abd4301bfaff407fa09dea8ae7a924"};const et=(ot,it)=>{var st;return((st=s.TOKEN_BRIDGE_EMITTERS[(0,j.toChain)(ot)])==null?void 0:st.toLowerCase())===it.toLowerCase()};s.isTokenBridgeEmitter=et,s.NFT_BRIDGE_EMITTERS={Solana:"0def15a24423e1edd1a5ab16f557b9060303ddbab8c803d2ee48f4b78a1cfd6b",Ethereum:"0000000000000000000000006ffd7ede62328b3af38fcd61461bbfc52f5651fe",Bsc:"0000000000000000000000005a58505a96d1dbf8df91cb21b54419fc36e93fde",Polygon:"00000000000000000000000090bbd86a6fe93d3bc3ed6335935447e75fab7fcf",Avalanche:"000000000000000000000000f7b6737ca9c4e08ae573f75a97b73d7a813f5de5",Oasis:"00000000000000000000000004952d522ff217f40b5ef3cbf659eca7b952a6c1",Aurora:"0000000000000000000000006dcc0484472523ed9cdc017f711bcbf909789284",Fantom:"000000000000000000000000a9c7119abda80d4a4e0c06c8f4d8cf5893234535",Karura:"000000000000000000000000b91e3638f82a1facb28690b37e3aae45d2c33808",Acala:"000000000000000000000000b91e3638f82a1facb28690b37e3aae45d2c33808",Klaytn:"0000000000000000000000003c3c561757baa0b78c5c025cdeaa4ee24c1dffef",Celo:"000000000000000000000000a6a377d75ca5c9052c9a77ed1e865cc25bd97bf3",Moonbeam:"000000000000000000000000453cfbe096c0f8d763e8c5f24b441097d577bde2",Arbitrum:"0000000000000000000000003dd14d553cfd986eac8e3bddf629d82073e188c8",Optimism:"000000000000000000000000fe8cd454b4a1ca468b57d79c0cc77ef5b6f64585",Aptos:"0000000000000000000000000000000000000000000000000000000000000005",Base:"000000000000000000000000da3adc6621b2677bef9ad26598e6939cf0d92f88"};const tt=(ot,it)=>{var st;return((st=s.NFT_BRIDGE_EMITTERS[(0,j.toChain)(ot)])==null?void 0:st.toLowerCase())===it.toLowerCase()};s.isNFTBridgeEmitter=tt,s.CIRCLE_INTEGRATION_EMITTERS={Ethereum:"000000000000000000000000aada05bd399372f0b0463744c09113c137636f6a",Avalanche:"00000000000000000000000009fb06a271faff70a651047395aaeb6265265f13",Optimism:"0000000000000000000000002703483b1a5a7c577e8680de9df8be03c6f30e3c",Arbitrum:"0000000000000000000000002703483b1a5a7c577e8680de9df8be03c6f30e3c",Base:"00000000000000000000000003faBB06Fa052557143dC28eFCFc63FC12843f1D",Polygon:"0000000000000000000000000FF28217dCc90372345954563486528aa865cDd6"};const nt=(ot,it)=>{var st;return((st=s.CIRCLE_INTEGRATION_EMITTERS[(0,j.toChain)(ot)])==null?void 0:st.toLowerCase())===it.toLowerCase()};s.isCircleIntegrationEmitter=nt,s.CIRCLE_DOMAIN_TO_CHAIN_ID={0:(0,j.chainToChainId)("Ethereum"),1:(0,j.chainToChainId)("Avalanche"),2:(0,j.chainToChainId)("Optimism"),3:(0,j.chainToChainId)("Arbitrum"),6:(0,j.chainToChainId)("Base"),7:(0,j.chainToChainId)("Polygon")},s.ACCOUNTANT_CONTRACT_ADDRESS="wormhole14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9srrg465",s.NTT_ACCOUNTANT_CONTRACT_ADDRESS_MAINNET="wormhole1mc23vtzxh46e63vq22e8cnv23an06akvkqws04kghkrxrauzpgwq2hmwm7",s.NTT_ACCOUNTANT_CONTRACT_ADDRESS_TESTNET="wormhole169tvyx49zmjqhlv7mzwj8j2weprascc0jq3rdglw9pynldqx34nscvhc7k",s.GUARDIAN_SET_4=[{pubkey:"0x5893B5A76c3f739645648885bDCcC06cd70a3Cd3",name:"RockawayX"},{pubkey:"0xfF6CB952589BDE862c25Ef4392132fb9D4A42157",name:"Staked"},{pubkey:"0x114De8460193bdf3A2fCf81f86a09765F4762fD1",name:"Figment"},{pubkey:"0x107A0086b32d7A0977926A205131d8731D39cbEB",name:"ChainodeTech"},{pubkey:"0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2",name:"Inotel"},{pubkey:"0x11b39756C042441BE6D8650b69b54EbE715E2343",name:"HashQuark"},{pubkey:"0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd",name:"Chainlayer"},{pubkey:"0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20",name:"xLabs"},{pubkey:"0x74a3bf913953D695260D88BC1aA25A4eeE363ef0",name:"Forbole"},{pubkey:"0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e",name:"Staking Fund"},{pubkey:"0xAF45Ced136b9D9e24903464AE889F5C8a723FC14",name:"MoonletWallet"},{pubkey:"0xf93124b7c738843CBB89E864c862c38cddCccF95",name:"P2P Validator"},{pubkey:"0xD2CC37A4dc036a8D232b48f62cDD4731412f4890",name:"01Node"},{pubkey:"0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811",name:"MCF"},{pubkey:"0x71AA1BE1D36CaFE3867910F99C09e347899C19C3",name:"Everstake"},{pubkey:"0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf",name:"Chorus One"},{pubkey:"0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8",name:"Syncnode"},{pubkey:"0x5E1487F35515d02A92753504a8D75471b9f49EdB",name:"Triton"},{pubkey:"0x6FbEBc898F403E4773E95feB15E80C9A99c8348d",name:"Staking Facilities"}],s.STANDBY_GUARDIANS=[{pubkey:"0x68c16a92903c4c74ffddc730582ba53d967d3dac",name:"Google Cloud"}],s.TVL_TOKEN_DENYLIST={[(0,j.chainToChainId)("Fantom")]:["0x5b2af7fd27e2ea14945c82dd254c79d3ed34685e"]};const rt=(ot,it)=>{var st;return((st=s.TVL_TOKEN_DENYLIST[ot])==null?void 0:st.includes(it.toLowerCase()))??!1};s.isTokenDenylisted=rt})(consts);var explorer={},safeBuffer={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(s,j){var $=buffer,_e=$.Buffer;function et(nt,rt){for(var ot in nt)rt[ot]=nt[ot]}_e.from&&_e.alloc&&_e.allocUnsafe&&_e.allocUnsafeSlow?s.exports=$:(et($,j),j.Buffer=tt);function tt(nt,rt,ot){return _e(nt,rt,ot)}tt.prototype=Object.create(_e.prototype),et(_e,tt),tt.from=function(nt,rt,ot){if(typeof nt=="number")throw new TypeError("Argument must not be a number");return _e(nt,rt,ot)},tt.alloc=function(nt,rt,ot){if(typeof nt!="number")throw new TypeError("Argument must be a number");var it=_e(nt);return rt!==void 0?typeof ot=="string"?it.fill(rt,ot):it.fill(rt):it.fill(0),it},tt.allocUnsafe=function(nt){if(typeof nt!="number")throw new TypeError("Argument must be a number");return _e(nt)},tt.allocUnsafeSlow=function(nt){if(typeof nt!="number")throw new TypeError("Argument must be a number");return $.SlowBuffer(nt)}})(safeBuffer,safeBuffer.exports);var safeBufferExports=safeBuffer.exports,_Buffer=safeBufferExports.Buffer;function base(s){if(s.length>=255)throw new TypeError("Alphabet too long");for(var j=new Uint8Array(256),$=0;$>>0,ft=new Uint8Array(gt);ht!==yt;){for(var xt=lt[ht],Mt=0,jt=gt-1;(xt!==0||Mt>>0,ft[jt]=xt%nt>>>0,xt=xt/nt>>>0;if(xt!==0)throw new Error("Non-zero carry");pt=Mt,ht++}for(var wt=gt-pt;wt!==gt&&ft[wt]===0;)wt++;for(var $t=rt.repeat(dt);wt>>0,gt=new Uint8Array(yt);lt[dt];){var ft=j[lt.charCodeAt(dt)];if(ft===255)return;for(var xt=0,Mt=yt-1;(ft!==0||xt>>0,gt[Mt]=ft%256>>>0,ft=ft/256>>>0;if(ft!==0)throw new Error("Non-zero carry");ht=xt,dt++}for(var jt=yt-ht;jt!==yt&>[jt]===0;)jt++;var wt=_Buffer.allocUnsafe(pt+(yt-jt));wt.fill(0,0,pt);for(var $t=pt;jt!==yt;)wt[$t++]=gt[jt++];return wt}function ct(lt){var dt=at(lt);if(dt)return dt;throw new Error("Non-base"+nt+" character")}return{encode:st,decodeUnsafe:at,decode:ct}}var src=base,basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",bs58=basex(ALPHABET$1);const base58=getDefaultExportFromCjs$1(bs58);var define_process_env_default={},__importDefault$4=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(explorer,"__esModule",{value:!0});explorer.getExplorerTxHash=explorer.explorerVaa=explorer.explorerTx=explorer.explorerBlock=void 0;const sdk_base_1$e=require$$0$7,bs58_1$2=__importDefault$4(bs58),buffer_1$2=buffer,explorerBlock=(s,j,$)=>s==="Mainnet"?j===(0,sdk_base_1$e.chainToChainId)("Solana")?`https://solana.fm/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Ethereum")?`https://etherscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Terra")?`https://finder.terra.money/columbus-5/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Bsc")?`https://bscscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Polygon")?`https://polygonscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Avalanche")?`https://snowtrace.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Oasis")?`https://explorer.emerald.oasis.dev/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Algorand")?`https://app.dappflow.org/explorer/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Fantom")?`https://ftmscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Karura")?`https://blockscout.karura.network/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Acala")?`https://blockscout.acala.network/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Klaytn")?`https://scope.klaytn.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Celo")?`https://explorer.celo.org/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Near")?`https://nearblocks.io/blocks/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Moonbeam")?`https://moonscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Terra2")?`https://finder.terra.money/phoenix-1/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Injective")?`https://explorer.injective.network/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sui")?`https://suiexplorer.com/checkpoint/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Aptos")?`https://explorer.aptoslabs.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Arbitrum")?`https://arbiscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Optimism")?`https://optimistic.etherscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xpla")?`https://explorer.xpla.io/mainnet/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Base")?`https://basescan.org/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sei")?`https://www.seiscan.app/pacific-1/blocks/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Scroll")?`https://scrollscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Mantle")?`https://explorer.mantle.xyz/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Blast")?`https://blastscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xlayer")?`https://www.oklink.com/xlayer/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Linea")?`https://lineascan.build/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Berachain")?`https://beratrail.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Snaxchain")?`https://snaxchain.io/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Wormchain")?`https://bigdipper.live/wormhole/blocks/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Worldchain")?`https://worldscan.org/block/${$}`:"":j===(0,sdk_base_1$e.chainToChainId)("Solana")?`https://explorer.solana.com/${$}?cluster=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Ethereum")?`https://sepolia.etherscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Bsc")?`https://testnet.bscscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Polygon")?`https://mumbai.polygonscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Avalanche")?`https://testnet.snowtrace.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Oasis")?`https://testnet.oasisscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Algorand")?`https://app.dappflow.org/explorer/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Fantom")?`https://testnet.ftmscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Acala")?`https://blockscout.mandala.aca-staging.network/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Klaytn")?`https://baobab.klaytnscope.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Celo")?`https://alfajores.celoscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Moonbeam")?`https://moonbase.moonscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sui")?`https://suiexplorer.com/checkpoint/${$}?network=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Aptos")?`https://explorer.aptoslabs.com/block/${$}?network=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Arbitrum")?`https://sepolia.arbiscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Optimism")?`https://sepolia-optimism.etherscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xpla")?`https://explorer.xpla.io/testnet/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Base")?`https://goerli.basescan.org/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sei")?`https://www.seiscan.app/atlantic-2/blocks/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Scroll")?`https://sepolia.scrollscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Mantle")?`https://explorer.sepolia.mantle.xyz/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Blast")?`https://testnet.blastscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xlayer")?`https://www.oklink.com/xlayer-test/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Linea")?`https://sepolia.lineascan.build/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Berachain")?`https://bartio.beratrail.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Snaxchain")?`https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Unichain")?`https://unichain-sepolia.blockscout.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Worldchain")?`https://worldchain-sepolia.explorer.alchemy.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("MonadDevnet")?`${define_process_env_default.MONAD_DEVNET_EXPLORER_URL}/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Ink")?`https://explorer-sepolia.inkonchain.com/block/${$}`:"";explorer.explorerBlock=explorerBlock;const explorerTx=(s,j,$)=>s==="Mainnet"?j===(0,sdk_base_1$e.chainToChainId)("Solana")?`https://solana.fm/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Ethereum")?`https://etherscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Terra")?`https://finder.terra.money/columbus-5/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Bsc")?`https://bscscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Polygon")?`https://polygonscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Avalanche")?`https://snowtrace.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Oasis")?`https://explorer.emerald.oasis.dev/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Algorand")?`https://app.dappflow.org/explorer/transaction/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Fantom")?`https://ftmscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Karura")?`https://blockscout.karura.network/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Acala")?`https://blockscout.acala.network/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Klaytn")?`https://scope.klaytn.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Celo")?`https://explorer.celo.org/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Near")?`https://explorer.near.org/transactions/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Moonbeam")?`https://moonscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Terra2")?`https://finder.terra.money/phoenix-1/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Injective")?`https://explorer.injective.network/transaction/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sui")?`https://suiexplorer.com/txblock/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Aptos")?`https://explorer.aptoslabs.com/txn/${$}?network=mainnet`:j===(0,sdk_base_1$e.chainToChainId)("Arbitrum")?`https://arbiscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Optimism")?`https://optimistic.etherscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xpla")?`https://explorer.xpla.io/mainnet/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Base")?`https://basescan.org/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sei")?`https://www.seiscan.app/pacific-1/txs/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Scroll")?`https://scrollscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Mantle")?`https://explorer.mantle.xyz/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Blast")?`https://blastscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xlayer")?`https://www.oklink.com/xlayer/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Linea")?`https://lineascan.build/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Berachain")?`https://bartio.beratrail.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Snaxchain")?`https://snaxchain.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Wormchain")?`https://bigdipper.live/wormhole/transactions/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Worldchain")?`https://worldscan.org/tx/${$}`:"":j===(0,sdk_base_1$e.chainToChainId)("Solana")?`https://solscan.io/txs/${$}?cluster=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Ethereum")?`https://sepolia.etherscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Bsc")?`https://testnet.bscscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Polygon")?`https://mumbai.polygonscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Avalanche")?`https://testnet.snowtrace.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Oasis")?`https://testnet.oasisscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Algorand")?`https://app.dappflow.org/explorer/transaction/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Fantom")?`https://testnet.ftmscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Acala")?`https://blockscout.mandala.aca-staging.network/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Klaytn")?`https://baobab.klaytnscope.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Celo")?`https://alfajores.celoscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Moonbeam")?`https://moonbase.moonscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sui")?`https://suiexplorer.com/txblock/${$}?network=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Aptos")?`https://explorer.aptoslabs.com/txn/${$}?network=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Arbitrum")?`https://sepolia.arbiscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Optimism")?`https://sepolia-optimism.etherscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xpla")?`https://explorer.xpla.io/testnet/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Base")?`https://goerli.basescan.org/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sei")?`https://www.seiscan.app/atlantic-2/txs/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Scroll")?`https://sepolia.scrollscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Mantle")?`https://explorer.sepolia.mantle.xyz/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Blast")?`https://testnet.blastscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xlayer")?`https://www.oklink.com/xlayer-test/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Linea")?`https://sepolia.lineascan.build/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Berachain")?`https://bartio.beratrail.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Snaxchain")?`https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Unichain")?`https://unichain-sepolia.blockscout.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Worldchain")?`https://worldchain-sepolia.explorer.alchemy.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("MonadDevnet")?`${define_process_env_default.MONAD_DEVNET_EXPLORER_URL}/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Ink")?`https://explorer-sepolia.inkonchain.com/tx/${$}`:"";explorer.explorerTx=explorerTx;const explorerVaa=(s,j)=>s==="Mainnet"?`https://wormholescan.io/#/tx/${j}`:`https://wormholescan.io/#/tx/${j}?network=TESTNET`;explorer.explorerVaa=explorerVaa;const getExplorerTxHash=(s,j,$)=>{let _e="";const et=(0,sdk_base_1$e.chainToPlatform)((0,sdk_base_1$e.chainIdToChain)(j));if(et==="Cosmwasm")_e=$.slice(2);else if(et==="Sui"||et==="Solana"){const tt=buffer_1$2.Buffer.from($.slice(2),"hex");_e=bs58_1$2.default.encode(tt)}else _e=$;return _e};explorer.getExplorerTxHash=getExplorerTxHash;var solana={},sha512={},_md={},_assert={};Object.defineProperty(_assert,"__esModule",{value:!0});_assert.output=_assert.exists=_assert.hash=_assert.bytes=_assert.bool=_assert.number=_assert.isBytes=void 0;function number$2(s){if(!Number.isSafeInteger(s)||s<0)throw new Error(`positive integer expected, not ${s}`)}_assert.number=number$2;function bool(s){if(typeof s!="boolean")throw new Error(`boolean expected, not ${s}`)}_assert.bool=bool;function isBytes$4(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}_assert.isBytes=isBytes$4;function bytes$1(s,...j){if(!isBytes$4(s))throw new Error("Uint8Array expected");if(j.length>0&&!j.includes(s.length))throw new Error(`Uint8Array expected of length ${j}, not of length=${s.length}`)}_assert.bytes=bytes$1;function hash$1(s){if(typeof s!="function"||typeof s.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$2(s.outputLen),number$2(s.blockLen)}_assert.hash=hash$1;function exists$1(s,j=!0){if(s.destroyed)throw new Error("Hash instance has been destroyed");if(j&&s.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists$1;function output$1(s,j){bytes$1(s);const $=j.outputLen;if(s.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}_assert.output=output$1;const assert$2={number:number$2,bool,bytes:bytes$1,hash:hash$1,exists:exists$1,output:output$1};_assert.default=assert$2;var utils$8={},crypto$2={};Object.defineProperty(crypto$2,"__esModule",{value:!0});crypto$2.crypto=void 0;crypto$2.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;(function(s){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(s,"__esModule",{value:!0}),s.randomBytes=s.wrapXOFConstructorWithOpts=s.wrapConstructorWithOpts=s.wrapConstructor=s.checkOpts=s.Hash=s.concatBytes=s.toBytes=s.utf8ToBytes=s.asyncLoop=s.nextTick=s.hexToBytes=s.bytesToHex=s.byteSwap32=s.byteSwapIfBE=s.byteSwap=s.isLE=s.rotl=s.rotr=s.createView=s.u32=s.u8=s.isBytes=void 0;const j=crypto$2,$=_assert;function _e(Ft){return Ft instanceof Uint8Array||Ft!=null&&typeof Ft=="object"&&Ft.constructor.name==="Uint8Array"}s.isBytes=_e;const et=Ft=>new Uint8Array(Ft.buffer,Ft.byteOffset,Ft.byteLength);s.u8=et;const tt=Ft=>new Uint32Array(Ft.buffer,Ft.byteOffset,Math.floor(Ft.byteLength/4));s.u32=tt;const nt=Ft=>new DataView(Ft.buffer,Ft.byteOffset,Ft.byteLength);s.createView=nt;const rt=(Ft,Nt)=>Ft<<32-Nt|Ft>>>Nt;s.rotr=rt;const ot=(Ft,Nt)=>Ft<>>32-Nt>>>0;s.rotl=ot,s.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const it=Ft=>Ft<<24&4278190080|Ft<<8&16711680|Ft>>>8&65280|Ft>>>24&255;s.byteSwap=it,s.byteSwapIfBE=s.isLE?Ft=>Ft:Ft=>(0,s.byteSwap)(Ft);function st(Ft){for(let Nt=0;NtNt.toString(16).padStart(2,"0"));function ct(Ft){(0,$.bytes)(Ft);let Nt="";for(let mt=0;mt=lt._0&&Ft<=lt._9)return Ft-lt._0;if(Ft>=lt._A&&Ft<=lt._F)return Ft-(lt._A-10);if(Ft>=lt._a&&Ft<=lt._f)return Ft-(lt._a-10)}function pt(Ft){if(typeof Ft!="string")throw new Error("hex string expected, got "+typeof Ft);const Nt=Ft.length,mt=Nt/2;if(Nt%2)throw new Error("padded hex string expected, got unpadded hex of length "+Nt);const bt=new Uint8Array(mt);for(let St=0,vt=0;St{};s.nextTick=ht;async function yt(Ft,Nt,mt){let bt=Date.now();for(let St=0;St=0&&vtFt().update(ft(bt)).digest(),mt=Ft();return Nt.outputLen=mt.outputLen,Nt.blockLen=mt.blockLen,Nt.create=()=>Ft(),Nt}s.wrapConstructor=$t;function zt(Ft){const Nt=(bt,St)=>Ft(St).update(ft(bt)).digest(),mt=Ft({});return Nt.outputLen=mt.outputLen,Nt.blockLen=mt.blockLen,Nt.create=bt=>Ft(bt),Nt}s.wrapConstructorWithOpts=zt;function Ot(Ft){const Nt=(bt,St)=>Ft(St).update(ft(bt)).digest(),mt=Ft({});return Nt.outputLen=mt.outputLen,Nt.blockLen=mt.blockLen,Nt.create=bt=>Ft(bt),Nt}s.wrapXOFConstructorWithOpts=Ot;function Pt(Ft=32){if(j.crypto&&typeof j.crypto.getRandomValues=="function")return j.crypto.getRandomValues(new Uint8Array(Ft));throw new Error("crypto.getRandomValues must be defined")}s.randomBytes=Pt})(utils$8);Object.defineProperty(_md,"__esModule",{value:!0});_md.HashMD=_md.Maj=_md.Chi=void 0;const _assert_js_1=_assert,utils_js_1$f=utils$8;function setBigUint64$1(s,j,$,_e){if(typeof s.setBigUint64=="function")return s.setBigUint64(j,$,_e);const et=BigInt(32),tt=BigInt(4294967295),nt=Number($>>et&tt),rt=Number($&tt),ot=_e?4:0,it=_e?0:4;s.setUint32(j+ot,nt,_e),s.setUint32(j+it,rt,_e)}const Chi$1=(s,j,$)=>s&j^~s&$;_md.Chi=Chi$1;const Maj$1=(s,j,$)=>s&j^s&$^j&$;_md.Maj=Maj$1;let HashMD$1=class extends utils_js_1$f.Hash{constructor(j,$,_e,et){super(),this.blockLen=j,this.outputLen=$,this.padOffset=_e,this.isLE=et,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(j),this.view=(0,utils_js_1$f.createView)(this.buffer)}update(j){(0,_assert_js_1.exists)(this);const{view:$,buffer:_e,blockLen:et}=this;j=(0,utils_js_1$f.toBytes)(j);const tt=j.length;for(let nt=0;ntet-nt&&(this.process(_e,0),nt=0);for(let at=nt;atst.length)throw new Error("_sha2: outputLen bigger than state");for(let at=0;at>_32n$1&U32_MASK64$1)}:{h:Number(s>>_32n$1&U32_MASK64$1)|0,l:Number(s&U32_MASK64$1)|0}}_u64.fromBig=fromBig$1;function split$1(s,j=!1){let $=new Uint32Array(s.length),_e=new Uint32Array(s.length);for(let et=0;etBigInt(s>>>0)<<_32n$1|BigInt(j>>>0);_u64.toBig=toBig;const shrSH=(s,j,$)=>s>>>$;_u64.shrSH=shrSH;const shrSL=(s,j,$)=>s<<32-$|j>>>$;_u64.shrSL=shrSL;const rotrSH=(s,j,$)=>s>>>$|j<<32-$;_u64.rotrSH=rotrSH;const rotrSL=(s,j,$)=>s<<32-$|j>>>$;_u64.rotrSL=rotrSL;const rotrBH=(s,j,$)=>s<<64-$|j>>>$-32;_u64.rotrBH=rotrBH;const rotrBL=(s,j,$)=>s>>>$-32|j<<64-$;_u64.rotrBL=rotrBL;const rotr32H=(s,j)=>j;_u64.rotr32H=rotr32H;const rotr32L=(s,j)=>s;_u64.rotr32L=rotr32L;const rotlSH$1=(s,j,$)=>s<<$|j>>>32-$;_u64.rotlSH=rotlSH$1;const rotlSL$1=(s,j,$)=>j<<$|s>>>32-$;_u64.rotlSL=rotlSL$1;const rotlBH$1=(s,j,$)=>j<<$-32|s>>>64-$;_u64.rotlBH=rotlBH$1;const rotlBL$1=(s,j,$)=>s<<$-32|j>>>64-$;_u64.rotlBL=rotlBL$1;function add(s,j,$,_e){const et=(j>>>0)+(_e>>>0);return{h:s+$+(et/2**32|0)|0,l:et|0}}_u64.add=add;const add3L=(s,j,$)=>(s>>>0)+(j>>>0)+($>>>0);_u64.add3L=add3L;const add3H=(s,j,$,_e)=>j+$+_e+(s/2**32|0)|0;_u64.add3H=add3H;const add4L=(s,j,$,_e)=>(s>>>0)+(j>>>0)+($>>>0)+(_e>>>0);_u64.add4L=add4L;const add4H=(s,j,$,_e,et)=>j+$+_e+et+(s/2**32|0)|0;_u64.add4H=add4H;const add5L=(s,j,$,_e,et)=>(s>>>0)+(j>>>0)+($>>>0)+(_e>>>0)+(et>>>0);_u64.add5L=add5L;const add5H=(s,j,$,_e,et,tt)=>j+$+_e+et+tt+(s/2**32|0)|0;_u64.add5H=add5H;const u64$1={fromBig:fromBig$1,split:split$1,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH:rotlSH$1,rotlSL:rotlSL$1,rotlBH:rotlBH$1,rotlBL:rotlBL$1,add,add3L,add3H,add4L,add4H,add5H,add5L};_u64.default=u64$1;Object.defineProperty(sha512,"__esModule",{value:!0});sha512.sha384=sha512.sha512_256=sha512.sha512_224=sha512_1=sha512.sha512=sha512.SHA512=void 0;const _md_js_1=_md,_u64_js_1=_u64,utils_js_1$e=utils$8,[SHA512_Kh,SHA512_Kl]=_u64_js_1.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(s=>BigInt(s))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends _md_js_1.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:j,Al:$,Bh:_e,Bl:et,Ch:tt,Cl:nt,Dh:rt,Dl:ot,Eh:it,El:st,Fh:at,Fl:ct,Gh:lt,Gl:dt,Hh:pt,Hl:ht}=this;return[j,$,_e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,pt,ht]}set(j,$,_e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,pt,ht){this.Ah=j|0,this.Al=$|0,this.Bh=_e|0,this.Bl=et|0,this.Ch=tt|0,this.Cl=nt|0,this.Dh=rt|0,this.Dl=ot|0,this.Eh=it|0,this.El=st|0,this.Fh=at|0,this.Fl=ct|0,this.Gh=lt|0,this.Gl=dt|0,this.Hh=pt|0,this.Hl=ht|0}process(j,$){for(let ft=0;ft<16;ft++,$+=4)SHA512_W_H[ft]=j.getUint32($),SHA512_W_L[ft]=j.getUint32($+=4);for(let ft=16;ft<80;ft++){const xt=SHA512_W_H[ft-15]|0,Mt=SHA512_W_L[ft-15]|0,jt=_u64_js_1.default.rotrSH(xt,Mt,1)^_u64_js_1.default.rotrSH(xt,Mt,8)^_u64_js_1.default.shrSH(xt,Mt,7),wt=_u64_js_1.default.rotrSL(xt,Mt,1)^_u64_js_1.default.rotrSL(xt,Mt,8)^_u64_js_1.default.shrSL(xt,Mt,7),$t=SHA512_W_H[ft-2]|0,zt=SHA512_W_L[ft-2]|0,Ot=_u64_js_1.default.rotrSH($t,zt,19)^_u64_js_1.default.rotrBH($t,zt,61)^_u64_js_1.default.shrSH($t,zt,6),Pt=_u64_js_1.default.rotrSL($t,zt,19)^_u64_js_1.default.rotrBL($t,zt,61)^_u64_js_1.default.shrSL($t,zt,6),Ft=_u64_js_1.default.add4L(wt,Pt,SHA512_W_L[ft-7],SHA512_W_L[ft-16]),Nt=_u64_js_1.default.add4H(Ft,jt,Ot,SHA512_W_H[ft-7],SHA512_W_H[ft-16]);SHA512_W_H[ft]=Nt|0,SHA512_W_L[ft]=Ft|0}let{Ah:_e,Al:et,Bh:tt,Bl:nt,Ch:rt,Cl:ot,Dh:it,Dl:st,Eh:at,El:ct,Fh:lt,Fl:dt,Gh:pt,Gl:ht,Hh:yt,Hl:gt}=this;for(let ft=0;ft<80;ft++){const xt=_u64_js_1.default.rotrSH(at,ct,14)^_u64_js_1.default.rotrSH(at,ct,18)^_u64_js_1.default.rotrBH(at,ct,41),Mt=_u64_js_1.default.rotrSL(at,ct,14)^_u64_js_1.default.rotrSL(at,ct,18)^_u64_js_1.default.rotrBL(at,ct,41),jt=at<^~at&pt,wt=ct&dt^~ct&ht,$t=_u64_js_1.default.add5L(gt,Mt,wt,SHA512_Kl[ft],SHA512_W_L[ft]),zt=_u64_js_1.default.add5H($t,yt,xt,jt,SHA512_Kh[ft],SHA512_W_H[ft]),Ot=$t|0,Pt=_u64_js_1.default.rotrSH(_e,et,28)^_u64_js_1.default.rotrBH(_e,et,34)^_u64_js_1.default.rotrBH(_e,et,39),Ft=_u64_js_1.default.rotrSL(_e,et,28)^_u64_js_1.default.rotrBL(_e,et,34)^_u64_js_1.default.rotrBL(_e,et,39),Nt=_e&tt^_e&rt^tt&rt,mt=et&nt^et&ot^nt&ot;yt=pt|0,gt=ht|0,pt=lt|0,ht=dt|0,lt=at|0,dt=ct|0,{h:at,l:ct}=_u64_js_1.default.add(it|0,st|0,zt|0,Ot|0),it=rt|0,st=ot|0,rt=tt|0,ot=nt|0,tt=_e|0,nt=et|0;const bt=_u64_js_1.default.add3L(Ot,Ft,mt);_e=_u64_js_1.default.add3H(bt,zt,Pt,Nt),et=bt|0}({h:_e,l:et}=_u64_js_1.default.add(this.Ah|0,this.Al|0,_e|0,et|0)),{h:tt,l:nt}=_u64_js_1.default.add(this.Bh|0,this.Bl|0,tt|0,nt|0),{h:rt,l:ot}=_u64_js_1.default.add(this.Ch|0,this.Cl|0,rt|0,ot|0),{h:it,l:st}=_u64_js_1.default.add(this.Dh|0,this.Dl|0,it|0,st|0),{h:at,l:ct}=_u64_js_1.default.add(this.Eh|0,this.El|0,at|0,ct|0),{h:lt,l:dt}=_u64_js_1.default.add(this.Fh|0,this.Fl|0,lt|0,dt|0),{h:pt,l:ht}=_u64_js_1.default.add(this.Gh|0,this.Gl|0,pt|0,ht|0),{h:yt,l:gt}=_u64_js_1.default.add(this.Hh|0,this.Hl|0,yt|0,gt|0),this.set(_e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,pt,ht,yt,gt)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}sha512.SHA512=SHA512;class SHA512_224 extends SHA512{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class SHA512_256 extends SHA512{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class SHA384 extends SHA512{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}var sha512_1=sha512.sha512=(0,utils_js_1$e.wrapConstructor)(()=>new SHA512);sha512.sha512_224=(0,utils_js_1$e.wrapConstructor)(()=>new SHA512_224);sha512.sha512_256=(0,utils_js_1$e.wrapConstructor)(()=>new SHA512_256);sha512.sha384=(0,utils_js_1$e.wrapConstructor)(()=>new SHA384);const crypto$1=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function number$1(s){if(!Number.isSafeInteger(s)||s<0)throw new Error(`positive integer expected, not ${s}`)}function isBytes$3(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}function bytes(s,...j){if(!isBytes$3(s))throw new Error("Uint8Array expected");if(j.length>0&&!j.includes(s.length))throw new Error(`Uint8Array expected of length ${j}, not of length=${s.length}`)}function hash(s){if(typeof s!="function"||typeof s.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(s.outputLen),number$1(s.blockLen)}function exists(s,j=!0){if(s.destroyed)throw new Error("Hash instance has been destroyed");if(j&&s.finished)throw new Error("Hash#digest() has already been called")}function output(s,j){bytes(s);const $=j.outputLen;if(s.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function isBytes$2(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}const u8$1=s=>new Uint8Array(s.buffer,s.byteOffset,s.byteLength),u32$1=s=>new Uint32Array(s.buffer,s.byteOffset,Math.floor(s.byteLength/4)),createView=s=>new DataView(s.buffer,s.byteOffset,s.byteLength),rotr=(s,j)=>s<<32-j|s>>>j,rotl=(s,j)=>s<>>32-j>>>0,isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,byteSwap=s=>s<<24&4278190080|s<<8&16711680|s>>>8&65280|s>>>24&255,byteSwapIfBE=isLE?s=>s:s=>byteSwap(s);function byteSwap32(s){for(let j=0;jj.toString(16).padStart(2,"0"));function bytesToHex$2(s){bytes(s);let j="";for(let $=0;$=asciis$2._0&&s<=asciis$2._9)return s-asciis$2._0;if(s>=asciis$2._A&&s<=asciis$2._F)return s-(asciis$2._A-10);if(s>=asciis$2._a&&s<=asciis$2._f)return s-(asciis$2._a-10)}function hexToBytes$2(s){if(typeof s!="string")throw new Error("hex string expected, got "+typeof s);const j=s.length,$=j/2;if(j%2)throw new Error("padded hex string expected, got unpadded hex of length "+j);const _e=new Uint8Array($);for(let et=0,tt=0;et<$;et++,tt+=2){const nt=asciiToBase16$2(s.charCodeAt(tt)),rt=asciiToBase16$2(s.charCodeAt(tt+1));if(nt===void 0||rt===void 0){const ot=s[tt]+s[tt+1];throw new Error('hex string expected, got non-hex character "'+ot+'" at index '+tt)}_e[et]=nt*16+rt}return _e}const nextTick=async()=>{};async function asyncLoop(s,j,$){let _e=Date.now();for(let et=0;et=0&&tts().update(toBytes(_e)).digest(),$=s();return j.outputLen=$.outputLen,j.blockLen=$.blockLen,j.create=()=>s(),j}function wrapConstructorWithOpts(s){const j=(_e,et)=>s(et).update(toBytes(_e)).digest(),$=s({});return j.outputLen=$.outputLen,j.blockLen=$.blockLen,j.create=_e=>s(_e),j}function wrapXOFConstructorWithOpts(s){const j=(_e,et)=>s(et).update(toBytes(_e)).digest(),$=s({});return j.outputLen=$.outputLen,j.blockLen=$.blockLen,j.create=_e=>s(_e),j}function randomBytes(s=32){if(crypto$1&&typeof crypto$1.getRandomValues=="function")return crypto$1.getRandomValues(new Uint8Array(s));throw new Error("crypto.getRandomValues must be defined")}const utils$7=Object.freeze(Object.defineProperty({__proto__:null,Hash,asyncLoop,byteSwap,byteSwap32,byteSwapIfBE,bytesToHex:bytesToHex$2,checkOpts,concatBytes:concatBytes$2,createView,hexToBytes:hexToBytes$2,isBytes:isBytes$2,isLE,nextTick,randomBytes,rotl,rotr,toBytes,u32:u32$1,u8:u8$1,utf8ToBytes:utf8ToBytes$2,wrapConstructor,wrapConstructorWithOpts,wrapXOFConstructorWithOpts},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$a=BigInt(0),_1n$c=BigInt(1),_2n$8=BigInt(2);function isBytes$1(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}function abytes$1(s){if(!isBytes$1(s))throw new Error("Uint8Array expected")}function abool(s,j){if(typeof j!="boolean")throw new Error(`${s} must be valid boolean, got "${j}".`)}const hexes$1=Array.from({length:256},(s,j)=>j.toString(16).padStart(2,"0"));function bytesToHex$1(s){abytes$1(s);let j="";for(let $=0;$=asciis$1._0&&s<=asciis$1._9)return s-asciis$1._0;if(s>=asciis$1._A&&s<=asciis$1._F)return s-(asciis$1._A-10);if(s>=asciis$1._a&&s<=asciis$1._f)return s-(asciis$1._a-10)}function hexToBytes$1(s){if(typeof s!="string")throw new Error("hex string expected, got "+typeof s);const j=s.length,$=j/2;if(j%2)throw new Error("padded hex string expected, got unpadded hex of length "+j);const _e=new Uint8Array($);for(let et=0,tt=0;et<$;et++,tt+=2){const nt=asciiToBase16$1(s.charCodeAt(tt)),rt=asciiToBase16$1(s.charCodeAt(tt+1));if(nt===void 0||rt===void 0){const ot=s[tt]+s[tt+1];throw new Error('hex string expected, got non-hex character "'+ot+'" at index '+tt)}_e[et]=nt*16+rt}return _e}function bytesToNumberBE$1(s){return hexToNumber$1(bytesToHex$1(s))}function bytesToNumberLE$1(s){return abytes$1(s),hexToNumber$1(bytesToHex$1(Uint8Array.from(s).reverse()))}function numberToBytesBE$1(s,j){return hexToBytes$1(s.toString(16).padStart(j*2,"0"))}function numberToBytesLE$1(s,j){return numberToBytesBE$1(s,j).reverse()}function numberToVarBytesBE$1(s){return hexToBytes$1(numberToHexUnpadded$1(s))}function ensureBytes$1(s,j,$){let _e;if(typeof j=="string")try{_e=hexToBytes$1(j)}catch(tt){throw new Error(`${s} must be valid hex string, got "${j}". Cause: ${tt}`)}else if(isBytes$1(j))_e=Uint8Array.from(j);else throw new Error(`${s} must be hex string or Uint8Array`);const et=_e.length;if(typeof $=="number"&&et!==$)throw new Error(`${s} expected ${$} bytes, got ${et}`);return _e}function concatBytes$1(...s){let j=0;for(let _e=0;_etypeof s=="bigint"&&_0n$a<=s;function inRange$1(s,j,$){return isPosBig(s)&&isPosBig(j)&&isPosBig($)&&j<=s&&s<$}function aInRange(s,j,$,_e){if(!inRange$1(j,$,_e))throw new Error(`expected valid ${s}: ${$} <= n < ${_e}, got ${typeof j} ${j}`)}function bitLen$1(s){let j;for(j=0;s>_0n$a;s>>=_1n$c,j+=1);return j}function bitGet$1(s,j){return s>>BigInt(j)&_1n$c}function bitSet$1(s,j,$){return s|($?_1n$c:_0n$a)<(_2n$8<new Uint8Array(s),u8fr$1=s=>Uint8Array.from(s);function createHmacDrbg$1(s,j,$){if(typeof s!="number"||s<2)throw new Error("hashLen must be a number");if(typeof j!="number"||j<2)throw new Error("qByteLen must be a number");if(typeof $!="function")throw new Error("hmacFn must be a function");let _e=u8n$1(s),et=u8n$1(s),tt=0;const nt=()=>{_e.fill(1),et.fill(0),tt=0},rt=(...at)=>$(et,_e,...at),ot=(at=u8n$1())=>{et=rt(u8fr$1([0]),at),_e=rt(),at.length!==0&&(et=rt(u8fr$1([1]),at),_e=rt())},it=()=>{if(tt++>=1e3)throw new Error("drbg: tried 1000 values");let at=0;const ct=[];for(;at{nt(),ot(at);let lt;for(;!(lt=ct(it()));)ot();return nt(),lt}}const validatorFns$1={bigint:s=>typeof s=="bigint",function:s=>typeof s=="function",boolean:s=>typeof s=="boolean",string:s=>typeof s=="string",stringOrUint8Array:s=>typeof s=="string"||isBytes$1(s),isSafeInteger:s=>Number.isSafeInteger(s),array:s=>Array.isArray(s),field:(s,j)=>j.Fp.isValid(s),hash:s=>typeof s=="function"&&Number.isSafeInteger(s.outputLen)};function validateObject$1(s,j,$={}){const _e=(et,tt,nt)=>{const rt=validatorFns$1[tt];if(typeof rt!="function")throw new Error(`Invalid validator "${tt}", expected function`);const ot=s[et];if(!(nt&&ot===void 0)&&!rt(ot,s))throw new Error(`Invalid param ${String(et)}=${ot} (${typeof ot}), expected ${tt}`)};for(const[et,tt]of Object.entries(j))_e(et,tt,!1);for(const[et,tt]of Object.entries($))_e(et,tt,!0);return s}const notImplemented=()=>{throw new Error("not implemented")};function memoized(s){const j=new WeakMap;return($,..._e)=>{const et=j.get($);if(et!==void 0)return et;const tt=s($,..._e);return j.set($,tt),tt}}const ut$1=Object.freeze(Object.defineProperty({__proto__:null,aInRange,abool,abytes:abytes$1,bitGet:bitGet$1,bitLen:bitLen$1,bitMask:bitMask$1,bitSet:bitSet$1,bytesToHex:bytesToHex$1,bytesToNumberBE:bytesToNumberBE$1,bytesToNumberLE:bytesToNumberLE$1,concatBytes:concatBytes$1,createHmacDrbg:createHmacDrbg$1,ensureBytes:ensureBytes$1,equalBytes:equalBytes$1,hexToBytes:hexToBytes$1,hexToNumber:hexToNumber$1,inRange:inRange$1,isBytes:isBytes$1,memoized,notImplemented,numberToBytesBE:numberToBytesBE$1,numberToBytesLE:numberToBytesLE$1,numberToHexUnpadded:numberToHexUnpadded$1,numberToVarBytesBE:numberToVarBytesBE$1,utf8ToBytes:utf8ToBytes$1,validateObject:validateObject$1},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$9=BigInt(0),_1n$b=BigInt(1),_2n$7=BigInt(2),_3n$2=BigInt(3),_4n$1=BigInt(4),_5n$2=BigInt(5),_8n$4=BigInt(8);BigInt(9);BigInt(16);function mod$1(s,j){const $=s%j;return $>=_0n$9?$:j+$}function pow$1(s,j,$){if($<=_0n$9||j<_0n$9)throw new Error("Expected power/modulo > 0");if($===_1n$b)return _0n$9;let _e=_1n$b;for(;j>_0n$9;)j&_1n$b&&(_e=_e*s%$),s=s*s%$,j>>=_1n$b;return _e}function pow2$1(s,j,$){let _e=s;for(;j-- >_0n$9;)_e*=_e,_e%=$;return _e}function invert$1(s,j){if(s===_0n$9||j<=_0n$9)throw new Error(`invert: expected positive integers, got n=${s} mod=${j}`);let $=mod$1(s,j),_e=j,et=_0n$9,tt=_1n$b;for(;$!==_0n$9;){const rt=_e/$,ot=_e%$,it=et-tt*rt;_e=$,$=ot,et=tt,tt=it}if(_e!==_1n$b)throw new Error("invert: does not exist");return mod$1(et,j)}function tonelliShanks$1(s){const j=(s-_1n$b)/_2n$7;let $,_e,et;for($=s-_1n$b,_e=0;$%_2n$7===_0n$9;$/=_2n$7,_e++);for(et=_2n$7;et(mod$1(s,j)&_1n$b)===_1n$b,FIELD_FIELDS$1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField$1(s){const j={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},$=FIELD_FIELDS$1.reduce((_e,et)=>(_e[et]="function",_e),j);return validateObject$1(s,$)}function FpPow$1(s,j,$){if($<_0n$9)throw new Error("Expected power > 0");if($===_0n$9)return s.ONE;if($===_1n$b)return j;let _e=s.ONE,et=j;for(;$>_0n$9;)$&_1n$b&&(_e=s.mul(_e,et)),et=s.sqr(et),$>>=_1n$b;return _e}function FpInvertBatch$1(s,j){const $=new Array(j.length),_e=j.reduce((tt,nt,rt)=>s.is0(nt)?tt:($[rt]=tt,s.mul(tt,nt)),s.ONE),et=s.inv(_e);return j.reduceRight((tt,nt,rt)=>s.is0(nt)?tt:($[rt]=s.mul(tt,$[rt]),s.mul(tt,nt)),et),$}function nLength$1(s,j){const $=j!==void 0?j:s.toString(2).length,_e=Math.ceil($/8);return{nBitLength:$,nByteLength:_e}}function Field$1(s,j,$=!1,_e={}){if(s<=_0n$9)throw new Error(`Expected Field ORDER > 0, got ${s}`);const{nBitLength:et,nByteLength:tt}=nLength$1(s,j);if(tt>2048)throw new Error("Field lengths over 2048 bytes are not supported");const nt=FpSqrt$1(s),rt=Object.freeze({ORDER:s,BITS:et,BYTES:tt,MASK:bitMask$1(et),ZERO:_0n$9,ONE:_1n$b,create:ot=>mod$1(ot,s),isValid:ot=>{if(typeof ot!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof ot}`);return _0n$9<=ot&&otot===_0n$9,isOdd:ot=>(ot&_1n$b)===_1n$b,neg:ot=>mod$1(-ot,s),eql:(ot,it)=>ot===it,sqr:ot=>mod$1(ot*ot,s),add:(ot,it)=>mod$1(ot+it,s),sub:(ot,it)=>mod$1(ot-it,s),mul:(ot,it)=>mod$1(ot*it,s),pow:(ot,it)=>FpPow$1(rt,ot,it),div:(ot,it)=>mod$1(ot*invert$1(it,s),s),sqrN:ot=>ot*ot,addN:(ot,it)=>ot+it,subN:(ot,it)=>ot-it,mulN:(ot,it)=>ot*it,inv:ot=>invert$1(ot,s),sqrt:_e.sqrt||(ot=>nt(rt,ot)),invertBatch:ot=>FpInvertBatch$1(rt,ot),cmov:(ot,it,st)=>st?it:ot,toBytes:ot=>$?numberToBytesLE$1(ot,tt):numberToBytesBE$1(ot,tt),fromBytes:ot=>{if(ot.length!==tt)throw new Error(`Fp.fromBytes: expected ${tt}, got ${ot.length}`);return $?bytesToNumberLE$1(ot):bytesToNumberBE$1(ot)}});return Object.freeze(rt)}function getFieldBytesLength$1(s){if(typeof s!="bigint")throw new Error("field order must be bigint");const j=s.toString(2).length;return Math.ceil(j/8)}function getMinHashLength$1(s){const j=getFieldBytesLength$1(s);return j+Math.ceil(j/2)}function mapHashToField$1(s,j,$=!1){const _e=s.length,et=getFieldBytesLength$1(j),tt=getMinHashLength$1(j);if(_e<16||_e1024)throw new Error(`expected ${tt}-1024 bytes of input, got ${_e}`);const nt=$?bytesToNumberBE$1(s):bytesToNumberLE$1(s),rt=mod$1(nt,j-_1n$b)+_1n$b;return $?numberToBytesLE$1(rt,et):numberToBytesBE$1(rt,et)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$8=BigInt(0),_1n$a=BigInt(1),pointPrecomputes=new WeakMap,pointWindowSizes=new WeakMap;function wNAF$1(s,j){const $=(tt,nt)=>{const rt=nt.negate();return tt?rt:nt},_e=tt=>{if(!Number.isSafeInteger(tt)||tt<=0||tt>j)throw new Error(`Wrong window size=${tt}, should be [1..${j}]`)},et=tt=>{_e(tt);const nt=Math.ceil(j/tt)+1,rt=2**(tt-1);return{windows:nt,windowSize:rt}};return{constTimeNegate:$,unsafeLadder(tt,nt){let rt=s.ZERO,ot=tt;for(;nt>_0n$8;)nt&_1n$a&&(rt=rt.add(ot)),ot=ot.double(),nt>>=_1n$a;return rt},precomputeWindow(tt,nt){const{windows:rt,windowSize:ot}=et(nt),it=[];let st=tt,at=st;for(let ct=0;ct>=dt,yt>it&&(yt-=lt,rt+=_1n$a);const gt=ht,ft=ht+Math.abs(yt)-1,xt=pt%2!==0,Mt=yt<0;yt===0?at=at.add($(xt,nt[gt])):st=st.add($(Mt,nt[ft]))}return{p:st,f:at}},wNAFCached(tt,nt,rt){const ot=pointWindowSizes.get(tt)||1;let it=pointPrecomputes.get(tt);return it||(it=this.precomputeWindow(tt,ot),ot!==1&&pointPrecomputes.set(tt,rt(it))),this.wNAF(ot,it,nt)},setWindowSize(tt,nt){_e(nt),pointWindowSizes.set(tt,nt),pointPrecomputes.delete(tt)}}}function validateBasic$1(s){return validateField$1(s.Fp),validateObject$1(s,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength$1(s.n,s.nBitLength),...s,p:s.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$7=BigInt(0),_1n$9=BigInt(1),_2n$6=BigInt(2),_8n$3=BigInt(8),VERIFY_DEFAULT$1={zip215:!0};function validateOpts$3(s){const j=validateBasic$1(s);return validateObject$1(s,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...j})}function twistedEdwards$1(s){const j=validateOpts$3(s),{Fp:$,n:_e,prehash:et,hash:tt,randomBytes:nt,nByteLength:rt,h:ot}=j,it=_2n$6<{try{return{isValid:!0,value:$.sqrt(bt*$.inv(St))}}catch{return{isValid:!1,value:_0n$7}}}),ct=j.adjustScalarBytes||(bt=>bt),lt=j.domain||((bt,St,vt)=>{if(abool("phflag",vt),St.length||vt)throw new Error("Contexts/pre-hash are not supported");return bt});function dt(bt,St){aInRange("coordinate "+bt,St,_0n$7,it)}function pt(bt){if(!(bt instanceof gt))throw new Error("ExtendedPoint expected")}const ht=memoized((bt,St)=>{const{ex:vt,ey:At,ez:Tt}=bt,Dt=bt.is0();St==null&&(St=Dt?_8n$3:$.inv(Tt));const Lt=st(vt*St),Et=st(At*St),kt=st(Tt*St);if(Dt)return{x:_0n$7,y:_1n$9};if(kt!==_1n$9)throw new Error("invZ was invalid");return{x:Lt,y:Et}}),yt=memoized(bt=>{const{a:St,d:vt}=j;if(bt.is0())throw new Error("bad point: ZERO");const{ex:At,ey:Tt,ez:Dt,et:Lt}=bt,Et=st(At*At),kt=st(Tt*Tt),Ut=st(Dt*Dt),Gt=st(Ut*Ut),Ht=st(Et*St),tn=st(Ut*st(Ht+kt)),Jt=st(Gt+st(vt*st(Et*kt)));if(tn!==Jt)throw new Error("bad point: equation left != right (1)");const Kt=st(At*Tt),dn=st(Dt*Lt);if(Kt!==dn)throw new Error("bad point: equation left != right (2)");return!0});class gt{constructor(St,vt,At,Tt){this.ex=St,this.ey=vt,this.ez=At,this.et=Tt,dt("x",St),dt("y",vt),dt("z",At),dt("t",Tt),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(St){if(St instanceof gt)throw new Error("extended point not allowed");const{x:vt,y:At}=St||{};return dt("x",vt),dt("y",At),new gt(vt,At,_1n$9,st(vt*At))}static normalizeZ(St){const vt=$.invertBatch(St.map(At=>At.ez));return St.map((At,Tt)=>At.toAffine(vt[Tt])).map(gt.fromAffine)}_setWindowSize(St){Mt.setWindowSize(this,St)}assertValidity(){yt(this)}equals(St){pt(St);const{ex:vt,ey:At,ez:Tt}=this,{ex:Dt,ey:Lt,ez:Et}=St,kt=st(vt*Et),Ut=st(Dt*Tt),Gt=st(At*Et),Ht=st(Lt*Tt);return kt===Ut&&Gt===Ht}is0(){return this.equals(gt.ZERO)}negate(){return new gt(st(-this.ex),this.ey,this.ez,st(-this.et))}double(){const{a:St}=j,{ex:vt,ey:At,ez:Tt}=this,Dt=st(vt*vt),Lt=st(At*At),Et=st(_2n$6*st(Tt*Tt)),kt=st(St*Dt),Ut=vt+At,Gt=st(st(Ut*Ut)-Dt-Lt),Ht=kt+Lt,tn=Ht-Et,Jt=kt-Lt,Kt=st(Gt*tn),dn=st(Ht*Jt),en=st(Gt*Jt),Zt=st(tn*Ht);return new gt(Kt,dn,Zt,en)}add(St){pt(St);const{a:vt,d:At}=j,{ex:Tt,ey:Dt,ez:Lt,et:Et}=this,{ex:kt,ey:Ut,ez:Gt,et:Ht}=St;if(vt===BigInt(-1)){const hn=st((Dt-Tt)*(Ut+kt)),on=st((Dt+Tt)*(Ut-kt)),an=st(on-hn);if(an===_0n$7)return this.double();const gn=st(Lt*_2n$6*Ht),fn=st(Et*_2n$6*Gt),ln=fn+gn,yn=on+hn,mn=fn-gn,Rt=st(ln*an),Ct=st(yn*mn),It=st(ln*mn),Bt=st(an*yn);return new gt(Rt,Ct,Bt,It)}const tn=st(Tt*kt),Jt=st(Dt*Ut),Kt=st(Et*At*Ht),dn=st(Lt*Gt),en=st((Tt+Dt)*(kt+Ut)-tn-Jt),Zt=dn-Kt,Qt=dn+Kt,qt=st(Jt-vt*tn),Xt=st(en*Zt),sn=st(Qt*qt),nn=st(en*qt),rn=st(Zt*Qt);return new gt(Xt,sn,rn,nn)}subtract(St){return this.add(St.negate())}wNAF(St){return Mt.wNAFCached(this,St,gt.normalizeZ)}multiply(St){const vt=St;aInRange("scalar",vt,_1n$9,_e);const{p:At,f:Tt}=this.wNAF(vt);return gt.normalizeZ([At,Tt])[0]}multiplyUnsafe(St){const vt=St;return aInRange("scalar",vt,_0n$7,_e),vt===_0n$7?xt:this.equals(xt)||vt===_1n$9?this:this.equals(ft)?this.wNAF(vt).p:Mt.unsafeLadder(this,vt)}isSmallOrder(){return this.multiplyUnsafe(ot).is0()}isTorsionFree(){return Mt.unsafeLadder(this,_e).is0()}toAffine(St){return ht(this,St)}clearCofactor(){const{h:St}=j;return St===_1n$9?this:this.multiplyUnsafe(St)}static fromHex(St,vt=!1){const{d:At,a:Tt}=j,Dt=$.BYTES;St=ensureBytes$1("pointHex",St,Dt),abool("zip215",vt);const Lt=St.slice(),Et=St[Dt-1];Lt[Dt-1]=Et&-129;const kt=bytesToNumberLE$1(Lt),Ut=vt?it:$.ORDER;aInRange("pointHex.y",kt,_0n$7,Ut);const Gt=st(kt*kt),Ht=st(Gt-_1n$9),tn=st(At*Gt-Tt);let{isValid:Jt,value:Kt}=at(Ht,tn);if(!Jt)throw new Error("Point.fromHex: invalid y coordinate");const dn=(Kt&_1n$9)===_1n$9,en=(Et&128)!==0;if(!vt&&Kt===_0n$7&&en)throw new Error("Point.fromHex: x=0 and x_0=1");return en!==dn&&(Kt=st(-Kt)),gt.fromAffine({x:Kt,y:kt})}static fromPrivateKey(St){return $t(St).point}toRawBytes(){const{x:St,y:vt}=this.toAffine(),At=numberToBytesLE$1(vt,$.BYTES);return At[At.length-1]|=St&_1n$9?128:0,At}toHex(){return bytesToHex$1(this.toRawBytes())}}gt.BASE=new gt(j.Gx,j.Gy,_1n$9,st(j.Gx*j.Gy)),gt.ZERO=new gt(_0n$7,_1n$9,_1n$9,_0n$7);const{BASE:ft,ZERO:xt}=gt,Mt=wNAF$1(gt,rt*8);function jt(bt){return mod$1(bt,_e)}function wt(bt){return jt(bytesToNumberLE$1(bt))}function $t(bt){const St=rt;bt=ensureBytes$1("private key",bt,St);const vt=ensureBytes$1("hashed private key",tt(bt),2*St),At=ct(vt.slice(0,St)),Tt=vt.slice(St,2*St),Dt=wt(At),Lt=ft.multiply(Dt),Et=Lt.toRawBytes();return{head:At,prefix:Tt,scalar:Dt,point:Lt,pointBytes:Et}}function zt(bt){return $t(bt).pointBytes}function Ot(bt=new Uint8Array,...St){const vt=concatBytes$1(...St);return wt(tt(lt(vt,ensureBytes$1("context",bt),!!et)))}function Pt(bt,St,vt={}){bt=ensureBytes$1("message",bt),et&&(bt=et(bt));const{prefix:At,scalar:Tt,pointBytes:Dt}=$t(St),Lt=Ot(vt.context,At,bt),Et=ft.multiply(Lt).toRawBytes(),kt=Ot(vt.context,Et,Dt,bt),Ut=jt(Lt+kt*Tt);aInRange("signature.s",Ut,_0n$7,_e);const Gt=concatBytes$1(Et,numberToBytesLE$1(Ut,$.BYTES));return ensureBytes$1("result",Gt,rt*2)}const Ft=VERIFY_DEFAULT$1;function Nt(bt,St,vt,At=Ft){const{context:Tt,zip215:Dt}=At,Lt=$.BYTES;bt=ensureBytes$1("signature",bt,2*Lt),St=ensureBytes$1("message",St),Dt!==void 0&&abool("zip215",Dt),et&&(St=et(St));const Et=bytesToNumberLE$1(bt.slice(Lt,2*Lt));let kt,Ut,Gt;try{kt=gt.fromHex(vt,Dt),Ut=gt.fromHex(bt.slice(0,Lt),Dt),Gt=ft.multiplyUnsafe(Et)}catch{return!1}if(!Dt&&kt.isSmallOrder())return!1;const Ht=Ot(Tt,Ut.toRawBytes(),kt.toRawBytes(),St);return Ut.add(kt.multiplyUnsafe(Ht)).subtract(Gt).clearCofactor().equals(gt.ZERO)}return ft._setWindowSize(8),{CURVE:j,getPublicKey:zt,sign:Pt,verify:Nt,ExtendedPoint:gt,utils:{getExtendedPublicKey:$t,randomPrivateKey:()=>nt($.BYTES),precompute(bt=8,St=gt.BASE){return St._setWindowSize(bt),St.multiply(BigInt(3)),St}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ED25519_P=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),ED25519_SQRT_M1=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const _1n$8=BigInt(1),_2n$5=BigInt(2);BigInt(3);const _5n$1=BigInt(5),_8n$2=BigInt(8);function ed25519_pow_2_252_3(s){const j=BigInt(10),$=BigInt(20),_e=BigInt(40),et=BigInt(80),tt=ED25519_P,rt=s*s%tt*s%tt,ot=pow2$1(rt,_2n$5,tt)*rt%tt,it=pow2$1(ot,_1n$8,tt)*s%tt,st=pow2$1(it,_5n$1,tt)*it%tt,at=pow2$1(st,j,tt)*st%tt,ct=pow2$1(at,$,tt)*at%tt,lt=pow2$1(ct,_e,tt)*ct%tt,dt=pow2$1(lt,et,tt)*lt%tt,pt=pow2$1(dt,et,tt)*lt%tt,ht=pow2$1(pt,j,tt)*st%tt;return{pow_p_5_8:pow2$1(ht,_2n$5,tt)*s%tt,b2:rt}}function adjustScalarBytes(s){return s[0]&=248,s[31]&=127,s[31]|=64,s}function uvRatio(s,j){const $=ED25519_P,_e=mod$1(j*j*j,$),et=mod$1(_e*_e*j,$),tt=ed25519_pow_2_252_3(s*et).pow_p_5_8;let nt=mod$1(s*_e*tt,$);const rt=mod$1(j*nt*nt,$),ot=nt,it=mod$1(nt*ED25519_SQRT_M1,$),st=rt===s,at=rt===mod$1(-s,$),ct=rt===mod$1(-s*ED25519_SQRT_M1,$);return st&&(nt=ot),(at||ct)&&(nt=it),isNegativeLE$1(nt,$)&&(nt=mod$1(-nt,$)),{isValid:st||at,value:nt}}const Fp$1=Field$1(ED25519_P,void 0,!0),ed25519Defaults={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Fp$1,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:_8n$2,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:sha512_1,randomBytes,adjustScalarBytes,uvRatio},ed25519$1=twistedEdwards$1(ed25519Defaults);var bn={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$6=getAugmentedNamespace(__viteBrowserExternal$1);bn.exports;(function(s){(function(j,$){function _e(Nt,mt){if(!Nt)throw new Error(mt||"Assertion failed")}function et(Nt,mt){Nt.super_=mt;var bt=function(){};bt.prototype=mt.prototype,Nt.prototype=new bt,Nt.prototype.constructor=Nt}function tt(Nt,mt,bt){if(tt.isBN(Nt))return Nt;this.negative=0,this.words=null,this.length=0,this.red=null,Nt!==null&&((mt==="le"||mt==="be")&&(bt=mt,mt=10),this._init(Nt||0,mt||10,bt||"be"))}typeof j=="object"?j.exports=tt:$.BN=tt,tt.BN=tt,tt.wordSize=26;var nt;try{typeof window<"u"&&typeof window.Buffer<"u"?nt=window.Buffer:nt=require$$0$6.Buffer}catch{}tt.isBN=function(mt){return mt instanceof tt?!0:mt!==null&&typeof mt=="object"&&mt.constructor.wordSize===tt.wordSize&&Array.isArray(mt.words)},tt.max=function(mt,bt){return mt.cmp(bt)>0?mt:bt},tt.min=function(mt,bt){return mt.cmp(bt)<0?mt:bt},tt.prototype._init=function(mt,bt,St){if(typeof mt=="number")return this._initNumber(mt,bt,St);if(typeof mt=="object")return this._initArray(mt,bt,St);bt==="hex"&&(bt=16),_e(bt===(bt|0)&&bt>=2&&bt<=36),mt=mt.toString().replace(/\s+/g,"");var vt=0;mt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)Tt=mt[vt]|mt[vt-1]<<8|mt[vt-2]<<16,this.words[At]|=Tt<>>26-Dt&67108863,Dt+=24,Dt>=26&&(Dt-=26,At++);else if(St==="le")for(vt=0,At=0;vt>>26-Dt&67108863,Dt+=24,Dt>=26&&(Dt-=26,At++);return this._strip()};function rt(Nt,mt){var bt=Nt.charCodeAt(mt);if(bt>=48&&bt<=57)return bt-48;if(bt>=65&&bt<=70)return bt-55;if(bt>=97&&bt<=102)return bt-87;_e(!1,"Invalid character in "+Nt)}function ot(Nt,mt,bt){var St=rt(Nt,bt);return bt-1>=mt&&(St|=rt(Nt,bt-1)<<4),St}tt.prototype._parseHex=function(mt,bt,St){this.length=Math.ceil((mt.length-bt)/6),this.words=new Array(this.length);for(var vt=0;vt=bt;vt-=2)Dt=ot(mt,bt,vt)<=18?(At-=18,Tt+=1,this.words[Tt]|=Dt>>>26):At+=8;else{var Lt=mt.length-bt;for(vt=Lt%2===0?bt+1:bt;vt=18?(At-=18,Tt+=1,this.words[Tt]|=Dt>>>26):At+=8}this._strip()};function it(Nt,mt,bt,St){for(var vt=0,At=0,Tt=Math.min(Nt.length,bt),Dt=mt;Dt=49?At=Lt-49+10:Lt>=17?At=Lt-17+10:At=Lt,_e(Lt>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{tt.prototype[Symbol.for("nodejs.util.inspect.custom")]=at}catch{tt.prototype.inspect=at}else tt.prototype.inspect=at;function at(){return(this.red?""}var ct=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],lt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],dt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];tt.prototype.toString=function(mt,bt){mt=mt||10,bt=bt|0||1;var St;if(mt===16||mt==="hex"){St="";for(var vt=0,At=0,Tt=0;Tt>>24-vt&16777215,vt+=2,vt>=26&&(vt-=26,Tt--),At!==0||Tt!==this.length-1?St=ct[6-Lt.length]+Lt+St:St=Lt+St}for(At!==0&&(St=At.toString(16)+St);St.length%bt!==0;)St="0"+St;return this.negative!==0&&(St="-"+St),St}if(mt===(mt|0)&&mt>=2&&mt<=36){var Et=lt[mt],kt=dt[mt];St="";var Ut=this.clone();for(Ut.negative=0;!Ut.isZero();){var Gt=Ut.modrn(kt).toString(mt);Ut=Ut.idivn(kt),Ut.isZero()?St=Gt+St:St=ct[Et-Gt.length]+Gt+St}for(this.isZero()&&(St="0"+St);St.length%bt!==0;)St="0"+St;return this.negative!==0&&(St="-"+St),St}_e(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var mt=this.words[0];return this.length===2?mt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?mt+=4503599627370496+this.words[1]*67108864:this.length>2&&_e(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-mt:mt},tt.prototype.toJSON=function(){return this.toString(16,2)},nt&&(tt.prototype.toBuffer=function(mt,bt){return this.toArrayLike(nt,mt,bt)}),tt.prototype.toArray=function(mt,bt){return this.toArrayLike(Array,mt,bt)};var pt=function(mt,bt){return mt.allocUnsafe?mt.allocUnsafe(bt):new mt(bt)};tt.prototype.toArrayLike=function(mt,bt,St){this._strip();var vt=this.byteLength(),At=St||Math.max(1,vt);_e(vt<=At,"byte array longer than desired length"),_e(At>0,"Requested array length <= 0");var Tt=pt(mt,At),Dt=bt==="le"?"LE":"BE";return this["_toArrayLike"+Dt](Tt,vt),Tt},tt.prototype._toArrayLikeLE=function(mt,bt){for(var St=0,vt=0,At=0,Tt=0;At>8&255),St>16&255),Tt===6?(St>24&255),vt=0,Tt=0):(vt=Dt>>>24,Tt+=2)}if(St=0&&(mt[St--]=Dt>>8&255),St>=0&&(mt[St--]=Dt>>16&255),Tt===6?(St>=0&&(mt[St--]=Dt>>24&255),vt=0,Tt=0):(vt=Dt>>>24,Tt+=2)}if(St>=0)for(mt[St--]=vt;St>=0;)mt[St--]=0},Math.clz32?tt.prototype._countBits=function(mt){return 32-Math.clz32(mt)}:tt.prototype._countBits=function(mt){var bt=mt,St=0;return bt>=4096&&(St+=13,bt>>>=13),bt>=64&&(St+=7,bt>>>=7),bt>=8&&(St+=4,bt>>>=4),bt>=2&&(St+=2,bt>>>=2),St+bt},tt.prototype._zeroBits=function(mt){if(mt===0)return 26;var bt=mt,St=0;return bt&8191||(St+=13,bt>>>=13),bt&127||(St+=7,bt>>>=7),bt&15||(St+=4,bt>>>=4),bt&3||(St+=2,bt>>>=2),bt&1||St++,St},tt.prototype.bitLength=function(){var mt=this.words[this.length-1],bt=this._countBits(mt);return(this.length-1)*26+bt};function ht(Nt){for(var mt=new Array(Nt.bitLength()),bt=0;bt>>vt&1}return mt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var mt=0,bt=0;btmt.length?this.clone().ior(mt):mt.clone().ior(this)},tt.prototype.uor=function(mt){return this.length>mt.length?this.clone().iuor(mt):mt.clone().iuor(this)},tt.prototype.iuand=function(mt){var bt;this.length>mt.length?bt=mt:bt=this;for(var St=0;Stmt.length?this.clone().iand(mt):mt.clone().iand(this)},tt.prototype.uand=function(mt){return this.length>mt.length?this.clone().iuand(mt):mt.clone().iuand(this)},tt.prototype.iuxor=function(mt){var bt,St;this.length>mt.length?(bt=this,St=mt):(bt=mt,St=this);for(var vt=0;vtmt.length?this.clone().ixor(mt):mt.clone().ixor(this)},tt.prototype.uxor=function(mt){return this.length>mt.length?this.clone().iuxor(mt):mt.clone().iuxor(this)},tt.prototype.inotn=function(mt){_e(typeof mt=="number"&&mt>=0);var bt=Math.ceil(mt/26)|0,St=mt%26;this._expand(bt),St>0&&bt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-St),this._strip()},tt.prototype.notn=function(mt){return this.clone().inotn(mt)},tt.prototype.setn=function(mt,bt){_e(typeof mt=="number"&&mt>=0);var St=mt/26|0,vt=mt%26;return this._expand(St+1),bt?this.words[St]=this.words[St]|1<mt.length?(St=this,vt=mt):(St=mt,vt=this);for(var At=0,Tt=0;Tt>>26;for(;At!==0&&Tt>>26;if(this.length=St.length,At!==0)this.words[this.length]=At,this.length++;else if(St!==this)for(;Ttmt.length?this.clone().iadd(mt):mt.clone().iadd(this)},tt.prototype.isub=function(mt){if(mt.negative!==0){mt.negative=0;var bt=this.iadd(mt);return mt.negative=1,bt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(mt),this.negative=1,this._normSign();var St=this.cmp(mt);if(St===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,At;St>0?(vt=this,At=mt):(vt=mt,At=this);for(var Tt=0,Dt=0;Dt>26,this.words[Dt]=bt&67108863;for(;Tt!==0&&Dt>26,this.words[Dt]=bt&67108863;if(Tt===0&&Dt>>26,Ut=Lt&67108863,Gt=Math.min(Et,mt.length-1),Ht=Math.max(0,Et-Nt.length+1);Ht<=Gt;Ht++){var tn=Et-Ht|0;vt=Nt.words[tn]|0,At=mt.words[Ht]|0,Tt=vt*At+Ut,kt+=Tt/67108864|0,Ut=Tt&67108863}bt.words[Et]=Ut|0,Lt=kt|0}return Lt!==0?bt.words[Et]=Lt|0:bt.length--,bt._strip()}var gt=function(mt,bt,St){var vt=mt.words,At=bt.words,Tt=St.words,Dt=0,Lt,Et,kt,Ut=vt[0]|0,Gt=Ut&8191,Ht=Ut>>>13,tn=vt[1]|0,Jt=tn&8191,Kt=tn>>>13,dn=vt[2]|0,en=dn&8191,Zt=dn>>>13,Qt=vt[3]|0,qt=Qt&8191,Xt=Qt>>>13,sn=vt[4]|0,nn=sn&8191,rn=sn>>>13,hn=vt[5]|0,on=hn&8191,an=hn>>>13,gn=vt[6]|0,fn=gn&8191,ln=gn>>>13,yn=vt[7]|0,mn=yn&8191,Rt=yn>>>13,Ct=vt[8]|0,It=Ct&8191,Bt=Ct>>>13,Wt=vt[9]|0,Vt=Wt&8191,Yt=Wt>>>13,cn=At[0]|0,pn=cn&8191,un=cn>>>13,En=At[1]|0,xn=En&8191,Bn=En>>>13,Qn=At[2]|0,On=Qn&8191,wn=Qn>>>13,Yn=At[3]|0,Nn=Yn&8191,Ln=Yn>>>13,qn=At[4]|0,Dn=qn&8191,_n=qn>>>13,Wn=At[5]|0,Pn=Wn&8191,Tn=Wn>>>13,Vn=At[6]|0,Sn=Vn&8191,vn=Vn>>>13,Zn=At[7]|0,An=Zn&8191,$n=Zn>>>13,Gn=At[8]|0,jn=Gn&8191,zn=Gn>>>13,kn=At[9]|0,Cn=kn&8191,Rn=kn>>>13;St.negative=mt.negative^bt.negative,St.length=19,Lt=Math.imul(Gt,pn),Et=Math.imul(Gt,un),Et=Et+Math.imul(Ht,pn)|0,kt=Math.imul(Ht,un);var Hn=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(Hn>>>26)|0,Hn&=67108863,Lt=Math.imul(Jt,pn),Et=Math.imul(Jt,un),Et=Et+Math.imul(Kt,pn)|0,kt=Math.imul(Kt,un),Lt=Lt+Math.imul(Gt,xn)|0,Et=Et+Math.imul(Gt,Bn)|0,Et=Et+Math.imul(Ht,xn)|0,kt=kt+Math.imul(Ht,Bn)|0;var Un=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(Un>>>26)|0,Un&=67108863,Lt=Math.imul(en,pn),Et=Math.imul(en,un),Et=Et+Math.imul(Zt,pn)|0,kt=Math.imul(Zt,un),Lt=Lt+Math.imul(Jt,xn)|0,Et=Et+Math.imul(Jt,Bn)|0,Et=Et+Math.imul(Kt,xn)|0,kt=kt+Math.imul(Kt,Bn)|0,Lt=Lt+Math.imul(Gt,On)|0,Et=Et+Math.imul(Gt,wn)|0,Et=Et+Math.imul(Ht,On)|0,kt=kt+Math.imul(Ht,wn)|0;var In=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(In>>>26)|0,In&=67108863,Lt=Math.imul(qt,pn),Et=Math.imul(qt,un),Et=Et+Math.imul(Xt,pn)|0,kt=Math.imul(Xt,un),Lt=Lt+Math.imul(en,xn)|0,Et=Et+Math.imul(en,Bn)|0,Et=Et+Math.imul(Zt,xn)|0,kt=kt+Math.imul(Zt,Bn)|0,Lt=Lt+Math.imul(Jt,On)|0,Et=Et+Math.imul(Jt,wn)|0,Et=Et+Math.imul(Kt,On)|0,kt=kt+Math.imul(Kt,wn)|0,Lt=Lt+Math.imul(Gt,Nn)|0,Et=Et+Math.imul(Gt,Ln)|0,Et=Et+Math.imul(Ht,Nn)|0,kt=kt+Math.imul(Ht,Ln)|0;var Fn=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,Lt=Math.imul(nn,pn),Et=Math.imul(nn,un),Et=Et+Math.imul(rn,pn)|0,kt=Math.imul(rn,un),Lt=Lt+Math.imul(qt,xn)|0,Et=Et+Math.imul(qt,Bn)|0,Et=Et+Math.imul(Xt,xn)|0,kt=kt+Math.imul(Xt,Bn)|0,Lt=Lt+Math.imul(en,On)|0,Et=Et+Math.imul(en,wn)|0,Et=Et+Math.imul(Zt,On)|0,kt=kt+Math.imul(Zt,wn)|0,Lt=Lt+Math.imul(Jt,Nn)|0,Et=Et+Math.imul(Jt,Ln)|0,Et=Et+Math.imul(Kt,Nn)|0,kt=kt+Math.imul(Kt,Ln)|0,Lt=Lt+Math.imul(Gt,Dn)|0,Et=Et+Math.imul(Gt,_n)|0,Et=Et+Math.imul(Ht,Dn)|0,kt=kt+Math.imul(Ht,_n)|0;var Kn=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,Lt=Math.imul(on,pn),Et=Math.imul(on,un),Et=Et+Math.imul(an,pn)|0,kt=Math.imul(an,un),Lt=Lt+Math.imul(nn,xn)|0,Et=Et+Math.imul(nn,Bn)|0,Et=Et+Math.imul(rn,xn)|0,kt=kt+Math.imul(rn,Bn)|0,Lt=Lt+Math.imul(qt,On)|0,Et=Et+Math.imul(qt,wn)|0,Et=Et+Math.imul(Xt,On)|0,kt=kt+Math.imul(Xt,wn)|0,Lt=Lt+Math.imul(en,Nn)|0,Et=Et+Math.imul(en,Ln)|0,Et=Et+Math.imul(Zt,Nn)|0,kt=kt+Math.imul(Zt,Ln)|0,Lt=Lt+Math.imul(Jt,Dn)|0,Et=Et+Math.imul(Jt,_n)|0,Et=Et+Math.imul(Kt,Dn)|0,kt=kt+Math.imul(Kt,_n)|0,Lt=Lt+Math.imul(Gt,Pn)|0,Et=Et+Math.imul(Gt,Tn)|0,Et=Et+Math.imul(Ht,Pn)|0,kt=kt+Math.imul(Ht,Tn)|0;var Xn=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Lt=Math.imul(fn,pn),Et=Math.imul(fn,un),Et=Et+Math.imul(ln,pn)|0,kt=Math.imul(ln,un),Lt=Lt+Math.imul(on,xn)|0,Et=Et+Math.imul(on,Bn)|0,Et=Et+Math.imul(an,xn)|0,kt=kt+Math.imul(an,Bn)|0,Lt=Lt+Math.imul(nn,On)|0,Et=Et+Math.imul(nn,wn)|0,Et=Et+Math.imul(rn,On)|0,kt=kt+Math.imul(rn,wn)|0,Lt=Lt+Math.imul(qt,Nn)|0,Et=Et+Math.imul(qt,Ln)|0,Et=Et+Math.imul(Xt,Nn)|0,kt=kt+Math.imul(Xt,Ln)|0,Lt=Lt+Math.imul(en,Dn)|0,Et=Et+Math.imul(en,_n)|0,Et=Et+Math.imul(Zt,Dn)|0,kt=kt+Math.imul(Zt,_n)|0,Lt=Lt+Math.imul(Jt,Pn)|0,Et=Et+Math.imul(Jt,Tn)|0,Et=Et+Math.imul(Kt,Pn)|0,kt=kt+Math.imul(Kt,Tn)|0,Lt=Lt+Math.imul(Gt,Sn)|0,Et=Et+Math.imul(Gt,vn)|0,Et=Et+Math.imul(Ht,Sn)|0,kt=kt+Math.imul(Ht,vn)|0;var Jn=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Lt=Math.imul(mn,pn),Et=Math.imul(mn,un),Et=Et+Math.imul(Rt,pn)|0,kt=Math.imul(Rt,un),Lt=Lt+Math.imul(fn,xn)|0,Et=Et+Math.imul(fn,Bn)|0,Et=Et+Math.imul(ln,xn)|0,kt=kt+Math.imul(ln,Bn)|0,Lt=Lt+Math.imul(on,On)|0,Et=Et+Math.imul(on,wn)|0,Et=Et+Math.imul(an,On)|0,kt=kt+Math.imul(an,wn)|0,Lt=Lt+Math.imul(nn,Nn)|0,Et=Et+Math.imul(nn,Ln)|0,Et=Et+Math.imul(rn,Nn)|0,kt=kt+Math.imul(rn,Ln)|0,Lt=Lt+Math.imul(qt,Dn)|0,Et=Et+Math.imul(qt,_n)|0,Et=Et+Math.imul(Xt,Dn)|0,kt=kt+Math.imul(Xt,_n)|0,Lt=Lt+Math.imul(en,Pn)|0,Et=Et+Math.imul(en,Tn)|0,Et=Et+Math.imul(Zt,Pn)|0,kt=kt+Math.imul(Zt,Tn)|0,Lt=Lt+Math.imul(Jt,Sn)|0,Et=Et+Math.imul(Jt,vn)|0,Et=Et+Math.imul(Kt,Sn)|0,kt=kt+Math.imul(Kt,vn)|0,Lt=Lt+Math.imul(Gt,An)|0,Et=Et+Math.imul(Gt,$n)|0,Et=Et+Math.imul(Ht,An)|0,kt=kt+Math.imul(Ht,$n)|0;var er=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(er>>>26)|0,er&=67108863,Lt=Math.imul(It,pn),Et=Math.imul(It,un),Et=Et+Math.imul(Bt,pn)|0,kt=Math.imul(Bt,un),Lt=Lt+Math.imul(mn,xn)|0,Et=Et+Math.imul(mn,Bn)|0,Et=Et+Math.imul(Rt,xn)|0,kt=kt+Math.imul(Rt,Bn)|0,Lt=Lt+Math.imul(fn,On)|0,Et=Et+Math.imul(fn,wn)|0,Et=Et+Math.imul(ln,On)|0,kt=kt+Math.imul(ln,wn)|0,Lt=Lt+Math.imul(on,Nn)|0,Et=Et+Math.imul(on,Ln)|0,Et=Et+Math.imul(an,Nn)|0,kt=kt+Math.imul(an,Ln)|0,Lt=Lt+Math.imul(nn,Dn)|0,Et=Et+Math.imul(nn,_n)|0,Et=Et+Math.imul(rn,Dn)|0,kt=kt+Math.imul(rn,_n)|0,Lt=Lt+Math.imul(qt,Pn)|0,Et=Et+Math.imul(qt,Tn)|0,Et=Et+Math.imul(Xt,Pn)|0,kt=kt+Math.imul(Xt,Tn)|0,Lt=Lt+Math.imul(en,Sn)|0,Et=Et+Math.imul(en,vn)|0,Et=Et+Math.imul(Zt,Sn)|0,kt=kt+Math.imul(Zt,vn)|0,Lt=Lt+Math.imul(Jt,An)|0,Et=Et+Math.imul(Jt,$n)|0,Et=Et+Math.imul(Kt,An)|0,kt=kt+Math.imul(Kt,$n)|0,Lt=Lt+Math.imul(Gt,jn)|0,Et=Et+Math.imul(Gt,zn)|0,Et=Et+Math.imul(Ht,jn)|0,kt=kt+Math.imul(Ht,zn)|0;var tr=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(tr>>>26)|0,tr&=67108863,Lt=Math.imul(Vt,pn),Et=Math.imul(Vt,un),Et=Et+Math.imul(Yt,pn)|0,kt=Math.imul(Yt,un),Lt=Lt+Math.imul(It,xn)|0,Et=Et+Math.imul(It,Bn)|0,Et=Et+Math.imul(Bt,xn)|0,kt=kt+Math.imul(Bt,Bn)|0,Lt=Lt+Math.imul(mn,On)|0,Et=Et+Math.imul(mn,wn)|0,Et=Et+Math.imul(Rt,On)|0,kt=kt+Math.imul(Rt,wn)|0,Lt=Lt+Math.imul(fn,Nn)|0,Et=Et+Math.imul(fn,Ln)|0,Et=Et+Math.imul(ln,Nn)|0,kt=kt+Math.imul(ln,Ln)|0,Lt=Lt+Math.imul(on,Dn)|0,Et=Et+Math.imul(on,_n)|0,Et=Et+Math.imul(an,Dn)|0,kt=kt+Math.imul(an,_n)|0,Lt=Lt+Math.imul(nn,Pn)|0,Et=Et+Math.imul(nn,Tn)|0,Et=Et+Math.imul(rn,Pn)|0,kt=kt+Math.imul(rn,Tn)|0,Lt=Lt+Math.imul(qt,Sn)|0,Et=Et+Math.imul(qt,vn)|0,Et=Et+Math.imul(Xt,Sn)|0,kt=kt+Math.imul(Xt,vn)|0,Lt=Lt+Math.imul(en,An)|0,Et=Et+Math.imul(en,$n)|0,Et=Et+Math.imul(Zt,An)|0,kt=kt+Math.imul(Zt,$n)|0,Lt=Lt+Math.imul(Jt,jn)|0,Et=Et+Math.imul(Jt,zn)|0,Et=Et+Math.imul(Kt,jn)|0,kt=kt+Math.imul(Kt,zn)|0,Lt=Lt+Math.imul(Gt,Cn)|0,Et=Et+Math.imul(Gt,Rn)|0,Et=Et+Math.imul(Ht,Cn)|0,kt=kt+Math.imul(Ht,Rn)|0;var nr=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(nr>>>26)|0,nr&=67108863,Lt=Math.imul(Vt,xn),Et=Math.imul(Vt,Bn),Et=Et+Math.imul(Yt,xn)|0,kt=Math.imul(Yt,Bn),Lt=Lt+Math.imul(It,On)|0,Et=Et+Math.imul(It,wn)|0,Et=Et+Math.imul(Bt,On)|0,kt=kt+Math.imul(Bt,wn)|0,Lt=Lt+Math.imul(mn,Nn)|0,Et=Et+Math.imul(mn,Ln)|0,Et=Et+Math.imul(Rt,Nn)|0,kt=kt+Math.imul(Rt,Ln)|0,Lt=Lt+Math.imul(fn,Dn)|0,Et=Et+Math.imul(fn,_n)|0,Et=Et+Math.imul(ln,Dn)|0,kt=kt+Math.imul(ln,_n)|0,Lt=Lt+Math.imul(on,Pn)|0,Et=Et+Math.imul(on,Tn)|0,Et=Et+Math.imul(an,Pn)|0,kt=kt+Math.imul(an,Tn)|0,Lt=Lt+Math.imul(nn,Sn)|0,Et=Et+Math.imul(nn,vn)|0,Et=Et+Math.imul(rn,Sn)|0,kt=kt+Math.imul(rn,vn)|0,Lt=Lt+Math.imul(qt,An)|0,Et=Et+Math.imul(qt,$n)|0,Et=Et+Math.imul(Xt,An)|0,kt=kt+Math.imul(Xt,$n)|0,Lt=Lt+Math.imul(en,jn)|0,Et=Et+Math.imul(en,zn)|0,Et=Et+Math.imul(Zt,jn)|0,kt=kt+Math.imul(Zt,zn)|0,Lt=Lt+Math.imul(Jt,Cn)|0,Et=Et+Math.imul(Jt,Rn)|0,Et=Et+Math.imul(Kt,Cn)|0,kt=kt+Math.imul(Kt,Rn)|0;var rr=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(rr>>>26)|0,rr&=67108863,Lt=Math.imul(Vt,On),Et=Math.imul(Vt,wn),Et=Et+Math.imul(Yt,On)|0,kt=Math.imul(Yt,wn),Lt=Lt+Math.imul(It,Nn)|0,Et=Et+Math.imul(It,Ln)|0,Et=Et+Math.imul(Bt,Nn)|0,kt=kt+Math.imul(Bt,Ln)|0,Lt=Lt+Math.imul(mn,Dn)|0,Et=Et+Math.imul(mn,_n)|0,Et=Et+Math.imul(Rt,Dn)|0,kt=kt+Math.imul(Rt,_n)|0,Lt=Lt+Math.imul(fn,Pn)|0,Et=Et+Math.imul(fn,Tn)|0,Et=Et+Math.imul(ln,Pn)|0,kt=kt+Math.imul(ln,Tn)|0,Lt=Lt+Math.imul(on,Sn)|0,Et=Et+Math.imul(on,vn)|0,Et=Et+Math.imul(an,Sn)|0,kt=kt+Math.imul(an,vn)|0,Lt=Lt+Math.imul(nn,An)|0,Et=Et+Math.imul(nn,$n)|0,Et=Et+Math.imul(rn,An)|0,kt=kt+Math.imul(rn,$n)|0,Lt=Lt+Math.imul(qt,jn)|0,Et=Et+Math.imul(qt,zn)|0,Et=Et+Math.imul(Xt,jn)|0,kt=kt+Math.imul(Xt,zn)|0,Lt=Lt+Math.imul(en,Cn)|0,Et=Et+Math.imul(en,Rn)|0,Et=Et+Math.imul(Zt,Cn)|0,kt=kt+Math.imul(Zt,Rn)|0;var or=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(or>>>26)|0,or&=67108863,Lt=Math.imul(Vt,Nn),Et=Math.imul(Vt,Ln),Et=Et+Math.imul(Yt,Nn)|0,kt=Math.imul(Yt,Ln),Lt=Lt+Math.imul(It,Dn)|0,Et=Et+Math.imul(It,_n)|0,Et=Et+Math.imul(Bt,Dn)|0,kt=kt+Math.imul(Bt,_n)|0,Lt=Lt+Math.imul(mn,Pn)|0,Et=Et+Math.imul(mn,Tn)|0,Et=Et+Math.imul(Rt,Pn)|0,kt=kt+Math.imul(Rt,Tn)|0,Lt=Lt+Math.imul(fn,Sn)|0,Et=Et+Math.imul(fn,vn)|0,Et=Et+Math.imul(ln,Sn)|0,kt=kt+Math.imul(ln,vn)|0,Lt=Lt+Math.imul(on,An)|0,Et=Et+Math.imul(on,$n)|0,Et=Et+Math.imul(an,An)|0,kt=kt+Math.imul(an,$n)|0,Lt=Lt+Math.imul(nn,jn)|0,Et=Et+Math.imul(nn,zn)|0,Et=Et+Math.imul(rn,jn)|0,kt=kt+Math.imul(rn,zn)|0,Lt=Lt+Math.imul(qt,Cn)|0,Et=Et+Math.imul(qt,Rn)|0,Et=Et+Math.imul(Xt,Cn)|0,kt=kt+Math.imul(Xt,Rn)|0;var ir=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(ir>>>26)|0,ir&=67108863,Lt=Math.imul(Vt,Dn),Et=Math.imul(Vt,_n),Et=Et+Math.imul(Yt,Dn)|0,kt=Math.imul(Yt,_n),Lt=Lt+Math.imul(It,Pn)|0,Et=Et+Math.imul(It,Tn)|0,Et=Et+Math.imul(Bt,Pn)|0,kt=kt+Math.imul(Bt,Tn)|0,Lt=Lt+Math.imul(mn,Sn)|0,Et=Et+Math.imul(mn,vn)|0,Et=Et+Math.imul(Rt,Sn)|0,kt=kt+Math.imul(Rt,vn)|0,Lt=Lt+Math.imul(fn,An)|0,Et=Et+Math.imul(fn,$n)|0,Et=Et+Math.imul(ln,An)|0,kt=kt+Math.imul(ln,$n)|0,Lt=Lt+Math.imul(on,jn)|0,Et=Et+Math.imul(on,zn)|0,Et=Et+Math.imul(an,jn)|0,kt=kt+Math.imul(an,zn)|0,Lt=Lt+Math.imul(nn,Cn)|0,Et=Et+Math.imul(nn,Rn)|0,Et=Et+Math.imul(rn,Cn)|0,kt=kt+Math.imul(rn,Rn)|0;var sr=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(sr>>>26)|0,sr&=67108863,Lt=Math.imul(Vt,Pn),Et=Math.imul(Vt,Tn),Et=Et+Math.imul(Yt,Pn)|0,kt=Math.imul(Yt,Tn),Lt=Lt+Math.imul(It,Sn)|0,Et=Et+Math.imul(It,vn)|0,Et=Et+Math.imul(Bt,Sn)|0,kt=kt+Math.imul(Bt,vn)|0,Lt=Lt+Math.imul(mn,An)|0,Et=Et+Math.imul(mn,$n)|0,Et=Et+Math.imul(Rt,An)|0,kt=kt+Math.imul(Rt,$n)|0,Lt=Lt+Math.imul(fn,jn)|0,Et=Et+Math.imul(fn,zn)|0,Et=Et+Math.imul(ln,jn)|0,kt=kt+Math.imul(ln,zn)|0,Lt=Lt+Math.imul(on,Cn)|0,Et=Et+Math.imul(on,Rn)|0,Et=Et+Math.imul(an,Cn)|0,kt=kt+Math.imul(an,Rn)|0;var ar=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(ar>>>26)|0,ar&=67108863,Lt=Math.imul(Vt,Sn),Et=Math.imul(Vt,vn),Et=Et+Math.imul(Yt,Sn)|0,kt=Math.imul(Yt,vn),Lt=Lt+Math.imul(It,An)|0,Et=Et+Math.imul(It,$n)|0,Et=Et+Math.imul(Bt,An)|0,kt=kt+Math.imul(Bt,$n)|0,Lt=Lt+Math.imul(mn,jn)|0,Et=Et+Math.imul(mn,zn)|0,Et=Et+Math.imul(Rt,jn)|0,kt=kt+Math.imul(Rt,zn)|0,Lt=Lt+Math.imul(fn,Cn)|0,Et=Et+Math.imul(fn,Rn)|0,Et=Et+Math.imul(ln,Cn)|0,kt=kt+Math.imul(ln,Rn)|0;var lr=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(lr>>>26)|0,lr&=67108863,Lt=Math.imul(Vt,An),Et=Math.imul(Vt,$n),Et=Et+Math.imul(Yt,An)|0,kt=Math.imul(Yt,$n),Lt=Lt+Math.imul(It,jn)|0,Et=Et+Math.imul(It,zn)|0,Et=Et+Math.imul(Bt,jn)|0,kt=kt+Math.imul(Bt,zn)|0,Lt=Lt+Math.imul(mn,Cn)|0,Et=Et+Math.imul(mn,Rn)|0,Et=Et+Math.imul(Rt,Cn)|0,kt=kt+Math.imul(Rt,Rn)|0;var ur=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(ur>>>26)|0,ur&=67108863,Lt=Math.imul(Vt,jn),Et=Math.imul(Vt,zn),Et=Et+Math.imul(Yt,jn)|0,kt=Math.imul(Yt,zn),Lt=Lt+Math.imul(It,Cn)|0,Et=Et+Math.imul(It,Rn)|0,Et=Et+Math.imul(Bt,Cn)|0,kt=kt+Math.imul(Bt,Rn)|0;var cr=(Dt+Lt|0)+((Et&8191)<<13)|0;Dt=(kt+(Et>>>13)|0)+(cr>>>26)|0,cr&=67108863,Lt=Math.imul(Vt,Cn),Et=Math.imul(Vt,Rn),Et=Et+Math.imul(Yt,Cn)|0,kt=Math.imul(Yt,Rn);var dr=(Dt+Lt|0)+((Et&8191)<<13)|0;return Dt=(kt+(Et>>>13)|0)+(dr>>>26)|0,dr&=67108863,Tt[0]=Hn,Tt[1]=Un,Tt[2]=In,Tt[3]=Fn,Tt[4]=Kn,Tt[5]=Xn,Tt[6]=Jn,Tt[7]=er,Tt[8]=tr,Tt[9]=nr,Tt[10]=rr,Tt[11]=or,Tt[12]=ir,Tt[13]=sr,Tt[14]=ar,Tt[15]=lr,Tt[16]=ur,Tt[17]=cr,Tt[18]=dr,Dt!==0&&(Tt[19]=Dt,St.length++),St};Math.imul||(gt=yt);function ft(Nt,mt,bt){bt.negative=mt.negative^Nt.negative,bt.length=Nt.length+mt.length;for(var St=0,vt=0,At=0;At>>26)|0,vt+=Tt>>>26,Tt&=67108863}bt.words[At]=Dt,St=Tt,Tt=vt}return St!==0?bt.words[At]=St:bt.length--,bt._strip()}function xt(Nt,mt,bt){return ft(Nt,mt,bt)}tt.prototype.mulTo=function(mt,bt){var St,vt=this.length+mt.length;return this.length===10&&mt.length===10?St=gt(this,mt,bt):vt<63?St=yt(this,mt,bt):vt<1024?St=ft(this,mt,bt):St=xt(this,mt,bt),St},tt.prototype.mul=function(mt){var bt=new tt(null);return bt.words=new Array(this.length+mt.length),this.mulTo(mt,bt)},tt.prototype.mulf=function(mt){var bt=new tt(null);return bt.words=new Array(this.length+mt.length),xt(this,mt,bt)},tt.prototype.imul=function(mt){return this.clone().mulTo(mt,this)},tt.prototype.imuln=function(mt){var bt=mt<0;bt&&(mt=-mt),_e(typeof mt=="number"),_e(mt<67108864);for(var St=0,vt=0;vt>=26,St+=At/67108864|0,St+=Tt>>>26,this.words[vt]=Tt&67108863}return St!==0&&(this.words[vt]=St,this.length++),bt?this.ineg():this},tt.prototype.muln=function(mt){return this.clone().imuln(mt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(mt){var bt=ht(mt);if(bt.length===0)return new tt(1);for(var St=this,vt=0;vt=0);var bt=mt%26,St=(mt-bt)/26,vt=67108863>>>26-bt<<26-bt,At;if(bt!==0){var Tt=0;for(At=0;At>>26-bt}Tt&&(this.words[At]=Tt,this.length++)}if(St!==0){for(At=this.length-1;At>=0;At--)this.words[At+St]=this.words[At];for(At=0;At=0);var vt;bt?vt=(bt-bt%26)/26:vt=0;var At=mt%26,Tt=Math.min((mt-At)/26,this.length),Dt=67108863^67108863>>>At<Tt)for(this.length-=Tt,Et=0;Et=0&&(kt!==0||Et>=vt);Et--){var Ut=this.words[Et]|0;this.words[Et]=kt<<26-At|Ut>>>At,kt=Ut&Dt}return Lt&&kt!==0&&(Lt.words[Lt.length++]=kt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},tt.prototype.ishrn=function(mt,bt,St){return _e(this.negative===0),this.iushrn(mt,bt,St)},tt.prototype.shln=function(mt){return this.clone().ishln(mt)},tt.prototype.ushln=function(mt){return this.clone().iushln(mt)},tt.prototype.shrn=function(mt){return this.clone().ishrn(mt)},tt.prototype.ushrn=function(mt){return this.clone().iushrn(mt)},tt.prototype.testn=function(mt){_e(typeof mt=="number"&&mt>=0);var bt=mt%26,St=(mt-bt)/26,vt=1<=0);var bt=mt%26,St=(mt-bt)/26;if(_e(this.negative===0,"imaskn works only with positive numbers"),this.length<=St)return this;if(bt!==0&&St++,this.length=Math.min(St,this.length),bt!==0){var vt=67108863^67108863>>>bt<=67108864;bt++)this.words[bt]-=67108864,bt===this.length-1?this.words[bt+1]=1:this.words[bt+1]++;return this.length=Math.max(this.length,bt+1),this},tt.prototype.isubn=function(mt){if(_e(typeof mt=="number"),_e(mt<67108864),mt<0)return this.iaddn(-mt);if(this.negative!==0)return this.negative=0,this.iaddn(mt),this.negative=1,this;if(this.words[0]-=mt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var bt=0;bt>26)-(Lt/67108864|0),this.words[At+St]=Tt&67108863}for(;At>26,this.words[At+St]=Tt&67108863;if(Dt===0)return this._strip();for(_e(Dt===-1),Dt=0,At=0;At>26,this.words[At]=Tt&67108863;return this.negative=1,this._strip()},tt.prototype._wordDiv=function(mt,bt){var St=this.length-mt.length,vt=this.clone(),At=mt,Tt=At.words[At.length-1]|0,Dt=this._countBits(Tt);St=26-Dt,St!==0&&(At=At.ushln(St),vt.iushln(St),Tt=At.words[At.length-1]|0);var Lt=vt.length-At.length,Et;if(bt!=="mod"){Et=new tt(null),Et.length=Lt+1,Et.words=new Array(Et.length);for(var kt=0;kt=0;Gt--){var Ht=(vt.words[At.length+Gt]|0)*67108864+(vt.words[At.length+Gt-1]|0);for(Ht=Math.min(Ht/Tt|0,67108863),vt._ishlnsubmul(At,Ht,Gt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(At,1,Gt),vt.isZero()||(vt.negative^=1);Et&&(Et.words[Gt]=Ht)}return Et&&Et._strip(),vt._strip(),bt!=="div"&&St!==0&&vt.iushrn(St),{div:Et||null,mod:vt}},tt.prototype.divmod=function(mt,bt,St){if(_e(!mt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,At,Tt;return this.negative!==0&&mt.negative===0?(Tt=this.neg().divmod(mt,bt),bt!=="mod"&&(vt=Tt.div.neg()),bt!=="div"&&(At=Tt.mod.neg(),St&&At.negative!==0&&At.iadd(mt)),{div:vt,mod:At}):this.negative===0&&mt.negative!==0?(Tt=this.divmod(mt.neg(),bt),bt!=="mod"&&(vt=Tt.div.neg()),{div:vt,mod:Tt.mod}):this.negative&mt.negative?(Tt=this.neg().divmod(mt.neg(),bt),bt!=="div"&&(At=Tt.mod.neg(),St&&At.negative!==0&&At.isub(mt)),{div:Tt.div,mod:At}):mt.length>this.length||this.cmp(mt)<0?{div:new tt(0),mod:this}:mt.length===1?bt==="div"?{div:this.divn(mt.words[0]),mod:null}:bt==="mod"?{div:null,mod:new tt(this.modrn(mt.words[0]))}:{div:this.divn(mt.words[0]),mod:new tt(this.modrn(mt.words[0]))}:this._wordDiv(mt,bt)},tt.prototype.div=function(mt){return this.divmod(mt,"div",!1).div},tt.prototype.mod=function(mt){return this.divmod(mt,"mod",!1).mod},tt.prototype.umod=function(mt){return this.divmod(mt,"mod",!0).mod},tt.prototype.divRound=function(mt){var bt=this.divmod(mt);if(bt.mod.isZero())return bt.div;var St=bt.div.negative!==0?bt.mod.isub(mt):bt.mod,vt=mt.ushrn(1),At=mt.andln(1),Tt=St.cmp(vt);return Tt<0||At===1&&Tt===0?bt.div:bt.div.negative!==0?bt.div.isubn(1):bt.div.iaddn(1)},tt.prototype.modrn=function(mt){var bt=mt<0;bt&&(mt=-mt),_e(mt<=67108863);for(var St=(1<<26)%mt,vt=0,At=this.length-1;At>=0;At--)vt=(St*vt+(this.words[At]|0))%mt;return bt?-vt:vt},tt.prototype.modn=function(mt){return this.modrn(mt)},tt.prototype.idivn=function(mt){var bt=mt<0;bt&&(mt=-mt),_e(mt<=67108863);for(var St=0,vt=this.length-1;vt>=0;vt--){var At=(this.words[vt]|0)+St*67108864;this.words[vt]=At/mt|0,St=At%mt}return this._strip(),bt?this.ineg():this},tt.prototype.divn=function(mt){return this.clone().idivn(mt)},tt.prototype.egcd=function(mt){_e(mt.negative===0),_e(!mt.isZero());var bt=this,St=mt.clone();bt.negative!==0?bt=bt.umod(mt):bt=bt.clone();for(var vt=new tt(1),At=new tt(0),Tt=new tt(0),Dt=new tt(1),Lt=0;bt.isEven()&&St.isEven();)bt.iushrn(1),St.iushrn(1),++Lt;for(var Et=St.clone(),kt=bt.clone();!bt.isZero();){for(var Ut=0,Gt=1;!(bt.words[0]&Gt)&&Ut<26;++Ut,Gt<<=1);if(Ut>0)for(bt.iushrn(Ut);Ut-- >0;)(vt.isOdd()||At.isOdd())&&(vt.iadd(Et),At.isub(kt)),vt.iushrn(1),At.iushrn(1);for(var Ht=0,tn=1;!(St.words[0]&tn)&&Ht<26;++Ht,tn<<=1);if(Ht>0)for(St.iushrn(Ht);Ht-- >0;)(Tt.isOdd()||Dt.isOdd())&&(Tt.iadd(Et),Dt.isub(kt)),Tt.iushrn(1),Dt.iushrn(1);bt.cmp(St)>=0?(bt.isub(St),vt.isub(Tt),At.isub(Dt)):(St.isub(bt),Tt.isub(vt),Dt.isub(At))}return{a:Tt,b:Dt,gcd:St.iushln(Lt)}},tt.prototype._invmp=function(mt){_e(mt.negative===0),_e(!mt.isZero());var bt=this,St=mt.clone();bt.negative!==0?bt=bt.umod(mt):bt=bt.clone();for(var vt=new tt(1),At=new tt(0),Tt=St.clone();bt.cmpn(1)>0&&St.cmpn(1)>0;){for(var Dt=0,Lt=1;!(bt.words[0]&Lt)&&Dt<26;++Dt,Lt<<=1);if(Dt>0)for(bt.iushrn(Dt);Dt-- >0;)vt.isOdd()&&vt.iadd(Tt),vt.iushrn(1);for(var Et=0,kt=1;!(St.words[0]&kt)&&Et<26;++Et,kt<<=1);if(Et>0)for(St.iushrn(Et);Et-- >0;)At.isOdd()&&At.iadd(Tt),At.iushrn(1);bt.cmp(St)>=0?(bt.isub(St),vt.isub(At)):(St.isub(bt),At.isub(vt))}var Ut;return bt.cmpn(1)===0?Ut=vt:Ut=At,Ut.cmpn(0)<0&&Ut.iadd(mt),Ut},tt.prototype.gcd=function(mt){if(this.isZero())return mt.abs();if(mt.isZero())return this.abs();var bt=this.clone(),St=mt.clone();bt.negative=0,St.negative=0;for(var vt=0;bt.isEven()&&St.isEven();vt++)bt.iushrn(1),St.iushrn(1);do{for(;bt.isEven();)bt.iushrn(1);for(;St.isEven();)St.iushrn(1);var At=bt.cmp(St);if(At<0){var Tt=bt;bt=St,St=Tt}else if(At===0||St.cmpn(1)===0)break;bt.isub(St)}while(!0);return St.iushln(vt)},tt.prototype.invm=function(mt){return this.egcd(mt).a.umod(mt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(mt){return this.words[0]&mt},tt.prototype.bincn=function(mt){_e(typeof mt=="number");var bt=mt%26,St=(mt-bt)/26,vt=1<>>26,Dt&=67108863,this.words[Tt]=Dt}return At!==0&&(this.words[Tt]=At,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(mt){var bt=mt<0;if(this.negative!==0&&!bt)return-1;if(this.negative===0&&bt)return 1;this._strip();var St;if(this.length>1)St=1;else{bt&&(mt=-mt),_e(mt<=67108863,"Number is too big");var vt=this.words[0]|0;St=vt===mt?0:vtmt.length)return 1;if(this.length=0;St--){var vt=this.words[St]|0,At=mt.words[St]|0;if(vt!==At){vtAt&&(bt=1);break}}return bt},tt.prototype.gtn=function(mt){return this.cmpn(mt)===1},tt.prototype.gt=function(mt){return this.cmp(mt)===1},tt.prototype.gten=function(mt){return this.cmpn(mt)>=0},tt.prototype.gte=function(mt){return this.cmp(mt)>=0},tt.prototype.ltn=function(mt){return this.cmpn(mt)===-1},tt.prototype.lt=function(mt){return this.cmp(mt)===-1},tt.prototype.lten=function(mt){return this.cmpn(mt)<=0},tt.prototype.lte=function(mt){return this.cmp(mt)<=0},tt.prototype.eqn=function(mt){return this.cmpn(mt)===0},tt.prototype.eq=function(mt){return this.cmp(mt)===0},tt.red=function(mt){return new Pt(mt)},tt.prototype.toRed=function(mt){return _e(!this.red,"Already a number in reduction context"),_e(this.negative===0,"red works only with positives"),mt.convertTo(this)._forceRed(mt)},tt.prototype.fromRed=function(){return _e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(mt){return this.red=mt,this},tt.prototype.forceRed=function(mt){return _e(!this.red,"Already a number in reduction context"),this._forceRed(mt)},tt.prototype.redAdd=function(mt){return _e(this.red,"redAdd works only with red numbers"),this.red.add(this,mt)},tt.prototype.redIAdd=function(mt){return _e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,mt)},tt.prototype.redSub=function(mt){return _e(this.red,"redSub works only with red numbers"),this.red.sub(this,mt)},tt.prototype.redISub=function(mt){return _e(this.red,"redISub works only with red numbers"),this.red.isub(this,mt)},tt.prototype.redShl=function(mt){return _e(this.red,"redShl works only with red numbers"),this.red.shl(this,mt)},tt.prototype.redMul=function(mt){return _e(this.red,"redMul works only with red numbers"),this.red._verify2(this,mt),this.red.mul(this,mt)},tt.prototype.redIMul=function(mt){return _e(this.red,"redMul works only with red numbers"),this.red._verify2(this,mt),this.red.imul(this,mt)},tt.prototype.redSqr=function(){return _e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return _e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return _e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return _e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return _e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(mt){return _e(this.red&&!mt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,mt)};var Mt={k256:null,p224:null,p192:null,p25519:null};function jt(Nt,mt){this.name=Nt,this.p=new tt(mt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}jt.prototype._tmp=function(){var mt=new tt(null);return mt.words=new Array(Math.ceil(this.n/13)),mt},jt.prototype.ireduce=function(mt){var bt=mt,St;do this.split(bt,this.tmp),bt=this.imulK(bt),bt=bt.iadd(this.tmp),St=bt.bitLength();while(St>this.n);var vt=St0?bt.isub(this.p):bt.strip!==void 0?bt.strip():bt._strip(),bt},jt.prototype.split=function(mt,bt){mt.iushrn(this.n,0,bt)},jt.prototype.imulK=function(mt){return mt.imul(this.k)};function wt(){jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}et(wt,jt),wt.prototype.split=function(mt,bt){for(var St=4194303,vt=Math.min(mt.length,9),At=0;At>>22,Tt=Dt}Tt>>>=22,mt.words[At-10]=Tt,Tt===0&&mt.length>10?mt.length-=10:mt.length-=9},wt.prototype.imulK=function(mt){mt.words[mt.length]=0,mt.words[mt.length+1]=0,mt.length+=2;for(var bt=0,St=0;St>>=26,mt.words[St]=At,bt=vt}return bt!==0&&(mt.words[mt.length++]=bt),mt},tt._prime=function(mt){if(Mt[mt])return Mt[mt];var bt;if(mt==="k256")bt=new wt;else if(mt==="p224")bt=new $t;else if(mt==="p192")bt=new zt;else if(mt==="p25519")bt=new Ot;else throw new Error("Unknown prime "+mt);return Mt[mt]=bt,bt};function Pt(Nt){if(typeof Nt=="string"){var mt=tt._prime(Nt);this.m=mt.p,this.prime=mt}else _e(Nt.gtn(1),"modulus must be greater than 1"),this.m=Nt,this.prime=null}Pt.prototype._verify1=function(mt){_e(mt.negative===0,"red works only with positives"),_e(mt.red,"red works only with red numbers")},Pt.prototype._verify2=function(mt,bt){_e((mt.negative|bt.negative)===0,"red works only with positives"),_e(mt.red&&mt.red===bt.red,"red works only with red numbers")},Pt.prototype.imod=function(mt){return this.prime?this.prime.ireduce(mt)._forceRed(this):(st(mt,mt.umod(this.m)._forceRed(this)),mt)},Pt.prototype.neg=function(mt){return mt.isZero()?mt.clone():this.m.sub(mt)._forceRed(this)},Pt.prototype.add=function(mt,bt){this._verify2(mt,bt);var St=mt.add(bt);return St.cmp(this.m)>=0&&St.isub(this.m),St._forceRed(this)},Pt.prototype.iadd=function(mt,bt){this._verify2(mt,bt);var St=mt.iadd(bt);return St.cmp(this.m)>=0&&St.isub(this.m),St},Pt.prototype.sub=function(mt,bt){this._verify2(mt,bt);var St=mt.sub(bt);return St.cmpn(0)<0&&St.iadd(this.m),St._forceRed(this)},Pt.prototype.isub=function(mt,bt){this._verify2(mt,bt);var St=mt.isub(bt);return St.cmpn(0)<0&&St.iadd(this.m),St},Pt.prototype.shl=function(mt,bt){return this._verify1(mt),this.imod(mt.ushln(bt))},Pt.prototype.imul=function(mt,bt){return this._verify2(mt,bt),this.imod(mt.imul(bt))},Pt.prototype.mul=function(mt,bt){return this._verify2(mt,bt),this.imod(mt.mul(bt))},Pt.prototype.isqr=function(mt){return this.imul(mt,mt.clone())},Pt.prototype.sqr=function(mt){return this.mul(mt,mt)},Pt.prototype.sqrt=function(mt){if(mt.isZero())return mt.clone();var bt=this.m.andln(3);if(_e(bt%2===1),bt===3){var St=this.m.add(new tt(1)).iushrn(2);return this.pow(mt,St)}for(var vt=this.m.subn(1),At=0;!vt.isZero()&&vt.andln(1)===0;)At++,vt.iushrn(1);_e(!vt.isZero());var Tt=new tt(1).toRed(this),Dt=Tt.redNeg(),Lt=this.m.subn(1).iushrn(1),Et=this.m.bitLength();for(Et=new tt(2*Et*Et).toRed(this);this.pow(Et,Lt).cmp(Dt)!==0;)Et.redIAdd(Dt);for(var kt=this.pow(Et,vt),Ut=this.pow(mt,vt.addn(1).iushrn(1)),Gt=this.pow(mt,vt),Ht=At;Gt.cmp(Tt)!==0;){for(var tn=Gt,Jt=0;tn.cmp(Tt)!==0;Jt++)tn=tn.redSqr();_e(Jt=0;At--){for(var kt=bt.words[At],Ut=Et-1;Ut>=0;Ut--){var Gt=kt>>Ut&1;if(Tt!==vt[0]&&(Tt=this.sqr(Tt)),Gt===0&&Dt===0){Lt=0;continue}Dt<<=1,Dt|=Gt,Lt++,!(Lt!==St&&(At!==0||Ut!==0))&&(Tt=this.mul(Tt,vt[Dt]),Lt=0,Dt=0)}Et=26}return Tt},Pt.prototype.convertTo=function(mt){var bt=mt.umod(this.m);return bt===mt?bt.clone():bt},Pt.prototype.convertFrom=function(mt){var bt=mt.clone();return bt.red=null,bt},tt.mont=function(mt){return new Ft(mt)};function Ft(Nt){Pt.call(this,Nt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}et(Ft,Pt),Ft.prototype.convertTo=function(mt){return this.imod(mt.ushln(this.shift))},Ft.prototype.convertFrom=function(mt){var bt=this.imod(mt.mul(this.rinv));return bt.red=null,bt},Ft.prototype.imul=function(mt,bt){if(mt.isZero()||bt.isZero())return mt.words[0]=0,mt.length=1,mt;var St=mt.imul(bt),vt=St.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=St.isub(vt).iushrn(this.shift),Tt=At;return At.cmp(this.m)>=0?Tt=At.isub(this.m):At.cmpn(0)<0&&(Tt=At.iadd(this.m)),Tt._forceRed(this)},Ft.prototype.mul=function(mt,bt){if(mt.isZero()||bt.isZero())return new tt(0)._forceRed(this);var St=mt.mul(bt),vt=St.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=St.isub(vt).iushrn(this.shift),Tt=At;return At.cmp(this.m)>=0?Tt=At.isub(this.m):At.cmpn(0)<0&&(Tt=At.iadd(this.m)),Tt._forceRed(this)},Ft.prototype.invm=function(mt){var bt=this.imod(mt._invmp(this.m).mul(this.r2));return bt._forceRed(this)}})(s,commonjsGlobal$1)})(bn);var bnExports=bn.exports;const BN=getDefaultExportFromCjs$1(bnExports);function setBigUint64(s,j,$,_e){if(typeof s.setBigUint64=="function")return s.setBigUint64(j,$,_e);const et=BigInt(32),tt=BigInt(4294967295),nt=Number($>>et&tt),rt=Number($&tt),ot=_e?4:0,it=_e?0:4;s.setUint32(j+ot,nt,_e),s.setUint32(j+it,rt,_e)}const Chi=(s,j,$)=>s&j^~s&$,Maj=(s,j,$)=>s&j^s&$^j&$;class HashMD extends Hash{constructor(j,$,_e,et){super(),this.blockLen=j,this.outputLen=$,this.padOffset=_e,this.isLE=et,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(j),this.view=createView(this.buffer)}update(j){exists(this);const{view:$,buffer:_e,blockLen:et}=this;j=toBytes(j);const tt=j.length;for(let nt=0;ntet-nt&&(this.process(_e,0),nt=0);for(let at=nt;atst.length)throw new Error("_sha2: outputLen bigger than state");for(let at=0;at>>3,pt=rotr(lt,17)^rotr(lt,19)^lt>>>10;SHA256_W[at]=pt+SHA256_W[at-7]+dt+SHA256_W[at-16]|0}let{A:_e,B:et,C:tt,D:nt,E:rt,F:ot,G:it,H:st}=this;for(let at=0;at<64;at++){const ct=rotr(rt,6)^rotr(rt,11)^rotr(rt,25),lt=st+ct+Chi(rt,ot,it)+SHA256_K[at]+SHA256_W[at]|0,pt=(rotr(_e,2)^rotr(_e,13)^rotr(_e,22))+Maj(_e,et,tt)|0;st=it,it=ot,ot=rt,rt=nt+lt|0,nt=tt,tt=et,et=_e,_e=lt+pt|0}_e=_e+this.A|0,et=et+this.B|0,tt=tt+this.C|0,nt=nt+this.D|0,rt=rt+this.E|0,ot=ot+this.F|0,it=it+this.G|0,st=st+this.H|0,this.set(_e,et,tt,nt,rt,ot,it,st)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const sha256=wrapConstructor(()=>new SHA256),sha224=wrapConstructor(()=>new SHA224),sha256$1=Object.freeze(Object.defineProperty({__proto__:null,sha224,sha256},Symbol.toStringTag,{value:"Module"}));var lib={};function inRange(s,j,$){return j<=s&&s<=$}function ToDictionary(s){if(s===void 0)return{};if(s===Object(s))return s;throw TypeError("Could not convert argument to dictionary")}function stringToCodePoints(s){for(var j=String(s),$=j.length,_e=0,et=[];_e<$;){var tt=j.charCodeAt(_e);if(tt<55296||tt>57343)et.push(tt);else if(56320<=tt&&tt<=57343)et.push(65533);else if(55296<=tt&&tt<=56319)if(_e===$-1)et.push(65533);else{var nt=s.charCodeAt(_e+1);if(56320<=nt&&nt<=57343){var rt=tt&1023,ot=nt&1023;et.push(65536+(rt<<10)+ot),_e+=1}else et.push(65533)}_e+=1}return et}function codePointsToString(s){for(var j="",$=0;$>10)+55296,(_e&1023)+56320))}return j}var end_of_stream=-1;function Stream(s){this.tokens=[].slice.call(s)}Stream.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():end_of_stream},prepend:function(s){if(Array.isArray(s))for(var j=s;j.length;)this.tokens.unshift(j.pop());else this.tokens.unshift(s)},push:function(s){if(Array.isArray(s))for(var j=s;j.length;)this.tokens.push(j.shift());else this.tokens.push(s)}};var finished=-1;function decoderError(s,j){if(s)throw TypeError("Decoder error");return j||65533}var DEFAULT_ENCODING="utf-8";function TextDecoder$1(s,j){if(!(this instanceof TextDecoder$1))return new TextDecoder$1(s,j);if(s=s!==void 0?String(s).toLowerCase():DEFAULT_ENCODING,s!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");j=ToDictionary(j),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!j.fatal,this._ignoreBOM=!!j.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}TextDecoder$1.prototype={decode:function(j,$){var _e;typeof j=="object"&&j instanceof ArrayBuffer?_e=new Uint8Array(j):typeof j=="object"&&"buffer"in j&&j.buffer instanceof ArrayBuffer?_e=new Uint8Array(j.buffer,j.byteOffset,j.byteLength):_e=new Uint8Array(0),$=ToDictionary($),this._streaming||(this._decoder=new UTF8Decoder({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!$.stream;for(var et=new Stream(_e),tt=[],nt;!et.endOfStream()&&(nt=this._decoder.handler(et,et.read()),nt!==finished);)nt!==null&&(Array.isArray(nt)?tt.push.apply(tt,nt):tt.push(nt));if(!this._streaming){do{if(nt=this._decoder.handler(et,et.read()),nt===finished)break;nt!==null&&(Array.isArray(nt)?tt.push.apply(tt,nt):tt.push(nt))}while(!et.endOfStream());this._decoder=null}return tt.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(tt[0]===65279?(this._BOMseen=!0,tt.shift()):this._BOMseen=!0),codePointsToString(tt)}};function TextEncoder$1(s,j){if(!(this instanceof TextEncoder$1))return new TextEncoder$1(s,j);if(s=s!==void 0?String(s).toLowerCase():DEFAULT_ENCODING,s!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");j=ToDictionary(j),this._streaming=!1,this._encoder=null,this._options={fatal:!!j.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}TextEncoder$1.prototype={encode:function(j,$){j=j?String(j):"",$=ToDictionary($),this._streaming||(this._encoder=new UTF8Encoder(this._options)),this._streaming=!!$.stream;for(var _e=[],et=new Stream(stringToCodePoints(j)),tt;!et.endOfStream()&&(tt=this._encoder.handler(et,et.read()),tt!==finished);)Array.isArray(tt)?_e.push.apply(_e,tt):_e.push(tt);if(!this._streaming){for(;tt=this._encoder.handler(et,et.read()),tt!==finished;)Array.isArray(tt)?_e.push.apply(_e,tt):_e.push(tt);this._encoder=null}return new Uint8Array(_e)}};function UTF8Decoder(s){var j=s.fatal,$=0,_e=0,et=0,tt=128,nt=191;this.handler=function(rt,ot){if(ot===end_of_stream&&et!==0)return et=0,decoderError(j);if(ot===end_of_stream)return finished;if(et===0){if(inRange(ot,0,127))return ot;if(inRange(ot,194,223))et=1,$=ot-192;else if(inRange(ot,224,239))ot===224&&(tt=160),ot===237&&(nt=159),et=2,$=ot-224;else if(inRange(ot,240,244))ot===240&&(tt=144),ot===244&&(nt=143),et=3,$=ot-240;else return decoderError(j);return $=$<<6*et,null}if(!inRange(ot,tt,nt))return $=et=_e=0,tt=128,nt=191,rt.prepend(ot),decoderError(j);if(tt=128,nt=191,_e+=1,$+=ot-128<<6*(et-_e),_e!==et)return null;var it=$;return $=et=_e=0,it}}function UTF8Encoder(s){s.fatal,this.handler=function(j,$){if($===end_of_stream)return finished;if(inRange($,0,127))return $;var _e,et;inRange($,128,2047)?(_e=1,et=192):inRange($,2048,65535)?(_e=2,et=224):inRange($,65536,1114111)&&(_e=3,et=240);for(var tt=[($>>6*_e)+et];_e>0;){var nt=$>>6*(_e-1);tt.push(128|nt&63),_e-=1}return tt}}const encoding$2=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:TextDecoder$1,TextEncoder:TextEncoder$1},Symbol.toStringTag,{value:"Module"})),require$$2=getAugmentedNamespace(encoding$2);var __createBinding=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(s,j,$,_e){_e===void 0&&(_e=$),Object.defineProperty(s,_e,{enumerable:!0,get:function(){return j[$]}})}:function(s,j,$,_e){_e===void 0&&(_e=$),s[_e]=j[$]}),__setModuleDefault=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(s,j){Object.defineProperty(s,"default",{enumerable:!0,value:j})}:function(s,j){s.default=j}),__decorate=commonjsGlobal$1&&commonjsGlobal$1.__decorate||function(s,j,$,_e){var et=arguments.length,tt=et<3?j:_e===null?_e=Object.getOwnPropertyDescriptor(j,$):_e,nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(s,j,$,_e);else for(var rt=s.length-1;rt>=0;rt--)(nt=s[rt])&&(tt=(et<3?nt(tt):et>3?nt(j,$,tt):nt(j,$))||tt);return et>3&&tt&&Object.defineProperty(j,$,tt),tt},__importStar=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(s){if(s&&s.__esModule)return s;var j={};if(s!=null)for(var $ in s)$!=="default"&&Object.hasOwnProperty.call(s,$)&&__createBinding(j,s,$);return __setModuleDefault(j,s),j},__importDefault$3=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(lib,"__esModule",{value:!0});var deserializeUnchecked_1=lib.deserializeUnchecked=deserialize_1=lib.deserialize=serialize_1=lib.serialize=lib.BinaryReader=lib.BinaryWriter=lib.BorshError=lib.baseDecode=lib.baseEncode=void 0;const bn_js_1=__importDefault$3(bnExports),bs58_1$1=__importDefault$3(bs58),encoding$1=__importStar(require$$2),ResolvedTextDecoder=typeof TextDecoder!="function"?encoding$1.TextDecoder:TextDecoder,textDecoder=new ResolvedTextDecoder("utf-8",{fatal:!0});function baseEncode(s){return typeof s=="string"&&(s=Buffer.from(s,"utf8")),bs58_1$1.default.encode(Buffer.from(s))}lib.baseEncode=baseEncode;function baseDecode(s){return Buffer.from(bs58_1$1.default.decode(s))}lib.baseDecode=baseDecode;const INITIAL_LENGTH=1024;class BorshError extends Error{constructor(j){super(j),this.fieldPath=[],this.originalMessage=j}addToFieldPath(j){this.fieldPath.splice(0,0,j),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}lib.BorshError=BorshError;class BinaryWriter{constructor(){this.buf=Buffer.alloc(INITIAL_LENGTH),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(INITIAL_LENGTH)]))}writeU8(j){this.maybeResize(),this.buf.writeUInt8(j,this.length),this.length+=1}writeU16(j){this.maybeResize(),this.buf.writeUInt16LE(j,this.length),this.length+=2}writeU32(j){this.maybeResize(),this.buf.writeUInt32LE(j,this.length),this.length+=4}writeU64(j){this.maybeResize(),this.writeBuffer(Buffer.from(new bn_js_1.default(j).toArray("le",8)))}writeU128(j){this.maybeResize(),this.writeBuffer(Buffer.from(new bn_js_1.default(j).toArray("le",16)))}writeU256(j){this.maybeResize(),this.writeBuffer(Buffer.from(new bn_js_1.default(j).toArray("le",32)))}writeU512(j){this.maybeResize(),this.writeBuffer(Buffer.from(new bn_js_1.default(j).toArray("le",64)))}writeBuffer(j){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),j,Buffer.alloc(INITIAL_LENGTH)]),this.length+=j.length}writeString(j){this.maybeResize();const $=Buffer.from(j,"utf8");this.writeU32($.length),this.writeBuffer($)}writeFixedArray(j){this.writeBuffer(Buffer.from(j))}writeArray(j,$){this.maybeResize(),this.writeU32(j.length);for(const _e of j)this.maybeResize(),$(_e)}toArray(){return this.buf.subarray(0,this.length)}}lib.BinaryWriter=BinaryWriter;function handlingRangeError(s,j,$){const _e=$.value;$.value=function(...et){try{return _e.apply(this,et)}catch(tt){if(tt instanceof RangeError){const nt=tt.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(nt)>=0)throw new BorshError("Reached the end of buffer when deserializing")}throw tt}}}let BinaryReader$2=class{constructor(j){this.buf=j,this.offset=0}readU8(){const j=this.buf.readUInt8(this.offset);return this.offset+=1,j}readU16(){const j=this.buf.readUInt16LE(this.offset);return this.offset+=2,j}readU32(){const j=this.buf.readUInt32LE(this.offset);return this.offset+=4,j}readU64(){const j=this.readBuffer(8);return new bn_js_1.default(j,"le")}readU128(){const j=this.readBuffer(16);return new bn_js_1.default(j,"le")}readU256(){const j=this.readBuffer(32);return new bn_js_1.default(j,"le")}readU512(){const j=this.readBuffer(64);return new bn_js_1.default(j,"le")}readBuffer(j){if(this.offset+j>this.buf.length)throw new BorshError(`Expected buffer length ${j} isn't within bounds`);const $=this.buf.slice(this.offset,this.offset+j);return this.offset+=j,$}readString(){const j=this.readU32(),$=this.readBuffer(j);try{return textDecoder.decode($)}catch(_e){throw new BorshError(`Error decoding UTF-8 string: ${_e}`)}}readFixedArray(j){return new Uint8Array(this.readBuffer(j))}readArray(j){const $=this.readU32(),_e=Array();for(let et=0;et<$;++et)_e.push(j());return _e}};__decorate([handlingRangeError],BinaryReader$2.prototype,"readU8",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU16",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU32",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU64",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU128",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU256",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU512",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readString",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readFixedArray",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readArray",null);lib.BinaryReader=BinaryReader$2;function capitalizeFirstLetter(s){return s.charAt(0).toUpperCase()+s.slice(1)}function serializeField(s,j,$,_e,et){try{if(typeof _e=="string")et[`write${capitalizeFirstLetter(_e)}`]($);else if(_e instanceof Array)if(typeof _e[0]=="number"){if($.length!==_e[0])throw new BorshError(`Expecting byte array of length ${_e[0]}, but got ${$.length} bytes`);et.writeFixedArray($)}else if(_e.length===2&&typeof _e[1]=="number"){if($.length!==_e[1])throw new BorshError(`Expecting byte array of length ${_e[1]}, but got ${$.length} bytes`);for(let tt=0;tt<_e[1];tt++)serializeField(s,null,$[tt],_e[0],et)}else et.writeArray($,tt=>{serializeField(s,j,tt,_e[0],et)});else if(_e.kind!==void 0)switch(_e.kind){case"option":{$==null?et.writeU8(0):(et.writeU8(1),serializeField(s,j,$,_e.type,et));break}case"map":{et.writeU32($.size),$.forEach((tt,nt)=>{serializeField(s,j,nt,_e.key,et),serializeField(s,j,tt,_e.value,et)});break}default:throw new BorshError(`FieldType ${_e} unrecognized`)}else serializeStruct(s,$,et)}catch(tt){throw tt instanceof BorshError&&tt.addToFieldPath(j),tt}}function serializeStruct(s,j,$){if(typeof j.borshSerialize=="function"){j.borshSerialize($);return}const _e=s.get(j.constructor);if(!_e)throw new BorshError(`Class ${j.constructor.name} is missing in schema`);if(_e.kind==="struct")_e.fields.map(([et,tt])=>{serializeField(s,et,j[et],tt,$)});else if(_e.kind==="enum"){const et=j[_e.field];for(let tt=0;tt<_e.values.length;++tt){const[nt,rt]=_e.values[tt];if(nt===et){$.writeU8(tt),serializeField(s,nt,j[nt],rt,$);break}}}else throw new BorshError(`Unexpected schema kind: ${_e.kind} for ${j.constructor.name}`)}function serialize$2(s,j,$=BinaryWriter){const _e=new $;return serializeStruct(s,j,_e),_e.toArray()}var serialize_1=lib.serialize=serialize$2;function deserializeField(s,j,$,_e){try{if(typeof $=="string")return _e[`read${capitalizeFirstLetter($)}`]();if($ instanceof Array){if(typeof $[0]=="number")return _e.readFixedArray($[0]);if(typeof $[1]=="number"){const et=[];for(let tt=0;tt<$[1];tt++)et.push(deserializeField(s,null,$[0],_e));return et}else return _e.readArray(()=>deserializeField(s,j,$[0],_e))}if($.kind==="option")return _e.readU8()?deserializeField(s,j,$.type,_e):void 0;if($.kind==="map"){let et=new Map;const tt=_e.readU32();for(let nt=0;nt=_e.values.length)throw new BorshError(`Enum index: ${et} is out of range`);const[tt,nt]=_e.values[et],rt=deserializeField(s,tt,nt,$);return new j({[tt]:rt})}throw new BorshError(`Unexpected schema kind: ${_e.kind} for ${j.constructor.name}`)}function deserialize$2(s,j,$,_e=BinaryReader$2){const et=new _e($),tt=deserializeStruct(s,j,et);if(et.offset<$.length)throw new BorshError(`Unexpected ${$.length-et.offset} bytes after deserialized data`);return tt}var deserialize_1=lib.deserialize=deserialize$2;function deserializeUnchecked(s,j,$,_e=BinaryReader$2){const et=new _e($);return deserializeStruct(s,j,et)}deserializeUnchecked_1=lib.deserializeUnchecked=deserializeUnchecked;var Layout$1={};Object.defineProperty(Layout$1,"__esModule",{value:!0});Layout$1.s16=Layout$1.s8=Layout$1.nu64be=Layout$1.u48be=Layout$1.u40be=Layout$1.u32be=Layout$1.u24be=Layout$1.u16be=nu64=Layout$1.nu64=Layout$1.u48=Layout$1.u40=u32=Layout$1.u32=Layout$1.u24=u16=Layout$1.u16=u8=Layout$1.u8=offset=Layout$1.offset=Layout$1.greedy=Layout$1.Constant=Layout$1.UTF8=Layout$1.CString=Layout$1.Blob=Layout$1.Boolean=Layout$1.BitField=Layout$1.BitStructure=Layout$1.VariantLayout=Layout$1.Union=Layout$1.UnionLayoutDiscriminator=Layout$1.UnionDiscriminator=Layout$1.Structure=Layout$1.Sequence=Layout$1.DoubleBE=Layout$1.Double=Layout$1.FloatBE=Layout$1.Float=Layout$1.NearInt64BE=Layout$1.NearInt64=Layout$1.NearUInt64BE=Layout$1.NearUInt64=Layout$1.IntBE=Layout$1.Int=Layout$1.UIntBE=Layout$1.UInt=Layout$1.OffsetLayout=Layout$1.GreedyCount=Layout$1.ExternalLayout=Layout$1.bindConstructorLayout=Layout$1.nameWithProperty=Layout$1.Layout=Layout$1.uint8ArrayToBuffer=Layout$1.checkUint8Array=void 0;Layout$1.constant=Layout$1.utf8=Layout$1.cstr=blob=Layout$1.blob=Layout$1.unionLayoutDiscriminator=Layout$1.union=seq=Layout$1.seq=Layout$1.bits=struct=Layout$1.struct=Layout$1.f64be=Layout$1.f64=Layout$1.f32be=Layout$1.f32=Layout$1.ns64be=Layout$1.s48be=Layout$1.s40be=Layout$1.s32be=Layout$1.s24be=Layout$1.s16be=ns64=Layout$1.ns64=Layout$1.s48=Layout$1.s40=Layout$1.s32=Layout$1.s24=void 0;const buffer_1$1=buffer;function checkUint8Array(s){if(!(s instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}Layout$1.checkUint8Array=checkUint8Array;function uint8ArrayToBuffer(s){return checkUint8Array(s),buffer_1$1.Buffer.from(s.buffer,s.byteOffset,s.length)}Layout$1.uint8ArrayToBuffer=uint8ArrayToBuffer;class Layout{constructor(j,$){if(!Number.isInteger(j))throw new TypeError("span must be an integer");this.span=j,this.property=$}makeDestinationObject(){return{}}getSpan(j,$){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(j){const $=Object.create(this.constructor.prototype);return Object.assign($,this),$.property=j,$}fromArray(j){}}Layout$1.Layout=Layout;function nameWithProperty(s,j){return j.property?s+"["+j.property+"]":s}Layout$1.nameWithProperty=nameWithProperty;function bindConstructorLayout(s,j){if(typeof s!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(s,"layout_"))throw new Error("Class is already bound to a layout");if(!(j&&j instanceof Layout))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(j,"boundConstructor_"))throw new Error("layout is already bound to a constructor");s.layout_=j,j.boundConstructor_=s,j.makeDestinationObject=()=>new s,Object.defineProperty(s.prototype,"encode",{value($,_e){return j.encode(this,$,_e)},writable:!0}),Object.defineProperty(s,"decode",{value($,_e){return j.decode($,_e)},writable:!0})}Layout$1.bindConstructorLayout=bindConstructorLayout;class ExternalLayout extends Layout{isCount(){throw new Error("ExternalLayout is abstract")}}Layout$1.ExternalLayout=ExternalLayout;class GreedyCount extends ExternalLayout{constructor(j=1,$){if(!Number.isInteger(j)||0>=j)throw new TypeError("elementSpan must be a (positive) integer");super(-1,$),this.elementSpan=j}isCount(){return!0}decode(j,$=0){checkUint8Array(j);const _e=j.length-$;return Math.floor(_e/this.elementSpan)}encode(j,$,_e){return 0}}Layout$1.GreedyCount=GreedyCount;class OffsetLayout extends ExternalLayout{constructor(j,$=0,_e){if(!(j instanceof Layout))throw new TypeError("layout must be a Layout");if(!Number.isInteger($))throw new TypeError("offset must be integer or undefined");super(j.span,_e||j.property),this.layout=j,this.offset=$}isCount(){return this.layout instanceof UInt||this.layout instanceof UIntBE}decode(j,$=0){return this.layout.decode(j,$+this.offset)}encode(j,$,_e=0){return this.layout.encode(j,$,_e+this.offset)}}Layout$1.OffsetLayout=OffsetLayout;class UInt extends Layout{constructor(j,$){if(super(j,$),6nt+et.encode(rt,$,_e+nt),0);return this.count instanceof ExternalLayout&&this.count.encode(j.length,$,_e),tt}}Layout$1.Sequence=Sequence;class Structure extends Layout{constructor(j,$,_e){if(!(Array.isArray(j)&&j.reduce((tt,nt)=>tt&&nt instanceof Layout,!0)))throw new TypeError("fields must be array of Layout instances");typeof $=="boolean"&&_e===void 0&&(_e=$,$=void 0);for(const tt of j)if(0>tt.span&&tt.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let et=-1;try{et=j.reduce((tt,nt)=>tt+nt.getSpan(),0)}catch{}super(et,$),this.fields=j,this.decodePrefixes=!!_e}getSpan(j,$=0){if(0<=this.span)return this.span;let _e=0;try{_e=this.fields.reduce((et,tt)=>{const nt=tt.getSpan(j,$);return $+=nt,et+nt},0)}catch{throw new RangeError("indeterminate span")}return _e}decode(j,$=0){checkUint8Array(j);const _e=this.makeDestinationObject();for(const et of this.fields)if(et.property!==void 0&&(_e[et.property]=et.decode(j,$)),$+=et.getSpan(j,$),this.decodePrefixes&&j.length===$)break;return _e}encode(j,$,_e=0){const et=_e;let tt=0,nt=0;for(const rt of this.fields){let ot=rt.span;if(nt=0ot&&(ot=rt.getSpan($,_e)))}tt=_e,_e+=ot}return tt+nt-et}fromArray(j){const $=this.makeDestinationObject();for(const _e of this.fields)_e.property!==void 0&&0_e.span?$=-1:0<=$&&($+=_e.span)}}}Layout$1.Structure=Structure;class UnionDiscriminator{constructor(j){this.property=j}decode(j,$){throw new Error("UnionDiscriminator is abstract")}encode(j,$,_e){throw new Error("UnionDiscriminator is abstract")}}Layout$1.UnionDiscriminator=UnionDiscriminator;class UnionLayoutDiscriminator extends UnionDiscriminator{constructor(j,$){if(!(j instanceof ExternalLayout&&j.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super($||j.property||"variant"),this.layout=j}decode(j,$){return this.layout.decode(j,$)}encode(j,$,_e){return this.layout.encode(j,$,_e)}}Layout$1.UnionLayoutDiscriminator=UnionLayoutDiscriminator;class Union extends Layout{constructor(j,$,_e){let et;if(j instanceof UInt||j instanceof UIntBE)et=new UnionLayoutDiscriminator(new OffsetLayout(j));else if(j instanceof ExternalLayout&&j.isCount())et=new UnionLayoutDiscriminator(j);else if(j instanceof UnionDiscriminator)et=j;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if($===void 0&&($=null),!($===null||$ instanceof Layout))throw new TypeError("defaultLayout must be null or a Layout");if($!==null){if(0>$.span)throw new Error("defaultLayout must have constant span");$.property===void 0&&($=$.replicate("content"))}let tt=-1;$&&(tt=$.span,0<=tt&&(j instanceof UInt||j instanceof UIntBE)&&(tt+=et.layout.span)),super(tt,_e),this.discriminator=et,this.usesPrefixDiscriminator=j instanceof UInt||j instanceof UIntBE,this.defaultLayout=$,this.registry={};let nt=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(rt){return nt(rt)},this.configGetSourceVariant=function(rt){nt=rt.bind(this)}}getSpan(j,$=0){if(0<=this.span)return this.span;const _e=this.getVariant(j,$);if(!_e)throw new Error("unable to determine span for unrecognized variant");return _e.getSpan(j,$)}defaultGetSourceVariant(j){if(Object.prototype.hasOwnProperty.call(j,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(j,this.defaultLayout.property))return;const $=this.registry[j[this.discriminator.property]];if($&&(!$.layout||$.property&&Object.prototype.hasOwnProperty.call(j,$.property)))return $}else for(const $ in this.registry){const _e=this.registry[$];if(_e.property&&Object.prototype.hasOwnProperty.call(j,_e.property))return _e}throw new Error("unable to infer src variant")}decode(j,$=0){let _e;const et=this.discriminator,tt=et.decode(j,$),nt=this.registry[tt];if(nt===void 0){const rt=this.defaultLayout;let ot=0;this.usesPrefixDiscriminator&&(ot=et.layout.span),_e=this.makeDestinationObject(),_e[et.property]=tt,_e[rt.property]=rt.decode(j,$+ot)}else _e=nt.decode(j,$);return _e}encode(j,$,_e=0){const et=this.getSourceVariant(j);if(et===void 0){const tt=this.discriminator,nt=this.defaultLayout;let rt=0;return this.usesPrefixDiscriminator&&(rt=tt.layout.span),tt.encode(j[tt.property],$,_e),rt+nt.encode(j[nt.property],$,_e+rt)}return et.encode(j,$,_e)}addVariant(j,$,_e){const et=new VariantLayout(this,j,$,_e);return this.registry[j]=et,et}getVariant(j,$=0){let _e;return j instanceof Uint8Array?_e=this.discriminator.decode(j,$):_e=j,this.registry[_e]}}Layout$1.Union=Union;class VariantLayout extends Layout{constructor(j,$,_e,et){if(!(j instanceof Union))throw new TypeError("union must be a Union");if(!Number.isInteger($)||0>$)throw new TypeError("variant must be a (non-negative) integer");if(typeof _e=="string"&&et===void 0&&(et=_e,_e=null),_e){if(!(_e instanceof Layout))throw new TypeError("layout must be a Layout");if(j.defaultLayout!==null&&0<=_e.span&&_e.span>j.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof et!="string")throw new TypeError("variant must have a String property")}let tt=j.span;0>j.span&&(tt=_e?_e.span:0,0<=tt&&j.usesPrefixDiscriminator&&(tt+=j.discriminator.layout.span)),super(tt,et),this.union=j,this.variant=$,this.layout=_e||null}getSpan(j,$=0){if(0<=this.span)return this.span;let _e=0;this.union.usesPrefixDiscriminator&&(_e=this.union.discriminator.layout.span);let et=0;return this.layout&&(et=this.layout.getSpan(j,$+_e)),_e+et}decode(j,$=0){const _e=this.makeDestinationObject();if(this!==this.union.getVariant(j,$))throw new Error("variant mismatch");let et=0;return this.union.usesPrefixDiscriminator&&(et=this.union.discriminator.layout.span),this.layout?_e[this.property]=this.layout.decode(j,$+et):this.property?_e[this.property]=!0:this.union.usesPrefixDiscriminator&&(_e[this.union.discriminator.property]=this.variant),_e}encode(j,$,_e=0){let et=0;if(this.union.usesPrefixDiscriminator&&(et=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(j,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,$,_e);let tt=et;if(this.layout&&(this.layout.encode(j[this.property],$,_e+et),tt+=this.layout.getSpan($,_e+et),0<=this.union.span&&tt>this.union.span))throw new Error("encoded variant overruns containing union");return tt}fromArray(j){if(this.layout)return this.layout.fromArray(j)}}Layout$1.VariantLayout=VariantLayout;function fixBitwiseResult(s){return 0>s&&(s+=4294967296),s}class BitStructure extends Layout{constructor(j,$,_e){if(!(j instanceof UInt||j instanceof UIntBE))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof $=="string"&&_e===void 0&&(_e=$,$=!1),4=$)throw new TypeError("bits must be positive integer");const et=8*j.span,tt=j.fields.reduce((nt,rt)=>nt+rt.bits,0);if($+tt>et)throw new Error("bits too long for span remainder ("+(et-tt)+" of "+et+" remain)");this.container=j,this.bits=$,this.valueMask=(1<<$)-1,$===32&&(this.valueMask=4294967295),this.start=tt,this.container.msb&&(this.start=et-tt-$),this.wordMask=fixBitwiseResult(this.valueMask<>>this.start}encode(j){if(typeof j!="number"||!Number.isInteger(j)||j!==fixBitwiseResult(j&this.valueMask))throw new TypeError(nameWithProperty("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const $=this.container._packedGetValue(),_e=fixBitwiseResult(j<_e&&(_e=this.length.decode(j,$)),_e}decode(j,$=0){let _e=this.span;return 0>_e&&(_e=this.length.decode(j,$)),uint8ArrayToBuffer(j).slice($,$+_e)}encode(j,$,_e){let et=this.length;if(this.length instanceof ExternalLayout&&(et=j.length),!(j instanceof Uint8Array&&et===j.length))throw new TypeError(nameWithProperty("Blob.encode",this)+" requires (length "+et+") Uint8Array as src");if(_e+et>$.length)throw new RangeError("encoding overruns Uint8Array");const tt=uint8ArrayToBuffer(j);return uint8ArrayToBuffer($).write(tt.toString("hex"),_e,et,"hex"),this.length instanceof ExternalLayout&&this.length.encode(et,$,_e),et}};Layout$1.Blob=Blob$2;class CString extends Layout{constructor(j){super(-1,j)}getSpan(j,$=0){checkUint8Array(j);let _e=$;for(;_e$.length)throw new RangeError("encoding overruns Buffer");const nt=uint8ArrayToBuffer($);return et.copy(nt,_e),nt[_e+tt]=0,tt+1}}Layout$1.CString=CString;class UTF8 extends Layout{constructor(j,$){if(typeof j=="string"&&$===void 0&&($=j,j=void 0),j===void 0)j=-1;else if(!Number.isInteger(j))throw new TypeError("maxSpan must be an integer");super(-1,$),this.maxSpan=j}getSpan(j,$=0){return checkUint8Array(j),j.length-$}decode(j,$=0){const _e=this.getSpan(j,$);if(0<=this.maxSpan&&this.maxSpan<_e)throw new RangeError("text length exceeds maxSpan");return uint8ArrayToBuffer(j).slice($,$+_e).toString("utf-8")}encode(j,$,_e=0){typeof j!="string"&&(j=String(j));const et=buffer_1$1.Buffer.from(j,"utf8"),tt=et.length;if(0<=this.maxSpan&&this.maxSpan$.length)throw new RangeError("encoding overruns Buffer");return et.copy(uint8ArrayToBuffer($),_e),tt}}Layout$1.UTF8=UTF8;class Constant extends Layout{constructor(j,$){super(0,$),this.value=j}decode(j,$){return this.value}encode(j,$,_e){return 0}}Layout$1.Constant=Constant;Layout$1.greedy=(s,j)=>new GreedyCount(s,j);var offset=Layout$1.offset=(s,j,$)=>new OffsetLayout(s,j,$),u8=Layout$1.u8=s=>new UInt(1,s),u16=Layout$1.u16=s=>new UInt(2,s);Layout$1.u24=s=>new UInt(3,s);var u32=Layout$1.u32=s=>new UInt(4,s);Layout$1.u40=s=>new UInt(5,s);Layout$1.u48=s=>new UInt(6,s);var nu64=Layout$1.nu64=s=>new NearUInt64(s);Layout$1.u16be=s=>new UIntBE(2,s);Layout$1.u24be=s=>new UIntBE(3,s);Layout$1.u32be=s=>new UIntBE(4,s);Layout$1.u40be=s=>new UIntBE(5,s);Layout$1.u48be=s=>new UIntBE(6,s);Layout$1.nu64be=s=>new NearUInt64BE(s);Layout$1.s8=s=>new Int(1,s);Layout$1.s16=s=>new Int(2,s);Layout$1.s24=s=>new Int(3,s);Layout$1.s32=s=>new Int(4,s);Layout$1.s40=s=>new Int(5,s);Layout$1.s48=s=>new Int(6,s);var ns64=Layout$1.ns64=s=>new NearInt64(s);Layout$1.s16be=s=>new IntBE(2,s);Layout$1.s24be=s=>new IntBE(3,s);Layout$1.s32be=s=>new IntBE(4,s);Layout$1.s40be=s=>new IntBE(5,s);Layout$1.s48be=s=>new IntBE(6,s);Layout$1.ns64be=s=>new NearInt64BE(s);Layout$1.f32=s=>new Float(s);Layout$1.f32be=s=>new FloatBE(s);Layout$1.f64=s=>new Double(s);Layout$1.f64be=s=>new DoubleBE(s);var struct=Layout$1.struct=(s,j,$)=>new Structure(s,j,$);Layout$1.bits=(s,j,$)=>new BitStructure(s,j,$);var seq=Layout$1.seq=(s,j,$)=>new Sequence(s,j,$);Layout$1.union=(s,j,$)=>new Union(s,j,$);Layout$1.unionLayoutDiscriminator=(s,j)=>new UnionLayoutDiscriminator(s,j);var blob=Layout$1.blob=(s,j)=>new Blob$2(s,j);Layout$1.cstr=s=>new CString(s);Layout$1.utf8=(s,j)=>new UTF8(s,j);Layout$1.constant=(s,j)=>new Constant(s,j);var browser$1={};Object.defineProperty(browser$1,"__esModule",{value:!0});function toBigIntLE(s){{const j=Buffer.from(s);j.reverse();const $=j.toString("hex");return $.length===0?BigInt(0):BigInt(`0x${$}`)}}var toBigIntLE_1=browser$1.toBigIntLE=toBigIntLE;function toBigIntBE(s){{const j=s.toString("hex");return j.length===0?BigInt(0):BigInt(`0x${j}`)}}browser$1.toBigIntBE=toBigIntBE;function toBufferLE(s,j){{const $=s.toString(16),_e=Buffer.from($.padStart(j*2,"0").slice(0,j*2),"hex");return _e.reverse(),_e}}var toBufferLE_1=browser$1.toBufferLE=toBufferLE;function toBufferBE(s,j){{const $=s.toString(16);return Buffer.from($.padStart(j*2,"0").slice(0,j*2),"hex")}}browser$1.toBufferBE=toBufferBE;class StructError extends TypeError{constructor(j,$){let _e;const{message:et,explanation:tt,...nt}=j,{path:rt}=j,ot=rt.length===0?et:`At path: ${rt.join(".")} -- ${et}`;super(tt??ot),tt!=null&&(this.cause=ot),Object.assign(this,nt),this.name=this.constructor.name,this.failures=()=>_e??(_e=[j,...$()])}}function isIterable(s){return isObject$1(s)&&typeof s[Symbol.iterator]=="function"}function isObject$1(s){return typeof s=="object"&&s!=null}function isNonArrayObject(s){return isObject$1(s)&&!Array.isArray(s)}function print(s){return typeof s=="symbol"?s.toString():typeof s=="string"?JSON.stringify(s):`${s}`}function shiftIterator(s){const{done:j,value:$}=s.next();return j?void 0:$}function toFailure(s,j,$,_e){if(s===!0)return;s===!1?s={}:typeof s=="string"&&(s={message:s});const{path:et,branch:tt}=j,{type:nt}=$,{refinement:rt,message:ot=`Expected a value of type \`${nt}\`${rt?` with refinement \`${rt}\``:""}, but received: \`${print(_e)}\``}=s;return{value:_e,type:nt,refinement:rt,key:et[et.length-1],path:et,branch:tt,...s,message:ot}}function*toFailures(s,j,$,_e){isIterable(s)||(s=[s]);for(const et of s){const tt=toFailure(et,j,$,_e);tt&&(yield tt)}}function*run(s,j,$={}){const{path:_e=[],branch:et=[s],coerce:tt=!1,mask:nt=!1}=$,rt={path:_e,branch:et,mask:nt};tt&&(s=j.coercer(s,rt));let ot="valid";for(const it of j.validator(s,rt))it.explanation=$.message,ot="not_valid",yield[it,void 0];for(let[it,st,at]of j.entries(s,rt)){const ct=run(st,at,{path:it===void 0?_e:[..._e,it],branch:it===void 0?et:[...et,st],coerce:tt,mask:nt,message:$.message});for(const lt of ct)lt[0]?(ot=lt[0].refinement!=null?"not_refined":"not_valid",yield[lt[0],void 0]):tt&&(st=lt[1],it===void 0?s=st:s instanceof Map?s.set(it,st):s instanceof Set?s.add(st):isObject$1(s)&&(st!==void 0||it in s)&&(s[it]=st))}if(ot!=="not_valid")for(const it of j.refiner(s,rt))it.explanation=$.message,ot="not_refined",yield[it,void 0];ot==="valid"&&(yield[void 0,s])}let Struct$1=class{constructor(j){const{type:$,schema:_e,validator:et,refiner:tt,coercer:nt=ot=>ot,entries:rt=function*(){}}=j;this.type=$,this.schema=_e,this.entries=rt,this.coercer=nt,et?this.validator=(ot,it)=>{const st=et(ot,it);return toFailures(st,it,this,ot)}:this.validator=()=>[],tt?this.refiner=(ot,it)=>{const st=tt(ot,it);return toFailures(st,it,this,ot)}:this.refiner=()=>[]}assert(j,$){return assert$1(j,this,$)}create(j,$){return create$4(j,this,$)}is(j){return is(j,this)}mask(j,$){return mask(j,this,$)}validate(j,$={}){return validate$1(j,this,$)}};function assert$1(s,j,$){const _e=validate$1(s,j,{message:$});if(_e[0])throw _e[0]}function create$4(s,j,$){const _e=validate$1(s,j,{coerce:!0,message:$});if(_e[0])throw _e[0];return _e[1]}function mask(s,j,$){const _e=validate$1(s,j,{coerce:!0,mask:!0,message:$});if(_e[0])throw _e[0];return _e[1]}function is(s,j){return!validate$1(s,j)[0]}function validate$1(s,j,$={}){const _e=run(s,j,$),et=shiftIterator(_e);return et[0]?[new StructError(et[0],function*(){for(const nt of _e)nt[0]&&(yield nt[0])}),void 0]:[void 0,et[1]]}function define(s,j){return new Struct$1({type:s,schema:null,validator:j})}function any(){return define("any",()=>!0)}function array$1(s){return new Struct$1({type:"array",schema:s,*entries(j){if(s&&Array.isArray(j))for(const[$,_e]of j.entries())yield[$,_e,s]},coercer(j){return Array.isArray(j)?j.slice():j},validator(j){return Array.isArray(j)||`Expected an array value, but received: ${print(j)}`}})}function boolean$1(){return define("boolean",s=>typeof s=="boolean")}function instance(s){return define("instance",j=>j instanceof s||`Expected a \`${s.name}\` instance, but received: ${print(j)}`)}function literal(s){const j=print(s),$=typeof s;return new Struct$1({type:"literal",schema:$==="string"||$==="number"||$==="boolean"?s:null,validator(_e){return _e===s||`Expected the literal \`${j}\`, but received: ${print(_e)}`}})}function never(){return define("never",()=>!1)}function nullable(s){return new Struct$1({...s,validator:(j,$)=>j===null||s.validator(j,$),refiner:(j,$)=>j===null||s.refiner(j,$)})}function number(){return define("number",s=>typeof s=="number"&&!isNaN(s)||`Expected a number, but received: ${print(s)}`)}function optional(s){return new Struct$1({...s,validator:(j,$)=>j===void 0||s.validator(j,$),refiner:(j,$)=>j===void 0||s.refiner(j,$)})}function record(s,j){return new Struct$1({type:"record",schema:null,*entries($){if(isObject$1($))for(const _e in $){const et=$[_e];yield[_e,_e,s],yield[_e,et,j]}},validator($){return isNonArrayObject($)||`Expected an object, but received: ${print($)}`},coercer($){return isNonArrayObject($)?{...$}:$}})}function string$1(){return define("string",s=>typeof s=="string"||`Expected a string, but received: ${print(s)}`)}function tuple(s){const j=never();return new Struct$1({type:"tuple",schema:null,*entries($){if(Array.isArray($)){const _e=Math.max(s.length,$.length);for(let et=0;et<_e;et++)yield[et,$[et],s[et]||j]}},validator($){return Array.isArray($)||`Expected an array, but received: ${print($)}`},coercer($){return Array.isArray($)?$.slice():$}})}function type(s){const j=Object.keys(s);return new Struct$1({type:"type",schema:s,*entries($){if(isObject$1($))for(const _e of j)yield[_e,$[_e],s[_e]]},validator($){return isNonArrayObject($)||`Expected an object, but received: ${print($)}`},coercer($){return isNonArrayObject($)?{...$}:$}})}function union(s){const j=s.map($=>$.type).join(" | ");return new Struct$1({type:"union",schema:null,coercer($,_e){for(const et of s){const[tt,nt]=et.validate($,{coerce:!0,mask:_e.mask});if(!tt)return nt}return $},validator($,_e){const et=[];for(const tt of s){const[...nt]=run($,tt,_e),[rt]=nt;if(rt[0])for(const[ot]of nt)ot&&et.push(ot);else return[]}return[`Expected the value to satisfy a union of \`${j}\`, but received: ${print($)}`,...et]}})}function unknown(){return define("unknown",()=>!0)}function coerce(s,j,$){return new Struct$1({...s,coercer:(_e,et)=>is(_e,j)?s.coercer($(_e,et),et):s.coercer(_e,et)})}var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(s){return typeof s=="string"&®EX.test(s)}var byteToHex=[];for(var i$1=0;i$1<256;++i$1)byteToHex.push((i$1+256).toString(16).substr(1));function stringify$1(s){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$=(byteToHex[s[j+0]]+byteToHex[s[j+1]]+byteToHex[s[j+2]]+byteToHex[s[j+3]]+"-"+byteToHex[s[j+4]]+byteToHex[s[j+5]]+"-"+byteToHex[s[j+6]]+byteToHex[s[j+7]]+"-"+byteToHex[s[j+8]]+byteToHex[s[j+9]]+"-"+byteToHex[s[j+10]]+byteToHex[s[j+11]]+byteToHex[s[j+12]]+byteToHex[s[j+13]]+byteToHex[s[j+14]]+byteToHex[s[j+15]]).toLowerCase();if(!validate($))throw TypeError("Stringified UUID is invalid");return $}var _nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1(s,j,$){var _e=j&&$||0,et=j||new Array(16);s=s||{};var tt=s.node||_nodeId,nt=s.clockseq!==void 0?s.clockseq:_clockseq;if(tt==null||nt==null){var rt=s.random||(s.rng||rng)();tt==null&&(tt=_nodeId=[rt[0]|1,rt[1],rt[2],rt[3],rt[4],rt[5]]),nt==null&&(nt=_clockseq=(rt[6]<<8|rt[7])&16383)}var ot=s.msecs!==void 0?s.msecs:Date.now(),it=s.nsecs!==void 0?s.nsecs:_lastNSecs+1,st=ot-_lastMSecs+(it-_lastNSecs)/1e4;if(st<0&&s.clockseq===void 0&&(nt=nt+1&16383),(st<0||ot>_lastMSecs)&&s.nsecs===void 0&&(it=0),it>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=ot,_lastNSecs=it,_clockseq=nt,ot+=122192928e5;var at=((ot&268435455)*1e4+it)%4294967296;et[_e++]=at>>>24&255,et[_e++]=at>>>16&255,et[_e++]=at>>>8&255,et[_e++]=at&255;var ct=ot/4294967296*1e4&268435455;et[_e++]=ct>>>8&255,et[_e++]=ct&255,et[_e++]=ct>>>24&15|16,et[_e++]=ct>>>16&255,et[_e++]=nt>>>8|128,et[_e++]=nt&255;for(var lt=0;lt<6;++lt)et[_e+lt]=tt[lt];return j||stringify$1(et)}function parse$1(s){if(!validate(s))throw TypeError("Invalid UUID");var j,$=new Uint8Array(16);return $[0]=(j=parseInt(s.slice(0,8),16))>>>24,$[1]=j>>>16&255,$[2]=j>>>8&255,$[3]=j&255,$[4]=(j=parseInt(s.slice(9,13),16))>>>8,$[5]=j&255,$[6]=(j=parseInt(s.slice(14,18),16))>>>8,$[7]=j&255,$[8]=(j=parseInt(s.slice(19,23),16))>>>8,$[9]=j&255,$[10]=(j=parseInt(s.slice(24,36),16))/1099511627776&255,$[11]=j/4294967296&255,$[12]=j>>>24&255,$[13]=j>>>16&255,$[14]=j>>>8&255,$[15]=j&255,$}function stringToBytes(s){s=unescape(encodeURIComponent(s));for(var j=[],$=0;$>5]>>>et%32&255,nt=parseInt(_e.charAt(tt>>>4&15)+_e.charAt(tt&15),16);j.push(nt)}return j}function getOutputLength(s){return(s+64>>>9<<4)+14+1}function wordsToMd5(s,j){s[j>>5]|=128<>5]|=(s[_e/8]&255)<<_e%32;return $}function safeAdd(s,j){var $=(s&65535)+(j&65535),_e=(s>>16)+(j>>16)+($>>16);return _e<<16|$&65535}function bitRotateLeft(s,j){return s<>>32-j}function md5cmn(s,j,$,_e,et,tt){return safeAdd(bitRotateLeft(safeAdd(safeAdd(j,s),safeAdd(_e,tt)),et),$)}function md5ff(s,j,$,_e,et,tt,nt){return md5cmn(j&$|~j&_e,s,j,et,tt,nt)}function md5gg(s,j,$,_e,et,tt,nt){return md5cmn(j&_e|$&~_e,s,j,et,tt,nt)}function md5hh(s,j,$,_e,et,tt,nt){return md5cmn(j^$^_e,s,j,et,tt,nt)}function md5ii(s,j,$,_e,et,tt,nt){return md5cmn($^(j|~_e),s,j,et,tt,nt)}var v3=v35("v3",48,md5);const v3$1=v3;function v4(s,j,$){s=s||{};var _e=s.random||(s.rng||rng)();if(_e[6]=_e[6]&15|64,_e[8]=_e[8]&63|128,j){$=$||0;for(var et=0;et<16;++et)j[$+et]=_e[et];return j}return stringify$1(_e)}function f(s,j,$,_e){switch(s){case 0:return j&$^~j&_e;case 1:return j^$^_e;case 2:return j&$^j&_e^$&_e;case 3:return j^$^_e}}function ROTL(s,j){return s<>>32-j}function sha1(s){var j=[1518500249,1859775393,2400959708,3395469782],$=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){var _e=unescape(encodeURIComponent(s));s=[];for(var et=0;et<_e.length;++et)s.push(_e.charCodeAt(et))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);for(var tt=s.length/4+2,nt=Math.ceil(tt/16),rt=new Array(nt),ot=0;ot>>0;ft=gt,gt=yt,yt=ROTL(ht,30)>>>0,ht=pt,pt=jt}$[0]=$[0]+pt>>>0,$[1]=$[1]+ht>>>0,$[2]=$[2]+yt>>>0,$[3]=$[3]+gt>>>0,$[4]=$[4]+ft>>>0}return[$[0]>>24&255,$[0]>>16&255,$[0]>>8&255,$[0]&255,$[1]>>24&255,$[1]>>16&255,$[1]>>8&255,$[1]&255,$[2]>>24&255,$[2]>>16&255,$[2]>>8&255,$[2]&255,$[3]>>24&255,$[3]>>16&255,$[3]>>8&255,$[3]&255,$[4]>>24&255,$[4]>>16&255,$[4]>>8&255,$[4]&255]}var v5=v35("v5",80,sha1);const v5$1=v5,nil="00000000-0000-0000-0000-000000000000";function version(s){if(!validate(s))throw TypeError("Invalid UUID");return parseInt(s.substr(14,1),16)}const esmBrowser=Object.freeze(Object.defineProperty({__proto__:null,NIL:nil,parse:parse$1,stringify:stringify$1,v1,v3:v3$1,v4,v5:v5$1,validate,version},Symbol.toStringTag,{value:"Module"})),require$$0$5=getAugmentedNamespace(esmBrowser),uuid$1=require$$0$5.v4,generateRequest$1=function(s,j,$,_e){if(typeof s!="string")throw new TypeError(s+" must be a string");_e=_e||{};const et=typeof _e.version=="number"?_e.version:2;if(et!==1&&et!==2)throw new TypeError(et+" must be 1 or 2");const tt={method:s};if(et===2&&(tt.jsonrpc="2.0"),j){if(typeof j!="object"&&!Array.isArray(j))throw new TypeError(j+" must be an object, array or omitted");tt.params=j}if(typeof $>"u"){const nt=typeof _e.generator=="function"?_e.generator:function(){return uuid$1()};tt.id=nt(tt,_e)}else et===2&&$===null?_e.notificationIdNull&&(tt.id=null):tt.id=$;return tt};var generateRequest_1=generateRequest$1;const uuid=require$$0$5.v4,generateRequest=generateRequest_1,ClientBrowser=function(s,j){if(!(this instanceof ClientBrowser))return new ClientBrowser(s,j);j||(j={}),this.options={reviver:typeof j.reviver<"u"?j.reviver:null,replacer:typeof j.replacer<"u"?j.replacer:null,generator:typeof j.generator<"u"?j.generator:function(){return uuid()},version:typeof j.version<"u"?j.version:2,notificationIdNull:typeof j.notificationIdNull=="boolean"?j.notificationIdNull:!1},this.callServer=s};var browser=ClientBrowser;ClientBrowser.prototype.request=function(s,j,$,_e){const et=this;let tt=null;const nt=Array.isArray(s)&&typeof j=="function";if(this.options.version===1&&nt)throw new TypeError("JSON-RPC 1.0 does not support batching");if(nt||!nt&&s&&typeof s=="object"&&typeof j=="function")_e=j,tt=s;else{typeof $=="function"&&(_e=$,$=void 0);const it=typeof _e=="function";try{tt=generateRequest(s,j,$,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(st){if(it)return _e(st);throw st}if(!it)return tt}let ot;try{ot=JSON.stringify(tt,this.options.replacer)}catch(it){return _e(it)}return this.callServer(ot,function(it,st){et._parseResponse(it,st,_e)}),tt};ClientBrowser.prototype._parseResponse=function(s,j,$){if(s){$(s);return}if(!j)return $();let _e;try{_e=JSON.parse(j,this.options.reviver)}catch(et){return $(et)}if($.length===3)if(Array.isArray(_e)){const et=function(nt){return typeof nt.error<"u"},tt=function(nt){return!et(nt)};return $(null,_e.filter(et),_e.filter(tt))}else return $(null,_e.error,_e.result);$(null,_e)};const RpcClient=getDefaultExportFromCjs$1(browser);var eventemitter3={exports:{}};(function(s){var j=Object.prototype.hasOwnProperty,$="~";function _e(){}Object.create&&(_e.prototype=Object.create(null),new _e().__proto__||($=!1));function et(ot,it,st){this.fn=ot,this.context=it,this.once=st||!1}function tt(ot,it,st,at,ct){if(typeof st!="function")throw new TypeError("The listener must be a function");var lt=new et(st,at||ot,ct),dt=$?$+it:it;return ot._events[dt]?ot._events[dt].fn?ot._events[dt]=[ot._events[dt],lt]:ot._events[dt].push(lt):(ot._events[dt]=lt,ot._eventsCount++),ot}function nt(ot,it){--ot._eventsCount===0?ot._events=new _e:delete ot._events[it]}function rt(){this._events=new _e,this._eventsCount=0}rt.prototype.eventNames=function(){var it=[],st,at;if(this._eventsCount===0)return it;for(at in st=this._events)j.call(st,at)&&it.push($?at.slice(1):at);return Object.getOwnPropertySymbols?it.concat(Object.getOwnPropertySymbols(st)):it},rt.prototype.listeners=function(it){var st=$?$+it:it,at=this._events[st];if(!at)return[];if(at.fn)return[at.fn];for(var ct=0,lt=at.length,dt=new Array(lt);ctthis.emit("open"),this.socket.onmessage=et=>this.emit("message",et.data),this.socket.onerror=et=>this.emit("error",et),this.socket.onclose=et=>{this.emit("close",et.code,et.reason)}}send(j,$,_e){const et=_e||$;try{this.socket.send(j),et()}catch(tt){et(tt)}}close(j,$){this.socket.close(j,$)}addEventListener(j,$,_e){this.socket.addEventListener(j,$,_e)}};function WebSocket$1(s,j){return new WebSocketBrowserImpl(s,j)}var DefaultDataPack=class{encode(s){return JSON.stringify(s)}decode(s){return JSON.parse(s)}},CommonClient=class extends EventEmitter$1{constructor(j,$="ws://localhost:8080",{autoconnect:_e=!0,reconnect:et=!0,reconnect_interval:tt=1e3,max_reconnects:nt=5,...rt}={},ot,it){super();Mn(this,"address");Mn(this,"rpc_id");Mn(this,"queue");Mn(this,"options");Mn(this,"autoconnect");Mn(this,"ready");Mn(this,"reconnect");Mn(this,"reconnect_timer_id");Mn(this,"reconnect_interval");Mn(this,"max_reconnects");Mn(this,"rest_options");Mn(this,"current_reconnects");Mn(this,"generate_request_id");Mn(this,"socket");Mn(this,"webSocketFactory");Mn(this,"dataPack");this.webSocketFactory=j,this.queue={},this.rpc_id=0,this.address=$,this.autoconnect=_e,this.ready=!1,this.reconnect=et,this.reconnect_timer_id=void 0,this.reconnect_interval=tt,this.max_reconnects=nt,this.rest_options=rt,this.current_reconnects=0,this.generate_request_id=ot||(()=>++this.rpc_id),it?this.dataPack=it:this.dataPack=new DefaultDataPack,this.autoconnect&&this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}connect(){this.socket||this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}call(j,$,_e,et){return!et&&typeof _e=="object"&&(et=_e,_e=null),new Promise((tt,nt)=>{if(!this.ready)return nt(new Error("socket not ready"));const rt=this.generate_request_id(j,$),ot={jsonrpc:"2.0",method:j,params:$||void 0,id:rt};this.socket.send(this.dataPack.encode(ot),et,it=>{if(it)return nt(it);this.queue[rt]={promise:[tt,nt]},_e&&(this.queue[rt].timeout=setTimeout(()=>{delete this.queue[rt],nt(new Error("reply timeout"))},_e))})})}async login(j){const $=await this.call("rpc.login",j);if(!$)throw new Error("authentication failed");return $}async listMethods(){return await this.call("__listMethods")}notify(j,$){return new Promise((_e,et)=>{if(!this.ready)return et(new Error("socket not ready"));const tt={jsonrpc:"2.0",method:j,params:$};this.socket.send(this.dataPack.encode(tt),nt=>{if(nt)return et(nt);_e()})})}async subscribe(j){typeof j=="string"&&(j=[j]);const $=await this.call("rpc.on",j);if(typeof j=="string"&&$[j]!=="ok")throw new Error("Failed subscribing to an event '"+j+"' with: "+$[j]);return $}async unsubscribe(j){typeof j=="string"&&(j=[j]);const $=await this.call("rpc.off",j);if(typeof j=="string"&&$[j]!=="ok")throw new Error("Failed unsubscribing from an event with: "+$);return $}close(j,$){this.socket.close(j||1e3,$)}setAutoReconnect(j){this.reconnect=j}setReconnectInterval(j){this.reconnect_interval=j}setMaxReconnects(j){this.max_reconnects=j}_connect(j,$){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(j,$),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",({data:_e})=>{_e instanceof ArrayBuffer&&(_e=buffer.Buffer.from(_e).toString());try{_e=this.dataPack.decode(_e)}catch{return}if(_e.notification&&this.listeners(_e.notification).length){if(!Object.keys(_e.params).length)return this.emit(_e.notification);const et=[_e.notification];if(_e.params.constructor===Object)et.push(_e.params);else for(let tt=0;tt<_e.params.length;tt++)et.push(_e.params[tt]);return Promise.resolve().then(()=>{this.emit.apply(this,et)})}if(!this.queue[_e.id])return _e.method?Promise.resolve().then(()=>{this.emit(_e.method,_e==null?void 0:_e.params)}):void 0;"error"in _e=="result"in _e&&this.queue[_e.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),this.queue[_e.id].timeout&&clearTimeout(this.queue[_e.id].timeout),_e.error?this.queue[_e.id].promise[1](_e.error):this.queue[_e.id].promise[0](_e.result),delete this.queue[_e.id]}),this.socket.addEventListener("error",_e=>this.emit("error",_e)),this.socket.addEventListener("close",({code:_e,reason:et})=>{this.ready&&setTimeout(()=>this.emit("close",_e,et),0),this.ready=!1,this.socket=void 0,_e!==1e3&&(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||this.max_reconnects===0)&&(this.reconnect_timer_id=setTimeout(()=>this._connect(j,$),this.reconnect_interval)))})}};const U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(s,j=!1){return j?{h:Number(s&U32_MASK64),l:Number(s>>_32n&U32_MASK64)}:{h:Number(s>>_32n&U32_MASK64)|0,l:Number(s&U32_MASK64)|0}}function split(s,j=!1){let $=new Uint32Array(s.length),_e=new Uint32Array(s.length);for(let et=0;ets<<$|j>>>32-$,rotlSL=(s,j,$)=>j<<$|s>>>32-$,rotlBH=(s,j,$)=>j<<$-32|s>>>64-$,rotlBL=(s,j,$)=>s<<$-32|j>>>64-$,SHA3_PI=[],SHA3_ROTL=[],_SHA3_IOTA=[],_0n$6=BigInt(0),_1n$7=BigInt(1),_2n$4=BigInt(2),_7n=BigInt(7),_256n=BigInt(256),_0x71n=BigInt(113);for(let s=0,j=_1n$7,$=1,_e=0;s<24;s++){[$,_e]=[_e,(2*$+3*_e)%5],SHA3_PI.push(2*(5*_e+$)),SHA3_ROTL.push((s+1)*(s+2)/2%64);let et=_0n$6;for(let tt=0;tt<7;tt++)j=(j<<_1n$7^(j>>_7n)*_0x71n)%_256n,j&_2n$4&&(et^=_1n$7<<(_1n$7<$>32?rotlBH(s,j,$):rotlSH(s,j,$),rotlL=(s,j,$)=>$>32?rotlBL(s,j,$):rotlSL(s,j,$);function keccakP(s,j=24){const $=new Uint32Array(10);for(let _e=24-j;_e<24;_e++){for(let nt=0;nt<10;nt++)$[nt]=s[nt]^s[nt+10]^s[nt+20]^s[nt+30]^s[nt+40];for(let nt=0;nt<10;nt+=2){const rt=(nt+8)%10,ot=(nt+2)%10,it=$[ot],st=$[ot+1],at=rotlH(it,st,1)^$[rt],ct=rotlL(it,st,1)^$[rt+1];for(let lt=0;lt<50;lt+=10)s[nt+lt]^=at,s[nt+lt+1]^=ct}let et=s[2],tt=s[3];for(let nt=0;nt<24;nt++){const rt=SHA3_ROTL[nt],ot=rotlH(et,tt,rt),it=rotlL(et,tt,rt),st=SHA3_PI[nt];et=s[st],tt=s[st+1],s[st]=ot,s[st+1]=it}for(let nt=0;nt<50;nt+=10){for(let rt=0;rt<10;rt++)$[rt]=s[nt+rt];for(let rt=0;rt<10;rt++)s[nt+rt]^=~$[(rt+2)%10]&$[(rt+4)%10]}s[0]^=SHA3_IOTA_H[_e],s[1]^=SHA3_IOTA_L[_e]}$.fill(0)}class Keccak extends Hash{constructor(j,$,_e,et=!1,tt=24){if(super(),this.blockLen=j,this.suffix=$,this.outputLen=_e,this.enableXOF=et,this.rounds=tt,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number$1(_e),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32$1(this.state)}keccak(){isLE||byteSwap32(this.state32),keccakP(this.state32,this.rounds),isLE||byteSwap32(this.state32),this.posOut=0,this.pos=0}update(j){exists(this);const{blockLen:$,state:_e}=this;j=toBytes(j);const et=j.length;for(let tt=0;tt=_e&&this.keccak();const nt=Math.min(_e-this.posOut,tt-et);j.set($.subarray(this.posOut,this.posOut+nt),et),this.posOut+=nt,et+=nt}return j}xofInto(j){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(j)}xof(j){return number$1(j),this.xofInto(new Uint8Array(j))}digestInto(j){if(output(j,this),this.finished)throw new Error("digest() was already called");return this.writeInto(j),this.destroy(),j}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(j){const{blockLen:$,suffix:_e,outputLen:et,rounds:tt,enableXOF:nt}=this;return j||(j=new Keccak($,_e,et,nt,tt)),j.state32.set(this.state32),j.pos=this.pos,j.posOut=this.posOut,j.finished=this.finished,j.rounds=tt,j.suffix=_e,j.outputLen=et,j.enableXOF=nt,j.destroyed=this.destroyed,j}}const gen=(s,j,$)=>wrapConstructor(()=>new Keccak(j,s,$)),sha3_224=gen(6,144,224/8),sha3_256=gen(6,136,256/8),sha3_384=gen(6,104,384/8),sha3_512=gen(6,72,512/8),keccak_224=gen(1,144,224/8),keccak_256=gen(1,136,256/8),keccak_384=gen(1,104,384/8),keccak_512=gen(1,72,512/8),genShake=(s,j,$)=>wrapXOFConstructorWithOpts((_e={})=>new Keccak(j,s,_e.dkLen===void 0?$:_e.dkLen,!0)),shake128=genShake(31,168,128/8),shake256=genShake(31,136,256/8),sha3=Object.freeze(Object.defineProperty({__proto__:null,Keccak,keccakP,keccak_224,keccak_256,keccak_384,keccak_512,sha3_224,sha3_256,sha3_384,sha3_512,shake128,shake256},Symbol.toStringTag,{value:"Module"}));class HMAC extends Hash{constructor(j,$){super(),this.finished=!1,this.destroyed=!1,hash(j);const _e=toBytes($);if(this.iHash=j.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const et=this.blockLen,tt=new Uint8Array(et);tt.set(_e.length>et?j.create().update(_e).digest():_e);for(let nt=0;ntnew HMAC(s,j).update($).digest();hmac.create=(s,j)=>new HMAC(s,j);const hmac$1=Object.freeze(Object.defineProperty({__proto__:null,HMAC,hmac},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function validateSigVerOpts(s){s.lowS!==void 0&&abool("lowS",s.lowS),s.prehash!==void 0&&abool("prehash",s.prehash)}function validatePointOpts(s){const j=validateBasic$1(s);validateObject$1(j,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:$,Fp:_e,a:et}=j;if($){if(!_e.eql(et,_e.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof $!="object"||typeof $.beta!="bigint"||typeof $.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...j})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut$1,DER={Err:class extends Error{constructor(j=""){super(j)}},_parseInt(s){const{Err:j}=DER;if(s.length<2||s[0]!==2)throw new j("Invalid signature integer tag");const $=s[1],_e=s.subarray(2,$+2);if(!$||_e.length!==$)throw new j("Invalid signature integer: wrong length");if(_e[0]&128)throw new j("Invalid signature integer: negative");if(_e[0]===0&&!(_e[1]&128))throw new j("Invalid signature integer: unnecessary leading zero");return{d:b2n(_e),l:s.subarray($+2)}},toSig(s){const{Err:j}=DER,$=typeof s=="string"?h2b(s):s;abytes$1($);let _e=$.length;if(_e<2||$[0]!=48)throw new j("Invalid signature tag");if($[1]!==_e-2)throw new j("Invalid signature: incorrect length");const{d:et,l:tt}=DER._parseInt($.subarray(2)),{d:nt,l:rt}=DER._parseInt(tt);if(rt.length)throw new j("Invalid signature: left bytes after parsing");return{r:et,s:nt}},hexFromSig(s){const j=it=>Number.parseInt(it[0],16)&8?"00"+it:it,$=it=>{const st=it.toString(16);return st.length&1?`0${st}`:st},_e=j($(s.s)),et=j($(s.r)),tt=_e.length/2,nt=et.length/2,rt=$(tt),ot=$(nt);return`30${$(nt+tt+4)}02${ot}${et}02${rt}${_e}`}},_0n$5=BigInt(0),_1n$6=BigInt(1);BigInt(2);const _3n$1=BigInt(3);BigInt(4);function weierstrassPoints(s){const j=validatePointOpts(s),{Fp:$}=j,_e=j.toBytes||((dt,pt,ht)=>{const yt=pt.toAffine();return concatBytes$1(Uint8Array.from([4]),$.toBytes(yt.x),$.toBytes(yt.y))}),et=j.fromBytes||(dt=>{const pt=dt.subarray(1),ht=$.fromBytes(pt.subarray(0,$.BYTES)),yt=$.fromBytes(pt.subarray($.BYTES,2*$.BYTES));return{x:ht,y:yt}});function tt(dt){const{a:pt,b:ht}=j,yt=$.sqr(dt),gt=$.mul(yt,dt);return $.add($.add(gt,$.mul(dt,pt)),ht)}if(!$.eql($.sqr(j.Gy),tt(j.Gx)))throw new Error("bad generator point: equation left != right");function nt(dt){return inRange$1(dt,_1n$6,j.n)}function rt(dt){const{allowedPrivateKeyLengths:pt,nByteLength:ht,wrapPrivateKey:yt,n:gt}=j;if(pt&&typeof dt!="bigint"){if(isBytes$1(dt)&&(dt=bytesToHex$1(dt)),typeof dt!="string"||!pt.includes(dt.length))throw new Error("Invalid key");dt=dt.padStart(ht*2,"0")}let ft;try{ft=typeof dt=="bigint"?dt:bytesToNumberBE$1(ensureBytes$1("private key",dt,ht))}catch{throw new Error(`private key must be ${ht} bytes, hex or bigint, not ${typeof dt}`)}return yt&&(ft=mod$1(ft,gt)),aInRange("private key",ft,_1n$6,gt),ft}function ot(dt){if(!(dt instanceof at))throw new Error("ProjectivePoint expected")}const it=memoized((dt,pt)=>{const{px:ht,py:yt,pz:gt}=dt;if($.eql(gt,$.ONE))return{x:ht,y:yt};const ft=dt.is0();pt==null&&(pt=ft?$.ONE:$.inv(gt));const xt=$.mul(ht,pt),Mt=$.mul(yt,pt),jt=$.mul(gt,pt);if(ft)return{x:$.ZERO,y:$.ZERO};if(!$.eql(jt,$.ONE))throw new Error("invZ was invalid");return{x:xt,y:Mt}}),st=memoized(dt=>{if(dt.is0()){if(j.allowInfinityPoint&&!$.is0(dt.py))return;throw new Error("bad point: ZERO")}const{x:pt,y:ht}=dt.toAffine();if(!$.isValid(pt)||!$.isValid(ht))throw new Error("bad point: x or y not FE");const yt=$.sqr(ht),gt=tt(pt);if(!$.eql(yt,gt))throw new Error("bad point: equation left != right");if(!dt.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class at{constructor(pt,ht,yt){if(this.px=pt,this.py=ht,this.pz=yt,pt==null||!$.isValid(pt))throw new Error("x required");if(ht==null||!$.isValid(ht))throw new Error("y required");if(yt==null||!$.isValid(yt))throw new Error("z required");Object.freeze(this)}static fromAffine(pt){const{x:ht,y:yt}=pt||{};if(!pt||!$.isValid(ht)||!$.isValid(yt))throw new Error("invalid affine point");if(pt instanceof at)throw new Error("projective point not allowed");const gt=ft=>$.eql(ft,$.ZERO);return gt(ht)&>(yt)?at.ZERO:new at(ht,yt,$.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(pt){const ht=$.invertBatch(pt.map(yt=>yt.pz));return pt.map((yt,gt)=>yt.toAffine(ht[gt])).map(at.fromAffine)}static fromHex(pt){const ht=at.fromAffine(et(ensureBytes$1("pointHex",pt)));return ht.assertValidity(),ht}static fromPrivateKey(pt){return at.BASE.multiply(rt(pt))}_setWindowSize(pt){lt.setWindowSize(this,pt)}assertValidity(){st(this)}hasEvenY(){const{y:pt}=this.toAffine();if($.isOdd)return!$.isOdd(pt);throw new Error("Field doesn't support isOdd")}equals(pt){ot(pt);const{px:ht,py:yt,pz:gt}=this,{px:ft,py:xt,pz:Mt}=pt,jt=$.eql($.mul(ht,Mt),$.mul(ft,gt)),wt=$.eql($.mul(yt,Mt),$.mul(xt,gt));return jt&&wt}negate(){return new at(this.px,$.neg(this.py),this.pz)}double(){const{a:pt,b:ht}=j,yt=$.mul(ht,_3n$1),{px:gt,py:ft,pz:xt}=this;let Mt=$.ZERO,jt=$.ZERO,wt=$.ZERO,$t=$.mul(gt,gt),zt=$.mul(ft,ft),Ot=$.mul(xt,xt),Pt=$.mul(gt,ft);return Pt=$.add(Pt,Pt),wt=$.mul(gt,xt),wt=$.add(wt,wt),Mt=$.mul(pt,wt),jt=$.mul(yt,Ot),jt=$.add(Mt,jt),Mt=$.sub(zt,jt),jt=$.add(zt,jt),jt=$.mul(Mt,jt),Mt=$.mul(Pt,Mt),wt=$.mul(yt,wt),Ot=$.mul(pt,Ot),Pt=$.sub($t,Ot),Pt=$.mul(pt,Pt),Pt=$.add(Pt,wt),wt=$.add($t,$t),$t=$.add(wt,$t),$t=$.add($t,Ot),$t=$.mul($t,Pt),jt=$.add(jt,$t),Ot=$.mul(ft,xt),Ot=$.add(Ot,Ot),$t=$.mul(Ot,Pt),Mt=$.sub(Mt,$t),wt=$.mul(Ot,zt),wt=$.add(wt,wt),wt=$.add(wt,wt),new at(Mt,jt,wt)}add(pt){ot(pt);const{px:ht,py:yt,pz:gt}=this,{px:ft,py:xt,pz:Mt}=pt;let jt=$.ZERO,wt=$.ZERO,$t=$.ZERO;const zt=j.a,Ot=$.mul(j.b,_3n$1);let Pt=$.mul(ht,ft),Ft=$.mul(yt,xt),Nt=$.mul(gt,Mt),mt=$.add(ht,yt),bt=$.add(ft,xt);mt=$.mul(mt,bt),bt=$.add(Pt,Ft),mt=$.sub(mt,bt),bt=$.add(ht,gt);let St=$.add(ft,Mt);return bt=$.mul(bt,St),St=$.add(Pt,Nt),bt=$.sub(bt,St),St=$.add(yt,gt),jt=$.add(xt,Mt),St=$.mul(St,jt),jt=$.add(Ft,Nt),St=$.sub(St,jt),$t=$.mul(zt,bt),jt=$.mul(Ot,Nt),$t=$.add(jt,$t),jt=$.sub(Ft,$t),$t=$.add(Ft,$t),wt=$.mul(jt,$t),Ft=$.add(Pt,Pt),Ft=$.add(Ft,Pt),Nt=$.mul(zt,Nt),bt=$.mul(Ot,bt),Ft=$.add(Ft,Nt),Nt=$.sub(Pt,Nt),Nt=$.mul(zt,Nt),bt=$.add(bt,Nt),Pt=$.mul(Ft,bt),wt=$.add(wt,Pt),Pt=$.mul(St,bt),jt=$.mul(mt,jt),jt=$.sub(jt,Pt),Pt=$.mul(mt,Ft),$t=$.mul(St,$t),$t=$.add($t,Pt),new at(jt,wt,$t)}subtract(pt){return this.add(pt.negate())}is0(){return this.equals(at.ZERO)}wNAF(pt){return lt.wNAFCached(this,pt,at.normalizeZ)}multiplyUnsafe(pt){aInRange("scalar",pt,_0n$5,j.n);const ht=at.ZERO;if(pt===_0n$5)return ht;if(pt===_1n$6)return this;const{endo:yt}=j;if(!yt)return lt.unsafeLadder(this,pt);let{k1neg:gt,k1:ft,k2neg:xt,k2:Mt}=yt.splitScalar(pt),jt=ht,wt=ht,$t=this;for(;ft>_0n$5||Mt>_0n$5;)ft&_1n$6&&(jt=jt.add($t)),Mt&_1n$6&&(wt=wt.add($t)),$t=$t.double(),ft>>=_1n$6,Mt>>=_1n$6;return gt&&(jt=jt.negate()),xt&&(wt=wt.negate()),wt=new at($.mul(wt.px,yt.beta),wt.py,wt.pz),jt.add(wt)}multiply(pt){const{endo:ht,n:yt}=j;aInRange("scalar",pt,_1n$6,yt);let gt,ft;if(ht){const{k1neg:xt,k1:Mt,k2neg:jt,k2:wt}=ht.splitScalar(pt);let{p:$t,f:zt}=this.wNAF(Mt),{p:Ot,f:Pt}=this.wNAF(wt);$t=lt.constTimeNegate(xt,$t),Ot=lt.constTimeNegate(jt,Ot),Ot=new at($.mul(Ot.px,ht.beta),Ot.py,Ot.pz),gt=$t.add(Ot),ft=zt.add(Pt)}else{const{p:xt,f:Mt}=this.wNAF(pt);gt=xt,ft=Mt}return at.normalizeZ([gt,ft])[0]}multiplyAndAddUnsafe(pt,ht,yt){const gt=at.BASE,ft=(Mt,jt)=>jt===_0n$5||jt===_1n$6||!Mt.equals(gt)?Mt.multiplyUnsafe(jt):Mt.multiply(jt),xt=ft(this,ht).add(ft(pt,yt));return xt.is0()?void 0:xt}toAffine(pt){return it(this,pt)}isTorsionFree(){const{h:pt,isTorsionFree:ht}=j;if(pt===_1n$6)return!0;if(ht)return ht(at,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:pt,clearCofactor:ht}=j;return pt===_1n$6?this:ht?ht(at,this):this.multiplyUnsafe(j.h)}toRawBytes(pt=!0){return abool("isCompressed",pt),this.assertValidity(),_e(at,this,pt)}toHex(pt=!0){return abool("isCompressed",pt),bytesToHex$1(this.toRawBytes(pt))}}at.BASE=new at(j.Gx,j.Gy,$.ONE),at.ZERO=new at($.ZERO,$.ONE,$.ZERO);const ct=j.nBitLength,lt=wNAF$1(at,j.endo?Math.ceil(ct/2):ct);return{CURVE:j,ProjectivePoint:at,normPrivateKeyToScalar:rt,weierstrassEquation:tt,isWithinCurveOrder:nt}}function validateOpts$2(s){const j=validateBasic$1(s);return validateObject$1(j,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...j})}function weierstrass$1(s){const j=validateOpts$2(s),{Fp:$,n:_e}=j,et=$.BYTES+1,tt=2*$.BYTES+1;function nt(mt){return mod$1(mt,_e)}function rt(mt){return invert$1(mt,_e)}const{ProjectivePoint:ot,normPrivateKeyToScalar:it,weierstrassEquation:st,isWithinCurveOrder:at}=weierstrassPoints({...j,toBytes(mt,bt,St){const vt=bt.toAffine(),At=$.toBytes(vt.x),Tt=concatBytes$1;return abool("isCompressed",St),St?Tt(Uint8Array.from([bt.hasEvenY()?2:3]),At):Tt(Uint8Array.from([4]),At,$.toBytes(vt.y))},fromBytes(mt){const bt=mt.length,St=mt[0],vt=mt.subarray(1);if(bt===et&&(St===2||St===3)){const At=bytesToNumberBE$1(vt);if(!inRange$1(At,_1n$6,$.ORDER))throw new Error("Point is not on curve");const Tt=st(At);let Dt;try{Dt=$.sqrt(Tt)}catch(kt){const Ut=kt instanceof Error?": "+kt.message:"";throw new Error("Point is not on curve"+Ut)}const Lt=(Dt&_1n$6)===_1n$6;return(St&1)===1!==Lt&&(Dt=$.neg(Dt)),{x:At,y:Dt}}else if(bt===tt&&St===4){const At=$.fromBytes(vt.subarray(0,$.BYTES)),Tt=$.fromBytes(vt.subarray($.BYTES,2*$.BYTES));return{x:At,y:Tt}}else throw new Error(`Point of length ${bt} was invalid. Expected ${et} compressed bytes or ${tt} uncompressed bytes`)}}),ct=mt=>bytesToHex$1(numberToBytesBE$1(mt,j.nByteLength));function lt(mt){const bt=_e>>_1n$6;return mt>bt}function dt(mt){return lt(mt)?nt(-mt):mt}const pt=(mt,bt,St)=>bytesToNumberBE$1(mt.slice(bt,St));class ht{constructor(bt,St,vt){this.r=bt,this.s=St,this.recovery=vt,this.assertValidity()}static fromCompact(bt){const St=j.nByteLength;return bt=ensureBytes$1("compactSignature",bt,St*2),new ht(pt(bt,0,St),pt(bt,St,2*St))}static fromDER(bt){const{r:St,s:vt}=DER.toSig(ensureBytes$1("DER",bt));return new ht(St,vt)}assertValidity(){aInRange("r",this.r,_1n$6,_e),aInRange("s",this.s,_1n$6,_e)}addRecoveryBit(bt){return new ht(this.r,this.s,bt)}recoverPublicKey(bt){const{r:St,s:vt,recovery:At}=this,Tt=jt(ensureBytes$1("msgHash",bt));if(At==null||![0,1,2,3].includes(At))throw new Error("recovery id invalid");const Dt=At===2||At===3?St+j.n:St;if(Dt>=$.ORDER)throw new Error("recovery id 2 or 3 invalid");const Lt=At&1?"03":"02",Et=ot.fromHex(Lt+ct(Dt)),kt=rt(Dt),Ut=nt(-Tt*kt),Gt=nt(vt*kt),Ht=ot.BASE.multiplyAndAddUnsafe(Et,Ut,Gt);if(!Ht)throw new Error("point at infinify");return Ht.assertValidity(),Ht}hasHighS(){return lt(this.s)}normalizeS(){return this.hasHighS()?new ht(this.r,nt(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$1(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$1(this.toCompactHex())}toCompactHex(){return ct(this.r)+ct(this.s)}}const yt={isValidPrivateKey(mt){try{return it(mt),!0}catch{return!1}},normPrivateKeyToScalar:it,randomPrivateKey:()=>{const mt=getMinHashLength$1(j.n);return mapHashToField$1(j.randomBytes(mt),j.n)},precompute(mt=8,bt=ot.BASE){return bt._setWindowSize(mt),bt.multiply(BigInt(3)),bt}};function gt(mt,bt=!0){return ot.fromPrivateKey(mt).toRawBytes(bt)}function ft(mt){const bt=isBytes$1(mt),St=typeof mt=="string",vt=(bt||St)&&mt.length;return bt?vt===et||vt===tt:St?vt===2*et||vt===2*tt:mt instanceof ot}function xt(mt,bt,St=!0){if(ft(mt))throw new Error("first arg must be private key");if(!ft(bt))throw new Error("second arg must be public key");return ot.fromHex(bt).multiply(it(mt)).toRawBytes(St)}const Mt=j.bits2int||function(mt){const bt=bytesToNumberBE$1(mt),St=mt.length*8-j.nBitLength;return St>0?bt>>BigInt(St):bt},jt=j.bits2int_modN||function(mt){return nt(Mt(mt))},wt=bitMask$1(j.nBitLength);function $t(mt){return aInRange(`num < 2^${j.nBitLength}`,mt,_0n$5,wt),numberToBytesBE$1(mt,j.nByteLength)}function zt(mt,bt,St=Ot){if(["recovered","canonical"].some(Jt=>Jt in St))throw new Error("sign() legacy options not supported");const{hash:vt,randomBytes:At}=j;let{lowS:Tt,prehash:Dt,extraEntropy:Lt}=St;Tt==null&&(Tt=!0),mt=ensureBytes$1("msgHash",mt),validateSigVerOpts(St),Dt&&(mt=ensureBytes$1("prehashed msgHash",vt(mt)));const Et=jt(mt),kt=it(bt),Ut=[$t(kt),$t(Et)];if(Lt!=null&&Lt!==!1){const Jt=Lt===!0?At($.BYTES):Lt;Ut.push(ensureBytes$1("extraEntropy",Jt))}const Gt=concatBytes$1(...Ut),Ht=Et;function tn(Jt){const Kt=Mt(Jt);if(!at(Kt))return;const dn=rt(Kt),en=ot.BASE.multiply(Kt).toAffine(),Zt=nt(en.x);if(Zt===_0n$5)return;const Qt=nt(dn*nt(Ht+Zt*kt));if(Qt===_0n$5)return;let qt=(en.x===Zt?0:2)|Number(en.y&_1n$6),Xt=Qt;return Tt&<(Qt)&&(Xt=dt(Qt),qt^=1),new ht(Zt,Xt,qt)}return{seed:Gt,k2sig:tn}}const Ot={lowS:j.lowS,prehash:!1},Pt={lowS:j.lowS,prehash:!1};function Ft(mt,bt,St=Ot){const{seed:vt,k2sig:At}=zt(mt,bt,St),Tt=j;return createHmacDrbg$1(Tt.hash.outputLen,Tt.nByteLength,Tt.hmac)(vt,At)}ot.BASE._setWindowSize(8);function Nt(mt,bt,St,vt=Pt){var en;const At=mt;if(bt=ensureBytes$1("msgHash",bt),St=ensureBytes$1("publicKey",St),"strict"in vt)throw new Error("options.strict was renamed to lowS");validateSigVerOpts(vt);const{lowS:Tt,prehash:Dt}=vt;let Lt,Et;try{if(typeof At=="string"||isBytes$1(At))try{Lt=ht.fromDER(At)}catch(Zt){if(!(Zt instanceof DER.Err))throw Zt;Lt=ht.fromCompact(At)}else if(typeof At=="object"&&typeof At.r=="bigint"&&typeof At.s=="bigint"){const{r:Zt,s:Qt}=At;Lt=new ht(Zt,Qt)}else throw new Error("PARSE");Et=ot.fromHex(St)}catch(Zt){if(Zt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Tt&&Lt.hasHighS())return!1;Dt&&(bt=j.hash(bt));const{r:kt,s:Ut}=Lt,Gt=jt(bt),Ht=rt(Ut),tn=nt(Gt*Ht),Jt=nt(kt*Ht),Kt=(en=ot.BASE.multiplyAndAddUnsafe(Et,tn,Jt))==null?void 0:en.toAffine();return Kt?nt(Kt.x)===kt:!1}return{CURVE:j,getPublicKey:gt,getSharedSecret:xt,sign:Ft,verify:Nt,ProjectivePoint:ot,Signature:ht,utils:yt}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function getHash$1(s){return{hash:s,hmac:(j,...$)=>hmac(s,j,concatBytes$2(...$)),randomBytes}}function createCurve$1(s,j){const $=_e=>weierstrass$1({...s,...getHash$1(_e)});return Object.freeze({...$(j),create:$})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n$5=BigInt(1),_2n$3=BigInt(2),divNearest=(s,j)=>(s+j/_2n$3)/j;function sqrtMod(s){const j=secp256k1P,$=BigInt(3),_e=BigInt(6),et=BigInt(11),tt=BigInt(22),nt=BigInt(23),rt=BigInt(44),ot=BigInt(88),it=s*s*s%j,st=it*it*s%j,at=pow2$1(st,$,j)*st%j,ct=pow2$1(at,$,j)*st%j,lt=pow2$1(ct,_2n$3,j)*it%j,dt=pow2$1(lt,et,j)*lt%j,pt=pow2$1(dt,tt,j)*dt%j,ht=pow2$1(pt,rt,j)*pt%j,yt=pow2$1(ht,ot,j)*ht%j,gt=pow2$1(yt,rt,j)*pt%j,ft=pow2$1(gt,$,j)*st%j,xt=pow2$1(ft,nt,j)*dt%j,Mt=pow2$1(xt,_e,j)*it%j,jt=pow2$1(Mt,_2n$3,j);if(!Fp.eql(Fp.sqr(jt),s))throw new Error("Cannot find square root");return jt}const Fp=Field$1(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1$1=createCurve$1({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:s=>{const j=secp256k1N,$=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),_e=-_1n$5*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),et=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),tt=$,nt=BigInt("0x100000000000000000000000000000000"),rt=divNearest(tt*s,j),ot=divNearest(-_e*s,j);let it=mod$1(s-rt*$-ot*et,j),st=mod$1(-rt*_e-ot*tt,j);const at=it>nt,ct=st>nt;if(at&&(it=j-it),ct&&(st=j-st),it>nt||st>nt)throw new Error("splitScalar: Endomorphism failed, k="+s);return{k1neg:at,k1:it,k2neg:ct,k2:st}}}},sha256);BigInt(0);secp256k1$1.ProjectivePoint;const generatePrivateKey=ed25519$1.utils.randomPrivateKey,generateKeypair=()=>{const s=ed25519$1.utils.randomPrivateKey(),j=getPublicKey(s),$=new Uint8Array(64);return $.set(s),$.set(j,32),{publicKey:j,secretKey:$}},getPublicKey=ed25519$1.getPublicKey;function isOnCurve(s){try{return ed25519$1.ExtendedPoint.fromHex(s),!0}catch{return!1}}const sign=(s,j)=>ed25519$1.sign(s,j.slice(0,32)),verify=ed25519$1.verify,toBuffer=s=>buffer.Buffer.isBuffer(s)?s:s instanceof Uint8Array?buffer.Buffer.from(s.buffer,s.byteOffset,s.byteLength):buffer.Buffer.from(s);class Struct{constructor(j){Object.assign(this,j)}encode(){return buffer.Buffer.from(serialize_1(SOLANA_SCHEMA,this))}static decode(j){return deserialize_1(SOLANA_SCHEMA,this,j)}static decodeUnchecked(j){return deserializeUnchecked_1(SOLANA_SCHEMA,this,j)}}class Enum extends Struct{constructor(j){if(super(j),this.enum="",Object.keys(j).length!==1)throw new Error("Enum can only take single value");Object.keys(j).map($=>{this.enum=$})}}const SOLANA_SCHEMA=new Map;var _PublicKey;const MAX_SEED_LENGTH=32,PUBLIC_KEY_LENGTH=32;function isPublicKeyData(s){return s._bn!==void 0}let uniquePublicKeyCounter=1;class PublicKey extends Struct{constructor(j){if(super({}),this._bn=void 0,isPublicKeyData(j))this._bn=j._bn;else{if(typeof j=="string"){const $=base58.decode(j);if($.length!=PUBLIC_KEY_LENGTH)throw new Error("Invalid public key input");this._bn=new BN($)}else this._bn=new BN(j);if(this._bn.byteLength()>PUBLIC_KEY_LENGTH)throw new Error("Invalid public key input")}}static unique(){const j=new PublicKey(uniquePublicKeyCounter);return uniquePublicKeyCounter+=1,new PublicKey(j.toBuffer())}equals(j){return this._bn.eq(j._bn)}toBase58(){return base58.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const j=this.toBuffer();return new Uint8Array(j.buffer,j.byteOffset,j.byteLength)}toBuffer(){const j=this._bn.toArrayLike(buffer.Buffer);if(j.length===PUBLIC_KEY_LENGTH)return j;const $=buffer.Buffer.alloc(32);return j.copy($,32-j.length),$}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(j,$,_e){const et=buffer.Buffer.concat([j.toBuffer(),buffer.Buffer.from($),_e.toBuffer()]),tt=sha256(et);return new PublicKey(tt)}static createProgramAddressSync(j,$){let _e=buffer.Buffer.alloc(0);j.forEach(function(tt){if(tt.length>MAX_SEED_LENGTH)throw new TypeError("Max seed length exceeded");_e=buffer.Buffer.concat([_e,toBuffer(tt)])}),_e=buffer.Buffer.concat([_e,$.toBuffer(),buffer.Buffer.from("ProgramDerivedAddress")]);const et=sha256(_e);if(isOnCurve(et))throw new Error("Invalid seeds, address must fall off the curve");return new PublicKey(et)}static async createProgramAddress(j,$){return this.createProgramAddressSync(j,$)}static findProgramAddressSync(j,$){let _e=255,et;for(;_e!=0;){try{const tt=j.concat(buffer.Buffer.from([_e]));et=this.createProgramAddressSync(tt,$)}catch(tt){if(tt instanceof TypeError)throw tt;_e--;continue}return[et,_e]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(j,$){return this.findProgramAddressSync(j,$)}static isOnCurve(j){const $=new PublicKey(j);return isOnCurve($.toBytes())}}_PublicKey=PublicKey;PublicKey.default=new _PublicKey("11111111111111111111111111111111");SOLANA_SCHEMA.set(PublicKey,{kind:"struct",fields:[["_bn","u256"]]});class Account{constructor(j){if(this._publicKey=void 0,this._secretKey=void 0,j){const $=toBuffer(j);if(j.length!==64)throw new Error("bad secret key size");this._publicKey=$.slice(32,64),this._secretKey=$.slice(0,32)}else this._secretKey=toBuffer(generatePrivateKey()),this._publicKey=toBuffer(getPublicKey(this._secretKey))}get publicKey(){return new PublicKey(this._publicKey)}get secretKey(){return buffer.Buffer.concat([this._secretKey,this._publicKey],64)}}const BPF_LOADER_DEPRECATED_PROGRAM_ID=new PublicKey("BPFLoader1111111111111111111111111111111111"),PACKET_DATA_SIZE=1232,VERSION_PREFIX_MASK=127,SIGNATURE_LENGTH_IN_BYTES=64;class TransactionExpiredBlockheightExceededError extends Error{constructor(j){super(`Signature ${j} has expired: block height exceeded.`),this.signature=void 0,this.signature=j}}Object.defineProperty(TransactionExpiredBlockheightExceededError.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class TransactionExpiredTimeoutError extends Error{constructor(j,$){super(`Transaction was not confirmed in ${$.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${j} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=j}}Object.defineProperty(TransactionExpiredTimeoutError.prototype,"name",{value:"TransactionExpiredTimeoutError"});class TransactionExpiredNonceInvalidError extends Error{constructor(j){super(`Signature ${j} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=j}}Object.defineProperty(TransactionExpiredNonceInvalidError.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class MessageAccountKeys{constructor(j,$){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=j,this.accountKeysFromLookups=$}keySegments(){const j=[this.staticAccountKeys];return this.accountKeysFromLookups&&(j.push(this.accountKeysFromLookups.writable),j.push(this.accountKeysFromLookups.readonly)),j}get(j){for(const $ of this.keySegments()){if(j<$.length)return $[j];j-=$.length}}get length(){return this.keySegments().flat().length}compileInstructions(j){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const _e=new Map;this.keySegments().flat().forEach((tt,nt)=>{_e.set(tt.toBase58(),nt)});const et=tt=>{const nt=_e.get(tt.toBase58());if(nt===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return nt};return j.map(tt=>({programIdIndex:et(tt.programId),accountKeyIndexes:tt.keys.map(nt=>et(nt.pubkey)),data:tt.data}))}}const publicKey=(s="publicKey")=>blob(32,s),signature$2=(s="signature")=>blob(64,s),rustString=(s="string")=>{const j=struct([u32("length"),u32("lengthPadding"),blob(offset(u32(),-8),"chars")],s),$=j.decode.bind(j),_e=j.encode.bind(j),et=j;return et.decode=(tt,nt)=>$(tt,nt).chars.toString(),et.encode=(tt,nt,rt)=>{const ot={chars:buffer.Buffer.from(tt,"utf8")};return _e(ot,nt,rt)},et.alloc=tt=>u32().span+u32().span+buffer.Buffer.from(tt,"utf8").length,et},authorized=(s="authorized")=>struct([publicKey("staker"),publicKey("withdrawer")],s),lockup=(s="lockup")=>struct([ns64("unixTimestamp"),ns64("epoch"),publicKey("custodian")],s),voteInit=(s="voteInit")=>struct([publicKey("nodePubkey"),publicKey("authorizedVoter"),publicKey("authorizedWithdrawer"),u8("commission")],s),voteAuthorizeWithSeedArgs=(s="voteAuthorizeWithSeedArgs")=>struct([u32("voteAuthorizationType"),publicKey("currentAuthorityDerivedKeyOwnerPubkey"),rustString("currentAuthorityDerivedKeySeed"),publicKey("newAuthorized")],s);function getAlloc(s,j){const $=et=>{if(et.span>=0)return et.span;if(typeof et.alloc=="function")return et.alloc(j[et.property]);if("count"in et&&"elementLayout"in et){const tt=j[et.property];if(Array.isArray(tt))return tt.length*$(et.elementLayout)}else if("fields"in et)return getAlloc({layout:et},j[et.property]);return 0};let _e=0;return s.layout.fields.forEach(et=>{_e+=$(et)}),_e}function decodeLength(s){let j=0,$=0;for(;;){let _e=s.shift();if(j|=(_e&127)<<$*7,$+=1,!(_e&128))break}return j}function encodeLength(s,j){let $=j;for(;;){let _e=$&127;if($>>=7,$==0){s.push(_e);break}else _e|=128,s.push(_e)}}function assert(s,j){if(!s)throw new Error(j||"Assertion failed")}class CompiledKeys{constructor(j,$){this.payer=void 0,this.keyMetaMap=void 0,this.payer=j,this.keyMetaMap=$}static compile(j,$){const _e=new Map,et=nt=>{const rt=nt.toBase58();let ot=_e.get(rt);return ot===void 0&&(ot={isSigner:!1,isWritable:!1,isInvoked:!1},_e.set(rt,ot)),ot},tt=et($);tt.isSigner=!0,tt.isWritable=!0;for(const nt of j){et(nt.programId).isInvoked=!0;for(const rt of nt.keys){const ot=et(rt.pubkey);ot.isSigner||(ot.isSigner=rt.isSigner),ot.isWritable||(ot.isWritable=rt.isWritable)}}return new CompiledKeys($,_e)}getMessageComponents(){const j=[...this.keyMetaMap.entries()];assert(j.length<=256,"Max static account keys length exceeded");const $=j.filter(([,ot])=>ot.isSigner&&ot.isWritable),_e=j.filter(([,ot])=>ot.isSigner&&!ot.isWritable),et=j.filter(([,ot])=>!ot.isSigner&&ot.isWritable),tt=j.filter(([,ot])=>!ot.isSigner&&!ot.isWritable),nt={numRequiredSignatures:$.length+_e.length,numReadonlySignedAccounts:_e.length,numReadonlyUnsignedAccounts:tt.length};{assert($.length>0,"Expected at least one writable signer key");const[ot]=$[0];assert(ot===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const rt=[...$.map(([ot])=>new PublicKey(ot)),..._e.map(([ot])=>new PublicKey(ot)),...et.map(([ot])=>new PublicKey(ot)),...tt.map(([ot])=>new PublicKey(ot))];return[nt,rt]}extractTableLookup(j){const[$,_e]=this.drainKeysFoundInLookupTable(j.state.addresses,nt=>!nt.isSigner&&!nt.isInvoked&&nt.isWritable),[et,tt]=this.drainKeysFoundInLookupTable(j.state.addresses,nt=>!nt.isSigner&&!nt.isInvoked&&!nt.isWritable);if(!($.length===0&&et.length===0))return[{accountKey:j.key,writableIndexes:$,readonlyIndexes:et},{writable:_e,readonly:tt}]}drainKeysFoundInLookupTable(j,$){const _e=new Array,et=new Array;for(const[tt,nt]of this.keyMetaMap.entries())if($(nt)){const rt=new PublicKey(tt),ot=j.findIndex(it=>it.equals(rt));ot>=0&&(assert(ot<256,"Max lookup table index exceeded"),_e.push(ot),et.push(rt),this.keyMetaMap.delete(tt))}return[_e,et]}}const END_OF_BUFFER_ERROR_MESSAGE="Reached end of buffer unexpectedly";function guardedShift(s){if(s.length===0)throw new Error(END_OF_BUFFER_ERROR_MESSAGE);return s.shift()}function guardedSplice(s,...j){const[$]=j;if(j.length===2?$+(j[1]??0)>s.length:$>=s.length)throw new Error(END_OF_BUFFER_ERROR_MESSAGE);return s.splice(...j)}class Message{constructor(j){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=j.header,this.accountKeys=j.accountKeys.map($=>new PublicKey($)),this.recentBlockhash=j.recentBlockhash,this.instructions=j.instructions,this.instructions.forEach($=>this.indexToProgramIds.set($.programIdIndex,this.accountKeys[$.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(j=>({programIdIndex:j.programIdIndex,accountKeyIndexes:j.accounts,data:base58.decode(j.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new MessageAccountKeys(this.staticAccountKeys)}static compile(j){const $=CompiledKeys.compile(j.instructions,j.payerKey),[_e,et]=$.getMessageComponents(),nt=new MessageAccountKeys(et).compileInstructions(j.instructions).map(rt=>({programIdIndex:rt.programIdIndex,accounts:rt.accountKeyIndexes,data:base58.encode(rt.data)}));return new Message({header:_e,accountKeys:et,recentBlockhash:j.recentBlockhash,instructions:nt})}isAccountSigner(j){return j=this.header.numRequiredSignatures){const _e=j-$,tt=this.accountKeys.length-$-this.header.numReadonlyUnsignedAccounts;return _e!this.isProgramId($))}serialize(){const j=this.accountKeys.length;let $=[];encodeLength($,j);const _e=this.instructions.map(at=>{const{accounts:ct,programIdIndex:lt}=at,dt=Array.from(base58.decode(at.data));let pt=[];encodeLength(pt,ct.length);let ht=[];return encodeLength(ht,dt.length),{programIdIndex:lt,keyIndicesCount:buffer.Buffer.from(pt),keyIndices:ct,dataLength:buffer.Buffer.from(ht),data:dt}});let et=[];encodeLength(et,_e.length);let tt=buffer.Buffer.alloc(PACKET_DATA_SIZE);buffer.Buffer.from(et).copy(tt);let nt=et.length;_e.forEach(at=>{const lt=struct([u8("programIdIndex"),blob(at.keyIndicesCount.length,"keyIndicesCount"),seq(u8("keyIndex"),at.keyIndices.length,"keyIndices"),blob(at.dataLength.length,"dataLength"),seq(u8("userdatum"),at.data.length,"data")]).encode(at,tt,nt);nt+=lt}),tt=tt.slice(0,nt);const rt=struct([blob(1,"numRequiredSignatures"),blob(1,"numReadonlySignedAccounts"),blob(1,"numReadonlyUnsignedAccounts"),blob($.length,"keyCount"),seq(publicKey("key"),j,"keys"),publicKey("recentBlockhash")]),ot={numRequiredSignatures:buffer.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:buffer.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:buffer.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:buffer.Buffer.from($),keys:this.accountKeys.map(at=>toBuffer(at.toBytes())),recentBlockhash:base58.decode(this.recentBlockhash)};let it=buffer.Buffer.alloc(2048);const st=rt.encode(ot,it);return tt.copy(it,st),it.slice(0,st+tt.length)}static from(j){let $=[...j];const _e=guardedShift($);if(_e!==(_e&VERSION_PREFIX_MASK))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const et=guardedShift($),tt=guardedShift($),nt=decodeLength($);let rt=[];for(let ct=0;ct0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new MessageAccountKeys(this.staticAccountKeys,$)}isAccountSigner(j){return j=_e){const et=j-_e,tt=this.addressTableLookups.reduce((nt,rt)=>nt+rt.writableIndexes.length,0);return et=this.header.numRequiredSignatures){const et=j-$,nt=_e-$-this.header.numReadonlyUnsignedAccounts;return ettt.key.equals(_e.accountKey));if(!et)throw new Error(`Failed to find address lookup table account for table key ${_e.accountKey.toBase58()}`);for(const tt of _e.writableIndexes)if(ttst.toBytes()),recentBlockhash:base58.decode(this.recentBlockhash),instructionsLength:new Uint8Array(_e),serializedInstructions:$,addressTableLookupsLength:new Uint8Array(tt),serializedAddressTableLookups:et},rt);return rt.slice(0,it)}serializeInstructions(){let j=0;const $=new Uint8Array(PACKET_DATA_SIZE);for(const _e of this.compiledInstructions){const et=Array();encodeLength(et,_e.accountKeyIndexes.length);const tt=Array();encodeLength(tt,_e.data.length);const nt=struct([u8("programIdIndex"),blob(et.length,"encodedAccountKeyIndexesLength"),seq(u8(),_e.accountKeyIndexes.length,"accountKeyIndexes"),blob(tt.length,"encodedDataLength"),blob(_e.data.length,"data")]);j+=nt.encode({programIdIndex:_e.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(et),accountKeyIndexes:_e.accountKeyIndexes,encodedDataLength:new Uint8Array(tt),data:_e.data},$,j)}return $.slice(0,j)}serializeAddressTableLookups(){let j=0;const $=new Uint8Array(PACKET_DATA_SIZE);for(const _e of this.addressTableLookups){const et=Array();encodeLength(et,_e.writableIndexes.length);const tt=Array();encodeLength(tt,_e.readonlyIndexes.length);const nt=struct([publicKey("accountKey"),blob(et.length,"encodedWritableIndexesLength"),seq(u8(),_e.writableIndexes.length,"writableIndexes"),blob(tt.length,"encodedReadonlyIndexesLength"),seq(u8(),_e.readonlyIndexes.length,"readonlyIndexes")]);j+=nt.encode({accountKey:_e.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(et),writableIndexes:_e.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(tt),readonlyIndexes:_e.readonlyIndexes},$,j)}return $.slice(0,j)}static deserialize(j){let $=[...j];const _e=guardedShift($),et=_e&VERSION_PREFIX_MASK;assert(_e!==et,"Expected versioned message but received legacy message");const tt=et;assert(tt===0,`Expected versioned message with version 0 but found version ${tt}`);const nt={numRequiredSignatures:guardedShift($),numReadonlySignedAccounts:guardedShift($),numReadonlyUnsignedAccounts:guardedShift($)},rt=[],ot=decodeLength($);for(let dt=0;dt{const j=VersionedMessage.deserializeMessageVersion(s);if(j==="legacy")return Message.from(s);if(j===0)return MessageV0.deserialize(s);throw new Error(`Transaction message version ${j} deserialization is not supported`)}};let TransactionStatus=function(s){return s[s.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",s[s.PROCESSED=1]="PROCESSED",s[s.TIMED_OUT=2]="TIMED_OUT",s[s.NONCE_INVALID=3]="NONCE_INVALID",s}({});const DEFAULT_SIGNATURE=buffer.Buffer.alloc(SIGNATURE_LENGTH_IN_BYTES).fill(0);class TransactionInstruction{constructor(j){this.keys=void 0,this.programId=void 0,this.data=buffer.Buffer.alloc(0),this.programId=j.programId,this.keys=j.keys,j.data&&(this.data=j.data)}toJSON(){return{keys:this.keys.map(({pubkey:j,isSigner:$,isWritable:_e})=>({pubkey:j.toJSON(),isSigner:$,isWritable:_e})),programId:this.programId.toJSON(),data:[...this.data]}}}class Transaction{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(j){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,!!j)if(j.feePayer&&(this.feePayer=j.feePayer),j.signatures&&(this.signatures=j.signatures),Object.prototype.hasOwnProperty.call(j,"nonceInfo")){const{minContextSlot:$,nonceInfo:_e}=j;this.minNonceContextSlot=$,this.nonceInfo=_e}else if(Object.prototype.hasOwnProperty.call(j,"lastValidBlockHeight")){const{blockhash:$,lastValidBlockHeight:_e}=j;this.recentBlockhash=$,this.lastValidBlockHeight=_e}else{const{recentBlockhash:$,nonceInfo:_e}=j;_e&&(this.nonceInfo=_e),this.recentBlockhash=$}}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(j=>j.toJSON()),signers:this.signatures.map(({publicKey:j})=>j.toJSON())}}add(...j){if(j.length===0)throw new Error("No instructions");return j.forEach($=>{"instructions"in $?this.instructions=this.instructions.concat($.instructions):"data"in $&&"programId"in $&&"keys"in $?this.instructions.push($):this.instructions.push(new TransactionInstruction($))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let j,$;if(this.nonceInfo?(j=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?$=[this.nonceInfo.nonceInstruction,...this.instructions]:$=this.instructions):(j=this.recentBlockhash,$=this.instructions),!j)throw new Error("Transaction recentBlockhash required");$.length<1&&console.warn("No instructions provided");let _e;if(this.feePayer)_e=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)_e=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let pt=0;pt<$.length;pt++)if($[pt].programId===void 0)throw new Error(`Transaction instruction index ${pt} has undefined program id`);const et=[],tt=[];$.forEach(pt=>{pt.keys.forEach(yt=>{tt.push({...yt})});const ht=pt.programId.toString();et.includes(ht)||et.push(ht)}),et.forEach(pt=>{tt.push({pubkey:new PublicKey(pt),isSigner:!1,isWritable:!1})});const nt=[];tt.forEach(pt=>{const ht=pt.pubkey.toString(),yt=nt.findIndex(gt=>gt.pubkey.toString()===ht);yt>-1?(nt[yt].isWritable=nt[yt].isWritable||pt.isWritable,nt[yt].isSigner=nt[yt].isSigner||pt.isSigner):nt.push(pt)}),nt.sort(function(pt,ht){if(pt.isSigner!==ht.isSigner)return pt.isSigner?-1:1;if(pt.isWritable!==ht.isWritable)return pt.isWritable?-1:1;const yt={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return pt.pubkey.toBase58().localeCompare(ht.pubkey.toBase58(),"en",yt)});const rt=nt.findIndex(pt=>pt.pubkey.equals(_e));if(rt>-1){const[pt]=nt.splice(rt,1);pt.isSigner=!0,pt.isWritable=!0,nt.unshift(pt)}else nt.unshift({pubkey:_e,isSigner:!0,isWritable:!0});for(const pt of this.signatures){const ht=nt.findIndex(yt=>yt.pubkey.equals(pt.publicKey));if(ht>-1)nt[ht].isSigner||(nt[ht].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 new Error(`unknown signer: ${pt.publicKey.toString()}`)}let ot=0,it=0,st=0;const at=[],ct=[];nt.forEach(({pubkey:pt,isSigner:ht,isWritable:yt})=>{ht?(at.push(pt.toString()),ot+=1,yt||(it+=1)):(ct.push(pt.toString()),yt||(st+=1))});const lt=at.concat(ct),dt=$.map(pt=>{const{data:ht,programId:yt}=pt;return{programIdIndex:lt.indexOf(yt.toString()),accounts:pt.keys.map(gt=>lt.indexOf(gt.pubkey.toString())),data:base58.encode(ht)}});return dt.forEach(pt=>{assert(pt.programIdIndex>=0),pt.accounts.forEach(ht=>assert(ht>=0))}),new Message({header:{numRequiredSignatures:ot,numReadonlySignedAccounts:it,numReadonlyUnsignedAccounts:st},accountKeys:lt,recentBlockhash:j,instructions:dt})}_compile(){const j=this.compileMessage(),$=j.accountKeys.slice(0,j.header.numRequiredSignatures);return this.signatures.length===$.length&&this.signatures.every((et,tt)=>$[tt].equals(et.publicKey))||(this.signatures=$.map(_e=>({signature:null,publicKey:_e}))),j}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(j){return(await j.getFeeForMessage(this.compileMessage())).value}setSigners(...j){if(j.length===0)throw new Error("No signers");const $=new Set;this.signatures=j.filter(_e=>{const et=_e.toString();return $.has(et)?!1:($.add(et),!0)}).map(_e=>({signature:null,publicKey:_e}))}sign(...j){if(j.length===0)throw new Error("No signers");const $=new Set,_e=[];for(const tt of j){const nt=tt.publicKey.toString();$.has(nt)||($.add(nt),_e.push(tt))}this.signatures=_e.map(tt=>({signature:null,publicKey:tt.publicKey}));const et=this._compile();this._partialSign(et,..._e)}partialSign(...j){if(j.length===0)throw new Error("No signers");const $=new Set,_e=[];for(const tt of j){const nt=tt.publicKey.toString();$.has(nt)||($.add(nt),_e.push(tt))}const et=this._compile();this._partialSign(et,..._e)}_partialSign(j,...$){const _e=j.serialize();$.forEach(et=>{const tt=sign(_e,et.secretKey);this._addSignature(et.publicKey,toBuffer(tt))})}addSignature(j,$){this._compile(),this._addSignature(j,$)}_addSignature(j,$){assert($.length===64);const _e=this.signatures.findIndex(et=>j.equals(et.publicKey));if(_e<0)throw new Error(`unknown signer: ${j.toString()}`);this.signatures[_e].signature=buffer.Buffer.from($)}verifySignatures(j=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),j)}_getMessageSignednessErrors(j,$){const _e={};for(const{signature:et,publicKey:tt}of this.signatures)et===null?$&&(_e.missing||(_e.missing=[])).push(tt):verify(et,j,tt.toBytes())||(_e.invalid||(_e.invalid=[])).push(tt);return _e.invalid||_e.missing?_e:void 0}serialize(j){const{requireAllSignatures:$,verifySignatures:_e}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},j),et=this.serializeMessage();if(_e){const tt=this._getMessageSignednessErrors(et,$);if(tt){let nt="Signature verification failed.";throw tt.invalid&&(nt+=` + `),indeterminate2Keyframe)),LinearProgress=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiLinearProgress"}),{className:et,color:tt="primary",value:nt,valueBuffer:rt,variant:ot="indeterminate"}=_e,it=_objectWithoutPropertiesLoose(_e,_excluded$s),st=_extends$2({},_e,{color:tt,variant:ot}),at=useUtilityClasses$q(st),ct=useRtl(),lt={},dt={bar1:{},bar2:{}};if((ot==="determinate"||ot==="buffer")&&nt!==void 0){lt["aria-valuenow"]=Math.round(nt),lt["aria-valuemin"]=0,lt["aria-valuemax"]=100;let ft=nt-100;ct&&(ft=-ft),dt.bar1.transform=`translateX(${ft}%)`}if(ot==="buffer"&&rt!==void 0){let ft=(rt||0)-100;ct&&(ft=-ft),dt.bar2.transform=`translateX(${ft}%)`}return jsxRuntimeExports.jsxs(LinearProgressRoot,_extends$2({className:clsx(at.root,et),ownerState:st,role:"progressbar"},lt,{ref:$},it,{children:[ot==="buffer"?jsxRuntimeExports.jsx(LinearProgressDashed,{className:at.dashed,ownerState:st}):null,jsxRuntimeExports.jsx(LinearProgressBar1,{className:at.bar1,ownerState:st,style:dt.bar1}),ot==="determinate"?null:jsxRuntimeExports.jsx(LinearProgressBar2,{className:at.bar2,ownerState:st,style:dt.bar2})]}))});function getLinkUtilityClass(s){return generateUtilityClass$1("MuiLink",s)}const linkClasses=generateUtilityClasses$1("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),colorTransformations={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},transformDeprecatedColors=s=>colorTransformations[s]||s,getTextDecoration=({theme:s,ownerState:j})=>{const $=transformDeprecatedColors(j.color),_e=getPath(s,`palette.${$}`,!1)||j.color,et=getPath(s,`palette.${$}Channel`);return"vars"in s&&et?`rgba(${et} / 0.4)`:alpha_1(_e,.4)},_excluded$r=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],useUtilityClasses$p=s=>{const{classes:j,component:$,focusVisible:_e,underline:et}=s,tt={root:["root",`underline${capitalize$1(et)}`,$==="button"&&"button",_e&&"focusVisible"]};return composeClasses(tt,getLinkUtilityClass,j)},LinkRoot=styled(Typography,{name:"MuiLink",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[`underline${capitalize$1($.underline)}`],$.component==="button"&&j.button]}})(({theme:s,ownerState:j})=>_extends$2({},j.underline==="none"&&{textDecoration:"none"},j.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},j.underline==="always"&&_extends$2({textDecoration:"underline"},j.color!=="inherit"&&{textDecorationColor:getTextDecoration({theme:s,ownerState:j})},{"&:hover":{textDecorationColor:"inherit"}}),j.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${linkClasses.focusVisible}`]:{outline:"auto"}})),Link$1=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiLink"}),{className:et,color:tt="primary",component:nt="a",onBlur:rt,onFocus:ot,TypographyClasses:it,underline:st="always",variant:at="inherit",sx:ct}=_e,lt=_objectWithoutPropertiesLoose(_e,_excluded$r),{isFocusVisibleRef:dt,onBlur:ft,onFocus:gt,ref:yt}=useIsFocusVisible(),[mt,pt]=reactExports.useState(!1),xt=useForkRef($,yt),Ct=zt=>{ft(zt),dt.current===!1&&pt(!1),rt&&rt(zt)},Dt=zt=>{gt(zt),dt.current===!0&&pt(!0),ot&&ot(zt)},wt=_extends$2({},_e,{color:tt,component:nt,focusVisible:mt,underline:st,variant:at}),kt=useUtilityClasses$p(wt);return jsxRuntimeExports.jsx(LinkRoot,_extends$2({color:tt,className:clsx(kt.root,et),classes:it,component:nt,onBlur:Ct,onFocus:Dt,ref:xt,ownerState:wt,variant:at,sx:[...Object.keys(colorTransformations).includes(tt)?[]:[{color:tt}],...Array.isArray(ct)?ct:[ct]]},lt))}),ListContext=reactExports.createContext({});function getListUtilityClass(s){return generateUtilityClass$1("MuiList",s)}generateUtilityClasses$1("MuiList",["root","padding","dense","subheader"]);const _excluded$q=["children","className","component","dense","disablePadding","subheader"],useUtilityClasses$o=s=>{const{classes:j,disablePadding:$,dense:_e,subheader:et}=s;return composeClasses({root:["root",!$&&"padding",_e&&"dense",et&&"subheader"]},getListUtilityClass,j)},ListRoot=styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,!$.disablePadding&&j.padding,$.dense&&j.dense,$.subheader&&j.subheader]}})(({ownerState:s})=>_extends$2({listStyle:"none",margin:0,padding:0,position:"relative"},!s.disablePadding&&{paddingTop:8,paddingBottom:8},s.subheader&&{paddingTop:0})),List=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiList"}),{children:et,className:tt,component:nt="ul",dense:rt=!1,disablePadding:ot=!1,subheader:it}=_e,st=_objectWithoutPropertiesLoose(_e,_excluded$q),at=reactExports.useMemo(()=>({dense:rt}),[rt]),ct=_extends$2({},_e,{component:nt,dense:rt,disablePadding:ot}),lt=useUtilityClasses$o(ct);return jsxRuntimeExports.jsx(ListContext.Provider,{value:at,children:jsxRuntimeExports.jsxs(ListRoot,_extends$2({as:nt,className:clsx(lt.root,tt),ref:$,ownerState:ct},st,{children:[it,et]}))})});function getListItemUtilityClass(s){return generateUtilityClass$1("MuiListItem",s)}const listItemClasses=generateUtilityClasses$1("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),listItemButtonClasses=generateUtilityClasses$1("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function getListItemSecondaryActionClassesUtilityClass(s){return generateUtilityClass$1("MuiListItemSecondaryAction",s)}generateUtilityClasses$1("MuiListItemSecondaryAction",["root","disableGutters"]);const _excluded$p=["className"],useUtilityClasses$n=s=>{const{disableGutters:j,classes:$}=s;return composeClasses({root:["root",j&&"disableGutters"]},getListItemSecondaryActionClassesUtilityClass,$)},ListItemSecondaryActionRoot=styled("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.disableGutters&&j.disableGutters]}})(({ownerState:s})=>_extends$2({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},s.disableGutters&&{right:0})),ListItemSecondaryAction=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiListItemSecondaryAction"}),{className:et}=_e,tt=_objectWithoutPropertiesLoose(_e,_excluded$p),nt=reactExports.useContext(ListContext),rt=_extends$2({},_e,{disableGutters:nt.disableGutters}),ot=useUtilityClasses$n(rt);return jsxRuntimeExports.jsx(ListItemSecondaryActionRoot,_extends$2({className:clsx(ot.root,et),ownerState:rt,ref:$},tt))});ListItemSecondaryAction.muiName="ListItemSecondaryAction";const _excluded$o=["className"],_excluded2$4=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],overridesResolver$1=(s,j)=>{const{ownerState:$}=s;return[j.root,$.dense&&j.dense,$.alignItems==="flex-start"&&j.alignItemsFlexStart,$.divider&&j.divider,!$.disableGutters&&j.gutters,!$.disablePadding&&j.padding,$.button&&j.button,$.hasSecondaryAction&&j.secondaryAction]},useUtilityClasses$m=s=>{const{alignItems:j,button:$,classes:_e,dense:et,disabled:tt,disableGutters:nt,disablePadding:rt,divider:ot,hasSecondaryAction:it,selected:st}=s;return composeClasses({root:["root",et&&"dense",!nt&&"gutters",!rt&&"padding",ot&&"divider",tt&&"disabled",$&&"button",j==="flex-start"&&"alignItemsFlexStart",it&&"secondaryAction",st&&"selected"],container:["container"]},getListItemUtilityClass,_e)},ListItemRoot=styled("div",{name:"MuiListItem",slot:"Root",overridesResolver:overridesResolver$1})(({theme:s,ownerState:j})=>_extends$2({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!j.disablePadding&&_extends$2({paddingTop:8,paddingBottom:8},j.dense&&{paddingTop:4,paddingBottom:4},!j.disableGutters&&{paddingLeft:16,paddingRight:16},!!j.secondaryAction&&{paddingRight:48}),!!j.secondaryAction&&{[`& > .${listItemButtonClasses.root}`]:{paddingRight:48}},{[`&.${listItemClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`&.${listItemClasses.selected}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity),[`&.${listItemClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.focusOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.focusOpacity)}},[`&.${listItemClasses.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity}},j.alignItems==="flex-start"&&{alignItems:"flex-start"},j.divider&&{borderBottom:`1px solid ${(s.vars||s).palette.divider}`,backgroundClip:"padding-box"},j.button&&{transition:s.transitions.create("background-color",{duration:s.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(s.vars||s).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${listItemClasses.selected}:hover`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity)}}},j.hasSecondaryAction&&{paddingRight:48})),ListItemContainer=styled("li",{name:"MuiListItem",slot:"Container",overridesResolver:(s,j)=>j.container})({position:"relative"}),ListItem=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiListItem"}),{alignItems:et="center",autoFocus:tt=!1,button:nt=!1,children:rt,className:ot,component:it,components:st={},componentsProps:at={},ContainerComponent:ct="li",ContainerProps:{className:lt}={},dense:dt=!1,disabled:ft=!1,disableGutters:gt=!1,disablePadding:yt=!1,divider:mt=!1,focusVisibleClassName:pt,secondaryAction:xt,selected:Ct=!1,slotProps:Dt={},slots:wt={}}=_e,kt=_objectWithoutPropertiesLoose(_e.ContainerProps,_excluded$o),zt=_objectWithoutPropertiesLoose(_e,_excluded2$4),Ot=reactExports.useContext(ListContext),Ft=reactExports.useMemo(()=>({dense:dt||Ot.dense||!1,alignItems:et,disableGutters:gt}),[et,Ot.dense,dt,gt]),Pt=reactExports.useRef(null);useEnhancedEffect(()=>{tt&&Pt.current&&Pt.current.focus()},[tt]);const Nt=reactExports.Children.toArray(rt),ht=Nt.length&&isMuiElement(Nt[Nt.length-1],["ListItemSecondaryAction"]),bt=_extends$2({},_e,{alignItems:et,autoFocus:tt,button:nt,dense:Ft.dense,disabled:ft,disableGutters:gt,disablePadding:yt,divider:mt,hasSecondaryAction:ht,selected:Ct}),St=useUtilityClasses$m(bt),vt=useForkRef(Pt,$),At=wt.root||st.Root||ListItemRoot,Tt=Dt.root||at.root||{},jt=_extends$2({className:clsx(St.root,Tt.className,ot),disabled:ft},zt);let Lt=it||"li";return nt&&(jt.component=it||"div",jt.focusVisibleClassName=clsx(listItemClasses.focusVisible,pt),Lt=ButtonBase),ht?(Lt=!jt.component&&!it?"div":Lt,ct==="li"&&(Lt==="li"?Lt="div":jt.component==="li"&&(jt.component="div")),jsxRuntimeExports.jsx(ListContext.Provider,{value:Ft,children:jsxRuntimeExports.jsxs(ListItemContainer,_extends$2({as:ct,className:clsx(St.container,lt),ref:vt,ownerState:bt},kt,{children:[jsxRuntimeExports.jsx(At,_extends$2({},Tt,!isHostComponent(At)&&{as:Lt,ownerState:_extends$2({},bt,Tt.ownerState)},jt,{children:Nt})),Nt.pop()]}))})):jsxRuntimeExports.jsx(ListContext.Provider,{value:Ft,children:jsxRuntimeExports.jsxs(At,_extends$2({},Tt,{as:Lt,ref:vt},!isHostComponent(At)&&{ownerState:_extends$2({},bt,Tt.ownerState)},jt,{children:[Nt,xt&&jsxRuntimeExports.jsx(ListItemSecondaryAction,{children:xt})]}))})});function getListItemIconUtilityClass(s){return generateUtilityClass$1("MuiListItemIcon",s)}const listItemIconClasses=generateUtilityClasses$1("MuiListItemIcon",["root","alignItemsFlexStart"]),_excluded$n=["className"],useUtilityClasses$l=s=>{const{alignItems:j,classes:$}=s;return composeClasses({root:["root",j==="flex-start"&&"alignItemsFlexStart"]},getListItemIconUtilityClass,$)},ListItemIconRoot=styled("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.alignItems==="flex-start"&&j.alignItemsFlexStart]}})(({theme:s,ownerState:j})=>_extends$2({minWidth:56,color:(s.vars||s).palette.action.active,flexShrink:0,display:"inline-flex"},j.alignItems==="flex-start"&&{marginTop:8})),ListItemIcon=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiListItemIcon"}),{className:et}=_e,tt=_objectWithoutPropertiesLoose(_e,_excluded$n),nt=reactExports.useContext(ListContext),rt=_extends$2({},_e,{alignItems:nt.alignItems}),ot=useUtilityClasses$l(rt);return jsxRuntimeExports.jsx(ListItemIconRoot,_extends$2({className:clsx(ot.root,et),ownerState:rt,ref:$},tt))});function getListItemTextUtilityClass(s){return generateUtilityClass$1("MuiListItemText",s)}const listItemTextClasses=generateUtilityClasses$1("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_excluded$m=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],useUtilityClasses$k=s=>{const{classes:j,inset:$,primary:_e,secondary:et,dense:tt}=s;return composeClasses({root:["root",$&&"inset",tt&&"dense",_e&&et&&"multiline"],primary:["primary"],secondary:["secondary"]},getListItemTextUtilityClass,j)},ListItemTextRoot=styled("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${listItemTextClasses.primary}`]:j.primary},{[`& .${listItemTextClasses.secondary}`]:j.secondary},j.root,$.inset&&j.inset,$.primary&&$.secondary&&j.multiline,$.dense&&j.dense]}})(({ownerState:s})=>_extends$2({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},s.primary&&s.secondary&&{marginTop:6,marginBottom:6},s.inset&&{paddingLeft:56})),ListItemText=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiListItemText"}),{children:et,className:tt,disableTypography:nt=!1,inset:rt=!1,primary:ot,primaryTypographyProps:it,secondary:st,secondaryTypographyProps:at}=_e,ct=_objectWithoutPropertiesLoose(_e,_excluded$m),{dense:lt}=reactExports.useContext(ListContext);let dt=ot??et,ft=st;const gt=_extends$2({},_e,{disableTypography:nt,inset:rt,primary:!!dt,secondary:!!ft,dense:lt}),yt=useUtilityClasses$k(gt);return dt!=null&&dt.type!==Typography&&!nt&&(dt=jsxRuntimeExports.jsx(Typography,_extends$2({variant:lt?"body2":"body1",className:yt.primary,component:it!=null&&it.variant?void 0:"span",display:"block"},it,{children:dt}))),ft!=null&&ft.type!==Typography&&!nt&&(ft=jsxRuntimeExports.jsx(Typography,_extends$2({variant:"body2",className:yt.secondary,color:"text.secondary",display:"block"},at,{children:ft}))),jsxRuntimeExports.jsxs(ListItemTextRoot,_extends$2({className:clsx(yt.root,tt),ownerState:gt,ref:$},ct,{children:[dt,ft]}))}),_excluded$l=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nextItem(s,j,$){return s===j?s.firstChild:j&&j.nextElementSibling?j.nextElementSibling:$?null:s.firstChild}function previousItem(s,j,$){return s===j?$?s.firstChild:s.lastChild:j&&j.previousElementSibling?j.previousElementSibling:$?null:s.lastChild}function textCriteriaMatches(s,j){if(j===void 0)return!0;let $=s.innerText;return $===void 0&&($=s.textContent),$=$.trim().toLowerCase(),$.length===0?!1:j.repeating?$[0]===j.keys[0]:$.indexOf(j.keys.join(""))===0}function moveFocus(s,j,$,_e,et,tt){let nt=!1,rt=et(s,j,j?$:!1);for(;rt;){if(rt===s.firstChild){if(nt)return!1;nt=!0}const ot=_e?!1:rt.disabled||rt.getAttribute("aria-disabled")==="true";if(!rt.hasAttribute("tabindex")||!textCriteriaMatches(rt,tt)||ot)rt=et(s,rt,$);else return rt.focus(),!0}return!1}const MenuList=reactExports.forwardRef(function(j,$){const{actions:_e,autoFocus:et=!1,autoFocusItem:tt=!1,children:nt,className:rt,disabledItemsFocusable:ot=!1,disableListWrap:it=!1,onKeyDown:st,variant:at="selectedMenu"}=j,ct=_objectWithoutPropertiesLoose(j,_excluded$l),lt=reactExports.useRef(null),dt=reactExports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect(()=>{et&<.current.focus()},[et]),reactExports.useImperativeHandle(_e,()=>({adjustStyleForScrollbar:(pt,{direction:xt})=>{const Ct=!lt.current.style.width;if(pt.clientHeight{const xt=lt.current,Ct=pt.key,Dt=ownerDocument(xt).activeElement;if(Ct==="ArrowDown")pt.preventDefault(),moveFocus(xt,Dt,it,ot,nextItem);else if(Ct==="ArrowUp")pt.preventDefault(),moveFocus(xt,Dt,it,ot,previousItem);else if(Ct==="Home")pt.preventDefault(),moveFocus(xt,null,it,ot,nextItem);else if(Ct==="End")pt.preventDefault(),moveFocus(xt,null,it,ot,previousItem);else if(Ct.length===1){const wt=dt.current,kt=Ct.toLowerCase(),zt=performance.now();wt.keys.length>0&&(zt-wt.lastTime>500?(wt.keys=[],wt.repeating=!0,wt.previousKeyMatched=!0):wt.repeating&&kt!==wt.keys[0]&&(wt.repeating=!1)),wt.lastTime=zt,wt.keys.push(kt);const Ot=Dt&&!wt.repeating&&textCriteriaMatches(Dt,wt);wt.previousKeyMatched&&(Ot||moveFocus(xt,Dt,!1,ot,nextItem,wt))?pt.preventDefault():wt.previousKeyMatched=!1}st&&st(pt)},gt=useForkRef(lt,$);let yt=-1;reactExports.Children.forEach(nt,(pt,xt)=>{if(!reactExports.isValidElement(pt)){yt===xt&&(yt+=1,yt>=nt.length&&(yt=-1));return}pt.props.disabled||(at==="selectedMenu"&&pt.props.selected||yt===-1)&&(yt=xt),yt===xt&&(pt.props.disabled||pt.props.muiSkipListHighlight||pt.type.muiSkipListHighlight)&&(yt+=1,yt>=nt.length&&(yt=-1))});const mt=reactExports.Children.map(nt,(pt,xt)=>{if(xt===yt){const Ct={};return tt&&(Ct.autoFocus=!0),pt.props.tabIndex===void 0&&at==="selectedMenu"&&(Ct.tabIndex=0),reactExports.cloneElement(pt,Ct)}return pt});return jsxRuntimeExports.jsx(List,_extends$2({role:"menu",ref:gt,className:rt,onKeyDown:ft,tabIndex:et?0:-1},ct,{children:mt}))});function getPopoverUtilityClass(s){return generateUtilityClass$1("MuiPopover",s)}generateUtilityClasses$1("MuiPopover",["root","paper"]);const _excluded$k=["onEntering"],_excluded2$3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_excluded3=["slotProps"];function getOffsetTop(s,j){let $=0;return typeof j=="number"?$=j:j==="center"?$=s.height/2:j==="bottom"&&($=s.height),$}function getOffsetLeft(s,j){let $=0;return typeof j=="number"?$=j:j==="center"?$=s.width/2:j==="right"&&($=s.width),$}function getTransformOriginValue(s){return[s.horizontal,s.vertical].map(j=>typeof j=="number"?`${j}px`:j).join(" ")}function resolveAnchorEl(s){return typeof s=="function"?s():s}const useUtilityClasses$j=s=>{const{classes:j}=s;return composeClasses({root:["root"],paper:["paper"]},getPopoverUtilityClass,j)},PopoverRoot=styled(Modal,{name:"MuiPopover",slot:"Root",overridesResolver:(s,j)=>j.root})({}),PopoverPaper=styled(Paper,{name:"MuiPopover",slot:"Paper",overridesResolver:(s,j)=>j.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Popover=reactExports.forwardRef(function(j,$){var _e,et,tt;const nt=useThemeProps$5({props:j,name:"MuiPopover"}),{action:rt,anchorEl:ot,anchorOrigin:it={vertical:"top",horizontal:"left"},anchorPosition:st,anchorReference:at="anchorEl",children:ct,className:lt,container:dt,elevation:ft=8,marginThreshold:gt=16,open:yt,PaperProps:mt={},slots:pt,slotProps:xt,transformOrigin:Ct={vertical:"top",horizontal:"left"},TransitionComponent:Dt=Grow,transitionDuration:wt="auto",TransitionProps:{onEntering:kt}={},disableScrollLock:zt=!1}=nt,Ot=_objectWithoutPropertiesLoose(nt.TransitionProps,_excluded$k),Ft=_objectWithoutPropertiesLoose(nt,_excluded2$3),Pt=(_e=xt==null?void 0:xt.paper)!=null?_e:mt,Nt=reactExports.useRef(),ht=useForkRef(Nt,Pt.ref),bt=_extends$2({},nt,{anchorOrigin:it,anchorReference:at,elevation:ft,marginThreshold:gt,externalPaperSlotProps:Pt,transformOrigin:Ct,TransitionComponent:Dt,transitionDuration:wt,TransitionProps:Ot}),St=useUtilityClasses$j(bt),vt=reactExports.useCallback(()=>{if(at==="anchorPosition")return st;const Qt=resolveAnchorEl(ot),Xt=(Qt&&Qt.nodeType===1?Qt:ownerDocument(Nt.current).body).getBoundingClientRect();return{top:Xt.top+getOffsetTop(Xt,it.vertical),left:Xt.left+getOffsetLeft(Xt,it.horizontal)}},[ot,it.horizontal,it.vertical,st,at]),At=reactExports.useCallback(Qt=>({vertical:getOffsetTop(Qt,Ct.vertical),horizontal:getOffsetLeft(Qt,Ct.horizontal)}),[Ct.horizontal,Ct.vertical]),Tt=reactExports.useCallback(Qt=>{const Zt={width:Qt.offsetWidth,height:Qt.offsetHeight},Xt=At(Zt);if(at==="none")return{top:null,left:null,transformOrigin:getTransformOriginValue(Xt)};const sn=vt();let nn=sn.top-Xt.vertical,rn=sn.left-Xt.horizontal;const gn=nn+Zt.height,on=rn+Zt.width,an=ownerWindow(resolveAnchorEl(ot)),hn=an.innerHeight-gt,fn=an.innerWidth-gt;if(gt!==null&&nnhn){const ln=gn-hn;nn-=ln,Xt.vertical+=ln}if(gt!==null&&rnfn){const ln=on-fn;rn-=ln,Xt.horizontal+=ln}return{top:`${Math.round(nn)}px`,left:`${Math.round(rn)}px`,transformOrigin:getTransformOriginValue(Xt)}},[ot,at,vt,At,gt]),[jt,Lt]=reactExports.useState(yt),Mt=reactExports.useCallback(()=>{const Qt=Nt.current;if(!Qt)return;const Zt=Tt(Qt);Zt.top!==null&&(Qt.style.top=Zt.top),Zt.left!==null&&(Qt.style.left=Zt.left),Qt.style.transformOrigin=Zt.transformOrigin,Lt(!0)},[Tt]);reactExports.useEffect(()=>(zt&&window.addEventListener("scroll",Mt),()=>window.removeEventListener("scroll",Mt)),[ot,zt,Mt]);const $t=(Qt,Zt)=>{kt&&kt(Qt,Zt),Mt()},Ut=()=>{Lt(!1)};reactExports.useEffect(()=>{yt&&Mt()}),reactExports.useImperativeHandle(rt,()=>yt?{updatePosition:()=>{Mt()}}:null,[yt,Mt]),reactExports.useEffect(()=>{if(!yt)return;const Qt=debounce$1(()=>{Mt()}),Zt=ownerWindow(ot);return Zt.addEventListener("resize",Qt),()=>{Qt.clear(),Zt.removeEventListener("resize",Qt)}},[ot,yt,Mt]);let Gt=wt;wt==="auto"&&!Dt.muiSupportAuto&&(Gt=void 0);const Ht=dt||(ot?ownerDocument(resolveAnchorEl(ot)).body:void 0),tn=(et=pt==null?void 0:pt.root)!=null?et:PopoverRoot,Jt=(tt=pt==null?void 0:pt.paper)!=null?tt:PopoverPaper,Kt=useSlotProps({elementType:Jt,externalSlotProps:_extends$2({},Pt,{style:jt?Pt.style:_extends$2({},Pt.style,{opacity:0})}),additionalProps:{elevation:ft,ref:ht},ownerState:bt,className:clsx(St.paper,Pt==null?void 0:Pt.className)}),dn=useSlotProps({elementType:tn,externalSlotProps:(xt==null?void 0:xt.root)||{},externalForwardedProps:Ft,additionalProps:{ref:$,slotProps:{backdrop:{invisible:!0}},container:Ht,open:yt},ownerState:bt,className:clsx(St.root,lt)}),{slotProps:en}=dn,qt=_objectWithoutPropertiesLoose(dn,_excluded3);return jsxRuntimeExports.jsx(tn,_extends$2({},qt,!isHostComponent(tn)&&{slotProps:en,disableScrollLock:zt},{children:jsxRuntimeExports.jsx(Dt,_extends$2({appear:!0,in:yt,onEntering:$t,onExited:Ut,timeout:Gt},Ot,{children:jsxRuntimeExports.jsx(Jt,_extends$2({},Kt,{children:ct}))}))}))});function getMenuUtilityClass(s){return generateUtilityClass$1("MuiMenu",s)}generateUtilityClasses$1("MuiMenu",["root","paper","list"]);const _excluded$j=["onEntering"],_excluded2$2=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},useUtilityClasses$i=s=>{const{classes:j}=s;return composeClasses({root:["root"],paper:["paper"],list:["list"]},getMenuUtilityClass,j)},MenuRoot=styled(Popover,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(s,j)=>j.root})({}),MenuPaper=styled(PopoverPaper,{name:"MuiMenu",slot:"Paper",overridesResolver:(s,j)=>j.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),MenuMenuList=styled(MenuList,{name:"MuiMenu",slot:"List",overridesResolver:(s,j)=>j.list})({outline:0}),Menu=reactExports.forwardRef(function(j,$){var _e,et;const tt=useThemeProps$5({props:j,name:"MuiMenu"}),{autoFocus:nt=!0,children:rt,className:ot,disableAutoFocusItem:it=!1,MenuListProps:st={},onClose:at,open:ct,PaperProps:lt={},PopoverClasses:dt,transitionDuration:ft="auto",TransitionProps:{onEntering:gt}={},variant:yt="selectedMenu",slots:mt={},slotProps:pt={}}=tt,xt=_objectWithoutPropertiesLoose(tt.TransitionProps,_excluded$j),Ct=_objectWithoutPropertiesLoose(tt,_excluded2$2),Dt=useRtl(),wt=_extends$2({},tt,{autoFocus:nt,disableAutoFocusItem:it,MenuListProps:st,onEntering:gt,PaperProps:lt,transitionDuration:ft,TransitionProps:xt,variant:yt}),kt=useUtilityClasses$i(wt),zt=nt&&!it&&ct,Ot=reactExports.useRef(null),Ft=(At,Tt)=>{Ot.current&&Ot.current.adjustStyleForScrollbar(At,{direction:Dt?"rtl":"ltr"}),gt&>(At,Tt)},Pt=At=>{At.key==="Tab"&&(At.preventDefault(),at&&at(At,"tabKeyDown"))};let Nt=-1;reactExports.Children.map(rt,(At,Tt)=>{reactExports.isValidElement(At)&&(At.props.disabled||(yt==="selectedMenu"&&At.props.selected||Nt===-1)&&(Nt=Tt))});const ht=(_e=mt.paper)!=null?_e:MenuPaper,bt=(et=pt.paper)!=null?et:lt,St=useSlotProps({elementType:mt.root,externalSlotProps:pt.root,ownerState:wt,className:[kt.root,ot]}),vt=useSlotProps({elementType:ht,externalSlotProps:bt,ownerState:wt,className:kt.paper});return jsxRuntimeExports.jsx(MenuRoot,_extends$2({onClose:at,anchorOrigin:{vertical:"bottom",horizontal:Dt?"right":"left"},transformOrigin:Dt?RTL_ORIGIN:LTR_ORIGIN,slots:{paper:ht,root:mt.root},slotProps:{root:St,paper:vt},open:ct,ref:$,transitionDuration:ft,TransitionProps:_extends$2({onEntering:Ft},xt),ownerState:wt},Ct,{classes:dt,children:jsxRuntimeExports.jsx(MenuMenuList,_extends$2({onKeyDown:Pt,actions:Ot,autoFocus:nt&&(Nt===-1||it),autoFocusItem:zt,variant:yt},st,{className:clsx(kt.list,st.className),children:rt}))}))});function getMenuItemUtilityClass(s){return generateUtilityClass$1("MuiMenuItem",s)}const menuItemClasses=generateUtilityClasses$1("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_excluded$i=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],overridesResolver=(s,j)=>{const{ownerState:$}=s;return[j.root,$.dense&&j.dense,$.divider&&j.divider,!$.disableGutters&&j.gutters]},useUtilityClasses$h=s=>{const{disabled:j,dense:$,divider:_e,disableGutters:et,selected:tt,classes:nt}=s,ot=composeClasses({root:["root",$&&"dense",j&&"disabled",!et&&"gutters",_e&&"divider",tt&&"selected"]},getMenuItemUtilityClass,nt);return _extends$2({},nt,ot)},MenuItemRoot=styled(ButtonBase,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver})(({theme:s,ownerState:j})=>_extends$2({},s.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!j.disableGutters&&{paddingLeft:16,paddingRight:16},j.divider&&{borderBottom:`1px solid ${(s.vars||s).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(s.vars||s).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${menuItemClasses.selected}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity),[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.focusOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.focusOpacity)}},[`&.${menuItemClasses.selected}:hover`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity)}},[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`&.${menuItemClasses.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity},[`& + .${dividerClasses.root}`]:{marginTop:s.spacing(1),marginBottom:s.spacing(1)},[`& + .${dividerClasses.inset}`]:{marginLeft:52},[`& .${listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${listItemIconClasses.root}`]:{minWidth:36}},!j.dense&&{[s.breakpoints.up("sm")]:{minHeight:"auto"}},j.dense&&_extends$2({minHeight:32,paddingTop:4,paddingBottom:4},s.typography.body2,{[`& .${listItemIconClasses.root} svg`]:{fontSize:"1.25rem"}}))),MenuItem=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiMenuItem"}),{autoFocus:et=!1,component:tt="li",dense:nt=!1,divider:rt=!1,disableGutters:ot=!1,focusVisibleClassName:it,role:st="menuitem",tabIndex:at,className:ct}=_e,lt=_objectWithoutPropertiesLoose(_e,_excluded$i),dt=reactExports.useContext(ListContext),ft=reactExports.useMemo(()=>({dense:nt||dt.dense||!1,disableGutters:ot}),[dt.dense,nt,ot]),gt=reactExports.useRef(null);useEnhancedEffect(()=>{et&>.current&>.current.focus()},[et]);const yt=_extends$2({},_e,{dense:ft.dense,divider:rt,disableGutters:ot}),mt=useUtilityClasses$h(_e),pt=useForkRef(gt,$);let xt;return _e.disabled||(xt=at!==void 0?at:-1),jsxRuntimeExports.jsx(ListContext.Provider,{value:ft,children:jsxRuntimeExports.jsx(MenuItemRoot,_extends$2({ref:pt,role:st,tabIndex:xt,component:tt,focusVisibleClassName:clsx(mt.focusVisible,it),className:clsx(mt.root,ct)},lt,{ownerState:yt,classes:mt}))})});function getNativeSelectUtilityClasses(s){return generateUtilityClass$1("MuiNativeSelect",s)}const nativeSelectClasses=generateUtilityClasses$1("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_excluded$h=["className","disabled","error","IconComponent","inputRef","variant"],useUtilityClasses$g=s=>{const{classes:j,variant:$,disabled:_e,multiple:et,open:tt,error:nt}=s,rt={select:["select",$,_e&&"disabled",et&&"multiple",nt&&"error"],icon:["icon",`icon${capitalize$1($)}`,tt&&"iconOpen",_e&&"disabled"]};return composeClasses(rt,getNativeSelectUtilityClasses,j)},nativeSelectSelectStyles=({ownerState:s,theme:j})=>_extends$2({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":_extends$2({},j.vars?{backgroundColor:`rgba(${j.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:j.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${nativeSelectClasses.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(j.vars||j).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},s.variant==="filled"&&{"&&&":{paddingRight:32}},s.variant==="outlined"&&{borderRadius:(j.vars||j).shape.borderRadius,"&:focus":{borderRadius:(j.vars||j).shape.borderRadius},"&&&":{paddingRight:32}}),NativeSelectSelect=styled("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rootShouldForwardProp,overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.select,j[$.variant],$.error&&j.error,{[`&.${nativeSelectClasses.multiple}`]:j.multiple}]}})(nativeSelectSelectStyles),nativeSelectIconStyles=({ownerState:s,theme:j})=>_extends$2({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(j.vars||j).palette.action.active,[`&.${nativeSelectClasses.disabled}`]:{color:(j.vars||j).palette.action.disabled}},s.open&&{transform:"rotate(180deg)"},s.variant==="filled"&&{right:7},s.variant==="outlined"&&{right:7}),NativeSelectIcon=styled("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.icon,$.variant&&j[`icon${capitalize$1($.variant)}`],$.open&&j.iconOpen]}})(nativeSelectIconStyles),NativeSelectInput=reactExports.forwardRef(function(j,$){const{className:_e,disabled:et,error:tt,IconComponent:nt,inputRef:rt,variant:ot="standard"}=j,it=_objectWithoutPropertiesLoose(j,_excluded$h),st=_extends$2({},j,{disabled:et,variant:ot,error:tt}),at=useUtilityClasses$g(st);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(NativeSelectSelect,_extends$2({ownerState:st,className:clsx(at.select,_e),disabled:et,ref:rt||$},it)),j.multiple?null:jsxRuntimeExports.jsx(NativeSelectIcon,{as:nt,ownerState:st,className:at.icon})]})});var _span$1;const _excluded$g=["children","classes","className","label","notched"],NotchedOutlineRoot$1=styled("fieldset",{shouldForwardProp:rootShouldForwardProp})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),NotchedOutlineLegend=styled("legend",{shouldForwardProp:rootShouldForwardProp})(({ownerState:s,theme:j})=>_extends$2({float:"unset",width:"auto",overflow:"hidden"},!s.withLabel&&{padding:0,lineHeight:"11px",transition:j.transitions.create("width",{duration:150,easing:j.transitions.easing.easeOut})},s.withLabel&&_extends$2({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:j.transitions.create("max-width",{duration:50,easing:j.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},s.notched&&{maxWidth:"100%",transition:j.transitions.create("max-width",{duration:100,easing:j.transitions.easing.easeOut,delay:50})})));function NotchedOutline(s){const{className:j,label:$,notched:_e}=s,et=_objectWithoutPropertiesLoose(s,_excluded$g),tt=$!=null&&$!=="",nt=_extends$2({},s,{notched:_e,withLabel:tt});return jsxRuntimeExports.jsx(NotchedOutlineRoot$1,_extends$2({"aria-hidden":!0,className:j,ownerState:nt},et,{children:jsxRuntimeExports.jsx(NotchedOutlineLegend,{ownerState:nt,children:tt?jsxRuntimeExports.jsx("span",{children:$}):_span$1||(_span$1=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"}))})}))}const _excluded$f=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],useUtilityClasses$f=s=>{const{classes:j}=s,_e=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getOutlinedInputUtilityClass,j);return _extends$2({},j,_e)},OutlinedInputRoot=styled(InputBaseRoot,{shouldForwardProp:s=>rootShouldForwardProp(s)||s==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:s,ownerState:j})=>{const $=s.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return _extends$2({position:"relative",borderRadius:(s.vars||s).shape.borderRadius,[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:(s.vars||s).palette.text.primary},"@media (hover: none)":{[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:s.vars?`rgba(${s.vars.palette.common.onBackgroundChannel} / 0.23)`:$}},[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(s.vars||s).palette[j.color].main,borderWidth:2},[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(s.vars||s).palette.error.main},[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(s.vars||s).palette.action.disabled}},j.startAdornment&&{paddingLeft:14},j.endAdornment&&{paddingRight:14},j.multiline&&_extends$2({padding:"16.5px 14px"},j.size==="small"&&{padding:"8.5px 14px"}))}),NotchedOutlineRoot=styled(NotchedOutline,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(s,j)=>j.notchedOutline})(({theme:s})=>{const j=s.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:s.vars?`rgba(${s.vars.palette.common.onBackgroundChannel} / 0.23)`:j}}),OutlinedInputInput=styled(InputBaseComponent,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:s,ownerState:j})=>_extends$2({padding:"16.5px 14px"},!s.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:s.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:s.palette.mode==="light"?null:"#fff",caretColor:s.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},s.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[s.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},j.size==="small"&&{padding:"8.5px 14px"},j.multiline&&{padding:0},j.startAdornment&&{paddingLeft:0},j.endAdornment&&{paddingRight:0})),OutlinedInput=reactExports.forwardRef(function(j,$){var _e,et,tt,nt,rt;const ot=useThemeProps$5({props:j,name:"MuiOutlinedInput"}),{components:it={},fullWidth:st=!1,inputComponent:at="input",label:ct,multiline:lt=!1,notched:dt,slots:ft={},type:gt="text"}=ot,yt=_objectWithoutPropertiesLoose(ot,_excluded$f),mt=useUtilityClasses$f(ot),pt=useFormControl(),xt=formControlState({props:ot,muiFormControl:pt,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),Ct=_extends$2({},ot,{color:xt.color||"primary",disabled:xt.disabled,error:xt.error,focused:xt.focused,formControl:pt,fullWidth:st,hiddenLabel:xt.hiddenLabel,multiline:lt,size:xt.size,type:gt}),Dt=(_e=(et=ft.root)!=null?et:it.Root)!=null?_e:OutlinedInputRoot,wt=(tt=(nt=ft.input)!=null?nt:it.Input)!=null?tt:OutlinedInputInput;return jsxRuntimeExports.jsx(InputBase$1,_extends$2({slots:{root:Dt,input:wt},renderSuffix:kt=>jsxRuntimeExports.jsx(NotchedOutlineRoot,{ownerState:Ct,className:mt.notchedOutline,label:ct!=null&&ct!==""&&xt.required?rt||(rt=jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ct," ","*"]})):ct,notched:typeof dt<"u"?dt:!!(kt.startAdornment||kt.filled||kt.focused)}),fullWidth:st,inputComponent:at,multiline:lt,ref:$,type:gt},yt,{classes:_extends$2({},mt,{notchedOutline:null})}))});OutlinedInput.muiName="Input";function getSelectUtilityClasses(s){return generateUtilityClass$1("MuiSelect",s)}const selectClasses=generateUtilityClasses$1("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _span;const _excluded$e=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],SelectSelect=styled("div",{name:"MuiSelect",slot:"Select",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`&.${selectClasses.select}`]:j.select},{[`&.${selectClasses.select}`]:j[$.variant]},{[`&.${selectClasses.error}`]:j.error},{[`&.${selectClasses.multiple}`]:j.multiple}]}})(nativeSelectSelectStyles,{[`&.${selectClasses.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SelectIcon=styled("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.icon,$.variant&&j[`icon${capitalize$1($.variant)}`],$.open&&j.iconOpen]}})(nativeSelectIconStyles),SelectNativeInput=styled("input",{shouldForwardProp:s=>slotShouldForwardProp(s)&&s!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(s,j)=>j.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues(s,j){return typeof j=="object"&&j!==null?s===j:String(s)===String(j)}function isEmpty(s){return s==null||typeof s=="string"&&!s.trim()}const useUtilityClasses$e=s=>{const{classes:j,variant:$,disabled:_e,multiple:et,open:tt,error:nt}=s,rt={select:["select",$,_e&&"disabled",et&&"multiple",nt&&"error"],icon:["icon",`icon${capitalize$1($)}`,tt&&"iconOpen",_e&&"disabled"],nativeInput:["nativeInput"]};return composeClasses(rt,getSelectUtilityClasses,j)},SelectInput=reactExports.forwardRef(function(j,$){var _e;const{"aria-describedby":et,"aria-label":tt,autoFocus:nt,autoWidth:rt,children:ot,className:it,defaultOpen:st,defaultValue:at,disabled:ct,displayEmpty:lt,error:dt=!1,IconComponent:ft,inputRef:gt,labelId:yt,MenuProps:mt={},multiple:pt,name:xt,onBlur:Ct,onChange:Dt,onClose:wt,onFocus:kt,onOpen:zt,open:Ot,readOnly:Ft,renderValue:Pt,SelectDisplayProps:Nt={},tabIndex:ht,value:bt,variant:St="standard"}=j,vt=_objectWithoutPropertiesLoose(j,_excluded$e),[At,Tt]=useControlled({controlled:bt,default:at,name:"Select"}),[jt,Lt]=useControlled({controlled:Ot,default:st,name:"Select"}),Mt=reactExports.useRef(null),$t=reactExports.useRef(null),[Ut,Gt]=reactExports.useState(null),{current:Ht}=reactExports.useRef(Ot!=null),[tn,Jt]=reactExports.useState(),Kt=useForkRef($,gt),dn=reactExports.useCallback(Yt=>{$t.current=Yt,Yt&&Gt(Yt)},[]),en=Ut==null?void 0:Ut.parentNode;reactExports.useImperativeHandle(Kt,()=>({focus:()=>{$t.current.focus()},node:Mt.current,value:At}),[At]),reactExports.useEffect(()=>{st&&jt&&Ut&&!Ht&&(Jt(rt?null:en.clientWidth),$t.current.focus())},[Ut,rt]),reactExports.useEffect(()=>{nt&&$t.current.focus()},[nt]),reactExports.useEffect(()=>{if(!yt)return;const Yt=ownerDocument($t.current).getElementById(yt);if(Yt){const cn=()=>{getSelection().isCollapsed&&$t.current.focus()};return Yt.addEventListener("click",cn),()=>{Yt.removeEventListener("click",cn)}}},[yt]);const qt=(Yt,cn)=>{Yt?zt&&zt(cn):wt&&wt(cn),Ht||(Jt(rt?null:en.clientWidth),Lt(Yt))},Qt=Yt=>{Yt.button===0&&(Yt.preventDefault(),$t.current.focus(),qt(!0,Yt))},Zt=Yt=>{qt(!1,Yt)},Xt=reactExports.Children.toArray(ot),sn=Yt=>{const cn=Xt.find(pn=>pn.props.value===Yt.target.value);cn!==void 0&&(Tt(cn.props.value),Dt&&Dt(Yt,cn))},nn=Yt=>cn=>{let pn;if(cn.currentTarget.hasAttribute("tabindex")){if(pt){pn=Array.isArray(At)?At.slice():[];const un=At.indexOf(Yt.props.value);un===-1?pn.push(Yt.props.value):pn.splice(un,1)}else pn=Yt.props.value;if(Yt.props.onClick&&Yt.props.onClick(cn),At!==pn&&(Tt(pn),Dt)){const un=cn.nativeEvent||cn,En=new un.constructor(un.type,un);Object.defineProperty(En,"target",{writable:!0,value:{value:pn,name:xt}}),Dt(En,Yt)}pt||qt(!1,cn)}},rn=Yt=>{Ft||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Yt.key)!==-1&&(Yt.preventDefault(),qt(!0,Yt))},gn=Ut!==null&&jt,on=Yt=>{!gn&&Ct&&(Object.defineProperty(Yt,"target",{writable:!0,value:{value:At,name:xt}}),Ct(Yt))};delete vt["aria-invalid"];let an,hn;const fn=[];let ln=!1;(isFilled({value:At})||lt)&&(Pt?an=Pt(At):ln=!0);const yn=Xt.map(Yt=>{if(!reactExports.isValidElement(Yt))return null;let cn;if(pt){if(!Array.isArray(At))throw new Error(formatMuiErrorMessage$1(2));cn=At.some(pn=>areEqualValues(pn,Yt.props.value)),cn&&ln&&fn.push(Yt.props.children)}else cn=areEqualValues(At,Yt.props.value),cn&&ln&&(hn=Yt.props.children);return reactExports.cloneElement(Yt,{"aria-selected":cn?"true":"false",onClick:nn(Yt),onKeyUp:pn=>{pn.key===" "&&pn.preventDefault(),Yt.props.onKeyUp&&Yt.props.onKeyUp(pn)},role:"option",selected:cn,value:void 0,"data-value":Yt.props.value})});ln&&(pt?fn.length===0?an=null:an=fn.reduce((Yt,cn,pn)=>(Yt.push(cn),pn{const{classes:j}=s;return j},styledRootConfig={name:"MuiSelect",overridesResolver:(s,j)=>j.root,shouldForwardProp:s=>rootShouldForwardProp(s)&&s!=="variant",slot:"Root"},StyledInput=styled(Input,styledRootConfig)(""),StyledOutlinedInput=styled(OutlinedInput,styledRootConfig)(""),StyledFilledInput=styled(FilledInput,styledRootConfig)(""),Select=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({name:"MuiSelect",props:j}),{autoWidth:et=!1,children:tt,classes:nt={},className:rt,defaultOpen:ot=!1,displayEmpty:it=!1,IconComponent:st=ArrowDropDownIcon,id:at,input:ct,inputProps:lt,label:dt,labelId:ft,MenuProps:gt,multiple:yt=!1,native:mt=!1,onClose:pt,onOpen:xt,open:Ct,renderValue:Dt,SelectDisplayProps:wt,variant:kt="outlined"}=_e,zt=_objectWithoutPropertiesLoose(_e,_excluded$d),Ot=mt?NativeSelectInput:SelectInput,Ft=useFormControl(),Pt=formControlState({props:_e,muiFormControl:Ft,states:["variant","error"]}),Nt=Pt.variant||kt,ht=_extends$2({},_e,{variant:Nt,classes:nt}),bt=useUtilityClasses$d(ht),St=_objectWithoutPropertiesLoose(bt,_excluded2$1),vt=ct||{standard:jsxRuntimeExports.jsx(StyledInput,{ownerState:ht}),outlined:jsxRuntimeExports.jsx(StyledOutlinedInput,{label:dt,ownerState:ht}),filled:jsxRuntimeExports.jsx(StyledFilledInput,{ownerState:ht})}[Nt],At=useForkRef($,vt.ref);return jsxRuntimeExports.jsx(reactExports.Fragment,{children:reactExports.cloneElement(vt,_extends$2({inputComponent:Ot,inputProps:_extends$2({children:tt,error:Pt.error,IconComponent:st,variant:Nt,type:void 0,multiple:yt},mt?{id:at}:{autoWidth:et,defaultOpen:ot,displayEmpty:it,labelId:ft,MenuProps:gt,onClose:pt,onOpen:xt,open:Ct,renderValue:Dt,SelectDisplayProps:_extends$2({id:at},wt)},lt,{classes:lt?deepmerge$1(St,lt.classes):St},ct?ct.props.inputProps:{})},(yt&&mt||it)&&Nt==="outlined"?{notched:!0}:{},{ref:At,className:clsx(vt.props.className,rt,bt.root)},!ct&&{variant:Nt},zt))})});Select.muiName="Select";const shouldSpreadAdditionalProps=s=>!s||!isHostComponent(s);function getSliderUtilityClass(s){return generateUtilityClass$1("MuiSlider",s)}const sliderClasses=generateUtilityClasses$1("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),useValueLabelClasses=s=>{const{open:j}=s;return{offset:clsx(j&&sliderClasses.valueLabelOpen),circle:sliderClasses.valueLabelCircle,label:sliderClasses.valueLabelLabel}};function SliderValueLabel$1(s){const{children:j,className:$,value:_e}=s,et=useValueLabelClasses(s);return j?reactExports.cloneElement(j,{className:clsx(j.props.className)},jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[j.props.children,jsxRuntimeExports.jsx("span",{className:clsx(et.offset,$),"aria-hidden":!0,children:jsxRuntimeExports.jsx("span",{className:et.circle,children:jsxRuntimeExports.jsx("span",{className:et.label,children:_e})})})]})):null}const _excluded$c=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],useThemeProps=createUseThemeProps();function Identity(s){return s}const SliderRoot=styled("span",{name:"MuiSlider",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[`color${capitalize$1($.color)}`],$.size!=="medium"&&j[`size${capitalize$1($.size)}`],$.marked&&j.marked,$.orientation==="vertical"&&j.vertical,$.track==="inverted"&&j.trackInverted,$.track===!1&&j.trackFalse]}})(({theme:s})=>{var j;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${sliderClasses.disabled}`]:{pointerEvents:"none",cursor:"default",color:(s.vars||s).palette.grey[400]},[`&.${sliderClasses.dragging}`]:{[`& .${sliderClasses.thumb}, & .${sliderClasses.track}`]:{transition:"none"}},variants:[...Object.keys(((j=s.vars)!=null?j:s).palette).filter($=>{var _e;return((_e=s.vars)!=null?_e:s).palette[$].main}).map($=>({props:{color:$},style:{color:(s.vars||s).palette[$].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),SliderRail=styled("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(s,j)=>j.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),SliderTrack=styled("span",{name:"MuiSlider",slot:"Track",overridesResolver:(s,j)=>j.track})(({theme:s})=>{var j;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:s.transitions.create(["left","width","bottom","height"],{duration:s.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((j=s.vars)!=null?j:s).palette).filter($=>{var _e;return((_e=s.vars)!=null?_e:s).palette[$].main}).map($=>({props:{color:$,track:"inverted"},style:_extends$2({},s.vars?{backgroundColor:s.vars.palette.Slider[`${$}Track`],borderColor:s.vars.palette.Slider[`${$}Track`]}:_extends$2({backgroundColor:lighten_1(s.palette[$].main,.62),borderColor:lighten_1(s.palette[$].main,.62)},s.applyStyles("dark",{backgroundColor:darken_1(s.palette[$].main,.5)}),s.applyStyles("dark",{borderColor:darken_1(s.palette[$].main,.5)})))}))]}}),SliderThumb=styled("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.thumb,j[`thumbColor${capitalize$1($.color)}`],$.size!=="medium"&&j[`thumbSize${capitalize$1($.size)}`]]}})(({theme:s})=>{var j;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:s.transitions.create(["box-shadow","left","bottom"],{duration:s.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(s.vars||s).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${sliderClasses.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((j=s.vars)!=null?j:s).palette).filter($=>{var _e;return((_e=s.vars)!=null?_e:s).palette[$].main}).map($=>({props:{color:$},style:{[`&:hover, &.${sliderClasses.focusVisible}`]:_extends$2({},s.vars?{boxShadow:`0px 0px 0px 8px rgba(${s.vars.palette[$].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${alpha_1(s.palette[$].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${sliderClasses.active}`]:_extends$2({},s.vars?{boxShadow:`0px 0px 0px 14px rgba(${s.vars.palette[$].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${alpha_1(s.palette[$].main,.16)}`})}}))]}}),SliderValueLabel=styled(SliderValueLabel$1,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(s,j)=>j.valueLabel})(({theme:s})=>_extends$2({zIndex:1,whiteSpace:"nowrap"},s.typography.body2,{fontWeight:500,transition:s.transitions.create(["transform"],{duration:s.transitions.duration.shortest}),position:"absolute",backgroundColor:(s.vars||s).palette.grey[600],borderRadius:2,color:(s.vars||s).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${sliderClasses.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${sliderClasses.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:s.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),SliderMark=styled("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:s=>slotShouldForwardProp(s)&&s!=="markActive",overridesResolver:(s,j)=>{const{markActive:$}=s;return[j.mark,$&&j.markActive]}})(({theme:s})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(s.vars||s).palette.background.paper,opacity:.8}}]})),SliderMarkLabel=styled("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:s=>slotShouldForwardProp(s)&&s!=="markLabelActive",overridesResolver:(s,j)=>j.markLabel})(({theme:s})=>_extends$2({},s.typography.body2,{color:(s.vars||s).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(s.vars||s).palette.text.primary}}]})),useUtilityClasses$c=s=>{const{disabled:j,dragging:$,marked:_e,orientation:et,track:tt,classes:nt,color:rt,size:ot}=s,it={root:["root",j&&"disabled",$&&"dragging",_e&&"marked",et==="vertical"&&"vertical",tt==="inverted"&&"trackInverted",tt===!1&&"trackFalse",rt&&`color${capitalize$1(rt)}`,ot&&`size${capitalize$1(ot)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",j&&"disabled",ot&&`thumbSize${capitalize$1(ot)}`,rt&&`thumbColor${capitalize$1(rt)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return composeClasses(it,getSliderUtilityClass,nt)},Forward=({children:s})=>s,Slider=reactExports.forwardRef(function(j,$){var _e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,ft,gt,yt,mt,pt,xt,Ct,Dt,wt,kt,zt,Ot;const Ft=useThemeProps({props:j,name:"MuiSlider"}),Pt=useRtl(),{"aria-label":Nt,"aria-valuetext":ht,"aria-labelledby":bt,component:St="span",components:vt={},componentsProps:At={},color:Tt="primary",classes:jt,className:Lt,disableSwap:Mt=!1,disabled:$t=!1,getAriaLabel:Ut,getAriaValueText:Gt,marks:Ht=!1,max:tn=100,min:Jt=0,orientation:Kt="horizontal",shiftStep:dn=10,size:en="medium",step:qt=1,scale:Qt=Identity,slotProps:Zt,slots:Xt,track:sn="normal",valueLabelDisplay:nn="off",valueLabelFormat:rn=Identity}=Ft,gn=_objectWithoutPropertiesLoose(Ft,_excluded$c),on=_extends$2({},Ft,{isRtl:Pt,max:tn,min:Jt,classes:jt,disabled:$t,disableSwap:Mt,orientation:Kt,marks:Ht,color:Tt,size:en,step:qt,shiftStep:dn,scale:Qt,track:sn,valueLabelDisplay:nn,valueLabelFormat:rn}),{axisProps:an,getRootProps:hn,getHiddenInputProps:fn,getThumbProps:ln,open:yn,active:mn,axis:Rt,focusedThumbIndex:Et,range:It,dragging:Bt,marks:Wt,values:Vt,trackOffset:Yt,trackLeap:cn,getThumbStyle:pn}=useSlider(_extends$2({},on,{rootRef:$}));on.marked=Wt.length>0&&Wt.some(kn=>kn.label),on.dragging=Bt,on.focusedThumbIndex=Et;const un=useUtilityClasses$c(on),En=(_e=(et=Xt==null?void 0:Xt.root)!=null?et:vt.Root)!=null?_e:SliderRoot,xn=(tt=(nt=Xt==null?void 0:Xt.rail)!=null?nt:vt.Rail)!=null?tt:SliderRail,Bn=(rt=(ot=Xt==null?void 0:Xt.track)!=null?ot:vt.Track)!=null?rt:SliderTrack,Qn=(it=(st=Xt==null?void 0:Xt.thumb)!=null?st:vt.Thumb)!=null?it:SliderThumb,On=(at=(ct=Xt==null?void 0:Xt.valueLabel)!=null?ct:vt.ValueLabel)!=null?at:SliderValueLabel,wn=(lt=(dt=Xt==null?void 0:Xt.mark)!=null?dt:vt.Mark)!=null?lt:SliderMark,Yn=(ft=(gt=Xt==null?void 0:Xt.markLabel)!=null?gt:vt.MarkLabel)!=null?ft:SliderMarkLabel,Nn=(yt=(mt=Xt==null?void 0:Xt.input)!=null?mt:vt.Input)!=null?yt:"input",Ln=(pt=Zt==null?void 0:Zt.root)!=null?pt:At.root,Zn=(xt=Zt==null?void 0:Zt.rail)!=null?xt:At.rail,Dn=(Ct=Zt==null?void 0:Zt.track)!=null?Ct:At.track,_n=(Dt=Zt==null?void 0:Zt.thumb)!=null?Dt:At.thumb,Wn=(wt=Zt==null?void 0:Zt.valueLabel)!=null?wt:At.valueLabel,Pn=(kt=Zt==null?void 0:Zt.mark)!=null?kt:At.mark,Tn=(zt=Zt==null?void 0:Zt.markLabel)!=null?zt:At.markLabel,Vn=(Ot=Zt==null?void 0:Zt.input)!=null?Ot:At.input,Sn=useSlotProps({elementType:En,getSlotProps:hn,externalSlotProps:Ln,externalForwardedProps:gn,additionalProps:_extends$2({},shouldSpreadAdditionalProps(En)&&{as:St}),ownerState:_extends$2({},on,Ln==null?void 0:Ln.ownerState),className:[un.root,Lt]}),vn=useSlotProps({elementType:xn,externalSlotProps:Zn,ownerState:on,className:un.rail}),qn=useSlotProps({elementType:Bn,externalSlotProps:Dn,additionalProps:{style:_extends$2({},an[Rt].offset(Yt),an[Rt].leap(cn))},ownerState:_extends$2({},on,Dn==null?void 0:Dn.ownerState),className:un.track}),An=useSlotProps({elementType:Qn,getSlotProps:ln,externalSlotProps:_n,ownerState:_extends$2({},on,_n==null?void 0:_n.ownerState),className:un.thumb}),$n=useSlotProps({elementType:On,externalSlotProps:Wn,ownerState:_extends$2({},on,Wn==null?void 0:Wn.ownerState),className:un.valueLabel}),Gn=useSlotProps({elementType:wn,externalSlotProps:Pn,ownerState:on,className:un.mark}),jn=useSlotProps({elementType:Yn,externalSlotProps:Tn,ownerState:on,className:un.markLabel}),zn=useSlotProps({elementType:Nn,getSlotProps:fn,externalSlotProps:Vn,ownerState:on});return jsxRuntimeExports.jsxs(En,_extends$2({},Sn,{children:[jsxRuntimeExports.jsx(xn,_extends$2({},vn)),jsxRuntimeExports.jsx(Bn,_extends$2({},qn)),Wt.filter(kn=>kn.value>=Jt&&kn.value<=tn).map((kn,Cn)=>{const Rn=valueToPercent(kn.value,Jt,tn),Hn=an[Rt].offset(Rn);let Un;return sn===!1?Un=Vt.indexOf(kn.value)!==-1:Un=sn==="normal"&&(It?kn.value>=Vt[0]&&kn.value<=Vt[Vt.length-1]:kn.value<=Vt[0])||sn==="inverted"&&(It?kn.value<=Vt[0]||kn.value>=Vt[Vt.length-1]:kn.value>=Vt[0]),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(wn,_extends$2({"data-index":Cn},Gn,!isHostComponent(wn)&&{markActive:Un},{style:_extends$2({},Hn,Gn.style),className:clsx(Gn.className,Un&&un.markActive)})),kn.label!=null?jsxRuntimeExports.jsx(Yn,_extends$2({"aria-hidden":!0,"data-index":Cn},jn,!isHostComponent(Yn)&&{markLabelActive:Un},{style:_extends$2({},Hn,jn.style),className:clsx(un.markLabel,jn.className,Un&&un.markLabelActive),children:kn.label})):null]},Cn)}),Vt.map((kn,Cn)=>{const Rn=valueToPercent(kn,Jt,tn),Hn=an[Rt].offset(Rn),Un=nn==="off"?Forward:On;return jsxRuntimeExports.jsx(Un,_extends$2({},!isHostComponent(Un)&&{valueLabelFormat:rn,valueLabelDisplay:nn,value:typeof rn=="function"?rn(Qt(kn),Cn):rn,index:Cn,open:yn===Cn||mn===Cn||nn==="on",disabled:$t},$n,{children:jsxRuntimeExports.jsx(Qn,_extends$2({"data-index":Cn},An,{className:clsx(un.thumb,An.className,mn===Cn&&un.active,Et===Cn&&un.focusVisible),style:_extends$2({},Hn,pn(Cn),An.style),children:jsxRuntimeExports.jsx(Nn,_extends$2({"data-index":Cn,"aria-label":Ut?Ut(Cn):Nt,"aria-valuenow":Qt(kn),"aria-labelledby":bt,"aria-valuetext":Gt?Gt(Qt(kn),Cn):ht,value:Vt[Cn]},zn))}))}),Cn)})]}))});function getTooltipUtilityClass(s){return generateUtilityClass$1("MuiTooltip",s)}const tooltipClasses=generateUtilityClasses$1("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_excluded$b=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function round(s){return Math.round(s*1e5)/1e5}const useUtilityClasses$b=s=>{const{classes:j,disableInteractive:$,arrow:_e,touch:et,placement:tt}=s,nt={popper:["popper",!$&&"popperInteractive",_e&&"popperArrow"],tooltip:["tooltip",_e&&"tooltipArrow",et&&"touch",`tooltipPlacement${capitalize$1(tt.split("-")[0])}`],arrow:["arrow"]};return composeClasses(nt,getTooltipUtilityClass,j)},TooltipPopper=styled(Popper,{name:"MuiTooltip",slot:"Popper",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.popper,!$.disableInteractive&&j.popperInteractive,$.arrow&&j.popperArrow,!$.open&&j.popperClose]}})(({theme:s,ownerState:j,open:$})=>_extends$2({zIndex:(s.vars||s).zIndex.tooltip,pointerEvents:"none"},!j.disableInteractive&&{pointerEvents:"auto"},!$&&{pointerEvents:"none"},j.arrow&&{[`&[data-popper-placement*="bottom"] .${tooltipClasses.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tooltipClasses.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]:_extends$2({},j.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]:_extends$2({},j.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),TooltipTooltip=styled("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.tooltip,$.touch&&j.touch,$.arrow&&j.tooltipArrow,j[`tooltipPlacement${capitalize$1($.placement.split("-")[0])}`]]}})(({theme:s,ownerState:j})=>_extends$2({backgroundColor:s.vars?s.vars.palette.Tooltip.bg:alpha_1(s.palette.grey[700],.92),borderRadius:(s.vars||s).shape.borderRadius,color:(s.vars||s).palette.common.white,fontFamily:s.typography.fontFamily,padding:"4px 8px",fontSize:s.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:s.typography.fontWeightMedium},j.arrow&&{position:"relative",margin:0},j.touch&&{padding:"8px 16px",fontSize:s.typography.pxToRem(14),lineHeight:`${round(16/14)}em`,fontWeight:s.typography.fontWeightRegular},{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:_extends$2({transformOrigin:"right center"},j.isRtl?_extends$2({marginLeft:"14px"},j.touch&&{marginLeft:"24px"}):_extends$2({marginRight:"14px"},j.touch&&{marginRight:"24px"})),[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:_extends$2({transformOrigin:"left center"},j.isRtl?_extends$2({marginRight:"14px"},j.touch&&{marginRight:"24px"}):_extends$2({marginLeft:"14px"},j.touch&&{marginLeft:"24px"})),[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]:_extends$2({transformOrigin:"center bottom",marginBottom:"14px"},j.touch&&{marginBottom:"24px"}),[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]:_extends$2({transformOrigin:"center top",marginTop:"14px"},j.touch&&{marginTop:"24px"})})),TooltipArrow=styled("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(s,j)=>j.arrow})(({theme:s})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:s.vars?s.vars.palette.Tooltip.bg:alpha_1(s.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let hystersisOpen=!1;const hystersisTimer=new Timeout;let cursorPosition={x:0,y:0};function composeEventHandler(s,j){return($,..._e)=>{j&&j($,..._e),s($,..._e)}}const Tooltip=reactExports.forwardRef(function(j,$){var _e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,ft,gt,yt,mt,pt,xt,Ct;const Dt=useThemeProps$5({props:j,name:"MuiTooltip"}),{arrow:wt=!1,children:kt,components:zt={},componentsProps:Ot={},describeChild:Ft=!1,disableFocusListener:Pt=!1,disableHoverListener:Nt=!1,disableInteractive:ht=!1,disableTouchListener:bt=!1,enterDelay:St=100,enterNextDelay:vt=0,enterTouchDelay:At=700,followCursor:Tt=!1,id:jt,leaveDelay:Lt=0,leaveTouchDelay:Mt=1500,onClose:$t,onOpen:Ut,open:Gt,placement:Ht="bottom",PopperComponent:tn,PopperProps:Jt={},slotProps:Kt={},slots:dn={},title:en,TransitionComponent:qt=Grow,TransitionProps:Qt}=Dt,Zt=_objectWithoutPropertiesLoose(Dt,_excluded$b),Xt=reactExports.isValidElement(kt)?kt:jsxRuntimeExports.jsx("span",{children:kt}),sn=useTheme$1(),nn=useRtl(),[rn,gn]=reactExports.useState(),[on,an]=reactExports.useState(null),hn=reactExports.useRef(!1),fn=ht||Tt,ln=useTimeout(),yn=useTimeout(),mn=useTimeout(),Rt=useTimeout(),[Et,It]=useControlled({controlled:Gt,default:!1,name:"Tooltip",state:"open"});let Bt=Et;const Wt=useId(jt),Vt=reactExports.useRef(),Yt=useEventCallback(()=>{Vt.current!==void 0&&(document.body.style.WebkitUserSelect=Vt.current,Vt.current=void 0),Rt.clear()});reactExports.useEffect(()=>Yt,[Yt]);const cn=In=>{hystersisTimer.clear(),hystersisOpen=!0,It(!0),Ut&&!Bt&&Ut(In)},pn=useEventCallback(In=>{hystersisTimer.start(800+Lt,()=>{hystersisOpen=!1}),It(!1),$t&&Bt&&$t(In),ln.start(sn.transitions.duration.shortest,()=>{hn.current=!1})}),un=In=>{hn.current&&In.type!=="touchstart"||(rn&&rn.removeAttribute("title"),yn.clear(),mn.clear(),St||hystersisOpen&&vt?yn.start(hystersisOpen?vt:St,()=>{cn(In)}):cn(In))},En=In=>{yn.clear(),mn.start(Lt,()=>{pn(In)})},{isFocusVisibleRef:xn,onBlur:Bn,onFocus:Qn,ref:On}=useIsFocusVisible(),[,wn]=reactExports.useState(!1),Yn=In=>{Bn(In),xn.current===!1&&(wn(!1),En(In))},Nn=In=>{rn||gn(In.currentTarget),Qn(In),xn.current===!0&&(wn(!0),un(In))},Ln=In=>{hn.current=!0;const Fn=Xt.props;Fn.onTouchStart&&Fn.onTouchStart(In)},Zn=In=>{Ln(In),mn.clear(),ln.clear(),Yt(),Vt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Rt.start(At,()=>{document.body.style.WebkitUserSelect=Vt.current,un(In)})},Dn=In=>{Xt.props.onTouchEnd&&Xt.props.onTouchEnd(In),Yt(),mn.start(Mt,()=>{pn(In)})};reactExports.useEffect(()=>{if(!Bt)return;function In(Fn){(Fn.key==="Escape"||Fn.key==="Esc")&&pn(Fn)}return document.addEventListener("keydown",In),()=>{document.removeEventListener("keydown",In)}},[pn,Bt]);const _n=useForkRef(Xt.ref,On,gn,$);!en&&en!==0&&(Bt=!1);const Wn=reactExports.useRef(),Pn=In=>{const Fn=Xt.props;Fn.onMouseMove&&Fn.onMouseMove(In),cursorPosition={x:In.clientX,y:In.clientY},Wn.current&&Wn.current.update()},Tn={},Vn=typeof en=="string";Ft?(Tn.title=!Bt&&Vn&&!Nt?en:null,Tn["aria-describedby"]=Bt?Wt:null):(Tn["aria-label"]=Vn?en:null,Tn["aria-labelledby"]=Bt&&!Vn?Wt:null);const Sn=_extends$2({},Tn,Zt,Xt.props,{className:clsx(Zt.className,Xt.props.className),onTouchStart:Ln,ref:_n},Tt?{onMouseMove:Pn}:{}),vn={};bt||(Sn.onTouchStart=Zn,Sn.onTouchEnd=Dn),Nt||(Sn.onMouseOver=composeEventHandler(un,Sn.onMouseOver),Sn.onMouseLeave=composeEventHandler(En,Sn.onMouseLeave),fn||(vn.onMouseOver=un,vn.onMouseLeave=En)),Pt||(Sn.onFocus=composeEventHandler(Nn,Sn.onFocus),Sn.onBlur=composeEventHandler(Yn,Sn.onBlur),fn||(vn.onFocus=Nn,vn.onBlur=Yn));const qn=reactExports.useMemo(()=>{var In;let Fn=[{name:"arrow",enabled:!!on,options:{element:on,padding:4}}];return(In=Jt.popperOptions)!=null&&In.modifiers&&(Fn=Fn.concat(Jt.popperOptions.modifiers)),_extends$2({},Jt.popperOptions,{modifiers:Fn})},[on,Jt]),An=_extends$2({},Dt,{isRtl:nn,arrow:wt,disableInteractive:fn,placement:Ht,PopperComponentProp:tn,touch:hn.current}),$n=useUtilityClasses$b(An),Gn=(_e=(et=dn.popper)!=null?et:zt.Popper)!=null?_e:TooltipPopper,jn=(tt=(nt=(rt=dn.transition)!=null?rt:zt.Transition)!=null?nt:qt)!=null?tt:Grow,zn=(ot=(it=dn.tooltip)!=null?it:zt.Tooltip)!=null?ot:TooltipTooltip,kn=(st=(at=dn.arrow)!=null?at:zt.Arrow)!=null?st:TooltipArrow,Cn=appendOwnerState(Gn,_extends$2({},Jt,(ct=Kt.popper)!=null?ct:Ot.popper,{className:clsx($n.popper,Jt==null?void 0:Jt.className,(lt=(dt=Kt.popper)!=null?dt:Ot.popper)==null?void 0:lt.className)}),An),Rn=appendOwnerState(jn,_extends$2({},Qt,(ft=Kt.transition)!=null?ft:Ot.transition),An),Hn=appendOwnerState(zn,_extends$2({},(gt=Kt.tooltip)!=null?gt:Ot.tooltip,{className:clsx($n.tooltip,(yt=(mt=Kt.tooltip)!=null?mt:Ot.tooltip)==null?void 0:yt.className)}),An),Un=appendOwnerState(kn,_extends$2({},(pt=Kt.arrow)!=null?pt:Ot.arrow,{className:clsx($n.arrow,(xt=(Ct=Kt.arrow)!=null?Ct:Ot.arrow)==null?void 0:xt.className)}),An);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[reactExports.cloneElement(Xt,Sn),jsxRuntimeExports.jsx(Gn,_extends$2({as:tn??Popper,placement:Ht,anchorEl:Tt?{getBoundingClientRect:()=>({top:cursorPosition.y,left:cursorPosition.x,right:cursorPosition.x,bottom:cursorPosition.y,width:0,height:0})}:rn,popperRef:Wn,open:rn?Bt:!1,id:Wt,transition:!0},vn,Cn,{popperOptions:qn,children:({TransitionProps:In})=>jsxRuntimeExports.jsx(jn,_extends$2({timeout:sn.transitions.duration.shorter},In,Rn,{children:jsxRuntimeExports.jsxs(zn,_extends$2({},Hn,{children:[en,wt?jsxRuntimeExports.jsx(kn,_extends$2({},Un,{ref:an})):null]}))}))}))]})}),TableContext=reactExports.createContext();function getTableUtilityClass(s){return generateUtilityClass$1("MuiTable",s)}generateUtilityClasses$1("MuiTable",["root","stickyHeader"]);const _excluded$a=["className","component","padding","size","stickyHeader"],useUtilityClasses$a=s=>{const{classes:j,stickyHeader:$}=s;return composeClasses({root:["root",$&&"stickyHeader"]},getTableUtilityClass,j)},TableRoot=styled("table",{name:"MuiTable",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.stickyHeader&&j.stickyHeader]}})(({theme:s,ownerState:j})=>_extends$2({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":_extends$2({},s.typography.body2,{padding:s.spacing(2),color:(s.vars||s).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},j.stickyHeader&&{borderCollapse:"separate"})),defaultComponent$4="table",Table$1=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTable"}),{className:et,component:tt=defaultComponent$4,padding:nt="normal",size:rt="medium",stickyHeader:ot=!1}=_e,it=_objectWithoutPropertiesLoose(_e,_excluded$a),st=_extends$2({},_e,{component:tt,padding:nt,size:rt,stickyHeader:ot}),at=useUtilityClasses$a(st),ct=reactExports.useMemo(()=>({padding:nt,size:rt,stickyHeader:ot}),[nt,rt,ot]);return jsxRuntimeExports.jsx(TableContext.Provider,{value:ct,children:jsxRuntimeExports.jsx(TableRoot,_extends$2({as:tt,role:tt===defaultComponent$4?null:"table",ref:$,className:clsx(at.root,et),ownerState:st},it))})}),Tablelvl2Context=reactExports.createContext();function getTableBodyUtilityClass(s){return generateUtilityClass$1("MuiTableBody",s)}generateUtilityClasses$1("MuiTableBody",["root"]);const _excluded$9=["className","component"],useUtilityClasses$9=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTableBodyUtilityClass,j)},TableBodyRoot=styled("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(s,j)=>j.root})({display:"table-row-group"}),tablelvl2$2={variant:"body"},defaultComponent$3="tbody",TableBody=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableBody"}),{className:et,component:tt=defaultComponent$3}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$9),rt=_extends$2({},_e,{component:tt}),ot=useUtilityClasses$9(rt);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2$2,children:jsxRuntimeExports.jsx(TableBodyRoot,_extends$2({className:clsx(ot.root,et),as:tt,ref:$,role:tt===defaultComponent$3?null:"rowgroup",ownerState:rt},nt))})});function getTableCellUtilityClass(s){return generateUtilityClass$1("MuiTableCell",s)}const tableCellClasses=generateUtilityClasses$1("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_excluded$8=["align","className","component","padding","scope","size","sortDirection","variant"],useUtilityClasses$8=s=>{const{classes:j,variant:$,align:_e,padding:et,size:tt,stickyHeader:nt}=s,rt={root:["root",$,nt&&"stickyHeader",_e!=="inherit"&&`align${capitalize$1(_e)}`,et!=="normal"&&`padding${capitalize$1(et)}`,`size${capitalize$1(tt)}`]};return composeClasses(rt,getTableCellUtilityClass,j)},TableCellRoot=styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[$.variant],j[`size${capitalize$1($.size)}`],$.padding!=="normal"&&j[`padding${capitalize$1($.padding)}`],$.align!=="inherit"&&j[`align${capitalize$1($.align)}`],$.stickyHeader&&j.stickyHeader]}})(({theme:s,ownerState:j})=>_extends$2({},s.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:s.vars?`1px solid ${s.vars.palette.TableCell.border}`:`1px solid + ${s.palette.mode==="light"?lighten_1(alpha_1(s.palette.divider,1),.88):darken_1(alpha_1(s.palette.divider,1),.68)}`,textAlign:"left",padding:16},j.variant==="head"&&{color:(s.vars||s).palette.text.primary,lineHeight:s.typography.pxToRem(24),fontWeight:s.typography.fontWeightMedium},j.variant==="body"&&{color:(s.vars||s).palette.text.primary},j.variant==="footer"&&{color:(s.vars||s).palette.text.secondary,lineHeight:s.typography.pxToRem(21),fontSize:s.typography.pxToRem(12)},j.size==="small"&&{padding:"6px 16px",[`&.${tableCellClasses.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},j.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},j.padding==="none"&&{padding:0},j.align==="left"&&{textAlign:"left"},j.align==="center"&&{textAlign:"center"},j.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},j.align==="justify"&&{textAlign:"justify"},j.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(s.vars||s).palette.background.default})),TableCell=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableCell"}),{align:et="inherit",className:tt,component:nt,padding:rt,scope:ot,size:it,sortDirection:st,variant:at}=_e,ct=_objectWithoutPropertiesLoose(_e,_excluded$8),lt=reactExports.useContext(TableContext),dt=reactExports.useContext(Tablelvl2Context),ft=dt&&dt.variant==="head";let gt;nt?gt=nt:gt=ft?"th":"td";let yt=ot;gt==="td"?yt=void 0:!yt&&ft&&(yt="col");const mt=at||dt&&dt.variant,pt=_extends$2({},_e,{align:et,component:gt,padding:rt||(lt&<.padding?lt.padding:"normal"),size:it||(lt&<.size?lt.size:"medium"),sortDirection:st,stickyHeader:mt==="head"&<&<.stickyHeader,variant:mt}),xt=useUtilityClasses$8(pt);let Ct=null;return st&&(Ct=st==="asc"?"ascending":"descending"),jsxRuntimeExports.jsx(TableCellRoot,_extends$2({as:gt,ref:$,className:clsx(xt.root,tt),"aria-sort":Ct,scope:yt,ownerState:pt},ct))});function getTableContainerUtilityClass(s){return generateUtilityClass$1("MuiTableContainer",s)}generateUtilityClasses$1("MuiTableContainer",["root"]);const _excluded$7=["className","component"],useUtilityClasses$7=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTableContainerUtilityClass,j)},TableContainerRoot=styled("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(s,j)=>j.root})({width:"100%",overflowX:"auto"}),TableContainer=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableContainer"}),{className:et,component:tt="div"}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$7),rt=_extends$2({},_e,{component:tt}),ot=useUtilityClasses$7(rt);return jsxRuntimeExports.jsx(TableContainerRoot,_extends$2({ref:$,as:tt,className:clsx(ot.root,et),ownerState:rt},nt))});function getTableFooterUtilityClass(s){return generateUtilityClass$1("MuiTableFooter",s)}generateUtilityClasses$1("MuiTableFooter",["root"]);const _excluded$6=["className","component"],useUtilityClasses$6=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTableFooterUtilityClass,j)},TableFooterRoot=styled("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(s,j)=>j.root})({display:"table-footer-group"}),tablelvl2$1={variant:"footer"},defaultComponent$2="tfoot",TableFooter=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableFooter"}),{className:et,component:tt=defaultComponent$2}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$6),rt=_extends$2({},_e,{component:tt}),ot=useUtilityClasses$6(rt);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2$1,children:jsxRuntimeExports.jsx(TableFooterRoot,_extends$2({as:tt,className:clsx(ot.root,et),ref:$,role:tt===defaultComponent$2?null:"rowgroup",ownerState:rt},nt))})});function getTableHeadUtilityClass(s){return generateUtilityClass$1("MuiTableHead",s)}generateUtilityClasses$1("MuiTableHead",["root"]);const _excluded$5=["className","component"],useUtilityClasses$5=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTableHeadUtilityClass,j)},TableHeadRoot=styled("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(s,j)=>j.root})({display:"table-header-group"}),tablelvl2={variant:"head"},defaultComponent$1="thead",TableHead=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableHead"}),{className:et,component:tt=defaultComponent$1}=_e,nt=_objectWithoutPropertiesLoose(_e,_excluded$5),rt=_extends$2({},_e,{component:tt}),ot=useUtilityClasses$5(rt);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2,children:jsxRuntimeExports.jsx(TableHeadRoot,_extends$2({as:tt,className:clsx(ot.root,et),ref:$,role:tt===defaultComponent$1?null:"rowgroup",ownerState:rt},nt))})});function getToolbarUtilityClass(s){return generateUtilityClass$1("MuiToolbar",s)}generateUtilityClasses$1("MuiToolbar",["root","gutters","regular","dense"]);const _excluded$4=["className","component","disableGutters","variant"],useUtilityClasses$4=s=>{const{classes:j,disableGutters:$,variant:_e}=s;return composeClasses({root:["root",!$&&"gutters",_e]},getToolbarUtilityClass,j)},ToolbarRoot=styled("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,!$.disableGutters&&j.gutters,j[$.variant]]}})(({theme:s,ownerState:j})=>_extends$2({position:"relative",display:"flex",alignItems:"center"},!j.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},j.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:j})=>j.variant==="regular"&&s.mixins.toolbar),Toolbar=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiToolbar"}),{className:et,component:tt="div",disableGutters:nt=!1,variant:rt="regular"}=_e,ot=_objectWithoutPropertiesLoose(_e,_excluded$4),it=_extends$2({},_e,{component:tt,disableGutters:nt,variant:rt}),st=useUtilityClasses$4(it);return jsxRuntimeExports.jsx(ToolbarRoot,_extends$2({as:tt,className:clsx(st.root,et),ref:$,ownerState:it},ot))});function getTableRowUtilityClass(s){return generateUtilityClass$1("MuiTableRow",s)}const tableRowClasses=generateUtilityClasses$1("MuiTableRow",["root","selected","hover","head","footer"]),_excluded$3=["className","component","hover","selected"],useUtilityClasses$3=s=>{const{classes:j,selected:$,hover:_e,head:et,footer:tt}=s;return composeClasses({root:["root",$&&"selected",_e&&"hover",et&&"head",tt&&"footer"]},getTableRowUtilityClass,j)},TableRowRoot=styled("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,$.head&&j.head,$.footer&&j.footer]}})(({theme:s})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tableRowClasses.hover}:hover`]:{backgroundColor:(s.vars||s).palette.action.hover},[`&.${tableRowClasses.selected}`]:{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / ${s.vars.palette.action.selectedOpacity})`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity),"&:hover":{backgroundColor:s.vars?`rgba(${s.vars.palette.primary.mainChannel} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha_1(s.palette.primary.main,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity)}}})),defaultComponent="tr",TableRow=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTableRow"}),{className:et,component:tt=defaultComponent,hover:nt=!1,selected:rt=!1}=_e,ot=_objectWithoutPropertiesLoose(_e,_excluded$3),it=reactExports.useContext(Tablelvl2Context),st=_extends$2({},_e,{component:tt,hover:nt,selected:rt,head:it&&it.variant==="head",footer:it&&it.variant==="footer"}),at=useUtilityClasses$3(st);return jsxRuntimeExports.jsx(TableRowRoot,_extends$2({as:tt,ref:$,className:clsx(at.root,et),role:tt===defaultComponent?null:"row",ownerState:st},ot))});function getTextFieldUtilityClass(s){return generateUtilityClass$1("MuiTextField",s)}generateUtilityClasses$1("MuiTextField",["root"]);const _excluded$2=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],variantComponent={standard:Input,filled:FilledInput,outlined:OutlinedInput},useUtilityClasses$2=s=>{const{classes:j}=s;return composeClasses({root:["root"]},getTextFieldUtilityClass,j)},TextFieldRoot=styled(FormControl,{name:"MuiTextField",slot:"Root",overridesResolver:(s,j)=>j.root})({}),TextField=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiTextField"}),{autoComplete:et,autoFocus:tt=!1,children:nt,className:rt,color:ot="primary",defaultValue:it,disabled:st=!1,error:at=!1,FormHelperTextProps:ct,fullWidth:lt=!1,helperText:dt,id:ft,InputLabelProps:gt,inputProps:yt,InputProps:mt,inputRef:pt,label:xt,maxRows:Ct,minRows:Dt,multiline:wt=!1,name:kt,onBlur:zt,onChange:Ot,onFocus:Ft,placeholder:Pt,required:Nt=!1,rows:ht,select:bt=!1,SelectProps:St,type:vt,value:At,variant:Tt="outlined"}=_e,jt=_objectWithoutPropertiesLoose(_e,_excluded$2),Lt=_extends$2({},_e,{autoFocus:tt,color:ot,disabled:st,error:at,fullWidth:lt,multiline:wt,required:Nt,select:bt,variant:Tt}),Mt=useUtilityClasses$2(Lt),$t={};Tt==="outlined"&&(gt&&typeof gt.shrink<"u"&&($t.notched=gt.shrink),$t.label=xt),bt&&((!St||!St.native)&&($t.id=void 0),$t["aria-describedby"]=void 0);const Ut=useId(ft),Gt=dt&&Ut?`${Ut}-helper-text`:void 0,Ht=xt&&Ut?`${Ut}-label`:void 0,tn=variantComponent[Tt],Jt=jsxRuntimeExports.jsx(tn,_extends$2({"aria-describedby":Gt,autoComplete:et,autoFocus:tt,defaultValue:it,fullWidth:lt,multiline:wt,name:kt,rows:ht,maxRows:Ct,minRows:Dt,type:vt,value:At,id:Ut,inputRef:pt,onBlur:zt,onChange:Ot,onFocus:Ft,placeholder:Pt,inputProps:yt},$t,mt));return jsxRuntimeExports.jsxs(TextFieldRoot,_extends$2({className:clsx(Mt.root,rt),disabled:st,error:at,fullWidth:lt,ref:$,required:Nt,color:ot,variant:Tt,ownerState:Lt},jt,{children:[xt!=null&&xt!==""&&jsxRuntimeExports.jsx(InputLabel,_extends$2({htmlFor:Ut,id:Ht},gt,{children:xt})),bt?jsxRuntimeExports.jsx(Select,_extends$2({"aria-describedby":Gt,id:Ut,labelId:Ht,value:At,input:Jt},St,{children:nt})):Jt,dt&&jsxRuntimeExports.jsx(FormHelperText,_extends$2({id:Gt},ct,{children:dt}))]}))});function getToggleButtonUtilityClass(s){return generateUtilityClass$1("MuiToggleButton",s)}const toggleButtonClasses=generateUtilityClasses$1("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ToggleButtonGroupContext=reactExports.createContext({}),ToggleButtonGroupButtonContext=reactExports.createContext(void 0);function isValueSelected(s,j){return j===void 0||s===void 0?!1:Array.isArray(j)?j.indexOf(s)>=0:s===j}const _excluded$1=["value"],_excluded2=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],useUtilityClasses$1=s=>{const{classes:j,fullWidth:$,selected:_e,disabled:et,size:tt,color:nt}=s,rt={root:["root",_e&&"selected",et&&"disabled",$&&"fullWidth",`size${capitalize$1(tt)}`,nt]};return composeClasses(rt,getToggleButtonUtilityClass,j)},ToggleButtonRoot=styled(ButtonBase,{name:"MuiToggleButton",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[j.root,j[`size${capitalize$1($.size)}`]]}})(({theme:s,ownerState:j})=>{let $=j.color==="standard"?s.palette.text.primary:s.palette[j.color].main,_e;return s.vars&&($=j.color==="standard"?s.vars.palette.text.primary:s.vars.palette[j.color].main,_e=j.color==="standard"?s.vars.palette.text.primaryChannel:s.vars.palette[j.color].mainChannel),_extends$2({},s.typography.button,{borderRadius:(s.vars||s).shape.borderRadius,padding:11,border:`1px solid ${(s.vars||s).palette.divider}`,color:(s.vars||s).palette.action.active},j.fullWidth&&{width:"100%"},{[`&.${toggleButtonClasses.disabled}`]:{color:(s.vars||s).palette.action.disabled,border:`1px solid ${(s.vars||s).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:s.vars?`rgba(${s.vars.palette.text.primaryChannel} / ${s.vars.palette.action.hoverOpacity})`:alpha$1(s.palette.text.primary,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${toggleButtonClasses.selected}`]:{color:$,backgroundColor:s.vars?`rgba(${_e} / ${s.vars.palette.action.selectedOpacity})`:alpha$1($,s.palette.action.selectedOpacity),"&:hover":{backgroundColor:s.vars?`rgba(${_e} / calc(${s.vars.palette.action.selectedOpacity} + ${s.vars.palette.action.hoverOpacity}))`:alpha$1($,s.palette.action.selectedOpacity+s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:s.vars?`rgba(${_e} / ${s.vars.palette.action.selectedOpacity})`:alpha$1($,s.palette.action.selectedOpacity)}}}},j.size==="small"&&{padding:7,fontSize:s.typography.pxToRem(13)},j.size==="large"&&{padding:15,fontSize:s.typography.pxToRem(15)})}),ToggleButton=reactExports.forwardRef(function(j,$){const _e=reactExports.useContext(ToggleButtonGroupContext),{value:et}=_e,tt=_objectWithoutPropertiesLoose(_e,_excluded$1),nt=reactExports.useContext(ToggleButtonGroupButtonContext),rt=resolveProps(_extends$2({},tt,{selected:isValueSelected(j.value,et)}),j),ot=useThemeProps$5({props:rt,name:"MuiToggleButton"}),{children:it,className:st,color:at="standard",disabled:ct=!1,disableFocusRipple:lt=!1,fullWidth:dt=!1,onChange:ft,onClick:gt,selected:yt,size:mt="medium",value:pt}=ot,xt=_objectWithoutPropertiesLoose(ot,_excluded2),Ct=_extends$2({},ot,{color:at,disabled:ct,disableFocusRipple:lt,fullWidth:dt,size:mt}),Dt=useUtilityClasses$1(Ct),wt=zt=>{gt&&(gt(zt,pt),zt.defaultPrevented)||ft&&ft(zt,pt)},kt=nt||"";return jsxRuntimeExports.jsx(ToggleButtonRoot,_extends$2({className:clsx(tt.className,Dt.root,st,kt),disabled:ct,focusRipple:!lt,ref:$,onClick:wt,onChange:ft,value:pt,ownerState:Ct,"aria-pressed":yt},xt,{children:it}))});function getToggleButtonGroupUtilityClass(s){return generateUtilityClass$1("MuiToggleButtonGroup",s)}const toggleButtonGroupClasses=generateUtilityClasses$1("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),_excluded=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],useUtilityClasses=s=>{const{classes:j,orientation:$,fullWidth:_e,disabled:et}=s,tt={root:["root",$==="vertical"&&"vertical",_e&&"fullWidth"],grouped:["grouped",`grouped${capitalize$1($)}`,et&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return composeClasses(tt,getToggleButtonGroupUtilityClass,j)},ToggleButtonGroupRoot=styled("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(s,j)=>{const{ownerState:$}=s;return[{[`& .${toggleButtonGroupClasses.grouped}`]:j.grouped},{[`& .${toggleButtonGroupClasses.grouped}`]:j[`grouped${capitalize$1($.orientation)}`]},{[`& .${toggleButtonGroupClasses.firstButton}`]:j.firstButton},{[`& .${toggleButtonGroupClasses.lastButton}`]:j.lastButton},{[`& .${toggleButtonGroupClasses.middleButton}`]:j.middleButton},j.root,$.orientation==="vertical"&&j.vertical,$.fullWidth&&j.fullWidth]}})(({ownerState:s,theme:j})=>_extends$2({display:"inline-flex",borderRadius:(j.vars||j).shape.borderRadius},s.orientation==="vertical"&&{flexDirection:"column"},s.fullWidth&&{width:"100%"},{[`& .${toggleButtonGroupClasses.grouped}`]:_extends$2({},s.orientation==="horizontal"?{[`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]:{borderTop:0,marginTop:0}})},s.orientation==="horizontal"?{[`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},s.orientation==="horizontal"?{[`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]:{borderTop:"1px solid transparent"}})),ToggleButtonGroup=reactExports.forwardRef(function(j,$){const _e=useThemeProps$5({props:j,name:"MuiToggleButtonGroup"}),{children:et,className:tt,color:nt="standard",disabled:rt=!1,exclusive:ot=!1,fullWidth:it=!1,onChange:st,orientation:at="horizontal",size:ct="medium",value:lt}=_e,dt=_objectWithoutPropertiesLoose(_e,_excluded),ft=_extends$2({},_e,{disabled:rt,fullWidth:it,orientation:at,size:ct}),gt=useUtilityClasses(ft),yt=reactExports.useCallback((wt,kt)=>{if(!st)return;const zt=lt&<.indexOf(kt);let Ot;lt&&zt>=0?(Ot=lt.slice(),Ot.splice(zt,1)):Ot=lt?lt.concat(kt):[kt],st(wt,Ot)},[st,lt]),mt=reactExports.useCallback((wt,kt)=>{st&&st(wt,lt===kt?null:kt)},[st,lt]),pt=reactExports.useMemo(()=>({className:gt.grouped,onChange:ot?mt:yt,value:lt,size:ct,fullWidth:it,color:nt,disabled:rt}),[gt.grouped,ot,mt,yt,lt,ct,it,nt,rt]),xt=getValidReactChildren(et),Ct=xt.length,Dt=wt=>{const kt=wt===0,zt=wt===Ct-1;return kt&&zt?"":kt?gt.firstButton:zt?gt.lastButton:gt.middleButton};return jsxRuntimeExports.jsx(ToggleButtonGroupRoot,_extends$2({role:"group",className:clsx(gt.root,tt),ref:$,ownerState:ft},dt,{children:jsxRuntimeExports.jsx(ToggleButtonGroupContext.Provider,{value:pt,children:xt.map((wt,kt)=>jsxRuntimeExports.jsx(ToggleButtonGroupButtonContext.Provider,{value:Dt(kt),children:wt},kt))})}))});function isAbsolute(s){return s.charAt(0)==="/"}function spliceOne(s,j){for(var $=j,_e=$+1,et=s.length;_e=0;st--){var at=_e[st];at==="."?spliceOne(_e,st):at===".."?(spliceOne(_e,st),it++):it&&(spliceOne(_e,st),it--)}if(!nt)for(;it--;it)_e.unshift("..");nt&&_e[0]!==""&&(!_e[0]||!isAbsolute(_e[0]))&&_e.unshift("");var ct=_e.join("/");return rt&&ct.substr(-1)!=="/"&&(ct+="/"),ct}var prefix="Invariant failed";function invariant(s,j){throw new Error(prefix)}function addLeadingSlash$1(s){return s.charAt(0)==="/"?s:"/"+s}function stripLeadingSlash(s){return s.charAt(0)==="/"?s.substr(1):s}function hasBasename(s,j){return s.toLowerCase().indexOf(j.toLowerCase())===0&&"/?#".indexOf(s.charAt(j.length))!==-1}function stripBasename$1(s,j){return hasBasename(s,j)?s.substr(j.length):s}function stripTrailingSlash(s){return s.charAt(s.length-1)==="/"?s.slice(0,-1):s}function parsePath(s){var j=s||"/",$="",_e="",et=j.indexOf("#");et!==-1&&(_e=j.substr(et),j=j.substr(0,et));var tt=j.indexOf("?");return tt!==-1&&($=j.substr(tt),j=j.substr(0,tt)),{pathname:j,search:$==="?"?"":$,hash:_e==="#"?"":_e}}function createPath(s){var j=s.pathname,$=s.search,_e=s.hash,et=j||"/";return $&&$!=="?"&&(et+=$.charAt(0)==="?"?$:"?"+$),_e&&_e!=="#"&&(et+=_e.charAt(0)==="#"?_e:"#"+_e),et}function createLocation(s,j,$,_e){var et;typeof s=="string"?(et=parsePath(s),et.state=j):(et=_extends$2({},s),et.pathname===void 0&&(et.pathname=""),et.search?et.search.charAt(0)!=="?"&&(et.search="?"+et.search):et.search="",et.hash?et.hash.charAt(0)!=="#"&&(et.hash="#"+et.hash):et.hash="",j!==void 0&&et.state===void 0&&(et.state=j));try{et.pathname=decodeURI(et.pathname)}catch(tt){throw tt instanceof URIError?new URIError('Pathname "'+et.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):tt}return $&&(et.key=$),_e?et.pathname?et.pathname.charAt(0)!=="/"&&(et.pathname=resolvePathname(et.pathname,_e.pathname)):et.pathname=_e.pathname:et.pathname||(et.pathname="/"),et}function createTransitionManager(){var s=null;function j(nt){return s=nt,function(){s===nt&&(s=null)}}function $(nt,rt,ot,it){if(s!=null){var st=typeof s=="function"?s(nt,rt):s;typeof st=="string"?typeof ot=="function"?ot(st,it):it(!0):it(st!==!1)}else it(!0)}var _e=[];function et(nt){var rt=!0;function ot(){rt&&nt.apply(void 0,arguments)}return _e.push(ot),function(){rt=!1,_e=_e.filter(function(it){return it!==ot})}}function tt(){for(var nt=arguments.length,rt=new Array(nt),ot=0;otht?bt.splice(ht,bt.length-ht,Ft):bt.push(Ft),st({action:Ot,location:Ft,index:ht,entries:bt})}})}function gt(kt,zt){var Ot="REPLACE",Ft=createLocation(kt,zt,at(),wt.location);it.confirmTransitionTo(Ft,Ot,$,function(Pt){Pt&&(wt.entries[wt.index]=Ft,st({action:Ot,location:Ft}))})}function yt(kt){var zt=clamp(wt.index+kt,0,wt.entries.length-1),Ot="POP",Ft=wt.entries[zt];it.confirmTransitionTo(Ft,Ot,$,function(Pt){Pt?st({action:Ot,location:Ft,index:zt}):st()})}function mt(){yt(-1)}function pt(){yt(1)}function xt(kt){var zt=wt.index+kt;return zt>=0&&zt"u"&&(forwardRef=forwardRefShim);function isModifiedEvent(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}var LinkAnchor=forwardRef(function(s,j){var $=s.innerRef,_e=s.navigate,et=s.onClick,tt=_objectWithoutPropertiesLoose(s,["innerRef","navigate","onClick"]),nt=tt.target,rt=_extends$2({},tt,{onClick:function(it){try{et&&et(it)}catch(st){throw it.preventDefault(),st}!it.defaultPrevented&&it.button===0&&(!nt||nt==="_self")&&!isModifiedEvent(it)&&(it.preventDefault(),_e())}});return forwardRefShim!==forwardRef?rt.ref=j||$:rt.ref=$,React$1.createElement("a",rt)}),Link=forwardRef(function(s,j){var $=s.component,_e=$===void 0?LinkAnchor:$,et=s.replace,tt=s.to,nt=s.innerRef,rt=_objectWithoutPropertiesLoose(s,["component","replace","to","innerRef"]);return React$1.createElement(context.Consumer,null,function(ot){ot||invariant();var it=ot.history,st=normalizeToLocation(resolveToLocation(tt,ot.location),ot.location),at=st?it.createHref(st):"",ct=_extends$2({},rt,{href:at,navigate:function(){var dt=resolveToLocation(tt,ot.location),ft=createPath(ot.location)===createPath(normalizeToLocation(dt)),gt=et||ft?it.replace:it.push;gt(dt)}});return forwardRefShim!==forwardRef?ct.ref=j||nt:ct.innerRef=nt,React$1.createElement(_e,ct)})}),forwardRefShim$1=function(j){return j},forwardRef$1=React$1.forwardRef;typeof forwardRef$1>"u"&&(forwardRef$1=forwardRefShim$1);function joinClassnames(){for(var s=arguments.length,j=new Array(s),$=0;$s&&(s==="light"||s==="dark"||s==="auto"),isSettings=s=>s&&s.theme&&isTheme(s.theme);let localStorageSettings=null;try{const s=localStorage.getItem(STORAGE_KEY);if(s){const j=JSON.parse(s);isSettings(j)&&(localStorageSettings=j)}}catch{}const initialSettings=localStorageSettings||{theme:"auto"},saveSettings=s=>{try{localStorage.setItem(STORAGE_KEY,JSON.stringify(s))}catch{}},SettingsContext=React$1.createContext({settings:initialSettings,updateBackgroundOpacity:s=>{},updateBackgroundUrl:s=>{},updateTheme:s=>{},updateShowChainName:s=>{},updateShowAllMisses:s=>{},updateShowMonitorDetails:s=>{}}),SettingsContextProvider=({children:s})=>{const[j,$]=reactExports.useState(initialSettings),_e=reactExports.useCallback(st=>{$(at=>({...at,backgroundOpacity:st}))},[]),et=reactExports.useCallback(st=>{$(at=>({...at,backgroundUrl:st}))},[]),tt=reactExports.useCallback(st=>{$(at=>({...at,theme:st}))},[]),nt=reactExports.useCallback(st=>{$(at=>({...at,showChainName:st}))},[]),rt=reactExports.useCallback(st=>{$(at=>({...at,showAllMisses:st}))},[]),ot=reactExports.useCallback(st=>{$(at=>({...at,showMonitorDetails:st}))},[]);reactExports.useEffect(()=>{saveSettings(j)},[j]);const it=reactExports.useMemo(()=>({settings:j,updateBackgroundOpacity:_e,updateBackgroundUrl:et,updateTheme:tt,updateShowChainName:nt,updateShowAllMisses:rt,updateShowMonitorDetails:ot}),[j,_e,et,tt,nt,rt,ot]);return jsxRuntimeExports.jsx(SettingsContext.Provider,{value:it,children:s})},useSettingsContext=()=>reactExports.useContext(SettingsContext),mediaQueryList=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");function CustomThemeProvider({children:s}){const{settings:{theme:j,backgroundOpacity:$,backgroundUrl:_e}}=useSettingsContext(),[et,tt]=reactExports.useState(!!(mediaQueryList&&mediaQueryList.matches)),nt=reactExports.useCallback(it=>{tt(!!it.matches)},[]);reactExports.useEffect(()=>{if(j==="auto")return mediaQueryList.addEventListener("change",nt),()=>{mediaQueryList.removeEventListener("change",nt)}},[j,nt]);const rt=j==="dark"||j==="auto"&&et?"dark":"light",ot=reactExports.useMemo(()=>responsiveFontSizes(createTheme({palette:{mode:rt},components:{MuiCssBaseline:{styleOverrides:{body:{overflowY:"scroll"},"*":{scrollbarWidth:"thin",scrollbarColor:rt==="dark"?`${grey[700]} ${grey[900]}`:`${grey[400]} rgb(255,255,255)`},"*::-webkit-scrollbar":{width:"8px",height:"8px",backgroundColor:rt==="dark"?grey[900]:"rgb(255,255,255)"},"*::-webkit-scrollbar-thumb":{backgroundColor:rt==="dark"?grey[700]:grey[400],borderRadius:"4px"},"*::-webkit-scrollbar-corner":{backgroundColor:"transparent"}}}}})),[rt]);return jsxRuntimeExports.jsxs(ThemeProvider,{theme:ot,children:[s,_e&&jsxRuntimeExports.jsx(Box,{sx:{backgroundImage:`url(${_e})`,backgroundPosition:"center",backgroundSize:"cover",opacity:$||.1,position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:-1}})]})}const ArrowDownward=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),ArrowUpward=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),CheckCircleOutline=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),Code=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),ContrastOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10m1-17.93c3.94.49 7 3.85 7 7.93s-3.05 7.44-7 7.93z"}),"ContrastOutlined"),DarkModeOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkModeOutlined"),ErrorOutline=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),ExpandMore=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),FirstPage=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),GitHub=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),GridView=createSvgIcon(jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M3 3v8h8V3zm6 6H5V5h4zm-6 4v8h8v-8zm6 6H5v-4h4zm4-16v8h8V3zm6 6h-4V5h4zm-6 4v8h8v-8zm6 6h-4v-4h4z"}),"GridView"),InfoOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),KeyboardArrowDown=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),KeyboardArrowRight=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),LastPage=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Launch=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch"),LightModeOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightModeOutlined"),LinkIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),MonitorHeartOutlined=createSvgIcon([jsxRuntimeExports.jsx("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v3h2V6h16v3h2V6c0-1.1-.9-2-2-2m0 14H4v-3H2v3c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-3h-2z"},"0"),jsxRuntimeExports.jsx("path",{d:"M14.89 7.55c-.34-.68-1.45-.68-1.79 0L10 13.76l-1.11-2.21A.988.988 0 0 0 8 11H2v2h5.38l1.72 3.45c.18.34.52.55.9.55s.72-.21.89-.55L14 10.24l1.11 2.21c.17.34.51.55.89.55h6v-2h-5.38z"},"1")],"MonitorHeartOutlined"),NavigateBefore=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),NavigateNext=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),PlayCircleOutline=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline"),ReceiptLongOutlined=createSvgIcon([jsxRuntimeExports.jsx("path",{d:"M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2zM15 20H6c-.55 0-1-.45-1-1v-1h10zm4-1c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11z"},"0"),jsxRuntimeExports.jsx("path",{d:"M9 7h6v2H9zm7 0h2v2h-2zm-7 3h6v2H9zm7 0h2v2h-2z"},"1")],"ReceiptLongOutlined"),Search=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),SettingsOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"SettingsOutlined"),SyncAltOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M7.41 13.41 6 12l-4 4 4 4 1.41-1.41L5.83 17H21v-2H5.83zm9.18-2.82L18 12l4-4-4-4-1.41 1.41L18.17 7H3v2h15.17z"}),"SyncAltOutlined"),ViewList=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList"),WarningAmberOutlined=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"WarningAmberOutlined"),networks=["Mainnet","Testnet","Devnet"],isNetwork=s=>networks.includes(s),networks$1=Object.freeze(Object.defineProperty({__proto__:null,isNetwork,networks},Symbol.toStringTag,{value:"Module"})),range=s=>[...Array(s).keys()];function entries(s){return[...s.entries()]}const flatten=s=>s.flat(),column=(s,j)=>s.map($=>$[j]),zip=s=>range(s[0].length).map(j=>range(s.length).map($=>s[$][j])),pickWithOrder=(s,j)=>j.map($=>s[$]),filterIndexes=(s,j,$)=>{const _e=new Set(Array.isArray(j)?j:[j]);return s.filter((et,tt)=>_e.has(tt)!==$)};function isMappableKey(s){return["string","number","symbol","bigint","boolean"].includes(typeof s)}const isRecursiveTuple=s=>s.length===2&&!Array.isArray(s[0])&&Array.isArray(s[1]),cartesianRightRecursive=s=>s.length===0?[]:Array.isArray(s[0])?s.map(([j,$])=>Array.isArray($)?(isRecursiveTuple($)?cartesianRightRecursive($):$).map(_e=>[j,_e].flat()):[[j,$]]).flat():isRecursiveTuple(s)?cartesianRightRecursive(s[1]).map(j=>[s[0],j]):s,toMapping=(s,j)=>{const $=cartesianRightRecursive(s);if($.length===0)throw new Error("Invalid mapping: empty");const _e=j===void 0?[range($[0].length-1),[$[0].length-1]]:j.map(ct=>typeof ct=="number"?[ct]:ct);let et=[],tt=!0;const nt=(ct,lt)=>{const dt=Array.from(new Set(ct[0]).values()),ft=new Map(dt.map(yt=>[yt,[]]));for(const[yt,mt]of ct[0].entries())ft.get(mt).push(yt);if(ct.length===1){const yt=Object.fromEntries(dt.map(mt=>[mt,ft.get(mt).map(pt=>lt[pt].length===1?lt[pt][0]:lt[pt])]));if(tt){for(const mt of ft.values())if(mt.length>1)return tt=!1,yt;et.push(yt)}return yt}const gt=zip(ct.slice(1));return Object.fromEntries(dt.map(yt=>{const mt=ft.get(yt),pt=zip(mt.map(Ct=>gt[Ct])),xt=mt.map(Ct=>lt[Ct]);return[yt,nt(pt,xt)]}))},rt=zip($),ot=ct=>{const lt=rt[ct];if(lt===void 0)throw new Error(`Invalid shape: column ${ct} does not exist`);return lt},[it,st]=_e.map(ct=>ct.map(lt=>ot(lt)));if(it.length===0)throw new Error("Invalid shape: empty key set");if(st.length===0)throw new Error("Invalid shape: empty value set");for(const ct of it)for(const lt of ct)if(!isMappableKey(lt))throw new Error(`Invalid key: ${lt} in ${ct}`);const at=nt(it,zip(st));if(tt)for(const ct of et)for(const lt of Object.keys(ct))ct[lt]=ct[lt][0];return at};function constMap(s,j){const $=toMapping(s,j),_e=(...et)=>et.reduce((tt,nt)=>tt?tt[nt.toString()]??void 0:void 0,$);return Object.assign(_e,{has:(...et)=>_e(...et)!==void 0,get:(...et)=>_e(...et),subMap:et=>$[et.toString()]})}function lazyInstantiate$1(s){let j=null;return()=>(j||(j=s()),j)}function onlyOnce$1(s,...j){let $=!1;return()=>{$||($=!0,s(...j))}}function throws$1(s){try{return s(),!1}catch{return!0}}var binaryLiterals=["int","uint","bytes","array","switch"],defaultEndianness="big",numberMaxSize=6,isNumType=s=>typeof s=="number"||typeof s=="bigint",isBytesType=s=>s instanceof Uint8Array,isPrimitiveType=s=>isNumType(s)||isBytesType(s),isItem=s=>binaryLiterals.includes(s==null?void 0:s.binary),isLayout=s=>isItem(s)||Array.isArray(s)&&s.every(isItem),isFixedNumberConversion=s=>typeof(s==null?void 0:s.from)=="number",isFixedBigintConversion=s=>typeof(s==null?void 0:s.from)=="bigint",isFixedUintConversion=s=>isFixedNumberConversion(s)||isFixedBigintConversion(s),isFixedBytesConversion=s=>isBytesType(s==null?void 0:s.from),isFixedPrimitiveConversion=s=>isFixedUintConversion(s)||isFixedBytesConversion(s),checkSize=(s,j)=>{if(s!==j)throw new Error(`size mismatch: layout size: ${s}, data size: ${j}`);return j},checkItemSize=(s,j)=>"size"in s&&s.size!==void 0?checkSize(s.size,j):j,checkNumEquals=(s,j)=>{if(s!=j)throw new Error(`value mismatch: (constant) layout value: ${s}, data value: ${j}`)},checkBytesTypeEqual=(s,j,$)=>{const _e=(it,st)=>st===void 0?[0,it.length]:Array.isArray(st)?st:[st,it.length],[et,tt]=_e(s,$==null?void 0:$.customSlice),[nt,rt]=_e(j,$==null?void 0:$.dataSlize),ot=tt-et;checkSize(ot,rt-nt);for(let it=0;it(Array.isArray(_e)?_e[1]:_e)==$)}function calcSize(s,j){const $=internalCalcSize(s,j);if($===null)throw new Error(`coding error: couldn't calculate layout size for layout ${s} with data ${j}`);return $}function calcStaticSize(s){return internalCalcSize(s,staticCalc)}var staticCalc=Symbol("staticCalc");function calcSizeForSerialization(s,j){const $=[],_e=internalCalcSize(s,j,$);if(_e===null)throw new Error(`coding error: couldn't calculate layout size for layout ${s} with data ${j}`);return[_e,$]}function calcItemSize(s,j,$){const _e=et=>($!==void 0&&$.push(et),et);switch(s.binary){case"int":case"uint":return s.size;case"bytes":{const et="lengthSize"in s?s.lengthSize|0:0;if("layout"in s){const{custom:nt}=s,rt=internalCalcSize(s.layout,nt===void 0?j:typeof nt.from=="function"?j!==staticCalc?_e(nt.from(j)):staticCalc:nt.from,$);return rt===null?"size"in s?s.size??null:null:et+checkItemSize(s,rt)}const{custom:tt}=s;return isBytesType(tt)?et+tt.length:isFixedBytesConversion(tt)?et+tt.from.length:tt===void 0?j!==staticCalc?et+checkItemSize(s,j.length):null:j!==staticCalc?et+checkItemSize(s,_e(tt.from(j)).length):null}case"array":{const et="length"in s?s.length:void 0;if(j===staticCalc){if(et!==void 0){const nt=internalCalcSize(s.layout,staticCalc,$);return nt!==null?et*nt:null}return null}let tt=0;if(et!==void 0&&et!==j.length)throw new Error(`array length mismatch: layout length: ${et}, data length: ${j.length}`);"lengthSize"in s&&s.lengthSize!==void 0&&(tt+=s.lengthSize);for(let nt=0;nt{s.bytes.set(j,s.offset),s.offset+=j.length},bcqGetNext=s=>s.bytesConversions[s.position++];function serialize$2(s,j,$){const[_e,et]=calcSizeForSerialization(s,j),tt={bytes:$??new Uint8Array(_e),offset:0};if(internalSerialize(s,j,tt,{bytesConversions:et,position:0}),!$&&tt.offset!==tt.bytes.length)throw new Error(`encoded data is shorter than expected: ${tt.bytes.length} > ${tt.offset}`);return $?tt.offset:tt.bytes}var maxAllowedNumberVal=2**(numberMaxSize*8);function serializeNum(s,j,$,_e=defaultEndianness,et=!1){if(!et&&s<0)throw new Error(`Value ${s} is negative but unsigned`);if(typeof s=="number"){if(!Number.isInteger(s))throw new Error(`Value ${s} is not an integer`);if(j>numberMaxSize){if(s>=maxAllowedNumberVal)throw new Error(`Value ${s} is too large to be safely converted into an integer`);if(et&&s<-maxAllowedNumberVal)throw new Error(`Value ${s} is too small to be safely converted into an integer`)}}const tt=2n**BigInt(j*8-(et?1:0));if(s>=tt)throw new Error(`Value ${s} is too large for ${j} bytes`);if(et&&s<-tt)throw new Error(`Value ${s} is too small for ${j} bytes`);for(let nt=0;nt>BigInt(8*(_e==="big"?j-nt-1:nt))&0xffn);$.offset+=j}function internalSerialize(s,j,$,_e){if(isItem(s))serializeItem(s,j,$,_e);else for(const et of s)try{serializeItem(et,j[et.name],$,_e)}catch(tt){throw tt.message=`when serializing item '${et.name}': ${tt.message}`,tt}}function serializeItem(s,j,$,_e){switch(s.binary){case"int":case"uint":{const et=(()=>{var tt;return isNumType(s.custom)?("omit"in s&&s.omit||checkNumEquals(s.custom,j),s.custom):isNumType((tt=s==null?void 0:s.custom)==null?void 0:tt.from)?s.custom.from:s.custom!==void 0?s.custom.from(j):j})();serializeNum(et,s.size,$,s.endianness,s.binary==="int");break}case"bytes":{const et=$.offset;if("lengthSize"in s&&s.lengthSize!==void 0&&($.offset+=s.lengthSize),"layout"in s){const{custom:tt}=s;let nt;tt===void 0?nt=j:typeof tt.from!="function"?nt=tt.from:nt=bcqGetNext(_e),internalSerialize(s.layout,nt,$,_e)}else{const{custom:tt}=s;isBytesType(tt)?("omit"in s&&s.omit||checkBytesTypeEqual(tt,j),cursorWrite($,tt)):isFixedBytesConversion(tt)?cursorWrite($,tt.from):cursorWrite($,tt!==void 0?bcqGetNext(_e):j)}if("lengthSize"in s&&s.lengthSize!==void 0){const tt=$.offset-et-s.lengthSize,nt=$.offset;$.offset=et,serializeNum(tt,s.lengthSize,$,s.lengthEndianness),$.offset=nt}else checkItemSize(s,$.offset-et);break}case"array":{if("length"in s&&s.length!==j.length)throw new Error(`array length mismatch: layout length: ${s.length}, data length: ${j.length}`);"lengthSize"in s&&s.lengthSize!==void 0&&serializeNum(j.length,s.lengthSize,$,s.lengthEndianness);for(let et=0;et ${et.offset}`);return _e?tt:[tt,et.offset]}function updateOffset(s,j){const $=s.offset+j;if($>s.end)throw new Error(`chunk is shorter than expected: ${s.end} < ${$}`);s.offset=$}function internalDeserialize(s,j){if(!Array.isArray(s))return deserializeItem(s,j);let $={};for(const _e of s)try{(_e.omit?{}:$)[_e.name]=deserializeItem(_e,j)}catch(et){throw et.message=`when deserializing item '${_e.name}': ${et.message}`,et}return $}function deserializeNum(s,j,$=defaultEndianness,_e=!1){let et=0n;for(let tt=0;ttnumberMaxSize?et:Number(et)}function deserializeItem(s,j){switch(s.binary){case"int":case"uint":{const $=deserializeNum(j,s.size,s.endianness,s.binary==="int"),{custom:_e}=s;return isNumType(_e)?(checkNumEquals(_e,$),_e):isNumType(_e==null?void 0:_e.from)?(checkNumEquals(_e.from,$),_e.to):_e!==void 0?_e.to($):$}case"bytes":{const $="lengthSize"in s&&s.lengthSize!==void 0?deserializeNum(j,s.lengthSize,s.lengthEndianness):s==null?void 0:s.size;if("layout"in s){const{custom:rt}=s,ot=j.offset;let it;if($===void 0)it=internalDeserialize(s.layout,j);else{const st={...j,end:j.offset+$};if(updateOffset(j,$),it=internalDeserialize(s.layout,st),st.offset!==st.end)throw new Error(`read less data than expected: ${st.offset-j.offset} < ${$}`)}return rt!==void 0?typeof rt.from!="function"?(checkBytesTypeEqual(getCachedSerializedFrom(s),j.bytes,{dataSlize:[ot,j.offset]}),rt.to):rt.to(it):it}const{custom:_e}=s;{let rt,ot;if(isBytesType(_e)?rt=_e:isFixedBytesConversion(_e)&&(rt=_e.from,ot=_e.to),rt!==void 0){const it=$??rt.length,st=j.bytes.subarray(j.offset,j.offset+it);return checkBytesTypeEqual(rt,st),updateOffset(j,it),ot??rt}}const et=j.offset,tt=$!==void 0?j.offset+$:j.end;updateOffset(j,tt-et);const nt=j.bytes.subarray(et,tt);return _e!==void 0?_e.to(nt):nt}case"array":{let $=[];const{layout:_e}=s,et=()=>{const nt=internalDeserialize(_e,j);$.push(nt)};let tt=null;if("length"in s&&s.length!==void 0?tt=s.length:"lengthSize"in s&&s.lengthSize!==void 0&&(tt=deserializeNum(j,s.lengthSize,s.lengthEndianness)),tt!==null)for(let nt=0;ntet?it===$:it[0]===$);if(tt===void 0)throw new Error(`unknown id value: ${$}`);const[nt,rt]=tt,ot=internalDeserialize(rt,j);return{[s.idTag??"id"]:et?$:nt[1],...ot}}}}var fixedItemsOf=s=>filterItemsOf(s,!0),dynamicItemsOf=s=>filterItemsOf(s,!1);function addFixedValues(s,j){return internalAddFixedValues(s,j)}function filterItem(s,j){switch(s.binary){case"bytes":if("layout"in s){const{custom:$}=s;if($===void 0){const{layout:et}=s;if(isItem(et))return filterItem(et,j);const tt=internalFilterItemsOfProperLayout(et,j);return tt.length>0?{...s,layout:tt}:null}const _e=typeof $.from!="function";return j&&_e||!j&&!_e?s:null}case"int":case"uint":{const{custom:$}=s,_e=isPrimitiveType($)||isFixedPrimitiveConversion($);return j&&_e||!j&&!_e?s:null}case"array":{const $=internalFilterItemsOf(s.layout,j);return $!==null?{...s,layout:$}:null}case"switch":{const $=s.layouts.reduce((_e,[et,tt])=>{const nt=internalFilterItemsOfProperLayout(tt,j);return nt.length>0?[..._e,[et,nt]]:_e},[]);return{...s,layouts:$}}}}function internalFilterItemsOfProperLayout(s,j){return s.reduce(($,_e)=>{const et=filterItem(_e,j);return et!==null?[...$,et]:$},[])}function internalFilterItemsOf(s,j){return Array.isArray(s)?internalFilterItemsOfProperLayout(s,j):filterItem(s,j)}function filterItemsOf(s,j){return internalFilterItemsOf(s,j)}function internalAddFixedValuesItem(s,j){switch(s.binary){case"bytes":if("layout"in s){const{custom:$}=s;return $===void 0||typeof $.from!="function"?internalAddFixedValues(s.layout,$?$.from:j):j}case"int":case"uint":{const{custom:$}=s;return s!=null&&s.omit?void 0:isPrimitiveType($)?$:isFixedPrimitiveConversion($)?$.to:j}case"array":return Array.isArray(j)?j.map($=>internalAddFixedValues(s.layout,$)):void 0;case"switch":{const $=j[s.idTag??"id"],[_e,et]=s.layouts.find(([tt])=>(Array.isArray(tt)?tt[1]:tt)==$);return{[s.idTag??"id"]:$,...internalAddFixedValues(et,j)}}}}function internalAddFixedValues(s,j){if(j=j??{},isItem(s))return internalAddFixedValuesItem(s,j);const $={};for(const _e of s){const et=internalAddFixedValuesItem(_e,j[_e.name]??{});et!==void 0&&($[_e.name]=et)}return $}function buildDiscriminator(s,j){const[$,_e]=internalBuildDiscriminator(s);if(!$&&!j)throw new Error("Cannot uniquely distinguished the given layouts");return j?_e:et=>{const tt=_e(et);return tt.length===0?null:tt[0]}}function arrayToBitset(s){return s.reduce((j,$)=>j|BigInt(1)<0n;s>>=1n,++$)s&1n&&j.push(Number($));return j}function count$1(s){let j=0;for(;s>0n;s>>=1n)j+=Number(s&1n);return j}var lengthSizeMax=s=>s>0?2**(8*s)-1:1/0;function layoutItemMeta(s,j,$){var _e;switch(s.binary){case"int":case"uint":{const et=isNumType(s.custom)?s.custom:isNumType((_e=s==null?void 0:s.custom)==null?void 0:_e.from)?s.custom.from:null;if(et!==null&&j!==null){const tt={bytes:new Uint8Array(s.size),offset:0};serializeNum(et,s.size,tt,s.endianness,s.binary==="int"),$.push([j,tt.bytes])}return[s.size,s.size]}case"bytes":{const et="lengthSize"in s?s.lengthSize|0:0;let tt,nt;if("layout"in s){const{custom:ot}=s;if(ot!==void 0&&typeof ot.from!="function")tt=getCachedSerializedFrom(s),nt=tt.length;else{const it=calcStaticSize(s.layout);it!==null&&(nt=it)}}else{const{custom:ot}=s;isBytesType(ot)?(tt=ot,nt=ot.length):isFixedBytesConversion(ot)&&(tt=ot.from,nt=ot.from.length)}if(et>0&&j!==null){if(nt!==void 0){const ot={bytes:new Uint8Array(et),offset:0},it=s.lengthEndianness;serializeNum(nt,et,ot,it,!1),$.push([j,ot.bytes])}j+=et}if(tt!==void 0)return j!==null&&$.push([j,tt]),[et+tt.length,et+tt.length];const rt="size"in s&&s.size!==void 0?[s.size,s.size]:void 0;if("layout"in s){const ot=createLayoutMeta(s.layout,j,$);return rt??[et+ot[0],et+ot[1]]}return rt??[et,lengthSizeMax(et)]}case"array":{if("length"in s){let tt=[];const nt=createLayoutMeta(s.layout,0,tt);if(j!==null)if(nt[0]!==nt[1]){if(s.length>0)for(const[rt,ot]of tt)$.push([j+rt,ot])}else for(let rt=0;rt[]),{idSize:tt,idEndianness:nt}=s,rt=s.layouts.map(([ot,it],st)=>{const at=Array.isArray(ot)?ot[0]:ot;if(j!==null){const lt={bytes:new Uint8Array(tt),offset:0};serializeNum(at,tt,lt,nt),et[st].push([0,lt.bytes])}const ct=createLayoutMeta(it,j!==null?tt:null,et[st]);return[ct[0]+tt,ct[1]+tt]});return j!==null&&et.every(ot=>ot.length>0)&&(()=>{const ot=Math.min(...et.map(st=>st.at(-1)[0]+st.at(-1)[1].length)),it=et.map(st=>0);for(let st=0;stot)),Math.max(...rt.map(([ot,it])=>it))]}}}function createLayoutMeta(s,j,$){if(!Array.isArray(s))return layoutItemMeta(s,j,$);let _e=[0,0];for(const et of s){const tt=layoutItemMeta(et,j,$);_e[0]+=tt[0],_e[1]+=tt[1],j!==null&&(j=tt[0]===tt[1]?j+tt[0]:null)}return _e}function buildAscendingBounds(s){const j=new Map;let $=[];const _e=et=>{for(;$.length>0&&$[0][0]tt<=rt);nt===-1?$=[]:$.splice(0,nt),j.set(tt,arrayToBitset($.map(([,rt])=>rt)))}};for(const[[et,tt],nt]of s){_e(et);const rt=$.findIndex(([ot])=>ot>tt);rt===-1?$.push([tt,nt]):$.splice(rt,0,[tt,nt]),j.set(et,arrayToBitset($.map(([,ot])=>ot)))}return _e(1/0),j}function internalBuildDiscriminator(s){if(s.length===0)throw new Error("Cannot discriminate empty set of layouts");const j=0n,$=(1n<[]),et=s.map((pt,xt)=>createLayoutMeta(pt,0,_e[xt])),tt=et.map((pt,xt)=>[pt,xt]).sort(([[pt]],[[xt]])=>pt-xt),nt=(()=>{let pt=$;const xt=new Map;for(const[[Ct],Dt]of tt)pt^=1n<count$1(pt))),it=pt=>{let xt=$;for(const[Ct,Dt]of nt){if(pt{let xt=j;for(const[Ct,Dt]of rt){if(ptpt.length>0?pt.at(-1)[0]+pt.at(-1)[1].length:0))}).map(()=>[]);for(let pt=0;pt<_e.length;++pt)for(const[xt,Ct]of _e[pt])for(let Dt=0;DtOt)),wt=$^Ct,kt=new Map;for(const[Ot,Ft]of xt)kt.has(Ot)||kt.set(Ot,j),kt.set(Ot,kt.get(Ot)|1n<bitsetToArray(Ot.length<=pt?wt:kt.get(Ot[pt])??j)];ct.push([zt,pt,wt,kt,Dt])}}if(ot===s.length-1)return[!0,pt=>bitsetToArray(st(pt.length))];ct.sort(([pt],[xt])=>xt-pt);let lt=!0;const dt=new Map,ft=new Map,gt=(pt,xt)=>{dt.set(pt,xt),ft.has(count$1(pt))||ft.set(count$1(pt),[]),ft.get(count$1(pt)).push(pt)},yt=(pt,xt)=>{if(count$1(pt)<=1||dt.has(pt))return;let Ct=0;const Dt=new Map;for(const kt of bitsetToArray(pt)){const zt=et[kt][0],Ot=rt.get(zt)&pt;Dt.set(zt,Ot),Ct=Math.max(Ct,count$1(Ot))}Ct=count$1(pt)-Ct;const wt=[];for(const[kt,zt,Ot,Ft,Pt]of xt){const Nt=new Map;let ht=0;for(const[vt,At]of Ft){const Tt=At&pt;count$1(Tt)>0&&(Nt.set(vt,Tt),ht+=count$1(Tt))}const bt=Ot&pt;let St=Nt.size>0?kt:0;for(const vt of Nt.values()){const At=ht-count$1(vt)+count$1(bt);St=Math.min(St,At)}if(St!==0){if(St===count$1(pt)-1){gt(pt,[zt,bt,Nt]);return}wt.push([St,zt,bt,Nt,Pt&pt])}}if(Ct===count$1(pt)-1){gt(pt,"size");return}if(wt.sort(([kt],[zt])=>zt-kt),wt.length>0&&wt[0][0]>=Ct){const[,kt,zt,Ot,Ft]=wt[0];gt(pt,[kt,zt,Ot]),yt(zt,wt);for(const Pt of Ot.values())yt(Pt|Ft,wt.slice(1));return}if(Ct>0){gt(pt,"size");for(const kt of Dt.values())yt(kt,wt);return}gt(pt,"indistinguishable"),lt=!1};yt($,ct);const mt=pt=>{for(let xt=count$1(pt)+1;xt{let xt=$,Ct=dt.get(xt);for(;Ct!=="indistinguishable";){if(Ct==="size")xt&=st(pt.length);else{const[Dt,wt,kt]=Ct;if(pt.length<=Dt)xt&=wt;else{const zt=pt[Dt];for(const[Ot,Ft]of kt)Ot!==zt&&(xt^=xt&Ft);xt^=xt&wt}}if(count$1(xt)<=1)break;Ct=dt.get(xt)??mt(xt)}return bitsetToArray(xt)}]}var customizableBytes=(s,j)=>({...s,binary:"bytes",...j===void 0?{}:isLayout(j)?{layout:j}:j instanceof Uint8Array||isFixedBytesConversion(j)||!Array.isArray(j)?{custom:j}:{layout:j[0],custom:j[1]}});function enumItem(s,j){const $=Object.fromEntries(s.map(([et,tt])=>[tt,et])),_e=Object.fromEntries(s);return{binary:"uint",size:(j==null?void 0:j.size)??1,endianness:(j==null?void 0:j.endianness)??"big",custom:{to:et=>{const tt=$[et];if(tt===void 0)throw new Error(`Invalid enum value: ${et}`);return tt},from:et=>_e[et]}}}var baseOptionItem=s=>({binary:"switch",idSize:1,idTag:"isSome",layouts:[[[0,!1],[]],[[1,!0],[customizableBytes({name:"value"},s)]]]});function optionItem(s){return{binary:"bytes",layout:baseOptionItem(s),custom:{to:j=>j.isSome===!0?j.value:void 0,from:j=>j===void 0?{isSome:!1}:{isSome:!0,value:j}}}}function bitsetItem(s,j){return{binary:"uint",size:j??Math.ceil(s.length/8),custom:{to:$=>{const _e={};for(let et=0;et{let _e=0n;for(let et=0;etnumberMaxSize?_e:Number(_e)}}}}const dist$1=Object.freeze(Object.defineProperty({__proto__:null,addFixedValues,bitsetItem,buildDiscriminator,calcSize,calcStaticSize,customizableBytes,deserialize:deserialize$2,dynamicItemsOf,enumItem,fixedItemsOf,optionItem,serialize:serialize$2},Symbol.toStringTag,{value:"Module"}));function denoise$1(s,j){return Number(Number(s).toFixed(j))}function parse$2(s,j){if(validateAmountInput$1(s,j),s=s.toString(),s.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const $=s.split(".");if($.length>2)throw"Too many decimals";let[_e,et]=$.length===0?["0",""]:$.length===1?[$[0],""]:$;if(et=et.padEnd(j,"0"),et.length>j){if(BigInt(et.substring(j))!==0n)throw new Error("Amount: invalid input. Decimals too low.");et=et.substring(0,j)}return{amount:BigInt(_e+et).toString(),decimals:j}}function truncate$1(s,j){if(s.decimals<=j)return s;const $=BigInt(s.decimals-j);return{amount:(units$1(s)/10n**$*10n**$).toString(),decimals:s.decimals}}function scale$1(s,j){if(s.decimals===j)return s;if(s.amount==="0")return{amount:s.amount,decimals:j};const $=j-s.decimals;if($>0)return{amount:s.amount+"0".repeat($),decimals:j};if(BigInt(s.amount.substring(s.amount.length+$))===0n)return{amount:s.amount.substring(0,s.amount.length+$),decimals:j};throw new Error(`scaleAmount(${JSON.stringify(s)}, ${j}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}function fromBaseUnits$1(s,j){return{amount:s.toString(),decimals:j}}function units$1(s){return validateAmount$1(s),BigInt(s.amount)}function display$1(s,j){validateAmount$1(s);let $=s.amount.substring(0,s.amount.length-s.decimals).padStart(1,"0"),_e=s.amount.substring(s.amount.length-s.decimals).padStart(s.decimals,"0");if(j!==void 0){for(;_e.length>j&&_e[_e.length-1]==="0";)_e=_e.substring(0,_e.length-1);_e=_e.padEnd(j,"0")}else _e=_e.replace(/0+$/,"");return _e.length>0?`${$}.${_e}`:$}function whole$1(s){return Number(display$1(s))}function fmt$1(s,j){return display$1(fromBaseUnits$1(s,j))}function validateAmountInput$1(s,j){if(typeof s=="number"){if(!isFinite(s))throw new Error("Amount: invalid input. Amount must be finite");if(s<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(s))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(j))throw new Error("Amount: invalid input. Decimals must be finite")}function validateAmount$1(s){if(!/^[0-9]*$/.test(s.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(s.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(s.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}const amount$2=Object.freeze(Object.defineProperty({__proto__:null,denoise:denoise$1,display:display$1,fmt:fmt$1,fromBaseUnits:fromBaseUnits$1,parse:parse$2,scale:scale$1,truncate:truncate$1,units:units$1,whole:whole$1},Symbol.toStringTag,{value:"Module"}));/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function assertNumber(s){if(!Number.isSafeInteger(s))throw new Error(`Wrong integer: ${s}`)}function isBytes$5(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}function chain$2(...s){const j=tt=>tt,$=(tt,nt)=>rt=>tt(nt(rt)),_e=s.map(tt=>tt.encode).reduceRight($,j),et=s.map(tt=>tt.decode).reduce($,j);return{encode:_e,decode:et}}function alphabet(s){return{encode:j=>{if(!Array.isArray(j)||j.length&&typeof j[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return j.map($=>{if($<0||$>=s.length)throw new Error(`Digit index outside alphabet: ${$} (alphabet: ${s.length})`);return s[$]})},decode:j=>{if(!Array.isArray(j)||j.length&&typeof j[0]!="string")throw new Error("alphabet.decode input should be array of strings");return j.map($=>{if(typeof $!="string")throw new Error(`alphabet.decode: not string element=${$}`);const _e=s.indexOf($);if(_e===-1)throw new Error(`Unknown letter: "${$}". Allowed: ${s}`);return _e})}}}function join(s=""){if(typeof s!="string")throw new Error("join separator should be string");return{encode:j=>{if(!Array.isArray(j)||j.length&&typeof j[0]!="string")throw new Error("join.encode input should be array of strings");for(let $ of j)if(typeof $!="string")throw new Error(`join.encode: non-string input=${$}`);return j.join(s)},decode:j=>{if(typeof j!="string")throw new Error("join.decode input should be string");return j.split(s)}}}function padding(s,j="="){if(typeof j!="string")throw new Error("padding chr should be string");return{encode($){if(!Array.isArray($)||$.length&&typeof $[0]!="string")throw new Error("padding.encode input should be array of strings");for(let _e of $)if(typeof _e!="string")throw new Error(`padding.encode: non-string input=${_e}`);for(;$.length*s%8;)$.push(j);return $},decode($){if(!Array.isArray($)||$.length&&typeof $[0]!="string")throw new Error("padding.encode input should be array of strings");for(let et of $)if(typeof et!="string")throw new Error(`padding.decode: non-string input=${et}`);let _e=$.length;if(_e*s%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;_e>0&&$[_e-1]===j;_e--)if(!((_e-1)*s%8))throw new Error("Invalid padding: string has too much padding");return $.slice(0,_e)}}}function normalize(s){if(typeof s!="function")throw new Error("normalize fn should be function");return{encode:j=>j,decode:j=>s(j)}}function convertRadix(s,j,$){if(j<2)throw new Error(`convertRadix: wrong from=${j}, base cannot be less than 2`);if($<2)throw new Error(`convertRadix: wrong to=${$}, base cannot be less than 2`);if(!Array.isArray(s))throw new Error("convertRadix: data should be array");if(!s.length)return[];let _e=0;const et=[],tt=Array.from(s);for(tt.forEach(nt=>{if(nt<0||nt>=j)throw new Error(`Wrong integer: ${nt}`)});;){let nt=0,rt=!0;for(let ot=_e;otj?gcd(j,s%j):s,radix2carry=(s,j)=>s+(j-gcd(s,j));function convertRadix2(s,j,$,_e){if(!Array.isArray(s))throw new Error("convertRadix2: data should be array");if(j<=0||j>32)throw new Error(`convertRadix2: wrong from=${j}`);if($<=0||$>32)throw new Error(`convertRadix2: wrong to=${$}`);if(radix2carry(j,$)>32)throw new Error(`convertRadix2: carry overflow from=${j} to=${$} carryBits=${radix2carry(j,$)}`);let et=0,tt=0;const nt=2**$-1,rt=[];for(const ot of s){if(ot>=2**j)throw new Error(`convertRadix2: invalid data word=${ot} from=${j}`);if(et=et<32)throw new Error(`convertRadix2: carry overflow pos=${tt} from=${j}`);for(tt+=j;tt>=$;tt-=$)rt.push((et>>tt-$&nt)>>>0);et&=2**tt-1}if(et=et<<$-tt&nt,!_e&&tt>=j)throw new Error("Excess padding");if(!_e&&et)throw new Error(`Non-zero padding: ${et}`);return _e&&tt>0&&rt.push(et>>>0),rt}function radix(s){return{encode:j=>{if(!isBytes$5(j))throw new Error("radix.encode input should be Uint8Array");return convertRadix(Array.from(j),2**8,s)},decode:j=>{if(!Array.isArray(j)||j.length&&typeof j[0]!="number")throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(convertRadix(j,s,2**8))}}}function radix2(s,j=!1){if(s<=0||s>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry(8,s)>32||radix2carry(s,8)>32)throw new Error("radix2: carry overflow");return{encode:$=>{if(!isBytes$5($))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2(Array.from($),8,s,!j)},decode:$=>{if(!Array.isArray($)||$.length&&typeof $[0]!="number")throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(convertRadix2($,s,8,j))}}}function unsafeWrapper(s){if(typeof s!="function")throw new Error("unsafeWrapper fn should be function");return function(...j){try{return s.apply(null,j)}catch{}}}function checksum(s,j){if(typeof j!="function")throw new Error("checksum fn should be function");return{encode($){if(!isBytes$5($))throw new Error("checksum.encode: input should be Uint8Array");const _e=j($).slice(0,s),et=new Uint8Array($.length+s);return et.set($),et.set(_e,$.length),et},decode($){if(!isBytes$5($))throw new Error("checksum.decode: input should be Uint8Array");const _e=$.slice(0,-s),et=j(_e).slice(0,s),tt=$.slice(-s);for(let nt=0;nts.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),base64$2=chain$2(radix2(6),alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),padding(6),join("")),base64nopad=chain$2(radix2(6),alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),join("")),base64url=chain$2(radix2(6),alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),padding(6),join("")),base64urlnopad=chain$2(radix2(6),alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),join("")),genBase58=s=>chain$2(radix(58),alphabet(s),join("")),base58$1=genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),base58flickr=genBase58("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),base58xrp=genBase58("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),XMR_BLOCK_LEN=[0,2,3,5,6,7,9,10,11],base58xmr={encode(s){let j="";for(let $=0;$chain$2(checksum(4,j=>s(s(j))),base58$1),base58check=createBase58check,BECH_ALPHABET=chain$2(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),join("")),POLYMOD_GENERATORS=[996825010,642813549,513874426,1027748829,705979059];function bech32Polymod(s){const j=s>>25;let $=(s&33554431)<<5;for(let _e=0;_e>_e&1)===1&&($^=POLYMOD_GENERATORS[_e]);return $}function bechChecksum(s,j,$=1){const _e=s.length;let et=1;for(let tt=0;tt<_e;tt++){const nt=s.charCodeAt(tt);if(nt<33||nt>126)throw new Error(`Invalid prefix (${s})`);et=bech32Polymod(et)^nt>>5}et=bech32Polymod(et);for(let tt=0;tt<_e;tt++)et=bech32Polymod(et)^s.charCodeAt(tt)&31;for(let tt of j)et=bech32Polymod(et)^tt;for(let tt=0;tt<6;tt++)et=bech32Polymod(et);return et^=$,BECH_ALPHABET.encode(convertRadix2([et%2**30],30,5,!1))}function genBech32(s){const j=s==="bech32"?1:734539939,$=radix2(5),_e=$.decode,et=$.encode,tt=unsafeWrapper(_e);function nt(st,at,ct=90){if(typeof st!="string")throw new Error(`bech32.encode prefix should be string, not ${typeof st}`);if(!Array.isArray(at)||at.length&&typeof at[0]!="number")throw new Error(`bech32.encode words should be array of numbers, not ${typeof at}`);if(st.length===0)throw new TypeError(`Invalid prefix length ${st.length}`);const lt=st.length+7+at.length;if(ct!==!1&<>ct)throw new TypeError(`Length ${lt} exceeds limit ${ct}`);const dt=st.toLowerCase(),ft=bechChecksum(dt,at,j);return`${dt}1${BECH_ALPHABET.encode(at)}${ft}`}function rt(st,at=90){if(typeof st!="string")throw new Error(`bech32.decode input should be string, not ${typeof st}`);if(st.length<8||at!==!1&&st.length>at)throw new TypeError(`Wrong string length: ${st.length} (${st}). Expected (8..${at})`);const ct=st.toLowerCase();if(st!==ct&&st!==st.toUpperCase())throw new Error("String must be lowercase or uppercase");const lt=ct.lastIndexOf("1");if(lt===0||lt===-1)throw new Error('Letter "1" must be present between prefix and data only');const dt=ct.slice(0,lt),ft=ct.slice(lt+1);if(ft.length<6)throw new Error("Data must be at least 6 characters long");const gt=BECH_ALPHABET.decode(ft).slice(0,-6),yt=bechChecksum(dt,gt,j);if(!ft.endsWith(yt))throw new Error(`Invalid checksum in ${st}: expected "${yt}"`);return{prefix:dt,words:gt}}const ot=unsafeWrapper(rt);function it(st){const{prefix:at,words:ct}=rt(st,!1);return{prefix:at,words:ct,bytes:_e(ct)}}return{encode:nt,decode:rt,decodeToBytes:it,decodeUnsafe:ot,fromWords:_e,fromWordsUnsafe:tt,toWords:et}}const bech32=genBech32("bech32"),bech32m=genBech32("bech32m"),utf8$3={encode:s=>new TextDecoder().decode(s),decode:s=>new TextEncoder().encode(s)},hex$1=chain$2(radix2(4),alphabet("0123456789abcdef"),join(""),normalize(s=>{if(typeof s!="string"||s.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof s} with length ${s.length}`);return s.toLowerCase()})),CODERS={utf8:utf8$3,hex:hex$1,base16,base32,base64:base64$2,base64url,base58:base58$1,base58xmr},coderTypeError="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",bytesToString=(s,j)=>{if(typeof s!="string"||!CODERS.hasOwnProperty(s))throw new TypeError(coderTypeError);if(!isBytes$5(j))throw new TypeError("bytesToString() expects Uint8Array");return CODERS[s].encode(j)},str=bytesToString,stringToBytes$1=(s,j)=>{if(!CODERS.hasOwnProperty(s))throw new TypeError(coderTypeError);if(typeof j!="string")throw new TypeError("stringToBytes() expects string");return CODERS[s].decode(j)},bytes$3=stringToBytes$1,esm$1=Object.freeze(Object.defineProperty({__proto__:null,assertNumber,base16,base32,base32crockford,base32hex,base58:base58$1,base58check,base58flickr,base58xmr,base58xrp,base64:base64$2,base64nopad,base64url,base64urlnopad,bech32,bech32m,bytes:bytes$3,bytesToString,createBase58check,hex:hex$1,str,stringToBytes:stringToBytes$1,utf8:utf8$3,utils:utils$8},Symbol.toStringTag,{value:"Module"})),stripPrefix=(s,j)=>j.startsWith(s)?j.slice(s.length):j,isHexRegex=/^(?:0x)?[0-9a-fA-F]+$/,hex={valid:s=>isHexRegex.test(s),decode:s=>base16.decode(stripPrefix("0x",s).toUpperCase()),encode:(s,j=!1)=>(s=typeof s=="string"?bytes$2.encode(s):s,(j?"0x":"")+base16.encode(s).toLowerCase())},isB64Regex=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,b64={valid:s=>isB64Regex.test(s),decode:base64$2.decode,encode:s=>base64$2.encode(typeof s=="string"?bytes$2.encode(s):s)},b58={decode:base58$1.decode,encode:s=>base58$1.encode(typeof s=="string"?bytes$2.encode(s):s)},bignum={decode:s=>(typeof s!="string"&&(s=hex.encode(s,!0)),s===""||s==="0x"?0n:BigInt(s)),encode:(s,j=!1)=>bignum.toString(s,j),toString:(s,j=!1)=>{let $=s.toString(16);return $=$.length%2===1?$="0"+$:$,j?"0x"+$:$},toBytes:(s,j)=>{typeof s=="number"&&(s=bignum.toBigInt(s));const $=hex.decode(bignum.toString(s));if(!j)return $;if(j<$.length)throw new Error(`Can't fit ${s} into ${j} bytes.`);return bytes$2.zpad($,j)},toNumber:s=>{if(s>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${s} exceeds MAX_SAFE_INTEGER`);return Number(s)},toBigInt:s=>{if(s>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${s} exceeds MAX_SAFE_INTEGER`);return BigInt(s)}},bytes$2={encode:s=>new TextEncoder().encode(s),decode:s=>new TextDecoder().decode(s),equals:(s,j)=>s.length===j.length&&s.every(($,_e)=>$===j[_e]),zpad:(s,j,$=!0)=>$?bytes$2.concat(new Uint8Array(j-s.length),s):bytes$2.concat(s,new Uint8Array(j-s.length)),concat:(...s)=>{const j=s.reduce((et,tt)=>et+tt.length,0),$=new Uint8Array(j);let _e=0;return s.forEach(et=>{$.set(et,_e),_e+=et.length}),$}},encoding$3=Object.freeze(Object.defineProperty({__proto__:null,b58,b64,bech32,bignum,bytes:bytes$2,hex,stripPrefix},Symbol.toStringTag,{value:"Module"})),chainIdAndChainEntries=[[1,"Solana"],[2,"Ethereum"],[3,"Terra"],[4,"Bsc"],[5,"Polygon"],[6,"Avalanche"],[7,"Oasis"],[8,"Algorand"],[9,"Aurora"],[10,"Fantom"],[11,"Karura"],[12,"Acala"],[13,"Klaytn"],[14,"Celo"],[15,"Near"],[16,"Moonbeam"],[17,"Neon"],[18,"Terra2"],[19,"Injective"],[20,"Osmosis"],[21,"Sui"],[22,"Aptos"],[23,"Arbitrum"],[24,"Optimism"],[25,"Gnosis"],[26,"Pythnet"],[28,"Xpla"],[29,"Btc"],[30,"Base"],[32,"Sei"],[33,"Rootstock"],[34,"Scroll"],[35,"Mantle"],[36,"Blast"],[37,"Xlayer"],[38,"Linea"],[39,"Berachain"],[40,"Seievm"],[43,"Snaxchain"],[44,"Unichain"],[45,"Worldchain"],[46,"Ink"],[3104,"Wormchain"],[4e3,"Cosmoshub"],[4001,"Evmos"],[4002,"Kujira"],[4003,"Neutron"],[4004,"Celestia"],[4005,"Stargaze"],[4006,"Seda"],[4007,"Dymension"],[4008,"Provenance"],[4009,"Noble"],[10002,"Sepolia"],[10003,"ArbitrumSepolia"],[10004,"BaseSepolia"],[10005,"OptimismSepolia"],[10006,"Holesky"],[10007,"PolygonSepolia"],[10008,"MonadDevnet"]],[chainIds,chains]=zip(chainIdAndChainEntries),chainToChainId=constMap(chainIdAndChainEntries,[1,0]),chainIdToChain=constMap(chainIdAndChainEntries),isChain=s=>chainToChainId.has(s),isChainId=s=>chainIdToChain.has(s);function assertChainId(s){if(!isChainId(s))throw Error(`Unknown Wormhole chain id: ${s}`)}function assertChain(s){if(!isChain(s))throw Error(`Unknown Wormhole chain: ${s}`)}const asChainId=s=>(assertChainId(s),s),toChainId=s=>{switch(typeof s){case"string":if(isChain(s))return chainToChainId(s);break;case"number":if(isChainId(s))return s;break}throw Error(`Cannot convert to ChainId: ${s}`)},toChain=s=>{switch(typeof s){case"string":if(isChain(s))return s;break;case"number":if(isChainId(s))return chainIdToChain(s);break;case"bigint":if(isChainId(Number(s)))return chainIdToChain.get(Number(s));break}throw Error(`Cannot convert to Chain: ${s}`)},chains$1=Object.freeze(Object.defineProperty({__proto__:null,asChainId,assertChain,assertChainId,chainIdToChain,chainIds,chainToChainId,chains,isChain,isChainId,toChain,toChainId},Symbol.toStringTag,{value:"Module"})),platformAndChainsEntries=[["Evm",["Acala","Arbitrum","Aurora","Avalanche","Base","Bsc","Celo","Ethereum","Fantom","Gnosis","Karura","Klaytn","Moonbeam","Neon","Oasis","Optimism","Polygon","Rootstock","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky","PolygonSepolia","Mantle","Scroll","Blast","Xlayer","Linea","Berachain","Seievm","Snaxchain","Unichain","Worldchain","Ink","MonadDevnet"]],["Solana",["Solana","Pythnet"]],["Cosmwasm",["Cosmoshub","Evmos","Injective","Kujira","Osmosis","Sei","Terra","Terra2","Wormchain","Xpla","Dymension","Neutron","Stargaze","Celestia","Seda","Provenance","Noble"]],["Btc",["Btc"]],["Algorand",["Algorand"]],["Sui",["Sui"]],["Aptos",["Aptos"]],["Near",["Near"]]],platforms=column(platformAndChainsEntries,0),platformToChains=constMap(platformAndChainsEntries),chainToPlatform=constMap(platformAndChainsEntries,[1,0]),isPlatform=s=>platformToChains.has(s),platformAddressFormatEntries=[["Evm","hex"],["Solana","base58"],["Cosmwasm","bech32"],["Btc","bech32"],["Algorand","algorandAppId"],["Sui","hex"],["Aptos","hex"],["Near","sha256"]],platformToAddressFormat=constMap(platformAddressFormatEntries),platforms$1=Object.freeze(Object.defineProperty({__proto__:null,chainToPlatform,isPlatform,platformToAddressFormat,platformToChains,platforms},Symbol.toStringTag,{value:"Module"})),filters={byAddress:(s,j)=>Object.values(s).find($=>isEqualCaseInsensitive($.address,j)),native:s=>filters.byAddress(s,"native"),bySymbol:(s,j)=>{const $=Object.values(s).filter(_e=>_e.symbol===j);return $&&$.length>0?$:void 0},byKey:(s,j)=>{const $=Object.entries(s).find(([_e])=>j===_e);return $?$[1]:void 0}},isEqualCaseInsensitive=(s,j)=>s.toLowerCase()===j.toLowerCase();var ConsistencyLevels;(function(s){s[s.Finalized=1]="Finalized",s[s.Immediate=200]="Immediate",s[s.Safe=201]="Safe"})(ConsistencyLevels||(ConsistencyLevels={}));const safeThresholds=[["Ethereum",32]],safeThreshold=constMap(safeThresholds),finalityThresholds=[["Solana",32],["Ethereum",72],["Bsc",15],["Optimism",512],["Base",512],["Arbitrum",4096],["Blast",512],["Xlayer",300],["Scroll",300],["Mantle",512],["Worldchain",512],["Polygon",32],["Fantom",1],["Celo",1],["Moonbeam",1],["Karura",1],["Acala",1],["Oasis",1],["Avalanche",0],["Sui",0],["Algorand",0],["Aptos",0],["Klaytn",0],["Sei",0],["Near",0],["Osmosis",0],["Terra",0],["Terra2",0],["Xpla",0],["Injective",0],["Berachain",1],["Snaxchain",512],["Unichain",512],["Ink",512],["Cosmoshub",0],["Evmos",0],["Kujira",0],["Neutron",0],["Celestia",0],["Stargaze",0],["Dymension",0],["Provenance",0],["Noble",0],["Sepolia",72],["ArbitrumSepolia",4096],["BaseSepolia",512],["OptimismSepolia",512],["PolygonSepolia",32],["MonadDevnet",1]],finalityThreshold=constMap(finalityThresholds),blockTimeMilliseconds=[["Acala",12e3],["Algorand",3300],["Aptos",4e3],["Arbitrum",260],["ArbitrumSepolia",260],["Aurora",3e3],["Avalanche",2e3],["Base",2e3],["BaseSepolia",2e3],["Blast",2e3],["Bsc",3e3],["Celo",5e3],["Cosmoshub",5e3],["Ethereum",15e3],["Evmos",2e3],["Fantom",2500],["Gnosis",5e3],["Holesky",15e3],["Injective",2500],["Karura",12e3],["Klaytn",1e3],["Kujira",3e3],["Mantle",2e3],["Moonbeam",12e3],["MonadDevnet",1e3],["Near",1500],["Neon",3e4],["Oasis",6e3],["Optimism",2e3],["OptimismSepolia",2e3],["Osmosis",6e3],["Polygon",2e3],["PolygonSepolia",2e3],["Rootstock",3e4],["Scroll",3e3],["Sei",400],["Sepolia",15e3],["Solana",400],["Sui",3e3],["Terra",6e3],["Terra2",6e3],["Xpla",5e3],["Xlayer",3e3],["Worldchain",2e3],["Wormchain",5e3],["Btc",6e5],["Pythnet",400],["Dymension",5e3],["Celestia",5e3],["Neutron",5e3],["Stargaze",5e3],["Seda",7500]],blockTime=constMap(blockTimeMilliseconds);function consistencyLevelToBlock(s,j,$=0n){if(j===ConsistencyLevels.Immediate)return $;if(s==="Bsc")return $+BigInt(j);if(s==="Solana"&&j===0)return $;const _e=finalityThreshold.get(s);if(_e===void 0)throw new Error("Cannot find chain finality for "+s);if(_e===0)return $;if(j!==ConsistencyLevels.Safe)return $+BigInt(_e);const et=safeThreshold.get(s);if(et===void 0)throw new Error("Cannot find safe threshold for "+s);switch(s){case"Ethereum":const tt=$%BigInt(et),nt=tt===0n?0n:BigInt(et)-tt;return $+nt;default:throw new Error("Only Ethereum safe is supported for now")}}function estimateFinalityTime(s){const j=finalityThreshold.get(s);if(j===void 0)throw new Error("Cannot find finality for "+s);const $=blockTime.get(s);if($===void 0)throw new Error("Cannot find block time for "+s);return j*$}const finality=Object.freeze(Object.defineProperty({__proto__:null,get ConsistencyLevels(){return ConsistencyLevels},blockTime,consistencyLevelToBlock,estimateFinalityTime,finalityThreshold,safeThreshold},Symbol.toStringTag,{value:"Module"})),nativeDecimalEntries=[["Evm",18],["Solana",9],["Sui",9],["Aptos",8],["Cosmwasm",6],["Algorand",6],["Btc",8],["Near",12]],nativeDecimals=constMap(nativeDecimalEntries),decimals=Object.freeze(Object.defineProperty({__proto__:null,nativeDecimals},Symbol.toStringTag,{value:"Module"})),explorerConfig=[["Mainnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/mainnet/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala.network/",endpoints:{tx:"tx/",account:"address/"}}]]],["Testnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://goerli.etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://mumbai.polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://testnet.bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://testnet.snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://testnet.ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/alfajores/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonbase.moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"},networkQuery:{default:"Devnet",Testnet:"?cluster=testnet",Devnet:"?cluster=devnet"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura-testnet.aca-staging.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala-dev.aca-dev.network/",endpoints:{tx:"tx/",account:"address/"}}]]]],explorerConfs=constMap(explorerConfig),explorerConfigs=(s,j)=>s==="Devnet"?void 0:explorerConfs.get(s,j);function linkToTx(s,j,$){const _e=explorerConfigs($,s);if(!_e)throw new Error("invalid chain, explorer config not found");const{baseUrl:et,endpoints:tt,networkQuery:nt}=_e,rt=nt?nt[$]:"";return`${et}${tt.tx}${j}${rt}`}function linkToAccount(s,j,$){const _e=explorerConfigs($,s);if(!_e)throw new Error("invalid chain, explorer config not found");const{baseUrl:et,endpoints:tt,networkQuery:nt}=_e,rt=nt?nt[$]:"";return`${et}${tt.account}${j}${rt}`}const explorer$1=Object.freeze(Object.defineProperty({__proto__:null,explorerConfigs,explorerConfs,linkToAccount,linkToTx},Symbol.toStringTag,{value:"Module"})),rpcConfig=[["Mainnet",[["Ethereum","https://rpc.ankr.com/eth"],["Solana","https://api.mainnet-beta.solana.com"],["Polygon","https://rpc.ankr.com/polygon"],["Bsc","https://bscrpc.com"],["Avalanche","https://rpc.ankr.com/avalanche"],["Fantom","https://rpc.ankr.com/fantom"],["Celo","https://rpc.ankr.com/celo"],["Moonbeam","https://rpc.ankr.com/moonbeam"],["Sui","https://rpc.mainnet.sui.io"],["Aptos","https://fullnode.mainnet.aptoslabs.com/v1"],["Arbitrum","https://arb1.arbitrum.io/rpc"],["Optimism","https://mainnet.optimism.io"],["Base","https://mainnet.base.org"],["Osmosis","https://osmosis-rpc.polkachu.com"],["Cosmoshub","https://cosmos-rpc.publicnode.com:443"],["Evmos","https://evmos-rpc.polkachu.com"],["Injective","https://sentry.tm.injective.network"],["Wormchain","https://wormchain-rpc.quickapi.com"],["Xpla","https://dimension-rpc.xpla.dev"],["Sei","https://sei-rpc.polkachu.com/"],["Algorand","https://mainnet-api.algonode.cloud"],["Terra","https://terra-classic-rpc.publicnode.com"],["Terra2","https://terra-rpc.polkachu.com"],["Karura","https://eth-rpc-karura.aca-api.network"],["Acala","https://eth-rpc-acala.aca-api.network"],["Oasis","https://emerald.oasis.dev"],["Dymension","https://dymension-rpc.polkachu.com/"],["Stargaze","https://stargaze-rpc.polkachu.com/"],["Celestia","https://celestia-rpc.polkachu.com/"],["Neutron","https://neutron-rpc.polkachu.com/"],["Blast","https://rpc.blast.io"],["Provenance","https://rpc.provenance.io/"],["Noble","https://noble-rpc.polkachu.com/"],["Linea","https://rpc.linea.build"],["Scroll","https://rpc.ankr.com/scroll"],["Xlayer","https://xlayerrpc.okx.com/"],["Gnosis","https://rpc.ankr.com/gnosis"],["Rootstock","https://public-node.rsk.co"],["Mantle","https://rpc.mantle.xyz"],["Klaytn","https://rpc.ankr.com/klaytn"],["Snaxchain","https://mainnet.snaxchain.io"],["Worldchain","https://worldchain-mainnet.g.alchemy.com/public"]]],["Testnet",[["Ethereum","https://eth-goerli.public.blastapi.io"],["Polygon","https://rpc-mumbai.polygon.technology"],["Bsc","https://data-seed-prebsc-1-s3.binance.org:8545"],["Avalanche","https://api.avax-test.network/ext/bc/C/rpc"],["Fantom","https://rpc.ankr.com/fantom_testnet"],["Celo","https://alfajores-forno.celo-testnet.org"],["Solana","https://api.devnet.solana.com"],["Oasis","https://testnet.emerald.oasis.io"],["Moonbeam","https://rpc.api.moonbase.moonbeam.network"],["Sui","https://fullnode.testnet.sui.io"],["Aptos","https://fullnode.testnet.aptoslabs.com/v1"],["Sei","https://sei-testnet-rpc.polkachu.com"],["Arbitrum","https://arbitrum-goerli.public.blastapi.io"],["Optimism","https://optimism-goerli.public.blastapi.io"],["Base","https://base-goerli.public.blastapi.io"],["Injective","https://testnet.sentry.tm.injective.network"],["Osmosis","https://rpc.testnet.osmosis.zone"],["Cosmoshub","https://rpc.sentry-02.theta-testnet.polypore.xyz"],["Evmos","https://evmos-testnet-rpc.polkachu.com"],["Wormchain","https://gateway.testnet.xlabs.xyz/"],["Xpla","https://cube-rpc.xpla.dev"],["Sepolia","https://ethereum-sepolia.publicnode.com"],["Algorand","https://testnet-api.algonode.cloud"],["Terra","https://bombay.stakesystems.io"],["Terra2","https://terra-testnet-rpc.polkachu.com"],["ArbitrumSepolia","https://sepolia-rollup.arbitrum.io/rpc"],["OptimismSepolia","https://sepolia.optimism.io"],["BaseSepolia","https://sepolia.base.org"],["PolygonSepolia","https://rpc-amoy.polygon.technology/"],["Mantle","https://mantle-sepolia.drpc.org"],["Karura","https://eth-rpc-karura-testnet.aca-staging.network"],["Acala","https://eth-rpc-acala-testnet.aca-staging.network"],["Blast","https://sepolia.blast.io"],["Berachain","https://artio.rpc.berachain.com"],["Linea","https://rpc.sepolia.linea.build"],["Xlayer","https://testrpc.xlayer.tech/"],["Scroll","https://rpc.ankr.com/scroll_sepolia_testnet"],["Rootstock","https://public-node.testnet.rsk.co"],["Gnosis","https://rpc.chiadochain.net"],["Klaytn","https://rpc.ankr.com/klaytn_testnet"],["Snaxchain","https://testnet.snaxchain.io"],["Unichain","https://sepolia.unichain.org"],["Worldchain","https://worldchain-sepolia.g.alchemy.com/public"],["Ink","https://rpc-qnd-sepolia.inkonchain.com"],["MonadDevnet",""],["Noble","https://noble-testnet-rpc.polkachu.com/"]]],["Devnet",[["Ethereum","http://eth-devnet:8545"],["Bsc","http://eth-devnet2:8545"],["Solana","http://solana-devnet:8899"]]]],rpc$2=constMap(rpcConfig),rpcAddress=(s,j)=>rpc$2.get(s,j)??"",rpc$3=Object.freeze(Object.defineProperty({__proto__:null,rpcAddress},Symbol.toStringTag,{value:"Module"})),chainNetworkNativeChainIdEntries=[["Mainnet",[["Aptos",1n],["Algorand","mainnet-v1.0"],["Near","mainnet"],["Cosmoshub","cosmoshub-4"],["Evmos","evmos_9001-2"],["Injective","injective-1"],["Osmosis","osmosis-1"],["Sei","pacific-1"],["Terra","columbus-5"],["Terra2","phoenix-1"],["Wormchain","wormchain"],["Xpla","dimension_37-1"],["Kujira","kaiyo-1"],["Solana","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"],["Sui","35834a8a"],["Acala",787n],["Arbitrum",42161n],["Aurora",1313161554n],["Avalanche",43114n],["Base",8453n],["Bsc",56n],["Celo",42220n],["Ethereum",1n],["Fantom",250n],["Gnosis",100n],["Karura",686n],["Klaytn",8217n],["Moonbeam",1284n],["Neon",245022934n],["Oasis",42262n],["Optimism",10n],["Polygon",137n],["Rootstock",30n],["Neutron","neutron-1"],["Stargaze","stargaze-1"],["Celestia","celestia"],["Dymension","dymension_1100-1"],["Provenance","pio-mainnet-1"],["Noble","noble-1"],["Xlayer",196n],["Mantle",5000n],["Scroll",534352n],["Blast",81457n],["Linea",59144n],["Snaxchain",2192n],["Worldchain",480n]]],["Testnet",[["Aptos",2n],["Algorand","testnet-v1.0"],["Near","testnet"],["Cosmoshub","theta-testnet-001"],["Evmos","evmos_9000-4"],["Injective","injective-888"],["Osmosis","osmo-test-5"],["Sei","atlantic-2"],["Terra","bombay-12"],["Terra2","pisco-1"],["Wormchain","wormchain-testnet-0"],["Xpla","cube_47-5"],["Kujira","harpoon-4"],["Solana","EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG"],["Sui","4c78adac"],["Acala",597n],["Arbitrum",421613n],["Aurora",1313161555n],["Avalanche",43113n],["Base",84531n],["Bsc",97n],["Celo",44787n],["Ethereum",5n],["Fantom",4002n],["Gnosis",10200n],["Karura",596n],["Klaytn",1001n],["Moonbeam",1287n],["Neon",245022940n],["Oasis",42261n],["Optimism",420n],["Polygon",80001n],["Rootstock",31n],["Sepolia",11155111n],["ArbitrumSepolia",421614n],["BaseSepolia",84532n],["OptimismSepolia",11155420n],["PolygonSepolia",80002n],["Holesky",17000n],["Neutron","pion-1"],["Celestia","mocha-4"],["Seda","seda-1-testnet"],["Noble","grand-1"],["Blast",168587773n],["Mantle",5003n],["Scroll",534351n],["Berachain",80084n],["Snaxchain",13001n],["Unichain",1301n],["Worldchain",4801n],["Ink",763373n],["Xlayer",195n],["Linea",59141n],["MonadDevnet",41454n]]],["Devnet",[["Aptos",0n],["Algorand","sandnet-v1.0"],["Bsc",1397n],["Ethereum",1337n],["Injective","injective_devnet_fake"],["Solana","8wF6jKV3cKwyaVkWcoV9KpDqmkjvEYno9hKZrKx8TbZn"]]]],networkChainToNativeChainId=constMap(chainNetworkNativeChainIdEntries),nativeChainIdToNetworkChain=constMap(chainNetworkNativeChainIdEntries,[2,[0,1]]);function platformNativeChainIdToNetworkChain(s,j){const _e=nativeChainIdToNetworkChain(j).filter(([et,tt])=>chainToPlatform(tt)===s);if(_e.length!==1)throw new Error(`Platform ${s} has multiple chains with native chain id ${j}`);return _e[0]}const nativeChainIds=Object.freeze(Object.defineProperty({__proto__:null,networkChainToNativeChainId,platformNativeChainIdToNetworkChain},Symbol.toStringTag,{value:"Module"})),circleAPIs=[["Mainnet","https://iris-api.circle.com/v1/attestations"],["Testnet","https://iris-api-sandbox.circle.com/v1/attestations"]],circleAPI=constMap(circleAPIs),usdcContracts=[["Mainnet",[["Ethereum","0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"],["Avalanche","0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e"],["Optimism","0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"],["Arbitrum","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],["Solana","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],["Base","0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"],["Polygon","0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"],["Sui","0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"]]],["Testnet",[["Sepolia","0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],["Avalanche","0x5425890298aed601595a70AB815c96711a31Bc65"],["OptimismSepolia","0x5fd84259d66Cd46123540766Be93DFE6D43130D7"],["ArbitrumSepolia","0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"],["Solana","4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"],["BaseSepolia","0x036CbD53842c5426634e7929541eC2318f3dCF7e"],["Polygon","0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"],["Sui","0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"]]]],usdcContract=constMap(usdcContracts),circleDomains=[["Mainnet",[["Ethereum",0],["Avalanche",1],["Optimism",2],["Arbitrum",3],["Solana",5],["Base",6],["Polygon",7],["Sui",8]]],["Testnet",[["Sepolia",0],["Avalanche",1],["OptimismSepolia",2],["ArbitrumSepolia",3],["Solana",5],["BaseSepolia",6],["Polygon",7],["Sui",8]]]],circleChainId=constMap(circleDomains,[[0,1],2]),circleChainIdToChain=constMap(circleDomains,[[0,2],1]),[circleNetworks,circleChainMap]=zip(circleDomains),isCircleChain=(s,j)=>circleChainId.has(s,j),isCircleChainId=(s,j)=>circleChainIdToChain.has(s,j),isCircleSupported=(s,j)=>usdcContract.has(s,j);function assertCircleChainId(s,j){if(!isCircleChainId(s,j))throw Error(`Unknown Circle chain id: ${j}`)}function assertCircleChain(s,j){if(!isCircleChain(s,j))throw Error(`Unknown Circle chain: ${j}`)}const asCircleChainId=(s,j)=>(assertCircleChainId(s,j),j),toCircleChainId=(s,j)=>{switch(typeof j){case"string":if(isCircleChain(s,j))return circleChainId.get(s,j);break;case"number":if(isCircleChainId(s,j))return j;break;case"bigint":const $=Number(j);if(isCircleChainId(s,$))return $;break}throw Error(`Cannot convert to ChainId: ${j}`)},toCircleChain=(s,j)=>{switch(typeof j){case"string":if(isCircleChain(s,j))return j;break;case"number":if(isCircleChainId(s,j))return circleChainIdToChain(s,j);break;case"bigint":const $=Number(j);if(isCircleChainId(s,$))return circleChainIdToChain(s,$);break}throw Error(`Cannot convert to Chain: ${j}`)},circle$1=Object.freeze(Object.defineProperty({__proto__:null,asCircleChainId,assertCircleChain,assertCircleChainId,circleAPI,circleChainId,circleChainIdToChain,circleChainMap,circleNetworks,isCircleChain,isCircleChainId,isCircleSupported,toCircleChain,toCircleChainId,usdcContract},Symbol.toStringTag,{value:"Module"})),coreBridgeContracts=[["Mainnet",[["Solana","worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"],["Ethereum","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Terra","terra1dq03ugtd40zu9hcgdzrsq6z2z4hwhc9tqk2uy5"],["Bsc","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Polygon","0x7A4B5a56256163F07b2C80A7cA55aBE66c4ec4d7"],["Avalanche","0x54a8e5f9c4CbA08F9943965859F6c34eAF03E26c"],["Oasis","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"],["Algorand","842125965"],["Aurora","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Fantom","0x126783A6Cb203a3E35344528B26ca3a0489a1485"],["Karura","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Acala","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Klaytn","0x0C21603c4f3a6387e241c0091A7EA39E43E90bb7"],["Celo","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Near","contract.wormhole_crypto.near"],["Injective","inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c"],["Moonbeam","0xC8e2b0cD52Cf01b0Ce87d389Daa3d414d4cE29f3"],["Terra2","terra12mrnzvhx3rpej6843uge2yyfppfyd3u9c3uq223q8sl48huz9juqffcnhp"],["Arbitrum","0xa5f208e072434bC67592E4C49C1B991BA79BCA46"],["Optimism","0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722"],["Gnosis","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Pythnet","H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU"],["Base","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Rootstock","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Xlayer","0x194B123c5E96B9b2E49763619985790Dc241CAC0"],["Xpla","xpla1jn8qmdda5m6f6fqu9qv46rt7ajhklg40ukpqchkejcvy8x7w26cqxamv3w"],["Sei","sei1gjrrme22cyha4ht2xapn3f08zzw6z3d4uxx6fyy9zd5dyr3yxgzqqncdqn"],["Wormchain","wormhole1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqaqfk2j"],["Neutron","neutron16rerygcpahqcxx5t8vjla46ym8ccn7xz7rtc6ju5ujcd36cmc7zs9zrunh"],["Blast","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Scroll","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Mantle","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Snaxchain","0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4"],["Worldchain","0xcbcEe4e081464A15d8Ad5f58BB493954421eB506"]]],["Testnet",[["Solana","3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"],["Ethereum","0x706abc4E45D419950511e474C7B9Ed348A4a716c"],["Terra","terra1pd65m0q9tl3v8znnz5f5ltsfegyzah7g42cx5v"],["Bsc","0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"],["Polygon","0x0CBE91CF822c73C2315FB05100C2F714765d5c20"],["Avalanche","0x7bbcE28e64B3F8b84d876Ab298393c38ad7aac4C"],["Oasis","0xc1C338397ffA53a2Eb12A7038b4eeb34791F8aCb"],["Algorand","86525623"],["Aurora","0xBd07292de7b505a4E803CEe286184f7Acf908F5e"],["Fantom","0x1BB3B4119b7BA9dfad76B0545fb3F531383c3bB7"],["Karura","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Acala","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Klaytn","0x1830CC6eE66c84D2F177B94D544967c774E624cA"],["Celo","0x88505117CA88e7dd2eC6EA1E13f0948db2D50D56"],["Near","wormhole.wormhole.testnet"],["Injective","inj1xx3aupmgv3ce537c0yce8zzd3sz567syuyedpg"],["Osmosis","osmo1hggkxr0hpw83f8vuft7ruvmmamsxmwk2hzz6nytdkzyup9krt0dq27sgyx"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790"],["Moonbeam","0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901"],["Neon","0x268557122Ffd64c85750d630b716471118F323c8"],["Terra2","terra19nv3xr5lrmmr7egvrk2kqgw4kcn43xrtd5g0mpgwwvhetusk4k7s66jyv0"],["Arbitrum","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Gnosis","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Pythnet","EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z"],["Xpla","xpla1upkjn4mthr0047kahvn0llqx4qpqfn75lnph4jpxfn8walmm8mqsanyy35"],["Base","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Sei","sei1nna9mzp274djrgzhzkac2gvm3j27l402s4xzr08chq57pjsupqnqaj0d5s"],["Sepolia","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Rootstock","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Wormchain","wormhole16jzpxp0e8550c9aht6q9svcux30vtyyyyxv5w2l2djjra46580wsazcjwp"],["ArbitrumSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["BaseSepolia","0x79A1027a6A159502049F10906D333EC57E95F083"],["OptimismSepolia","0x31377888146f3253211EFEf5c676D41ECe7D58Fe"],["Holesky","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Neutron","neutron1enf63k37nnv9cugggpm06mg70emcnxgj9p64v2s8yx7a2yhhzk2q6xesk4"],["Mantle","0x376428e7f26D5867e69201b275553C45B09EE090"],["PolygonSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Scroll","0x055F47F1250012C6B20c436570a76e52c17Af2D5"],["Blast","0x473e002D7add6fB67a4964F13bFd61280Ca46886"],["Berachain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Snaxchain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Unichain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Worldchain","0xe5E02cD12B6FcA153b0d7fF4bF55730AE7B3C93A"],["Ink","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Xlayer","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["Linea","0x79A1027a6A159502049F10906D333EC57E95F083"],["MonadDevnet","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"]]],["Devnet",[["Solana","Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"],["Ethereum","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Terra","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Bsc","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Algorand","1004"],["Near","wormhole.test.near"],["Aptos","0xde0036a9600559e295d5f6802ef6f3f802f510366e0c23912b0655d972166017"],["Sui","0x5a5160ca3c2037f4b4051344096ef7a48ebf4400b3f385e57ea90e1628a8bde0"],["Terra2","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Wormchain","wormhole17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgshdnj3k"]]]],tokenBridgeContracts=[["Mainnet",[["Solana","wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb"],["Ethereum","0x3ee18B2214AFF97000D974cf647E7C347E8fa585"],["Terra","terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf"],["Bsc","0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7"],["Polygon","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Avalanche","0x0e082F06FF657D94310cB8cE8B0D9a04541d8052"],["Oasis","0x5848C791e09901b40A9Ef749f2a6735b418d7564"],["Algorand","842126029"],["Aurora","0x51b5123a7b0F9b2bA265f9c4C8de7D78D52f510F"],["Fantom","0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2"],["Karura","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Acala","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Klaytn","0x5b08ac39EAED75c0439FC750d9FE7E1F9dD0193F"],["Celo","0x796Dff6D74F3E27060B71255Fe517BFb23C93eed"],["Near","contract.portalbridge.near"],["Injective","inj1ghd753shjuwexxywmgs4xz7x2q732vcnxxynfn"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0xc57508ee0d4595e5a8728974a4a93a787d38f339757230d441e895422c07aba9"],["Moonbeam","0xb1731c586ca89a23809861c6103f0b96b3f57d92"],["Terra2","terra153366q50k7t8nn7gec00hg66crnhkdggpgdtaxltaq6xrutkkz3s992fw9"],["Arbitrum","0x0b2402144Bb366A632D14B83F244D2e0e21bD39c"],["Optimism","0x1D68124e65faFC907325e3EDbF8c4d84499DAa8b"],["Base","0x8d2de8d2f73F1F4cAB472AC9A881C9b123C79627"],["Xlayer","0x5537857664B0f9eFe38C9f320F75fEf23234D904"],["Xpla","xpla137w0wfch2dfmz7jl2ap8pcmswasj8kg06ay4dtjzw7tzkn77ufxqfw7acv"],["Sei","sei1smzlm9t79kur392nu9egl8p8je9j92q4gzguewj56a05kyxxra0qy0nuf3"],["Wormchain","wormhole1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjq4lyjmh"],["Blast","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Scroll","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Mantle","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Snaxchain","0x8B94bfE456B48a6025b92E11Be393BAa86e68410"],["Worldchain","0xc309275443519adca74c9136b02A38eF96E3a1f6"]]],["Testnet",[["Solana","DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe"],["Ethereum","0xF890982f9310df57d00f659cf4fd87e65adEd8d7"],["Terra","terra1pseddrv0yfsn76u4zxrjmtf45kdlmalswdv39a"],["Bsc","0x9dcF9D205C9De35334D646BeE44b2D2859712A09"],["Polygon","0x377D55a7928c046E18eEbb61977e714d2a76472a"],["Avalanche","0x61E44E506Ca5659E6c0bba9b678586fA2d729756"],["Oasis","0x88d8004A9BdbfD9D28090A02010C19897a29605c"],["Algorand","86525641"],["Aurora","0xD05eD3ad637b890D68a854d607eEAF11aF456fba"],["Fantom","0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8"],["Karura","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Acala","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Klaytn","0xC7A13BE098720840dEa132D860fDfa030884b09A"],["Celo","0x05ca6037eC51F8b712eD2E6Fa72219FEaE74E153"],["Near","token.wormhole.testnet"],["Injective","inj1q0e70vhrv063eah90mu97sazhywmeegp7myvnh"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0x6fb10cdb7aa299e9a4308752dadecb049ff55a892de92992a1edbd7912b3d6da"],["Moonbeam","0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96"],["Neon","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Terra2","terra1c02vds4uhgtrmcw7ldlg75zumdqxr8hwf7npseuf2h58jzhpgjxsgmwkvk"],["Arbitrum","0x23908A62110e21C04F3A4e011d24F901F911744A"],["ArbitrumSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["OptimismSepolia","0x99737Ec4B815d816c49A385943baf0380e75c0Ac"],["Xpla","xpla1kek6zgdaxcsu35nqfsyvs2t9vs87dqkkq6hjdgczacysjn67vt8sern93x"],["Base","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["BaseSepolia","0x86F55A04690fd7815A3D802bD587e83eA888B239"],["Sei","sei1jv5xw094mclanxt5emammy875qelf3v62u4tl4lp5nhte3w3s9ts9w9az2"],["Sepolia","0xDB5492265f6038831E89f495670FF909aDe94bd9"],["Wormchain","wormhole1aaf9r6s7nxhysuegqrxv0wpm27ypyv4886medd3mrkrw6t4yfcnst3qpex"],["Holesky","0x76d093BbaE4529a342080546cAFEec4AcbA59EC6"],["Mantle","0x75Bfa155a9D7A3714b0861c8a8aF0C4633c45b5D"],["PolygonSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Scroll","0x22427d90B7dA3fA4642F7025A854c7254E4e45BF"],["Blast","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Xlayer","0xdA91a06299BBF302091B053c6B9EF86Eff0f930D"],["Berachain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Snaxchain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Unichain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Worldchain","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Ink","0x376428e7f26D5867e69201b275553C45B09EE090"],["Linea","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"]]],["Devnet",[["Solana","B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE"],["Ethereum","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Terra","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Bsc","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Algorand","1006"],["Near","token.test.near"],["Aptos","0x84a5f374d29fc77e370014dce4fd6a55b58ad608de8074b0be5571701724da31"],["Sui","0xa6a3da85bbe05da5bfd953708d56f1a3a023e7fb58e5a824a3d4de3791e8f690"],["Terra2","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Wormchain","wormhole1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrqtm7t3h"]]]],tokenBridgeRelayerContracts=[["Mainnet",[["Ethereum","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Bsc","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Polygon","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Avalanche","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Fantom","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Celo","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Sui","0x57f4e0ba41a7045e29d435bc66cc4175f381eb700e6ec16d4fdfe92e5a4dff9f"],["Solana","3vxKRPwUTiEkeUVyoZ9MXFe1V71sRLbLqu1gRYaWmehQ"],["Base","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Moonbeam","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Arbitrum","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Optimism","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"]]],["Testnet",[["Ethereum","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Bsc","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Polygon","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Avalanche","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Sui","0xb30040e5120f8cb853b691cb6d45981ae884b1d68521a9dc7c3ae881c0031923"],["Base","0xae8dc4a7438801ec4edc0b035eccccf3807f4cc1"],["Moonbeam","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Solana","3bPRWXqtSfUaCw3S4wdgvypQtsSzcmvDeaqSqPDkncrg"],["Sepolia",""],["ArbitrumSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["OptimismSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["BaseSepolia",""]]]],nftBridgeContracts=[["Mainnet",[["Solana","WnFt12ZrnzZrFZkt2xsNsaNWoQribnuQ5B5FrDbwDhD"],["Ethereum","0x6FFd7EdE62328b3Af38FCD61461Bbfc52F5651fE"],["Bsc","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Polygon","0x90BBd86a6Fe93D3bc3ed6335935447E75fAb7fCf"],["Avalanche","0xf7B6737Ca9c4e08aE573F75A97B73D7a813f5De5"],["Oasis","0x04952D522Ff217f40B5Ef3cbF659EcA7b952a6c1"],["Aurora","0x6dcC0484472523ed9Cdc017F711Bcbf909789284"],["Fantom","0xA9c7119aBDa80d4a4E0C06C8F4d8cF5893234535"],["Karura","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Acala","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Klaytn","0x3c3c561757BAa0b78c5C025CdEAa4ee24C1dFfEf"],["Celo","0xA6A377d75ca5c9052c9a77ED1e865Cc25Bd97bf3"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["Moonbeam","0x453cfbe096c0f8d763e8c5f24b441097d577bde2"],["Arbitrum","0x3dD14D553cFD986EAC8e3bddF629d82073e188c8"],["Base","0xDA3adC6621B2677BEf9aD26598e6939CF0D92f88"],["Optimism","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"]]],["Testnet",[["Solana","2rHhojZ7hpu1zA91nvZmT8TqWWvMcKmmNBCr2mKTtMq4"],["Ethereum","0xD8E4C2DbDd2e2bd8F1336EA691dBFF6952B1a6eB"],["Bsc","0xcD16E5613EF35599dc82B24Cb45B5A93D779f1EE"],["Polygon","0x51a02d0dcb5e52F5b92bdAA38FA013C91c7309A9"],["Avalanche","0xD601BAf2EEE3C028344471684F6b27E789D9075D"],["Oasis","0xC5c25B41AB0b797571620F5204Afa116A44c0ebA"],["Aurora","0x8F399607E9BA2405D87F5f3e1B78D950b44b2e24"],["Fantom","0x63eD9318628D26BdCB15df58B53BB27231D1B227"],["Klaytn","0x94c994fC51c13101062958b567e743f1a04432dE"],["Celo","0xaCD8190F647a31E56A656748bC30F69259f245Db"],["Moonbeam","0x98A0F4B96972b32Fcb3BD03cAeB66A44a6aB9Edb"],["Neon","0x66E5BcFD45D2F3f166c567ADa663f9d2ffb292B4"],["Arbitrum","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Optimism","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Base","0xF681d1cc5F25a3694E348e7975d7564Aa581db59"],["Sepolia","0x6a0B52ac198e4870e5F3797d5B403838a5bbFD99"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["ArbitrumSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["BaseSepolia","0x268557122Ffd64c85750d630b716471118F323c8"],["OptimismSepolia","0x27812285fbe85BA1DF242929B906B31EE3dd1b9f"],["Holesky","0xc8941d483c45eF8FB72E4d1F9dDE089C95fF8171"],["PolygonSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Mantle","0xD7D732C8Bf5eBF620EA55b5828eae20418eEF083"],["Scroll","0x47B9a1406BEe29a3001BFEB7e45aE45fFFB40c18"]]],["Devnet",[["Solana","NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA"],["Ethereum","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Terra","terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl"],["Bsc","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Aptos","0x46da3d4c569388af61f951bdd1153f4c875f90c2991f6b2d0a38e2161a40852c"]]]],relayerContracts=[["Mainnet",[["Ethereum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Bsc","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Polygon","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Avalanche","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Fantom","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Klaytn","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Celo","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Moonbeam","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Base","0x706f82e9bb5b0813501714ab5974216704980e31"],["Arbitrum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Optimism","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Blast","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Scroll","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Mantle","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Xlayer","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Snaxchain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"]]],["Testnet",[["Ethereum","0x28D8F1Be96f97C1387e94A53e00eCcFb4E75175a"],["Bsc","0x80aC94316391752A193C1c47E27D382b507c93F3"],["Polygon","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Avalanche","0xA3cF45939bD6260bcFe3D66bc73d60f19e49a8BB"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x306B68267Deb7c5DfCDa3619E22E9Ca39C374f84"],["Moonbeam","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Arbitrum","0xAd753479354283eEE1b86c9470c84D42f229FF43"],["Optimism","0x01A957A525a5b7A72808bA9D10c389674E459891"],["Base","0xea8029CD7FCAEFFcD1F53686430Db0Fc8ed384E1"],["Sepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["ArbitrumSepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["BaseSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["OptimismSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"]]],["Devnet",[["Ethereum","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"],["Bsc","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"]]]],circleContracts$1=[["Mainnet",[["Ethereum",{tokenMessenger:"0xbd3fa81b58ba92a82136038b25adec7066af3155",messageTransmitter:"0x0a992d191deec32afe36203ad87d7d289a738f81",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0xAaDA05BD399372f0b0463744C09113c137636f6a"}],["Avalanche",{tokenMessenger:"0x6b25532e1060ce10cc3b0a99e5683b91bfde6982",messageTransmitter:"0x8186359af5f57fbb40c6b14a588d2a59c0c29880",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x09Fb06A271faFf70A651047395AaEb6265265F13"}],["Optimism",{tokenMessenger:"0x2B4069517957735bE00ceE0fadAE88a26365528f",messageTransmitter:"0x4d41f22c5a0e5c74090899e5a8fb597a8842b3e8",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Arbitrum",{tokenMessenger:"0x19330d10D9Cc8751218eaf51E8885D058642E08A",messageTransmitter:"0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Base",{tokenMessenger:"0x1682Ae6375C4E4A97e4B583BC394c861A46D8962",messageTransmitter:"0xAD09780d193884d503182aD4588450C416D6F9D4",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x03faBB06Fa052557143dC28eFCFc63FC12843f1D"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["Polygon",{tokenMessenger:"0x9daF8c91AEFAE50b9c0E69629D3F6Ca40cA3B3FE",messageTransmitter:"0xF3be9355363857F3e001be68856A2f96b4C39Ba9",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x0FF28217dCc90372345954563486528aa865cDd6"}],["Sui",{tokenMessenger:"0x2aa6c5d56376c371f88a6cc42e852824994993cb9bab8d3e6450cbe3cb32b94e",messageTransmitter:"0x08d87d37ba49e785dde270a83f8e979605b03dc552b5548f26fdf2f49bf7ed1b",wormholeRelayer:"",wormhole:""}]]],["Testnet",[["Sepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Avalanche",{tokenMessenger:"0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0",messageTransmitter:"0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79",wormholeRelayer:"0x774a70bbd03327c21460b60f25b677d9e46ab458",wormhole:"0x58f4c17449c90665891c42e14d34aae7a26a472e"}],["OptimismSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["ArbitrumSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xaCF1ceeF35caAc005e15888dDb8A3515C41B4872",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["BaseSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Polygon",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Sui",{tokenMessenger:"0x31cc14d80c175ae39777c0238f20594c6d4869cfab199f40b69f3319956b8beb",messageTransmitter:"0x4931e06dce648b3931f890035bd196920770e913e43e45990b383f6486fdd0a5",wormholeRelayer:"",wormhole:""}]]]],gatewayContracts=[["Mainnet",[["Wormchain","wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]],["Testnet",[["Wormchain","wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]],translatorContracts=[["Mainnet",[["Sei","sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l"]]],["Testnet",[["Sei","sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak"]]]],rollupContractAddresses=[["Mainnet",[["Polygon",["Ethereum","0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]],["Optimism",["Ethereum","0xdfe97868233d1aa22e815a266982f2cf17685a27"]],["Arbitrum",["Ethereum","0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]],["Testnet",[["Polygon",["Ethereum","0x2890ba17efe978480615e330ecb65333b880928e"]],["Optimism",["Ethereum","0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]],["Arbitrum",["Ethereum","0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]],porticoContracts=[["Mainnet",[["Ethereum",{porticoUniswap:"0x48b6101128C0ed1E208b7C910e60542A2ee6f476",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0x4db1683d60e0a933A9A477a19FA32F472bB9d06e",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Polygon",{porticoUniswap:"0x227bABe533fa9a1085f5261210E0B7137E44437B",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Bsc",{porticoUniswap:"0x05498574BD0Fa99eeCB01e1241661E7eE58F8a85",uniswapQuoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",porticoPancakeSwap:"0xF352DC165783538A26e38A536e76DceF227d90F2",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Avalanche",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Arbitrum",{porticoUniswap:"0x48fa7528bFD6164DdF09dF0Ed22451cF59c84130",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0xE70946692E2e56ae47BfAe2d93d31bd60952B090",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Optimism",{porticoUniswap:"0x9ae506cDDd27DEe1275fd1fe6627E5dc65257061",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Base",{porticoUniswap:"0x610d4DFAC3EC32e0be98D18DDb280DACD76A1889",uniswapQuoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",porticoPancakeSwap:"0x4568aa1eA0ED54db666c58B4526B3FC9BD9be9bf",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Celo",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}]]]],coreBridge=constMap(coreBridgeContracts),tokenBridge$2=constMap(tokenBridgeContracts),tokenBridgeRelayer=constMap(tokenBridgeRelayerContracts),nftBridge=constMap(nftBridgeContracts),relayer$1=constMap(relayerContracts),gateway=constMap(gatewayContracts),translator=constMap(translatorContracts),portico$2=constMap(porticoContracts),circleContracts=constMap(circleContracts$1),rollupContracts=constMap(rollupContractAddresses),tokenBridgeChains=constMap(tokenBridgeContracts,[0,1]),tokenBridgeRelayerChains=constMap(tokenBridgeRelayerContracts,[0,1]),circleContractChains=constMap(circleContracts$1,[0,1]),porticoContractChains=constMap(porticoContracts,[0,1]),index=Object.freeze(Object.defineProperty({__proto__:null,circleContractChains,circleContracts,coreBridge,gateway,nftBridge,portico:portico$2,porticoContractChains,relayer:relayer$1,rollupContracts,tokenBridge:tokenBridge$2,tokenBridgeChains,tokenBridgeRelayer,tokenBridgeRelayerChains,translator},Symbol.toStringTag,{value:"Module"})),guardianKeyAndNameEntries=[["Mainnet",[["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5","JumpCrypto"],["0xfF6CB952589BDE862c25Ef4392132fb9D4A42157","Staked"],["0x114De8460193bdf3A2fCf81f86a09765F4762fD1","Figment"],["0x107A0086b32d7A0977926A205131d8731D39cbEB","ChainodeTech"],["0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2","Inotel"],["0x11b39756C042441BE6D8650b69b54EbE715E2343","HashQuark"],["0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd","Chainlayer"],["0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20","xLabs"],["0x74a3bf913953D695260D88BC1aA25A4eeE363ef0","Forbole"],["0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e","StakingFund"],["0xAF45Ced136b9D9e24903464AE889F5C8a723FC14","MoonletWallet"],["0xf93124b7c738843CBB89E864c862c38cddCccF95","P2PValidator"],["0xD2CC37A4dc036a8D232b48f62cDD4731412f4890","01Node"],["0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811","MCF"],["0x71AA1BE1D36CaFE3867910F99C09e347899C19C3","Everstake"],["0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf","ChorusOne"],["0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8","Syncnode"],["0x5E1487F35515d02A92753504a8D75471b9f49EdB","Triton"],["0x6FbEBc898F403E4773E95feB15E80C9A99c8348d","StakingFacilities"]]],["Testnet",[["0x13947Bd48b18E53fdAeEe77F3473391aC727C638","Testnet guardian"]]]],[guardianKeys,guardianNames]=filterIndexes(zip(cartesianRightRecursive(guardianKeyAndNameEntries)),[1,2]),guardianNameToKey=constMap(guardianKeyAndNameEntries,[[0,2],1]),guardianKeyToName=constMap(guardianKeyAndNameEntries,[1,[0,2]]),devnetGuardianPrivateKey="cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0",guardianAttestationEta=5,guardians=Object.freeze(Object.defineProperty({__proto__:null,devnetGuardianPrivateKey,guardianAttestationEta,guardianKeyToName,guardianKeys,guardianNameToKey,guardianNames},Symbol.toStringTag,{value:"Module"})),esm=Object.freeze(Object.defineProperty({__proto__:null,addFixedValues,amount:amount$2,asChainId,assertChain,assertChainId,bitsetItem,calcLayoutSize:calcSize,calcStaticLayoutSize:calcStaticSize,cartesianRightRecursive,chain:chains$1,chainIdToChain,chainIds,chainToChainId,chainToPlatform,chains,circle:circle$1,column,constMap,contracts:index,customizableBytes,decimals,deserializeLayout:deserialize$2,dynamicItemsOfLayout:dynamicItemsOf,encoding:encoding$3,entries,enumItem,explorer:explorer$1,filterIndexes,filters,finality,fixedItemsOfLayout:fixedItemsOf,flatten,guardians,isChain,isChainId,isEqualCaseInsensitive,isNetwork,isPlatform,layoutDiscriminator:buildDiscriminator,lazyInstantiate:lazyInstantiate$1,nativeChainIds,network:networks$1,networks,onlyOnce:onlyOnce$1,optionItem,pickWithOrder,platform:platforms$1,platformToAddressFormat,platformToChains,platforms,range,rpc:rpc$3,serializeLayout:serialize$2,throws:throws$1,toChain,toChainId,zip},Symbol.toStringTag,{value:"Module"})),networkOptions=[{env:"Mainnet",endpoint:"https://europe-west3-wormhole-message-db-mainnet.cloudfunctions.net",name:"Mainnet",logo:"",type:"cloudfunction"},{env:"Mainnet",endpoint:"https://wormhole-v2-mainnet-api.mcf.rocks",name:"MCF",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCA0OCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuODk2IDEyVjAuNDhIMy4zNDRMNy4zNzYgNS4yOTZMMTEuMzkyIDAuNDhIMTMuODU2VjEySDExLjUzNlYzLjkyTDcuMzc2IDguODk2TDMuMiAzLjkzNlYxMkgwLjg5NlpNMjEuODAzOCAxMkMyMS4zNzcxIDEyIDIwLjk4NzggMTEuODk4NyAyMC42MzU4IDExLjY5NkMyMC4yOTQ0IDExLjQ4MjcgMjAuMDE3MSAxMS4yMDUzIDE5LjgwMzggMTAuODY0QzE5LjYwMTEgMTAuNTEyIDE5LjQ5OTggMTAuMTIyNyAxOS40OTk4IDkuNjk2VjIuNzg0QzE5LjQ5OTggMi4zNTczMyAxOS42MDExIDEuOTczMzMgMTkuODAzOCAxLjYzMkMyMC4wMTcxIDEuMjggMjAuMjk0NCAxLjAwMjY3IDIwLjYzNTggMC43OTk5OTlDMjAuOTg3OCAwLjU4NjY2NiAyMS4zNzcxIDAuNDggMjEuODAzOCAwLjQ4SDMwLjk4NzhWMi44SDIyLjM0NzhDMjIuMTc3MSAyLjggMjIuMDQzOCAyLjg0OCAyMS45NDc4IDIuOTQ0QzIxLjg1MTggMy4wMjkzMyAyMS44MDM4IDMuMTYyNjcgMjEuODAzOCAzLjM0NFY5LjEzNkMyMS44MDM4IDkuMzA2NjcgMjEuODUxOCA5LjQ0IDIxLjk0NzggOS41MzZDMjIuMDQzOCA5LjYzMiAyMi4xNzcxIDkuNjggMjIuMzQ3OCA5LjY4SDMwLjk4NzhWMTJIMjEuODAzOFpNMzYuNDQ4IDEyVjAuNDhINDcuMDcyVjIuOEgzOC43ODRWNS4wNzJINDUuNDU2VjcuNDA4SDM4Ljc4NFYxMkgzNi40NDhaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",type:"guardian"},{env:"Mainnet",endpoint:"https://wormhole-v2-mainnet-api.chainlayer.network",name:"ChainLayer",logo:"",type:"guardian"},{env:"Mainnet",endpoint:"https://worm-dash-01.rockrpc.net",name:"RockawayX",logo:"",type:"guardian"},{env:"Mainnet",endpoint:"https://wormhole-v2-mainnet-api.staking.fund",name:"Staking Fund",logo:"",type:"guardian"},{env:"Mainnet",endpoint:"https://guardian.mainnet.xlabs.xyz",name:"xLabs",logo:"",type:"guardian"},{env:"Testnet",endpoint:"https://europe-west3-wormhole-message-db-testnet.cloudfunctions.net",name:"Testnet",logo:"",type:"cloudfunction"},{env:"Testnet",endpoint:"https://p2p-guardian-testnet-web.solana.p2p.org",name:"Testnet - P2P",logo:"",type:"guardian"},{env:"Testnet",endpoint:"https://guardian.testnet.xlabs.xyz",name:"Testnet - xLabs (LB)",logo:"",type:"guardian"},{env:"Testnet",endpoint:"https://guardian-01.testnet.xlabs.xyz",name:"Testnet - xLabs 1",logo:"",type:"guardian"},{env:"Testnet",endpoint:"https://guardian-02.testnet.xlabs.xyz",name:"Testnet - xLabs 2",logo:"",type:"guardian"},{env:"Devnet",endpoint:"http://localhost:7071",name:"Devnet",logo:"",type:"guardian"}],defaultNetwork=networkOptions[0],urlParamKey="endpoint",NetworkContext=React$1.createContext({currentNetwork:defaultNetwork,setCurrentNetwork:()=>{}}),NetworkContextProvider=({children:s})=>{const{push:j,replace:$}=useHistory(),{search:_e}=useLocation(),{urlParams:et,urlNetwork:tt,currentNetwork:nt}=reactExports.useMemo(()=>{const it=new URLSearchParams(_e),st=it.get(urlParamKey),at=networkOptions.find(ct=>ct.name===st)||defaultNetwork;return{urlParams:it,urlNetwork:st,currentNetwork:at}},[_e]),rt=reactExports.useCallback((it,st)=>{tt!==it.name&&(et.set(urlParamKey,it.name),st?$({search:et.toString()}):j({search:et.toString()}))},[tt,et,$,j]);reactExports.useEffect(()=>{rt(nt,!0)},[nt,rt]);const ot=reactExports.useMemo(()=>({currentNetwork:nt,setCurrentNetwork:rt}),[nt,rt]);return jsxRuntimeExports.jsx(NetworkContext.Provider,{value:ot,children:s})},useNetworkContext=()=>reactExports.useContext(NetworkContext),useCurrentEnvironment=()=>reactExports.useContext(NetworkContext).currentNetwork.env;function useChainHeartbeats(s){const j={};return s.forEach(($,_e)=>{$.networks.forEach(et=>{j[et.id]||(j[et.id]=s.map(tt=>({guardian:tt.guardianAddr,name:tt.nodeName,network:{...et,contractAddress:"",errorCount:"0",height:"0",safeHeight:"0",finalizedHeight:"0"}}))),j[et.id][_e]={guardian:$.guardianAddr,name:$.nodeName,network:et}})}),j}var dist={},arrays={};Object.defineProperty(arrays,"__esModule",{value:!0});arrays.chunkArray=void 0;function chunkArray(s,j){const $=[];for(let _e=0;_e{try{return(0,sdk_base_1$f.toChain)(s)}catch{}return"Unknown"};chainIdToName$1.chainIdToName=chainIdToName;var consts={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.isTokenDenylisted=s.TVL_TOKEN_DENYLIST=s.STANDBY_GUARDIANS=s.GUARDIAN_SET_4=s.NTT_ACCOUNTANT_CONTRACT_ADDRESS_TESTNET=s.NTT_ACCOUNTANT_CONTRACT_ADDRESS_MAINNET=s.ACCOUNTANT_CONTRACT_ADDRESS=s.CIRCLE_DOMAIN_TO_CHAIN_ID=s.isCircleIntegrationEmitter=s.CIRCLE_INTEGRATION_EMITTERS=s.isNFTBridgeEmitter=s.NFT_BRIDGE_EMITTERS=s.isTokenBridgeEmitter=s.TOKEN_BRIDGE_EMITTERS=s.getMissThreshold=s.INITIAL_DEPLOYMENT_BLOCK_BY_MODE=s.INITIAL_FT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN=s.INITIAL_NTT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN=s.INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN=s.VAA_VERSION=s.MAX_VAA_DECIMALS=s.MISS_THRESHOLD_LABEL=void 0;const j=require$$0$8,$=40;s.MISS_THRESHOLD_LABEL="40 minutes",s.MAX_VAA_DECIMALS=8,s.VAA_VERSION=1,s.INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN={Mainnet:{Ethereum:"12959638",Terra:"4810000",Bsc:"9745450",Polygon:"20629146",Avalanche:"8237163",Oasis:"1757",Algorand:"22931277",Fantom:"31817467",Karura:"1824665",Acala:"1144161",Klaytn:"90563824",Celo:"12947144",Moonbeam:"1486591",Terra2:"399813",Injective:"20908376",Arbitrum:"18128584",Optimism:"69401779",Aptos:"0",Near:"72767136",Xpla:"777549",Solana:"94396403",Sui:"1485552",Base:"1422314",Scroll:"4955534",Mantle:"64176265",Blast:"2375628",Sei:"238594",Wormchain:"4510119",Snaxchain:"306315",Worldchain:"5805110"},Testnet:{Ethereum:"0",Terra:"0",Bsc:"0",Polygon:"0",Avalanche:"0",Oasis:"0",Algorand:"0",Fantom:"0",Karura:"0",Acala:"0",Klaytn:"0",Celo:"0",Moonbeam:"0",Terra2:"0",Injective:"0",Arbitrum:"0",Optimism:"0",Aptos:"0",Near:"0",Xpla:"0",Solana:"0",Sui:"0",Scroll:"0",Mantle:"0",Blast:"0",Base:"0",Sei:"0",Wormchain:"4495661",PolygonSepolia:"2379275",Berachain:"1473347",Snaxchain:"482557",Unichain:"254961",Worldchain:"4487948",MonadDevnet:"3670467",Ink:"1907965"},Devnet:{}},s.INITIAL_NTT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN={Mainnet:{Solana:"260508723",Ethereum:"19583505",Fantom:"78727372",Arbitrum:"201652677",Optimism:"118840800",Base:"13245519"},Testnet:{Solana:"285100152",Sepolia:"5472203",ArbitrumSepolia:"22501243",BaseSepolia:"7249669",OptimismSepolia:"9232548"},Devnet:{}},s.INITIAL_FT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN={Mainnet:{Solana:"285350104",Arbitrum:"245882390",Base:"18956026"},Testnet:{Solana:"302162456",ArbitrumSepolia:"49505590"},Devnet:{}},s.INITIAL_DEPLOYMENT_BLOCK_BY_MODE={vaa:s.INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN,ntt:s.INITIAL_NTT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN,ft:s.INITIAL_FT_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN};function _e(ot,it){let st;try{let ct;typeof it=="string"&&!Number.isNaN(Number(it))?ct=(0,j.toChainId)(Number(it)):ct=(0,j.toChainId)(it),st=ct===(0,j.toChainId)("Scroll")?120:$}catch{st=$}const at=ot;return at.setMinutes(at.getMinutes()-st),at.toISOString()}s.getMissThreshold=_e,s.TOKEN_BRIDGE_EMITTERS={Solana:"ec7372995d5cc8732397fb0ad35c0121e0eaa90d26f828a534cab54391b3a4f5",Ethereum:"0000000000000000000000003ee18b2214aff97000d974cf647e7c347e8fa585",Terra:"0000000000000000000000007cf7b764e38a0a5e967972c1df77d432510564e2",Terra2:"a463ad028fb79679cfc8ce1efba35ac0e77b35080a1abe9bebe83461f176b0a3",Bsc:"000000000000000000000000b6f6d86a8f9879a9c87f643768d9efc38c1da6e7",Polygon:"0000000000000000000000005a58505a96d1dbf8df91cb21b54419fc36e93fde",Avalanche:"0000000000000000000000000e082f06ff657d94310cb8ce8b0d9a04541d8052",Oasis:"0000000000000000000000005848c791e09901b40a9ef749f2a6735b418d7564",Algorand:"67e93fa6c8ac5c819990aa7340c0c16b508abb1178be9b30d024b8ac25193d45",Aptos:"0000000000000000000000000000000000000000000000000000000000000001",Aurora:"00000000000000000000000051b5123a7b0f9b2ba265f9c4c8de7d78d52f510f",Fantom:"0000000000000000000000007c9fc5741288cdfdd83ceb07f3ea7e22618d79d2",Karura:"000000000000000000000000ae9d7fe007b3327aa64a32824aaac52c42a6e624",Acala:"000000000000000000000000ae9d7fe007b3327aa64a32824aaac52c42a6e624",Klaytn:"0000000000000000000000005b08ac39eaed75c0439fc750d9fe7e1f9dd0193f",Celo:"000000000000000000000000796dff6d74f3e27060b71255fe517bfb23c93eed",Near:"148410499d3fcda4dcfd68a1ebfcdddda16ab28326448d4aae4d2f0465cdfcb7",Moonbeam:"000000000000000000000000b1731c586ca89a23809861c6103f0b96b3f57d92",Arbitrum:"0000000000000000000000000b2402144bb366a632d14b83f244d2e0e21bd39c",Optimism:"0000000000000000000000001d68124e65fafc907325e3edbf8c4d84499daa8b",Xpla:"8f9cf727175353b17a5f574270e370776123d90fd74956ae4277962b4fdee24c",Injective:"00000000000000000000000045dbea4617971d93188eda21530bc6503d153313",Sui:"ccceeb29348f71bdd22ffef43a2a19c1f5b5e17c5cca5411529120182672ade5",Base:"0000000000000000000000008d2de8d2f73f1f4cab472ac9a881c9b123c79627",Scroll:"00000000000000000000000024850c6f61C438823F01B7A3BF2B89B72174Fa9d",Mantle:"00000000000000000000000024850c6f61C438823F01B7A3BF2B89B72174Fa9d",Blast:"00000000000000000000000024850c6f61C438823F01B7A3BF2B89B72174Fa9d",Xlayer:"0000000000000000000000005537857664B0f9eFe38C9f320F75fEf23234D904",Sei:"86c5fd957e2db8389553e1728f9c27964b22a8154091ccba54d75f4b10c61f5e",Wormchain:"aeb534c45c3049d380b9d9b966f9895f53abd4301bfaff407fa09dea8ae7a924"};const et=(ot,it)=>{var st;return((st=s.TOKEN_BRIDGE_EMITTERS[(0,j.toChain)(ot)])==null?void 0:st.toLowerCase())===it.toLowerCase()};s.isTokenBridgeEmitter=et,s.NFT_BRIDGE_EMITTERS={Solana:"0def15a24423e1edd1a5ab16f557b9060303ddbab8c803d2ee48f4b78a1cfd6b",Ethereum:"0000000000000000000000006ffd7ede62328b3af38fcd61461bbfc52f5651fe",Bsc:"0000000000000000000000005a58505a96d1dbf8df91cb21b54419fc36e93fde",Polygon:"00000000000000000000000090bbd86a6fe93d3bc3ed6335935447e75fab7fcf",Avalanche:"000000000000000000000000f7b6737ca9c4e08ae573f75a97b73d7a813f5de5",Oasis:"00000000000000000000000004952d522ff217f40b5ef3cbf659eca7b952a6c1",Aurora:"0000000000000000000000006dcc0484472523ed9cdc017f711bcbf909789284",Fantom:"000000000000000000000000a9c7119abda80d4a4e0c06c8f4d8cf5893234535",Karura:"000000000000000000000000b91e3638f82a1facb28690b37e3aae45d2c33808",Acala:"000000000000000000000000b91e3638f82a1facb28690b37e3aae45d2c33808",Klaytn:"0000000000000000000000003c3c561757baa0b78c5c025cdeaa4ee24c1dffef",Celo:"000000000000000000000000a6a377d75ca5c9052c9a77ed1e865cc25bd97bf3",Moonbeam:"000000000000000000000000453cfbe096c0f8d763e8c5f24b441097d577bde2",Arbitrum:"0000000000000000000000003dd14d553cfd986eac8e3bddf629d82073e188c8",Optimism:"000000000000000000000000fe8cd454b4a1ca468b57d79c0cc77ef5b6f64585",Aptos:"0000000000000000000000000000000000000000000000000000000000000005",Base:"000000000000000000000000da3adc6621b2677bef9ad26598e6939cf0d92f88"};const tt=(ot,it)=>{var st;return((st=s.NFT_BRIDGE_EMITTERS[(0,j.toChain)(ot)])==null?void 0:st.toLowerCase())===it.toLowerCase()};s.isNFTBridgeEmitter=tt,s.CIRCLE_INTEGRATION_EMITTERS={Ethereum:"000000000000000000000000aada05bd399372f0b0463744c09113c137636f6a",Avalanche:"00000000000000000000000009fb06a271faff70a651047395aaeb6265265f13",Optimism:"0000000000000000000000002703483b1a5a7c577e8680de9df8be03c6f30e3c",Arbitrum:"0000000000000000000000002703483b1a5a7c577e8680de9df8be03c6f30e3c",Base:"00000000000000000000000003faBB06Fa052557143dC28eFCFc63FC12843f1D",Polygon:"0000000000000000000000000FF28217dCc90372345954563486528aa865cDd6"};const nt=(ot,it)=>{var st;return((st=s.CIRCLE_INTEGRATION_EMITTERS[(0,j.toChain)(ot)])==null?void 0:st.toLowerCase())===it.toLowerCase()};s.isCircleIntegrationEmitter=nt,s.CIRCLE_DOMAIN_TO_CHAIN_ID={0:(0,j.chainToChainId)("Ethereum"),1:(0,j.chainToChainId)("Avalanche"),2:(0,j.chainToChainId)("Optimism"),3:(0,j.chainToChainId)("Arbitrum"),6:(0,j.chainToChainId)("Base"),7:(0,j.chainToChainId)("Polygon")},s.ACCOUNTANT_CONTRACT_ADDRESS="wormhole14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9srrg465",s.NTT_ACCOUNTANT_CONTRACT_ADDRESS_MAINNET="wormhole1mc23vtzxh46e63vq22e8cnv23an06akvkqws04kghkrxrauzpgwq2hmwm7",s.NTT_ACCOUNTANT_CONTRACT_ADDRESS_TESTNET="wormhole169tvyx49zmjqhlv7mzwj8j2weprascc0jq3rdglw9pynldqx34nscvhc7k",s.GUARDIAN_SET_4=[{pubkey:"0x5893B5A76c3f739645648885bDCcC06cd70a3Cd3",name:"RockawayX"},{pubkey:"0xfF6CB952589BDE862c25Ef4392132fb9D4A42157",name:"Staked"},{pubkey:"0x114De8460193bdf3A2fCf81f86a09765F4762fD1",name:"Figment"},{pubkey:"0x107A0086b32d7A0977926A205131d8731D39cbEB",name:"ChainodeTech"},{pubkey:"0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2",name:"Inotel"},{pubkey:"0x11b39756C042441BE6D8650b69b54EbE715E2343",name:"HashQuark"},{pubkey:"0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd",name:"Chainlayer"},{pubkey:"0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20",name:"xLabs"},{pubkey:"0x74a3bf913953D695260D88BC1aA25A4eeE363ef0",name:"Forbole"},{pubkey:"0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e",name:"Staking Fund"},{pubkey:"0xAF45Ced136b9D9e24903464AE889F5C8a723FC14",name:"MoonletWallet"},{pubkey:"0xf93124b7c738843CBB89E864c862c38cddCccF95",name:"P2P Validator"},{pubkey:"0xD2CC37A4dc036a8D232b48f62cDD4731412f4890",name:"01Node"},{pubkey:"0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811",name:"MCF"},{pubkey:"0x71AA1BE1D36CaFE3867910F99C09e347899C19C3",name:"Everstake"},{pubkey:"0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf",name:"Chorus One"},{pubkey:"0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8",name:"Syncnode"},{pubkey:"0x5E1487F35515d02A92753504a8D75471b9f49EdB",name:"Triton"},{pubkey:"0x6FbEBc898F403E4773E95feB15E80C9A99c8348d",name:"Staking Facilities"}],s.STANDBY_GUARDIANS=[{pubkey:"0x68c16a92903c4c74ffddc730582ba53d967d3dac",name:"Google Cloud"}],s.TVL_TOKEN_DENYLIST={[(0,j.chainToChainId)("Fantom")]:["0x5b2af7fd27e2ea14945c82dd254c79d3ed34685e"]};const rt=(ot,it)=>{var st;return((st=s.TVL_TOKEN_DENYLIST[ot])==null?void 0:st.includes(it.toLowerCase()))??!1};s.isTokenDenylisted=rt})(consts);var explorer={},safeBuffer={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(s,j){var $=buffer,_e=$.Buffer;function et(nt,rt){for(var ot in nt)rt[ot]=nt[ot]}_e.from&&_e.alloc&&_e.allocUnsafe&&_e.allocUnsafeSlow?s.exports=$:(et($,j),j.Buffer=tt);function tt(nt,rt,ot){return _e(nt,rt,ot)}tt.prototype=Object.create(_e.prototype),et(_e,tt),tt.from=function(nt,rt,ot){if(typeof nt=="number")throw new TypeError("Argument must not be a number");return _e(nt,rt,ot)},tt.alloc=function(nt,rt,ot){if(typeof nt!="number")throw new TypeError("Argument must be a number");var it=_e(nt);return rt!==void 0?typeof ot=="string"?it.fill(rt,ot):it.fill(rt):it.fill(0),it},tt.allocUnsafe=function(nt){if(typeof nt!="number")throw new TypeError("Argument must be a number");return _e(nt)},tt.allocUnsafeSlow=function(nt){if(typeof nt!="number")throw new TypeError("Argument must be a number");return $.SlowBuffer(nt)}})(safeBuffer,safeBuffer.exports);var safeBufferExports=safeBuffer.exports,_Buffer=safeBufferExports.Buffer;function base(s){if(s.length>=255)throw new TypeError("Alphabet too long");for(var j=new Uint8Array(256),$=0;$>>0,pt=new Uint8Array(mt);gt!==yt;){for(var xt=lt[gt],Ct=0,Dt=mt-1;(xt!==0||Ct>>0,pt[Dt]=xt%nt>>>0,xt=xt/nt>>>0;if(xt!==0)throw new Error("Non-zero carry");ft=Ct,gt++}for(var wt=mt-ft;wt!==mt&&pt[wt]===0;)wt++;for(var kt=rt.repeat(dt);wt>>0,mt=new Uint8Array(yt);lt[dt];){var pt=j[lt.charCodeAt(dt)];if(pt===255)return;for(var xt=0,Ct=yt-1;(pt!==0||xt>>0,mt[Ct]=pt%256>>>0,pt=pt/256>>>0;if(pt!==0)throw new Error("Non-zero carry");gt=xt,dt++}for(var Dt=yt-gt;Dt!==yt&&mt[Dt]===0;)Dt++;var wt=_Buffer.allocUnsafe(ft+(yt-Dt));wt.fill(0,0,ft);for(var kt=ft;Dt!==yt;)wt[kt++]=mt[Dt++];return wt}function ct(lt){var dt=at(lt);if(dt)return dt;throw new Error("Non-base"+nt+" character")}return{encode:st,decodeUnsafe:at,decode:ct}}var src=base,basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",bs58=basex(ALPHABET$1);const base58=getDefaultExportFromCjs$1(bs58);var define_process_env_default={},__importDefault$4=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(explorer,"__esModule",{value:!0});explorer.getExplorerTxHash=explorer.explorerVaa=explorer.explorerTx=explorer.explorerBlock=void 0;const sdk_base_1$e=require$$0$8,bs58_1$2=__importDefault$4(bs58),buffer_1$2=buffer,explorerBlock=(s,j,$)=>s==="Mainnet"?j===(0,sdk_base_1$e.chainToChainId)("Solana")?`https://solana.fm/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Ethereum")?`https://etherscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Terra")?`https://finder.terra.money/columbus-5/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Bsc")?`https://bscscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Polygon")?`https://polygonscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Avalanche")?`https://snowtrace.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Oasis")?`https://explorer.emerald.oasis.dev/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Algorand")?`https://app.dappflow.org/explorer/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Fantom")?`https://ftmscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Karura")?`https://blockscout.karura.network/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Acala")?`https://blockscout.acala.network/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Klaytn")?`https://scope.klaytn.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Celo")?`https://explorer.celo.org/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Near")?`https://nearblocks.io/blocks/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Moonbeam")?`https://moonscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Terra2")?`https://finder.terra.money/phoenix-1/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Injective")?`https://explorer.injective.network/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sui")?`https://suiexplorer.com/checkpoint/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Aptos")?`https://explorer.aptoslabs.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Arbitrum")?`https://arbiscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Optimism")?`https://optimistic.etherscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xpla")?`https://explorer.xpla.io/mainnet/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Base")?`https://basescan.org/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sei")?`https://www.seiscan.app/pacific-1/blocks/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Scroll")?`https://scrollscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Mantle")?`https://explorer.mantle.xyz/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Blast")?`https://blastscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xlayer")?`https://www.oklink.com/xlayer/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Linea")?`https://lineascan.build/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Berachain")?`https://beratrail.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Snaxchain")?`https://snaxchain.io/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Wormchain")?`https://bigdipper.live/wormhole/blocks/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Worldchain")?`https://worldscan.org/block/${$}`:"":j===(0,sdk_base_1$e.chainToChainId)("Solana")?`https://explorer.solana.com/${$}?cluster=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Ethereum")?`https://sepolia.etherscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Bsc")?`https://testnet.bscscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Polygon")?`https://mumbai.polygonscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Avalanche")?`https://testnet.snowtrace.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Oasis")?`https://testnet.oasisscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Algorand")?`https://app.dappflow.org/explorer/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Fantom")?`https://testnet.ftmscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Acala")?`https://blockscout.mandala.aca-staging.network/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Klaytn")?`https://baobab.klaytnscope.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Celo")?`https://alfajores.celoscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Moonbeam")?`https://moonbase.moonscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sui")?`https://suiexplorer.com/checkpoint/${$}?network=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Aptos")?`https://explorer.aptoslabs.com/block/${$}?network=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Arbitrum")?`https://sepolia.arbiscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Optimism")?`https://sepolia-optimism.etherscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xpla")?`https://explorer.xpla.io/testnet/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Base")?`https://goerli.basescan.org/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sei")?`https://www.seiscan.app/atlantic-2/blocks/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Scroll")?`https://sepolia.scrollscan.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Mantle")?`https://explorer.sepolia.mantle.xyz/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Blast")?`https://testnet.blastscan.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xlayer")?`https://www.oklink.com/xlayer-test/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Linea")?`https://sepolia.lineascan.build/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Berachain")?`https://bartio.beratrail.io/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Snaxchain")?`https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Unichain")?`https://unichain-sepolia.blockscout.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Worldchain")?`https://worldchain-sepolia.explorer.alchemy.com/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("MonadDevnet")?`${define_process_env_default.MONAD_DEVNET_EXPLORER_URL}/block/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Ink")?`https://explorer-sepolia.inkonchain.com/block/${$}`:"";explorer.explorerBlock=explorerBlock;const explorerTx=(s,j,$)=>s==="Mainnet"?j===(0,sdk_base_1$e.chainToChainId)("Solana")?`https://solana.fm/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Ethereum")?`https://etherscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Terra")?`https://finder.terra.money/columbus-5/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Bsc")?`https://bscscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Polygon")?`https://polygonscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Avalanche")?`https://snowtrace.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Oasis")?`https://explorer.emerald.oasis.dev/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Algorand")?`https://app.dappflow.org/explorer/transaction/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Fantom")?`https://ftmscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Karura")?`https://blockscout.karura.network/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Acala")?`https://blockscout.acala.network/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Klaytn")?`https://scope.klaytn.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Celo")?`https://explorer.celo.org/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Near")?`https://explorer.near.org/transactions/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Moonbeam")?`https://moonscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Terra2")?`https://finder.terra.money/phoenix-1/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Injective")?`https://explorer.injective.network/transaction/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sui")?`https://suiexplorer.com/txblock/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Aptos")?`https://explorer.aptoslabs.com/txn/${$}?network=mainnet`:j===(0,sdk_base_1$e.chainToChainId)("Arbitrum")?`https://arbiscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Optimism")?`https://optimistic.etherscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xpla")?`https://explorer.xpla.io/mainnet/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Base")?`https://basescan.org/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sei")?`https://www.seiscan.app/pacific-1/txs/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Scroll")?`https://scrollscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Mantle")?`https://explorer.mantle.xyz/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Blast")?`https://blastscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xlayer")?`https://www.oklink.com/xlayer/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Linea")?`https://lineascan.build/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Berachain")?`https://bartio.beratrail.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Snaxchain")?`https://snaxchain.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Wormchain")?`https://bigdipper.live/wormhole/transactions/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Worldchain")?`https://worldscan.org/tx/${$}`:"":j===(0,sdk_base_1$e.chainToChainId)("Solana")?`https://solscan.io/txs/${$}?cluster=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Ethereum")?`https://sepolia.etherscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Bsc")?`https://testnet.bscscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Polygon")?`https://mumbai.polygonscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Avalanche")?`https://testnet.snowtrace.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Oasis")?`https://testnet.oasisscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Algorand")?`https://app.dappflow.org/explorer/transaction/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Fantom")?`https://testnet.ftmscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Acala")?`https://blockscout.mandala.aca-staging.network/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Klaytn")?`https://baobab.klaytnscope.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Celo")?`https://alfajores.celoscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Moonbeam")?`https://moonbase.moonscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sui")?`https://suiexplorer.com/txblock/${$}?network=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Aptos")?`https://explorer.aptoslabs.com/txn/${$}?network=testnet`:j===(0,sdk_base_1$e.chainToChainId)("Arbitrum")?`https://sepolia.arbiscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Optimism")?`https://sepolia-optimism.etherscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xpla")?`https://explorer.xpla.io/testnet/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Base")?`https://goerli.basescan.org/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Sei")?`https://www.seiscan.app/atlantic-2/txs/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Scroll")?`https://sepolia.scrollscan.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Mantle")?`https://explorer.sepolia.mantle.xyz/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Blast")?`https://testnet.blastscan.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Xlayer")?`https://www.oklink.com/xlayer-test/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Linea")?`https://sepolia.lineascan.build/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Berachain")?`https://bartio.beratrail.io/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Snaxchain")?`https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Unichain")?`https://unichain-sepolia.blockscout.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Worldchain")?`https://worldchain-sepolia.explorer.alchemy.com/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("MonadDevnet")?`${define_process_env_default.MONAD_DEVNET_EXPLORER_URL}/tx/${$}`:j===(0,sdk_base_1$e.chainToChainId)("Ink")?`https://explorer-sepolia.inkonchain.com/tx/${$}`:"";explorer.explorerTx=explorerTx;const explorerVaa=(s,j)=>s==="Mainnet"?`https://wormholescan.io/#/tx/${j}`:`https://wormholescan.io/#/tx/${j}?network=TESTNET`;explorer.explorerVaa=explorerVaa;const getExplorerTxHash=(s,j,$)=>{let _e="";const et=(0,sdk_base_1$e.chainToPlatform)((0,sdk_base_1$e.chainIdToChain)(j));if(et==="Cosmwasm")_e=$.slice(2);else if(et==="Sui"||et==="Solana"){const tt=buffer_1$2.Buffer.from($.slice(2),"hex");_e=bs58_1$2.default.encode(tt)}else _e=$;return _e};explorer.getExplorerTxHash=getExplorerTxHash;var solana={},sha512={},_md={},_assert={};Object.defineProperty(_assert,"__esModule",{value:!0});_assert.output=_assert.exists=_assert.hash=_assert.bytes=_assert.bool=_assert.number=_assert.isBytes=void 0;function number$2(s){if(!Number.isSafeInteger(s)||s<0)throw new Error(`positive integer expected, not ${s}`)}_assert.number=number$2;function bool(s){if(typeof s!="boolean")throw new Error(`boolean expected, not ${s}`)}_assert.bool=bool;function isBytes$4(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}_assert.isBytes=isBytes$4;function bytes$1(s,...j){if(!isBytes$4(s))throw new Error("Uint8Array expected");if(j.length>0&&!j.includes(s.length))throw new Error(`Uint8Array expected of length ${j}, not of length=${s.length}`)}_assert.bytes=bytes$1;function hash$1(s){if(typeof s!="function"||typeof s.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$2(s.outputLen),number$2(s.blockLen)}_assert.hash=hash$1;function exists$1(s,j=!0){if(s.destroyed)throw new Error("Hash instance has been destroyed");if(j&&s.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists$1;function output$1(s,j){bytes$1(s);const $=j.outputLen;if(s.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}_assert.output=output$1;const assert$2={number:number$2,bool,bytes:bytes$1,hash:hash$1,exists:exists$1,output:output$1};_assert.default=assert$2;var utils$7={},crypto$2={};Object.defineProperty(crypto$2,"__esModule",{value:!0});crypto$2.crypto=void 0;crypto$2.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;(function(s){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(s,"__esModule",{value:!0}),s.randomBytes=s.wrapXOFConstructorWithOpts=s.wrapConstructorWithOpts=s.wrapConstructor=s.checkOpts=s.Hash=s.concatBytes=s.toBytes=s.utf8ToBytes=s.asyncLoop=s.nextTick=s.hexToBytes=s.bytesToHex=s.byteSwap32=s.byteSwapIfBE=s.byteSwap=s.isLE=s.rotl=s.rotr=s.createView=s.u32=s.u8=s.isBytes=void 0;const j=crypto$2,$=_assert;function _e(Pt){return Pt instanceof Uint8Array||Pt!=null&&typeof Pt=="object"&&Pt.constructor.name==="Uint8Array"}s.isBytes=_e;const et=Pt=>new Uint8Array(Pt.buffer,Pt.byteOffset,Pt.byteLength);s.u8=et;const tt=Pt=>new Uint32Array(Pt.buffer,Pt.byteOffset,Math.floor(Pt.byteLength/4));s.u32=tt;const nt=Pt=>new DataView(Pt.buffer,Pt.byteOffset,Pt.byteLength);s.createView=nt;const rt=(Pt,Nt)=>Pt<<32-Nt|Pt>>>Nt;s.rotr=rt;const ot=(Pt,Nt)=>Pt<>>32-Nt>>>0;s.rotl=ot,s.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const it=Pt=>Pt<<24&4278190080|Pt<<8&16711680|Pt>>>8&65280|Pt>>>24&255;s.byteSwap=it,s.byteSwapIfBE=s.isLE?Pt=>Pt:Pt=>(0,s.byteSwap)(Pt);function st(Pt){for(let Nt=0;NtNt.toString(16).padStart(2,"0"));function ct(Pt){(0,$.bytes)(Pt);let Nt="";for(let ht=0;ht=lt._0&&Pt<=lt._9)return Pt-lt._0;if(Pt>=lt._A&&Pt<=lt._F)return Pt-(lt._A-10);if(Pt>=lt._a&&Pt<=lt._f)return Pt-(lt._a-10)}function ft(Pt){if(typeof Pt!="string")throw new Error("hex string expected, got "+typeof Pt);const Nt=Pt.length,ht=Nt/2;if(Nt%2)throw new Error("padded hex string expected, got unpadded hex of length "+Nt);const bt=new Uint8Array(ht);for(let St=0,vt=0;St{};s.nextTick=gt;async function yt(Pt,Nt,ht){let bt=Date.now();for(let St=0;St=0&&vtPt().update(pt(bt)).digest(),ht=Pt();return Nt.outputLen=ht.outputLen,Nt.blockLen=ht.blockLen,Nt.create=()=>Pt(),Nt}s.wrapConstructor=kt;function zt(Pt){const Nt=(bt,St)=>Pt(St).update(pt(bt)).digest(),ht=Pt({});return Nt.outputLen=ht.outputLen,Nt.blockLen=ht.blockLen,Nt.create=bt=>Pt(bt),Nt}s.wrapConstructorWithOpts=zt;function Ot(Pt){const Nt=(bt,St)=>Pt(St).update(pt(bt)).digest(),ht=Pt({});return Nt.outputLen=ht.outputLen,Nt.blockLen=ht.blockLen,Nt.create=bt=>Pt(bt),Nt}s.wrapXOFConstructorWithOpts=Ot;function Ft(Pt=32){if(j.crypto&&typeof j.crypto.getRandomValues=="function")return j.crypto.getRandomValues(new Uint8Array(Pt));throw new Error("crypto.getRandomValues must be defined")}s.randomBytes=Ft})(utils$7);Object.defineProperty(_md,"__esModule",{value:!0});_md.HashMD=_md.Maj=_md.Chi=void 0;const _assert_js_1=_assert,utils_js_1$9=utils$7;function setBigUint64$1(s,j,$,_e){if(typeof s.setBigUint64=="function")return s.setBigUint64(j,$,_e);const et=BigInt(32),tt=BigInt(4294967295),nt=Number($>>et&tt),rt=Number($&tt),ot=_e?4:0,it=_e?0:4;s.setUint32(j+ot,nt,_e),s.setUint32(j+it,rt,_e)}const Chi$1=(s,j,$)=>s&j^~s&$;_md.Chi=Chi$1;const Maj$1=(s,j,$)=>s&j^s&$^j&$;_md.Maj=Maj$1;let HashMD$1=class extends utils_js_1$9.Hash{constructor(j,$,_e,et){super(),this.blockLen=j,this.outputLen=$,this.padOffset=_e,this.isLE=et,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(j),this.view=(0,utils_js_1$9.createView)(this.buffer)}update(j){(0,_assert_js_1.exists)(this);const{view:$,buffer:_e,blockLen:et}=this;j=(0,utils_js_1$9.toBytes)(j);const tt=j.length;for(let nt=0;ntet-nt&&(this.process(_e,0),nt=0);for(let at=nt;atst.length)throw new Error("_sha2: outputLen bigger than state");for(let at=0;at>_32n$1&U32_MASK64$1)}:{h:Number(s>>_32n$1&U32_MASK64$1)|0,l:Number(s&U32_MASK64$1)|0}}_u64.fromBig=fromBig$1;function split$1(s,j=!1){let $=new Uint32Array(s.length),_e=new Uint32Array(s.length);for(let et=0;etBigInt(s>>>0)<<_32n$1|BigInt(j>>>0);_u64.toBig=toBig;const shrSH=(s,j,$)=>s>>>$;_u64.shrSH=shrSH;const shrSL=(s,j,$)=>s<<32-$|j>>>$;_u64.shrSL=shrSL;const rotrSH=(s,j,$)=>s>>>$|j<<32-$;_u64.rotrSH=rotrSH;const rotrSL=(s,j,$)=>s<<32-$|j>>>$;_u64.rotrSL=rotrSL;const rotrBH=(s,j,$)=>s<<64-$|j>>>$-32;_u64.rotrBH=rotrBH;const rotrBL=(s,j,$)=>s>>>$-32|j<<64-$;_u64.rotrBL=rotrBL;const rotr32H=(s,j)=>j;_u64.rotr32H=rotr32H;const rotr32L=(s,j)=>s;_u64.rotr32L=rotr32L;const rotlSH$1=(s,j,$)=>s<<$|j>>>32-$;_u64.rotlSH=rotlSH$1;const rotlSL$1=(s,j,$)=>j<<$|s>>>32-$;_u64.rotlSL=rotlSL$1;const rotlBH$1=(s,j,$)=>j<<$-32|s>>>64-$;_u64.rotlBH=rotlBH$1;const rotlBL$1=(s,j,$)=>s<<$-32|j>>>64-$;_u64.rotlBL=rotlBL$1;function add(s,j,$,_e){const et=(j>>>0)+(_e>>>0);return{h:s+$+(et/2**32|0)|0,l:et|0}}_u64.add=add;const add3L=(s,j,$)=>(s>>>0)+(j>>>0)+($>>>0);_u64.add3L=add3L;const add3H=(s,j,$,_e)=>j+$+_e+(s/2**32|0)|0;_u64.add3H=add3H;const add4L=(s,j,$,_e)=>(s>>>0)+(j>>>0)+($>>>0)+(_e>>>0);_u64.add4L=add4L;const add4H=(s,j,$,_e,et)=>j+$+_e+et+(s/2**32|0)|0;_u64.add4H=add4H;const add5L=(s,j,$,_e,et)=>(s>>>0)+(j>>>0)+($>>>0)+(_e>>>0)+(et>>>0);_u64.add5L=add5L;const add5H=(s,j,$,_e,et,tt)=>j+$+_e+et+tt+(s/2**32|0)|0;_u64.add5H=add5H;const u64$1={fromBig:fromBig$1,split:split$1,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH:rotlSH$1,rotlSL:rotlSL$1,rotlBH:rotlBH$1,rotlBL:rotlBL$1,add,add3L,add3H,add4L,add4H,add5H,add5L};_u64.default=u64$1;Object.defineProperty(sha512,"__esModule",{value:!0});sha512.sha384=sha512.sha512_256=sha512.sha512_224=sha512_1=sha512.sha512=sha512.SHA512=void 0;const _md_js_1=_md,_u64_js_1=_u64,utils_js_1$8=utils$7,[SHA512_Kh,SHA512_Kl]=_u64_js_1.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(s=>BigInt(s))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends _md_js_1.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:j,Al:$,Bh:_e,Bl:et,Ch:tt,Cl:nt,Dh:rt,Dl:ot,Eh:it,El:st,Fh:at,Fl:ct,Gh:lt,Gl:dt,Hh:ft,Hl:gt}=this;return[j,$,_e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,ft,gt]}set(j,$,_e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,ft,gt){this.Ah=j|0,this.Al=$|0,this.Bh=_e|0,this.Bl=et|0,this.Ch=tt|0,this.Cl=nt|0,this.Dh=rt|0,this.Dl=ot|0,this.Eh=it|0,this.El=st|0,this.Fh=at|0,this.Fl=ct|0,this.Gh=lt|0,this.Gl=dt|0,this.Hh=ft|0,this.Hl=gt|0}process(j,$){for(let pt=0;pt<16;pt++,$+=4)SHA512_W_H[pt]=j.getUint32($),SHA512_W_L[pt]=j.getUint32($+=4);for(let pt=16;pt<80;pt++){const xt=SHA512_W_H[pt-15]|0,Ct=SHA512_W_L[pt-15]|0,Dt=_u64_js_1.default.rotrSH(xt,Ct,1)^_u64_js_1.default.rotrSH(xt,Ct,8)^_u64_js_1.default.shrSH(xt,Ct,7),wt=_u64_js_1.default.rotrSL(xt,Ct,1)^_u64_js_1.default.rotrSL(xt,Ct,8)^_u64_js_1.default.shrSL(xt,Ct,7),kt=SHA512_W_H[pt-2]|0,zt=SHA512_W_L[pt-2]|0,Ot=_u64_js_1.default.rotrSH(kt,zt,19)^_u64_js_1.default.rotrBH(kt,zt,61)^_u64_js_1.default.shrSH(kt,zt,6),Ft=_u64_js_1.default.rotrSL(kt,zt,19)^_u64_js_1.default.rotrBL(kt,zt,61)^_u64_js_1.default.shrSL(kt,zt,6),Pt=_u64_js_1.default.add4L(wt,Ft,SHA512_W_L[pt-7],SHA512_W_L[pt-16]),Nt=_u64_js_1.default.add4H(Pt,Dt,Ot,SHA512_W_H[pt-7],SHA512_W_H[pt-16]);SHA512_W_H[pt]=Nt|0,SHA512_W_L[pt]=Pt|0}let{Ah:_e,Al:et,Bh:tt,Bl:nt,Ch:rt,Cl:ot,Dh:it,Dl:st,Eh:at,El:ct,Fh:lt,Fl:dt,Gh:ft,Gl:gt,Hh:yt,Hl:mt}=this;for(let pt=0;pt<80;pt++){const xt=_u64_js_1.default.rotrSH(at,ct,14)^_u64_js_1.default.rotrSH(at,ct,18)^_u64_js_1.default.rotrBH(at,ct,41),Ct=_u64_js_1.default.rotrSL(at,ct,14)^_u64_js_1.default.rotrSL(at,ct,18)^_u64_js_1.default.rotrBL(at,ct,41),Dt=at<^~at&ft,wt=ct&dt^~ct>,kt=_u64_js_1.default.add5L(mt,Ct,wt,SHA512_Kl[pt],SHA512_W_L[pt]),zt=_u64_js_1.default.add5H(kt,yt,xt,Dt,SHA512_Kh[pt],SHA512_W_H[pt]),Ot=kt|0,Ft=_u64_js_1.default.rotrSH(_e,et,28)^_u64_js_1.default.rotrBH(_e,et,34)^_u64_js_1.default.rotrBH(_e,et,39),Pt=_u64_js_1.default.rotrSL(_e,et,28)^_u64_js_1.default.rotrBL(_e,et,34)^_u64_js_1.default.rotrBL(_e,et,39),Nt=_e&tt^_e&rt^tt&rt,ht=et&nt^et&ot^nt&ot;yt=ft|0,mt=gt|0,ft=lt|0,gt=dt|0,lt=at|0,dt=ct|0,{h:at,l:ct}=_u64_js_1.default.add(it|0,st|0,zt|0,Ot|0),it=rt|0,st=ot|0,rt=tt|0,ot=nt|0,tt=_e|0,nt=et|0;const bt=_u64_js_1.default.add3L(Ot,Pt,ht);_e=_u64_js_1.default.add3H(bt,zt,Ft,Nt),et=bt|0}({h:_e,l:et}=_u64_js_1.default.add(this.Ah|0,this.Al|0,_e|0,et|0)),{h:tt,l:nt}=_u64_js_1.default.add(this.Bh|0,this.Bl|0,tt|0,nt|0),{h:rt,l:ot}=_u64_js_1.default.add(this.Ch|0,this.Cl|0,rt|0,ot|0),{h:it,l:st}=_u64_js_1.default.add(this.Dh|0,this.Dl|0,it|0,st|0),{h:at,l:ct}=_u64_js_1.default.add(this.Eh|0,this.El|0,at|0,ct|0),{h:lt,l:dt}=_u64_js_1.default.add(this.Fh|0,this.Fl|0,lt|0,dt|0),{h:ft,l:gt}=_u64_js_1.default.add(this.Gh|0,this.Gl|0,ft|0,gt|0),{h:yt,l:mt}=_u64_js_1.default.add(this.Hh|0,this.Hl|0,yt|0,mt|0),this.set(_e,et,tt,nt,rt,ot,it,st,at,ct,lt,dt,ft,gt,yt,mt)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}sha512.SHA512=SHA512;class SHA512_224 extends SHA512{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class SHA512_256 extends SHA512{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class SHA384 extends SHA512{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}var sha512_1=sha512.sha512=(0,utils_js_1$8.wrapConstructor)(()=>new SHA512);sha512.sha512_224=(0,utils_js_1$8.wrapConstructor)(()=>new SHA512_224);sha512.sha512_256=(0,utils_js_1$8.wrapConstructor)(()=>new SHA512_256);sha512.sha384=(0,utils_js_1$8.wrapConstructor)(()=>new SHA384);const crypto$1=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function number$1(s){if(!Number.isSafeInteger(s)||s<0)throw new Error(`positive integer expected, not ${s}`)}function isBytes$3(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}function bytes(s,...j){if(!isBytes$3(s))throw new Error("Uint8Array expected");if(j.length>0&&!j.includes(s.length))throw new Error(`Uint8Array expected of length ${j}, not of length=${s.length}`)}function hash(s){if(typeof s!="function"||typeof s.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(s.outputLen),number$1(s.blockLen)}function exists(s,j=!0){if(s.destroyed)throw new Error("Hash instance has been destroyed");if(j&&s.finished)throw new Error("Hash#digest() has already been called")}function output(s,j){bytes(s);const $=j.outputLen;if(s.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function isBytes$2(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}const u8$1=s=>new Uint8Array(s.buffer,s.byteOffset,s.byteLength),u32$1=s=>new Uint32Array(s.buffer,s.byteOffset,Math.floor(s.byteLength/4)),createView=s=>new DataView(s.buffer,s.byteOffset,s.byteLength),rotr=(s,j)=>s<<32-j|s>>>j,rotl=(s,j)=>s<>>32-j>>>0,isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,byteSwap=s=>s<<24&4278190080|s<<8&16711680|s>>>8&65280|s>>>24&255,byteSwapIfBE=isLE?s=>s:s=>byteSwap(s);function byteSwap32(s){for(let j=0;jj.toString(16).padStart(2,"0"));function bytesToHex$2(s){bytes(s);let j="";for(let $=0;$=asciis$2._0&&s<=asciis$2._9)return s-asciis$2._0;if(s>=asciis$2._A&&s<=asciis$2._F)return s-(asciis$2._A-10);if(s>=asciis$2._a&&s<=asciis$2._f)return s-(asciis$2._a-10)}function hexToBytes$2(s){if(typeof s!="string")throw new Error("hex string expected, got "+typeof s);const j=s.length,$=j/2;if(j%2)throw new Error("padded hex string expected, got unpadded hex of length "+j);const _e=new Uint8Array($);for(let et=0,tt=0;et<$;et++,tt+=2){const nt=asciiToBase16$2(s.charCodeAt(tt)),rt=asciiToBase16$2(s.charCodeAt(tt+1));if(nt===void 0||rt===void 0){const ot=s[tt]+s[tt+1];throw new Error('hex string expected, got non-hex character "'+ot+'" at index '+tt)}_e[et]=nt*16+rt}return _e}const nextTick=async()=>{};async function asyncLoop(s,j,$){let _e=Date.now();for(let et=0;et=0&&tts().update(toBytes(_e)).digest(),$=s();return j.outputLen=$.outputLen,j.blockLen=$.blockLen,j.create=()=>s(),j}function wrapConstructorWithOpts(s){const j=(_e,et)=>s(et).update(toBytes(_e)).digest(),$=s({});return j.outputLen=$.outputLen,j.blockLen=$.blockLen,j.create=_e=>s(_e),j}function wrapXOFConstructorWithOpts(s){const j=(_e,et)=>s(et).update(toBytes(_e)).digest(),$=s({});return j.outputLen=$.outputLen,j.blockLen=$.blockLen,j.create=_e=>s(_e),j}function randomBytes(s=32){if(crypto$1&&typeof crypto$1.getRandomValues=="function")return crypto$1.getRandomValues(new Uint8Array(s));throw new Error("crypto.getRandomValues must be defined")}const utils$6=Object.freeze(Object.defineProperty({__proto__:null,Hash,asyncLoop,byteSwap,byteSwap32,byteSwapIfBE,bytesToHex:bytesToHex$2,checkOpts,concatBytes:concatBytes$2,createView,hexToBytes:hexToBytes$2,isBytes:isBytes$2,isLE,nextTick,randomBytes,rotl,rotr,toBytes,u32:u32$1,u8:u8$1,utf8ToBytes:utf8ToBytes$2,wrapConstructor,wrapConstructorWithOpts,wrapXOFConstructorWithOpts},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$a=BigInt(0),_1n$c=BigInt(1),_2n$8=BigInt(2);function isBytes$1(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}function abytes$1(s){if(!isBytes$1(s))throw new Error("Uint8Array expected")}function abool(s,j){if(typeof j!="boolean")throw new Error(`${s} must be valid boolean, got "${j}".`)}const hexes$1=Array.from({length:256},(s,j)=>j.toString(16).padStart(2,"0"));function bytesToHex$1(s){abytes$1(s);let j="";for(let $=0;$=asciis$1._0&&s<=asciis$1._9)return s-asciis$1._0;if(s>=asciis$1._A&&s<=asciis$1._F)return s-(asciis$1._A-10);if(s>=asciis$1._a&&s<=asciis$1._f)return s-(asciis$1._a-10)}function hexToBytes$1(s){if(typeof s!="string")throw new Error("hex string expected, got "+typeof s);const j=s.length,$=j/2;if(j%2)throw new Error("padded hex string expected, got unpadded hex of length "+j);const _e=new Uint8Array($);for(let et=0,tt=0;et<$;et++,tt+=2){const nt=asciiToBase16$1(s.charCodeAt(tt)),rt=asciiToBase16$1(s.charCodeAt(tt+1));if(nt===void 0||rt===void 0){const ot=s[tt]+s[tt+1];throw new Error('hex string expected, got non-hex character "'+ot+'" at index '+tt)}_e[et]=nt*16+rt}return _e}function bytesToNumberBE$1(s){return hexToNumber$1(bytesToHex$1(s))}function bytesToNumberLE$1(s){return abytes$1(s),hexToNumber$1(bytesToHex$1(Uint8Array.from(s).reverse()))}function numberToBytesBE$1(s,j){return hexToBytes$1(s.toString(16).padStart(j*2,"0"))}function numberToBytesLE$1(s,j){return numberToBytesBE$1(s,j).reverse()}function numberToVarBytesBE$1(s){return hexToBytes$1(numberToHexUnpadded$1(s))}function ensureBytes$1(s,j,$){let _e;if(typeof j=="string")try{_e=hexToBytes$1(j)}catch(tt){throw new Error(`${s} must be valid hex string, got "${j}". Cause: ${tt}`)}else if(isBytes$1(j))_e=Uint8Array.from(j);else throw new Error(`${s} must be hex string or Uint8Array`);const et=_e.length;if(typeof $=="number"&&et!==$)throw new Error(`${s} expected ${$} bytes, got ${et}`);return _e}function concatBytes$1(...s){let j=0;for(let _e=0;_etypeof s=="bigint"&&_0n$a<=s;function inRange$1(s,j,$){return isPosBig(s)&&isPosBig(j)&&isPosBig($)&&j<=s&&s<$}function aInRange(s,j,$,_e){if(!inRange$1(j,$,_e))throw new Error(`expected valid ${s}: ${$} <= n < ${_e}, got ${typeof j} ${j}`)}function bitLen$1(s){let j;for(j=0;s>_0n$a;s>>=_1n$c,j+=1);return j}function bitGet$1(s,j){return s>>BigInt(j)&_1n$c}function bitSet$1(s,j,$){return s|($?_1n$c:_0n$a)<(_2n$8<new Uint8Array(s),u8fr$1=s=>Uint8Array.from(s);function createHmacDrbg$1(s,j,$){if(typeof s!="number"||s<2)throw new Error("hashLen must be a number");if(typeof j!="number"||j<2)throw new Error("qByteLen must be a number");if(typeof $!="function")throw new Error("hmacFn must be a function");let _e=u8n$1(s),et=u8n$1(s),tt=0;const nt=()=>{_e.fill(1),et.fill(0),tt=0},rt=(...at)=>$(et,_e,...at),ot=(at=u8n$1())=>{et=rt(u8fr$1([0]),at),_e=rt(),at.length!==0&&(et=rt(u8fr$1([1]),at),_e=rt())},it=()=>{if(tt++>=1e3)throw new Error("drbg: tried 1000 values");let at=0;const ct=[];for(;at{nt(),ot(at);let lt;for(;!(lt=ct(it()));)ot();return nt(),lt}}const validatorFns$1={bigint:s=>typeof s=="bigint",function:s=>typeof s=="function",boolean:s=>typeof s=="boolean",string:s=>typeof s=="string",stringOrUint8Array:s=>typeof s=="string"||isBytes$1(s),isSafeInteger:s=>Number.isSafeInteger(s),array:s=>Array.isArray(s),field:(s,j)=>j.Fp.isValid(s),hash:s=>typeof s=="function"&&Number.isSafeInteger(s.outputLen)};function validateObject$1(s,j,$={}){const _e=(et,tt,nt)=>{const rt=validatorFns$1[tt];if(typeof rt!="function")throw new Error(`Invalid validator "${tt}", expected function`);const ot=s[et];if(!(nt&&ot===void 0)&&!rt(ot,s))throw new Error(`Invalid param ${String(et)}=${ot} (${typeof ot}), expected ${tt}`)};for(const[et,tt]of Object.entries(j))_e(et,tt,!1);for(const[et,tt]of Object.entries($))_e(et,tt,!0);return s}const notImplemented=()=>{throw new Error("not implemented")};function memoized(s){const j=new WeakMap;return($,..._e)=>{const et=j.get($);if(et!==void 0)return et;const tt=s($,..._e);return j.set($,tt),tt}}const ut$1=Object.freeze(Object.defineProperty({__proto__:null,aInRange,abool,abytes:abytes$1,bitGet:bitGet$1,bitLen:bitLen$1,bitMask:bitMask$1,bitSet:bitSet$1,bytesToHex:bytesToHex$1,bytesToNumberBE:bytesToNumberBE$1,bytesToNumberLE:bytesToNumberLE$1,concatBytes:concatBytes$1,createHmacDrbg:createHmacDrbg$1,ensureBytes:ensureBytes$1,equalBytes:equalBytes$1,hexToBytes:hexToBytes$1,hexToNumber:hexToNumber$1,inRange:inRange$1,isBytes:isBytes$1,memoized,notImplemented,numberToBytesBE:numberToBytesBE$1,numberToBytesLE:numberToBytesLE$1,numberToHexUnpadded:numberToHexUnpadded$1,numberToVarBytesBE:numberToVarBytesBE$1,utf8ToBytes:utf8ToBytes$1,validateObject:validateObject$1},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$9=BigInt(0),_1n$b=BigInt(1),_2n$7=BigInt(2),_3n$2=BigInt(3),_4n$1=BigInt(4),_5n$2=BigInt(5),_8n$4=BigInt(8);BigInt(9);BigInt(16);function mod$1(s,j){const $=s%j;return $>=_0n$9?$:j+$}function pow$1(s,j,$){if($<=_0n$9||j<_0n$9)throw new Error("Expected power/modulo > 0");if($===_1n$b)return _0n$9;let _e=_1n$b;for(;j>_0n$9;)j&_1n$b&&(_e=_e*s%$),s=s*s%$,j>>=_1n$b;return _e}function pow2$1(s,j,$){let _e=s;for(;j-- >_0n$9;)_e*=_e,_e%=$;return _e}function invert$1(s,j){if(s===_0n$9||j<=_0n$9)throw new Error(`invert: expected positive integers, got n=${s} mod=${j}`);let $=mod$1(s,j),_e=j,et=_0n$9,tt=_1n$b;for(;$!==_0n$9;){const rt=_e/$,ot=_e%$,it=et-tt*rt;_e=$,$=ot,et=tt,tt=it}if(_e!==_1n$b)throw new Error("invert: does not exist");return mod$1(et,j)}function tonelliShanks$1(s){const j=(s-_1n$b)/_2n$7;let $,_e,et;for($=s-_1n$b,_e=0;$%_2n$7===_0n$9;$/=_2n$7,_e++);for(et=_2n$7;et(mod$1(s,j)&_1n$b)===_1n$b,FIELD_FIELDS$1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField$1(s){const j={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},$=FIELD_FIELDS$1.reduce((_e,et)=>(_e[et]="function",_e),j);return validateObject$1(s,$)}function FpPow$1(s,j,$){if($<_0n$9)throw new Error("Expected power > 0");if($===_0n$9)return s.ONE;if($===_1n$b)return j;let _e=s.ONE,et=j;for(;$>_0n$9;)$&_1n$b&&(_e=s.mul(_e,et)),et=s.sqr(et),$>>=_1n$b;return _e}function FpInvertBatch$1(s,j){const $=new Array(j.length),_e=j.reduce((tt,nt,rt)=>s.is0(nt)?tt:($[rt]=tt,s.mul(tt,nt)),s.ONE),et=s.inv(_e);return j.reduceRight((tt,nt,rt)=>s.is0(nt)?tt:($[rt]=s.mul(tt,$[rt]),s.mul(tt,nt)),et),$}function nLength$1(s,j){const $=j!==void 0?j:s.toString(2).length,_e=Math.ceil($/8);return{nBitLength:$,nByteLength:_e}}function Field$1(s,j,$=!1,_e={}){if(s<=_0n$9)throw new Error(`Expected Field ORDER > 0, got ${s}`);const{nBitLength:et,nByteLength:tt}=nLength$1(s,j);if(tt>2048)throw new Error("Field lengths over 2048 bytes are not supported");const nt=FpSqrt$1(s),rt=Object.freeze({ORDER:s,BITS:et,BYTES:tt,MASK:bitMask$1(et),ZERO:_0n$9,ONE:_1n$b,create:ot=>mod$1(ot,s),isValid:ot=>{if(typeof ot!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof ot}`);return _0n$9<=ot&&otot===_0n$9,isOdd:ot=>(ot&_1n$b)===_1n$b,neg:ot=>mod$1(-ot,s),eql:(ot,it)=>ot===it,sqr:ot=>mod$1(ot*ot,s),add:(ot,it)=>mod$1(ot+it,s),sub:(ot,it)=>mod$1(ot-it,s),mul:(ot,it)=>mod$1(ot*it,s),pow:(ot,it)=>FpPow$1(rt,ot,it),div:(ot,it)=>mod$1(ot*invert$1(it,s),s),sqrN:ot=>ot*ot,addN:(ot,it)=>ot+it,subN:(ot,it)=>ot-it,mulN:(ot,it)=>ot*it,inv:ot=>invert$1(ot,s),sqrt:_e.sqrt||(ot=>nt(rt,ot)),invertBatch:ot=>FpInvertBatch$1(rt,ot),cmov:(ot,it,st)=>st?it:ot,toBytes:ot=>$?numberToBytesLE$1(ot,tt):numberToBytesBE$1(ot,tt),fromBytes:ot=>{if(ot.length!==tt)throw new Error(`Fp.fromBytes: expected ${tt}, got ${ot.length}`);return $?bytesToNumberLE$1(ot):bytesToNumberBE$1(ot)}});return Object.freeze(rt)}function getFieldBytesLength$1(s){if(typeof s!="bigint")throw new Error("field order must be bigint");const j=s.toString(2).length;return Math.ceil(j/8)}function getMinHashLength$1(s){const j=getFieldBytesLength$1(s);return j+Math.ceil(j/2)}function mapHashToField$1(s,j,$=!1){const _e=s.length,et=getFieldBytesLength$1(j),tt=getMinHashLength$1(j);if(_e<16||_e1024)throw new Error(`expected ${tt}-1024 bytes of input, got ${_e}`);const nt=$?bytesToNumberBE$1(s):bytesToNumberLE$1(s),rt=mod$1(nt,j-_1n$b)+_1n$b;return $?numberToBytesLE$1(rt,et):numberToBytesBE$1(rt,et)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$8=BigInt(0),_1n$a=BigInt(1),pointPrecomputes=new WeakMap,pointWindowSizes=new WeakMap;function wNAF$1(s,j){const $=(tt,nt)=>{const rt=nt.negate();return tt?rt:nt},_e=tt=>{if(!Number.isSafeInteger(tt)||tt<=0||tt>j)throw new Error(`Wrong window size=${tt}, should be [1..${j}]`)},et=tt=>{_e(tt);const nt=Math.ceil(j/tt)+1,rt=2**(tt-1);return{windows:nt,windowSize:rt}};return{constTimeNegate:$,unsafeLadder(tt,nt){let rt=s.ZERO,ot=tt;for(;nt>_0n$8;)nt&_1n$a&&(rt=rt.add(ot)),ot=ot.double(),nt>>=_1n$a;return rt},precomputeWindow(tt,nt){const{windows:rt,windowSize:ot}=et(nt),it=[];let st=tt,at=st;for(let ct=0;ct>=dt,yt>it&&(yt-=lt,rt+=_1n$a);const mt=gt,pt=gt+Math.abs(yt)-1,xt=ft%2!==0,Ct=yt<0;yt===0?at=at.add($(xt,nt[mt])):st=st.add($(Ct,nt[pt]))}return{p:st,f:at}},wNAFCached(tt,nt,rt){const ot=pointWindowSizes.get(tt)||1;let it=pointPrecomputes.get(tt);return it||(it=this.precomputeWindow(tt,ot),ot!==1&&pointPrecomputes.set(tt,rt(it))),this.wNAF(ot,it,nt)},setWindowSize(tt,nt){_e(nt),pointWindowSizes.set(tt,nt),pointPrecomputes.delete(tt)}}}function validateBasic$1(s){return validateField$1(s.Fp),validateObject$1(s,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength$1(s.n,s.nBitLength),...s,p:s.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$7=BigInt(0),_1n$9=BigInt(1),_2n$6=BigInt(2),_8n$3=BigInt(8),VERIFY_DEFAULT$1={zip215:!0};function validateOpts$3(s){const j=validateBasic$1(s);return validateObject$1(s,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...j})}function twistedEdwards$1(s){const j=validateOpts$3(s),{Fp:$,n:_e,prehash:et,hash:tt,randomBytes:nt,nByteLength:rt,h:ot}=j,it=_2n$6<{try{return{isValid:!0,value:$.sqrt(bt*$.inv(St))}}catch{return{isValid:!1,value:_0n$7}}}),ct=j.adjustScalarBytes||(bt=>bt),lt=j.domain||((bt,St,vt)=>{if(abool("phflag",vt),St.length||vt)throw new Error("Contexts/pre-hash are not supported");return bt});function dt(bt,St){aInRange("coordinate "+bt,St,_0n$7,it)}function ft(bt){if(!(bt instanceof mt))throw new Error("ExtendedPoint expected")}const gt=memoized((bt,St)=>{const{ex:vt,ey:At,ez:Tt}=bt,jt=bt.is0();St==null&&(St=jt?_8n$3:$.inv(Tt));const Lt=st(vt*St),Mt=st(At*St),$t=st(Tt*St);if(jt)return{x:_0n$7,y:_1n$9};if($t!==_1n$9)throw new Error("invZ was invalid");return{x:Lt,y:Mt}}),yt=memoized(bt=>{const{a:St,d:vt}=j;if(bt.is0())throw new Error("bad point: ZERO");const{ex:At,ey:Tt,ez:jt,et:Lt}=bt,Mt=st(At*At),$t=st(Tt*Tt),Ut=st(jt*jt),Gt=st(Ut*Ut),Ht=st(Mt*St),tn=st(Ut*st(Ht+$t)),Jt=st(Gt+st(vt*st(Mt*$t)));if(tn!==Jt)throw new Error("bad point: equation left != right (1)");const Kt=st(At*Tt),dn=st(jt*Lt);if(Kt!==dn)throw new Error("bad point: equation left != right (2)");return!0});class mt{constructor(St,vt,At,Tt){this.ex=St,this.ey=vt,this.ez=At,this.et=Tt,dt("x",St),dt("y",vt),dt("z",At),dt("t",Tt),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(St){if(St instanceof mt)throw new Error("extended point not allowed");const{x:vt,y:At}=St||{};return dt("x",vt),dt("y",At),new mt(vt,At,_1n$9,st(vt*At))}static normalizeZ(St){const vt=$.invertBatch(St.map(At=>At.ez));return St.map((At,Tt)=>At.toAffine(vt[Tt])).map(mt.fromAffine)}_setWindowSize(St){Ct.setWindowSize(this,St)}assertValidity(){yt(this)}equals(St){ft(St);const{ex:vt,ey:At,ez:Tt}=this,{ex:jt,ey:Lt,ez:Mt}=St,$t=st(vt*Mt),Ut=st(jt*Tt),Gt=st(At*Mt),Ht=st(Lt*Tt);return $t===Ut&&Gt===Ht}is0(){return this.equals(mt.ZERO)}negate(){return new mt(st(-this.ex),this.ey,this.ez,st(-this.et))}double(){const{a:St}=j,{ex:vt,ey:At,ez:Tt}=this,jt=st(vt*vt),Lt=st(At*At),Mt=st(_2n$6*st(Tt*Tt)),$t=st(St*jt),Ut=vt+At,Gt=st(st(Ut*Ut)-jt-Lt),Ht=$t+Lt,tn=Ht-Mt,Jt=$t-Lt,Kt=st(Gt*tn),dn=st(Ht*Jt),en=st(Gt*Jt),qt=st(tn*Ht);return new mt(Kt,dn,qt,en)}add(St){ft(St);const{a:vt,d:At}=j,{ex:Tt,ey:jt,ez:Lt,et:Mt}=this,{ex:$t,ey:Ut,ez:Gt,et:Ht}=St;if(vt===BigInt(-1)){const gn=st((jt-Tt)*(Ut+$t)),on=st((jt+Tt)*(Ut-$t)),an=st(on-gn);if(an===_0n$7)return this.double();const hn=st(Lt*_2n$6*Ht),fn=st(Mt*_2n$6*Gt),ln=fn+hn,yn=on+gn,mn=fn-hn,Rt=st(ln*an),Et=st(yn*mn),It=st(ln*mn),Bt=st(an*yn);return new mt(Rt,Et,Bt,It)}const tn=st(Tt*$t),Jt=st(jt*Ut),Kt=st(Mt*At*Ht),dn=st(Lt*Gt),en=st((Tt+jt)*($t+Ut)-tn-Jt),qt=dn-Kt,Qt=dn+Kt,Zt=st(Jt-vt*tn),Xt=st(en*qt),sn=st(Qt*Zt),nn=st(en*Zt),rn=st(qt*Qt);return new mt(Xt,sn,rn,nn)}subtract(St){return this.add(St.negate())}wNAF(St){return Ct.wNAFCached(this,St,mt.normalizeZ)}multiply(St){const vt=St;aInRange("scalar",vt,_1n$9,_e);const{p:At,f:Tt}=this.wNAF(vt);return mt.normalizeZ([At,Tt])[0]}multiplyUnsafe(St){const vt=St;return aInRange("scalar",vt,_0n$7,_e),vt===_0n$7?xt:this.equals(xt)||vt===_1n$9?this:this.equals(pt)?this.wNAF(vt).p:Ct.unsafeLadder(this,vt)}isSmallOrder(){return this.multiplyUnsafe(ot).is0()}isTorsionFree(){return Ct.unsafeLadder(this,_e).is0()}toAffine(St){return gt(this,St)}clearCofactor(){const{h:St}=j;return St===_1n$9?this:this.multiplyUnsafe(St)}static fromHex(St,vt=!1){const{d:At,a:Tt}=j,jt=$.BYTES;St=ensureBytes$1("pointHex",St,jt),abool("zip215",vt);const Lt=St.slice(),Mt=St[jt-1];Lt[jt-1]=Mt&-129;const $t=bytesToNumberLE$1(Lt),Ut=vt?it:$.ORDER;aInRange("pointHex.y",$t,_0n$7,Ut);const Gt=st($t*$t),Ht=st(Gt-_1n$9),tn=st(At*Gt-Tt);let{isValid:Jt,value:Kt}=at(Ht,tn);if(!Jt)throw new Error("Point.fromHex: invalid y coordinate");const dn=(Kt&_1n$9)===_1n$9,en=(Mt&128)!==0;if(!vt&&Kt===_0n$7&&en)throw new Error("Point.fromHex: x=0 and x_0=1");return en!==dn&&(Kt=st(-Kt)),mt.fromAffine({x:Kt,y:$t})}static fromPrivateKey(St){return kt(St).point}toRawBytes(){const{x:St,y:vt}=this.toAffine(),At=numberToBytesLE$1(vt,$.BYTES);return At[At.length-1]|=St&_1n$9?128:0,At}toHex(){return bytesToHex$1(this.toRawBytes())}}mt.BASE=new mt(j.Gx,j.Gy,_1n$9,st(j.Gx*j.Gy)),mt.ZERO=new mt(_0n$7,_1n$9,_1n$9,_0n$7);const{BASE:pt,ZERO:xt}=mt,Ct=wNAF$1(mt,rt*8);function Dt(bt){return mod$1(bt,_e)}function wt(bt){return Dt(bytesToNumberLE$1(bt))}function kt(bt){const St=rt;bt=ensureBytes$1("private key",bt,St);const vt=ensureBytes$1("hashed private key",tt(bt),2*St),At=ct(vt.slice(0,St)),Tt=vt.slice(St,2*St),jt=wt(At),Lt=pt.multiply(jt),Mt=Lt.toRawBytes();return{head:At,prefix:Tt,scalar:jt,point:Lt,pointBytes:Mt}}function zt(bt){return kt(bt).pointBytes}function Ot(bt=new Uint8Array,...St){const vt=concatBytes$1(...St);return wt(tt(lt(vt,ensureBytes$1("context",bt),!!et)))}function Ft(bt,St,vt={}){bt=ensureBytes$1("message",bt),et&&(bt=et(bt));const{prefix:At,scalar:Tt,pointBytes:jt}=kt(St),Lt=Ot(vt.context,At,bt),Mt=pt.multiply(Lt).toRawBytes(),$t=Ot(vt.context,Mt,jt,bt),Ut=Dt(Lt+$t*Tt);aInRange("signature.s",Ut,_0n$7,_e);const Gt=concatBytes$1(Mt,numberToBytesLE$1(Ut,$.BYTES));return ensureBytes$1("result",Gt,rt*2)}const Pt=VERIFY_DEFAULT$1;function Nt(bt,St,vt,At=Pt){const{context:Tt,zip215:jt}=At,Lt=$.BYTES;bt=ensureBytes$1("signature",bt,2*Lt),St=ensureBytes$1("message",St),jt!==void 0&&abool("zip215",jt),et&&(St=et(St));const Mt=bytesToNumberLE$1(bt.slice(Lt,2*Lt));let $t,Ut,Gt;try{$t=mt.fromHex(vt,jt),Ut=mt.fromHex(bt.slice(0,Lt),jt),Gt=pt.multiplyUnsafe(Mt)}catch{return!1}if(!jt&&$t.isSmallOrder())return!1;const Ht=Ot(Tt,Ut.toRawBytes(),$t.toRawBytes(),St);return Ut.add($t.multiplyUnsafe(Ht)).subtract(Gt).clearCofactor().equals(mt.ZERO)}return pt._setWindowSize(8),{CURVE:j,getPublicKey:zt,sign:Ft,verify:Nt,ExtendedPoint:mt,utils:{getExtendedPublicKey:kt,randomPrivateKey:()=>nt($.BYTES),precompute(bt=8,St=mt.BASE){return St._setWindowSize(bt),St.multiply(BigInt(3)),St}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ED25519_P=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),ED25519_SQRT_M1=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const _1n$8=BigInt(1),_2n$5=BigInt(2);BigInt(3);const _5n$1=BigInt(5),_8n$2=BigInt(8);function ed25519_pow_2_252_3(s){const j=BigInt(10),$=BigInt(20),_e=BigInt(40),et=BigInt(80),tt=ED25519_P,rt=s*s%tt*s%tt,ot=pow2$1(rt,_2n$5,tt)*rt%tt,it=pow2$1(ot,_1n$8,tt)*s%tt,st=pow2$1(it,_5n$1,tt)*it%tt,at=pow2$1(st,j,tt)*st%tt,ct=pow2$1(at,$,tt)*at%tt,lt=pow2$1(ct,_e,tt)*ct%tt,dt=pow2$1(lt,et,tt)*lt%tt,ft=pow2$1(dt,et,tt)*lt%tt,gt=pow2$1(ft,j,tt)*st%tt;return{pow_p_5_8:pow2$1(gt,_2n$5,tt)*s%tt,b2:rt}}function adjustScalarBytes(s){return s[0]&=248,s[31]&=127,s[31]|=64,s}function uvRatio(s,j){const $=ED25519_P,_e=mod$1(j*j*j,$),et=mod$1(_e*_e*j,$),tt=ed25519_pow_2_252_3(s*et).pow_p_5_8;let nt=mod$1(s*_e*tt,$);const rt=mod$1(j*nt*nt,$),ot=nt,it=mod$1(nt*ED25519_SQRT_M1,$),st=rt===s,at=rt===mod$1(-s,$),ct=rt===mod$1(-s*ED25519_SQRT_M1,$);return st&&(nt=ot),(at||ct)&&(nt=it),isNegativeLE$1(nt,$)&&(nt=mod$1(-nt,$)),{isValid:st||at,value:nt}}const Fp$1=Field$1(ED25519_P,void 0,!0),ed25519Defaults={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Fp$1,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:_8n$2,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:sha512_1,randomBytes,adjustScalarBytes,uvRatio},ed25519$1=twistedEdwards$1(ed25519Defaults);var bn={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$7=getAugmentedNamespace(__viteBrowserExternal$1);bn.exports;(function(s){(function(j,$){function _e(Nt,ht){if(!Nt)throw new Error(ht||"Assertion failed")}function et(Nt,ht){Nt.super_=ht;var bt=function(){};bt.prototype=ht.prototype,Nt.prototype=new bt,Nt.prototype.constructor=Nt}function tt(Nt,ht,bt){if(tt.isBN(Nt))return Nt;this.negative=0,this.words=null,this.length=0,this.red=null,Nt!==null&&((ht==="le"||ht==="be")&&(bt=ht,ht=10),this._init(Nt||0,ht||10,bt||"be"))}typeof j=="object"?j.exports=tt:$.BN=tt,tt.BN=tt,tt.wordSize=26;var nt;try{typeof window<"u"&&typeof window.Buffer<"u"?nt=window.Buffer:nt=require$$0$7.Buffer}catch{}tt.isBN=function(ht){return ht instanceof tt?!0:ht!==null&&typeof ht=="object"&&ht.constructor.wordSize===tt.wordSize&&Array.isArray(ht.words)},tt.max=function(ht,bt){return ht.cmp(bt)>0?ht:bt},tt.min=function(ht,bt){return ht.cmp(bt)<0?ht:bt},tt.prototype._init=function(ht,bt,St){if(typeof ht=="number")return this._initNumber(ht,bt,St);if(typeof ht=="object")return this._initArray(ht,bt,St);bt==="hex"&&(bt=16),_e(bt===(bt|0)&&bt>=2&&bt<=36),ht=ht.toString().replace(/\s+/g,"");var vt=0;ht[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)Tt=ht[vt]|ht[vt-1]<<8|ht[vt-2]<<16,this.words[At]|=Tt<>>26-jt&67108863,jt+=24,jt>=26&&(jt-=26,At++);else if(St==="le")for(vt=0,At=0;vt>>26-jt&67108863,jt+=24,jt>=26&&(jt-=26,At++);return this._strip()};function rt(Nt,ht){var bt=Nt.charCodeAt(ht);if(bt>=48&&bt<=57)return bt-48;if(bt>=65&&bt<=70)return bt-55;if(bt>=97&&bt<=102)return bt-87;_e(!1,"Invalid character in "+Nt)}function ot(Nt,ht,bt){var St=rt(Nt,bt);return bt-1>=ht&&(St|=rt(Nt,bt-1)<<4),St}tt.prototype._parseHex=function(ht,bt,St){this.length=Math.ceil((ht.length-bt)/6),this.words=new Array(this.length);for(var vt=0;vt=bt;vt-=2)jt=ot(ht,bt,vt)<=18?(At-=18,Tt+=1,this.words[Tt]|=jt>>>26):At+=8;else{var Lt=ht.length-bt;for(vt=Lt%2===0?bt+1:bt;vt=18?(At-=18,Tt+=1,this.words[Tt]|=jt>>>26):At+=8}this._strip()};function it(Nt,ht,bt,St){for(var vt=0,At=0,Tt=Math.min(Nt.length,bt),jt=ht;jt=49?At=Lt-49+10:Lt>=17?At=Lt-17+10:At=Lt,_e(Lt>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{tt.prototype[Symbol.for("nodejs.util.inspect.custom")]=at}catch{tt.prototype.inspect=at}else tt.prototype.inspect=at;function at(){return(this.red?""}var ct=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],lt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],dt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];tt.prototype.toString=function(ht,bt){ht=ht||10,bt=bt|0||1;var St;if(ht===16||ht==="hex"){St="";for(var vt=0,At=0,Tt=0;Tt>>24-vt&16777215,vt+=2,vt>=26&&(vt-=26,Tt--),At!==0||Tt!==this.length-1?St=ct[6-Lt.length]+Lt+St:St=Lt+St}for(At!==0&&(St=At.toString(16)+St);St.length%bt!==0;)St="0"+St;return this.negative!==0&&(St="-"+St),St}if(ht===(ht|0)&&ht>=2&&ht<=36){var Mt=lt[ht],$t=dt[ht];St="";var Ut=this.clone();for(Ut.negative=0;!Ut.isZero();){var Gt=Ut.modrn($t).toString(ht);Ut=Ut.idivn($t),Ut.isZero()?St=Gt+St:St=ct[Mt-Gt.length]+Gt+St}for(this.isZero()&&(St="0"+St);St.length%bt!==0;)St="0"+St;return this.negative!==0&&(St="-"+St),St}_e(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&_e(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},tt.prototype.toJSON=function(){return this.toString(16,2)},nt&&(tt.prototype.toBuffer=function(ht,bt){return this.toArrayLike(nt,ht,bt)}),tt.prototype.toArray=function(ht,bt){return this.toArrayLike(Array,ht,bt)};var ft=function(ht,bt){return ht.allocUnsafe?ht.allocUnsafe(bt):new ht(bt)};tt.prototype.toArrayLike=function(ht,bt,St){this._strip();var vt=this.byteLength(),At=St||Math.max(1,vt);_e(vt<=At,"byte array longer than desired length"),_e(At>0,"Requested array length <= 0");var Tt=ft(ht,At),jt=bt==="le"?"LE":"BE";return this["_toArrayLike"+jt](Tt,vt),Tt},tt.prototype._toArrayLikeLE=function(ht,bt){for(var St=0,vt=0,At=0,Tt=0;At>8&255),St>16&255),Tt===6?(St>24&255),vt=0,Tt=0):(vt=jt>>>24,Tt+=2)}if(St=0&&(ht[St--]=jt>>8&255),St>=0&&(ht[St--]=jt>>16&255),Tt===6?(St>=0&&(ht[St--]=jt>>24&255),vt=0,Tt=0):(vt=jt>>>24,Tt+=2)}if(St>=0)for(ht[St--]=vt;St>=0;)ht[St--]=0},Math.clz32?tt.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:tt.prototype._countBits=function(ht){var bt=ht,St=0;return bt>=4096&&(St+=13,bt>>>=13),bt>=64&&(St+=7,bt>>>=7),bt>=8&&(St+=4,bt>>>=4),bt>=2&&(St+=2,bt>>>=2),St+bt},tt.prototype._zeroBits=function(ht){if(ht===0)return 26;var bt=ht,St=0;return bt&8191||(St+=13,bt>>>=13),bt&127||(St+=7,bt>>>=7),bt&15||(St+=4,bt>>>=4),bt&3||(St+=2,bt>>>=2),bt&1||St++,St},tt.prototype.bitLength=function(){var ht=this.words[this.length-1],bt=this._countBits(ht);return(this.length-1)*26+bt};function gt(Nt){for(var ht=new Array(Nt.bitLength()),bt=0;bt>>vt&1}return ht}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,bt=0;btht.length?this.clone().ior(ht):ht.clone().ior(this)},tt.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},tt.prototype.iuand=function(ht){var bt;this.length>ht.length?bt=ht:bt=this;for(var St=0;Stht.length?this.clone().iand(ht):ht.clone().iand(this)},tt.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},tt.prototype.iuxor=function(ht){var bt,St;this.length>ht.length?(bt=this,St=ht):(bt=ht,St=this);for(var vt=0;vtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},tt.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},tt.prototype.inotn=function(ht){_e(typeof ht=="number"&&ht>=0);var bt=Math.ceil(ht/26)|0,St=ht%26;this._expand(bt),St>0&&bt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-St),this._strip()},tt.prototype.notn=function(ht){return this.clone().inotn(ht)},tt.prototype.setn=function(ht,bt){_e(typeof ht=="number"&&ht>=0);var St=ht/26|0,vt=ht%26;return this._expand(St+1),bt?this.words[St]=this.words[St]|1<ht.length?(St=this,vt=ht):(St=ht,vt=this);for(var At=0,Tt=0;Tt>>26;for(;At!==0&&Tt>>26;if(this.length=St.length,At!==0)this.words[this.length]=At,this.length++;else if(St!==this)for(;Ttht.length?this.clone().iadd(ht):ht.clone().iadd(this)},tt.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var bt=this.iadd(ht);return ht.negative=1,bt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var St=this.cmp(ht);if(St===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,At;St>0?(vt=this,At=ht):(vt=ht,At=this);for(var Tt=0,jt=0;jt>26,this.words[jt]=bt&67108863;for(;Tt!==0&&jt>26,this.words[jt]=bt&67108863;if(Tt===0&&jt>>26,Ut=Lt&67108863,Gt=Math.min(Mt,ht.length-1),Ht=Math.max(0,Mt-Nt.length+1);Ht<=Gt;Ht++){var tn=Mt-Ht|0;vt=Nt.words[tn]|0,At=ht.words[Ht]|0,Tt=vt*At+Ut,$t+=Tt/67108864|0,Ut=Tt&67108863}bt.words[Mt]=Ut|0,Lt=$t|0}return Lt!==0?bt.words[Mt]=Lt|0:bt.length--,bt._strip()}var mt=function(ht,bt,St){var vt=ht.words,At=bt.words,Tt=St.words,jt=0,Lt,Mt,$t,Ut=vt[0]|0,Gt=Ut&8191,Ht=Ut>>>13,tn=vt[1]|0,Jt=tn&8191,Kt=tn>>>13,dn=vt[2]|0,en=dn&8191,qt=dn>>>13,Qt=vt[3]|0,Zt=Qt&8191,Xt=Qt>>>13,sn=vt[4]|0,nn=sn&8191,rn=sn>>>13,gn=vt[5]|0,on=gn&8191,an=gn>>>13,hn=vt[6]|0,fn=hn&8191,ln=hn>>>13,yn=vt[7]|0,mn=yn&8191,Rt=yn>>>13,Et=vt[8]|0,It=Et&8191,Bt=Et>>>13,Wt=vt[9]|0,Vt=Wt&8191,Yt=Wt>>>13,cn=At[0]|0,pn=cn&8191,un=cn>>>13,En=At[1]|0,xn=En&8191,Bn=En>>>13,Qn=At[2]|0,On=Qn&8191,wn=Qn>>>13,Yn=At[3]|0,Nn=Yn&8191,Ln=Yn>>>13,Zn=At[4]|0,Dn=Zn&8191,_n=Zn>>>13,Wn=At[5]|0,Pn=Wn&8191,Tn=Wn>>>13,Vn=At[6]|0,Sn=Vn&8191,vn=Vn>>>13,qn=At[7]|0,An=qn&8191,$n=qn>>>13,Gn=At[8]|0,jn=Gn&8191,zn=Gn>>>13,kn=At[9]|0,Cn=kn&8191,Rn=kn>>>13;St.negative=ht.negative^bt.negative,St.length=19,Lt=Math.imul(Gt,pn),Mt=Math.imul(Gt,un),Mt=Mt+Math.imul(Ht,pn)|0,$t=Math.imul(Ht,un);var Hn=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(Hn>>>26)|0,Hn&=67108863,Lt=Math.imul(Jt,pn),Mt=Math.imul(Jt,un),Mt=Mt+Math.imul(Kt,pn)|0,$t=Math.imul(Kt,un),Lt=Lt+Math.imul(Gt,xn)|0,Mt=Mt+Math.imul(Gt,Bn)|0,Mt=Mt+Math.imul(Ht,xn)|0,$t=$t+Math.imul(Ht,Bn)|0;var Un=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(Un>>>26)|0,Un&=67108863,Lt=Math.imul(en,pn),Mt=Math.imul(en,un),Mt=Mt+Math.imul(qt,pn)|0,$t=Math.imul(qt,un),Lt=Lt+Math.imul(Jt,xn)|0,Mt=Mt+Math.imul(Jt,Bn)|0,Mt=Mt+Math.imul(Kt,xn)|0,$t=$t+Math.imul(Kt,Bn)|0,Lt=Lt+Math.imul(Gt,On)|0,Mt=Mt+Math.imul(Gt,wn)|0,Mt=Mt+Math.imul(Ht,On)|0,$t=$t+Math.imul(Ht,wn)|0;var In=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(In>>>26)|0,In&=67108863,Lt=Math.imul(Zt,pn),Mt=Math.imul(Zt,un),Mt=Mt+Math.imul(Xt,pn)|0,$t=Math.imul(Xt,un),Lt=Lt+Math.imul(en,xn)|0,Mt=Mt+Math.imul(en,Bn)|0,Mt=Mt+Math.imul(qt,xn)|0,$t=$t+Math.imul(qt,Bn)|0,Lt=Lt+Math.imul(Jt,On)|0,Mt=Mt+Math.imul(Jt,wn)|0,Mt=Mt+Math.imul(Kt,On)|0,$t=$t+Math.imul(Kt,wn)|0,Lt=Lt+Math.imul(Gt,Nn)|0,Mt=Mt+Math.imul(Gt,Ln)|0,Mt=Mt+Math.imul(Ht,Nn)|0,$t=$t+Math.imul(Ht,Ln)|0;var Fn=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,Lt=Math.imul(nn,pn),Mt=Math.imul(nn,un),Mt=Mt+Math.imul(rn,pn)|0,$t=Math.imul(rn,un),Lt=Lt+Math.imul(Z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|0,Xn&=67108863,Lt=Math.imul(fn,pn),Mt=Math.imul(fn,un),Mt=Mt+Math.imul(ln,pn)|0,$t=Math.imul(ln,un),Lt=Lt+Math.imul(on,xn)|0,Mt=Mt+Math.imul(on,Bn)|0,Mt=Mt+Math.imul(an,xn)|0,$t=$t+Math.imul(an,Bn)|0,Lt=Lt+Math.imul(nn,On)|0,Mt=Mt+Math.imul(nn,wn)|0,Mt=Mt+Math.imul(rn,On)|0,$t=$t+Math.imul(rn,wn)|0,Lt=Lt+Math.imul(Zt,Nn)|0,Mt=Mt+Math.imul(Zt,Ln)|0,Mt=Mt+Math.imul(Xt,Nn)|0,$t=$t+Math.imul(Xt,Ln)|0,Lt=Lt+Math.imul(en,Dn)|0,Mt=Mt+Math.imul(en,_n)|0,Mt=Mt+Math.imul(qt,Dn)|0,$t=$t+Math.imul(qt,_n)|0,Lt=Lt+Math.imul(Jt,Pn)|0,Mt=Mt+Math.imul(Jt,Tn)|0,Mt=Mt+Math.imul(Kt,Pn)|0,$t=$t+Math.imul(Kt,Tn)|0,Lt=Lt+Math.imul(Gt,Sn)|0,Mt=Mt+Math.imul(Gt,vn)|0,Mt=Mt+Math.imul(Ht,Sn)|0,$t=$t+Math.imul(Ht,vn)|0;var Jn=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Lt=Math.imul(mn,pn),Mt=Math.imul(mn,un),Mt=Mt+Math.imul(Rt,pn)|0,$t=Math.imul(Rt,un),Lt=Lt+Math.imul(fn,xn)|0,Mt=Mt+Math.imul(fn,Bn)|0,Mt=Mt+Math.imul(ln,xn)|0,$t=$t+Math.imul(ln,Bn)|0,Lt=Lt+Math.imul(on,On)|0,Mt=Mt+Math.imul(on,wn)|0,Mt=Mt+Math.imul(an,On)|0,$t=$t+Math.imul(an,wn)|0,Lt=Lt+Math.imul(nn,Nn)|0,Mt=Mt+Math.imul(nn,Ln)|0,Mt=Mt+Math.imul(rn,Nn)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mt+Math.imul(en,vn)|0,Mt=Mt+Math.imul(qt,Sn)|0,$t=$t+Math.imul(qt,vn)|0,Lt=Lt+Math.imul(Jt,An)|0,Mt=Mt+Math.imul(Jt,$n)|0,Mt=Mt+Math.imul(Kt,An)|0,$t=$t+Math.imul(Kt,$n)|0,Lt=Lt+Math.imul(Gt,jn)|0,Mt=Mt+Math.imul(Gt,zn)|0,Mt=Mt+Math.imul(Ht,jn)|0,$t=$t+Math.imul(Ht,zn)|0;var tr=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(tr>>>26)|0,tr&=67108863,Lt=Math.imul(Vt,pn),Mt=Math.imul(Vt,un),Mt=Mt+Math.imul(Yt,pn)|0,$t=Math.imul(Yt,un),Lt=Lt+Math.imul(It,xn)|0,Mt=Mt+Math.imul(It,Bn)|0,Mt=Mt+Math.imul(Bt,xn)|0,$t=$t+Math.imul(Bt,Bn)|0,Lt=Lt+Math.imul(mn,On)|0,Mt=Mt+Math.imul(mn,wn)|0,Mt=Mt+Math.imul(Rt,On)|0,$t=$t+Math.imul(Rt,wn)|0,Lt=Lt+Math.imul(fn,Nn)|0,Mt=Mt+Math.imul(fn,Ln)|0,Mt=Mt+Math.imul(ln,Nn)|0,$t=$t+Math.imul(ln,Ln)|0,Lt=Lt+Math.imul(on,Dn)|0,Mt=Mt+Math.imul(on,_n)|0,Mt=Mt+Math.imul(an,Dn)|0,$t=$t+Math.imul(an,_n)|0,Lt=Lt+Math.imul(nn,Pn)|0,Mt=Mt+Math.imul(nn,Tn)|0,Mt=Mt+Math.imul(rn,Pn)|0,$t=$t+Math.imul(rn,Tn)|0,Lt=Lt+Math.imul(Zt,Sn)|0,Mt=Mt+Math.imul(Zt,vn)|0,Mt=Mt+Math.imul(Xt,Sn)|0,$t=$t+Math.imul(Xt,vn)|0,Lt=Lt+Math.imul(en,An)|0,Mt=Mt+Math.imul(en,$n)|0,Mt=Mt+Math.imul(qt,An)|0,$t=$t+Math.imul(qt,$n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)|0,Mt=Mt+Math.imul(Kt,Cn)|0,$t=$t+Math.imul(Kt,Rn)|0;var rr=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(rr>>>26)|0,rr&=67108863,Lt=Math.imul(Vt,On),Mt=Math.imul(Vt,wn),Mt=Mt+Math.imul(Yt,On)|0,$t=Math.imul(Yt,wn),Lt=Lt+Math.imul(It,Nn)|0,Mt=Mt+Math.imul(It,Ln)|0,Mt=Mt+Math.imul(Bt,Nn)|0,$t=$t+Math.imul(Bt,Ln)|0,Lt=Lt+Math.imul(mn,Dn)|0,Mt=Mt+Math.imul(mn,_n)|0,Mt=Mt+Math.imul(Rt,Dn)|0,$t=$t+Math.imul(Rt,_n)|0,Lt=Lt+Math.imul(fn,Pn)|0,Mt=Mt+Math.imul(fn,Tn)|0,Mt=Mt+Math.imul(ln,Pn)|0,$t=$t+Math.imul(ln,Tn)|0,Lt=Lt+Math.imul(on,Sn)|0,Mt=Mt+Math.imul(on,vn)|0,Mt=Mt+Math.imul(an,Sn)|0,$t=$t+Math.imul(an,vn)|0,Lt=Lt+Math.imul(nn,An)|0,Mt=Mt+Math.imul(nn,$n)|0,Mt=Mt+Math.imul(rn,An)|0,$t=$t+Math.imul(rn,$n)|0,Lt=Lt+Math.imul(Zt,jn)|0,Mt=Mt+Math.imul(Zt,zn)|0,Mt=Mt+Math.imul(Xt,jn)|0,$t=$t+Math.imul(Xt,zn)|0,Lt=Lt+Math.imul(en,Cn)|0,Mt=Mt+Math.imul(en,Rn)|0,Mt=Mt+Math.imul(qt,Cn)|0,$t=$t+Math.imul(qt,Rn)|0;var or=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(or>>>26)|0,or&=67108863,Lt=Math.imul(Vt,Nn),Mt=Math.imul(Vt,Ln),Mt=Mt+Math.imul(Yt,Nn)|0,$t=Math.imul(Yt,Ln),Lt=Lt+Math.imul(It,Dn)|0,Mt=Mt+Math.imul(It,_n)|0,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imul(nn,Cn)|0,Mt=Mt+Math.imul(nn,Rn)|0,Mt=Mt+Math.imul(rn,Cn)|0,$t=$t+Math.imul(rn,Rn)|0;var sr=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(sr>>>26)|0,sr&=67108863,Lt=Math.imul(Vt,Pn),Mt=Math.imul(Vt,Tn),Mt=Mt+Math.imul(Yt,Pn)|0,$t=Math.imul(Yt,Tn),Lt=Lt+Math.imul(It,Sn)|0,Mt=Mt+Math.imul(It,vn)|0,Mt=Mt+Math.imul(Bt,Sn)|0,$t=$t+Math.imul(Bt,vn)|0,Lt=Lt+Math.imul(mn,An)|0,Mt=Mt+Math.imul(mn,$n)|0,Mt=Mt+Math.imul(Rt,An)|0,$t=$t+Math.imul(Rt,$n)|0,Lt=Lt+Math.imul(fn,jn)|0,Mt=Mt+Math.imul(fn,zn)|0,Mt=Mt+Math.imul(ln,jn)|0,$t=$t+Math.imul(ln,zn)|0,Lt=Lt+Math.imul(on,Cn)|0,Mt=Mt+Math.imul(on,Rn)|0,Mt=Mt+Math.imul(an,Cn)|0,$t=$t+Math.imul(an,Rn)|0;var ar=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(ar>>>26)|0,ar&=67108863,Lt=Math.imul(Vt,Sn),Mt=Math.imul(Vt,vn),Mt=Mt+Math.imul(Yt,Sn)|0,$t=Math.imul(Yt,vn),Lt=Lt+Math.imul(It,An)|0,Mt=Mt+Math.imul(It,$n)|0,Mt=Mt+Math.imul(Bt,An)|0,$t=$t+Math.imul(Bt,$n)|0,Lt=Lt+Math.imul(mn,jn)|0,Mt=Mt+Math.imul(mn,zn)|0,Mt=Mt+Math.imul(Rt,jn)|0,$t=$t+Math.imul(Rt,zn)|0,Lt=Lt+Math.imul(fn,Cn)|0,Mt=Mt+Math.imul(fn,Rn)|0,Mt=Mt+Math.imul(ln,Cn)|0,$t=$t+Math.imul(ln,Rn)|0;var lr=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(lr>>>26)|0,lr&=67108863,Lt=Math.imul(Vt,An),Mt=Math.imul(Vt,$n),Mt=Mt+Math.imul(Yt,An)|0,$t=Math.imul(Yt,$n),Lt=Lt+Math.imul(It,jn)|0,Mt=Mt+Math.imul(It,zn)|0,Mt=Mt+Math.imul(Bt,jn)|0,$t=$t+Math.imul(Bt,zn)|0,Lt=Lt+Math.imul(mn,Cn)|0,Mt=Mt+Math.imul(mn,Rn)|0,Mt=Mt+Math.imul(Rt,Cn)|0,$t=$t+Math.imul(Rt,Rn)|0;var ur=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(ur>>>26)|0,ur&=67108863,Lt=Math.imul(Vt,jn),Mt=Math.imul(Vt,zn),Mt=Mt+Math.imul(Yt,jn)|0,$t=Math.imul(Yt,zn),Lt=Lt+Math.imul(It,Cn)|0,Mt=Mt+Math.imul(It,Rn)|0,Mt=Mt+Math.imul(Bt,Cn)|0,$t=$t+Math.imul(Bt,Rn)|0;var cr=(jt+Lt|0)+((Mt&8191)<<13)|0;jt=($t+(Mt>>>13)|0)+(cr>>>26)|0,cr&=67108863,Lt=Math.imul(Vt,Cn),Mt=Math.imul(Vt,Rn),Mt=Mt+Math.imul(Yt,Cn)|0,$t=Math.imul(Yt,Rn);var dr=(jt+Lt|0)+((Mt&8191)<<13)|0;return jt=($t+(Mt>>>13)|0)+(dr>>>26)|0,dr&=67108863,Tt[0]=Hn,Tt[1]=Un,Tt[2]=In,Tt[3]=Fn,Tt[4]=Kn,Tt[5]=Xn,Tt[6]=Jn,Tt[7]=er,Tt[8]=tr,Tt[9]=nr,Tt[10]=rr,Tt[11]=or,Tt[12]=ir,Tt[13]=sr,Tt[14]=ar,Tt[15]=lr,Tt[16]=ur,Tt[17]=cr,Tt[18]=dr,jt!==0&&(Tt[19]=jt,St.length++),St};Math.imul||(mt=yt);function pt(Nt,ht,bt){bt.negative=ht.negative^Nt.negative,bt.length=Nt.length+ht.length;for(var St=0,vt=0,At=0;At>>26)|0,vt+=Tt>>>26,Tt&=67108863}bt.words[At]=jt,St=Tt,Tt=vt}return St!==0?bt.words[At]=St:bt.length--,bt._strip()}function xt(Nt,ht,bt){return pt(Nt,ht,bt)}tt.prototype.mulTo=function(ht,bt){var St,vt=this.length+ht.length;return this.length===10&&ht.length===10?St=mt(this,ht,bt):vt<63?St=yt(this,ht,bt):vt<1024?St=pt(this,ht,bt):St=xt(this,ht,bt),St},tt.prototype.mul=function(ht){var bt=new tt(null);return bt.words=new Array(this.length+ht.length),this.mulTo(ht,bt)},tt.prototype.mulf=function(ht){var bt=new tt(null);return bt.words=new Array(this.length+ht.length),xt(this,ht,bt)},tt.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},tt.prototype.imuln=function(ht){var bt=ht<0;bt&&(ht=-ht),_e(typeof ht=="number"),_e(ht<67108864);for(var St=0,vt=0;vt>=26,St+=At/67108864|0,St+=Tt>>>26,this.words[vt]=Tt&67108863}return St!==0&&(this.words[vt]=St,this.length++),bt?this.ineg():this},tt.prototype.muln=function(ht){return this.clone().imuln(ht)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(ht){var bt=gt(ht);if(bt.length===0)return new tt(1);for(var St=this,vt=0;vt=0);var bt=ht%26,St=(ht-bt)/26,vt=67108863>>>26-bt<<26-bt,At;if(bt!==0){var Tt=0;for(At=0;At>>26-bt}Tt&&(this.words[At]=Tt,this.length++)}if(St!==0){for(At=this.length-1;At>=0;At--)this.words[At+St]=this.words[At];for(At=0;At=0);var vt;bt?vt=(bt-bt%26)/26:vt=0;var At=ht%26,Tt=Math.min((ht-At)/26,this.length),jt=67108863^67108863>>>At<Tt)for(this.length-=Tt,Mt=0;Mt=0&&($t!==0||Mt>=vt);Mt--){var Ut=this.words[Mt]|0;this.words[Mt]=$t<<26-At|Ut>>>At,$t=Ut&jt}return Lt&&$t!==0&&(Lt.words[Lt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},tt.prototype.ishrn=function(ht,bt,St){return _e(this.negative===0),this.iushrn(ht,bt,St)},tt.prototype.shln=function(ht){return this.clone().ishln(ht)},tt.prototype.ushln=function(ht){return this.clone().iushln(ht)},tt.prototype.shrn=function(ht){return this.clone().ishrn(ht)},tt.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},tt.prototype.testn=function(ht){_e(typeof ht=="number"&&ht>=0);var bt=ht%26,St=(ht-bt)/26,vt=1<=0);var bt=ht%26,St=(ht-bt)/26;if(_e(this.negative===0,"imaskn works only with positive numbers"),this.length<=St)return this;if(bt!==0&&St++,this.length=Math.min(St,this.length),bt!==0){var vt=67108863^67108863>>>bt<=67108864;bt++)this.words[bt]-=67108864,bt===this.length-1?this.words[bt+1]=1:this.words[bt+1]++;return this.length=Math.max(this.length,bt+1),this},tt.prototype.isubn=function(ht){if(_e(typeof ht=="number"),_e(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var bt=0;bt>26)-(Lt/67108864|0),this.words[At+St]=Tt&67108863}for(;At>26,this.words[At+St]=Tt&67108863;if(jt===0)return this._strip();for(_e(jt===-1),jt=0,At=0;At>26,this.words[At]=Tt&67108863;return this.negative=1,this._strip()},tt.prototype._wordDiv=function(ht,bt){var St=this.length-ht.length,vt=this.clone(),At=ht,Tt=At.words[At.length-1]|0,jt=this._countBits(Tt);St=26-jt,St!==0&&(At=At.ushln(St),vt.iushln(St),Tt=At.words[At.length-1]|0);var Lt=vt.length-At.length,Mt;if(bt!=="mod"){Mt=new tt(null),Mt.length=Lt+1,Mt.words=new Array(Mt.length);for(var $t=0;$t=0;Gt--){var Ht=(vt.words[At.length+Gt]|0)*67108864+(vt.words[At.length+Gt-1]|0);for(Ht=Math.min(Ht/Tt|0,67108863),vt._ishlnsubmul(At,Ht,Gt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(At,1,Gt),vt.isZero()||(vt.negative^=1);Mt&&(Mt.words[Gt]=Ht)}return Mt&&Mt._strip(),vt._strip(),bt!=="div"&&St!==0&&vt.iushrn(St),{div:Mt||null,mod:vt}},tt.prototype.divmod=function(ht,bt,St){if(_e(!ht.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,At,Tt;return this.negative!==0&&ht.negative===0?(Tt=this.neg().divmod(ht,bt),bt!=="mod"&&(vt=Tt.div.neg()),bt!=="div"&&(At=Tt.mod.neg(),St&&At.negative!==0&&At.iadd(ht)),{div:vt,mod:At}):this.negative===0&&ht.negative!==0?(Tt=this.divmod(ht.neg(),bt),bt!=="mod"&&(vt=Tt.div.neg()),{div:vt,mod:Tt.mod}):this.negative&ht.negative?(Tt=this.neg().divmod(ht.neg(),bt),bt!=="div"&&(At=Tt.mod.neg(),St&&At.negative!==0&&At.isub(ht)),{div:Tt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new tt(0),mod:this}:ht.length===1?bt==="div"?{div:this.divn(ht.words[0]),mod:null}:bt==="mod"?{div:null,mod:new tt(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new tt(this.modrn(ht.words[0]))}:this._wordDiv(ht,bt)},tt.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},tt.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},tt.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},tt.prototype.divRound=function(ht){var bt=this.divmod(ht);if(bt.mod.isZero())return bt.div;var St=bt.div.negative!==0?bt.mod.isub(ht):bt.mod,vt=ht.ushrn(1),At=ht.andln(1),Tt=St.cmp(vt);return Tt<0||At===1&&Tt===0?bt.div:bt.div.negative!==0?bt.div.isubn(1):bt.div.iaddn(1)},tt.prototype.modrn=function(ht){var bt=ht<0;bt&&(ht=-ht),_e(ht<=67108863);for(var St=(1<<26)%ht,vt=0,At=this.length-1;At>=0;At--)vt=(St*vt+(this.words[At]|0))%ht;return bt?-vt:vt},tt.prototype.modn=function(ht){return this.modrn(ht)},tt.prototype.idivn=function(ht){var bt=ht<0;bt&&(ht=-ht),_e(ht<=67108863);for(var St=0,vt=this.length-1;vt>=0;vt--){var At=(this.words[vt]|0)+St*67108864;this.words[vt]=At/ht|0,St=At%ht}return this._strip(),bt?this.ineg():this},tt.prototype.divn=function(ht){return this.clone().idivn(ht)},tt.prototype.egcd=function(ht){_e(ht.negative===0),_e(!ht.isZero());var bt=this,St=ht.clone();bt.negative!==0?bt=bt.umod(ht):bt=bt.clone();for(var vt=new tt(1),At=new tt(0),Tt=new tt(0),jt=new tt(1),Lt=0;bt.isEven()&&St.isEven();)bt.iushrn(1),St.iushrn(1),++Lt;for(var Mt=St.clone(),$t=bt.clone();!bt.isZero();){for(var Ut=0,Gt=1;!(bt.words[0]&Gt)&&Ut<26;++Ut,Gt<<=1);if(Ut>0)for(bt.iushrn(Ut);Ut-- >0;)(vt.isOdd()||At.isOdd())&&(vt.iadd(Mt),At.isub($t)),vt.iushrn(1),At.iushrn(1);for(var Ht=0,tn=1;!(St.words[0]&tn)&&Ht<26;++Ht,tn<<=1);if(Ht>0)for(St.iushrn(Ht);Ht-- >0;)(Tt.isOdd()||jt.isOdd())&&(Tt.iadd(Mt),jt.isub($t)),Tt.iushrn(1),jt.iushrn(1);bt.cmp(St)>=0?(bt.isub(St),vt.isub(Tt),At.isub(jt)):(St.isub(bt),Tt.isub(vt),jt.isub(At))}return{a:Tt,b:jt,gcd:St.iushln(Lt)}},tt.prototype._invmp=function(ht){_e(ht.negative===0),_e(!ht.isZero());var bt=this,St=ht.clone();bt.negative!==0?bt=bt.umod(ht):bt=bt.clone();for(var vt=new tt(1),At=new tt(0),Tt=St.clone();bt.cmpn(1)>0&&St.cmpn(1)>0;){for(var jt=0,Lt=1;!(bt.words[0]&Lt)&&jt<26;++jt,Lt<<=1);if(jt>0)for(bt.iushrn(jt);jt-- >0;)vt.isOdd()&&vt.iadd(Tt),vt.iushrn(1);for(var Mt=0,$t=1;!(St.words[0]&$t)&&Mt<26;++Mt,$t<<=1);if(Mt>0)for(St.iushrn(Mt);Mt-- >0;)At.isOdd()&&At.iadd(Tt),At.iushrn(1);bt.cmp(St)>=0?(bt.isub(St),vt.isub(At)):(St.isub(bt),At.isub(vt))}var Ut;return bt.cmpn(1)===0?Ut=vt:Ut=At,Ut.cmpn(0)<0&&Ut.iadd(ht),Ut},tt.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var bt=this.clone(),St=ht.clone();bt.negative=0,St.negative=0;for(var vt=0;bt.isEven()&&St.isEven();vt++)bt.iushrn(1),St.iushrn(1);do{for(;bt.isEven();)bt.iushrn(1);for(;St.isEven();)St.iushrn(1);var At=bt.cmp(St);if(At<0){var Tt=bt;bt=St,St=Tt}else if(At===0||St.cmpn(1)===0)break;bt.isub(St)}while(!0);return St.iushln(vt)},tt.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(ht){return this.words[0]&ht},tt.prototype.bincn=function(ht){_e(typeof ht=="number");var bt=ht%26,St=(ht-bt)/26,vt=1<>>26,jt&=67108863,this.words[Tt]=jt}return At!==0&&(this.words[Tt]=At,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(ht){var bt=ht<0;if(this.negative!==0&&!bt)return-1;if(this.negative===0&&bt)return 1;this._strip();var St;if(this.length>1)St=1;else{bt&&(ht=-ht),_e(ht<=67108863,"Number is too big");var vt=this.words[0]|0;St=vt===ht?0:vtht.length)return 1;if(this.length=0;St--){var vt=this.words[St]|0,At=ht.words[St]|0;if(vt!==At){vtAt&&(bt=1);break}}return bt},tt.prototype.gtn=function(ht){return this.cmpn(ht)===1},tt.prototype.gt=function(ht){return this.cmp(ht)===1},tt.prototype.gten=function(ht){return this.cmpn(ht)>=0},tt.prototype.gte=function(ht){return this.cmp(ht)>=0},tt.prototype.ltn=function(ht){return this.cmpn(ht)===-1},tt.prototype.lt=function(ht){return this.cmp(ht)===-1},tt.prototype.lten=function(ht){return this.cmpn(ht)<=0},tt.prototype.lte=function(ht){return this.cmp(ht)<=0},tt.prototype.eqn=function(ht){return this.cmpn(ht)===0},tt.prototype.eq=function(ht){return this.cmp(ht)===0},tt.red=function(ht){return new Ft(ht)},tt.prototype.toRed=function(ht){return _e(!this.red,"Already a number in reduction context"),_e(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},tt.prototype.fromRed=function(){return _e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(ht){return this.red=ht,this},tt.prototype.forceRed=function(ht){return _e(!this.red,"Already a number in reduction context"),this._forceRed(ht)},tt.prototype.redAdd=function(ht){return _e(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},tt.prototype.redIAdd=function(ht){return _e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},tt.prototype.redSub=function(ht){return _e(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},tt.prototype.redISub=function(ht){return _e(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},tt.prototype.redShl=function(ht){return _e(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},tt.prototype.redMul=function(ht){return _e(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},tt.prototype.redIMul=function(ht){return _e(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},tt.prototype.redSqr=function(){return _e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return _e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return _e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return _e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return _e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(ht){return _e(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ct={k256:null,p224:null,p192:null,p25519:null};function Dt(Nt,ht){this.name=Nt,this.p=new tt(ht,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Dt.prototype._tmp=function(){var ht=new tt(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Dt.prototype.ireduce=function(ht){var bt=ht,St;do this.split(bt,this.tmp),bt=this.imulK(bt),bt=bt.iadd(this.tmp),St=bt.bitLength();while(St>this.n);var vt=St0?bt.isub(this.p):bt.strip!==void 0?bt.strip():bt._strip(),bt},Dt.prototype.split=function(ht,bt){ht.iushrn(this.n,0,bt)},Dt.prototype.imulK=function(ht){return ht.imul(this.k)};function wt(){Dt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}et(wt,Dt),wt.prototype.split=function(ht,bt){for(var St=4194303,vt=Math.min(ht.length,9),At=0;At>>22,Tt=jt}Tt>>>=22,ht.words[At-10]=Tt,Tt===0&&ht.length>10?ht.length-=10:ht.length-=9},wt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var bt=0,St=0;St>>=26,ht.words[St]=At,bt=vt}return bt!==0&&(ht.words[ht.length++]=bt),ht},tt._prime=function(ht){if(Ct[ht])return Ct[ht];var bt;if(ht==="k256")bt=new wt;else if(ht==="p224")bt=new kt;else if(ht==="p192")bt=new zt;else if(ht==="p25519")bt=new Ot;else throw new Error("Unknown prime "+ht);return Ct[ht]=bt,bt};function Ft(Nt){if(typeof Nt=="string"){var ht=tt._prime(Nt);this.m=ht.p,this.prime=ht}else _e(Nt.gtn(1),"modulus must be greater than 1"),this.m=Nt,this.prime=null}Ft.prototype._verify1=function(ht){_e(ht.negative===0,"red works only with positives"),_e(ht.red,"red works only with red numbers")},Ft.prototype._verify2=function(ht,bt){_e((ht.negative|bt.negative)===0,"red works only with positives"),_e(ht.red&&ht.red===bt.red,"red works only with red numbers")},Ft.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(st(ht,ht.umod(this.m)._forceRed(this)),ht)},Ft.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},Ft.prototype.add=function(ht,bt){this._verify2(ht,bt);var St=ht.add(bt);return St.cmp(this.m)>=0&&St.isub(this.m),St._forceRed(this)},Ft.prototype.iadd=function(ht,bt){this._verify2(ht,bt);var St=ht.iadd(bt);return St.cmp(this.m)>=0&&St.isub(this.m),St},Ft.prototype.sub=function(ht,bt){this._verify2(ht,bt);var St=ht.sub(bt);return St.cmpn(0)<0&&St.iadd(this.m),St._forceRed(this)},Ft.prototype.isub=function(ht,bt){this._verify2(ht,bt);var St=ht.isub(bt);return St.cmpn(0)<0&&St.iadd(this.m),St},Ft.prototype.shl=function(ht,bt){return this._verify1(ht),this.imod(ht.ushln(bt))},Ft.prototype.imul=function(ht,bt){return this._verify2(ht,bt),this.imod(ht.imul(bt))},Ft.prototype.mul=function(ht,bt){return this._verify2(ht,bt),this.imod(ht.mul(bt))},Ft.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},Ft.prototype.sqr=function(ht){return this.mul(ht,ht)},Ft.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var bt=this.m.andln(3);if(_e(bt%2===1),bt===3){var St=this.m.add(new tt(1)).iushrn(2);return this.pow(ht,St)}for(var vt=this.m.subn(1),At=0;!vt.isZero()&&vt.andln(1)===0;)At++,vt.iushrn(1);_e(!vt.isZero());var Tt=new tt(1).toRed(this),jt=Tt.redNeg(),Lt=this.m.subn(1).iushrn(1),Mt=this.m.bitLength();for(Mt=new tt(2*Mt*Mt).toRed(this);this.pow(Mt,Lt).cmp(jt)!==0;)Mt.redIAdd(jt);for(var $t=this.pow(Mt,vt),Ut=this.pow(ht,vt.addn(1).iushrn(1)),Gt=this.pow(ht,vt),Ht=At;Gt.cmp(Tt)!==0;){for(var tn=Gt,Jt=0;tn.cmp(Tt)!==0;Jt++)tn=tn.redSqr();_e(Jt=0;At--){for(var $t=bt.words[At],Ut=Mt-1;Ut>=0;Ut--){var Gt=$t>>Ut&1;if(Tt!==vt[0]&&(Tt=this.sqr(Tt)),Gt===0&&jt===0){Lt=0;continue}jt<<=1,jt|=Gt,Lt++,!(Lt!==St&&(At!==0||Ut!==0))&&(Tt=this.mul(Tt,vt[jt]),Lt=0,jt=0)}Mt=26}return Tt},Ft.prototype.convertTo=function(ht){var bt=ht.umod(this.m);return bt===ht?bt.clone():bt},Ft.prototype.convertFrom=function(ht){var bt=ht.clone();return bt.red=null,bt},tt.mont=function(ht){return new Pt(ht)};function Pt(Nt){Ft.call(this,Nt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}et(Pt,Ft),Pt.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Pt.prototype.convertFrom=function(ht){var bt=this.imod(ht.mul(this.rinv));return bt.red=null,bt},Pt.prototype.imul=function(ht,bt){if(ht.isZero()||bt.isZero())return ht.words[0]=0,ht.length=1,ht;var St=ht.imul(bt),vt=St.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=St.isub(vt).iushrn(this.shift),Tt=At;return At.cmp(this.m)>=0?Tt=At.isub(this.m):At.cmpn(0)<0&&(Tt=At.iadd(this.m)),Tt._forceRed(this)},Pt.prototype.mul=function(ht,bt){if(ht.isZero()||bt.isZero())return new tt(0)._forceRed(this);var St=ht.mul(bt),vt=St.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=St.isub(vt).iushrn(this.shift),Tt=At;return At.cmp(this.m)>=0?Tt=At.isub(this.m):At.cmpn(0)<0&&(Tt=At.iadd(this.m)),Tt._forceRed(this)},Pt.prototype.invm=function(ht){var bt=this.imod(ht._invmp(this.m).mul(this.r2));return bt._forceRed(this)}})(s,commonjsGlobal$1)})(bn);var bnExports=bn.exports;const BN=getDefaultExportFromCjs$1(bnExports);function setBigUint64(s,j,$,_e){if(typeof s.setBigUint64=="function")return s.setBigUint64(j,$,_e);const et=BigInt(32),tt=BigInt(4294967295),nt=Number($>>et&tt),rt=Number($&tt),ot=_e?4:0,it=_e?0:4;s.setUint32(j+ot,nt,_e),s.setUint32(j+it,rt,_e)}const Chi=(s,j,$)=>s&j^~s&$,Maj=(s,j,$)=>s&j^s&$^j&$;class HashMD extends Hash{constructor(j,$,_e,et){super(),this.blockLen=j,this.outputLen=$,this.padOffset=_e,this.isLE=et,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(j),this.view=createView(this.buffer)}update(j){exists(this);const{view:$,buffer:_e,blockLen:et}=this;j=toBytes(j);const tt=j.length;for(let nt=0;ntet-nt&&(this.process(_e,0),nt=0);for(let at=nt;atst.length)throw new Error("_sha2: outputLen bigger than state");for(let at=0;at>>3,ft=rotr(lt,17)^rotr(lt,19)^lt>>>10;SHA256_W[at]=ft+SHA256_W[at-7]+dt+SHA256_W[at-16]|0}let{A:_e,B:et,C:tt,D:nt,E:rt,F:ot,G:it,H:st}=this;for(let at=0;at<64;at++){const ct=rotr(rt,6)^rotr(rt,11)^rotr(rt,25),lt=st+ct+Chi(rt,ot,it)+SHA256_K[at]+SHA256_W[at]|0,ft=(rotr(_e,2)^rotr(_e,13)^rotr(_e,22))+Maj(_e,et,tt)|0;st=it,it=ot,ot=rt,rt=nt+lt|0,nt=tt,tt=et,et=_e,_e=lt+ft|0}_e=_e+this.A|0,et=et+this.B|0,tt=tt+this.C|0,nt=nt+this.D|0,rt=rt+this.E|0,ot=ot+this.F|0,it=it+this.G|0,st=st+this.H|0,this.set(_e,et,tt,nt,rt,ot,it,st)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const sha256=wrapConstructor(()=>new SHA256),sha224=wrapConstructor(()=>new SHA224),sha256$1=Object.freeze(Object.defineProperty({__proto__:null,sha224,sha256},Symbol.toStringTag,{value:"Module"}));var lib={};function inRange(s,j,$){return j<=s&&s<=$}function ToDictionary(s){if(s===void 0)return{};if(s===Object(s))return s;throw TypeError("Could not convert argument to dictionary")}function stringToCodePoints(s){for(var j=String(s),$=j.length,_e=0,et=[];_e<$;){var tt=j.charCodeAt(_e);if(tt<55296||tt>57343)et.push(tt);else if(56320<=tt&&tt<=57343)et.push(65533);else if(55296<=tt&&tt<=56319)if(_e===$-1)et.push(65533);else{var nt=s.charCodeAt(_e+1);if(56320<=nt&&nt<=57343){var rt=tt&1023,ot=nt&1023;et.push(65536+(rt<<10)+ot),_e+=1}else et.push(65533)}_e+=1}return et}function codePointsToString(s){for(var j="",$=0;$>10)+55296,(_e&1023)+56320))}return j}var end_of_stream=-1;function Stream(s){this.tokens=[].slice.call(s)}Stream.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():end_of_stream},prepend:function(s){if(Array.isArray(s))for(var j=s;j.length;)this.tokens.unshift(j.pop());else this.tokens.unshift(s)},push:function(s){if(Array.isArray(s))for(var j=s;j.length;)this.tokens.push(j.shift());else this.tokens.push(s)}};var finished=-1;function decoderError(s,j){if(s)throw TypeError("Decoder error");return j||65533}var DEFAULT_ENCODING="utf-8";function TextDecoder$1(s,j){if(!(this instanceof TextDecoder$1))return new TextDecoder$1(s,j);if(s=s!==void 0?String(s).toLowerCase():DEFAULT_ENCODING,s!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");j=ToDictionary(j),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!j.fatal,this._ignoreBOM=!!j.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}TextDecoder$1.prototype={decode:function(j,$){var _e;typeof j=="object"&&j instanceof ArrayBuffer?_e=new Uint8Array(j):typeof j=="object"&&"buffer"in j&&j.buffer instanceof ArrayBuffer?_e=new Uint8Array(j.buffer,j.byteOffset,j.byteLength):_e=new Uint8Array(0),$=ToDictionary($),this._streaming||(this._decoder=new UTF8Decoder({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!$.stream;for(var et=new Stream(_e),tt=[],nt;!et.endOfStream()&&(nt=this._decoder.handler(et,et.read()),nt!==finished);)nt!==null&&(Array.isArray(nt)?tt.push.apply(tt,nt):tt.push(nt));if(!this._streaming){do{if(nt=this._decoder.handler(et,et.read()),nt===finished)break;nt!==null&&(Array.isArray(nt)?tt.push.apply(tt,nt):tt.push(nt))}while(!et.endOfStream());this._decoder=null}return tt.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(tt[0]===65279?(this._BOMseen=!0,tt.shift()):this._BOMseen=!0),codePointsToString(tt)}};function TextEncoder$1(s,j){if(!(this instanceof TextEncoder$1))return new TextEncoder$1(s,j);if(s=s!==void 0?String(s).toLowerCase():DEFAULT_ENCODING,s!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");j=ToDictionary(j),this._streaming=!1,this._encoder=null,this._options={fatal:!!j.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}TextEncoder$1.prototype={encode:function(j,$){j=j?String(j):"",$=ToDictionary($),this._streaming||(this._encoder=new UTF8Encoder(this._options)),this._streaming=!!$.stream;for(var _e=[],et=new Stream(stringToCodePoints(j)),tt;!et.endOfStream()&&(tt=this._encoder.handler(et,et.read()),tt!==finished);)Array.isArray(tt)?_e.push.apply(_e,tt):_e.push(tt);if(!this._streaming){for(;tt=this._encoder.handler(et,et.read()),tt!==finished;)Array.isArray(tt)?_e.push.apply(_e,tt):_e.push(tt);this._encoder=null}return new Uint8Array(_e)}};function UTF8Decoder(s){var j=s.fatal,$=0,_e=0,et=0,tt=128,nt=191;this.handler=function(rt,ot){if(ot===end_of_stream&&et!==0)return et=0,decoderError(j);if(ot===end_of_stream)return finished;if(et===0){if(inRange(ot,0,127))return ot;if(inRange(ot,194,223))et=1,$=ot-192;else if(inRange(ot,224,239))ot===224&&(tt=160),ot===237&&(nt=159),et=2,$=ot-224;else if(inRange(ot,240,244))ot===240&&(tt=144),ot===244&&(nt=143),et=3,$=ot-240;else return decoderError(j);return $=$<<6*et,null}if(!inRange(ot,tt,nt))return $=et=_e=0,tt=128,nt=191,rt.prepend(ot),decoderError(j);if(tt=128,nt=191,_e+=1,$+=ot-128<<6*(et-_e),_e!==et)return null;var it=$;return $=et=_e=0,it}}function UTF8Encoder(s){s.fatal,this.handler=function(j,$){if($===end_of_stream)return finished;if(inRange($,0,127))return $;var _e,et;inRange($,128,2047)?(_e=1,et=192):inRange($,2048,65535)?(_e=2,et=224):inRange($,65536,1114111)&&(_e=3,et=240);for(var tt=[($>>6*_e)+et];_e>0;){var nt=$>>6*(_e-1);tt.push(128|nt&63),_e-=1}return tt}}const encoding$2=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:TextDecoder$1,TextEncoder:TextEncoder$1},Symbol.toStringTag,{value:"Module"})),require$$2=getAugmentedNamespace(encoding$2);var __createBinding=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(s,j,$,_e){_e===void 0&&(_e=$),Object.defineProperty(s,_e,{enumerable:!0,get:function(){return j[$]}})}:function(s,j,$,_e){_e===void 0&&(_e=$),s[_e]=j[$]}),__setModuleDefault=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(s,j){Object.defineProperty(s,"default",{enumerable:!0,value:j})}:function(s,j){s.default=j}),__decorate=commonjsGlobal$1&&commonjsGlobal$1.__decorate||function(s,j,$,_e){var et=arguments.length,tt=et<3?j:_e===null?_e=Object.getOwnPropertyDescriptor(j,$):_e,nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(s,j,$,_e);else for(var rt=s.length-1;rt>=0;rt--)(nt=s[rt])&&(tt=(et<3?nt(tt):et>3?nt(j,$,tt):nt(j,$))||tt);return et>3&&tt&&Object.defineProperty(j,$,tt),tt},__importStar=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(s){if(s&&s.__esModule)return s;var j={};if(s!=null)for(var $ in s)$!=="default"&&Object.hasOwnProperty.call(s,$)&&__createBinding(j,s,$);return __setModuleDefault(j,s),j},__importDefault$3=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(lib,"__esModule",{value:!0});var deserializeUnchecked_1=lib.deserializeUnchecked=deserialize_1=lib.deserialize=serialize_1=lib.serialize=lib.BinaryReader=lib.BinaryWriter=lib.BorshError=lib.baseDecode=lib.baseEncode=void 0;const bn_js_1=__importDefault$3(bnExports),bs58_1$1=__importDefault$3(bs58),encoding$1=__importStar(require$$2),ResolvedTextDecoder=typeof TextDecoder!="function"?encoding$1.TextDecoder:TextDecoder,textDecoder=new ResolvedTextDecoder("utf-8",{fatal:!0});function baseEncode(s){return typeof s=="string"&&(s=Buffer.from(s,"utf8")),bs58_1$1.default.encode(Buffer.from(s))}lib.baseEncode=baseEncode;function baseDecode(s){return Buffer.from(bs58_1$1.default.decode(s))}lib.baseDecode=baseDecode;const INITIAL_LENGTH=1024;class BorshError extends Error{constructor(j){super(j),this.fieldPath=[],this.originalMessage=j}addToFieldPath(j){this.fieldPath.splice(0,0,j),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}lib.BorshError=BorshError;class BinaryWriter{constructor(){this.buf=Buffer.alloc(INITIAL_LENGTH),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(INITIAL_LENGTH)]))}writeU8(j){this.maybeResize(),this.buf.writeUInt8(j,this.length),this.length+=1}writeU16(j){this.maybeResize(),this.buf.writeUInt16LE(j,this.length),this.length+=2}writeU32(j){this.maybeResize(),this.buf.writeUInt32LE(j,this.length),this.length+=4}writeU64(j){this.maybeResize(),this.writeBuffer(Buffer.from(new bn_js_1.default(j).toArray("le",8)))}writeU128(j){this.maybeResize(),this.writeBuffer(Buffer.from(new bn_js_1.default(j).toArray("le",16)))}writeU256(j){this.maybeResize(),this.writeBuffer(Buffer.from(new bn_js_1.default(j).toArray("le",32)))}writeU512(j){this.maybeResize(),this.writeBuffer(Buffer.from(new bn_js_1.default(j).toArray("le",64)))}writeBuffer(j){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),j,Buffer.alloc(INITIAL_LENGTH)]),this.length+=j.length}writeString(j){this.maybeResize();const $=Buffer.from(j,"utf8");this.writeU32($.length),this.writeBuffer($)}writeFixedArray(j){this.writeBuffer(Buffer.from(j))}writeArray(j,$){this.maybeResize(),this.writeU32(j.length);for(const _e of j)this.maybeResize(),$(_e)}toArray(){return this.buf.subarray(0,this.length)}}lib.BinaryWriter=BinaryWriter;function handlingRangeError(s,j,$){const _e=$.value;$.value=function(...et){try{return _e.apply(this,et)}catch(tt){if(tt instanceof RangeError){const nt=tt.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(nt)>=0)throw new BorshError("Reached the end of buffer when deserializing")}throw tt}}}let BinaryReader$2=class{constructor(j){this.buf=j,this.offset=0}readU8(){const j=this.buf.readUInt8(this.offset);return this.offset+=1,j}readU16(){const j=this.buf.readUInt16LE(this.offset);return this.offset+=2,j}readU32(){const j=this.buf.readUInt32LE(this.offset);return this.offset+=4,j}readU64(){const j=this.readBuffer(8);return new bn_js_1.default(j,"le")}readU128(){const j=this.readBuffer(16);return new bn_js_1.default(j,"le")}readU256(){const j=this.readBuffer(32);return new bn_js_1.default(j,"le")}readU512(){const j=this.readBuffer(64);return new bn_js_1.default(j,"le")}readBuffer(j){if(this.offset+j>this.buf.length)throw new BorshError(`Expected buffer length ${j} isn't within bounds`);const $=this.buf.slice(this.offset,this.offset+j);return this.offset+=j,$}readString(){const j=this.readU32(),$=this.readBuffer(j);try{return textDecoder.decode($)}catch(_e){throw new BorshError(`Error decoding UTF-8 string: ${_e}`)}}readFixedArray(j){return new Uint8Array(this.readBuffer(j))}readArray(j){const $=this.readU32(),_e=Array();for(let et=0;et<$;++et)_e.push(j());return _e}};__decorate([handlingRangeError],BinaryReader$2.prototype,"readU8",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU16",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU32",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU64",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU128",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU256",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readU512",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readString",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readFixedArray",null);__decorate([handlingRangeError],BinaryReader$2.prototype,"readArray",null);lib.BinaryReader=BinaryReader$2;function capitalizeFirstLetter(s){return s.charAt(0).toUpperCase()+s.slice(1)}function serializeField(s,j,$,_e,et){try{if(typeof _e=="string")et[`write${capitalizeFirstLetter(_e)}`]($);else if(_e instanceof Array)if(typeof _e[0]=="number"){if($.length!==_e[0])throw new BorshError(`Expecting byte array of length ${_e[0]}, but got ${$.length} bytes`);et.writeFixedArray($)}else if(_e.length===2&&typeof _e[1]=="number"){if($.length!==_e[1])throw new BorshError(`Expecting byte array of length ${_e[1]}, but got ${$.length} bytes`);for(let tt=0;tt<_e[1];tt++)serializeField(s,null,$[tt],_e[0],et)}else et.writeArray($,tt=>{serializeField(s,j,tt,_e[0],et)});else if(_e.kind!==void 0)switch(_e.kind){case"option":{$==null?et.writeU8(0):(et.writeU8(1),serializeField(s,j,$,_e.type,et));break}case"map":{et.writeU32($.size),$.forEach((tt,nt)=>{serializeField(s,j,nt,_e.key,et),serializeField(s,j,tt,_e.value,et)});break}default:throw new BorshError(`FieldType ${_e} unrecognized`)}else serializeStruct(s,$,et)}catch(tt){throw tt instanceof BorshError&&tt.addToFieldPath(j),tt}}function serializeStruct(s,j,$){if(typeof j.borshSerialize=="function"){j.borshSerialize($);return}const _e=s.get(j.constructor);if(!_e)throw new BorshError(`Class ${j.constructor.name} is missing in schema`);if(_e.kind==="struct")_e.fields.map(([et,tt])=>{serializeField(s,et,j[et],tt,$)});else if(_e.kind==="enum"){const et=j[_e.field];for(let tt=0;tt<_e.values.length;++tt){const[nt,rt]=_e.values[tt];if(nt===et){$.writeU8(tt),serializeField(s,nt,j[nt],rt,$);break}}}else throw new BorshError(`Unexpected schema kind: ${_e.kind} for ${j.constructor.name}`)}function serialize$1(s,j,$=BinaryWriter){const _e=new $;return serializeStruct(s,j,_e),_e.toArray()}var serialize_1=lib.serialize=serialize$1;function deserializeField(s,j,$,_e){try{if(typeof $=="string")return _e[`read${capitalizeFirstLetter($)}`]();if($ instanceof Array){if(typeof $[0]=="number")return _e.readFixedArray($[0]);if(typeof $[1]=="number"){const et=[];for(let tt=0;tt<$[1];tt++)et.push(deserializeField(s,null,$[0],_e));return et}else return _e.readArray(()=>deserializeField(s,j,$[0],_e))}if($.kind==="option")return _e.readU8()?deserializeField(s,j,$.type,_e):void 0;if($.kind==="map"){let et=new Map;const tt=_e.readU32();for(let nt=0;nt=_e.values.length)throw new BorshError(`Enum index: ${et} is out of range`);const[tt,nt]=_e.values[et],rt=deserializeField(s,tt,nt,$);return new j({[tt]:rt})}throw new BorshError(`Unexpected schema kind: ${_e.kind} for ${j.constructor.name}`)}function deserialize$1(s,j,$,_e=BinaryReader$2){const et=new _e($),tt=deserializeStruct(s,j,et);if(et.offset<$.length)throw new BorshError(`Unexpected ${$.length-et.offset} bytes after deserialized data`);return tt}var deserialize_1=lib.deserialize=deserialize$1;function deserializeUnchecked(s,j,$,_e=BinaryReader$2){const et=new _e($);return deserializeStruct(s,j,et)}deserializeUnchecked_1=lib.deserializeUnchecked=deserializeUnchecked;var Layout$1={};Object.defineProperty(Layout$1,"__esModule",{value:!0});Layout$1.s16=Layout$1.s8=Layout$1.nu64be=Layout$1.u48be=Layout$1.u40be=Layout$1.u32be=Layout$1.u24be=Layout$1.u16be=nu64=Layout$1.nu64=Layout$1.u48=Layout$1.u40=u32=Layout$1.u32=Layout$1.u24=u16=Layout$1.u16=u8=Layout$1.u8=offset=Layout$1.offset=Layout$1.greedy=Layout$1.Constant=Layout$1.UTF8=Layout$1.CString=Layout$1.Blob=Layout$1.Boolean=Layout$1.BitField=Layout$1.BitStructure=Layout$1.VariantLayout=Layout$1.Union=Layout$1.UnionLayoutDiscriminator=Layout$1.UnionDiscriminator=Layout$1.Structure=Layout$1.Sequence=Layout$1.DoubleBE=Layout$1.Double=Layout$1.FloatBE=Layout$1.Float=Layout$1.NearInt64BE=Layout$1.NearInt64=Layout$1.NearUInt64BE=Layout$1.NearUInt64=Layout$1.IntBE=Layout$1.Int=Layout$1.UIntBE=Layout$1.UInt=Layout$1.OffsetLayout=Layout$1.GreedyCount=Layout$1.ExternalLayout=Layout$1.bindConstructorLayout=Layout$1.nameWithProperty=Layout$1.Layout=Layout$1.uint8ArrayToBuffer=Layout$1.checkUint8Array=void 0;Layout$1.constant=Layout$1.utf8=Layout$1.cstr=blob=Layout$1.blob=Layout$1.unionLayoutDiscriminator=Layout$1.union=seq=Layout$1.seq=Layout$1.bits=struct=Layout$1.struct=Layout$1.f64be=Layout$1.f64=Layout$1.f32be=Layout$1.f32=Layout$1.ns64be=Layout$1.s48be=Layout$1.s40be=Layout$1.s32be=Layout$1.s24be=Layout$1.s16be=ns64=Layout$1.ns64=Layout$1.s48=Layout$1.s40=Layout$1.s32=Layout$1.s24=void 0;const buffer_1$1=buffer;function checkUint8Array(s){if(!(s instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}Layout$1.checkUint8Array=checkUint8Array;function uint8ArrayToBuffer(s){return checkUint8Array(s),buffer_1$1.Buffer.from(s.buffer,s.byteOffset,s.length)}Layout$1.uint8ArrayToBuffer=uint8ArrayToBuffer;class Layout{constructor(j,$){if(!Number.isInteger(j))throw new TypeError("span must be an integer");this.span=j,this.property=$}makeDestinationObject(){return{}}getSpan(j,$){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(j){const $=Object.create(this.constructor.prototype);return Object.assign($,this),$.property=j,$}fromArray(j){}}Layout$1.Layout=Layout;function nameWithProperty(s,j){return j.property?s+"["+j.property+"]":s}Layout$1.nameWithProperty=nameWithProperty;function bindConstructorLayout(s,j){if(typeof s!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(s,"layout_"))throw new Error("Class is already bound to a layout");if(!(j&&j instanceof Layout))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(j,"boundConstructor_"))throw new Error("layout is already bound to a constructor");s.layout_=j,j.boundConstructor_=s,j.makeDestinationObject=()=>new s,Object.defineProperty(s.prototype,"encode",{value($,_e){return j.encode(this,$,_e)},writable:!0}),Object.defineProperty(s,"decode",{value($,_e){return j.decode($,_e)},writable:!0})}Layout$1.bindConstructorLayout=bindConstructorLayout;class ExternalLayout extends Layout{isCount(){throw new Error("ExternalLayout is abstract")}}Layout$1.ExternalLayout=ExternalLayout;class GreedyCount extends ExternalLayout{constructor(j=1,$){if(!Number.isInteger(j)||0>=j)throw new TypeError("elementSpan must be a (positive) integer");super(-1,$),this.elementSpan=j}isCount(){return!0}decode(j,$=0){checkUint8Array(j);const _e=j.length-$;return Math.floor(_e/this.elementSpan)}encode(j,$,_e){return 0}}Layout$1.GreedyCount=GreedyCount;class OffsetLayout extends ExternalLayout{constructor(j,$=0,_e){if(!(j instanceof Layout))throw new TypeError("layout must be a Layout");if(!Number.isInteger($))throw new TypeError("offset must be integer or undefined");super(j.span,_e||j.property),this.layout=j,this.offset=$}isCount(){return this.layout instanceof UInt||this.layout instanceof UIntBE}decode(j,$=0){return this.layout.decode(j,$+this.offset)}encode(j,$,_e=0){return this.layout.encode(j,$,_e+this.offset)}}Layout$1.OffsetLayout=OffsetLayout;class UInt extends Layout{constructor(j,$){if(super(j,$),6nt+et.encode(rt,$,_e+nt),0);return this.count instanceof ExternalLayout&&this.count.encode(j.length,$,_e),tt}}Layout$1.Sequence=Sequence;class Structure extends Layout{constructor(j,$,_e){if(!(Array.isArray(j)&&j.reduce((tt,nt)=>tt&&nt instanceof Layout,!0)))throw new TypeError("fields must be array of Layout instances");typeof $=="boolean"&&_e===void 0&&(_e=$,$=void 0);for(const tt of j)if(0>tt.span&&tt.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let et=-1;try{et=j.reduce((tt,nt)=>tt+nt.getSpan(),0)}catch{}super(et,$),this.fields=j,this.decodePrefixes=!!_e}getSpan(j,$=0){if(0<=this.span)return this.span;let _e=0;try{_e=this.fields.reduce((et,tt)=>{const nt=tt.getSpan(j,$);return $+=nt,et+nt},0)}catch{throw new RangeError("indeterminate span")}return _e}decode(j,$=0){checkUint8Array(j);const _e=this.makeDestinationObject();for(const et of this.fields)if(et.property!==void 0&&(_e[et.property]=et.decode(j,$)),$+=et.getSpan(j,$),this.decodePrefixes&&j.length===$)break;return _e}encode(j,$,_e=0){const et=_e;let tt=0,nt=0;for(const rt of this.fields){let ot=rt.span;if(nt=0ot&&(ot=rt.getSpan($,_e)))}tt=_e,_e+=ot}return tt+nt-et}fromArray(j){const $=this.makeDestinationObject();for(const _e of this.fields)_e.property!==void 0&&0_e.span?$=-1:0<=$&&($+=_e.span)}}}Layout$1.Structure=Structure;class UnionDiscriminator{constructor(j){this.property=j}decode(j,$){throw new Error("UnionDiscriminator is abstract")}encode(j,$,_e){throw new Error("UnionDiscriminator is abstract")}}Layout$1.UnionDiscriminator=UnionDiscriminator;class UnionLayoutDiscriminator extends UnionDiscriminator{constructor(j,$){if(!(j instanceof ExternalLayout&&j.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super($||j.property||"variant"),this.layout=j}decode(j,$){return this.layout.decode(j,$)}encode(j,$,_e){return this.layout.encode(j,$,_e)}}Layout$1.UnionLayoutDiscriminator=UnionLayoutDiscriminator;class Union extends Layout{constructor(j,$,_e){let et;if(j instanceof UInt||j instanceof UIntBE)et=new UnionLayoutDiscriminator(new OffsetLayout(j));else if(j instanceof ExternalLayout&&j.isCount())et=new UnionLayoutDiscriminator(j);else if(j instanceof UnionDiscriminator)et=j;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if($===void 0&&($=null),!($===null||$ instanceof Layout))throw new TypeError("defaultLayout must be null or a Layout");if($!==null){if(0>$.span)throw new Error("defaultLayout must have constant span");$.property===void 0&&($=$.replicate("content"))}let tt=-1;$&&(tt=$.span,0<=tt&&(j instanceof UInt||j instanceof UIntBE)&&(tt+=et.layout.span)),super(tt,_e),this.discriminator=et,this.usesPrefixDiscriminator=j instanceof UInt||j instanceof UIntBE,this.defaultLayout=$,this.registry={};let nt=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(rt){return nt(rt)},this.configGetSourceVariant=function(rt){nt=rt.bind(this)}}getSpan(j,$=0){if(0<=this.span)return this.span;const _e=this.getVariant(j,$);if(!_e)throw new Error("unable to determine span for unrecognized variant");return _e.getSpan(j,$)}defaultGetSourceVariant(j){if(Object.prototype.hasOwnProperty.call(j,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(j,this.defaultLayout.property))return;const $=this.registry[j[this.discriminator.property]];if($&&(!$.layout||$.property&&Object.prototype.hasOwnProperty.call(j,$.property)))return $}else for(const $ in this.registry){const _e=this.registry[$];if(_e.property&&Object.prototype.hasOwnProperty.call(j,_e.property))return _e}throw new Error("unable to infer src variant")}decode(j,$=0){let _e;const et=this.discriminator,tt=et.decode(j,$),nt=this.registry[tt];if(nt===void 0){const rt=this.defaultLayout;let ot=0;this.usesPrefixDiscriminator&&(ot=et.layout.span),_e=this.makeDestinationObject(),_e[et.property]=tt,_e[rt.property]=rt.decode(j,$+ot)}else _e=nt.decode(j,$);return _e}encode(j,$,_e=0){const et=this.getSourceVariant(j);if(et===void 0){const tt=this.discriminator,nt=this.defaultLayout;let rt=0;return this.usesPrefixDiscriminator&&(rt=tt.layout.span),tt.encode(j[tt.property],$,_e),rt+nt.encode(j[nt.property],$,_e+rt)}return et.encode(j,$,_e)}addVariant(j,$,_e){const et=new VariantLayout(this,j,$,_e);return this.registry[j]=et,et}getVariant(j,$=0){let _e;return j instanceof Uint8Array?_e=this.discriminator.decode(j,$):_e=j,this.registry[_e]}}Layout$1.Union=Union;class VariantLayout extends Layout{constructor(j,$,_e,et){if(!(j instanceof Union))throw new TypeError("union must be a Union");if(!Number.isInteger($)||0>$)throw new TypeError("variant must be a (non-negative) integer");if(typeof _e=="string"&&et===void 0&&(et=_e,_e=null),_e){if(!(_e instanceof Layout))throw new TypeError("layout must be a Layout");if(j.defaultLayout!==null&&0<=_e.span&&_e.span>j.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof et!="string")throw new TypeError("variant must have a String property")}let tt=j.span;0>j.span&&(tt=_e?_e.span:0,0<=tt&&j.usesPrefixDiscriminator&&(tt+=j.discriminator.layout.span)),super(tt,et),this.union=j,this.variant=$,this.layout=_e||null}getSpan(j,$=0){if(0<=this.span)return this.span;let _e=0;this.union.usesPrefixDiscriminator&&(_e=this.union.discriminator.layout.span);let et=0;return this.layout&&(et=this.layout.getSpan(j,$+_e)),_e+et}decode(j,$=0){const _e=this.makeDestinationObject();if(this!==this.union.getVariant(j,$))throw new Error("variant mismatch");let et=0;return this.union.usesPrefixDiscriminator&&(et=this.union.discriminator.layout.span),this.layout?_e[this.property]=this.layout.decode(j,$+et):this.property?_e[this.property]=!0:this.union.usesPrefixDiscriminator&&(_e[this.union.discriminator.property]=this.variant),_e}encode(j,$,_e=0){let et=0;if(this.union.usesPrefixDiscriminator&&(et=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(j,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,$,_e);let tt=et;if(this.layout&&(this.layout.encode(j[this.property],$,_e+et),tt+=this.layout.getSpan($,_e+et),0<=this.union.span&&tt>this.union.span))throw new Error("encoded variant overruns containing union");return tt}fromArray(j){if(this.layout)return this.layout.fromArray(j)}}Layout$1.VariantLayout=VariantLayout;function fixBitwiseResult(s){return 0>s&&(s+=4294967296),s}class BitStructure extends Layout{constructor(j,$,_e){if(!(j instanceof UInt||j instanceof UIntBE))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof $=="string"&&_e===void 0&&(_e=$,$=!1),4=$)throw new TypeError("bits must be positive integer");const et=8*j.span,tt=j.fields.reduce((nt,rt)=>nt+rt.bits,0);if($+tt>et)throw new Error("bits too long for span remainder ("+(et-tt)+" of "+et+" remain)");this.container=j,this.bits=$,this.valueMask=(1<<$)-1,$===32&&(this.valueMask=4294967295),this.start=tt,this.container.msb&&(this.start=et-tt-$),this.wordMask=fixBitwiseResult(this.valueMask<>>this.start}encode(j){if(typeof j!="number"||!Number.isInteger(j)||j!==fixBitwiseResult(j&this.valueMask))throw new TypeError(nameWithProperty("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const $=this.container._packedGetValue(),_e=fixBitwiseResult(j<_e&&(_e=this.length.decode(j,$)),_e}decode(j,$=0){let _e=this.span;return 0>_e&&(_e=this.length.decode(j,$)),uint8ArrayToBuffer(j).slice($,$+_e)}encode(j,$,_e){let et=this.length;if(this.length instanceof ExternalLayout&&(et=j.length),!(j instanceof Uint8Array&&et===j.length))throw new TypeError(nameWithProperty("Blob.encode",this)+" requires (length "+et+") Uint8Array as src");if(_e+et>$.length)throw new RangeError("encoding overruns Uint8Array");const tt=uint8ArrayToBuffer(j);return uint8ArrayToBuffer($).write(tt.toString("hex"),_e,et,"hex"),this.length instanceof ExternalLayout&&this.length.encode(et,$,_e),et}};Layout$1.Blob=Blob$2;class CString extends Layout{constructor(j){super(-1,j)}getSpan(j,$=0){checkUint8Array(j);let _e=$;for(;_e$.length)throw new RangeError("encoding overruns Buffer");const nt=uint8ArrayToBuffer($);return et.copy(nt,_e),nt[_e+tt]=0,tt+1}}Layout$1.CString=CString;class UTF8 extends Layout{constructor(j,$){if(typeof j=="string"&&$===void 0&&($=j,j=void 0),j===void 0)j=-1;else if(!Number.isInteger(j))throw new TypeError("maxSpan must be an integer");super(-1,$),this.maxSpan=j}getSpan(j,$=0){return checkUint8Array(j),j.length-$}decode(j,$=0){const _e=this.getSpan(j,$);if(0<=this.maxSpan&&this.maxSpan<_e)throw new RangeError("text length exceeds maxSpan");return uint8ArrayToBuffer(j).slice($,$+_e).toString("utf-8")}encode(j,$,_e=0){typeof j!="string"&&(j=String(j));const et=buffer_1$1.Buffer.from(j,"utf8"),tt=et.length;if(0<=this.maxSpan&&this.maxSpan$.length)throw new RangeError("encoding overruns Buffer");return et.copy(uint8ArrayToBuffer($),_e),tt}}Layout$1.UTF8=UTF8;class Constant extends Layout{constructor(j,$){super(0,$),this.value=j}decode(j,$){return this.value}encode(j,$,_e){return 0}}Layout$1.Constant=Constant;Layout$1.greedy=(s,j)=>new GreedyCount(s,j);var offset=Layout$1.offset=(s,j,$)=>new OffsetLayout(s,j,$),u8=Layout$1.u8=s=>new UInt(1,s),u16=Layout$1.u16=s=>new UInt(2,s);Layout$1.u24=s=>new UInt(3,s);var u32=Layout$1.u32=s=>new UInt(4,s);Layout$1.u40=s=>new UInt(5,s);Layout$1.u48=s=>new UInt(6,s);var nu64=Layout$1.nu64=s=>new NearUInt64(s);Layout$1.u16be=s=>new UIntBE(2,s);Layout$1.u24be=s=>new UIntBE(3,s);Layout$1.u32be=s=>new UIntBE(4,s);Layout$1.u40be=s=>new UIntBE(5,s);Layout$1.u48be=s=>new UIntBE(6,s);Layout$1.nu64be=s=>new NearUInt64BE(s);Layout$1.s8=s=>new Int(1,s);Layout$1.s16=s=>new Int(2,s);Layout$1.s24=s=>new Int(3,s);Layout$1.s32=s=>new Int(4,s);Layout$1.s40=s=>new Int(5,s);Layout$1.s48=s=>new Int(6,s);var ns64=Layout$1.ns64=s=>new NearInt64(s);Layout$1.s16be=s=>new IntBE(2,s);Layout$1.s24be=s=>new IntBE(3,s);Layout$1.s32be=s=>new IntBE(4,s);Layout$1.s40be=s=>new IntBE(5,s);Layout$1.s48be=s=>new IntBE(6,s);Layout$1.ns64be=s=>new NearInt64BE(s);Layout$1.f32=s=>new Float(s);Layout$1.f32be=s=>new FloatBE(s);Layout$1.f64=s=>new Double(s);Layout$1.f64be=s=>new DoubleBE(s);var struct=Layout$1.struct=(s,j,$)=>new Structure(s,j,$);Layout$1.bits=(s,j,$)=>new BitStructure(s,j,$);var seq=Layout$1.seq=(s,j,$)=>new Sequence(s,j,$);Layout$1.union=(s,j,$)=>new Union(s,j,$);Layout$1.unionLayoutDiscriminator=(s,j)=>new UnionLayoutDiscriminator(s,j);var blob=Layout$1.blob=(s,j)=>new Blob$2(s,j);Layout$1.cstr=s=>new CString(s);Layout$1.utf8=(s,j)=>new UTF8(s,j);Layout$1.constant=(s,j)=>new Constant(s,j);var browser$1={};Object.defineProperty(browser$1,"__esModule",{value:!0});function toBigIntLE(s){{const j=Buffer.from(s);j.reverse();const $=j.toString("hex");return $.length===0?BigInt(0):BigInt(`0x${$}`)}}var toBigIntLE_1=browser$1.toBigIntLE=toBigIntLE;function toBigIntBE(s){{const j=s.toString("hex");return j.length===0?BigInt(0):BigInt(`0x${j}`)}}browser$1.toBigIntBE=toBigIntBE;function toBufferLE(s,j){{const $=s.toString(16),_e=Buffer.from($.padStart(j*2,"0").slice(0,j*2),"hex");return _e.reverse(),_e}}var toBufferLE_1=browser$1.toBufferLE=toBufferLE;function toBufferBE(s,j){{const $=s.toString(16);return Buffer.from($.padStart(j*2,"0").slice(0,j*2),"hex")}}browser$1.toBufferBE=toBufferBE;class StructError extends TypeError{constructor(j,$){let _e;const{message:et,explanation:tt,...nt}=j,{path:rt}=j,ot=rt.length===0?et:`At path: ${rt.join(".")} -- ${et}`;super(tt??ot),tt!=null&&(this.cause=ot),Object.assign(this,nt),this.name=this.constructor.name,this.failures=()=>_e??(_e=[j,...$()])}}function isIterable(s){return isObject$1(s)&&typeof s[Symbol.iterator]=="function"}function isObject$1(s){return typeof s=="object"&&s!=null}function isNonArrayObject(s){return isObject$1(s)&&!Array.isArray(s)}function print(s){return typeof s=="symbol"?s.toString():typeof s=="string"?JSON.stringify(s):`${s}`}function shiftIterator(s){const{done:j,value:$}=s.next();return j?void 0:$}function toFailure(s,j,$,_e){if(s===!0)return;s===!1?s={}:typeof s=="string"&&(s={message:s});const{path:et,branch:tt}=j,{type:nt}=$,{refinement:rt,message:ot=`Expected a value of type \`${nt}\`${rt?` with refinement \`${rt}\``:""}, but received: \`${print(_e)}\``}=s;return{value:_e,type:nt,refinement:rt,key:et[et.length-1],path:et,branch:tt,...s,message:ot}}function*toFailures(s,j,$,_e){isIterable(s)||(s=[s]);for(const et of s){const tt=toFailure(et,j,$,_e);tt&&(yield tt)}}function*run(s,j,$={}){const{path:_e=[],branch:et=[s],coerce:tt=!1,mask:nt=!1}=$,rt={path:_e,branch:et,mask:nt};tt&&(s=j.coercer(s,rt));let ot="valid";for(const it of j.validator(s,rt))it.explanation=$.message,ot="not_valid",yield[it,void 0];for(let[it,st,at]of j.entries(s,rt)){const ct=run(st,at,{path:it===void 0?_e:[..._e,it],branch:it===void 0?et:[...et,st],coerce:tt,mask:nt,message:$.message});for(const lt of ct)lt[0]?(ot=lt[0].refinement!=null?"not_refined":"not_valid",yield[lt[0],void 0]):tt&&(st=lt[1],it===void 0?s=st:s instanceof Map?s.set(it,st):s instanceof Set?s.add(st):isObject$1(s)&&(st!==void 0||it in s)&&(s[it]=st))}if(ot!=="not_valid")for(const it of j.refiner(s,rt))it.explanation=$.message,ot="not_refined",yield[it,void 0];ot==="valid"&&(yield[void 0,s])}let Struct$1=class{constructor(j){const{type:$,schema:_e,validator:et,refiner:tt,coercer:nt=ot=>ot,entries:rt=function*(){}}=j;this.type=$,this.schema=_e,this.entries=rt,this.coercer=nt,et?this.validator=(ot,it)=>{const st=et(ot,it);return toFailures(st,it,this,ot)}:this.validator=()=>[],tt?this.refiner=(ot,it)=>{const st=tt(ot,it);return toFailures(st,it,this,ot)}:this.refiner=()=>[]}assert(j,$){return assert$1(j,this,$)}create(j,$){return create$4(j,this,$)}is(j){return is(j,this)}mask(j,$){return mask(j,this,$)}validate(j,$={}){return validate$1(j,this,$)}};function assert$1(s,j,$){const _e=validate$1(s,j,{message:$});if(_e[0])throw _e[0]}function create$4(s,j,$){const _e=validate$1(s,j,{coerce:!0,message:$});if(_e[0])throw _e[0];return _e[1]}function mask(s,j,$){const _e=validate$1(s,j,{coerce:!0,mask:!0,message:$});if(_e[0])throw _e[0];return _e[1]}function is(s,j){return!validate$1(s,j)[0]}function validate$1(s,j,$={}){const _e=run(s,j,$),et=shiftIterator(_e);return et[0]?[new StructError(et[0],function*(){for(const nt of _e)nt[0]&&(yield nt[0])}),void 0]:[void 0,et[1]]}function define(s,j){return new Struct$1({type:s,schema:null,validator:j})}function any(){return define("any",()=>!0)}function array$1(s){return new Struct$1({type:"array",schema:s,*entries(j){if(s&&Array.isArray(j))for(const[$,_e]of j.entries())yield[$,_e,s]},coercer(j){return Array.isArray(j)?j.slice():j},validator(j){return Array.isArray(j)||`Expected an array value, but received: ${print(j)}`}})}function boolean$1(){return define("boolean",s=>typeof s=="boolean")}function instance(s){return define("instance",j=>j instanceof s||`Expected a \`${s.name}\` instance, but received: ${print(j)}`)}function literal(s){const j=print(s),$=typeof s;return new Struct$1({type:"literal",schema:$==="string"||$==="number"||$==="boolean"?s:null,validator(_e){return _e===s||`Expected the literal \`${j}\`, but received: ${print(_e)}`}})}function never(){return define("never",()=>!1)}function nullable(s){return new Struct$1({...s,validator:(j,$)=>j===null||s.validator(j,$),refiner:(j,$)=>j===null||s.refiner(j,$)})}function number(){return define("number",s=>typeof s=="number"&&!isNaN(s)||`Expected a number, but received: ${print(s)}`)}function optional(s){return new Struct$1({...s,validator:(j,$)=>j===void 0||s.validator(j,$),refiner:(j,$)=>j===void 0||s.refiner(j,$)})}function record(s,j){return new Struct$1({type:"record",schema:null,*entries($){if(isObject$1($))for(const _e in $){const et=$[_e];yield[_e,_e,s],yield[_e,et,j]}},validator($){return isNonArrayObject($)||`Expected an object, but received: ${print($)}`},coercer($){return isNonArrayObject($)?{...$}:$}})}function string$1(){return define("string",s=>typeof s=="string"||`Expected a string, but received: ${print(s)}`)}function tuple(s){const j=never();return new Struct$1({type:"tuple",schema:null,*entries($){if(Array.isArray($)){const _e=Math.max(s.length,$.length);for(let et=0;et<_e;et++)yield[et,$[et],s[et]||j]}},validator($){return Array.isArray($)||`Expected an array, but received: ${print($)}`},coercer($){return Array.isArray($)?$.slice():$}})}function type(s){const j=Object.keys(s);return new Struct$1({type:"type",schema:s,*entries($){if(isObject$1($))for(const _e of j)yield[_e,$[_e],s[_e]]},validator($){return isNonArrayObject($)||`Expected an object, but received: ${print($)}`},coercer($){return isNonArrayObject($)?{...$}:$}})}function union(s){const j=s.map($=>$.type).join(" | ");return new Struct$1({type:"union",schema:null,coercer($,_e){for(const et of s){const[tt,nt]=et.validate($,{coerce:!0,mask:_e.mask});if(!tt)return nt}return $},validator($,_e){const et=[];for(const tt of s){const[...nt]=run($,tt,_e),[rt]=nt;if(rt[0])for(const[ot]of nt)ot&&et.push(ot);else return[]}return[`Expected the value to satisfy a union of \`${j}\`, but received: ${print($)}`,...et]}})}function unknown(){return define("unknown",()=>!0)}function coerce(s,j,$){return new Struct$1({...s,coercer:(_e,et)=>is(_e,j)?s.coercer($(_e,et),et):s.coercer(_e,et)})}var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(s){return typeof s=="string"&®EX.test(s)}var byteToHex=[];for(var i$1=0;i$1<256;++i$1)byteToHex.push((i$1+256).toString(16).substr(1));function stringify(s){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$=(byteToHex[s[j+0]]+byteToHex[s[j+1]]+byteToHex[s[j+2]]+byteToHex[s[j+3]]+"-"+byteToHex[s[j+4]]+byteToHex[s[j+5]]+"-"+byteToHex[s[j+6]]+byteToHex[s[j+7]]+"-"+byteToHex[s[j+8]]+byteToHex[s[j+9]]+"-"+byteToHex[s[j+10]]+byteToHex[s[j+11]]+byteToHex[s[j+12]]+byteToHex[s[j+13]]+byteToHex[s[j+14]]+byteToHex[s[j+15]]).toLowerCase();if(!validate($))throw TypeError("Stringified UUID is invalid");return $}var _nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1(s,j,$){var _e=j&&$||0,et=j||new Array(16);s=s||{};var tt=s.node||_nodeId,nt=s.clockseq!==void 0?s.clockseq:_clockseq;if(tt==null||nt==null){var rt=s.random||(s.rng||rng)();tt==null&&(tt=_nodeId=[rt[0]|1,rt[1],rt[2],rt[3],rt[4],rt[5]]),nt==null&&(nt=_clockseq=(rt[6]<<8|rt[7])&16383)}var ot=s.msecs!==void 0?s.msecs:Date.now(),it=s.nsecs!==void 0?s.nsecs:_lastNSecs+1,st=ot-_lastMSecs+(it-_lastNSecs)/1e4;if(st<0&&s.clockseq===void 0&&(nt=nt+1&16383),(st<0||ot>_lastMSecs)&&s.nsecs===void 0&&(it=0),it>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=ot,_lastNSecs=it,_clockseq=nt,ot+=122192928e5;var at=((ot&268435455)*1e4+it)%4294967296;et[_e++]=at>>>24&255,et[_e++]=at>>>16&255,et[_e++]=at>>>8&255,et[_e++]=at&255;var ct=ot/4294967296*1e4&268435455;et[_e++]=ct>>>8&255,et[_e++]=ct&255,et[_e++]=ct>>>24&15|16,et[_e++]=ct>>>16&255,et[_e++]=nt>>>8|128,et[_e++]=nt&255;for(var lt=0;lt<6;++lt)et[_e+lt]=tt[lt];return j||stringify(et)}function parse$1(s){if(!validate(s))throw TypeError("Invalid UUID");var j,$=new Uint8Array(16);return $[0]=(j=parseInt(s.slice(0,8),16))>>>24,$[1]=j>>>16&255,$[2]=j>>>8&255,$[3]=j&255,$[4]=(j=parseInt(s.slice(9,13),16))>>>8,$[5]=j&255,$[6]=(j=parseInt(s.slice(14,18),16))>>>8,$[7]=j&255,$[8]=(j=parseInt(s.slice(19,23),16))>>>8,$[9]=j&255,$[10]=(j=parseInt(s.slice(24,36),16))/1099511627776&255,$[11]=j/4294967296&255,$[12]=j>>>24&255,$[13]=j>>>16&255,$[14]=j>>>8&255,$[15]=j&255,$}function stringToBytes(s){s=unescape(encodeURIComponent(s));for(var j=[],$=0;$>5]>>>et%32&255,nt=parseInt(_e.charAt(tt>>>4&15)+_e.charAt(tt&15),16);j.push(nt)}return j}function getOutputLength(s){return(s+64>>>9<<4)+14+1}function wordsToMd5(s,j){s[j>>5]|=128<>5]|=(s[_e/8]&255)<<_e%32;return $}function safeAdd(s,j){var $=(s&65535)+(j&65535),_e=(s>>16)+(j>>16)+($>>16);return _e<<16|$&65535}function bitRotateLeft(s,j){return s<>>32-j}function md5cmn(s,j,$,_e,et,tt){return safeAdd(bitRotateLeft(safeAdd(safeAdd(j,s),safeAdd(_e,tt)),et),$)}function md5ff(s,j,$,_e,et,tt,nt){return md5cmn(j&$|~j&_e,s,j,et,tt,nt)}function md5gg(s,j,$,_e,et,tt,nt){return md5cmn(j&_e|$&~_e,s,j,et,tt,nt)}function md5hh(s,j,$,_e,et,tt,nt){return md5cmn(j^$^_e,s,j,et,tt,nt)}function md5ii(s,j,$,_e,et,tt,nt){return md5cmn($^(j|~_e),s,j,et,tt,nt)}var v3=v35("v3",48,md5);const v3$1=v3;function v4(s,j,$){s=s||{};var _e=s.random||(s.rng||rng)();if(_e[6]=_e[6]&15|64,_e[8]=_e[8]&63|128,j){$=$||0;for(var et=0;et<16;++et)j[$+et]=_e[et];return j}return stringify(_e)}function f(s,j,$,_e){switch(s){case 0:return j&$^~j&_e;case 1:return j^$^_e;case 2:return j&$^j&_e^$&_e;case 3:return j^$^_e}}function ROTL(s,j){return s<>>32-j}function sha1(s){var j=[1518500249,1859775393,2400959708,3395469782],$=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){var _e=unescape(encodeURIComponent(s));s=[];for(var et=0;et<_e.length;++et)s.push(_e.charCodeAt(et))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);for(var tt=s.length/4+2,nt=Math.ceil(tt/16),rt=new Array(nt),ot=0;ot>>0;pt=mt,mt=yt,yt=ROTL(gt,30)>>>0,gt=ft,ft=Dt}$[0]=$[0]+ft>>>0,$[1]=$[1]+gt>>>0,$[2]=$[2]+yt>>>0,$[3]=$[3]+mt>>>0,$[4]=$[4]+pt>>>0}return[$[0]>>24&255,$[0]>>16&255,$[0]>>8&255,$[0]&255,$[1]>>24&255,$[1]>>16&255,$[1]>>8&255,$[1]&255,$[2]>>24&255,$[2]>>16&255,$[2]>>8&255,$[2]&255,$[3]>>24&255,$[3]>>16&255,$[3]>>8&255,$[3]&255,$[4]>>24&255,$[4]>>16&255,$[4]>>8&255,$[4]&255]}var v5=v35("v5",80,sha1);const v5$1=v5,nil="00000000-0000-0000-0000-000000000000";function version(s){if(!validate(s))throw TypeError("Invalid UUID");return parseInt(s.substr(14,1),16)}const esmBrowser=Object.freeze(Object.defineProperty({__proto__:null,NIL:nil,parse:parse$1,stringify,v1,v3:v3$1,v4,v5:v5$1,validate,version},Symbol.toStringTag,{value:"Module"})),require$$0$6=getAugmentedNamespace(esmBrowser),uuid$1=require$$0$6.v4,generateRequest$1=function(s,j,$,_e){if(typeof s!="string")throw new TypeError(s+" must be a string");_e=_e||{};const et=typeof _e.version=="number"?_e.version:2;if(et!==1&&et!==2)throw new TypeError(et+" must be 1 or 2");const tt={method:s};if(et===2&&(tt.jsonrpc="2.0"),j){if(typeof j!="object"&&!Array.isArray(j))throw new TypeError(j+" must be an object, array or omitted");tt.params=j}if(typeof $>"u"){const nt=typeof _e.generator=="function"?_e.generator:function(){return uuid$1()};tt.id=nt(tt,_e)}else et===2&&$===null?_e.notificationIdNull&&(tt.id=null):tt.id=$;return tt};var generateRequest_1=generateRequest$1;const uuid=require$$0$6.v4,generateRequest=generateRequest_1,ClientBrowser=function(s,j){if(!(this instanceof ClientBrowser))return new ClientBrowser(s,j);j||(j={}),this.options={reviver:typeof j.reviver<"u"?j.reviver:null,replacer:typeof j.replacer<"u"?j.replacer:null,generator:typeof j.generator<"u"?j.generator:function(){return uuid()},version:typeof j.version<"u"?j.version:2,notificationIdNull:typeof j.notificationIdNull=="boolean"?j.notificationIdNull:!1},this.callServer=s};var browser=ClientBrowser;ClientBrowser.prototype.request=function(s,j,$,_e){const et=this;let tt=null;const nt=Array.isArray(s)&&typeof j=="function";if(this.options.version===1&&nt)throw new TypeError("JSON-RPC 1.0 does not support batching");if(nt||!nt&&s&&typeof s=="object"&&typeof j=="function")_e=j,tt=s;else{typeof $=="function"&&(_e=$,$=void 0);const it=typeof _e=="function";try{tt=generateRequest(s,j,$,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(st){if(it)return _e(st);throw st}if(!it)return tt}let ot;try{ot=JSON.stringify(tt,this.options.replacer)}catch(it){return _e(it)}return this.callServer(ot,function(it,st){et._parseResponse(it,st,_e)}),tt};ClientBrowser.prototype._parseResponse=function(s,j,$){if(s){$(s);return}if(!j)return $();let _e;try{_e=JSON.parse(j,this.options.reviver)}catch(et){return $(et)}if($.length===3)if(Array.isArray(_e)){const et=function(nt){return typeof nt.error<"u"},tt=function(nt){return!et(nt)};return $(null,_e.filter(et),_e.filter(tt))}else return $(null,_e.error,_e.result);$(null,_e)};const RpcClient=getDefaultExportFromCjs$1(browser);var eventemitter3={exports:{}};(function(s){var j=Object.prototype.hasOwnProperty,$="~";function _e(){}Object.create&&(_e.prototype=Object.create(null),new _e().__proto__||($=!1));function et(ot,it,st){this.fn=ot,this.context=it,this.once=st||!1}function tt(ot,it,st,at,ct){if(typeof st!="function")throw new TypeError("The listener must be a function");var lt=new et(st,at||ot,ct),dt=$?$+it:it;return ot._events[dt]?ot._events[dt].fn?ot._events[dt]=[ot._events[dt],lt]:ot._events[dt].push(lt):(ot._events[dt]=lt,ot._eventsCount++),ot}function nt(ot,it){--ot._eventsCount===0?ot._events=new _e:delete ot._events[it]}function rt(){this._events=new _e,this._eventsCount=0}rt.prototype.eventNames=function(){var it=[],st,at;if(this._eventsCount===0)return it;for(at in st=this._events)j.call(st,at)&&it.push($?at.slice(1):at);return Object.getOwnPropertySymbols?it.concat(Object.getOwnPropertySymbols(st)):it},rt.prototype.listeners=function(it){var st=$?$+it:it,at=this._events[st];if(!at)return[];if(at.fn)return[at.fn];for(var ct=0,lt=at.length,dt=new Array(lt);ctthis.emit("open"),this.socket.onmessage=et=>this.emit("message",et.data),this.socket.onerror=et=>this.emit("error",et),this.socket.onclose=et=>{this.emit("close",et.code,et.reason)}}send(j,$,_e){const et=_e||$;try{this.socket.send(j),et()}catch(tt){et(tt)}}close(j,$){this.socket.close(j,$)}addEventListener(j,$,_e){this.socket.addEventListener(j,$,_e)}};function WebSocket$1(s,j){return new WebSocketBrowserImpl(s,j)}var DefaultDataPack=class{encode(s){return JSON.stringify(s)}decode(s){return JSON.parse(s)}},CommonClient=class extends EventEmitter$1{constructor(j,$="ws://localhost:8080",{autoconnect:_e=!0,reconnect:et=!0,reconnect_interval:tt=1e3,max_reconnects:nt=5,...rt}={},ot,it){super();Mn(this,"address");Mn(this,"rpc_id");Mn(this,"queue");Mn(this,"options");Mn(this,"autoconnect");Mn(this,"ready");Mn(this,"reconnect");Mn(this,"reconnect_timer_id");Mn(this,"reconnect_interval");Mn(this,"max_reconnects");Mn(this,"rest_options");Mn(this,"current_reconnects");Mn(this,"generate_request_id");Mn(this,"socket");Mn(this,"webSocketFactory");Mn(this,"dataPack");this.webSocketFactory=j,this.queue={},this.rpc_id=0,this.address=$,this.autoconnect=_e,this.ready=!1,this.reconnect=et,this.reconnect_timer_id=void 0,this.reconnect_interval=tt,this.max_reconnects=nt,this.rest_options=rt,this.current_reconnects=0,this.generate_request_id=ot||(()=>++this.rpc_id),it?this.dataPack=it:this.dataPack=new DefaultDataPack,this.autoconnect&&this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}connect(){this.socket||this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}call(j,$,_e,et){return!et&&typeof _e=="object"&&(et=_e,_e=null),new Promise((tt,nt)=>{if(!this.ready)return nt(new Error("socket not ready"));const rt=this.generate_request_id(j,$),ot={jsonrpc:"2.0",method:j,params:$||void 0,id:rt};this.socket.send(this.dataPack.encode(ot),et,it=>{if(it)return nt(it);this.queue[rt]={promise:[tt,nt]},_e&&(this.queue[rt].timeout=setTimeout(()=>{delete this.queue[rt],nt(new Error("reply timeout"))},_e))})})}async login(j){const $=await this.call("rpc.login",j);if(!$)throw new Error("authentication failed");return $}async listMethods(){return await this.call("__listMethods")}notify(j,$){return new Promise((_e,et)=>{if(!this.ready)return et(new Error("socket not ready"));const tt={jsonrpc:"2.0",method:j,params:$};this.socket.send(this.dataPack.encode(tt),nt=>{if(nt)return et(nt);_e()})})}async subscribe(j){typeof j=="string"&&(j=[j]);const $=await this.call("rpc.on",j);if(typeof j=="string"&&$[j]!=="ok")throw new Error("Failed subscribing to an event '"+j+"' with: "+$[j]);return $}async unsubscribe(j){typeof j=="string"&&(j=[j]);const $=await this.call("rpc.off",j);if(typeof j=="string"&&$[j]!=="ok")throw new Error("Failed unsubscribing from an event with: "+$);return $}close(j,$){this.socket.close(j||1e3,$)}setAutoReconnect(j){this.reconnect=j}setReconnectInterval(j){this.reconnect_interval=j}setMaxReconnects(j){this.max_reconnects=j}_connect(j,$){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(j,$),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",({data:_e})=>{_e instanceof ArrayBuffer&&(_e=buffer.Buffer.from(_e).toString());try{_e=this.dataPack.decode(_e)}catch{return}if(_e.notification&&this.listeners(_e.notification).length){if(!Object.keys(_e.params).length)return this.emit(_e.notification);const et=[_e.notification];if(_e.params.constructor===Object)et.push(_e.params);else for(let tt=0;tt<_e.params.length;tt++)et.push(_e.params[tt]);return Promise.resolve().then(()=>{this.emit.apply(this,et)})}if(!this.queue[_e.id])return _e.method?Promise.resolve().then(()=>{this.emit(_e.method,_e==null?void 0:_e.params)}):void 0;"error"in _e=="result"in _e&&this.queue[_e.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),this.queue[_e.id].timeout&&clearTimeout(this.queue[_e.id].timeout),_e.error?this.queue[_e.id].promise[1](_e.error):this.queue[_e.id].promise[0](_e.result),delete this.queue[_e.id]}),this.socket.addEventListener("error",_e=>this.emit("error",_e)),this.socket.addEventListener("close",({code:_e,reason:et})=>{this.ready&&setTimeout(()=>this.emit("close",_e,et),0),this.ready=!1,this.socket=void 0,_e!==1e3&&(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||this.max_reconnects===0)&&(this.reconnect_timer_id=setTimeout(()=>this._connect(j,$),this.reconnect_interval)))})}};const U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(s,j=!1){return j?{h:Number(s&U32_MASK64),l:Number(s>>_32n&U32_MASK64)}:{h:Number(s>>_32n&U32_MASK64)|0,l:Number(s&U32_MASK64)|0}}function split(s,j=!1){let $=new Uint32Array(s.length),_e=new Uint32Array(s.length);for(let et=0;ets<<$|j>>>32-$,rotlSL=(s,j,$)=>j<<$|s>>>32-$,rotlBH=(s,j,$)=>j<<$-32|s>>>64-$,rotlBL=(s,j,$)=>s<<$-32|j>>>64-$,SHA3_PI=[],SHA3_ROTL=[],_SHA3_IOTA=[],_0n$6=BigInt(0),_1n$7=BigInt(1),_2n$4=BigInt(2),_7n=BigInt(7),_256n=BigInt(256),_0x71n=BigInt(113);for(let s=0,j=_1n$7,$=1,_e=0;s<24;s++){[$,_e]=[_e,(2*$+3*_e)%5],SHA3_PI.push(2*(5*_e+$)),SHA3_ROTL.push((s+1)*(s+2)/2%64);let et=_0n$6;for(let tt=0;tt<7;tt++)j=(j<<_1n$7^(j>>_7n)*_0x71n)%_256n,j&_2n$4&&(et^=_1n$7<<(_1n$7<$>32?rotlBH(s,j,$):rotlSH(s,j,$),rotlL=(s,j,$)=>$>32?rotlBL(s,j,$):rotlSL(s,j,$);function keccakP(s,j=24){const $=new Uint32Array(10);for(let _e=24-j;_e<24;_e++){for(let nt=0;nt<10;nt++)$[nt]=s[nt]^s[nt+10]^s[nt+20]^s[nt+30]^s[nt+40];for(let nt=0;nt<10;nt+=2){const rt=(nt+8)%10,ot=(nt+2)%10,it=$[ot],st=$[ot+1],at=rotlH(it,st,1)^$[rt],ct=rotlL(it,st,1)^$[rt+1];for(let lt=0;lt<50;lt+=10)s[nt+lt]^=at,s[nt+lt+1]^=ct}let et=s[2],tt=s[3];for(let nt=0;nt<24;nt++){const rt=SHA3_ROTL[nt],ot=rotlH(et,tt,rt),it=rotlL(et,tt,rt),st=SHA3_PI[nt];et=s[st],tt=s[st+1],s[st]=ot,s[st+1]=it}for(let nt=0;nt<50;nt+=10){for(let rt=0;rt<10;rt++)$[rt]=s[nt+rt];for(let rt=0;rt<10;rt++)s[nt+rt]^=~$[(rt+2)%10]&$[(rt+4)%10]}s[0]^=SHA3_IOTA_H[_e],s[1]^=SHA3_IOTA_L[_e]}$.fill(0)}class Keccak extends Hash{constructor(j,$,_e,et=!1,tt=24){if(super(),this.blockLen=j,this.suffix=$,this.outputLen=_e,this.enableXOF=et,this.rounds=tt,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number$1(_e),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32$1(this.state)}keccak(){isLE||byteSwap32(this.state32),keccakP(this.state32,this.rounds),isLE||byteSwap32(this.state32),this.posOut=0,this.pos=0}update(j){exists(this);const{blockLen:$,state:_e}=this;j=toBytes(j);const et=j.length;for(let tt=0;tt=_e&&this.keccak();const nt=Math.min(_e-this.posOut,tt-et);j.set($.subarray(this.posOut,this.posOut+nt),et),this.posOut+=nt,et+=nt}return j}xofInto(j){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(j)}xof(j){return number$1(j),this.xofInto(new Uint8Array(j))}digestInto(j){if(output(j,this),this.finished)throw new Error("digest() was already called");return this.writeInto(j),this.destroy(),j}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(j){const{blockLen:$,suffix:_e,outputLen:et,rounds:tt,enableXOF:nt}=this;return j||(j=new Keccak($,_e,et,nt,tt)),j.state32.set(this.state32),j.pos=this.pos,j.posOut=this.posOut,j.finished=this.finished,j.rounds=tt,j.suffix=_e,j.outputLen=et,j.enableXOF=nt,j.destroyed=this.destroyed,j}}const gen=(s,j,$)=>wrapConstructor(()=>new Keccak(j,s,$)),sha3_224=gen(6,144,224/8),sha3_256=gen(6,136,256/8),sha3_384=gen(6,104,384/8),sha3_512=gen(6,72,512/8),keccak_224=gen(1,144,224/8),keccak_256=gen(1,136,256/8),keccak_384=gen(1,104,384/8),keccak_512=gen(1,72,512/8),genShake=(s,j,$)=>wrapXOFConstructorWithOpts((_e={})=>new Keccak(j,s,_e.dkLen===void 0?$:_e.dkLen,!0)),shake128=genShake(31,168,128/8),shake256=genShake(31,136,256/8),sha3=Object.freeze(Object.defineProperty({__proto__:null,Keccak,keccakP,keccak_224,keccak_256,keccak_384,keccak_512,sha3_224,sha3_256,sha3_384,sha3_512,shake128,shake256},Symbol.toStringTag,{value:"Module"}));class HMAC extends Hash{constructor(j,$){super(),this.finished=!1,this.destroyed=!1,hash(j);const _e=toBytes($);if(this.iHash=j.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const et=this.blockLen,tt=new Uint8Array(et);tt.set(_e.length>et?j.create().update(_e).digest():_e);for(let nt=0;ntnew HMAC(s,j).update($).digest();hmac.create=(s,j)=>new HMAC(s,j);const hmac$1=Object.freeze(Object.defineProperty({__proto__:null,HMAC,hmac},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function validateSigVerOpts(s){s.lowS!==void 0&&abool("lowS",s.lowS),s.prehash!==void 0&&abool("prehash",s.prehash)}function validatePointOpts(s){const j=validateBasic$1(s);validateObject$1(j,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:$,Fp:_e,a:et}=j;if($){if(!_e.eql(et,_e.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof $!="object"||typeof $.beta!="bigint"||typeof $.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...j})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut$1,DER={Err:class extends Error{constructor(j=""){super(j)}},_parseInt(s){const{Err:j}=DER;if(s.length<2||s[0]!==2)throw new j("Invalid signature integer tag");const $=s[1],_e=s.subarray(2,$+2);if(!$||_e.length!==$)throw new j("Invalid signature integer: wrong length");if(_e[0]&128)throw new j("Invalid signature integer: negative");if(_e[0]===0&&!(_e[1]&128))throw new j("Invalid signature integer: unnecessary leading zero");return{d:b2n(_e),l:s.subarray($+2)}},toSig(s){const{Err:j}=DER,$=typeof s=="string"?h2b(s):s;abytes$1($);let _e=$.length;if(_e<2||$[0]!=48)throw new j("Invalid signature tag");if($[1]!==_e-2)throw new j("Invalid signature: incorrect length");const{d:et,l:tt}=DER._parseInt($.subarray(2)),{d:nt,l:rt}=DER._parseInt(tt);if(rt.length)throw new j("Invalid signature: left bytes after parsing");return{r:et,s:nt}},hexFromSig(s){const j=it=>Number.parseInt(it[0],16)&8?"00"+it:it,$=it=>{const st=it.toString(16);return st.length&1?`0${st}`:st},_e=j($(s.s)),et=j($(s.r)),tt=_e.length/2,nt=et.length/2,rt=$(tt),ot=$(nt);return`30${$(nt+tt+4)}02${ot}${et}02${rt}${_e}`}},_0n$5=BigInt(0),_1n$6=BigInt(1);BigInt(2);const _3n$1=BigInt(3);BigInt(4);function weierstrassPoints(s){const j=validatePointOpts(s),{Fp:$}=j,_e=j.toBytes||((dt,ft,gt)=>{const yt=ft.toAffine();return concatBytes$1(Uint8Array.from([4]),$.toBytes(yt.x),$.toBytes(yt.y))}),et=j.fromBytes||(dt=>{const ft=dt.subarray(1),gt=$.fromBytes(ft.subarray(0,$.BYTES)),yt=$.fromBytes(ft.subarray($.BYTES,2*$.BYTES));return{x:gt,y:yt}});function tt(dt){const{a:ft,b:gt}=j,yt=$.sqr(dt),mt=$.mul(yt,dt);return $.add($.add(mt,$.mul(dt,ft)),gt)}if(!$.eql($.sqr(j.Gy),tt(j.Gx)))throw new Error("bad generator point: equation left != right");function nt(dt){return inRange$1(dt,_1n$6,j.n)}function rt(dt){const{allowedPrivateKeyLengths:ft,nByteLength:gt,wrapPrivateKey:yt,n:mt}=j;if(ft&&typeof dt!="bigint"){if(isBytes$1(dt)&&(dt=bytesToHex$1(dt)),typeof dt!="string"||!ft.includes(dt.length))throw new Error("Invalid key");dt=dt.padStart(gt*2,"0")}let pt;try{pt=typeof dt=="bigint"?dt:bytesToNumberBE$1(ensureBytes$1("private key",dt,gt))}catch{throw new Error(`private key must be ${gt} bytes, hex or bigint, not ${typeof dt}`)}return yt&&(pt=mod$1(pt,mt)),aInRange("private key",pt,_1n$6,mt),pt}function ot(dt){if(!(dt instanceof at))throw new Error("ProjectivePoint expected")}const it=memoized((dt,ft)=>{const{px:gt,py:yt,pz:mt}=dt;if($.eql(mt,$.ONE))return{x:gt,y:yt};const pt=dt.is0();ft==null&&(ft=pt?$.ONE:$.inv(mt));const xt=$.mul(gt,ft),Ct=$.mul(yt,ft),Dt=$.mul(mt,ft);if(pt)return{x:$.ZERO,y:$.ZERO};if(!$.eql(Dt,$.ONE))throw new Error("invZ was invalid");return{x:xt,y:Ct}}),st=memoized(dt=>{if(dt.is0()){if(j.allowInfinityPoint&&!$.is0(dt.py))return;throw new Error("bad point: ZERO")}const{x:ft,y:gt}=dt.toAffine();if(!$.isValid(ft)||!$.isValid(gt))throw new Error("bad point: x or y not FE");const yt=$.sqr(gt),mt=tt(ft);if(!$.eql(yt,mt))throw new Error("bad point: equation left != right");if(!dt.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class at{constructor(ft,gt,yt){if(this.px=ft,this.py=gt,this.pz=yt,ft==null||!$.isValid(ft))throw new Error("x required");if(gt==null||!$.isValid(gt))throw new Error("y required");if(yt==null||!$.isValid(yt))throw new Error("z required");Object.freeze(this)}static fromAffine(ft){const{x:gt,y:yt}=ft||{};if(!ft||!$.isValid(gt)||!$.isValid(yt))throw new Error("invalid affine point");if(ft instanceof at)throw new Error("projective point not allowed");const mt=pt=>$.eql(pt,$.ZERO);return mt(gt)&&mt(yt)?at.ZERO:new at(gt,yt,$.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(ft){const gt=$.invertBatch(ft.map(yt=>yt.pz));return ft.map((yt,mt)=>yt.toAffine(gt[mt])).map(at.fromAffine)}static fromHex(ft){const gt=at.fromAffine(et(ensureBytes$1("pointHex",ft)));return gt.assertValidity(),gt}static fromPrivateKey(ft){return at.BASE.multiply(rt(ft))}_setWindowSize(ft){lt.setWindowSize(this,ft)}assertValidity(){st(this)}hasEvenY(){const{y:ft}=this.toAffine();if($.isOdd)return!$.isOdd(ft);throw new Error("Field doesn't support isOdd")}equals(ft){ot(ft);const{px:gt,py:yt,pz:mt}=this,{px:pt,py:xt,pz:Ct}=ft,Dt=$.eql($.mul(gt,Ct),$.mul(pt,mt)),wt=$.eql($.mul(yt,Ct),$.mul(xt,mt));return Dt&&wt}negate(){return new at(this.px,$.neg(this.py),this.pz)}double(){const{a:ft,b:gt}=j,yt=$.mul(gt,_3n$1),{px:mt,py:pt,pz:xt}=this;let Ct=$.ZERO,Dt=$.ZERO,wt=$.ZERO,kt=$.mul(mt,mt),zt=$.mul(pt,pt),Ot=$.mul(xt,xt),Ft=$.mul(mt,pt);return Ft=$.add(Ft,Ft),wt=$.mul(mt,xt),wt=$.add(wt,wt),Ct=$.mul(ft,wt),Dt=$.mul(yt,Ot),Dt=$.add(Ct,Dt),Ct=$.sub(zt,Dt),Dt=$.add(zt,Dt),Dt=$.mul(Ct,Dt),Ct=$.mul(Ft,Ct),wt=$.mul(yt,wt),Ot=$.mul(ft,Ot),Ft=$.sub(kt,Ot),Ft=$.mul(ft,Ft),Ft=$.add(Ft,wt),wt=$.add(kt,kt),kt=$.add(wt,kt),kt=$.add(kt,Ot),kt=$.mul(kt,Ft),Dt=$.add(Dt,kt),Ot=$.mul(pt,xt),Ot=$.add(Ot,Ot),kt=$.mul(Ot,Ft),Ct=$.sub(Ct,kt),wt=$.mul(Ot,zt),wt=$.add(wt,wt),wt=$.add(wt,wt),new at(Ct,Dt,wt)}add(ft){ot(ft);const{px:gt,py:yt,pz:mt}=this,{px:pt,py:xt,pz:Ct}=ft;let Dt=$.ZERO,wt=$.ZERO,kt=$.ZERO;const zt=j.a,Ot=$.mul(j.b,_3n$1);let Ft=$.mul(gt,pt),Pt=$.mul(yt,xt),Nt=$.mul(mt,Ct),ht=$.add(gt,yt),bt=$.add(pt,xt);ht=$.mul(ht,bt),bt=$.add(Ft,Pt),ht=$.sub(ht,bt),bt=$.add(gt,mt);let St=$.add(pt,Ct);return bt=$.mul(bt,St),St=$.add(Ft,Nt),bt=$.sub(bt,St),St=$.add(yt,mt),Dt=$.add(xt,Ct),St=$.mul(St,Dt),Dt=$.add(Pt,Nt),St=$.sub(St,Dt),kt=$.mul(zt,bt),Dt=$.mul(Ot,Nt),kt=$.add(Dt,kt),Dt=$.sub(Pt,kt),kt=$.add(Pt,kt),wt=$.mul(Dt,kt),Pt=$.add(Ft,Ft),Pt=$.add(Pt,Ft),Nt=$.mul(zt,Nt),bt=$.mul(Ot,bt),Pt=$.add(Pt,Nt),Nt=$.sub(Ft,Nt),Nt=$.mul(zt,Nt),bt=$.add(bt,Nt),Ft=$.mul(Pt,bt),wt=$.add(wt,Ft),Ft=$.mul(St,bt),Dt=$.mul(ht,Dt),Dt=$.sub(Dt,Ft),Ft=$.mul(ht,Pt),kt=$.mul(St,kt),kt=$.add(kt,Ft),new at(Dt,wt,kt)}subtract(ft){return this.add(ft.negate())}is0(){return this.equals(at.ZERO)}wNAF(ft){return lt.wNAFCached(this,ft,at.normalizeZ)}multiplyUnsafe(ft){aInRange("scalar",ft,_0n$5,j.n);const gt=at.ZERO;if(ft===_0n$5)return gt;if(ft===_1n$6)return this;const{endo:yt}=j;if(!yt)return lt.unsafeLadder(this,ft);let{k1neg:mt,k1:pt,k2neg:xt,k2:Ct}=yt.splitScalar(ft),Dt=gt,wt=gt,kt=this;for(;pt>_0n$5||Ct>_0n$5;)pt&_1n$6&&(Dt=Dt.add(kt)),Ct&_1n$6&&(wt=wt.add(kt)),kt=kt.double(),pt>>=_1n$6,Ct>>=_1n$6;return mt&&(Dt=Dt.negate()),xt&&(wt=wt.negate()),wt=new at($.mul(wt.px,yt.beta),wt.py,wt.pz),Dt.add(wt)}multiply(ft){const{endo:gt,n:yt}=j;aInRange("scalar",ft,_1n$6,yt);let mt,pt;if(gt){const{k1neg:xt,k1:Ct,k2neg:Dt,k2:wt}=gt.splitScalar(ft);let{p:kt,f:zt}=this.wNAF(Ct),{p:Ot,f:Ft}=this.wNAF(wt);kt=lt.constTimeNegate(xt,kt),Ot=lt.constTimeNegate(Dt,Ot),Ot=new at($.mul(Ot.px,gt.beta),Ot.py,Ot.pz),mt=kt.add(Ot),pt=zt.add(Ft)}else{const{p:xt,f:Ct}=this.wNAF(ft);mt=xt,pt=Ct}return at.normalizeZ([mt,pt])[0]}multiplyAndAddUnsafe(ft,gt,yt){const mt=at.BASE,pt=(Ct,Dt)=>Dt===_0n$5||Dt===_1n$6||!Ct.equals(mt)?Ct.multiplyUnsafe(Dt):Ct.multiply(Dt),xt=pt(this,gt).add(pt(ft,yt));return xt.is0()?void 0:xt}toAffine(ft){return it(this,ft)}isTorsionFree(){const{h:ft,isTorsionFree:gt}=j;if(ft===_1n$6)return!0;if(gt)return gt(at,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:ft,clearCofactor:gt}=j;return ft===_1n$6?this:gt?gt(at,this):this.multiplyUnsafe(j.h)}toRawBytes(ft=!0){return abool("isCompressed",ft),this.assertValidity(),_e(at,this,ft)}toHex(ft=!0){return abool("isCompressed",ft),bytesToHex$1(this.toRawBytes(ft))}}at.BASE=new at(j.Gx,j.Gy,$.ONE),at.ZERO=new at($.ZERO,$.ONE,$.ZERO);const ct=j.nBitLength,lt=wNAF$1(at,j.endo?Math.ceil(ct/2):ct);return{CURVE:j,ProjectivePoint:at,normPrivateKeyToScalar:rt,weierstrassEquation:tt,isWithinCurveOrder:nt}}function validateOpts$2(s){const j=validateBasic$1(s);return validateObject$1(j,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...j})}function weierstrass$1(s){const j=validateOpts$2(s),{Fp:$,n:_e}=j,et=$.BYTES+1,tt=2*$.BYTES+1;function nt(ht){return mod$1(ht,_e)}function rt(ht){return invert$1(ht,_e)}const{ProjectivePoint:ot,normPrivateKeyToScalar:it,weierstrassEquation:st,isWithinCurveOrder:at}=weierstrassPoints({...j,toBytes(ht,bt,St){const vt=bt.toAffine(),At=$.toBytes(vt.x),Tt=concatBytes$1;return abool("isCompressed",St),St?Tt(Uint8Array.from([bt.hasEvenY()?2:3]),At):Tt(Uint8Array.from([4]),At,$.toBytes(vt.y))},fromBytes(ht){const bt=ht.length,St=ht[0],vt=ht.subarray(1);if(bt===et&&(St===2||St===3)){const At=bytesToNumberBE$1(vt);if(!inRange$1(At,_1n$6,$.ORDER))throw new Error("Point is not on curve");const Tt=st(At);let jt;try{jt=$.sqrt(Tt)}catch($t){const Ut=$t instanceof Error?": "+$t.message:"";throw new Error("Point is not on curve"+Ut)}const Lt=(jt&_1n$6)===_1n$6;return(St&1)===1!==Lt&&(jt=$.neg(jt)),{x:At,y:jt}}else if(bt===tt&&St===4){const At=$.fromBytes(vt.subarray(0,$.BYTES)),Tt=$.fromBytes(vt.subarray($.BYTES,2*$.BYTES));return{x:At,y:Tt}}else throw new Error(`Point of length ${bt} was invalid. Expected ${et} compressed bytes or ${tt} uncompressed bytes`)}}),ct=ht=>bytesToHex$1(numberToBytesBE$1(ht,j.nByteLength));function lt(ht){const bt=_e>>_1n$6;return ht>bt}function dt(ht){return lt(ht)?nt(-ht):ht}const ft=(ht,bt,St)=>bytesToNumberBE$1(ht.slice(bt,St));class gt{constructor(bt,St,vt){this.r=bt,this.s=St,this.recovery=vt,this.assertValidity()}static fromCompact(bt){const St=j.nByteLength;return bt=ensureBytes$1("compactSignature",bt,St*2),new gt(ft(bt,0,St),ft(bt,St,2*St))}static fromDER(bt){const{r:St,s:vt}=DER.toSig(ensureBytes$1("DER",bt));return new gt(St,vt)}assertValidity(){aInRange("r",this.r,_1n$6,_e),aInRange("s",this.s,_1n$6,_e)}addRecoveryBit(bt){return new gt(this.r,this.s,bt)}recoverPublicKey(bt){const{r:St,s:vt,recovery:At}=this,Tt=Dt(ensureBytes$1("msgHash",bt));if(At==null||![0,1,2,3].includes(At))throw new Error("recovery id invalid");const jt=At===2||At===3?St+j.n:St;if(jt>=$.ORDER)throw new Error("recovery id 2 or 3 invalid");const Lt=At&1?"03":"02",Mt=ot.fromHex(Lt+ct(jt)),$t=rt(jt),Ut=nt(-Tt*$t),Gt=nt(vt*$t),Ht=ot.BASE.multiplyAndAddUnsafe(Mt,Ut,Gt);if(!Ht)throw new Error("point at infinify");return Ht.assertValidity(),Ht}hasHighS(){return lt(this.s)}normalizeS(){return this.hasHighS()?new gt(this.r,nt(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$1(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$1(this.toCompactHex())}toCompactHex(){return ct(this.r)+ct(this.s)}}const yt={isValidPrivateKey(ht){try{return it(ht),!0}catch{return!1}},normPrivateKeyToScalar:it,randomPrivateKey:()=>{const ht=getMinHashLength$1(j.n);return mapHashToField$1(j.randomBytes(ht),j.n)},precompute(ht=8,bt=ot.BASE){return bt._setWindowSize(ht),bt.multiply(BigInt(3)),bt}};function mt(ht,bt=!0){return ot.fromPrivateKey(ht).toRawBytes(bt)}function pt(ht){const bt=isBytes$1(ht),St=typeof ht=="string",vt=(bt||St)&&ht.length;return bt?vt===et||vt===tt:St?vt===2*et||vt===2*tt:ht instanceof ot}function xt(ht,bt,St=!0){if(pt(ht))throw new Error("first arg must be private key");if(!pt(bt))throw new Error("second arg must be public key");return ot.fromHex(bt).multiply(it(ht)).toRawBytes(St)}const Ct=j.bits2int||function(ht){const bt=bytesToNumberBE$1(ht),St=ht.length*8-j.nBitLength;return St>0?bt>>BigInt(St):bt},Dt=j.bits2int_modN||function(ht){return nt(Ct(ht))},wt=bitMask$1(j.nBitLength);function kt(ht){return aInRange(`num < 2^${j.nBitLength}`,ht,_0n$5,wt),numberToBytesBE$1(ht,j.nByteLength)}function zt(ht,bt,St=Ot){if(["recovered","canonical"].some(Jt=>Jt in St))throw new Error("sign() legacy options not supported");const{hash:vt,randomBytes:At}=j;let{lowS:Tt,prehash:jt,extraEntropy:Lt}=St;Tt==null&&(Tt=!0),ht=ensureBytes$1("msgHash",ht),validateSigVerOpts(St),jt&&(ht=ensureBytes$1("prehashed msgHash",vt(ht)));const Mt=Dt(ht),$t=it(bt),Ut=[kt($t),kt(Mt)];if(Lt!=null&&Lt!==!1){const Jt=Lt===!0?At($.BYTES):Lt;Ut.push(ensureBytes$1("extraEntropy",Jt))}const Gt=concatBytes$1(...Ut),Ht=Mt;function tn(Jt){const Kt=Ct(Jt);if(!at(Kt))return;const dn=rt(Kt),en=ot.BASE.multiply(Kt).toAffine(),qt=nt(en.x);if(qt===_0n$5)return;const Qt=nt(dn*nt(Ht+qt*$t));if(Qt===_0n$5)return;let Zt=(en.x===qt?0:2)|Number(en.y&_1n$6),Xt=Qt;return Tt&<(Qt)&&(Xt=dt(Qt),Zt^=1),new gt(qt,Xt,Zt)}return{seed:Gt,k2sig:tn}}const Ot={lowS:j.lowS,prehash:!1},Ft={lowS:j.lowS,prehash:!1};function Pt(ht,bt,St=Ot){const{seed:vt,k2sig:At}=zt(ht,bt,St),Tt=j;return createHmacDrbg$1(Tt.hash.outputLen,Tt.nByteLength,Tt.hmac)(vt,At)}ot.BASE._setWindowSize(8);function Nt(ht,bt,St,vt=Ft){var en;const At=ht;if(bt=ensureBytes$1("msgHash",bt),St=ensureBytes$1("publicKey",St),"strict"in vt)throw new Error("options.strict was renamed to lowS");validateSigVerOpts(vt);const{lowS:Tt,prehash:jt}=vt;let Lt,Mt;try{if(typeof At=="string"||isBytes$1(At))try{Lt=gt.fromDER(At)}catch(qt){if(!(qt instanceof DER.Err))throw qt;Lt=gt.fromCompact(At)}else if(typeof At=="object"&&typeof At.r=="bigint"&&typeof At.s=="bigint"){const{r:qt,s:Qt}=At;Lt=new gt(qt,Qt)}else throw new Error("PARSE");Mt=ot.fromHex(St)}catch(qt){if(qt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Tt&&Lt.hasHighS())return!1;jt&&(bt=j.hash(bt));const{r:$t,s:Ut}=Lt,Gt=Dt(bt),Ht=rt(Ut),tn=nt(Gt*Ht),Jt=nt($t*Ht),Kt=(en=ot.BASE.multiplyAndAddUnsafe(Mt,tn,Jt))==null?void 0:en.toAffine();return Kt?nt(Kt.x)===$t:!1}return{CURVE:j,getPublicKey:mt,getSharedSecret:xt,sign:Pt,verify:Nt,ProjectivePoint:ot,Signature:gt,utils:yt}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function getHash$1(s){return{hash:s,hmac:(j,...$)=>hmac(s,j,concatBytes$2(...$)),randomBytes}}function createCurve$1(s,j){const $=_e=>weierstrass$1({...s,...getHash$1(_e)});return Object.freeze({...$(j),create:$})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n$5=BigInt(1),_2n$3=BigInt(2),divNearest=(s,j)=>(s+j/_2n$3)/j;function sqrtMod(s){const j=secp256k1P,$=BigInt(3),_e=BigInt(6),et=BigInt(11),tt=BigInt(22),nt=BigInt(23),rt=BigInt(44),ot=BigInt(88),it=s*s*s%j,st=it*it*s%j,at=pow2$1(st,$,j)*st%j,ct=pow2$1(at,$,j)*st%j,lt=pow2$1(ct,_2n$3,j)*it%j,dt=pow2$1(lt,et,j)*lt%j,ft=pow2$1(dt,tt,j)*dt%j,gt=pow2$1(ft,rt,j)*ft%j,yt=pow2$1(gt,ot,j)*gt%j,mt=pow2$1(yt,rt,j)*ft%j,pt=pow2$1(mt,$,j)*st%j,xt=pow2$1(pt,nt,j)*dt%j,Ct=pow2$1(xt,_e,j)*it%j,Dt=pow2$1(Ct,_2n$3,j);if(!Fp.eql(Fp.sqr(Dt),s))throw new Error("Cannot find square root");return Dt}const Fp=Field$1(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1$1=createCurve$1({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:s=>{const j=secp256k1N,$=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),_e=-_1n$5*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),et=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),tt=$,nt=BigInt("0x100000000000000000000000000000000"),rt=divNearest(tt*s,j),ot=divNearest(-_e*s,j);let it=mod$1(s-rt*$-ot*et,j),st=mod$1(-rt*_e-ot*tt,j);const at=it>nt,ct=st>nt;if(at&&(it=j-it),ct&&(st=j-st),it>nt||st>nt)throw new Error("splitScalar: Endomorphism failed, k="+s);return{k1neg:at,k1:it,k2neg:ct,k2:st}}}},sha256);BigInt(0);secp256k1$1.ProjectivePoint;const generatePrivateKey=ed25519$1.utils.randomPrivateKey,generateKeypair=()=>{const s=ed25519$1.utils.randomPrivateKey(),j=getPublicKey(s),$=new Uint8Array(64);return $.set(s),$.set(j,32),{publicKey:j,secretKey:$}},getPublicKey=ed25519$1.getPublicKey;function isOnCurve(s){try{return ed25519$1.ExtendedPoint.fromHex(s),!0}catch{return!1}}const sign=(s,j)=>ed25519$1.sign(s,j.slice(0,32)),verify=ed25519$1.verify,toBuffer=s=>buffer.Buffer.isBuffer(s)?s:s instanceof Uint8Array?buffer.Buffer.from(s.buffer,s.byteOffset,s.byteLength):buffer.Buffer.from(s);class Struct{constructor(j){Object.assign(this,j)}encode(){return buffer.Buffer.from(serialize_1(SOLANA_SCHEMA,this))}static decode(j){return deserialize_1(SOLANA_SCHEMA,this,j)}static decodeUnchecked(j){return deserializeUnchecked_1(SOLANA_SCHEMA,this,j)}}class Enum extends Struct{constructor(j){if(super(j),this.enum="",Object.keys(j).length!==1)throw new Error("Enum can only take single value");Object.keys(j).map($=>{this.enum=$})}}const SOLANA_SCHEMA=new Map;var _PublicKey;const MAX_SEED_LENGTH=32,PUBLIC_KEY_LENGTH=32;function isPublicKeyData(s){return s._bn!==void 0}let uniquePublicKeyCounter=1;class PublicKey extends Struct{constructor(j){if(super({}),this._bn=void 0,isPublicKeyData(j))this._bn=j._bn;else{if(typeof j=="string"){const $=base58.decode(j);if($.length!=PUBLIC_KEY_LENGTH)throw new Error("Invalid public key input");this._bn=new BN($)}else this._bn=new BN(j);if(this._bn.byteLength()>PUBLIC_KEY_LENGTH)throw new Error("Invalid public key input")}}static unique(){const j=new PublicKey(uniquePublicKeyCounter);return uniquePublicKeyCounter+=1,new PublicKey(j.toBuffer())}equals(j){return this._bn.eq(j._bn)}toBase58(){return base58.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const j=this.toBuffer();return new Uint8Array(j.buffer,j.byteOffset,j.byteLength)}toBuffer(){const j=this._bn.toArrayLike(buffer.Buffer);if(j.length===PUBLIC_KEY_LENGTH)return j;const $=buffer.Buffer.alloc(32);return j.copy($,32-j.length),$}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(j,$,_e){const et=buffer.Buffer.concat([j.toBuffer(),buffer.Buffer.from($),_e.toBuffer()]),tt=sha256(et);return new PublicKey(tt)}static createProgramAddressSync(j,$){let _e=buffer.Buffer.alloc(0);j.forEach(function(tt){if(tt.length>MAX_SEED_LENGTH)throw new TypeError("Max seed length exceeded");_e=buffer.Buffer.concat([_e,toBuffer(tt)])}),_e=buffer.Buffer.concat([_e,$.toBuffer(),buffer.Buffer.from("ProgramDerivedAddress")]);const et=sha256(_e);if(isOnCurve(et))throw new Error("Invalid seeds, address must fall off the curve");return new PublicKey(et)}static async createProgramAddress(j,$){return this.createProgramAddressSync(j,$)}static findProgramAddressSync(j,$){let _e=255,et;for(;_e!=0;){try{const tt=j.concat(buffer.Buffer.from([_e]));et=this.createProgramAddressSync(tt,$)}catch(tt){if(tt instanceof TypeError)throw tt;_e--;continue}return[et,_e]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(j,$){return this.findProgramAddressSync(j,$)}static isOnCurve(j){const $=new PublicKey(j);return isOnCurve($.toBytes())}}_PublicKey=PublicKey;PublicKey.default=new _PublicKey("11111111111111111111111111111111");SOLANA_SCHEMA.set(PublicKey,{kind:"struct",fields:[["_bn","u256"]]});class Account{constructor(j){if(this._publicKey=void 0,this._secretKey=void 0,j){const $=toBuffer(j);if(j.length!==64)throw new Error("bad secret key size");this._publicKey=$.slice(32,64),this._secretKey=$.slice(0,32)}else this._secretKey=toBuffer(generatePrivateKey()),this._publicKey=toBuffer(getPublicKey(this._secretKey))}get publicKey(){return new PublicKey(this._publicKey)}get secretKey(){return buffer.Buffer.concat([this._secretKey,this._publicKey],64)}}const BPF_LOADER_DEPRECATED_PROGRAM_ID=new PublicKey("BPFLoader1111111111111111111111111111111111"),PACKET_DATA_SIZE=1232,VERSION_PREFIX_MASK=127,SIGNATURE_LENGTH_IN_BYTES=64;class TransactionExpiredBlockheightExceededError extends Error{constructor(j){super(`Signature ${j} has expired: block height exceeded.`),this.signature=void 0,this.signature=j}}Object.defineProperty(TransactionExpiredBlockheightExceededError.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class TransactionExpiredTimeoutError extends Error{constructor(j,$){super(`Transaction was not confirmed in ${$.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${j} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=j}}Object.defineProperty(TransactionExpiredTimeoutError.prototype,"name",{value:"TransactionExpiredTimeoutError"});class TransactionExpiredNonceInvalidError extends Error{constructor(j){super(`Signature ${j} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=j}}Object.defineProperty(TransactionExpiredNonceInvalidError.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class MessageAccountKeys{constructor(j,$){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=j,this.accountKeysFromLookups=$}keySegments(){const j=[this.staticAccountKeys];return this.accountKeysFromLookups&&(j.push(this.accountKeysFromLookups.writable),j.push(this.accountKeysFromLookups.readonly)),j}get(j){for(const $ of this.keySegments()){if(j<$.length)return $[j];j-=$.length}}get length(){return this.keySegments().flat().length}compileInstructions(j){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const _e=new Map;this.keySegments().flat().forEach((tt,nt)=>{_e.set(tt.toBase58(),nt)});const et=tt=>{const nt=_e.get(tt.toBase58());if(nt===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return nt};return j.map(tt=>({programIdIndex:et(tt.programId),accountKeyIndexes:tt.keys.map(nt=>et(nt.pubkey)),data:tt.data}))}}const publicKey=(s="publicKey")=>blob(32,s),signature$2=(s="signature")=>blob(64,s),rustString=(s="string")=>{const j=struct([u32("length"),u32("lengthPadding"),blob(offset(u32(),-8),"chars")],s),$=j.decode.bind(j),_e=j.encode.bind(j),et=j;return et.decode=(tt,nt)=>$(tt,nt).chars.toString(),et.encode=(tt,nt,rt)=>{const ot={chars:buffer.Buffer.from(tt,"utf8")};return _e(ot,nt,rt)},et.alloc=tt=>u32().span+u32().span+buffer.Buffer.from(tt,"utf8").length,et},authorized=(s="authorized")=>struct([publicKey("staker"),publicKey("withdrawer")],s),lockup=(s="lockup")=>struct([ns64("unixTimestamp"),ns64("epoch"),publicKey("custodian")],s),voteInit=(s="voteInit")=>struct([publicKey("nodePubkey"),publicKey("authorizedVoter"),publicKey("authorizedWithdrawer"),u8("commission")],s),voteAuthorizeWithSeedArgs=(s="voteAuthorizeWithSeedArgs")=>struct([u32("voteAuthorizationType"),publicKey("currentAuthorityDerivedKeyOwnerPubkey"),rustString("currentAuthorityDerivedKeySeed"),publicKey("newAuthorized")],s);function getAlloc(s,j){const $=et=>{if(et.span>=0)return et.span;if(typeof et.alloc=="function")return et.alloc(j[et.property]);if("count"in et&&"elementLayout"in et){const tt=j[et.property];if(Array.isArray(tt))return tt.length*$(et.elementLayout)}else if("fields"in et)return getAlloc({layout:et},j[et.property]);return 0};let _e=0;return s.layout.fields.forEach(et=>{_e+=$(et)}),_e}function decodeLength(s){let j=0,$=0;for(;;){let _e=s.shift();if(j|=(_e&127)<<$*7,$+=1,!(_e&128))break}return j}function encodeLength(s,j){let $=j;for(;;){let _e=$&127;if($>>=7,$==0){s.push(_e);break}else _e|=128,s.push(_e)}}function assert(s,j){if(!s)throw new Error(j||"Assertion failed")}class CompiledKeys{constructor(j,$){this.payer=void 0,this.keyMetaMap=void 0,this.payer=j,this.keyMetaMap=$}static compile(j,$){const _e=new Map,et=nt=>{const rt=nt.toBase58();let ot=_e.get(rt);return ot===void 0&&(ot={isSigner:!1,isWritable:!1,isInvoked:!1},_e.set(rt,ot)),ot},tt=et($);tt.isSigner=!0,tt.isWritable=!0;for(const nt of j){et(nt.programId).isInvoked=!0;for(const rt of nt.keys){const ot=et(rt.pubkey);ot.isSigner||(ot.isSigner=rt.isSigner),ot.isWritable||(ot.isWritable=rt.isWritable)}}return new CompiledKeys($,_e)}getMessageComponents(){const j=[...this.keyMetaMap.entries()];assert(j.length<=256,"Max static account keys length exceeded");const $=j.filter(([,ot])=>ot.isSigner&&ot.isWritable),_e=j.filter(([,ot])=>ot.isSigner&&!ot.isWritable),et=j.filter(([,ot])=>!ot.isSigner&&ot.isWritable),tt=j.filter(([,ot])=>!ot.isSigner&&!ot.isWritable),nt={numRequiredSignatures:$.length+_e.length,numReadonlySignedAccounts:_e.length,numReadonlyUnsignedAccounts:tt.length};{assert($.length>0,"Expected at least one writable signer key");const[ot]=$[0];assert(ot===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const rt=[...$.map(([ot])=>new PublicKey(ot)),..._e.map(([ot])=>new PublicKey(ot)),...et.map(([ot])=>new PublicKey(ot)),...tt.map(([ot])=>new PublicKey(ot))];return[nt,rt]}extractTableLookup(j){const[$,_e]=this.drainKeysFoundInLookupTable(j.state.addresses,nt=>!nt.isSigner&&!nt.isInvoked&&nt.isWritable),[et,tt]=this.drainKeysFoundInLookupTable(j.state.addresses,nt=>!nt.isSigner&&!nt.isInvoked&&!nt.isWritable);if(!($.length===0&&et.length===0))return[{accountKey:j.key,writableIndexes:$,readonlyIndexes:et},{writable:_e,readonly:tt}]}drainKeysFoundInLookupTable(j,$){const _e=new Array,et=new Array;for(const[tt,nt]of this.keyMetaMap.entries())if($(nt)){const rt=new PublicKey(tt),ot=j.findIndex(it=>it.equals(rt));ot>=0&&(assert(ot<256,"Max lookup table index exceeded"),_e.push(ot),et.push(rt),this.keyMetaMap.delete(tt))}return[_e,et]}}const END_OF_BUFFER_ERROR_MESSAGE="Reached end of buffer unexpectedly";function guardedShift(s){if(s.length===0)throw new Error(END_OF_BUFFER_ERROR_MESSAGE);return s.shift()}function guardedSplice(s,...j){const[$]=j;if(j.length===2?$+(j[1]??0)>s.length:$>=s.length)throw new Error(END_OF_BUFFER_ERROR_MESSAGE);return s.splice(...j)}class Message{constructor(j){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=j.header,this.accountKeys=j.accountKeys.map($=>new PublicKey($)),this.recentBlockhash=j.recentBlockhash,this.instructions=j.instructions,this.instructions.forEach($=>this.indexToProgramIds.set($.programIdIndex,this.accountKeys[$.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(j=>({programIdIndex:j.programIdIndex,accountKeyIndexes:j.accounts,data:base58.decode(j.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new MessageAccountKeys(this.staticAccountKeys)}static compile(j){const $=CompiledKeys.compile(j.instructions,j.payerKey),[_e,et]=$.getMessageComponents(),nt=new MessageAccountKeys(et).compileInstructions(j.instructions).map(rt=>({programIdIndex:rt.programIdIndex,accounts:rt.accountKeyIndexes,data:base58.encode(rt.data)}));return new Message({header:_e,accountKeys:et,recentBlockhash:j.recentBlockhash,instructions:nt})}isAccountSigner(j){return j=this.header.numRequiredSignatures){const _e=j-$,tt=this.accountKeys.length-$-this.header.numReadonlyUnsignedAccounts;return _e!this.isProgramId($))}serialize(){const j=this.accountKeys.length;let $=[];encodeLength($,j);const _e=this.instructions.map(at=>{const{accounts:ct,programIdIndex:lt}=at,dt=Array.from(base58.decode(at.data));let ft=[];encodeLength(ft,ct.length);let gt=[];return encodeLength(gt,dt.length),{programIdIndex:lt,keyIndicesCount:buffer.Buffer.from(ft),keyIndices:ct,dataLength:buffer.Buffer.from(gt),data:dt}});let et=[];encodeLength(et,_e.length);let tt=buffer.Buffer.alloc(PACKET_DATA_SIZE);buffer.Buffer.from(et).copy(tt);let nt=et.length;_e.forEach(at=>{const lt=struct([u8("programIdIndex"),blob(at.keyIndicesCount.length,"keyIndicesCount"),seq(u8("keyIndex"),at.keyIndices.length,"keyIndices"),blob(at.dataLength.length,"dataLength"),seq(u8("userdatum"),at.data.length,"data")]).encode(at,tt,nt);nt+=lt}),tt=tt.slice(0,nt);const rt=struct([blob(1,"numRequiredSignatures"),blob(1,"numReadonlySignedAccounts"),blob(1,"numReadonlyUnsignedAccounts"),blob($.length,"keyCount"),seq(publicKey("key"),j,"keys"),publicKey("recentBlockhash")]),ot={numRequiredSignatures:buffer.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:buffer.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:buffer.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:buffer.Buffer.from($),keys:this.accountKeys.map(at=>toBuffer(at.toBytes())),recentBlockhash:base58.decode(this.recentBlockhash)};let it=buffer.Buffer.alloc(2048);const st=rt.encode(ot,it);return tt.copy(it,st),it.slice(0,st+tt.length)}static from(j){let $=[...j];const _e=guardedShift($);if(_e!==(_e&VERSION_PREFIX_MASK))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const et=guardedShift($),tt=guardedShift($),nt=decodeLength($);let rt=[];for(let ct=0;ct0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new MessageAccountKeys(this.staticAccountKeys,$)}isAccountSigner(j){return j=_e){const et=j-_e,tt=this.addressTableLookups.reduce((nt,rt)=>nt+rt.writableIndexes.length,0);return et=this.header.numRequiredSignatures){const et=j-$,nt=_e-$-this.header.numReadonlyUnsignedAccounts;return ettt.key.equals(_e.accountKey));if(!et)throw new Error(`Failed to find address lookup table account for table key ${_e.accountKey.toBase58()}`);for(const tt of _e.writableIndexes)if(ttst.toBytes()),recentBlockhash:base58.decode(this.recentBlockhash),instructionsLength:new Uint8Array(_e),serializedInstructions:$,addressTableLookupsLength:new Uint8Array(tt),serializedAddressTableLookups:et},rt);return rt.slice(0,it)}serializeInstructions(){let j=0;const $=new Uint8Array(PACKET_DATA_SIZE);for(const _e of this.compiledInstructions){const et=Array();encodeLength(et,_e.accountKeyIndexes.length);const tt=Array();encodeLength(tt,_e.data.length);const nt=struct([u8("programIdIndex"),blob(et.length,"encodedAccountKeyIndexesLength"),seq(u8(),_e.accountKeyIndexes.length,"accountKeyIndexes"),blob(tt.length,"encodedDataLength"),blob(_e.data.length,"data")]);j+=nt.encode({programIdIndex:_e.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(et),accountKeyIndexes:_e.accountKeyIndexes,encodedDataLength:new Uint8Array(tt),data:_e.data},$,j)}return $.slice(0,j)}serializeAddressTableLookups(){let j=0;const $=new Uint8Array(PACKET_DATA_SIZE);for(const _e of this.addressTableLookups){const et=Array();encodeLength(et,_e.writableIndexes.length);const tt=Array();encodeLength(tt,_e.readonlyIndexes.length);const nt=struct([publicKey("accountKey"),blob(et.length,"encodedWritableIndexesLength"),seq(u8(),_e.writableIndexes.length,"writableIndexes"),blob(tt.length,"encodedReadonlyIndexesLength"),seq(u8(),_e.readonlyIndexes.length,"readonlyIndexes")]);j+=nt.encode({accountKey:_e.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(et),writableIndexes:_e.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(tt),readonlyIndexes:_e.readonlyIndexes},$,j)}return $.slice(0,j)}static deserialize(j){let $=[...j];const _e=guardedShift($),et=_e&VERSION_PREFIX_MASK;assert(_e!==et,"Expected versioned message but received legacy message");const tt=et;assert(tt===0,`Expected versioned message with version 0 but found version ${tt}`);const nt={numRequiredSignatures:guardedShift($),numReadonlySignedAccounts:guardedShift($),numReadonlyUnsignedAccounts:guardedShift($)},rt=[],ot=decodeLength($);for(let dt=0;dt{const j=VersionedMessage.deserializeMessageVersion(s);if(j==="legacy")return Message.from(s);if(j===0)return MessageV0.deserialize(s);throw new Error(`Transaction message version ${j} deserialization is not supported`)}};let TransactionStatus=function(s){return s[s.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",s[s.PROCESSED=1]="PROCESSED",s[s.TIMED_OUT=2]="TIMED_OUT",s[s.NONCE_INVALID=3]="NONCE_INVALID",s}({});const DEFAULT_SIGNATURE=buffer.Buffer.alloc(SIGNATURE_LENGTH_IN_BYTES).fill(0);class TransactionInstruction{constructor(j){this.keys=void 0,this.programId=void 0,this.data=buffer.Buffer.alloc(0),this.programId=j.programId,this.keys=j.keys,j.data&&(this.data=j.data)}toJSON(){return{keys:this.keys.map(({pubkey:j,isSigner:$,isWritable:_e})=>({pubkey:j.toJSON(),isSigner:$,isWritable:_e})),programId:this.programId.toJSON(),data:[...this.data]}}}class Transaction{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(j){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,!!j)if(j.feePayer&&(this.feePayer=j.feePayer),j.signatures&&(this.signatures=j.signatures),Object.prototype.hasOwnProperty.call(j,"nonceInfo")){const{minContextSlot:$,nonceInfo:_e}=j;this.minNonceContextSlot=$,this.nonceInfo=_e}else if(Object.prototype.hasOwnProperty.call(j,"lastValidBlockHeight")){const{blockhash:$,lastValidBlockHeight:_e}=j;this.recentBlockhash=$,this.lastValidBlockHeight=_e}else{const{recentBlockhash:$,nonceInfo:_e}=j;_e&&(this.nonceInfo=_e),this.recentBlockhash=$}}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(j=>j.toJSON()),signers:this.signatures.map(({publicKey:j})=>j.toJSON())}}add(...j){if(j.length===0)throw new Error("No instructions");return j.forEach($=>{"instructions"in $?this.instructions=this.instructions.concat($.instructions):"data"in $&&"programId"in $&&"keys"in $?this.instructions.push($):this.instructions.push(new TransactionInstruction($))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let j,$;if(this.nonceInfo?(j=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?$=[this.nonceInfo.nonceInstruction,...this.instructions]:$=this.instructions):(j=this.recentBlockhash,$=this.instructions),!j)throw new Error("Transaction recentBlockhash required");$.length<1&&console.warn("No instructions provided");let _e;if(this.feePayer)_e=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)_e=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let ft=0;ft<$.length;ft++)if($[ft].programId===void 0)throw new Error(`Transaction instruction index ${ft} has undefined program id`);const et=[],tt=[];$.forEach(ft=>{ft.keys.forEach(yt=>{tt.push({...yt})});const gt=ft.programId.toString();et.includes(gt)||et.push(gt)}),et.forEach(ft=>{tt.push({pubkey:new PublicKey(ft),isSigner:!1,isWritable:!1})});const nt=[];tt.forEach(ft=>{const gt=ft.pubkey.toString(),yt=nt.findIndex(mt=>mt.pubkey.toString()===gt);yt>-1?(nt[yt].isWritable=nt[yt].isWritable||ft.isWritable,nt[yt].isSigner=nt[yt].isSigner||ft.isSigner):nt.push(ft)}),nt.sort(function(ft,gt){if(ft.isSigner!==gt.isSigner)return ft.isSigner?-1:1;if(ft.isWritable!==gt.isWritable)return ft.isWritable?-1:1;const yt={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return ft.pubkey.toBase58().localeCompare(gt.pubkey.toBase58(),"en",yt)});const rt=nt.findIndex(ft=>ft.pubkey.equals(_e));if(rt>-1){const[ft]=nt.splice(rt,1);ft.isSigner=!0,ft.isWritable=!0,nt.unshift(ft)}else nt.unshift({pubkey:_e,isSigner:!0,isWritable:!0});for(const ft of this.signatures){const gt=nt.findIndex(yt=>yt.pubkey.equals(ft.publicKey));if(gt>-1)nt[gt].isSigner||(nt[gt].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 new Error(`unknown signer: ${ft.publicKey.toString()}`)}let ot=0,it=0,st=0;const at=[],ct=[];nt.forEach(({pubkey:ft,isSigner:gt,isWritable:yt})=>{gt?(at.push(ft.toString()),ot+=1,yt||(it+=1)):(ct.push(ft.toString()),yt||(st+=1))});const lt=at.concat(ct),dt=$.map(ft=>{const{data:gt,programId:yt}=ft;return{programIdIndex:lt.indexOf(yt.toString()),accounts:ft.keys.map(mt=>lt.indexOf(mt.pubkey.toString())),data:base58.encode(gt)}});return dt.forEach(ft=>{assert(ft.programIdIndex>=0),ft.accounts.forEach(gt=>assert(gt>=0))}),new Message({header:{numRequiredSignatures:ot,numReadonlySignedAccounts:it,numReadonlyUnsignedAccounts:st},accountKeys:lt,recentBlockhash:j,instructions:dt})}_compile(){const j=this.compileMessage(),$=j.accountKeys.slice(0,j.header.numRequiredSignatures);return this.signatures.length===$.length&&this.signatures.every((et,tt)=>$[tt].equals(et.publicKey))||(this.signatures=$.map(_e=>({signature:null,publicKey:_e}))),j}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(j){return(await j.getFeeForMessage(this.compileMessage())).value}setSigners(...j){if(j.length===0)throw new Error("No signers");const $=new Set;this.signatures=j.filter(_e=>{const et=_e.toString();return $.has(et)?!1:($.add(et),!0)}).map(_e=>({signature:null,publicKey:_e}))}sign(...j){if(j.length===0)throw new Error("No signers");const $=new Set,_e=[];for(const tt of j){const nt=tt.publicKey.toString();$.has(nt)||($.add(nt),_e.push(tt))}this.signatures=_e.map(tt=>({signature:null,publicKey:tt.publicKey}));const et=this._compile();this._partialSign(et,..._e)}partialSign(...j){if(j.length===0)throw new Error("No signers");const $=new Set,_e=[];for(const tt of j){const nt=tt.publicKey.toString();$.has(nt)||($.add(nt),_e.push(tt))}const et=this._compile();this._partialSign(et,..._e)}_partialSign(j,...$){const _e=j.serialize();$.forEach(et=>{const tt=sign(_e,et.secretKey);this._addSignature(et.publicKey,toBuffer(tt))})}addSignature(j,$){this._compile(),this._addSignature(j,$)}_addSignature(j,$){assert($.length===64);const _e=this.signatures.findIndex(et=>j.equals(et.publicKey));if(_e<0)throw new Error(`unknown signer: ${j.toString()}`);this.signatures[_e].signature=buffer.Buffer.from($)}verifySignatures(j=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),j)}_getMessageSignednessErrors(j,$){const _e={};for(const{signature:et,publicKey:tt}of this.signatures)et===null?$&&(_e.missing||(_e.missing=[])).push(tt):verify(et,j,tt.toBytes())||(_e.invalid||(_e.invalid=[])).push(tt);return _e.invalid||_e.missing?_e:void 0}serialize(j){const{requireAllSignatures:$,verifySignatures:_e}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},j),et=this.serializeMessage();if(_e){const tt=this._getMessageSignednessErrors(et,$);if(tt){let nt="Signature verification failed.";throw tt.invalid&&(nt+=` Invalid signature for public key${tt.invalid.length===1?"":"(s)"} [\`${tt.invalid.map(rt=>rt.toBase58()).join("`, `")}\`].`),tt.missing&&(nt+=` -Missing signature for public key${tt.missing.length===1?"":"(s)"} [\`${tt.missing.map(rt=>rt.toBase58()).join("`, `")}\`].`),new Error(nt)}}return this._serialize(et)}_serialize(j){const{signatures:$}=this,_e=[];encodeLength(_e,$.length);const et=_e.length+$.length*64+j.length,tt=buffer.Buffer.alloc(et);return assert($.length<256),buffer.Buffer.from(_e).copy(tt,0),$.forEach(({signature:nt},rt)=>{nt!==null&&(assert(nt.length===64,"signature has invalid length"),buffer.Buffer.from(nt).copy(tt,_e.length+rt*64))}),j.copy(tt,_e.length+$.length*64),assert(tt.length<=PACKET_DATA_SIZE,`Transaction too large: ${tt.length} > ${PACKET_DATA_SIZE}`),tt}get keys(){return assert(this.instructions.length===1),this.instructions[0].keys.map(j=>j.pubkey)}get programId(){return assert(this.instructions.length===1),this.instructions[0].programId}get data(){return assert(this.instructions.length===1),this.instructions[0].data}static from(j){let $=[...j];const _e=decodeLength($);let et=[];for(let tt=0;tt<_e;tt++){const nt=guardedSplice($,0,SIGNATURE_LENGTH_IN_BYTES);et.push(base58.encode(buffer.Buffer.from(nt)))}return Transaction.populate(Message.from($),et)}static populate(j,$=[]){const _e=new Transaction;return _e.recentBlockhash=j.recentBlockhash,j.header.numRequiredSignatures>0&&(_e.feePayer=j.accountKeys[0]),$.forEach((et,tt)=>{const nt={signature:et==base58.encode(DEFAULT_SIGNATURE)?null:base58.decode(et),publicKey:j.accountKeys[tt]};_e.signatures.push(nt)}),j.instructions.forEach(et=>{const tt=et.accounts.map(nt=>{const rt=j.accountKeys[nt];return{pubkey:rt,isSigner:_e.signatures.some(ot=>ot.publicKey.toString()===rt.toString())||j.isAccountSigner(nt),isWritable:j.isAccountWritable(nt)}});_e.instructions.push(new TransactionInstruction({keys:tt,programId:j.accountKeys[et.programIdIndex],data:base58.decode(et.data)}))}),_e._message=j,_e._json=_e.toJSON(),_e}}class TransactionMessage{constructor(j){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=j.payerKey,this.instructions=j.instructions,this.recentBlockhash=j.recentBlockhash}static decompile(j,$){const{header:_e,compiledInstructions:et,recentBlockhash:tt}=j,{numRequiredSignatures:nt,numReadonlySignedAccounts:rt,numReadonlyUnsignedAccounts:ot}=_e,it=nt-rt;assert(it>0,"Message header is invalid");const st=j.staticAccountKeys.length-nt-ot;assert(st>=0,"Message header is invalid");const at=j.getAccountKeys($),ct=at.get(0);if(ct===void 0)throw new Error("Failed to decompile message because no account keys were found");const lt=[];for(const dt of et){const pt=[];for(const yt of dt.accountKeyIndexes){const gt=at.get(yt);if(gt===void 0)throw new Error(`Failed to find key for account key index ${yt}`);const ft=ytnt.equals(et.publicKey));assert(tt>=0,`Cannot sign with non signer key ${et.publicKey.toBase58()}`),this.signatures[tt]=sign($,et.secretKey)}}addSignature(j,$){assert($.byteLength===64,"Signature must be 64 bytes long");const et=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(tt=>tt.equals(j));assert(et>=0,`Can not add signature; \`${j.toBase58()}\` is not required to sign this transaction`),this.signatures[et]=$}}const NUM_TICKS_PER_SECOND=160,DEFAULT_TICKS_PER_SLOT=64,NUM_SLOTS_PER_SECOND=NUM_TICKS_PER_SECOND/DEFAULT_TICKS_PER_SLOT,MS_PER_SLOT=1e3/NUM_SLOTS_PER_SECOND,SYSVAR_CLOCK_PUBKEY=new PublicKey("SysvarC1ock11111111111111111111111111111111"),SYSVAR_EPOCH_SCHEDULE_PUBKEY=new PublicKey("SysvarEpochSchedu1e111111111111111111111111"),SYSVAR_INSTRUCTIONS_PUBKEY=new PublicKey("Sysvar1nstructions1111111111111111111111111"),SYSVAR_RECENT_BLOCKHASHES_PUBKEY=new PublicKey("SysvarRecentB1ockHashes11111111111111111111"),SYSVAR_RENT_PUBKEY=new PublicKey("SysvarRent111111111111111111111111111111111"),SYSVAR_REWARDS_PUBKEY=new PublicKey("SysvarRewards111111111111111111111111111111"),SYSVAR_SLOT_HASHES_PUBKEY=new PublicKey("SysvarS1otHashes111111111111111111111111111"),SYSVAR_SLOT_HISTORY_PUBKEY=new PublicKey("SysvarS1otHistory11111111111111111111111111"),SYSVAR_STAKE_HISTORY_PUBKEY=new PublicKey("SysvarStakeHistory1111111111111111111111111");class SendTransactionError extends Error{constructor({action:j,signature:$,transactionMessage:_e,logs:et}){const tt=et?`Logs: +Missing signature for public key${tt.missing.length===1?"":"(s)"} [\`${tt.missing.map(rt=>rt.toBase58()).join("`, `")}\`].`),new Error(nt)}}return this._serialize(et)}_serialize(j){const{signatures:$}=this,_e=[];encodeLength(_e,$.length);const et=_e.length+$.length*64+j.length,tt=buffer.Buffer.alloc(et);return assert($.length<256),buffer.Buffer.from(_e).copy(tt,0),$.forEach(({signature:nt},rt)=>{nt!==null&&(assert(nt.length===64,"signature has invalid length"),buffer.Buffer.from(nt).copy(tt,_e.length+rt*64))}),j.copy(tt,_e.length+$.length*64),assert(tt.length<=PACKET_DATA_SIZE,`Transaction too large: ${tt.length} > ${PACKET_DATA_SIZE}`),tt}get keys(){return assert(this.instructions.length===1),this.instructions[0].keys.map(j=>j.pubkey)}get programId(){return assert(this.instructions.length===1),this.instructions[0].programId}get data(){return assert(this.instructions.length===1),this.instructions[0].data}static from(j){let $=[...j];const _e=decodeLength($);let et=[];for(let tt=0;tt<_e;tt++){const nt=guardedSplice($,0,SIGNATURE_LENGTH_IN_BYTES);et.push(base58.encode(buffer.Buffer.from(nt)))}return Transaction.populate(Message.from($),et)}static populate(j,$=[]){const _e=new Transaction;return _e.recentBlockhash=j.recentBlockhash,j.header.numRequiredSignatures>0&&(_e.feePayer=j.accountKeys[0]),$.forEach((et,tt)=>{const nt={signature:et==base58.encode(DEFAULT_SIGNATURE)?null:base58.decode(et),publicKey:j.accountKeys[tt]};_e.signatures.push(nt)}),j.instructions.forEach(et=>{const tt=et.accounts.map(nt=>{const rt=j.accountKeys[nt];return{pubkey:rt,isSigner:_e.signatures.some(ot=>ot.publicKey.toString()===rt.toString())||j.isAccountSigner(nt),isWritable:j.isAccountWritable(nt)}});_e.instructions.push(new TransactionInstruction({keys:tt,programId:j.accountKeys[et.programIdIndex],data:base58.decode(et.data)}))}),_e._message=j,_e._json=_e.toJSON(),_e}}class TransactionMessage{constructor(j){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=j.payerKey,this.instructions=j.instructions,this.recentBlockhash=j.recentBlockhash}static decompile(j,$){const{header:_e,compiledInstructions:et,recentBlockhash:tt}=j,{numRequiredSignatures:nt,numReadonlySignedAccounts:rt,numReadonlyUnsignedAccounts:ot}=_e,it=nt-rt;assert(it>0,"Message header is invalid");const st=j.staticAccountKeys.length-nt-ot;assert(st>=0,"Message header is invalid");const at=j.getAccountKeys($),ct=at.get(0);if(ct===void 0)throw new Error("Failed to decompile message because no account keys were found");const lt=[];for(const dt of et){const ft=[];for(const yt of dt.accountKeyIndexes){const mt=at.get(yt);if(mt===void 0)throw new Error(`Failed to find key for account key index ${yt}`);const pt=ytnt.equals(et.publicKey));assert(tt>=0,`Cannot sign with non signer key ${et.publicKey.toBase58()}`),this.signatures[tt]=sign($,et.secretKey)}}addSignature(j,$){assert($.byteLength===64,"Signature must be 64 bytes long");const et=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(tt=>tt.equals(j));assert(et>=0,`Can not add signature; \`${j.toBase58()}\` is not required to sign this transaction`),this.signatures[et]=$}}const NUM_TICKS_PER_SECOND=160,DEFAULT_TICKS_PER_SLOT=64,NUM_SLOTS_PER_SECOND=NUM_TICKS_PER_SECOND/DEFAULT_TICKS_PER_SLOT,MS_PER_SLOT=1e3/NUM_SLOTS_PER_SECOND,SYSVAR_CLOCK_PUBKEY=new PublicKey("SysvarC1ock11111111111111111111111111111111"),SYSVAR_EPOCH_SCHEDULE_PUBKEY=new PublicKey("SysvarEpochSchedu1e111111111111111111111111"),SYSVAR_INSTRUCTIONS_PUBKEY=new PublicKey("Sysvar1nstructions1111111111111111111111111"),SYSVAR_RECENT_BLOCKHASHES_PUBKEY=new PublicKey("SysvarRecentB1ockHashes11111111111111111111"),SYSVAR_RENT_PUBKEY=new PublicKey("SysvarRent111111111111111111111111111111111"),SYSVAR_REWARDS_PUBKEY=new PublicKey("SysvarRewards111111111111111111111111111111"),SYSVAR_SLOT_HASHES_PUBKEY=new PublicKey("SysvarS1otHashes111111111111111111111111111"),SYSVAR_SLOT_HISTORY_PUBKEY=new PublicKey("SysvarS1otHistory11111111111111111111111111"),SYSVAR_STAKE_HISTORY_PUBKEY=new PublicKey("SysvarStakeHistory1111111111111111111111111");class SendTransactionError extends Error{constructor({action:j,signature:$,transactionMessage:_e,logs:et}){const tt=et?`Logs: ${JSON.stringify(et.slice(-10),null,2)}. `:"",nt="\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.";let rt;switch(j){case"send":rt=`Transaction ${$} resulted in an error. ${_e}. `+tt+nt;break;case"simulate":rt=`Simulation failed. Message: ${_e}. -`+tt+nt;break;default:rt=`Unknown action '${(ot=>ot)(j)}'`}super(rt),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=$,this.transactionMessage=_e,this.transactionLogs=et||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){const j=this.transactionLogs;if(!(j!=null&&typeof j=="object"&&"then"in j))return j}async getLogs(j){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise(($,_e)=>{j.getTransaction(this.signature).then(et=>{if(et&&et.meta&&et.meta.logMessages){const tt=et.meta.logMessages;this.transactionLogs=tt,$(tt)}else _e(new Error("Log messages not found"))}).catch(_e)})),await this.transactionLogs}}const SolanaJSONRPCErrorCode={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};class SolanaJSONRPCError extends Error{constructor({code:j,message:$,data:_e},et){super(et!=null?`${et}: ${$}`:$),this.code=void 0,this.data=void 0,this.code=j,this.data=_e,this.name="SolanaJSONRPCError"}}async function sendAndConfirmTransaction(s,j,$,_e){const et=_e&&{skipPreflight:_e.skipPreflight,preflightCommitment:_e.preflightCommitment||_e.commitment,maxRetries:_e.maxRetries,minContextSlot:_e.minContextSlot},tt=await s.sendTransaction(j,$,et);let nt;if(j.recentBlockhash!=null&&j.lastValidBlockHeight!=null)nt=(await s.confirmTransaction({abortSignal:_e==null?void 0:_e.abortSignal,signature:tt,blockhash:j.recentBlockhash,lastValidBlockHeight:j.lastValidBlockHeight},_e&&_e.commitment)).value;else if(j.minNonceContextSlot!=null&&j.nonceInfo!=null){const{nonceInstruction:rt}=j.nonceInfo,ot=rt.keys[0].pubkey;nt=(await s.confirmTransaction({abortSignal:_e==null?void 0:_e.abortSignal,minContextSlot:j.minNonceContextSlot,nonceAccountPubkey:ot,nonceValue:j.nonceInfo.nonce,signature:tt},_e&&_e.commitment)).value}else(_e==null?void 0:_e.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."),nt=(await s.confirmTransaction(tt,_e&&_e.commitment)).value;if(nt.err)throw tt!=null?new SendTransactionError({action:"send",signature:tt,transactionMessage:`Status: (${JSON.stringify(nt)})`}):new Error(`Transaction ${tt} failed (${JSON.stringify(nt)})`);return tt}function sleep(s){return new Promise(j=>setTimeout(j,s))}function encodeData(s,j){const $=s.layout.span>=0?s.layout.span:getAlloc(s,j),_e=buffer.Buffer.alloc($),et=Object.assign({instruction:s.index},j);return s.layout.encode(et,_e),_e}function decodeData$1(s,j){let $;try{$=s.layout.decode(j)}catch(_e){throw new Error("invalid instruction; "+_e)}if($.instruction!==s.index)throw new Error(`invalid instruction; instruction index mismatch ${$.instruction} != ${s.index}`);return $}const FeeCalculatorLayout=nu64("lamportsPerSignature"),NonceAccountLayout=struct([u32("version"),u32("state"),publicKey("authorizedPubkey"),publicKey("nonce"),struct([FeeCalculatorLayout],"feeCalculator")]),NONCE_ACCOUNT_LENGTH=NonceAccountLayout.span;class NonceAccount{constructor(j){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=j.authorizedPubkey,this.nonce=j.nonce,this.feeCalculator=j.feeCalculator}static fromAccountData(j){const $=NonceAccountLayout.decode(toBuffer(j),0);return new NonceAccount({authorizedPubkey:new PublicKey($.authorizedPubkey),nonce:new PublicKey($.nonce).toString(),feeCalculator:$.feeCalculator})}}const encodeDecode=s=>{const j=s.decode.bind(s),$=s.encode.bind(s);return{decode:j,encode:$}},bigInt=s=>j=>{const $=blob(s,j),{encode:_e,decode:et}=encodeDecode($),tt=$;return tt.decode=(nt,rt)=>{const ot=et(nt,rt);return toBigIntLE_1(buffer.Buffer.from(ot))},tt.encode=(nt,rt,ot)=>{const it=toBufferLE_1(nt,s);return _e(it,rt,ot)},tt},u64=bigInt(8);class SystemInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u32("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(SYSTEM_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Instruction type incorrect; not a SystemInstruction");return et}static decodeCreateAccount(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{lamports:$,space:_e,programId:et}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Create,j.data);return{fromPubkey:j.keys[0].pubkey,newAccountPubkey:j.keys[1].pubkey,lamports:$,space:_e,programId:new PublicKey(et)}}static decodeTransfer(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{lamports:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Transfer,j.data);return{fromPubkey:j.keys[0].pubkey,toPubkey:j.keys[1].pubkey,lamports:$}}static decodeTransferWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{lamports:$,seed:_e,programId:et}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.TransferWithSeed,j.data);return{fromPubkey:j.keys[0].pubkey,basePubkey:j.keys[1].pubkey,toPubkey:j.keys[2].pubkey,lamports:$,seed:_e,programId:new PublicKey(et)}}static decodeAllocate(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,1);const{space:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Allocate,j.data);return{accountPubkey:j.keys[0].pubkey,space:$}}static decodeAllocateWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,1);const{base:$,seed:_e,space:et,programId:tt}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AllocateWithSeed,j.data);return{accountPubkey:j.keys[0].pubkey,basePubkey:new PublicKey($),seed:_e,space:et,programId:new PublicKey(tt)}}static decodeAssign(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,1);const{programId:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Assign,j.data);return{accountPubkey:j.keys[0].pubkey,programId:new PublicKey($)}}static decodeAssignWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,1);const{base:$,seed:_e,programId:et}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AssignWithSeed,j.data);return{accountPubkey:j.keys[0].pubkey,basePubkey:new PublicKey($),seed:_e,programId:new PublicKey(et)}}static decodeCreateWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{base:$,seed:_e,lamports:et,space:tt,programId:nt}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.CreateWithSeed,j.data);return{fromPubkey:j.keys[0].pubkey,newAccountPubkey:j.keys[1].pubkey,basePubkey:new PublicKey($),seed:_e,lamports:et,space:tt,programId:new PublicKey(nt)}}static decodeNonceInitialize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{authorized:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.InitializeNonceAccount,j.data);return{noncePubkey:j.keys[0].pubkey,authorizedPubkey:new PublicKey($)}}static decodeNonceAdvance(j){return this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3),decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AdvanceNonceAccount,j.data),{noncePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[2].pubkey}}static decodeNonceWithdraw(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,5);const{lamports:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.WithdrawNonceAccount,j.data);return{noncePubkey:j.keys[0].pubkey,toPubkey:j.keys[1].pubkey,authorizedPubkey:j.keys[4].pubkey,lamports:$}}static decodeNonceAuthorize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{authorized:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AuthorizeNonceAccount,j.data);return{noncePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[1].pubkey,newAuthorizedPubkey:new PublicKey($)}}static checkProgramId(j){if(!j.equals(SystemProgram.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(j,$){if(j.length<$)throw new Error(`invalid instruction; found ${j.length} keys, expected at least ${$}`)}}const SYSTEM_INSTRUCTION_LAYOUTS=Object.freeze({Create:{index:0,layout:struct([u32("instruction"),ns64("lamports"),ns64("space"),publicKey("programId")])},Assign:{index:1,layout:struct([u32("instruction"),publicKey("programId")])},Transfer:{index:2,layout:struct([u32("instruction"),u64("lamports")])},CreateWithSeed:{index:3,layout:struct([u32("instruction"),publicKey("base"),rustString("seed"),ns64("lamports"),ns64("space"),publicKey("programId")])},AdvanceNonceAccount:{index:4,layout:struct([u32("instruction")])},WithdrawNonceAccount:{index:5,layout:struct([u32("instruction"),ns64("lamports")])},InitializeNonceAccount:{index:6,layout:struct([u32("instruction"),publicKey("authorized")])},AuthorizeNonceAccount:{index:7,layout:struct([u32("instruction"),publicKey("authorized")])},Allocate:{index:8,layout:struct([u32("instruction"),ns64("space")])},AllocateWithSeed:{index:9,layout:struct([u32("instruction"),publicKey("base"),rustString("seed"),ns64("space"),publicKey("programId")])},AssignWithSeed:{index:10,layout:struct([u32("instruction"),publicKey("base"),rustString("seed"),publicKey("programId")])},TransferWithSeed:{index:11,layout:struct([u32("instruction"),u64("lamports"),rustString("seed"),publicKey("programId")])},UpgradeNonceAccount:{index:12,layout:struct([u32("instruction")])}});class SystemProgram{constructor(){}static createAccount(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.Create,_e=encodeData($,{lamports:j.lamports,space:j.space,programId:toBuffer(j.programId.toBuffer())});return new TransactionInstruction({keys:[{pubkey:j.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:j.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:_e})}static transfer(j){let $,_e;if("basePubkey"in j){const et=SYSTEM_INSTRUCTION_LAYOUTS.TransferWithSeed;$=encodeData(et,{lamports:BigInt(j.lamports),seed:j.seed,programId:toBuffer(j.programId.toBuffer())}),_e=[{pubkey:j.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:j.basePubkey,isSigner:!0,isWritable:!1},{pubkey:j.toPubkey,isSigner:!1,isWritable:!0}]}else{const et=SYSTEM_INSTRUCTION_LAYOUTS.Transfer;$=encodeData(et,{lamports:BigInt(j.lamports)}),_e=[{pubkey:j.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:j.toPubkey,isSigner:!1,isWritable:!0}]}return new TransactionInstruction({keys:_e,programId:this.programId,data:$})}static assign(j){let $,_e;if("basePubkey"in j){const et=SYSTEM_INSTRUCTION_LAYOUTS.AssignWithSeed;$=encodeData(et,{base:toBuffer(j.basePubkey.toBuffer()),seed:j.seed,programId:toBuffer(j.programId.toBuffer())}),_e=[{pubkey:j.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:j.basePubkey,isSigner:!0,isWritable:!1}]}else{const et=SYSTEM_INSTRUCTION_LAYOUTS.Assign;$=encodeData(et,{programId:toBuffer(j.programId.toBuffer())}),_e=[{pubkey:j.accountPubkey,isSigner:!0,isWritable:!0}]}return new TransactionInstruction({keys:_e,programId:this.programId,data:$})}static createAccountWithSeed(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.CreateWithSeed,_e=encodeData($,{base:toBuffer(j.basePubkey.toBuffer()),seed:j.seed,lamports:j.lamports,space:j.space,programId:toBuffer(j.programId.toBuffer())});let et=[{pubkey:j.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:j.newAccountPubkey,isSigner:!1,isWritable:!0}];return j.basePubkey.equals(j.fromPubkey)||et.push({pubkey:j.basePubkey,isSigner:!0,isWritable:!1}),new TransactionInstruction({keys:et,programId:this.programId,data:_e})}static createNonceAccount(j){const $=new Transaction;"basePubkey"in j&&"seed"in j?$.add(SystemProgram.createAccountWithSeed({fromPubkey:j.fromPubkey,newAccountPubkey:j.noncePubkey,basePubkey:j.basePubkey,seed:j.seed,lamports:j.lamports,space:NONCE_ACCOUNT_LENGTH,programId:this.programId})):$.add(SystemProgram.createAccount({fromPubkey:j.fromPubkey,newAccountPubkey:j.noncePubkey,lamports:j.lamports,space:NONCE_ACCOUNT_LENGTH,programId:this.programId}));const _e={noncePubkey:j.noncePubkey,authorizedPubkey:j.authorizedPubkey};return $.add(this.nonceInitialize(_e)),$}static nonceInitialize(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.InitializeNonceAccount,_e=encodeData($,{authorized:toBuffer(j.authorizedPubkey.toBuffer())}),et={keys:[{pubkey:j.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RECENT_BLOCKHASHES_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:this.programId,data:_e};return new TransactionInstruction(et)}static nonceAdvance(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.AdvanceNonceAccount,_e=encodeData($),et={keys:[{pubkey:j.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RECENT_BLOCKHASHES_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:j.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:_e};return new TransactionInstruction(et)}static nonceWithdraw(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.WithdrawNonceAccount,_e=encodeData($,{lamports:j.lamports});return new TransactionInstruction({keys:[{pubkey:j.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:j.toPubkey,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RECENT_BLOCKHASHES_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:j.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:_e})}static nonceAuthorize(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.AuthorizeNonceAccount,_e=encodeData($,{authorized:toBuffer(j.newAuthorizedPubkey.toBuffer())});return new TransactionInstruction({keys:[{pubkey:j.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:j.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:_e})}static allocate(j){let $,_e;if("basePubkey"in j){const et=SYSTEM_INSTRUCTION_LAYOUTS.AllocateWithSeed;$=encodeData(et,{base:toBuffer(j.basePubkey.toBuffer()),seed:j.seed,space:j.space,programId:toBuffer(j.programId.toBuffer())}),_e=[{pubkey:j.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:j.basePubkey,isSigner:!0,isWritable:!1}]}else{const et=SYSTEM_INSTRUCTION_LAYOUTS.Allocate;$=encodeData(et,{space:j.space}),_e=[{pubkey:j.accountPubkey,isSigner:!0,isWritable:!0}]}return new TransactionInstruction({keys:_e,programId:this.programId,data:$})}}SystemProgram.programId=new PublicKey("11111111111111111111111111111111");const CHUNK_SIZE=PACKET_DATA_SIZE-300;class Loader{constructor(){}static getMinNumSignatures(j){return 2*(Math.ceil(j/Loader.chunkSize)+1+1)}static async load(j,$,_e,et,tt){{const at=await j.getMinimumBalanceForRentExemption(tt.length),ct=await j.getAccountInfo(_e.publicKey,"confirmed");let lt=null;if(ct!==null){if(ct.executable)return console.error("Program load failed, account is already executable"),!1;ct.data.length!==tt.length&&(lt=lt||new Transaction,lt.add(SystemProgram.allocate({accountPubkey:_e.publicKey,space:tt.length}))),ct.owner.equals(et)||(lt=lt||new Transaction,lt.add(SystemProgram.assign({accountPubkey:_e.publicKey,programId:et}))),ct.lamports0?at:1,space:tt.length,programId:et}));lt!==null&&await sendAndConfirmTransaction(j,lt,[$,_e],{commitment:"confirmed"})}const nt=struct([u32("instruction"),u32("offset"),u32("bytesLength"),u32("bytesLengthPadding"),seq(u8("byte"),offset(u32(),-8),"bytes")]),rt=Loader.chunkSize;let ot=0,it=tt,st=[];for(;it.length>0;){const at=it.slice(0,rt),ct=buffer.Buffer.alloc(rt+16);nt.encode({instruction:0,offset:ot,bytes:at,bytesLength:0,bytesLengthPadding:0},ct);const lt=new Transaction().add({keys:[{pubkey:_e.publicKey,isSigner:!0,isWritable:!0}],programId:et,data:ct});st.push(sendAndConfirmTransaction(j,lt,[$,_e],{commitment:"confirmed"})),j._rpcEndpoint.includes("solana.com")&&await sleep(1e3/4),ot+=rt,it=it.slice(rt)}await Promise.all(st);{const at=struct([u32("instruction")]),ct=buffer.Buffer.alloc(at.span);at.encode({instruction:1},ct);const lt=new Transaction().add({keys:[{pubkey:_e.publicKey,isSigner:!0,isWritable:!0},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:et,data:ct}),dt="processed",pt=await j.sendTransaction(lt,[$,_e],{preflightCommitment:dt}),{context:ht,value:yt}=await j.confirmTransaction({signature:pt,lastValidBlockHeight:lt.lastValidBlockHeight,blockhash:lt.recentBlockhash},dt);if(yt.err)throw new Error(`Transaction ${pt} failed (${JSON.stringify(yt)})`);for(;;){try{if(await j.getSlot({commitment:dt})>ht.slot)break}catch{}await new Promise(gt=>setTimeout(gt,Math.round(MS_PER_SLOT/2)))}}return!0}}Loader.chunkSize=CHUNK_SIZE;const BPF_LOADER_PROGRAM_ID=new PublicKey("BPFLoader2111111111111111111111111111111111");class BpfLoader{static getMinNumSignatures(j){return Loader.getMinNumSignatures(j)}static load(j,$,_e,et,tt){return Loader.load(j,$,_e,tt,et)}}function getDefaultExportFromCjs(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var objToString=Object.prototype.toString,objKeys=Object.keys||function(s){var j=[];for(var $ in s)j.push($);return j};function stringify(s,j){var $,_e,et,tt,nt,rt,ot;if(s===!0)return"true";if(s===!1)return"false";switch(typeof s){case"object":if(s===null)return null;if(s.toJSON&&typeof s.toJSON=="function")return stringify(s.toJSON(),j);if(ot=objToString.call(s),ot==="[object Array]"){for(et="[",_e=s.length-1,$=0;$<_e;$++)et+=stringify(s[$],!0)+",";return _e>-1&&(et+=stringify(s[$],!0)),et+"]"}else if(ot==="[object Object]"){for(tt=objKeys(s).sort(),_e=tt.length,et="",$=0;$<_e;)nt=tt[$],rt=stringify(s[nt],!1),rt!==void 0&&(et&&(et+=","),et+=JSON.stringify(nt)+":"+rt),$++;return"{"+et+"}"}else return JSON.stringify(s);case"function":case"undefined":return j?null:void 0;case"string":return JSON.stringify(s);default:return isFinite(s)?s:null}}var fastStableStringify=function(s){var j=stringify(s,!1);if(j!==void 0)return""+j},fastStableStringify$1=getDefaultExportFromCjs(fastStableStringify);const MINIMUM_SLOT_PER_EPOCH=32;function trailingZeros(s){let j=0;for(;s>1;)s/=2,j++;return j}function nextPowerOfTwo(s){return s===0?1:(s--,s|=s>>1,s|=s>>2,s|=s>>4,s|=s>>8,s|=s>>16,s|=s>>32,s+1)}class EpochSchedule{constructor(j,$,_e,et,tt){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=j,this.leaderScheduleSlotOffset=$,this.warmup=_e,this.firstNormalEpoch=et,this.firstNormalSlot=tt}getEpoch(j){return this.getEpochAndSlotIndex(j)[0]}getEpochAndSlotIndex(j){if(j{const nt=WebSocket$1(tt,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...$});return"socket"in nt?this.underlyingSocket=nt.socket:this.underlyingSocket=nt,nt};super(et,j,$,_e),this.underlyingSocket=void 0}call(...j){var _e;const $=(_e=this.underlyingSocket)==null?void 0:_e.readyState;return $===1?super.call(...j):Promise.reject(new Error("Tried to call a JSON-RPC method `"+j[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+$+")"))}notify(...j){var _e;const $=(_e=this.underlyingSocket)==null?void 0:_e.readyState;return $===1?super.notify(...j):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+j[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+$+")"))}}function decodeData(s,j){let $;try{$=s.layout.decode(j)}catch(_e){throw new Error("invalid instruction; "+_e)}if($.typeIndex!==s.index)throw new Error(`invalid account data; account type mismatch ${$.typeIndex} != ${s.index}`);return $}const LOOKUP_TABLE_META_SIZE=56;class AddressLookupTableAccount{constructor(j){this.key=void 0,this.state=void 0,this.key=j.key,this.state=j.state}isActive(){const j=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===j}static deserialize(j){const $=decodeData(LookupTableMetaLayout,j),_e=j.length-LOOKUP_TABLE_META_SIZE;assert(_e>=0,"lookup table is invalid"),assert(_e%32===0,"lookup table is invalid");const et=_e/32,{addresses:tt}=struct([seq(publicKey(),et,"addresses")]).decode(j.slice(LOOKUP_TABLE_META_SIZE));return{deactivationSlot:$.deactivationSlot,lastExtendedSlot:$.lastExtendedSlot,lastExtendedSlotStartIndex:$.lastExtendedStartIndex,authority:$.authority.length!==0?new PublicKey($.authority[0]):void 0,addresses:tt.map(nt=>new PublicKey(nt))}}}const LookupTableMetaLayout={index:1,layout:struct([u32("typeIndex"),u64("deactivationSlot"),nu64("lastExtendedSlot"),u8("lastExtendedStartIndex"),u8(),seq(publicKey(),offset(u8(),-1),"authority")])},URL_RE=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function makeWebsocketUrl(s){const j=s.match(URL_RE);if(j==null)throw TypeError(`Failed to validate endpoint URL \`${s}\``);const[$,_e,et,tt]=j,nt=s.startsWith("https:")?"wss:":"ws:",rt=et==null?null:parseInt(et.slice(1),10),ot=rt==null?"":`:${rt+1}`;return`${nt}//${_e}${ot}${tt}`}const PublicKeyFromString=coerce(instance(PublicKey),string$1(),s=>new PublicKey(s)),RawAccountDataResult=tuple([string$1(),literal("base64")]),BufferFromRawAccountData=coerce(instance(buffer.Buffer),RawAccountDataResult,s=>buffer.Buffer.from(s[0],"base64")),BLOCKHASH_CACHE_TIMEOUT_MS=30*1e3;function assertEndpointUrl(s){if(/^https?:/.test(s)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return s}function extractCommitmentFromConfig(s){let j,$;if(typeof s=="string")j=s;else if(s){const{commitment:_e,...et}=s;j=_e,$=et}return{commitment:j,config:$}}function applyDefaultMemcmpEncodingToFilters(s){return s.map(j=>"memcmp"in j?{...j,memcmp:{...j.memcmp,encoding:j.memcmp.encoding??"base58"}}:j)}function createRpcResult(s){return union([type({jsonrpc:literal("2.0"),id:string$1(),result:s}),type({jsonrpc:literal("2.0"),id:string$1(),error:type({code:unknown(),message:string$1(),data:optional(any())})})])}const UnknownRpcResult=createRpcResult(unknown());function jsonRpcResult(s){return coerce(createRpcResult(s),UnknownRpcResult,j=>"error"in j?j:{...j,result:create$4(j.result,s)})}function jsonRpcResultAndContext(s){return jsonRpcResult(type({context:type({slot:number()}),value:s}))}function notificationResultAndContext(s){return type({context:type({slot:number()}),value:s})}function versionedMessageFromResponse(s,j){return s===0?new MessageV0({header:j.header,staticAccountKeys:j.accountKeys.map($=>new PublicKey($)),recentBlockhash:j.recentBlockhash,compiledInstructions:j.instructions.map($=>({programIdIndex:$.programIdIndex,accountKeyIndexes:$.accounts,data:base58.decode($.data)})),addressTableLookups:j.addressTableLookups}):new Message(j)}const GetInflationGovernorResult=type({foundation:number(),foundationTerm:number(),initial:number(),taper:number(),terminal:number()}),GetInflationRewardResult=jsonRpcResult(array$1(nullable(type({epoch:number(),effectiveSlot:number(),amount:number(),postBalance:number(),commission:optional(nullable(number()))})))),GetRecentPrioritizationFeesResult=array$1(type({slot:number(),prioritizationFee:number()})),GetInflationRateResult=type({total:number(),validator:number(),foundation:number(),epoch:number()}),GetEpochInfoResult=type({epoch:number(),slotIndex:number(),slotsInEpoch:number(),absoluteSlot:number(),blockHeight:optional(number()),transactionCount:optional(number())}),GetEpochScheduleResult=type({slotsPerEpoch:number(),leaderScheduleSlotOffset:number(),warmup:boolean$1(),firstNormalEpoch:number(),firstNormalSlot:number()}),GetLeaderScheduleResult=record(string$1(),array$1(number())),TransactionErrorResult=nullable(union([type({}),string$1()])),SignatureStatusResult=type({err:TransactionErrorResult}),SignatureReceivedResult=literal("receivedSignature"),VersionResult=type({"solana-core":string$1(),"feature-set":optional(number())}),ParsedInstructionStruct=type({program:string$1(),programId:PublicKeyFromString,parsed:unknown()}),PartiallyDecodedInstructionStruct=type({programId:PublicKeyFromString,accounts:array$1(PublicKeyFromString),data:string$1()}),SimulatedTransactionResponseStruct=jsonRpcResultAndContext(type({err:nullable(union([type({}),string$1()])),logs:nullable(array$1(string$1())),accounts:optional(nullable(array$1(nullable(type({executable:boolean$1(),owner:string$1(),lamports:number(),data:array$1(string$1()),rentEpoch:optional(number())}))))),unitsConsumed:optional(number()),returnData:optional(nullable(type({programId:string$1(),data:tuple([string$1(),literal("base64")])}))),innerInstructions:optional(nullable(array$1(type({index:number(),instructions:array$1(union([ParsedInstructionStruct,PartiallyDecodedInstructionStruct]))}))))})),BlockProductionResponseStruct=jsonRpcResultAndContext(type({byIdentity:record(string$1(),array$1(number())),range:type({firstSlot:number(),lastSlot:number()})}));function createRpcClient(s,j,$,_e,et,tt){const nt=$||fetchImpl;let rt;tt!=null&&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.");let ot;return _e&&(ot=async(st,at)=>{const ct=await new Promise((lt,dt)=>{try{_e(st,at,(pt,ht)=>lt([pt,ht]))}catch(pt){dt(pt)}});return await nt(...ct)}),new RpcClient(async(st,at)=>{const ct={method:"POST",body:st,agent:rt,headers:Object.assign({"Content-Type":"application/json"},j||{},COMMON_HTTP_HEADERS)};try{let lt=5,dt,pt=500;for(;ot?dt=await ot(s,ct):dt=await nt(s,ct),!(dt.status!==429||et===!0||(lt-=1,lt===0));)console.error(`Server responded with ${dt.status} ${dt.statusText}. Retrying after ${pt}ms delay...`),await sleep(pt),pt*=2;const ht=await dt.text();dt.ok?at(null,ht):at(new Error(`${dt.status} ${dt.statusText}: ${ht}`))}catch(lt){lt instanceof Error&&at(lt)}},{})}function createRpcRequest(s){return(j,$)=>new Promise((_e,et)=>{s.request(j,$,(tt,nt)=>{if(tt){et(tt);return}_e(nt)})})}function createRpcBatchRequest(s){return j=>new Promise(($,_e)=>{j.length===0&&$([]);const et=j.map(tt=>s.request(tt.methodName,tt.args));s.request(et,(tt,nt)=>{if(tt){_e(tt);return}$(nt)})})}const GetInflationGovernorRpcResult=jsonRpcResult(GetInflationGovernorResult),GetInflationRateRpcResult=jsonRpcResult(GetInflationRateResult),GetRecentPrioritizationFeesRpcResult=jsonRpcResult(GetRecentPrioritizationFeesResult),GetEpochInfoRpcResult=jsonRpcResult(GetEpochInfoResult),GetEpochScheduleRpcResult=jsonRpcResult(GetEpochScheduleResult),GetLeaderScheduleRpcResult=jsonRpcResult(GetLeaderScheduleResult),SlotRpcResult=jsonRpcResult(number()),GetSupplyRpcResult=jsonRpcResultAndContext(type({total:number(),circulating:number(),nonCirculating:number(),nonCirculatingAccounts:array$1(PublicKeyFromString)})),TokenAmountResult=type({amount:string$1(),uiAmount:nullable(number()),decimals:number(),uiAmountString:optional(string$1())}),GetTokenLargestAccountsResult=jsonRpcResultAndContext(array$1(type({address:PublicKeyFromString,amount:string$1(),uiAmount:nullable(number()),decimals:number(),uiAmountString:optional(string$1())}))),GetTokenAccountsByOwner=jsonRpcResultAndContext(array$1(type({pubkey:PublicKeyFromString,account:type({executable:boolean$1(),owner:PublicKeyFromString,lamports:number(),data:BufferFromRawAccountData,rentEpoch:number()})}))),ParsedAccountDataResult=type({program:string$1(),parsed:unknown(),space:number()}),GetParsedTokenAccountsByOwner=jsonRpcResultAndContext(array$1(type({pubkey:PublicKeyFromString,account:type({executable:boolean$1(),owner:PublicKeyFromString,lamports:number(),data:ParsedAccountDataResult,rentEpoch:number()})}))),GetLargestAccountsRpcResult=jsonRpcResultAndContext(array$1(type({lamports:number(),address:PublicKeyFromString}))),AccountInfoResult=type({executable:boolean$1(),owner:PublicKeyFromString,lamports:number(),data:BufferFromRawAccountData,rentEpoch:number()}),KeyedAccountInfoResult=type({pubkey:PublicKeyFromString,account:AccountInfoResult}),ParsedOrRawAccountData=coerce(union([instance(buffer.Buffer),ParsedAccountDataResult]),union([RawAccountDataResult,ParsedAccountDataResult]),s=>Array.isArray(s)?create$4(s,BufferFromRawAccountData):s),ParsedAccountInfoResult=type({executable:boolean$1(),owner:PublicKeyFromString,lamports:number(),data:ParsedOrRawAccountData,rentEpoch:number()}),KeyedParsedAccountInfoResult=type({pubkey:PublicKeyFromString,account:ParsedAccountInfoResult}),StakeActivationResult=type({state:union([literal("active"),literal("inactive"),literal("activating"),literal("deactivating")]),active:number(),inactive:number()}),GetConfirmedSignaturesForAddress2RpcResult=jsonRpcResult(array$1(type({signature:string$1(),slot:number(),err:TransactionErrorResult,memo:nullable(string$1()),blockTime:optional(nullable(number()))}))),GetSignaturesForAddressRpcResult=jsonRpcResult(array$1(type({signature:string$1(),slot:number(),err:TransactionErrorResult,memo:nullable(string$1()),blockTime:optional(nullable(number()))}))),AccountNotificationResult=type({subscription:number(),result:notificationResultAndContext(AccountInfoResult)}),ProgramAccountInfoResult=type({pubkey:PublicKeyFromString,account:AccountInfoResult}),ProgramAccountNotificationResult=type({subscription:number(),result:notificationResultAndContext(ProgramAccountInfoResult)}),SlotInfoResult=type({parent:number(),slot:number(),root:number()}),SlotNotificationResult=type({subscription:number(),result:SlotInfoResult}),SlotUpdateResult=union([type({type:union([literal("firstShredReceived"),literal("completed"),literal("optimisticConfirmation"),literal("root")]),slot:number(),timestamp:number()}),type({type:literal("createdBank"),parent:number(),slot:number(),timestamp:number()}),type({type:literal("frozen"),slot:number(),timestamp:number(),stats:type({numTransactionEntries:number(),numSuccessfulTransactions:number(),numFailedTransactions:number(),maxTransactionsPerEntry:number()})}),type({type:literal("dead"),slot:number(),timestamp:number(),err:string$1()})]),SlotUpdateNotificationResult=type({subscription:number(),result:SlotUpdateResult}),SignatureNotificationResult=type({subscription:number(),result:notificationResultAndContext(union([SignatureStatusResult,SignatureReceivedResult]))}),RootNotificationResult=type({subscription:number(),result:number()}),ContactInfoResult=type({pubkey:string$1(),gossip:nullable(string$1()),tpu:nullable(string$1()),rpc:nullable(string$1()),version:nullable(string$1())}),VoteAccountInfoResult=type({votePubkey:string$1(),nodePubkey:string$1(),activatedStake:number(),epochVoteAccount:boolean$1(),epochCredits:array$1(tuple([number(),number(),number()])),commission:number(),lastVote:number(),rootSlot:nullable(number())}),GetVoteAccounts=jsonRpcResult(type({current:array$1(VoteAccountInfoResult),delinquent:array$1(VoteAccountInfoResult)})),ConfirmationStatus=union([literal("processed"),literal("confirmed"),literal("finalized")]),SignatureStatusResponse=type({slot:number(),confirmations:nullable(number()),err:TransactionErrorResult,confirmationStatus:optional(ConfirmationStatus)}),GetSignatureStatusesRpcResult=jsonRpcResultAndContext(array$1(nullable(SignatureStatusResponse))),GetMinimumBalanceForRentExemptionRpcResult=jsonRpcResult(number()),AddressTableLookupStruct=type({accountKey:PublicKeyFromString,writableIndexes:array$1(number()),readonlyIndexes:array$1(number())}),ConfirmedTransactionResult=type({signatures:array$1(string$1()),message:type({accountKeys:array$1(string$1()),header:type({numRequiredSignatures:number(),numReadonlySignedAccounts:number(),numReadonlyUnsignedAccounts:number()}),instructions:array$1(type({accounts:array$1(number()),data:string$1(),programIdIndex:number()})),recentBlockhash:string$1(),addressTableLookups:optional(array$1(AddressTableLookupStruct))})}),AnnotatedAccountKey=type({pubkey:PublicKeyFromString,signer:boolean$1(),writable:boolean$1(),source:optional(union([literal("transaction"),literal("lookupTable")]))}),ConfirmedTransactionAccountsModeResult=type({accountKeys:array$1(AnnotatedAccountKey),signatures:array$1(string$1())}),ParsedInstructionResult=type({parsed:unknown(),program:string$1(),programId:PublicKeyFromString}),RawInstructionResult=type({accounts:array$1(PublicKeyFromString),data:string$1(),programId:PublicKeyFromString}),InstructionResult=union([RawInstructionResult,ParsedInstructionResult]),UnknownInstructionResult=union([type({parsed:unknown(),program:string$1(),programId:string$1()}),type({accounts:array$1(string$1()),data:string$1(),programId:string$1()})]),ParsedOrRawInstruction=coerce(InstructionResult,UnknownInstructionResult,s=>"accounts"in s?create$4(s,RawInstructionResult):create$4(s,ParsedInstructionResult)),ParsedConfirmedTransactionResult=type({signatures:array$1(string$1()),message:type({accountKeys:array$1(AnnotatedAccountKey),instructions:array$1(ParsedOrRawInstruction),recentBlockhash:string$1(),addressTableLookups:optional(nullable(array$1(AddressTableLookupStruct)))})}),TokenBalanceResult=type({accountIndex:number(),mint:string$1(),owner:optional(string$1()),uiTokenAmount:TokenAmountResult}),LoadedAddressesResult=type({writable:array$1(PublicKeyFromString),readonly:array$1(PublicKeyFromString)}),ConfirmedTransactionMetaResult=type({err:TransactionErrorResult,fee:number(),innerInstructions:optional(nullable(array$1(type({index:number(),instructions:array$1(type({accounts:array$1(number()),data:string$1(),programIdIndex:number()}))})))),preBalances:array$1(number()),postBalances:array$1(number()),logMessages:optional(nullable(array$1(string$1()))),preTokenBalances:optional(nullable(array$1(TokenBalanceResult))),postTokenBalances:optional(nullable(array$1(TokenBalanceResult))),loadedAddresses:optional(LoadedAddressesResult),computeUnitsConsumed:optional(number())}),ParsedConfirmedTransactionMetaResult=type({err:TransactionErrorResult,fee:number(),innerInstructions:optional(nullable(array$1(type({index:number(),instructions:array$1(ParsedOrRawInstruction)})))),preBalances:array$1(number()),postBalances:array$1(number()),logMessages:optional(nullable(array$1(string$1()))),preTokenBalances:optional(nullable(array$1(TokenBalanceResult))),postTokenBalances:optional(nullable(array$1(TokenBalanceResult))),loadedAddresses:optional(LoadedAddressesResult),computeUnitsConsumed:optional(number())}),TransactionVersionStruct=union([literal(0),literal("legacy")]),RewardsResult=type({pubkey:string$1(),lamports:number(),postBalance:nullable(number()),rewardType:nullable(string$1()),commission:optional(nullable(number()))}),GetBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ConfirmedTransactionResult,meta:nullable(ConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetNoneModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetAccountsModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ConfirmedTransactionAccountsModeResult,meta:nullable(ConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetParsedBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ParsedConfirmedTransactionResult,meta:nullable(ParsedConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetParsedAccountsModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ConfirmedTransactionAccountsModeResult,meta:nullable(ParsedConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetParsedNoneModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetConfirmedBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ConfirmedTransactionResult,meta:nullable(ConfirmedTransactionMetaResult)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number())}))),GetBlockSignaturesRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),signatures:array$1(string$1()),blockTime:nullable(number())}))),GetTransactionRpcResult=jsonRpcResult(nullable(type({slot:number(),meta:nullable(ConfirmedTransactionMetaResult),blockTime:optional(nullable(number())),transaction:ConfirmedTransactionResult,version:optional(TransactionVersionStruct)}))),GetParsedTransactionRpcResult=jsonRpcResult(nullable(type({slot:number(),transaction:ParsedConfirmedTransactionResult,meta:nullable(ParsedConfirmedTransactionMetaResult),blockTime:optional(nullable(number())),version:optional(TransactionVersionStruct)}))),GetRecentBlockhashAndContextRpcResult=jsonRpcResultAndContext(type({blockhash:string$1(),feeCalculator:type({lamportsPerSignature:number()})})),GetLatestBlockhashRpcResult=jsonRpcResultAndContext(type({blockhash:string$1(),lastValidBlockHeight:number()})),IsBlockhashValidRpcResult=jsonRpcResultAndContext(boolean$1()),PerfSampleResult=type({slot:number(),numTransactions:number(),numSlots:number(),samplePeriodSecs:number()}),GetRecentPerformanceSamplesRpcResult=jsonRpcResult(array$1(PerfSampleResult)),GetFeeCalculatorRpcResult=jsonRpcResultAndContext(nullable(type({feeCalculator:type({lamportsPerSignature:number()})}))),RequestAirdropRpcResult=jsonRpcResult(string$1()),SendTransactionRpcResult=jsonRpcResult(string$1()),LogsResult=type({err:TransactionErrorResult,logs:array$1(string$1()),signature:string$1()}),LogsNotificationResult=type({result:notificationResultAndContext(LogsResult),subscription:number()}),COMMON_HTTP_HEADERS={"solana-client":"js/1.0.0-maintenance"};class Connection{constructor(j,$){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={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{const it={};return async st=>{const{commitment:at,config:ct}=extractCommitmentFromConfig(st),lt=this._buildArgs([],at,void 0,ct),dt=fastStableStringify$1(lt);return it[dt]=it[dt]??(async()=>{try{const pt=await this._rpcRequest("getBlockHeight",lt),ht=create$4(pt,jsonRpcResult(number()));if("error"in ht)throw new SolanaJSONRPCError(ht.error,"failed to get block height information");return ht.result}finally{delete it[dt]}})(),await it[dt]}})();let _e,et,tt,nt,rt,ot;$&&typeof $=="string"?this._commitment=$:$&&(this._commitment=$.commitment,this._confirmTransactionInitialTimeout=$.confirmTransactionInitialTimeout,_e=$.wsEndpoint,et=$.httpHeaders,tt=$.fetch,nt=$.fetchMiddleware,rt=$.disableRetryOnRateLimit,ot=$.httpAgent),this._rpcEndpoint=assertEndpointUrl(j),this._rpcWsEndpoint=_e||makeWebsocketUrl(j),this._rpcClient=createRpcClient(j,et,tt,nt,rt,ot),this._rpcRequest=createRpcRequest(this._rpcClient),this._rpcBatchRequest=createRpcBatchRequest(this._rpcClient),this._rpcWebSocket=new RpcWebSocketClient(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(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j.toBase58()],_e,void 0,et),nt=await this._rpcRequest("getBalance",tt),rt=create$4(nt,jsonRpcResultAndContext(number()));if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get balance for ${j.toBase58()}`);return rt.result}async getBalance(j,$){return await this.getBalanceAndContext(j,$).then(_e=>_e.value).catch(_e=>{throw new Error("failed to get balance of account "+j.toBase58()+": "+_e)})}async getBlockTime(j){const $=await this._rpcRequest("getBlockTime",[j]),_e=create$4($,jsonRpcResult(nullable(number())));if("error"in _e)throw new SolanaJSONRPCError(_e.error,`failed to get block time for slot ${j}`);return _e.result}async getMinimumLedgerSlot(){const j=await this._rpcRequest("minimumLedgerSlot",[]),$=create$4(j,jsonRpcResult(number()));if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get minimum ledger slot");return $.result}async getFirstAvailableBlock(){const j=await this._rpcRequest("getFirstAvailableBlock",[]),$=create$4(j,SlotRpcResult);if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get first available block");return $.result}async getSupply(j){let $={};typeof j=="string"?$={commitment:j}:j?$={...j,commitment:j&&j.commitment||this.commitment}:$={commitment:this.commitment};const _e=await this._rpcRequest("getSupply",[$]),et=create$4(_e,GetSupplyRpcResult);if("error"in et)throw new SolanaJSONRPCError(et.error,"failed to get supply");return et.result}async getTokenSupply(j,$){const _e=this._buildArgs([j.toBase58()],$),et=await this._rpcRequest("getTokenSupply",_e),tt=create$4(et,jsonRpcResultAndContext(TokenAmountResult));if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get token supply");return tt.result}async getTokenAccountBalance(j,$){const _e=this._buildArgs([j.toBase58()],$),et=await this._rpcRequest("getTokenAccountBalance",_e),tt=create$4(et,jsonRpcResultAndContext(TokenAmountResult));if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get token account balance");return tt.result}async getTokenAccountsByOwner(j,$,_e){const{commitment:et,config:tt}=extractCommitmentFromConfig(_e);let nt=[j.toBase58()];"mint"in $?nt.push({mint:$.mint.toBase58()}):nt.push({programId:$.programId.toBase58()});const rt=this._buildArgs(nt,et,"base64",tt),ot=await this._rpcRequest("getTokenAccountsByOwner",rt),it=create$4(ot,GetTokenAccountsByOwner);if("error"in it)throw new SolanaJSONRPCError(it.error,`failed to get token accounts owned by account ${j.toBase58()}`);return it.result}async getParsedTokenAccountsByOwner(j,$,_e){let et=[j.toBase58()];"mint"in $?et.push({mint:$.mint.toBase58()}):et.push({programId:$.programId.toBase58()});const tt=this._buildArgs(et,_e,"jsonParsed"),nt=await this._rpcRequest("getTokenAccountsByOwner",tt),rt=create$4(nt,GetParsedTokenAccountsByOwner);if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get token accounts owned by account ${j.toBase58()}`);return rt.result}async getLargestAccounts(j){const $={...j,commitment:j&&j.commitment||this.commitment},_e=$.filter||$.commitment?[$]:[],et=await this._rpcRequest("getLargestAccounts",_e),tt=create$4(et,GetLargestAccountsRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get largest accounts");return tt.result}async getTokenLargestAccounts(j,$){const _e=this._buildArgs([j.toBase58()],$),et=await this._rpcRequest("getTokenLargestAccounts",_e),tt=create$4(et,GetTokenLargestAccountsResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get token largest accounts");return tt.result}async getAccountInfoAndContext(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j.toBase58()],_e,"base64",et),nt=await this._rpcRequest("getAccountInfo",tt),rt=create$4(nt,jsonRpcResultAndContext(nullable(AccountInfoResult)));if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get info about account ${j.toBase58()}`);return rt.result}async getParsedAccountInfo(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j.toBase58()],_e,"jsonParsed",et),nt=await this._rpcRequest("getAccountInfo",tt),rt=create$4(nt,jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get info about account ${j.toBase58()}`);return rt.result}async getAccountInfo(j,$){try{return(await this.getAccountInfoAndContext(j,$)).value}catch(_e){throw new Error("failed to get info about account "+j.toBase58()+": "+_e)}}async getMultipleParsedAccounts(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=j.map(it=>it.toBase58()),nt=this._buildArgs([tt],_e,"jsonParsed",et),rt=await this._rpcRequest("getMultipleAccounts",nt),ot=create$4(rt,jsonRpcResultAndContext(array$1(nullable(ParsedAccountInfoResult))));if("error"in ot)throw new SolanaJSONRPCError(ot.error,`failed to get info for accounts ${tt}`);return ot.result}async getMultipleAccountsInfoAndContext(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=j.map(it=>it.toBase58()),nt=this._buildArgs([tt],_e,"base64",et),rt=await this._rpcRequest("getMultipleAccounts",nt),ot=create$4(rt,jsonRpcResultAndContext(array$1(nullable(AccountInfoResult))));if("error"in ot)throw new SolanaJSONRPCError(ot.error,`failed to get info for accounts ${tt}`);return ot.result}async getMultipleAccountsInfo(j,$){return(await this.getMultipleAccountsInfoAndContext(j,$)).value}async getStakeActivation(j,$,_e){const{commitment:et,config:tt}=extractCommitmentFromConfig($),nt=this._buildArgs([j.toBase58()],et,void 0,{...tt,epoch:_e??(tt==null?void 0:tt.epoch)}),rt=await this._rpcRequest("getStakeActivation",nt),ot=create$4(rt,jsonRpcResult(StakeActivationResult));if("error"in ot)throw new SolanaJSONRPCError(ot.error,`failed to get Stake Activation ${j.toBase58()}`);return ot.result}async getProgramAccounts(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),{encoding:tt,...nt}=et||{},rt=this._buildArgs([j.toBase58()],_e,tt||"base64",{...nt,...nt.filters?{filters:applyDefaultMemcmpEncodingToFilters(nt.filters)}:null}),ot=await this._rpcRequest("getProgramAccounts",rt),it=array$1(KeyedAccountInfoResult),st=nt.withContext===!0?create$4(ot,jsonRpcResultAndContext(it)):create$4(ot,jsonRpcResult(it));if("error"in st)throw new SolanaJSONRPCError(st.error,`failed to get accounts owned by program ${j.toBase58()}`);return st.result}async getParsedProgramAccounts(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j.toBase58()],_e,"jsonParsed",et),nt=await this._rpcRequest("getProgramAccounts",tt),rt=create$4(nt,jsonRpcResult(array$1(KeyedParsedAccountInfoResult)));if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get accounts owned by program ${j.toBase58()}`);return rt.result}async confirmTransaction(j,$){var tt;let _e;if(typeof j=="string")_e=j;else{const nt=j;if((tt=nt.abortSignal)!=null&&tt.aborted)return Promise.reject(nt.abortSignal.reason);_e=nt.signature}let et;try{et=base58.decode(_e)}catch{throw new Error("signature must be base58 encoded: "+_e)}return assert(et.length===64,"signature has invalid length"),typeof j=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:$||this.commitment,signature:_e}):"lastValidBlockHeight"in j?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:$||this.commitment,strategy:j}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:$||this.commitment,strategy:j})}getCancellationPromise(j){return new Promise(($,_e)=>{j!=null&&(j.aborted?_e(j.reason):j.addEventListener("abort",()=>{_e(j.reason)}))})}getTransactionConfirmationPromise({commitment:j,signature:$}){let _e,et,tt=!1;const nt=new Promise((ot,it)=>{try{_e=this.onSignature($,(at,ct)=>{_e=void 0;const lt={context:ct,value:at};ot({__type:TransactionStatus.PROCESSED,response:lt})},j);const st=new Promise(at=>{_e==null?at():et=this._onSubscriptionStateChange(_e,ct=>{ct==="subscribed"&&at()})});(async()=>{if(await st,tt)return;const at=await this.getSignatureStatus($);if(tt||at==null)return;const{context:ct,value:lt}=at;if(lt!=null)if(lt!=null&<.err)it(lt.err);else{switch(j){case"confirmed":case"single":case"singleGossip":{if(lt.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(lt.confirmationStatus==="processed"||lt.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}tt=!0,ot({__type:TransactionStatus.PROCESSED,response:{context:ct,value:lt}})}})()}catch(st){it(st)}});return{abortConfirmation:()=>{et&&(et(),et=void 0),_e!=null&&(this.removeSignatureListener(_e),_e=void 0)},confirmationPromise:nt}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:j,strategy:{abortSignal:$,lastValidBlockHeight:_e,signature:et}}){let tt=!1;const nt=new Promise(at=>{const ct=async()=>{try{return await this.getBlockHeight(j)}catch{return-1}};(async()=>{let lt=await ct();if(!tt){for(;lt<=_e;)if(await sleep(1e3),tt||(lt=await ct(),tt))return;at({__type:TransactionStatus.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:rt,confirmationPromise:ot}=this.getTransactionConfirmationPromise({commitment:j,signature:et}),it=this.getCancellationPromise($);let st;try{const at=await Promise.race([it,ot,nt]);if(at.__type===TransactionStatus.PROCESSED)st=at.response;else throw new TransactionExpiredBlockheightExceededError(et)}finally{tt=!0,rt()}return st}async confirmTransactionUsingDurableNonceStrategy({commitment:j,strategy:{abortSignal:$,minContextSlot:_e,nonceAccountPubkey:et,nonceValue:tt,signature:nt}}){let rt=!1;const ot=new Promise(lt=>{let dt=tt,pt=null;const ht=async()=>{try{const{context:yt,value:gt}=await this.getNonceAndContext(et,{commitment:j,minContextSlot:_e});return pt=yt.slot,gt==null?void 0:gt.nonce}catch{return dt}};(async()=>{if(dt=await ht(),!rt)for(;;){if(tt!==dt){lt({__type:TransactionStatus.NONCE_INVALID,slotInWhichNonceDidAdvance:pt});return}if(await sleep(2e3),rt||(dt=await ht(),rt))return}})()}),{abortConfirmation:it,confirmationPromise:st}=this.getTransactionConfirmationPromise({commitment:j,signature:nt}),at=this.getCancellationPromise($);let ct;try{const lt=await Promise.race([at,st,ot]);if(lt.__type===TransactionStatus.PROCESSED)ct=lt.response;else{let dt;for(;;){const pt=await this.getSignatureStatus(nt);if(pt==null)break;if(pt.context.slot<(lt.slotInWhichNonceDidAdvance??_e)){await sleep(400);continue}dt=pt;break}if(dt!=null&&dt.value){const pt=j||"finalized",{confirmationStatus:ht}=dt.value;switch(pt){case"processed":case"recent":if(ht!=="processed"&&ht!=="confirmed"&&ht!=="finalized")throw new TransactionExpiredNonceInvalidError(nt);break;case"confirmed":case"single":case"singleGossip":if(ht!=="confirmed"&&ht!=="finalized")throw new TransactionExpiredNonceInvalidError(nt);break;case"finalized":case"max":case"root":if(ht!=="finalized")throw new TransactionExpiredNonceInvalidError(nt);break;default:}ct={context:dt.context,value:{err:dt.value.err}}}else throw new TransactionExpiredNonceInvalidError(nt)}}finally{rt=!0,it()}return ct}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:j,signature:$}){let _e;const et=new Promise(ot=>{let it=this._confirmTransactionInitialTimeout||6e4;switch(j){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{it=this._confirmTransactionInitialTimeout||3e4;break}}_e=setTimeout(()=>ot({__type:TransactionStatus.TIMED_OUT,timeoutMs:it}),it)}),{abortConfirmation:tt,confirmationPromise:nt}=this.getTransactionConfirmationPromise({commitment:j,signature:$});let rt;try{const ot=await Promise.race([nt,et]);if(ot.__type===TransactionStatus.PROCESSED)rt=ot.response;else throw new TransactionExpiredTimeoutError($,ot.timeoutMs/1e3)}finally{clearTimeout(_e),tt()}return rt}async getClusterNodes(){const j=await this._rpcRequest("getClusterNodes",[]),$=create$4(j,jsonRpcResult(array$1(ContactInfoResult)));if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get cluster nodes");return $.result}async getVoteAccounts(j){const $=this._buildArgs([],j),_e=await this._rpcRequest("getVoteAccounts",$),et=create$4(_e,GetVoteAccounts);if("error"in et)throw new SolanaJSONRPCError(et.error,"failed to get vote accounts");return et.result}async getSlot(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getSlot",et),nt=create$4(tt,jsonRpcResult(number()));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get slot");return nt.result}async getSlotLeader(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getSlotLeader",et),nt=create$4(tt,jsonRpcResult(string$1()));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get slot leader");return nt.result}async getSlotLeaders(j,$){const _e=[j,$],et=await this._rpcRequest("getSlotLeaders",_e),tt=create$4(et,jsonRpcResult(array$1(PublicKeyFromString)));if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get slot leaders");return tt.result}async getSignatureStatus(j,$){const{context:_e,value:et}=await this.getSignatureStatuses([j],$);assert(et.length===1);const tt=et[0];return{context:_e,value:tt}}async getSignatureStatuses(j,$){const _e=[j];$&&_e.push($);const et=await this._rpcRequest("getSignatureStatuses",_e),tt=create$4(et,GetSignatureStatusesRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get signature status");return tt.result}async getTransactionCount(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getTransactionCount",et),nt=create$4(tt,jsonRpcResult(number()));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get transaction count");return nt.result}async getTotalSupply(j){return(await this.getSupply({commitment:j,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(j){const $=this._buildArgs([],j),_e=await this._rpcRequest("getInflationGovernor",$),et=create$4(_e,GetInflationGovernorRpcResult);if("error"in et)throw new SolanaJSONRPCError(et.error,"failed to get inflation");return et.result}async getInflationReward(j,$,_e){const{commitment:et,config:tt}=extractCommitmentFromConfig(_e),nt=this._buildArgs([j.map(it=>it.toBase58())],et,void 0,{...tt,epoch:$??(tt==null?void 0:tt.epoch)}),rt=await this._rpcRequest("getInflationReward",nt),ot=create$4(rt,GetInflationRewardResult);if("error"in ot)throw new SolanaJSONRPCError(ot.error,"failed to get inflation reward");return ot.result}async getInflationRate(){const j=await this._rpcRequest("getInflationRate",[]),$=create$4(j,GetInflationRateRpcResult);if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get inflation rate");return $.result}async getEpochInfo(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getEpochInfo",et),nt=create$4(tt,GetEpochInfoRpcResult);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get epoch info");return nt.result}async getEpochSchedule(){const j=await this._rpcRequest("getEpochSchedule",[]),$=create$4(j,GetEpochScheduleRpcResult);if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get epoch schedule");const _e=$.result;return new EpochSchedule(_e.slotsPerEpoch,_e.leaderScheduleSlotOffset,_e.warmup,_e.firstNormalEpoch,_e.firstNormalSlot)}async getLeaderSchedule(){const j=await this._rpcRequest("getLeaderSchedule",[]),$=create$4(j,GetLeaderScheduleRpcResult);if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get leader schedule");return $.result}async getMinimumBalanceForRentExemption(j,$){const _e=this._buildArgs([j],$),et=await this._rpcRequest("getMinimumBalanceForRentExemption",_e),tt=create$4(et,GetMinimumBalanceForRentExemptionRpcResult);return"error"in tt?(console.warn("Unable to fetch minimum balance for rent exemption"),0):tt.result}async getRecentBlockhashAndContext(j){const $=this._buildArgs([],j),_e=await this._rpcRequest("getRecentBlockhash",$),et=create$4(_e,GetRecentBlockhashAndContextRpcResult);if("error"in et)throw new SolanaJSONRPCError(et.error,"failed to get recent blockhash");return et.result}async getRecentPerformanceSamples(j){const $=await this._rpcRequest("getRecentPerformanceSamples",j?[j]:[]),_e=create$4($,GetRecentPerformanceSamplesRpcResult);if("error"in _e)throw new SolanaJSONRPCError(_e.error,"failed to get recent performance samples");return _e.result}async getFeeCalculatorForBlockhash(j,$){const _e=this._buildArgs([j],$),et=await this._rpcRequest("getFeeCalculatorForBlockhash",_e),tt=create$4(et,GetFeeCalculatorRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get fee calculator");const{context:nt,value:rt}=tt.result;return{context:nt,value:rt!==null?rt.feeCalculator:null}}async getFeeForMessage(j,$){const _e=toBuffer(j.serialize()).toString("base64"),et=this._buildArgs([_e],$),tt=await this._rpcRequest("getFeeForMessage",et),nt=create$4(tt,jsonRpcResultAndContext(nullable(number())));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get fee for message");if(nt.result===null)throw new Error("invalid blockhash");return nt.result}async getRecentPrioritizationFees(j){var nt;const $=(nt=j==null?void 0:j.lockedWritableAccounts)==null?void 0:nt.map(rt=>rt.toBase58()),_e=$!=null&&$.length?[$]:[],et=await this._rpcRequest("getRecentPrioritizationFees",_e),tt=create$4(et,GetRecentPrioritizationFeesRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get recent prioritization fees");return tt.result}async getRecentBlockhash(j){try{return(await this.getRecentBlockhashAndContext(j)).value}catch($){throw new Error("failed to get recent blockhash: "+$)}}async getLatestBlockhash(j){try{return(await this.getLatestBlockhashAndContext(j)).value}catch($){throw new Error("failed to get recent blockhash: "+$)}}async getLatestBlockhashAndContext(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getLatestBlockhash",et),nt=create$4(tt,GetLatestBlockhashRpcResult);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get latest blockhash");return nt.result}async isBlockhashValid(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j],_e,void 0,et),nt=await this._rpcRequest("isBlockhashValid",tt),rt=create$4(nt,IsBlockhashValidRpcResult);if("error"in rt)throw new SolanaJSONRPCError(rt.error,"failed to determine if the blockhash `"+j+"`is valid");return rt.result}async getVersion(){const j=await this._rpcRequest("getVersion",[]),$=create$4(j,jsonRpcResult(VersionResult));if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get version");return $.result}async getGenesisHash(){const j=await this._rpcRequest("getGenesisHash",[]),$=create$4(j,jsonRpcResult(string$1()));if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get genesis hash");return $.result}async getBlock(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgsAtLeastConfirmed([j],_e,void 0,et),nt=await this._rpcRequest("getBlock",tt);try{switch(et==null?void 0:et.transactionDetails){case"accounts":{const rt=create$4(nt,GetAccountsModeBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}case"none":{const rt=create$4(nt,GetNoneModeBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}default:{const rt=create$4(nt,GetBlockRpcResult);if("error"in rt)throw rt.error;const{result:ot}=rt;return ot?{...ot,transactions:ot.transactions.map(({transaction:it,meta:st,version:at})=>({meta:st,transaction:{...it,message:versionedMessageFromResponse(at,it.message)},version:at}))}:null}}}catch(rt){throw new SolanaJSONRPCError(rt,"failed to get confirmed block")}}async getParsedBlock(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgsAtLeastConfirmed([j],_e,"jsonParsed",et),nt=await this._rpcRequest("getBlock",tt);try{switch(et==null?void 0:et.transactionDetails){case"accounts":{const rt=create$4(nt,GetParsedAccountsModeBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}case"none":{const rt=create$4(nt,GetParsedNoneModeBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}default:{const rt=create$4(nt,GetParsedBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}}}catch(rt){throw new SolanaJSONRPCError(rt,"failed to get block")}}async getBlockProduction(j){let $,_e;if(typeof j=="string")_e=j;else if(j){const{commitment:rt,...ot}=j;_e=rt,$=ot}const et=this._buildArgs([],_e,"base64",$),tt=await this._rpcRequest("getBlockProduction",et),nt=create$4(tt,BlockProductionResponseStruct);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get block production information");return nt.result}async getTransaction(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgsAtLeastConfirmed([j],_e,void 0,et),nt=await this._rpcRequest("getTransaction",tt),rt=create$4(nt,GetTransactionRpcResult);if("error"in rt)throw new SolanaJSONRPCError(rt.error,"failed to get transaction");const ot=rt.result;return ot&&{...ot,transaction:{...ot.transaction,message:versionedMessageFromResponse(ot.version,ot.transaction.message)}}}async getParsedTransaction(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgsAtLeastConfirmed([j],_e,"jsonParsed",et),nt=await this._rpcRequest("getTransaction",tt),rt=create$4(nt,GetParsedTransactionRpcResult);if("error"in rt)throw new SolanaJSONRPCError(rt.error,"failed to get transaction");return rt.result}async getParsedTransactions(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=j.map(ot=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([ot],_e,"jsonParsed",et)}));return(await this._rpcBatchRequest(tt)).map(ot=>{const it=create$4(ot,GetParsedTransactionRpcResult);if("error"in it)throw new SolanaJSONRPCError(it.error,"failed to get transactions");return it.result})}async getTransactions(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=j.map(ot=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([ot],_e,void 0,et)}));return(await this._rpcBatchRequest(tt)).map(ot=>{const it=create$4(ot,GetTransactionRpcResult);if("error"in it)throw new SolanaJSONRPCError(it.error,"failed to get transactions");const st=it.result;return st&&{...st,transaction:{...st.transaction,message:versionedMessageFromResponse(st.version,st.transaction.message)}}})}async getConfirmedBlock(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$),et=await this._rpcRequest("getConfirmedBlock",_e),tt=create$4(et,GetConfirmedBlockRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get confirmed block");const nt=tt.result;if(!nt)throw new Error("Confirmed block "+j+" not found");const rt={...nt,transactions:nt.transactions.map(({transaction:ot,meta:it})=>{const st=new Message(ot.message);return{meta:it,transaction:{...ot,message:st}}})};return{...rt,transactions:rt.transactions.map(({transaction:ot,meta:it})=>({meta:it,transaction:Transaction.populate(ot.message,ot.signatures)}))}}async getBlocks(j,$,_e){const et=this._buildArgsAtLeastConfirmed($!==void 0?[j,$]:[j],_e),tt=await this._rpcRequest("getBlocks",et),nt=create$4(tt,jsonRpcResult(array$1(number())));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get blocks");return nt.result}async getBlockSignatures(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$,void 0,{transactionDetails:"signatures",rewards:!1}),et=await this._rpcRequest("getBlock",_e),tt=create$4(et,GetBlockSignaturesRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get block");const nt=tt.result;if(!nt)throw new Error("Block "+j+" not found");return nt}async getConfirmedBlockSignatures(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$,void 0,{transactionDetails:"signatures",rewards:!1}),et=await this._rpcRequest("getConfirmedBlock",_e),tt=create$4(et,GetBlockSignaturesRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get confirmed block");const nt=tt.result;if(!nt)throw new Error("Confirmed block "+j+" not found");return nt}async getConfirmedTransaction(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$),et=await this._rpcRequest("getConfirmedTransaction",_e),tt=create$4(et,GetTransactionRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get transaction");const nt=tt.result;if(!nt)return nt;const rt=new Message(nt.transaction.message),ot=nt.transaction.signatures;return{...nt,transaction:Transaction.populate(rt,ot)}}async getParsedConfirmedTransaction(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$,"jsonParsed"),et=await this._rpcRequest("getConfirmedTransaction",_e),tt=create$4(et,GetParsedTransactionRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get confirmed transaction");return tt.result}async getParsedConfirmedTransactions(j,$){const _e=j.map(nt=>({methodName:"getConfirmedTransaction",args:this._buildArgsAtLeastConfirmed([nt],$,"jsonParsed")}));return(await this._rpcBatchRequest(_e)).map(nt=>{const rt=create$4(nt,GetParsedTransactionRpcResult);if("error"in rt)throw new SolanaJSONRPCError(rt.error,"failed to get confirmed transactions");return rt.result})}async getConfirmedSignaturesForAddress(j,$,_e){let et={},tt=await this.getFirstAvailableBlock();for(;!("until"in et)&&($--,!($<=0||$0&&(et.until=ot.signatures[ot.signatures.length-1].toString())}catch(ot){if(ot instanceof Error&&ot.message.includes("skipped"))continue;throw ot}let nt=await this.getSlot("finalized");for(;!("before"in et)&&(_e++,!(_e>nt));)try{const ot=await this.getConfirmedBlockSignatures(_e);ot.signatures.length>0&&(et.before=ot.signatures[ot.signatures.length-1].toString())}catch(ot){if(ot instanceof Error&&ot.message.includes("skipped"))continue;throw ot}return(await this.getConfirmedSignaturesForAddress2(j,et)).map(ot=>ot.signature)}async getConfirmedSignaturesForAddress2(j,$,_e){const et=this._buildArgsAtLeastConfirmed([j.toBase58()],_e,void 0,$),tt=await this._rpcRequest("getConfirmedSignaturesForAddress2",et),nt=create$4(tt,GetConfirmedSignaturesForAddress2RpcResult);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get confirmed signatures for address");return nt.result}async getSignaturesForAddress(j,$,_e){const et=this._buildArgsAtLeastConfirmed([j.toBase58()],_e,void 0,$),tt=await this._rpcRequest("getSignaturesForAddress",et),nt=create$4(tt,GetSignaturesForAddressRpcResult);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get signatures for address");return nt.result}async getAddressLookupTable(j,$){const{context:_e,value:et}=await this.getAccountInfoAndContext(j,$);let tt=null;return et!==null&&(tt=new AddressLookupTableAccount({key:j,state:AddressLookupTableAccount.deserialize(et.data)})),{context:_e,value:tt}}async getNonceAndContext(j,$){const{context:_e,value:et}=await this.getAccountInfoAndContext(j,$);let tt=null;return et!==null&&(tt=NonceAccount.fromAccountData(et.data)),{context:_e,value:tt}}async getNonce(j,$){return await this.getNonceAndContext(j,$).then(_e=>_e.value).catch(_e=>{throw new Error("failed to get nonce for account "+j.toBase58()+": "+_e)})}async requestAirdrop(j,$){const _e=await this._rpcRequest("requestAirdrop",[j.toBase58(),$]),et=create$4(_e,RequestAirdropRpcResult);if("error"in et)throw new SolanaJSONRPCError(et.error,`airdrop to ${j.toBase58()} failed`);return et.result}async _blockhashWithExpiryBlockHeight(j){if(!j){for(;this._pollingBlockhash;)await sleep(100);const _e=Date.now()-this._blockhashInfo.lastFetch>=BLOCKHASH_CACHE_TIMEOUT_MS;if(this._blockhashInfo.latestBlockhash!==null&&!_e)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const j=Date.now(),$=this._blockhashInfo.latestBlockhash,_e=$?$.blockhash:null;for(let et=0;et<50;et++){const tt=await this.getLatestBlockhash("finalized");if(_e!==tt.blockhash)return this._blockhashInfo={latestBlockhash:tt,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},tt;await sleep(MS_PER_SLOT/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-j}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,"base64",_e),tt=await this._rpcRequest("getStakeMinimumDelegation",et),nt=create$4(tt,jsonRpcResultAndContext(number()));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get stake minimum delegation");return nt.result}async simulateTransaction(j,$,_e){if("message"in j){const pt=j.serialize(),ht=buffer.Buffer.from(pt).toString("base64");if(Array.isArray($)||_e!==void 0)throw new Error("Invalid arguments");const yt=$||{};yt.encoding="base64","commitment"in yt||(yt.commitment=this.commitment),$&&typeof $=="object"&&"innerInstructions"in $&&(yt.innerInstructions=$.innerInstructions);const gt=[ht,yt],ft=await this._rpcRequest("simulateTransaction",gt),xt=create$4(ft,SimulatedTransactionResponseStruct);if("error"in xt)throw new Error("failed to simulate transaction: "+xt.error.message);return xt.result}let et;if(j instanceof Transaction){let dt=j;et=new Transaction,et.feePayer=dt.feePayer,et.instructions=j.instructions,et.nonceInfo=dt.nonceInfo,et.signatures=dt.signatures}else et=Transaction.populate(j),et._message=et._json=void 0;if($!==void 0&&!Array.isArray($))throw new Error("Invalid arguments");const tt=$;if(et.nonceInfo&&tt)et.sign(...tt);else{let dt=this._disableBlockhashCaching;for(;;){const pt=await this._blockhashWithExpiryBlockHeight(dt);if(et.lastValidBlockHeight=pt.lastValidBlockHeight,et.recentBlockhash=pt.blockhash,!tt)break;if(et.sign(...tt),!et.signature)throw new Error("!signature");const ht=et.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(ht)&&!this._blockhashInfo.transactionSignatures.includes(ht)){this._blockhashInfo.simulatedSignatures.push(ht);break}else dt=!0}}const nt=et._compile(),rt=nt.serialize(),it=et._serialize(rt).toString("base64"),st={encoding:"base64",commitment:this.commitment};if(_e){const dt=(Array.isArray(_e)?_e:nt.nonProgramIds()).map(pt=>pt.toBase58());st.accounts={encoding:"base64",addresses:dt}}tt&&(st.sigVerify=!0),$&&typeof $=="object"&&"innerInstructions"in $&&(st.innerInstructions=$.innerInstructions);const at=[it,st],ct=await this._rpcRequest("simulateTransaction",at),lt=create$4(ct,SimulatedTransactionResponseStruct);if("error"in lt){let dt;if("data"in lt.error&&(dt=lt.error.data.logs,dt&&Array.isArray(dt))){const pt=` - `,ht=pt+dt.join(pt);console.error(lt.error.message,ht)}throw new SendTransactionError({action:"simulate",signature:"",transactionMessage:lt.error.message,logs:dt})}return lt.result}async sendTransaction(j,$,_e){if("version"in j){if($&&Array.isArray($))throw new Error("Invalid arguments");const nt=j.serialize();return await this.sendRawTransaction(nt,$)}if($===void 0||!Array.isArray($))throw new Error("Invalid arguments");const et=$;if(j.nonceInfo)j.sign(...et);else{let nt=this._disableBlockhashCaching;for(;;){const rt=await this._blockhashWithExpiryBlockHeight(nt);if(j.lastValidBlockHeight=rt.lastValidBlockHeight,j.recentBlockhash=rt.blockhash,j.sign(...et),!j.signature)throw new Error("!signature");const ot=j.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(ot))nt=!0;else{this._blockhashInfo.transactionSignatures.push(ot);break}}}const tt=j.serialize();return await this.sendRawTransaction(tt,_e)}async sendRawTransaction(j,$){const _e=toBuffer(j).toString("base64");return await this.sendEncodedTransaction(_e,$)}async sendEncodedTransaction(j,$){const _e={encoding:"base64"},et=$&&$.skipPreflight,tt=et===!0?"processed":$&&$.preflightCommitment||this.commitment;$&&$.maxRetries!=null&&(_e.maxRetries=$.maxRetries),$&&$.minContextSlot!=null&&(_e.minContextSlot=$.minContextSlot),et&&(_e.skipPreflight=et),tt&&(_e.preflightCommitment=tt);const nt=[j,_e],rt=await this._rpcRequest("sendTransaction",nt),ot=create$4(rt,SendTransactionRpcResult);if("error"in ot){let it;throw"data"in ot.error&&(it=ot.error.data.logs),new SendTransactionError({action:et?"send":"simulate",signature:"",transactionMessage:ot.error.message,logs:it})}return ot.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(j){this._rpcWebSocketConnected=!1,console.error("ws error:",j.message)}_wsOnClose(j){if(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),j===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([$,_e])=>{this._setSubscription($,{..._e,state:"pending"})})}_setSubscription(j,$){var et;const _e=(et=this._subscriptionsByHash[j])==null?void 0:et.state;if(this._subscriptionsByHash[j]=$,_e!==$.state){const tt=this._subscriptionStateChangeCallbacksByHash[j];tt&&tt.forEach(nt=>{try{nt($.state)}catch{}})}}_onSubscriptionStateChange(j,$){var tt;const _e=this._subscriptionHashByClientSubscriptionId[j];if(_e==null)return()=>{};const et=(tt=this._subscriptionStateChangeCallbacksByHash)[_e]||(tt[_e]=new Set);return et.add($),()=>{et.delete($),et.size===0&&delete this._subscriptionStateChangeCallbacksByHash[_e]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){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(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const j=this._rpcWebSocketGeneration,$=()=>j===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async _e=>{const et=this._subscriptionsByHash[_e];if(et!==void 0)switch(et.state){case"pending":case"unsubscribed":if(et.callbacks.size===0){delete this._subscriptionsByHash[_e],et.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[et.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:tt,method:nt}=et;try{this._setSubscription(_e,{...et,state:"subscribing"});const rt=await this._rpcWebSocket.call(nt,tt);this._setSubscription(_e,{...et,serverSubscriptionId:rt,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[rt]=et.callbacks,await this._updateSubscriptions()}catch(rt){if(rt instanceof Error&&console.error(`${nt} error for argument`,tt,rt.message),!$())return;this._setSubscription(_e,{...et,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":et.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:tt,unsubscribeMethod:nt}=et;if(this._subscriptionsAutoDisposedByRpc.has(tt))this._subscriptionsAutoDisposedByRpc.delete(tt);else{this._setSubscription(_e,{...et,state:"unsubscribing"}),this._setSubscription(_e,{...et,state:"unsubscribing"});try{await this._rpcWebSocket.call(nt,[tt])}catch(rt){if(rt instanceof Error&&console.error(`${nt} error:`,rt.message),!$())return;this._setSubscription(_e,{...et,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(_e,{...et,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(j,$){const _e=this._subscriptionCallbacksByServerSubscriptionId[j];_e!==void 0&&_e.forEach(et=>{try{et(...$)}catch(tt){console.error(tt)}})}_wsOnAccountNotification(j){const{result:$,subscription:_e}=create$4(j,AccountNotificationResult);this._handleServerNotification(_e,[$.value,$.context])}_makeSubscription(j,$){const _e=this._nextClientSubscriptionId++,et=fastStableStringify$1([j.method,$]),tt=this._subscriptionsByHash[et];return tt===void 0?this._subscriptionsByHash[et]={...j,args:$,callbacks:new Set([j.callback]),state:"pending"}:tt.callbacks.add(j.callback),this._subscriptionHashByClientSubscriptionId[_e]=et,this._subscriptionDisposeFunctionsByClientSubscriptionId[_e]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[_e],delete this._subscriptionHashByClientSubscriptionId[_e];const nt=this._subscriptionsByHash[et];assert(nt!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${_e}`),nt.callbacks.delete(j.callback),await this._updateSubscriptions()},this._updateSubscriptions(),_e}onAccountChange(j,$,_e){const{commitment:et,config:tt}=extractCommitmentFromConfig(_e),nt=this._buildArgs([j.toBase58()],et||this._commitment||"finalized","base64",tt);return this._makeSubscription({callback:$,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},nt)}async removeAccountChangeListener(j){await this._unsubscribeClientSubscription(j,"account change")}_wsOnProgramAccountNotification(j){const{result:$,subscription:_e}=create$4(j,ProgramAccountNotificationResult);this._handleServerNotification(_e,[{accountId:$.value.pubkey,accountInfo:$.value.account},$.context])}onProgramAccountChange(j,$,_e,et){const{commitment:tt,config:nt}=extractCommitmentFromConfig(_e),rt=this._buildArgs([j.toBase58()],tt||this._commitment||"finalized","base64",nt||(et?{filters:applyDefaultMemcmpEncodingToFilters(et)}:void 0));return this._makeSubscription({callback:$,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},rt)}async removeProgramAccountChangeListener(j){await this._unsubscribeClientSubscription(j,"program account change")}onLogs(j,$,_e){const et=this._buildArgs([typeof j=="object"?{mentions:[j.toString()]}:j],_e||this._commitment||"finalized");return this._makeSubscription({callback:$,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},et)}async removeOnLogsListener(j){await this._unsubscribeClientSubscription(j,"logs")}_wsOnLogsNotification(j){const{result:$,subscription:_e}=create$4(j,LogsNotificationResult);this._handleServerNotification(_e,[$.value,$.context])}_wsOnSlotNotification(j){const{result:$,subscription:_e}=create$4(j,SlotNotificationResult);this._handleServerNotification(_e,[$])}onSlotChange(j){return this._makeSubscription({callback:j,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(j){await this._unsubscribeClientSubscription(j,"slot change")}_wsOnSlotUpdatesNotification(j){const{result:$,subscription:_e}=create$4(j,SlotUpdateNotificationResult);this._handleServerNotification(_e,[$])}onSlotUpdate(j){return this._makeSubscription({callback:j,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(j){await this._unsubscribeClientSubscription(j,"slot update")}async _unsubscribeClientSubscription(j,$){const _e=this._subscriptionDisposeFunctionsByClientSubscriptionId[j];_e?await _e():console.warn(`Ignored unsubscribe request because an active subscription with id \`${j}\` for '${$}' events could not be found.`)}_buildArgs(j,$,_e,et){const tt=$||this._commitment;if(tt||_e||et){let nt={};_e&&(nt.encoding=_e),tt&&(nt.commitment=tt),et&&(nt=Object.assign(nt,et)),j.push(nt)}return j}_buildArgsAtLeastConfirmed(j,$,_e,et){const tt=$||this._commitment;if(tt&&!["confirmed","finalized"].includes(tt))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(j,$,_e,et)}_wsOnSignatureNotification(j){const{result:$,subscription:_e}=create$4(j,SignatureNotificationResult);$.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(_e),this._handleServerNotification(_e,$.value==="receivedSignature"?[{type:"received"},$.context]:[{type:"status",result:$.value},$.context])}onSignature(j,$,_e){const et=this._buildArgs([j],_e||this._commitment||"finalized"),tt=this._makeSubscription({callback:(nt,rt)=>{if(nt.type==="status"){$(nt.result,rt);try{this.removeSignatureListener(tt)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},et);return tt}onSignatureWithOptions(j,$,_e){const{commitment:et,...tt}={..._e,commitment:_e&&_e.commitment||this._commitment||"finalized"},nt=this._buildArgs([j],et,void 0,tt),rt=this._makeSubscription({callback:(ot,it)=>{$(ot,it);try{this.removeSignatureListener(rt)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},nt);return rt}async removeSignatureListener(j){await this._unsubscribeClientSubscription(j,"signature result")}_wsOnRootNotification(j){const{result:$,subscription:_e}=create$4(j,RootNotificationResult);this._handleServerNotification(_e,[$])}onRootChange(j){return this._makeSubscription({callback:j,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(j){await this._unsubscribeClientSubscription(j,"root change")}}class Keypair{constructor(j){this._keypair=void 0,this._keypair=j??generateKeypair()}static generate(){return new Keypair(generateKeypair())}static fromSecretKey(j,$){if(j.byteLength!==64)throw new Error("bad secret key size");const _e=j.slice(32,64);if(!$||!$.skipValidation){const et=j.slice(0,32),tt=getPublicKey(et);for(let nt=0;nt<32;nt++)if(_e[nt]!==tt[nt])throw new Error("provided secretKey is invalid")}return new Keypair({publicKey:_e,secretKey:j})}static fromSeed(j){const $=getPublicKey(j),_e=new Uint8Array(64);return _e.set(j),_e.set($,32),new Keypair({publicKey:$,secretKey:_e})}get publicKey(){return new PublicKey(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const LOOKUP_TABLE_INSTRUCTION_LAYOUTS=Object.freeze({CreateLookupTable:{index:0,layout:struct([u32("instruction"),u64("recentSlot"),u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:struct([u32("instruction")])},ExtendLookupTable:{index:2,layout:struct([u32("instruction"),u64(),seq(publicKey(),offset(u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:struct([u32("instruction")])},CloseLookupTable:{index:4,layout:struct([u32("instruction")])}});class AddressLookupTableInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u32("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(LOOKUP_TABLE_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return et}static decodeCreateLookupTable(j){this.checkProgramId(j.programId),this.checkKeysLength(j.keys,4);const{recentSlot:$}=decodeData$1(LOOKUP_TABLE_INSTRUCTION_LAYOUTS.CreateLookupTable,j.data);return{authority:j.keys[1].pubkey,payer:j.keys[2].pubkey,recentSlot:Number($)}}static decodeExtendLookupTable(j){if(this.checkProgramId(j.programId),j.keys.length<2)throw new Error(`invalid instruction; found ${j.keys.length} keys, expected at least 2`);const{addresses:$}=decodeData$1(LOOKUP_TABLE_INSTRUCTION_LAYOUTS.ExtendLookupTable,j.data);return{lookupTable:j.keys[0].pubkey,authority:j.keys[1].pubkey,payer:j.keys.length>2?j.keys[2].pubkey:void 0,addresses:$.map(_e=>new PublicKey(_e))}}static decodeCloseLookupTable(j){return this.checkProgramId(j.programId),this.checkKeysLength(j.keys,3),{lookupTable:j.keys[0].pubkey,authority:j.keys[1].pubkey,recipient:j.keys[2].pubkey}}static decodeFreezeLookupTable(j){return this.checkProgramId(j.programId),this.checkKeysLength(j.keys,2),{lookupTable:j.keys[0].pubkey,authority:j.keys[1].pubkey}}static decodeDeactivateLookupTable(j){return this.checkProgramId(j.programId),this.checkKeysLength(j.keys,2),{lookupTable:j.keys[0].pubkey,authority:j.keys[1].pubkey}}static checkProgramId(j){if(!j.equals(AddressLookupTableProgram.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(j,$){if(j.length<$)throw new Error(`invalid instruction; found ${j.length} keys, expected at least ${$}`)}}class AddressLookupTableProgram{constructor(){}static createLookupTable(j){const[$,_e]=PublicKey.findProgramAddressSync([j.authority.toBuffer(),toBufferLE_1(BigInt(j.recentSlot),8)],this.programId),et=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.CreateLookupTable,tt=encodeData(et,{recentSlot:BigInt(j.recentSlot),bumpSeed:_e}),nt=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1},{pubkey:j.payer,isSigner:!0,isWritable:!0},{pubkey:SystemProgram.programId,isSigner:!1,isWritable:!1}];return[new TransactionInstruction({programId:this.programId,keys:nt,data:tt}),$]}static freezeLookupTable(j){const $=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.FreezeLookupTable,_e=encodeData($),et=[{pubkey:j.lookupTable,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1}];return new TransactionInstruction({programId:this.programId,keys:et,data:_e})}static extendLookupTable(j){const $=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.ExtendLookupTable,_e=encodeData($,{addresses:j.addresses.map(tt=>tt.toBytes())}),et=[{pubkey:j.lookupTable,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1}];return j.payer&&et.push({pubkey:j.payer,isSigner:!0,isWritable:!0},{pubkey:SystemProgram.programId,isSigner:!1,isWritable:!1}),new TransactionInstruction({programId:this.programId,keys:et,data:_e})}static deactivateLookupTable(j){const $=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.DeactivateLookupTable,_e=encodeData($),et=[{pubkey:j.lookupTable,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1}];return new TransactionInstruction({programId:this.programId,keys:et,data:_e})}static closeLookupTable(j){const $=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.CloseLookupTable,_e=encodeData($),et=[{pubkey:j.lookupTable,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1},{pubkey:j.recipient,isSigner:!1,isWritable:!0}];return new TransactionInstruction({programId:this.programId,keys:et,data:_e})}}AddressLookupTableProgram.programId=new PublicKey("AddressLookupTab1e1111111111111111111111111");class ComputeBudgetInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u8("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return et}static decodeRequestUnits(j){this.checkProgramId(j.programId);const{units:$,additionalFee:_e}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits,j.data);return{units:$,additionalFee:_e}}static decodeRequestHeapFrame(j){this.checkProgramId(j.programId);const{bytes:$}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestHeapFrame,j.data);return{bytes:$}}static decodeSetComputeUnitLimit(j){this.checkProgramId(j.programId);const{units:$}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitLimit,j.data);return{units:$}}static decodeSetComputeUnitPrice(j){this.checkProgramId(j.programId);const{microLamports:$}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitPrice,j.data);return{microLamports:$}}static checkProgramId(j){if(!j.equals(ComputeBudgetProgram.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const COMPUTE_BUDGET_INSTRUCTION_LAYOUTS=Object.freeze({RequestUnits:{index:0,layout:struct([u8("instruction"),u32("units"),u32("additionalFee")])},RequestHeapFrame:{index:1,layout:struct([u8("instruction"),u32("bytes")])},SetComputeUnitLimit:{index:2,layout:struct([u8("instruction"),u32("units")])},SetComputeUnitPrice:{index:3,layout:struct([u8("instruction"),u64("microLamports")])}});class ComputeBudgetProgram{constructor(){}static requestUnits(j){const $=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits,_e=encodeData($,j);return new TransactionInstruction({keys:[],programId:this.programId,data:_e})}static requestHeapFrame(j){const $=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestHeapFrame,_e=encodeData($,j);return new TransactionInstruction({keys:[],programId:this.programId,data:_e})}static setComputeUnitLimit(j){const $=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitLimit,_e=encodeData($,j);return new TransactionInstruction({keys:[],programId:this.programId,data:_e})}static setComputeUnitPrice(j){const $=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitPrice,_e=encodeData($,{microLamports:BigInt(j.microLamports)});return new TransactionInstruction({keys:[],programId:this.programId,data:_e})}}ComputeBudgetProgram.programId=new PublicKey("ComputeBudget111111111111111111111111111111");const PRIVATE_KEY_BYTES$1=64,PUBLIC_KEY_BYTES$1=32,SIGNATURE_BYTES=64,ED25519_INSTRUCTION_LAYOUT=struct([u8("numSignatures"),u8("padding"),u16("signatureOffset"),u16("signatureInstructionIndex"),u16("publicKeyOffset"),u16("publicKeyInstructionIndex"),u16("messageDataOffset"),u16("messageDataSize"),u16("messageInstructionIndex")]);class Ed25519Program{constructor(){}static createInstructionWithPublicKey(j){const{publicKey:$,message:_e,signature:et,instructionIndex:tt}=j;assert($.length===PUBLIC_KEY_BYTES$1,`Public Key must be ${PUBLIC_KEY_BYTES$1} bytes but received ${$.length} bytes`),assert(et.length===SIGNATURE_BYTES,`Signature must be ${SIGNATURE_BYTES} bytes but received ${et.length} bytes`);const nt=ED25519_INSTRUCTION_LAYOUT.span,rt=nt+$.length,ot=rt+et.length,it=1,st=buffer.Buffer.alloc(ot+_e.length),at=tt??65535;return ED25519_INSTRUCTION_LAYOUT.encode({numSignatures:it,padding:0,signatureOffset:rt,signatureInstructionIndex:at,publicKeyOffset:nt,publicKeyInstructionIndex:at,messageDataOffset:ot,messageDataSize:_e.length,messageInstructionIndex:at},st),st.fill($,nt),st.fill(et,rt),st.fill(_e,ot),new TransactionInstruction({keys:[],programId:Ed25519Program.programId,data:st})}static createInstructionWithPrivateKey(j){const{privateKey:$,message:_e,instructionIndex:et}=j;assert($.length===PRIVATE_KEY_BYTES$1,`Private key must be ${PRIVATE_KEY_BYTES$1} bytes but received ${$.length} bytes`);try{const tt=Keypair.fromSecretKey($),nt=tt.publicKey.toBytes(),rt=sign(_e,tt.secretKey);return this.createInstructionWithPublicKey({publicKey:nt,message:_e,signature:rt,instructionIndex:et})}catch(tt){throw new Error(`Error creating instruction; ${tt}`)}}}Ed25519Program.programId=new PublicKey("Ed25519SigVerify111111111111111111111111111");const ecdsaSign=(s,j)=>{const $=secp256k1$1.sign(s,j);return[$.toCompactRawBytes(),$.recovery]};secp256k1$1.utils.isValidPrivateKey;const publicKeyCreate=secp256k1$1.getPublicKey,PRIVATE_KEY_BYTES=32,ETHEREUM_ADDRESS_BYTES=20,PUBLIC_KEY_BYTES=64,SIGNATURE_OFFSETS_SERIALIZED_SIZE=11,SECP256K1_INSTRUCTION_LAYOUT=struct([u8("numSignatures"),u16("signatureOffset"),u8("signatureInstructionIndex"),u16("ethAddressOffset"),u8("ethAddressInstructionIndex"),u16("messageDataOffset"),u16("messageDataSize"),u8("messageInstructionIndex"),blob(20,"ethAddress"),blob(64,"signature"),u8("recoveryId")]);class Secp256k1Program{constructor(){}static publicKeyToEthAddress(j){assert(j.length===PUBLIC_KEY_BYTES,`Public key must be ${PUBLIC_KEY_BYTES} bytes but received ${j.length} bytes`);try{return buffer.Buffer.from(keccak_256(toBuffer(j))).slice(-ETHEREUM_ADDRESS_BYTES)}catch($){throw new Error(`Error constructing Ethereum address: ${$}`)}}static createInstructionWithPublicKey(j){const{publicKey:$,message:_e,signature:et,recoveryId:tt,instructionIndex:nt}=j;return Secp256k1Program.createInstructionWithEthAddress({ethAddress:Secp256k1Program.publicKeyToEthAddress($),message:_e,signature:et,recoveryId:tt,instructionIndex:nt})}static createInstructionWithEthAddress(j){const{ethAddress:$,message:_e,signature:et,recoveryId:tt,instructionIndex:nt=0}=j;let rt;typeof $=="string"?$.startsWith("0x")?rt=buffer.Buffer.from($.substr(2),"hex"):rt=buffer.Buffer.from($,"hex"):rt=$,assert(rt.length===ETHEREUM_ADDRESS_BYTES,`Address must be ${ETHEREUM_ADDRESS_BYTES} bytes but received ${rt.length} bytes`);const ot=1+SIGNATURE_OFFSETS_SERIALIZED_SIZE,it=ot,st=ot+rt.length,at=st+et.length+1,ct=1,lt=buffer.Buffer.alloc(SECP256K1_INSTRUCTION_LAYOUT.span+_e.length);return SECP256K1_INSTRUCTION_LAYOUT.encode({numSignatures:ct,signatureOffset:st,signatureInstructionIndex:nt,ethAddressOffset:it,ethAddressInstructionIndex:nt,messageDataOffset:at,messageDataSize:_e.length,messageInstructionIndex:nt,signature:toBuffer(et),ethAddress:toBuffer(rt),recoveryId:tt},lt),lt.fill(toBuffer(_e),SECP256K1_INSTRUCTION_LAYOUT.span),new TransactionInstruction({keys:[],programId:Secp256k1Program.programId,data:lt})}static createInstructionWithPrivateKey(j){const{privateKey:$,message:_e,instructionIndex:et}=j;assert($.length===PRIVATE_KEY_BYTES,`Private key must be ${PRIVATE_KEY_BYTES} bytes but received ${$.length} bytes`);try{const tt=toBuffer($),nt=publicKeyCreate(tt,!1).slice(1),rt=buffer.Buffer.from(keccak_256(toBuffer(_e))),[ot,it]=ecdsaSign(rt,tt);return this.createInstructionWithPublicKey({publicKey:nt,message:_e,signature:ot,recoveryId:it,instructionIndex:et})}catch(tt){throw new Error(`Error creating instruction; ${tt}`)}}}Secp256k1Program.programId=new PublicKey("KeccakSecp256k11111111111111111111111111111");var _Lockup;const STAKE_CONFIG_ID=new PublicKey("StakeConfig11111111111111111111111111111111");class Authorized{constructor(j,$){this.staker=void 0,this.withdrawer=void 0,this.staker=j,this.withdrawer=$}}class Lockup{constructor(j,$,_e){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=j,this.epoch=$,this.custodian=_e}}_Lockup=Lockup;Lockup.default=new _Lockup(0,0,PublicKey.default);class StakeInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u32("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(STAKE_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Instruction type incorrect; not a StakeInstruction");return et}static decodeInitialize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{authorized:$,lockup:_e}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Initialize,j.data);return{stakePubkey:j.keys[0].pubkey,authorized:new Authorized(new PublicKey($.staker),new PublicKey($.withdrawer)),lockup:new Lockup(_e.unixTimestamp,_e.epoch,new PublicKey(_e.custodian))}}static decodeDelegate(j){return this.checkProgramId(j.programId),this.checkKeyLength(j.keys,6),decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Delegate,j.data),{stakePubkey:j.keys[0].pubkey,votePubkey:j.keys[1].pubkey,authorizedPubkey:j.keys[5].pubkey}}static decodeAuthorize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{newAuthorized:$,stakeAuthorizationType:_e}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Authorize,j.data),et={stakePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[2].pubkey,newAuthorizedPubkey:new PublicKey($),stakeAuthorizationType:{index:_e}};return j.keys.length>3&&(et.custodianPubkey=j.keys[3].pubkey),et}static decodeAuthorizeWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{newAuthorized:$,stakeAuthorizationType:_e,authoritySeed:et,authorityOwner:tt}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,j.data),nt={stakePubkey:j.keys[0].pubkey,authorityBase:j.keys[1].pubkey,authoritySeed:et,authorityOwner:new PublicKey(tt),newAuthorizedPubkey:new PublicKey($),stakeAuthorizationType:{index:_e}};return j.keys.length>3&&(nt.custodianPubkey=j.keys[3].pubkey),nt}static decodeSplit(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{lamports:$}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Split,j.data);return{stakePubkey:j.keys[0].pubkey,splitStakePubkey:j.keys[1].pubkey,authorizedPubkey:j.keys[2].pubkey,lamports:$}}static decodeMerge(j){return this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3),decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Merge,j.data),{stakePubkey:j.keys[0].pubkey,sourceStakePubKey:j.keys[1].pubkey,authorizedPubkey:j.keys[4].pubkey}}static decodeWithdraw(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,5);const{lamports:$}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Withdraw,j.data),_e={stakePubkey:j.keys[0].pubkey,toPubkey:j.keys[1].pubkey,authorizedPubkey:j.keys[4].pubkey,lamports:$};return j.keys.length>5&&(_e.custodianPubkey=j.keys[5].pubkey),_e}static decodeDeactivate(j){return this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3),decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Deactivate,j.data),{stakePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[2].pubkey}}static checkProgramId(j){if(!j.equals(StakeProgram.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(j,$){if(j.length<$)throw new Error(`invalid instruction; found ${j.length} keys, expected at least ${$}`)}}const STAKE_INSTRUCTION_LAYOUTS=Object.freeze({Initialize:{index:0,layout:struct([u32("instruction"),authorized(),lockup()])},Authorize:{index:1,layout:struct([u32("instruction"),publicKey("newAuthorized"),u32("stakeAuthorizationType")])},Delegate:{index:2,layout:struct([u32("instruction")])},Split:{index:3,layout:struct([u32("instruction"),ns64("lamports")])},Withdraw:{index:4,layout:struct([u32("instruction"),ns64("lamports")])},Deactivate:{index:5,layout:struct([u32("instruction")])},Merge:{index:7,layout:struct([u32("instruction")])},AuthorizeWithSeed:{index:8,layout:struct([u32("instruction"),publicKey("newAuthorized"),u32("stakeAuthorizationType"),rustString("authoritySeed"),publicKey("authorityOwner")])}}),StakeAuthorizationLayout=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class StakeProgram{constructor(){}static initialize(j){const{stakePubkey:$,authorized:_e,lockup:et}=j,tt=et||Lockup.default,nt=STAKE_INSTRUCTION_LAYOUTS.Initialize,rt=encodeData(nt,{authorized:{staker:toBuffer(_e.staker.toBuffer()),withdrawer:toBuffer(_e.withdrawer.toBuffer())},lockup:{unixTimestamp:tt.unixTimestamp,epoch:tt.epoch,custodian:toBuffer(tt.custodian.toBuffer())}}),ot={keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:this.programId,data:rt};return new TransactionInstruction(ot)}static createAccountWithSeed(j){const $=new Transaction;$.add(SystemProgram.createAccountWithSeed({fromPubkey:j.fromPubkey,newAccountPubkey:j.stakePubkey,basePubkey:j.basePubkey,seed:j.seed,lamports:j.lamports,space:this.space,programId:this.programId}));const{stakePubkey:_e,authorized:et,lockup:tt}=j;return $.add(this.initialize({stakePubkey:_e,authorized:et,lockup:tt}))}static createAccount(j){const $=new Transaction;$.add(SystemProgram.createAccount({fromPubkey:j.fromPubkey,newAccountPubkey:j.stakePubkey,lamports:j.lamports,space:this.space,programId:this.programId}));const{stakePubkey:_e,authorized:et,lockup:tt}=j;return $.add(this.initialize({stakePubkey:_e,authorized:et,lockup:tt}))}static delegate(j){const{stakePubkey:$,authorizedPubkey:_e,votePubkey:et}=j,tt=STAKE_INSTRUCTION_LAYOUTS.Delegate,nt=encodeData(tt);return new Transaction().add({keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:et,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_STAKE_HISTORY_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:STAKE_CONFIG_ID,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}],programId:this.programId,data:nt})}static authorize(j){const{stakePubkey:$,authorizedPubkey:_e,newAuthorizedPubkey:et,stakeAuthorizationType:tt,custodianPubkey:nt}=j,rt=STAKE_INSTRUCTION_LAYOUTS.Authorize,ot=encodeData(rt,{newAuthorized:toBuffer(et.toBuffer()),stakeAuthorizationType:tt.index}),it=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!0,isWritable:!1}];return nt&&it.push({pubkey:nt,isSigner:!0,isWritable:!1}),new Transaction().add({keys:it,programId:this.programId,data:ot})}static authorizeWithSeed(j){const{stakePubkey:$,authorityBase:_e,authoritySeed:et,authorityOwner:tt,newAuthorizedPubkey:nt,stakeAuthorizationType:rt,custodianPubkey:ot}=j,it=STAKE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,st=encodeData(it,{newAuthorized:toBuffer(nt.toBuffer()),stakeAuthorizationType:rt.index,authoritySeed:et,authorityOwner:toBuffer(tt.toBuffer())}),at=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!0,isWritable:!1},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1}];return ot&&at.push({pubkey:ot,isSigner:!0,isWritable:!1}),new Transaction().add({keys:at,programId:this.programId,data:st})}static splitInstruction(j){const{stakePubkey:$,authorizedPubkey:_e,splitStakePubkey:et,lamports:tt}=j,nt=STAKE_INSTRUCTION_LAYOUTS.Split,rt=encodeData(nt,{lamports:tt});return new TransactionInstruction({keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:et,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!0,isWritable:!1}],programId:this.programId,data:rt})}static split(j,$){const _e=new Transaction;return _e.add(SystemProgram.createAccount({fromPubkey:j.authorizedPubkey,newAccountPubkey:j.splitStakePubkey,lamports:$,space:this.space,programId:this.programId})),_e.add(this.splitInstruction(j))}static splitWithSeed(j,$){const{stakePubkey:_e,authorizedPubkey:et,splitStakePubkey:tt,basePubkey:nt,seed:rt,lamports:ot}=j,it=new Transaction;return it.add(SystemProgram.allocate({accountPubkey:tt,basePubkey:nt,seed:rt,space:this.space,programId:this.programId})),$&&$>0&&it.add(SystemProgram.transfer({fromPubkey:j.authorizedPubkey,toPubkey:tt,lamports:$})),it.add(this.splitInstruction({stakePubkey:_e,authorizedPubkey:et,splitStakePubkey:tt,lamports:ot}))}static merge(j){const{stakePubkey:$,sourceStakePubKey:_e,authorizedPubkey:et}=j,tt=STAKE_INSTRUCTION_LAYOUTS.Merge,nt=encodeData(tt);return new Transaction().add({keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_STAKE_HISTORY_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:et,isSigner:!0,isWritable:!1}],programId:this.programId,data:nt})}static withdraw(j){const{stakePubkey:$,authorizedPubkey:_e,toPubkey:et,lamports:tt,custodianPubkey:nt}=j,rt=STAKE_INSTRUCTION_LAYOUTS.Withdraw,ot=encodeData(rt,{lamports:tt}),it=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:et,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_STAKE_HISTORY_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}];return nt&&it.push({pubkey:nt,isSigner:!0,isWritable:!1}),new Transaction().add({keys:it,programId:this.programId,data:ot})}static deactivate(j){const{stakePubkey:$,authorizedPubkey:_e}=j,et=STAKE_INSTRUCTION_LAYOUTS.Deactivate,tt=encodeData(et);return new Transaction().add({keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}],programId:this.programId,data:tt})}}StakeProgram.programId=new PublicKey("Stake11111111111111111111111111111111111111");StakeProgram.space=200;class VoteInit{constructor(j,$,_e,et){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=j,this.authorizedVoter=$,this.authorizedWithdrawer=_e,this.commission=et}}class VoteInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u32("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(VOTE_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Instruction type incorrect; not a VoteInstruction");return et}static decodeInitializeAccount(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,4);const{voteInit:$}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.InitializeAccount,j.data);return{votePubkey:j.keys[0].pubkey,nodePubkey:j.keys[3].pubkey,voteInit:new VoteInit(new PublicKey($.nodePubkey),new PublicKey($.authorizedVoter),new PublicKey($.authorizedWithdrawer),$.commission)}}static decodeAuthorize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{newAuthorized:$,voteAuthorizationType:_e}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.Authorize,j.data);return{votePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[2].pubkey,newAuthorizedPubkey:new PublicKey($),voteAuthorizationType:{index:_e}}}static decodeAuthorizeWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:$,currentAuthorityDerivedKeySeed:_e,newAuthorized:et,voteAuthorizationType:tt}}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,j.data);return{currentAuthorityDerivedKeyBasePubkey:j.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new PublicKey($),currentAuthorityDerivedKeySeed:_e,newAuthorizedPubkey:new PublicKey(et),voteAuthorizationType:{index:tt},votePubkey:j.keys[0].pubkey}}static decodeWithdraw(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{lamports:$}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.Withdraw,j.data);return{votePubkey:j.keys[0].pubkey,authorizedWithdrawerPubkey:j.keys[2].pubkey,lamports:$,toPubkey:j.keys[1].pubkey}}static checkProgramId(j){if(!j.equals(VoteProgram.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(j,$){if(j.length<$)throw new Error(`invalid instruction; found ${j.length} keys, expected at least ${$}`)}}const VOTE_INSTRUCTION_LAYOUTS=Object.freeze({InitializeAccount:{index:0,layout:struct([u32("instruction"),voteInit()])},Authorize:{index:1,layout:struct([u32("instruction"),publicKey("newAuthorized"),u32("voteAuthorizationType")])},Withdraw:{index:3,layout:struct([u32("instruction"),ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:struct([u32("instruction")])},AuthorizeWithSeed:{index:10,layout:struct([u32("instruction"),voteAuthorizeWithSeedArgs()])}}),VoteAuthorizationLayout=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class VoteProgram{constructor(){}static initializeAccount(j){const{votePubkey:$,nodePubkey:_e,voteInit:et}=j,tt=VOTE_INSTRUCTION_LAYOUTS.InitializeAccount,nt=encodeData(tt,{voteInit:{nodePubkey:toBuffer(et.nodePubkey.toBuffer()),authorizedVoter:toBuffer(et.authorizedVoter.toBuffer()),authorizedWithdrawer:toBuffer(et.authorizedWithdrawer.toBuffer()),commission:et.commission}}),rt={keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}],programId:this.programId,data:nt};return new TransactionInstruction(rt)}static createAccount(j){const $=new Transaction;return $.add(SystemProgram.createAccount({fromPubkey:j.fromPubkey,newAccountPubkey:j.votePubkey,lamports:j.lamports,space:this.space,programId:this.programId})),$.add(this.initializeAccount({votePubkey:j.votePubkey,nodePubkey:j.voteInit.nodePubkey,voteInit:j.voteInit}))}static authorize(j){const{votePubkey:$,authorizedPubkey:_e,newAuthorizedPubkey:et,voteAuthorizationType:tt}=j,nt=VOTE_INSTRUCTION_LAYOUTS.Authorize,rt=encodeData(nt,{newAuthorized:toBuffer(et.toBuffer()),voteAuthorizationType:tt.index}),ot=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:ot,programId:this.programId,data:rt})}static authorizeWithSeed(j){const{currentAuthorityDerivedKeyBasePubkey:$,currentAuthorityDerivedKeyOwnerPubkey:_e,currentAuthorityDerivedKeySeed:et,newAuthorizedPubkey:tt,voteAuthorizationType:nt,votePubkey:rt}=j,ot=VOTE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,it=encodeData(ot,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:toBuffer(_e.toBuffer()),currentAuthorityDerivedKeySeed:et,newAuthorized:toBuffer(tt.toBuffer()),voteAuthorizationType:nt.index}}),st=[{pubkey:rt,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:$,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:st,programId:this.programId,data:it})}static withdraw(j){const{votePubkey:$,authorizedWithdrawerPubkey:_e,lamports:et,toPubkey:tt}=j,nt=VOTE_INSTRUCTION_LAYOUTS.Withdraw,rt=encodeData(nt,{lamports:et}),ot=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:tt,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:ot,programId:this.programId,data:rt})}static safeWithdraw(j,$,_e){if(j.lamports>$-_e)throw new Error("Withdraw will leave vote account with insufficient funds.");return VoteProgram.withdraw(j)}static updateValidatorIdentity(j){const{votePubkey:$,authorizedWithdrawerPubkey:_e,nodePubkey:et}=j,tt=VOTE_INSTRUCTION_LAYOUTS.UpdateValidatorIdentity,nt=encodeData(tt),rt=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:et,isSigner:!0,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:rt,programId:this.programId,data:nt})}}VoteProgram.programId=new PublicKey("Vote111111111111111111111111111111111111111");VoteProgram.space=3762;const VALIDATOR_INFO_KEY=new PublicKey("Va1idator1nfo111111111111111111111111111111"),InfoString=type({name:string$1(),website:optional(string$1()),details:optional(string$1()),iconUrl:optional(string$1()),keybaseUsername:optional(string$1())});class ValidatorInfo{constructor(j,$){this.key=void 0,this.info=void 0,this.key=j,this.info=$}static fromConfigData(j){let $=[...j];if(decodeLength($)!==2)return null;const et=[];for(let tt=0;tt<2;tt++){const nt=new PublicKey(guardedSplice($,0,PUBLIC_KEY_LENGTH)),rt=guardedShift($)===1;et.push({publicKey:nt,isSigner:rt})}if(et[0].publicKey.equals(VALIDATOR_INFO_KEY)&&et[1].isSigner){const tt=rustString().decode(buffer.Buffer.from($)),nt=JSON.parse(tt);return assert$1(nt,InfoString),new ValidatorInfo(et[1].publicKey,nt)}return null}}const VOTE_PROGRAM_ID=new PublicKey("Vote111111111111111111111111111111111111111"),VoteAccountLayout=struct([publicKey("nodePubkey"),publicKey("authorizedWithdrawer"),u8("commission"),nu64(),seq(struct([nu64("slot"),u32("confirmationCount")]),offset(u32(),-8),"votes"),u8("rootSlotValid"),nu64("rootSlot"),nu64(),seq(struct([nu64("epoch"),publicKey("authorizedVoter")]),offset(u32(),-8),"authorizedVoters"),struct([seq(struct([publicKey("authorizedPubkey"),nu64("epochOfLastAuthorizedSwitch"),nu64("targetEpoch")]),32,"buf"),nu64("idx"),u8("isEmpty")],"priorVoters"),nu64(),seq(struct([nu64("epoch"),nu64("credits"),nu64("prevCredits")]),offset(u32(),-8),"epochCredits"),struct([nu64("slot"),nu64("timestamp")],"lastTimestamp")]);class VoteAccount{constructor(j){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=j.nodePubkey,this.authorizedWithdrawer=j.authorizedWithdrawer,this.commission=j.commission,this.rootSlot=j.rootSlot,this.votes=j.votes,this.authorizedVoters=j.authorizedVoters,this.priorVoters=j.priorVoters,this.epochCredits=j.epochCredits,this.lastTimestamp=j.lastTimestamp}static fromAccountData(j){const _e=VoteAccountLayout.decode(toBuffer(j),4);let et=_e.rootSlot;return _e.rootSlotValid||(et=null),new VoteAccount({nodePubkey:new PublicKey(_e.nodePubkey),authorizedWithdrawer:new PublicKey(_e.authorizedWithdrawer),commission:_e.commission,votes:_e.votes,rootSlot:et,authorizedVoters:_e.authorizedVoters.map(parseAuthorizedVoter),priorVoters:getPriorVoters(_e.priorVoters),epochCredits:_e.epochCredits,lastTimestamp:_e.lastTimestamp})}}function parseAuthorizedVoter({authorizedVoter:s,epoch:j}){return{epoch:j,authorizedVoter:new PublicKey(s)}}function parsePriorVoters({authorizedPubkey:s,epochOfLastAuthorizedSwitch:j,targetEpoch:$}){return{authorizedPubkey:new PublicKey(s),epochOfLastAuthorizedSwitch:j,targetEpoch:$}}function getPriorVoters({buf:s,idx:j,isEmpty:$}){return $?[]:[...s.slice(j+1).map(parsePriorVoters),...s.slice(0,j).map(parsePriorVoters)]}const endpoint={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/"}};function clusterApiUrl(s,j){const $=j===!1?"http":"https";if(!s)return endpoint[$].devnet;const _e=endpoint[$][s];if(!_e)throw new Error(`Unknown ${$} cluster: ${s}`);return _e}async function sendAndConfirmRawTransaction(s,j,$,_e){let et,tt;$&&Object.prototype.hasOwnProperty.call($,"lastValidBlockHeight")||$&&Object.prototype.hasOwnProperty.call($,"nonceValue")?(et=$,tt=_e):tt=$;const nt=tt&&{skipPreflight:tt.skipPreflight,preflightCommitment:tt.preflightCommitment||tt.commitment,minContextSlot:tt.minContextSlot},rt=await s.sendRawTransaction(j,nt),ot=tt&&tt.commitment,st=(await(et?s.confirmTransaction(et,ot):s.confirmTransaction(rt,ot))).value;if(st.err)throw rt!=null?new SendTransactionError({action:nt!=null&&nt.skipPreflight?"send":"simulate",signature:rt,transactionMessage:`Status: (${JSON.stringify(st)})`}):new Error(`Raw transaction ${rt} failed (${JSON.stringify(st)})`);return rt}const LAMPORTS_PER_SOL=1e9,index_browser_esm=Object.freeze(Object.defineProperty({__proto__:null,Account,AddressLookupTableAccount,AddressLookupTableInstruction,AddressLookupTableProgram,Authorized,BLOCKHASH_CACHE_TIMEOUT_MS,BPF_LOADER_DEPRECATED_PROGRAM_ID,BPF_LOADER_PROGRAM_ID,BpfLoader,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS,ComputeBudgetInstruction,ComputeBudgetProgram,Connection,Ed25519Program,Enum,EpochSchedule,FeeCalculatorLayout,Keypair,LAMPORTS_PER_SOL,LOOKUP_TABLE_INSTRUCTION_LAYOUTS,Loader,Lockup,MAX_SEED_LENGTH,Message,MessageAccountKeys,MessageV0,NONCE_ACCOUNT_LENGTH,NonceAccount,PACKET_DATA_SIZE,PUBLIC_KEY_LENGTH,PublicKey,SIGNATURE_LENGTH_IN_BYTES,SOLANA_SCHEMA,STAKE_CONFIG_ID,STAKE_INSTRUCTION_LAYOUTS,SYSTEM_INSTRUCTION_LAYOUTS,SYSVAR_CLOCK_PUBKEY,SYSVAR_EPOCH_SCHEDULE_PUBKEY,SYSVAR_INSTRUCTIONS_PUBKEY,SYSVAR_RECENT_BLOCKHASHES_PUBKEY,SYSVAR_RENT_PUBKEY,SYSVAR_REWARDS_PUBKEY,SYSVAR_SLOT_HASHES_PUBKEY,SYSVAR_SLOT_HISTORY_PUBKEY,SYSVAR_STAKE_HISTORY_PUBKEY,Secp256k1Program,SendTransactionError,SolanaJSONRPCError,SolanaJSONRPCErrorCode,StakeAuthorizationLayout,StakeInstruction,StakeProgram,Struct,SystemInstruction,SystemProgram,Transaction,TransactionExpiredBlockheightExceededError,TransactionExpiredNonceInvalidError,TransactionExpiredTimeoutError,TransactionInstruction,TransactionMessage,TransactionStatus,VALIDATOR_INFO_KEY,VERSION_PREFIX_MASK,VOTE_PROGRAM_ID,ValidatorInfo,VersionedMessage,VersionedTransaction,VoteAccount,VoteAuthorizationLayout,VoteInit,VoteInstruction,VoteProgram,clusterApiUrl,sendAndConfirmRawTransaction,sendAndConfirmTransaction},Symbol.toStringTag,{value:"Module"})),require$$0$4=getAugmentedNamespace(index_browser_esm);function bind(s,j){return function(){return s.apply(j,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(s=>j=>{const $=toString$1.call(j);return s[$]||(s[$]=$.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=s=>(s=s.toLowerCase(),j=>kindOf(j)===s),typeOfTest=s=>j=>typeof j===s,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(s){return s!==null&&!isUndefined(s)&&s.constructor!==null&&!isUndefined(s.constructor)&&isFunction$1(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(s){let j;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?j=ArrayBuffer.isView(s):j=s&&s.buffer&&isArrayBuffer(s.buffer),j}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=s=>s!==null&&typeof s=="object",isBoolean=s=>s===!0||s===!1,isPlainObject=s=>{if(kindOf(s)!=="object")return!1;const j=getPrototypeOf(s);return(j===null||j===Object.prototype||Object.getPrototypeOf(j)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=s=>isObject(s)&&isFunction$1(s.pipe),isFormData=s=>{let j;return s&&(typeof FormData=="function"&&s instanceof FormData||isFunction$1(s.append)&&((j=kindOf(s))==="formdata"||j==="object"&&isFunction$1(s.toString)&&s.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(s,j,{allOwnKeys:$=!1}={}){if(s===null||typeof s>"u")return;let _e,et;if(typeof s!="object"&&(s=[s]),isArray(s))for(_e=0,et=s.length;_e0;)if(et=$[_e],j===et.toLowerCase())return et;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=s=>!isUndefined(s)&&s!==_global;function merge(){const{caseless:s}=isContextDefined(this)&&this||{},j={},$=(_e,et)=>{const tt=s&&findKey(j,et)||et;isPlainObject(j[tt])&&isPlainObject(_e)?j[tt]=merge(j[tt],_e):isPlainObject(_e)?j[tt]=merge({},_e):isArray(_e)?j[tt]=_e.slice():j[tt]=_e};for(let _e=0,et=arguments.length;_e(forEach(j,(et,tt)=>{$&&isFunction$1(et)?s[tt]=bind(et,$):s[tt]=et},{allOwnKeys:_e}),s),stripBOM=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),inherits=(s,j,$,_e)=>{s.prototype=Object.create(j.prototype,_e),s.prototype.constructor=s,Object.defineProperty(s,"super",{value:j.prototype}),$&&Object.assign(s.prototype,$)},toFlatObject=(s,j,$,_e)=>{let et,tt,nt;const rt={};if(j=j||{},s==null)return j;do{for(et=Object.getOwnPropertyNames(s),tt=et.length;tt-- >0;)nt=et[tt],(!_e||_e(nt,s,j))&&!rt[nt]&&(j[nt]=s[nt],rt[nt]=!0);s=$!==!1&&getPrototypeOf(s)}while(s&&(!$||$(s,j))&&s!==Object.prototype);return j},endsWith=(s,j,$)=>{s=String(s),($===void 0||$>s.length)&&($=s.length),$-=j.length;const _e=s.indexOf(j,$);return _e!==-1&&_e===$},toArray=s=>{if(!s)return null;if(isArray(s))return s;let j=s.length;if(!isNumber(j))return null;const $=new Array(j);for(;j-- >0;)$[j]=s[j];return $},isTypedArray=(s=>j=>s&&j instanceof s)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(s,j)=>{const _e=(s&&s[Symbol.iterator]).call(s);let et;for(;(et=_e.next())&&!et.done;){const tt=et.value;j.call(s,tt[0],tt[1])}},matchAll=(s,j)=>{let $;const _e=[];for(;($=s.exec(j))!==null;)_e.push($);return _e},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=s=>s.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function($,_e,et){return _e.toUpperCase()+et}),hasOwnProperty=(({hasOwnProperty:s})=>(j,$)=>s.call(j,$))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(s,j)=>{const $=Object.getOwnPropertyDescriptors(s),_e={};forEach($,(et,tt)=>{let nt;(nt=j(et,tt,s))!==!1&&(_e[tt]=nt||et)}),Object.defineProperties(s,_e)},freezeMethods=s=>{reduceDescriptors(s,(j,$)=>{if(isFunction$1(s)&&["arguments","caller","callee"].indexOf($)!==-1)return!1;const _e=s[$];if(isFunction$1(_e)){if(j.enumerable=!1,"writable"in j){j.writable=!1;return}j.set||(j.set=()=>{throw Error("Can not rewrite read-only method '"+$+"'")})}})},toObjectSet=(s,j)=>{const $={},_e=et=>{et.forEach(tt=>{$[tt]=!0})};return isArray(s)?_e(s):_e(String(s).split(j)),$},noop$1=()=>{},toFiniteNumber=(s,j)=>s!=null&&Number.isFinite(s=+s)?s:j,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(s=16,j=ALPHABET.ALPHA_DIGIT)=>{let $="";const{length:_e}=j;for(;s--;)$+=j[Math.random()*_e|0];return $};function isSpecCompliantForm(s){return!!(s&&isFunction$1(s.append)&&s[Symbol.toStringTag]==="FormData"&&s[Symbol.iterator])}const toJSONObject=s=>{const j=new Array(10),$=(_e,et)=>{if(isObject(_e)){if(j.indexOf(_e)>=0)return;if(!("toJSON"in _e)){j[et]=_e;const tt=isArray(_e)?[]:{};return forEach(_e,(nt,rt)=>{const ot=$(nt,et+1);!isUndefined(ot)&&(tt[rt]=ot)}),j[et]=void 0,tt}}return _e};return $(s,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=s=>s&&(isObject(s)||isFunction$1(s))&&isFunction$1(s.then)&&isFunction$1(s.catch),_setImmediate=((s,j)=>s?setImmediate:j?(($,_e)=>(_global.addEventListener("message",({source:et,data:tt})=>{et===_global&&tt===$&&_e.length&&_e.shift()()},!1),et=>{_e.push(et),_global.postMessage($,"*")}))(`axios@${Math.random()}`,[]):$=>setTimeout($))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$6={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError$1(s,j,$,_e,et){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=s,this.name="AxiosError",j&&(this.code=j),$&&(this.config=$),_e&&(this.request=_e),et&&(this.response=et)}utils$6.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$6.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(s=>{descriptors[s]={value:s}});Object.defineProperties(AxiosError$1,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError$1.from=(s,j,$,_e,et,tt)=>{const nt=Object.create(prototype$1);return utils$6.toFlatObject(s,nt,function(ot){return ot!==Error.prototype},rt=>rt!=="isAxiosError"),AxiosError$1.call(nt,s.message,j,$,_e,et),nt.cause=s,nt.name=s.name,tt&&Object.assign(nt,tt),nt};const httpAdapter=null;function isVisitable(s){return utils$6.isPlainObject(s)||utils$6.isArray(s)}function removeBrackets(s){return utils$6.endsWith(s,"[]")?s.slice(0,-2):s}function renderKey(s,j,$){return s?s.concat(j).map(function(et,tt){return et=removeBrackets(et),!$&&tt?"["+et+"]":et}).join($?".":""):j}function isFlatArray(s){return utils$6.isArray(s)&&!s.some(isVisitable)}const predicates=utils$6.toFlatObject(utils$6,{},null,function(j){return/^is[A-Z]/.test(j)});function toFormData$1(s,j,$){if(!utils$6.isObject(s))throw new TypeError("target must be an object");j=j||new FormData,$=utils$6.toFlatObject($,{metaTokens:!0,dots:!1,indexes:!1},!1,function(pt,ht){return!utils$6.isUndefined(ht[pt])});const _e=$.metaTokens,et=$.visitor||st,tt=$.dots,nt=$.indexes,ot=($.Blob||typeof Blob<"u"&&Blob)&&utils$6.isSpecCompliantForm(j);if(!utils$6.isFunction(et))throw new TypeError("visitor must be a function");function it(dt){if(dt===null)return"";if(utils$6.isDate(dt))return dt.toISOString();if(!ot&&utils$6.isBlob(dt))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$6.isArrayBuffer(dt)||utils$6.isTypedArray(dt)?ot&&typeof Blob=="function"?new Blob([dt]):Buffer.from(dt):dt}function st(dt,pt,ht){let yt=dt;if(dt&&!ht&&typeof dt=="object"){if(utils$6.endsWith(pt,"{}"))pt=_e?pt:pt.slice(0,-2),dt=JSON.stringify(dt);else if(utils$6.isArray(dt)&&isFlatArray(dt)||(utils$6.isFileList(dt)||utils$6.endsWith(pt,"[]"))&&(yt=utils$6.toArray(dt)))return pt=removeBrackets(pt),yt.forEach(function(ft,xt){!(utils$6.isUndefined(ft)||ft===null)&&j.append(nt===!0?renderKey([pt],xt,tt):nt===null?pt:pt+"[]",it(ft))}),!1}return isVisitable(dt)?!0:(j.append(renderKey(ht,pt,tt),it(dt)),!1)}const at=[],ct=Object.assign(predicates,{defaultVisitor:st,convertValue:it,isVisitable});function lt(dt,pt){if(!utils$6.isUndefined(dt)){if(at.indexOf(dt)!==-1)throw Error("Circular reference detected in "+pt.join("."));at.push(dt),utils$6.forEach(dt,function(yt,gt){(!(utils$6.isUndefined(yt)||yt===null)&&et.call(j,yt,utils$6.isString(gt)?gt.trim():gt,pt,ct))===!0&<(yt,pt?pt.concat(gt):[gt])}),at.pop()}}if(!utils$6.isObject(s))throw new TypeError("data must be an object");return lt(s),j}function encode$1(s){const j={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g,function(_e){return j[_e]})}function AxiosURLSearchParams(s,j){this._pairs=[],s&&toFormData$1(s,this,j)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(j,$){this._pairs.push([j,$])};prototype.toString=function(j){const $=j?function(_e){return j.call(this,_e,encode$1)}:encode$1;return this._pairs.map(function(et){return $(et[0])+"="+$(et[1])},"").join("&")};function encode(s){return encodeURIComponent(s).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(s,j,$){if(!j)return s;const _e=$&&$.encode||encode,et=$&&$.serialize;let tt;if(et?tt=et(j,$):tt=utils$6.isURLSearchParams(j)?j.toString():new AxiosURLSearchParams(j,$).toString(_e),tt){const nt=s.indexOf("#");nt!==-1&&(s=s.slice(0,nt)),s+=(s.indexOf("?")===-1?"?":"&")+tt}return s}class InterceptorManager{constructor(){this.handlers=[]}use(j,$,_e){return this.handlers.push({fulfilled:j,rejected:$,synchronous:_e?_e.synchronous:!1,runWhen:_e?_e.runWhen:null}),this.handlers.length-1}eject(j){this.handlers[j]&&(this.handlers[j]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(j){utils$6.forEach(this.handlers,function(_e){_e!==null&&j(_e)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$2={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(s=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(s)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils$5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,origin},Symbol.toStringTag,{value:"Module"})),platform$1={...utils$5,...platform$2};function toURLEncodedForm(s,j){return toFormData$1(s,new platform$1.classes.URLSearchParams,Object.assign({visitor:function($,_e,et,tt){return platform$1.isNode&&utils$6.isBuffer($)?(this.append(_e,$.toString("base64")),!1):tt.defaultVisitor.apply(this,arguments)}},j))}function parsePropPath(s){return utils$6.matchAll(/\w+|\[(\w*)]/g,s).map(j=>j[0]==="[]"?"":j[1]||j[0])}function arrayToObject(s){const j={},$=Object.keys(s);let _e;const et=$.length;let tt;for(_e=0;_e=$.length;return nt=!nt&&utils$6.isArray(et)?et.length:nt,ot?(utils$6.hasOwnProp(et,nt)?et[nt]=[et[nt],_e]:et[nt]=_e,!rt):((!et[nt]||!utils$6.isObject(et[nt]))&&(et[nt]=[]),j($,_e,et[nt],tt)&&utils$6.isArray(et[nt])&&(et[nt]=arrayToObject(et[nt])),!rt)}if(utils$6.isFormData(s)&&utils$6.isFunction(s.entries)){const $={};return utils$6.forEachEntry(s,(_e,et)=>{j(parsePropPath(_e),et,$,0)}),$}return null}function stringifySafely(s,j,$){if(utils$6.isString(s))try{return(j||JSON.parse)(s),utils$6.trim(s)}catch(_e){if(_e.name!=="SyntaxError")throw _e}return($||JSON.stringify)(s)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(j,$){const _e=$.getContentType()||"",et=_e.indexOf("application/json")>-1,tt=utils$6.isObject(j);if(tt&&utils$6.isHTMLForm(j)&&(j=new FormData(j)),utils$6.isFormData(j))return et?JSON.stringify(formDataToJSON(j)):j;if(utils$6.isArrayBuffer(j)||utils$6.isBuffer(j)||utils$6.isStream(j)||utils$6.isFile(j)||utils$6.isBlob(j)||utils$6.isReadableStream(j))return j;if(utils$6.isArrayBufferView(j))return j.buffer;if(utils$6.isURLSearchParams(j))return $.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),j.toString();let rt;if(tt){if(_e.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(j,this.formSerializer).toString();if((rt=utils$6.isFileList(j))||_e.indexOf("multipart/form-data")>-1){const ot=this.env&&this.env.FormData;return toFormData$1(rt?{"files[]":j}:j,ot&&new ot,this.formSerializer)}}return tt||et?($.setContentType("application/json",!1),stringifySafely(j)):j}],transformResponse:[function(j){const $=this.transitional||defaults.transitional,_e=$&&$.forcedJSONParsing,et=this.responseType==="json";if(utils$6.isResponse(j)||utils$6.isReadableStream(j))return j;if(j&&utils$6.isString(j)&&(_e&&!this.responseType||et)){const nt=!($&&$.silentJSONParsing)&&et;try{return JSON.parse(j)}catch(rt){if(nt)throw rt.name==="SyntaxError"?AxiosError$1.from(rt,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):rt}}return j}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$1.classes.FormData,Blob:platform$1.classes.Blob},validateStatus:function(j){return j>=200&&j<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$6.forEach(["delete","get","head","post","put","patch"],s=>{defaults.headers[s]={}});const ignoreDuplicateOf=utils$6.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=s=>{const j={};let $,_e,et;return s&&s.split(` -`).forEach(function(nt){et=nt.indexOf(":"),$=nt.substring(0,et).trim().toLowerCase(),_e=nt.substring(et+1).trim(),!(!$||j[$]&&ignoreDuplicateOf[$])&&($==="set-cookie"?j[$]?j[$].push(_e):j[$]=[_e]:j[$]=j[$]?j[$]+", "+_e:_e)}),j},$internals=Symbol("internals");function normalizeHeader(s){return s&&String(s).trim().toLowerCase()}function normalizeValue(s){return s===!1||s==null?s:utils$6.isArray(s)?s.map(normalizeValue):String(s)}function parseTokens(s){const j=Object.create(null),$=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let _e;for(;_e=$.exec(s);)j[_e[1]]=_e[2];return j}const isValidHeaderName=s=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());function matchHeaderValue(s,j,$,_e,et){if(utils$6.isFunction(_e))return _e.call(this,j,$);if(et&&(j=$),!!utils$6.isString(j)){if(utils$6.isString(_e))return j.indexOf(_e)!==-1;if(utils$6.isRegExp(_e))return _e.test(j)}}function formatHeader(s){return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(j,$,_e)=>$.toUpperCase()+_e)}function buildAccessors(s,j){const $=utils$6.toCamelCase(" "+j);["get","set","has"].forEach(_e=>{Object.defineProperty(s,_e+$,{value:function(et,tt,nt){return this[_e].call(this,j,et,tt,nt)},configurable:!0})})}let AxiosHeaders$1=class{constructor(j){j&&this.set(j)}set(j,$,_e){const et=this;function tt(rt,ot,it){const st=normalizeHeader(ot);if(!st)throw new Error("header name must be a non-empty string");const at=utils$6.findKey(et,st);(!at||et[at]===void 0||it===!0||it===void 0&&et[at]!==!1)&&(et[at||ot]=normalizeValue(rt))}const nt=(rt,ot)=>utils$6.forEach(rt,(it,st)=>tt(it,st,ot));if(utils$6.isPlainObject(j)||j instanceof this.constructor)nt(j,$);else if(utils$6.isString(j)&&(j=j.trim())&&!isValidHeaderName(j))nt(parseHeaders(j),$);else if(utils$6.isHeaders(j))for(const[rt,ot]of j.entries())tt(ot,rt,_e);else j!=null&&tt($,j,_e);return this}get(j,$){if(j=normalizeHeader(j),j){const _e=utils$6.findKey(this,j);if(_e){const et=this[_e];if(!$)return et;if($===!0)return parseTokens(et);if(utils$6.isFunction($))return $.call(this,et,_e);if(utils$6.isRegExp($))return $.exec(et);throw new TypeError("parser must be boolean|regexp|function")}}}has(j,$){if(j=normalizeHeader(j),j){const _e=utils$6.findKey(this,j);return!!(_e&&this[_e]!==void 0&&(!$||matchHeaderValue(this,this[_e],_e,$)))}return!1}delete(j,$){const _e=this;let et=!1;function tt(nt){if(nt=normalizeHeader(nt),nt){const rt=utils$6.findKey(_e,nt);rt&&(!$||matchHeaderValue(_e,_e[rt],rt,$))&&(delete _e[rt],et=!0)}}return utils$6.isArray(j)?j.forEach(tt):tt(j),et}clear(j){const $=Object.keys(this);let _e=$.length,et=!1;for(;_e--;){const tt=$[_e];(!j||matchHeaderValue(this,this[tt],tt,j,!0))&&(delete this[tt],et=!0)}return et}normalize(j){const $=this,_e={};return utils$6.forEach(this,(et,tt)=>{const nt=utils$6.findKey(_e,tt);if(nt){$[nt]=normalizeValue(et),delete $[tt];return}const rt=j?formatHeader(tt):String(tt).trim();rt!==tt&&delete $[tt],$[rt]=normalizeValue(et),_e[rt]=!0}),this}concat(...j){return this.constructor.concat(this,...j)}toJSON(j){const $=Object.create(null);return utils$6.forEach(this,(_e,et)=>{_e!=null&&_e!==!1&&($[et]=j&&utils$6.isArray(_e)?_e.join(", "):_e)}),$}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([j,$])=>j+": "+$).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(j){return j instanceof this?j:new this(j)}static concat(j,...$){const _e=new this(j);return $.forEach(et=>_e.set(et)),_e}static accessor(j){const _e=(this[$internals]=this[$internals]={accessors:{}}).accessors,et=this.prototype;function tt(nt){const rt=normalizeHeader(nt);_e[rt]||(buildAccessors(et,nt),_e[rt]=!0)}return utils$6.isArray(j)?j.forEach(tt):tt(j),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$6.reduceDescriptors(AxiosHeaders$1.prototype,({value:s},j)=>{let $=j[0].toUpperCase()+j.slice(1);return{get:()=>s,set(_e){this[$]=_e}}});utils$6.freezeMethods(AxiosHeaders$1);function transformData(s,j){const $=this||defaults,_e=j||$,et=AxiosHeaders$1.from(_e.headers);let tt=_e.data;return utils$6.forEach(s,function(rt){tt=rt.call($,tt,et.normalize(),j?j.status:void 0)}),et.normalize(),tt}function isCancel$1(s){return!!(s&&s.__CANCEL__)}function CanceledError$1(s,j,$){AxiosError$1.call(this,s??"canceled",AxiosError$1.ERR_CANCELED,j,$),this.name="CanceledError"}utils$6.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(s,j,$){const _e=$.config.validateStatus;!$.status||!_e||_e($.status)?s($):j(new AxiosError$1("Request failed with status code "+$.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor($.status/100)-4],$.config,$.request,$))}function parseProtocol(s){const j=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return j&&j[1]||""}function speedometer(s,j){s=s||10;const $=new Array(s),_e=new Array(s);let et=0,tt=0,nt;return j=j!==void 0?j:1e3,function(ot){const it=Date.now(),st=_e[tt];nt||(nt=it),$[et]=ot,_e[et]=it;let at=tt,ct=0;for(;at!==et;)ct+=$[at++],at=at%s;if(et=(et+1)%s,et===tt&&(tt=(tt+1)%s),it-nt{$=st,et=null,tt&&(clearTimeout(tt),tt=null),s.apply(null,it)};return[(...it)=>{const st=Date.now(),at=st-$;at>=_e?nt(it,st):(et=it,tt||(tt=setTimeout(()=>{tt=null,nt(et)},_e-at)))},()=>et&&nt(et)]}const progressEventReducer=(s,j,$=3)=>{let _e=0;const et=speedometer(50,250);return throttle(tt=>{const nt=tt.loaded,rt=tt.lengthComputable?tt.total:void 0,ot=nt-_e,it=et(ot),st=nt<=rt;_e=nt;const at={loaded:nt,total:rt,progress:rt?nt/rt:void 0,bytes:ot,rate:it||void 0,estimated:it&&rt&&st?(rt-nt)/it:void 0,event:tt,lengthComputable:rt!=null,[j?"download":"upload"]:!0};s(at)},$)},progressEventDecorator=(s,j)=>{const $=s!=null;return[_e=>j[0]({lengthComputable:$,total:s,loaded:_e}),j[1]]},asyncDecorator=s=>(...j)=>utils$6.asap(()=>s(...j)),isURLSameOrigin=platform$1.hasStandardBrowserEnv?function(){const j=/(msie|trident)/i.test(navigator.userAgent),$=document.createElement("a");let _e;function et(tt){let nt=tt;return j&&($.setAttribute("href",nt),nt=$.href),$.setAttribute("href",nt),{href:$.href,protocol:$.protocol?$.protocol.replace(/:$/,""):"",host:$.host,search:$.search?$.search.replace(/^\?/,""):"",hash:$.hash?$.hash.replace(/^#/,""):"",hostname:$.hostname,port:$.port,pathname:$.pathname.charAt(0)==="/"?$.pathname:"/"+$.pathname}}return _e=et(window.location.href),function(nt){const rt=utils$6.isString(nt)?et(nt):nt;return rt.protocol===_e.protocol&&rt.host===_e.host}}():function(){return function(){return!0}}(),cookies=platform$1.hasStandardBrowserEnv?{write(s,j,$,_e,et,tt){const nt=[s+"="+encodeURIComponent(j)];utils$6.isNumber($)&&nt.push("expires="+new Date($).toGMTString()),utils$6.isString(_e)&&nt.push("path="+_e),utils$6.isString(et)&&nt.push("domain="+et),tt===!0&&nt.push("secure"),document.cookie=nt.join("; ")},read(s){const j=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return j?decodeURIComponent(j[3]):null},remove(s){this.write(s,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function combineURLs(s,j){return j?s.replace(/\/?\/$/,"")+"/"+j.replace(/^\/+/,""):s}function buildFullPath(s,j){return s&&!isAbsoluteURL(j)?combineURLs(s,j):j}const headersToObject=s=>s instanceof AxiosHeaders$1?{...s}:s;function mergeConfig$1(s,j){j=j||{};const $={};function _e(it,st,at){return utils$6.isPlainObject(it)&&utils$6.isPlainObject(st)?utils$6.merge.call({caseless:at},it,st):utils$6.isPlainObject(st)?utils$6.merge({},st):utils$6.isArray(st)?st.slice():st}function et(it,st,at){if(utils$6.isUndefined(st)){if(!utils$6.isUndefined(it))return _e(void 0,it,at)}else return _e(it,st,at)}function tt(it,st){if(!utils$6.isUndefined(st))return _e(void 0,st)}function nt(it,st){if(utils$6.isUndefined(st)){if(!utils$6.isUndefined(it))return _e(void 0,it)}else return _e(void 0,st)}function rt(it,st,at){if(at in j)return _e(it,st);if(at in s)return _e(void 0,it)}const ot={url:tt,method:tt,data:tt,baseURL:nt,transformRequest:nt,transformResponse:nt,paramsSerializer:nt,timeout:nt,timeoutMessage:nt,withCredentials:nt,withXSRFToken:nt,adapter:nt,responseType:nt,xsrfCookieName:nt,xsrfHeaderName:nt,onUploadProgress:nt,onDownloadProgress:nt,decompress:nt,maxContentLength:nt,maxBodyLength:nt,beforeRedirect:nt,transport:nt,httpAgent:nt,httpsAgent:nt,cancelToken:nt,socketPath:nt,responseEncoding:nt,validateStatus:rt,headers:(it,st)=>et(headersToObject(it),headersToObject(st),!0)};return utils$6.forEach(Object.keys(Object.assign({},s,j)),function(st){const at=ot[st]||et,ct=at(s[st],j[st],st);utils$6.isUndefined(ct)&&at!==rt||($[st]=ct)}),$}const resolveConfig=s=>{const j=mergeConfig$1({},s);let{data:$,withXSRFToken:_e,xsrfHeaderName:et,xsrfCookieName:tt,headers:nt,auth:rt}=j;j.headers=nt=AxiosHeaders$1.from(nt),j.url=buildURL(buildFullPath(j.baseURL,j.url),s.params,s.paramsSerializer),rt&&nt.set("Authorization","Basic "+btoa((rt.username||"")+":"+(rt.password?unescape(encodeURIComponent(rt.password)):"")));let ot;if(utils$6.isFormData($)){if(platform$1.hasStandardBrowserEnv||platform$1.hasStandardBrowserWebWorkerEnv)nt.setContentType(void 0);else if((ot=nt.getContentType())!==!1){const[it,...st]=ot?ot.split(";").map(at=>at.trim()).filter(Boolean):[];nt.setContentType([it||"multipart/form-data",...st].join("; "))}}if(platform$1.hasStandardBrowserEnv&&(_e&&utils$6.isFunction(_e)&&(_e=_e(j)),_e||_e!==!1&&isURLSameOrigin(j.url))){const it=et&&tt&&cookies.read(tt);it&&nt.set(et,it)}return j},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(s){return new Promise(function($,_e){const et=resolveConfig(s);let tt=et.data;const nt=AxiosHeaders$1.from(et.headers).normalize();let{responseType:rt,onUploadProgress:ot,onDownloadProgress:it}=et,st,at,ct,lt,dt;function pt(){lt&<(),dt&&dt(),et.cancelToken&&et.cancelToken.unsubscribe(st),et.signal&&et.signal.removeEventListener("abort",st)}let ht=new XMLHttpRequest;ht.open(et.method.toUpperCase(),et.url,!0),ht.timeout=et.timeout;function yt(){if(!ht)return;const ft=AxiosHeaders$1.from("getAllResponseHeaders"in ht&&ht.getAllResponseHeaders()),Mt={data:!rt||rt==="text"||rt==="json"?ht.responseText:ht.response,status:ht.status,statusText:ht.statusText,headers:ft,config:s,request:ht};settle(function(wt){$(wt),pt()},function(wt){_e(wt),pt()},Mt),ht=null}"onloadend"in ht?ht.onloadend=yt:ht.onreadystatechange=function(){!ht||ht.readyState!==4||ht.status===0&&!(ht.responseURL&&ht.responseURL.indexOf("file:")===0)||setTimeout(yt)},ht.onabort=function(){ht&&(_e(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,s,ht)),ht=null)},ht.onerror=function(){_e(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,s,ht)),ht=null},ht.ontimeout=function(){let xt=et.timeout?"timeout of "+et.timeout+"ms exceeded":"timeout exceeded";const Mt=et.transitional||transitionalDefaults;et.timeoutErrorMessage&&(xt=et.timeoutErrorMessage),_e(new AxiosError$1(xt,Mt.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,s,ht)),ht=null},tt===void 0&&nt.setContentType(null),"setRequestHeader"in ht&&utils$6.forEach(nt.toJSON(),function(xt,Mt){ht.setRequestHeader(Mt,xt)}),utils$6.isUndefined(et.withCredentials)||(ht.withCredentials=!!et.withCredentials),rt&&rt!=="json"&&(ht.responseType=et.responseType),it&&([ct,dt]=progressEventReducer(it,!0),ht.addEventListener("progress",ct)),ot&&ht.upload&&([at,lt]=progressEventReducer(ot),ht.upload.addEventListener("progress",at),ht.upload.addEventListener("loadend",lt)),(et.cancelToken||et.signal)&&(st=ft=>{ht&&(_e(!ft||ft.type?new CanceledError$1(null,s,ht):ft),ht.abort(),ht=null)},et.cancelToken&&et.cancelToken.subscribe(st),et.signal&&(et.signal.aborted?st():et.signal.addEventListener("abort",st)));const gt=parseProtocol(et.url);if(gt&&platform$1.protocols.indexOf(gt)===-1){_e(new AxiosError$1("Unsupported protocol "+gt+":",AxiosError$1.ERR_BAD_REQUEST,s));return}ht.send(tt||null)})},composeSignals=(s,j)=>{let $=new AbortController,_e;const et=function(ot){if(!_e){_e=!0,nt();const it=ot instanceof Error?ot:this.reason;$.abort(it instanceof AxiosError$1?it:new CanceledError$1(it instanceof Error?it.message:it))}};let tt=j&&setTimeout(()=>{et(new AxiosError$1(`timeout ${j} of ms exceeded`,AxiosError$1.ETIMEDOUT))},j);const nt=()=>{s&&(tt&&clearTimeout(tt),tt=null,s.forEach(ot=>{ot&&(ot.removeEventListener?ot.removeEventListener("abort",et):ot.unsubscribe(et))}),s=null)};s.forEach(ot=>ot&&ot.addEventListener&&ot.addEventListener("abort",et));const{signal:rt}=$;return rt.unsubscribe=nt,[rt,()=>{tt&&clearTimeout(tt),tt=null}]},streamChunk=function*(s,j){let $=s.byteLength;if(!j||${const tt=readBytes(s,j,et);let nt=0,rt,ot=it=>{rt||(rt=!0,_e&&_e(it))};return new ReadableStream({async pull(it){try{const{done:st,value:at}=await tt.next();if(st){ot(),it.close();return}let ct=at.byteLength;if($){let lt=nt+=ct;$(lt)}it.enqueue(new Uint8Array(at))}catch(st){throw ot(st),st}},cancel(it){return ot(it),tt.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(s=>j=>s.encode(j))(new TextEncoder):async s=>new Uint8Array(await new Response(s).arrayBuffer())),test=(s,...j)=>{try{return!!s(...j)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let s=!1;const j=new Request(platform$1.origin,{body:new ReadableStream,method:"POST",get duplex(){return s=!0,"half"}}).headers.has("Content-Type");return s&&!j}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$6.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(s=>s.body)};isFetchSupported&&(s=>{["text","arrayBuffer","blob","formData","stream"].forEach(j=>{!resolvers[j]&&(resolvers[j]=utils$6.isFunction(s[j])?$=>$[j]():($,_e)=>{throw new AxiosError$1(`Response type '${j}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,_e)})})})(new Response);const getBodyLength=async s=>{if(s==null)return 0;if(utils$6.isBlob(s))return s.size;if(utils$6.isSpecCompliantForm(s))return(await new Request(s).arrayBuffer()).byteLength;if(utils$6.isArrayBufferView(s)||utils$6.isArrayBuffer(s))return s.byteLength;if(utils$6.isURLSearchParams(s)&&(s=s+""),utils$6.isString(s))return(await encodeText(s)).byteLength},resolveBodyLength=async(s,j)=>{const $=utils$6.toFiniteNumber(s.getContentLength());return $??getBodyLength(j)},fetchAdapter=isFetchSupported&&(async s=>{let{url:j,method:$,data:_e,signal:et,cancelToken:tt,timeout:nt,onDownloadProgress:rt,onUploadProgress:ot,responseType:it,headers:st,withCredentials:at="same-origin",fetchOptions:ct}=resolveConfig(s);it=it?(it+"").toLowerCase():"text";let[lt,dt]=et||tt||nt?composeSignals([et,tt],nt):[],pt,ht;const yt=()=>{!pt&&setTimeout(()=>{lt&<.unsubscribe()}),pt=!0};let gt;try{if(ot&&supportsRequestStream&&$!=="get"&&$!=="head"&&(gt=await resolveBodyLength(st,_e))!==0){let jt=new Request(j,{method:"POST",body:_e,duplex:"half"}),wt;if(utils$6.isFormData(_e)&&(wt=jt.headers.get("content-type"))&&st.setContentType(wt),jt.body){const[$t,zt]=progressEventDecorator(gt,progressEventReducer(asyncDecorator(ot)));_e=trackStream(jt.body,DEFAULT_CHUNK_SIZE,$t,zt,encodeText)}}utils$6.isString(at)||(at=at?"include":"omit"),ht=new Request(j,{...ct,signal:lt,method:$.toUpperCase(),headers:st.normalize().toJSON(),body:_e,duplex:"half",credentials:at});let ft=await fetch(ht);const xt=supportsResponseStream&&(it==="stream"||it==="response");if(supportsResponseStream&&(rt||xt)){const jt={};["status","statusText","headers"].forEach(Ot=>{jt[Ot]=ft[Ot]});const wt=utils$6.toFiniteNumber(ft.headers.get("content-length")),[$t,zt]=rt&&progressEventDecorator(wt,progressEventReducer(asyncDecorator(rt),!0))||[];ft=new Response(trackStream(ft.body,DEFAULT_CHUNK_SIZE,$t,()=>{zt&&zt(),xt&&yt()},encodeText),jt)}it=it||"text";let Mt=await resolvers[utils$6.findKey(resolvers,it)||"text"](ft,s);return!xt&&yt(),dt&&dt(),await new Promise((jt,wt)=>{settle(jt,wt,{data:Mt,headers:AxiosHeaders$1.from(ft.headers),status:ft.status,statusText:ft.statusText,config:s,request:ht})})}catch(ft){throw yt(),ft&&ft.name==="TypeError"&&/fetch/i.test(ft.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,s,ht),{cause:ft.cause||ft}):AxiosError$1.from(ft,ft&&ft.code,s,ht)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$6.forEach(knownAdapters,(s,j)=>{if(s){try{Object.defineProperty(s,"name",{value:j})}catch{}Object.defineProperty(s,"adapterName",{value:j})}});const renderReason=s=>`- ${s}`,isResolvedHandle=s=>utils$6.isFunction(s)||s===null||s===!1,adapters={getAdapter:s=>{s=utils$6.isArray(s)?s:[s];const{length:j}=s;let $,_e;const et={};for(let tt=0;tt`adapter ${rt} `+(ot===!1?"is not supported by the environment":"is not available in the build"));let nt=j?tt.length>1?`since : +`+tt+nt;break;default:rt=`Unknown action '${(ot=>ot)(j)}'`}super(rt),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=$,this.transactionMessage=_e,this.transactionLogs=et||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){const j=this.transactionLogs;if(!(j!=null&&typeof j=="object"&&"then"in j))return j}async getLogs(j){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise(($,_e)=>{j.getTransaction(this.signature).then(et=>{if(et&&et.meta&&et.meta.logMessages){const tt=et.meta.logMessages;this.transactionLogs=tt,$(tt)}else _e(new Error("Log messages not found"))}).catch(_e)})),await this.transactionLogs}}const SolanaJSONRPCErrorCode={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};class SolanaJSONRPCError extends Error{constructor({code:j,message:$,data:_e},et){super(et!=null?`${et}: ${$}`:$),this.code=void 0,this.data=void 0,this.code=j,this.data=_e,this.name="SolanaJSONRPCError"}}async function sendAndConfirmTransaction(s,j,$,_e){const et=_e&&{skipPreflight:_e.skipPreflight,preflightCommitment:_e.preflightCommitment||_e.commitment,maxRetries:_e.maxRetries,minContextSlot:_e.minContextSlot},tt=await s.sendTransaction(j,$,et);let nt;if(j.recentBlockhash!=null&&j.lastValidBlockHeight!=null)nt=(await s.confirmTransaction({abortSignal:_e==null?void 0:_e.abortSignal,signature:tt,blockhash:j.recentBlockhash,lastValidBlockHeight:j.lastValidBlockHeight},_e&&_e.commitment)).value;else if(j.minNonceContextSlot!=null&&j.nonceInfo!=null){const{nonceInstruction:rt}=j.nonceInfo,ot=rt.keys[0].pubkey;nt=(await s.confirmTransaction({abortSignal:_e==null?void 0:_e.abortSignal,minContextSlot:j.minNonceContextSlot,nonceAccountPubkey:ot,nonceValue:j.nonceInfo.nonce,signature:tt},_e&&_e.commitment)).value}else(_e==null?void 0:_e.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."),nt=(await s.confirmTransaction(tt,_e&&_e.commitment)).value;if(nt.err)throw tt!=null?new SendTransactionError({action:"send",signature:tt,transactionMessage:`Status: (${JSON.stringify(nt)})`}):new Error(`Transaction ${tt} failed (${JSON.stringify(nt)})`);return tt}function sleep(s){return new Promise(j=>setTimeout(j,s))}function encodeData(s,j){const $=s.layout.span>=0?s.layout.span:getAlloc(s,j),_e=buffer.Buffer.alloc($),et=Object.assign({instruction:s.index},j);return s.layout.encode(et,_e),_e}function decodeData$1(s,j){let $;try{$=s.layout.decode(j)}catch(_e){throw new Error("invalid instruction; "+_e)}if($.instruction!==s.index)throw new Error(`invalid instruction; instruction index mismatch ${$.instruction} != ${s.index}`);return $}const FeeCalculatorLayout=nu64("lamportsPerSignature"),NonceAccountLayout=struct([u32("version"),u32("state"),publicKey("authorizedPubkey"),publicKey("nonce"),struct([FeeCalculatorLayout],"feeCalculator")]),NONCE_ACCOUNT_LENGTH=NonceAccountLayout.span;class NonceAccount{constructor(j){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=j.authorizedPubkey,this.nonce=j.nonce,this.feeCalculator=j.feeCalculator}static fromAccountData(j){const $=NonceAccountLayout.decode(toBuffer(j),0);return new NonceAccount({authorizedPubkey:new PublicKey($.authorizedPubkey),nonce:new PublicKey($.nonce).toString(),feeCalculator:$.feeCalculator})}}const encodeDecode=s=>{const j=s.decode.bind(s),$=s.encode.bind(s);return{decode:j,encode:$}},bigInt=s=>j=>{const $=blob(s,j),{encode:_e,decode:et}=encodeDecode($),tt=$;return tt.decode=(nt,rt)=>{const ot=et(nt,rt);return toBigIntLE_1(buffer.Buffer.from(ot))},tt.encode=(nt,rt,ot)=>{const it=toBufferLE_1(nt,s);return _e(it,rt,ot)},tt},u64=bigInt(8);class SystemInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u32("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(SYSTEM_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Instruction type incorrect; not a SystemInstruction");return et}static decodeCreateAccount(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{lamports:$,space:_e,programId:et}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Create,j.data);return{fromPubkey:j.keys[0].pubkey,newAccountPubkey:j.keys[1].pubkey,lamports:$,space:_e,programId:new PublicKey(et)}}static decodeTransfer(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{lamports:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Transfer,j.data);return{fromPubkey:j.keys[0].pubkey,toPubkey:j.keys[1].pubkey,lamports:$}}static decodeTransferWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{lamports:$,seed:_e,programId:et}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.TransferWithSeed,j.data);return{fromPubkey:j.keys[0].pubkey,basePubkey:j.keys[1].pubkey,toPubkey:j.keys[2].pubkey,lamports:$,seed:_e,programId:new PublicKey(et)}}static decodeAllocate(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,1);const{space:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Allocate,j.data);return{accountPubkey:j.keys[0].pubkey,space:$}}static decodeAllocateWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,1);const{base:$,seed:_e,space:et,programId:tt}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AllocateWithSeed,j.data);return{accountPubkey:j.keys[0].pubkey,basePubkey:new PublicKey($),seed:_e,space:et,programId:new PublicKey(tt)}}static decodeAssign(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,1);const{programId:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Assign,j.data);return{accountPubkey:j.keys[0].pubkey,programId:new PublicKey($)}}static decodeAssignWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,1);const{base:$,seed:_e,programId:et}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AssignWithSeed,j.data);return{accountPubkey:j.keys[0].pubkey,basePubkey:new PublicKey($),seed:_e,programId:new PublicKey(et)}}static decodeCreateWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{base:$,seed:_e,lamports:et,space:tt,programId:nt}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.CreateWithSeed,j.data);return{fromPubkey:j.keys[0].pubkey,newAccountPubkey:j.keys[1].pubkey,basePubkey:new PublicKey($),seed:_e,lamports:et,space:tt,programId:new PublicKey(nt)}}static decodeNonceInitialize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{authorized:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.InitializeNonceAccount,j.data);return{noncePubkey:j.keys[0].pubkey,authorizedPubkey:new PublicKey($)}}static decodeNonceAdvance(j){return this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3),decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AdvanceNonceAccount,j.data),{noncePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[2].pubkey}}static decodeNonceWithdraw(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,5);const{lamports:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.WithdrawNonceAccount,j.data);return{noncePubkey:j.keys[0].pubkey,toPubkey:j.keys[1].pubkey,authorizedPubkey:j.keys[4].pubkey,lamports:$}}static decodeNonceAuthorize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{authorized:$}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AuthorizeNonceAccount,j.data);return{noncePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[1].pubkey,newAuthorizedPubkey:new PublicKey($)}}static checkProgramId(j){if(!j.equals(SystemProgram.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(j,$){if(j.length<$)throw new Error(`invalid instruction; found ${j.length} keys, expected at least ${$}`)}}const SYSTEM_INSTRUCTION_LAYOUTS=Object.freeze({Create:{index:0,layout:struct([u32("instruction"),ns64("lamports"),ns64("space"),publicKey("programId")])},Assign:{index:1,layout:struct([u32("instruction"),publicKey("programId")])},Transfer:{index:2,layout:struct([u32("instruction"),u64("lamports")])},CreateWithSeed:{index:3,layout:struct([u32("instruction"),publicKey("base"),rustString("seed"),ns64("lamports"),ns64("space"),publicKey("programId")])},AdvanceNonceAccount:{index:4,layout:struct([u32("instruction")])},WithdrawNonceAccount:{index:5,layout:struct([u32("instruction"),ns64("lamports")])},InitializeNonceAccount:{index:6,layout:struct([u32("instruction"),publicKey("authorized")])},AuthorizeNonceAccount:{index:7,layout:struct([u32("instruction"),publicKey("authorized")])},Allocate:{index:8,layout:struct([u32("instruction"),ns64("space")])},AllocateWithSeed:{index:9,layout:struct([u32("instruction"),publicKey("base"),rustString("seed"),ns64("space"),publicKey("programId")])},AssignWithSeed:{index:10,layout:struct([u32("instruction"),publicKey("base"),rustString("seed"),publicKey("programId")])},TransferWithSeed:{index:11,layout:struct([u32("instruction"),u64("lamports"),rustString("seed"),publicKey("programId")])},UpgradeNonceAccount:{index:12,layout:struct([u32("instruction")])}});class SystemProgram{constructor(){}static createAccount(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.Create,_e=encodeData($,{lamports:j.lamports,space:j.space,programId:toBuffer(j.programId.toBuffer())});return new TransactionInstruction({keys:[{pubkey:j.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:j.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:_e})}static transfer(j){let $,_e;if("basePubkey"in j){const et=SYSTEM_INSTRUCTION_LAYOUTS.TransferWithSeed;$=encodeData(et,{lamports:BigInt(j.lamports),seed:j.seed,programId:toBuffer(j.programId.toBuffer())}),_e=[{pubkey:j.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:j.basePubkey,isSigner:!0,isWritable:!1},{pubkey:j.toPubkey,isSigner:!1,isWritable:!0}]}else{const et=SYSTEM_INSTRUCTION_LAYOUTS.Transfer;$=encodeData(et,{lamports:BigInt(j.lamports)}),_e=[{pubkey:j.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:j.toPubkey,isSigner:!1,isWritable:!0}]}return new TransactionInstruction({keys:_e,programId:this.programId,data:$})}static assign(j){let $,_e;if("basePubkey"in j){const et=SYSTEM_INSTRUCTION_LAYOUTS.AssignWithSeed;$=encodeData(et,{base:toBuffer(j.basePubkey.toBuffer()),seed:j.seed,programId:toBuffer(j.programId.toBuffer())}),_e=[{pubkey:j.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:j.basePubkey,isSigner:!0,isWritable:!1}]}else{const et=SYSTEM_INSTRUCTION_LAYOUTS.Assign;$=encodeData(et,{programId:toBuffer(j.programId.toBuffer())}),_e=[{pubkey:j.accountPubkey,isSigner:!0,isWritable:!0}]}return new TransactionInstruction({keys:_e,programId:this.programId,data:$})}static createAccountWithSeed(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.CreateWithSeed,_e=encodeData($,{base:toBuffer(j.basePubkey.toBuffer()),seed:j.seed,lamports:j.lamports,space:j.space,programId:toBuffer(j.programId.toBuffer())});let et=[{pubkey:j.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:j.newAccountPubkey,isSigner:!1,isWritable:!0}];return j.basePubkey.equals(j.fromPubkey)||et.push({pubkey:j.basePubkey,isSigner:!0,isWritable:!1}),new TransactionInstruction({keys:et,programId:this.programId,data:_e})}static createNonceAccount(j){const $=new Transaction;"basePubkey"in j&&"seed"in j?$.add(SystemProgram.createAccountWithSeed({fromPubkey:j.fromPubkey,newAccountPubkey:j.noncePubkey,basePubkey:j.basePubkey,seed:j.seed,lamports:j.lamports,space:NONCE_ACCOUNT_LENGTH,programId:this.programId})):$.add(SystemProgram.createAccount({fromPubkey:j.fromPubkey,newAccountPubkey:j.noncePubkey,lamports:j.lamports,space:NONCE_ACCOUNT_LENGTH,programId:this.programId}));const _e={noncePubkey:j.noncePubkey,authorizedPubkey:j.authorizedPubkey};return $.add(this.nonceInitialize(_e)),$}static nonceInitialize(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.InitializeNonceAccount,_e=encodeData($,{authorized:toBuffer(j.authorizedPubkey.toBuffer())}),et={keys:[{pubkey:j.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RECENT_BLOCKHASHES_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:this.programId,data:_e};return new TransactionInstruction(et)}static nonceAdvance(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.AdvanceNonceAccount,_e=encodeData($),et={keys:[{pubkey:j.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RECENT_BLOCKHASHES_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:j.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:_e};return new TransactionInstruction(et)}static nonceWithdraw(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.WithdrawNonceAccount,_e=encodeData($,{lamports:j.lamports});return new TransactionInstruction({keys:[{pubkey:j.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:j.toPubkey,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RECENT_BLOCKHASHES_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:j.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:_e})}static nonceAuthorize(j){const $=SYSTEM_INSTRUCTION_LAYOUTS.AuthorizeNonceAccount,_e=encodeData($,{authorized:toBuffer(j.newAuthorizedPubkey.toBuffer())});return new TransactionInstruction({keys:[{pubkey:j.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:j.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:_e})}static allocate(j){let $,_e;if("basePubkey"in j){const et=SYSTEM_INSTRUCTION_LAYOUTS.AllocateWithSeed;$=encodeData(et,{base:toBuffer(j.basePubkey.toBuffer()),seed:j.seed,space:j.space,programId:toBuffer(j.programId.toBuffer())}),_e=[{pubkey:j.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:j.basePubkey,isSigner:!0,isWritable:!1}]}else{const et=SYSTEM_INSTRUCTION_LAYOUTS.Allocate;$=encodeData(et,{space:j.space}),_e=[{pubkey:j.accountPubkey,isSigner:!0,isWritable:!0}]}return new TransactionInstruction({keys:_e,programId:this.programId,data:$})}}SystemProgram.programId=new PublicKey("11111111111111111111111111111111");const CHUNK_SIZE=PACKET_DATA_SIZE-300;class Loader{constructor(){}static getMinNumSignatures(j){return 2*(Math.ceil(j/Loader.chunkSize)+1+1)}static async load(j,$,_e,et,tt){{const at=await j.getMinimumBalanceForRentExemption(tt.length),ct=await j.getAccountInfo(_e.publicKey,"confirmed");let lt=null;if(ct!==null){if(ct.executable)return console.error("Program load failed, account is already executable"),!1;ct.data.length!==tt.length&&(lt=lt||new Transaction,lt.add(SystemProgram.allocate({accountPubkey:_e.publicKey,space:tt.length}))),ct.owner.equals(et)||(lt=lt||new Transaction,lt.add(SystemProgram.assign({accountPubkey:_e.publicKey,programId:et}))),ct.lamports0?at:1,space:tt.length,programId:et}));lt!==null&&await sendAndConfirmTransaction(j,lt,[$,_e],{commitment:"confirmed"})}const nt=struct([u32("instruction"),u32("offset"),u32("bytesLength"),u32("bytesLengthPadding"),seq(u8("byte"),offset(u32(),-8),"bytes")]),rt=Loader.chunkSize;let ot=0,it=tt,st=[];for(;it.length>0;){const at=it.slice(0,rt),ct=buffer.Buffer.alloc(rt+16);nt.encode({instruction:0,offset:ot,bytes:at,bytesLength:0,bytesLengthPadding:0},ct);const lt=new Transaction().add({keys:[{pubkey:_e.publicKey,isSigner:!0,isWritable:!0}],programId:et,data:ct});st.push(sendAndConfirmTransaction(j,lt,[$,_e],{commitment:"confirmed"})),j._rpcEndpoint.includes("solana.com")&&await sleep(1e3/4),ot+=rt,it=it.slice(rt)}await Promise.all(st);{const at=struct([u32("instruction")]),ct=buffer.Buffer.alloc(at.span);at.encode({instruction:1},ct);const lt=new Transaction().add({keys:[{pubkey:_e.publicKey,isSigner:!0,isWritable:!0},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:et,data:ct}),dt="processed",ft=await j.sendTransaction(lt,[$,_e],{preflightCommitment:dt}),{context:gt,value:yt}=await j.confirmTransaction({signature:ft,lastValidBlockHeight:lt.lastValidBlockHeight,blockhash:lt.recentBlockhash},dt);if(yt.err)throw new Error(`Transaction ${ft} failed (${JSON.stringify(yt)})`);for(;;){try{if(await j.getSlot({commitment:dt})>gt.slot)break}catch{}await new Promise(mt=>setTimeout(mt,Math.round(MS_PER_SLOT/2)))}}return!0}}Loader.chunkSize=CHUNK_SIZE;const BPF_LOADER_PROGRAM_ID=new PublicKey("BPFLoader2111111111111111111111111111111111");class BpfLoader{static getMinNumSignatures(j){return Loader.getMinNumSignatures(j)}static load(j,$,_e,et,tt){return Loader.load(j,$,_e,tt,et)}}function getDefaultExportFromCjs(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var fastStableStringify$1,hasRequiredFastStableStringify;function requireFastStableStringify(){if(hasRequiredFastStableStringify)return fastStableStringify$1;hasRequiredFastStableStringify=1;var s=Object.prototype.toString,j=Object.keys||function(_e){var et=[];for(var tt in _e)et.push(tt);return et};function $(_e,et){var tt,nt,rt,ot,it,st,at;if(_e===!0)return"true";if(_e===!1)return"false";switch(typeof _e){case"object":if(_e===null)return null;if(_e.toJSON&&typeof _e.toJSON=="function")return $(_e.toJSON(),et);if(at=s.call(_e),at==="[object Array]"){for(rt="[",nt=_e.length-1,tt=0;tt-1&&(rt+=$(_e[tt],!0)),rt+"]"}else if(at==="[object Object]"){for(ot=j(_e).sort(),nt=ot.length,rt="",tt=0;tt1;)s/=2,j++;return j}function nextPowerOfTwo(s){return s===0?1:(s--,s|=s>>1,s|=s>>2,s|=s>>4,s|=s>>8,s|=s>>16,s|=s>>32,s+1)}class EpochSchedule{constructor(j,$,_e,et,tt){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=j,this.leaderScheduleSlotOffset=$,this.warmup=_e,this.firstNormalEpoch=et,this.firstNormalSlot=tt}getEpoch(j){return this.getEpochAndSlotIndex(j)[0]}getEpochAndSlotIndex(j){if(j{const nt=WebSocket$1(tt,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...$});return"socket"in nt?this.underlyingSocket=nt.socket:this.underlyingSocket=nt,nt};super(et,j,$,_e),this.underlyingSocket=void 0}call(...j){var _e;const $=(_e=this.underlyingSocket)==null?void 0:_e.readyState;return $===1?super.call(...j):Promise.reject(new Error("Tried to call a JSON-RPC method `"+j[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+$+")"))}notify(...j){var _e;const $=(_e=this.underlyingSocket)==null?void 0:_e.readyState;return $===1?super.notify(...j):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+j[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+$+")"))}}function decodeData(s,j){let $;try{$=s.layout.decode(j)}catch(_e){throw new Error("invalid instruction; "+_e)}if($.typeIndex!==s.index)throw new Error(`invalid account data; account type mismatch ${$.typeIndex} != ${s.index}`);return $}const LOOKUP_TABLE_META_SIZE=56;class AddressLookupTableAccount{constructor(j){this.key=void 0,this.state=void 0,this.key=j.key,this.state=j.state}isActive(){const j=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===j}static deserialize(j){const $=decodeData(LookupTableMetaLayout,j),_e=j.length-LOOKUP_TABLE_META_SIZE;assert(_e>=0,"lookup table is invalid"),assert(_e%32===0,"lookup table is invalid");const et=_e/32,{addresses:tt}=struct([seq(publicKey(),et,"addresses")]).decode(j.slice(LOOKUP_TABLE_META_SIZE));return{deactivationSlot:$.deactivationSlot,lastExtendedSlot:$.lastExtendedSlot,lastExtendedSlotStartIndex:$.lastExtendedStartIndex,authority:$.authority.length!==0?new PublicKey($.authority[0]):void 0,addresses:tt.map(nt=>new PublicKey(nt))}}}const LookupTableMetaLayout={index:1,layout:struct([u32("typeIndex"),u64("deactivationSlot"),nu64("lastExtendedSlot"),u8("lastExtendedStartIndex"),u8(),seq(publicKey(),offset(u8(),-1),"authority")])},URL_RE=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function makeWebsocketUrl(s){const j=s.match(URL_RE);if(j==null)throw TypeError(`Failed to validate endpoint URL \`${s}\``);const[$,_e,et,tt]=j,nt=s.startsWith("https:")?"wss:":"ws:",rt=et==null?null:parseInt(et.slice(1),10),ot=rt==null?"":`:${rt+1}`;return`${nt}//${_e}${ot}${tt}`}const PublicKeyFromString=coerce(instance(PublicKey),string$1(),s=>new PublicKey(s)),RawAccountDataResult=tuple([string$1(),literal("base64")]),BufferFromRawAccountData=coerce(instance(buffer.Buffer),RawAccountDataResult,s=>buffer.Buffer.from(s[0],"base64")),BLOCKHASH_CACHE_TIMEOUT_MS=30*1e3;function assertEndpointUrl(s){if(/^https?:/.test(s)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return s}function extractCommitmentFromConfig(s){let j,$;if(typeof s=="string")j=s;else if(s){const{commitment:_e,...et}=s;j=_e,$=et}return{commitment:j,config:$}}function applyDefaultMemcmpEncodingToFilters(s){return s.map(j=>"memcmp"in j?{...j,memcmp:{...j.memcmp,encoding:j.memcmp.encoding??"base58"}}:j)}function createRpcResult(s){return union([type({jsonrpc:literal("2.0"),id:string$1(),result:s}),type({jsonrpc:literal("2.0"),id:string$1(),error:type({code:unknown(),message:string$1(),data:optional(any())})})])}const UnknownRpcResult=createRpcResult(unknown());function jsonRpcResult(s){return coerce(createRpcResult(s),UnknownRpcResult,j=>"error"in j?j:{...j,result:create$4(j.result,s)})}function jsonRpcResultAndContext(s){return jsonRpcResult(type({context:type({slot:number()}),value:s}))}function notificationResultAndContext(s){return type({context:type({slot:number()}),value:s})}function versionedMessageFromResponse(s,j){return s===0?new MessageV0({header:j.header,staticAccountKeys:j.accountKeys.map($=>new PublicKey($)),recentBlockhash:j.recentBlockhash,compiledInstructions:j.instructions.map($=>({programIdIndex:$.programIdIndex,accountKeyIndexes:$.accounts,data:base58.decode($.data)})),addressTableLookups:j.addressTableLookups}):new Message(j)}const GetInflationGovernorResult=type({foundation:number(),foundationTerm:number(),initial:number(),taper:number(),terminal:number()}),GetInflationRewardResult=jsonRpcResult(array$1(nullable(type({epoch:number(),effectiveSlot:number(),amount:number(),postBalance:number(),commission:optional(nullable(number()))})))),GetRecentPrioritizationFeesResult=array$1(type({slot:number(),prioritizationFee:number()})),GetInflationRateResult=type({total:number(),validator:number(),foundation:number(),epoch:number()}),GetEpochInfoResult=type({epoch:number(),slotIndex:number(),slotsInEpoch:number(),absoluteSlot:number(),blockHeight:optional(number()),transactionCount:optional(number())}),GetEpochScheduleResult=type({slotsPerEpoch:number(),leaderScheduleSlotOffset:number(),warmup:boolean$1(),firstNormalEpoch:number(),firstNormalSlot:number()}),GetLeaderScheduleResult=record(string$1(),array$1(number())),TransactionErrorResult=nullable(union([type({}),string$1()])),SignatureStatusResult=type({err:TransactionErrorResult}),SignatureReceivedResult=literal("receivedSignature"),VersionResult=type({"solana-core":string$1(),"feature-set":optional(number())}),ParsedInstructionStruct=type({program:string$1(),programId:PublicKeyFromString,parsed:unknown()}),PartiallyDecodedInstructionStruct=type({programId:PublicKeyFromString,accounts:array$1(PublicKeyFromString),data:string$1()}),SimulatedTransactionResponseStruct=jsonRpcResultAndContext(type({err:nullable(union([type({}),string$1()])),logs:nullable(array$1(string$1())),accounts:optional(nullable(array$1(nullable(type({executable:boolean$1(),owner:string$1(),lamports:number(),data:array$1(string$1()),rentEpoch:optional(number())}))))),unitsConsumed:optional(number()),returnData:optional(nullable(type({programId:string$1(),data:tuple([string$1(),literal("base64")])}))),innerInstructions:optional(nullable(array$1(type({index:number(),instructions:array$1(union([ParsedInstructionStruct,PartiallyDecodedInstructionStruct]))}))))})),BlockProductionResponseStruct=jsonRpcResultAndContext(type({byIdentity:record(string$1(),array$1(number())),range:type({firstSlot:number(),lastSlot:number()})}));function createRpcClient(s,j,$,_e,et,tt){const nt=$||fetchImpl;let rt;tt!=null&&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.");let ot;return _e&&(ot=async(st,at)=>{const ct=await new Promise((lt,dt)=>{try{_e(st,at,(ft,gt)=>lt([ft,gt]))}catch(ft){dt(ft)}});return await nt(...ct)}),new RpcClient(async(st,at)=>{const ct={method:"POST",body:st,agent:rt,headers:Object.assign({"Content-Type":"application/json"},j||{},COMMON_HTTP_HEADERS)};try{let lt=5,dt,ft=500;for(;ot?dt=await ot(s,ct):dt=await nt(s,ct),!(dt.status!==429||et===!0||(lt-=1,lt===0));)console.error(`Server responded with ${dt.status} ${dt.statusText}. Retrying after ${ft}ms delay...`),await sleep(ft),ft*=2;const gt=await dt.text();dt.ok?at(null,gt):at(new Error(`${dt.status} ${dt.statusText}: ${gt}`))}catch(lt){lt instanceof Error&&at(lt)}},{})}function createRpcRequest(s){return(j,$)=>new Promise((_e,et)=>{s.request(j,$,(tt,nt)=>{if(tt){et(tt);return}_e(nt)})})}function createRpcBatchRequest(s){return j=>new Promise(($,_e)=>{j.length===0&&$([]);const et=j.map(tt=>s.request(tt.methodName,tt.args));s.request(et,(tt,nt)=>{if(tt){_e(tt);return}$(nt)})})}const GetInflationGovernorRpcResult=jsonRpcResult(GetInflationGovernorResult),GetInflationRateRpcResult=jsonRpcResult(GetInflationRateResult),GetRecentPrioritizationFeesRpcResult=jsonRpcResult(GetRecentPrioritizationFeesResult),GetEpochInfoRpcResult=jsonRpcResult(GetEpochInfoResult),GetEpochScheduleRpcResult=jsonRpcResult(GetEpochScheduleResult),GetLeaderScheduleRpcResult=jsonRpcResult(GetLeaderScheduleResult),SlotRpcResult=jsonRpcResult(number()),GetSupplyRpcResult=jsonRpcResultAndContext(type({total:number(),circulating:number(),nonCirculating:number(),nonCirculatingAccounts:array$1(PublicKeyFromString)})),TokenAmountResult=type({amount:string$1(),uiAmount:nullable(number()),decimals:number(),uiAmountString:optional(string$1())}),GetTokenLargestAccountsResult=jsonRpcResultAndContext(array$1(type({address:PublicKeyFromString,amount:string$1(),uiAmount:nullable(number()),decimals:number(),uiAmountString:optional(string$1())}))),GetTokenAccountsByOwner=jsonRpcResultAndContext(array$1(type({pubkey:PublicKeyFromString,account:type({executable:boolean$1(),owner:PublicKeyFromString,lamports:number(),data:BufferFromRawAccountData,rentEpoch:number()})}))),ParsedAccountDataResult=type({program:string$1(),parsed:unknown(),space:number()}),GetParsedTokenAccountsByOwner=jsonRpcResultAndContext(array$1(type({pubkey:PublicKeyFromString,account:type({executable:boolean$1(),owner:PublicKeyFromString,lamports:number(),data:ParsedAccountDataResult,rentEpoch:number()})}))),GetLargestAccountsRpcResult=jsonRpcResultAndContext(array$1(type({lamports:number(),address:PublicKeyFromString}))),AccountInfoResult=type({executable:boolean$1(),owner:PublicKeyFromString,lamports:number(),data:BufferFromRawAccountData,rentEpoch:number()}),KeyedAccountInfoResult=type({pubkey:PublicKeyFromString,account:AccountInfoResult}),ParsedOrRawAccountData=coerce(union([instance(buffer.Buffer),ParsedAccountDataResult]),union([RawAccountDataResult,ParsedAccountDataResult]),s=>Array.isArray(s)?create$4(s,BufferFromRawAccountData):s),ParsedAccountInfoResult=type({executable:boolean$1(),owner:PublicKeyFromString,lamports:number(),data:ParsedOrRawAccountData,rentEpoch:number()}),KeyedParsedAccountInfoResult=type({pubkey:PublicKeyFromString,account:ParsedAccountInfoResult}),StakeActivationResult=type({state:union([literal("active"),literal("inactive"),literal("activating"),literal("deactivating")]),active:number(),inactive:number()}),GetConfirmedSignaturesForAddress2RpcResult=jsonRpcResult(array$1(type({signature:string$1(),slot:number(),err:TransactionErrorResult,memo:nullable(string$1()),blockTime:optional(nullable(number()))}))),GetSignaturesForAddressRpcResult=jsonRpcResult(array$1(type({signature:string$1(),slot:number(),err:TransactionErrorResult,memo:nullable(string$1()),blockTime:optional(nullable(number()))}))),AccountNotificationResult=type({subscription:number(),result:notificationResultAndContext(AccountInfoResult)}),ProgramAccountInfoResult=type({pubkey:PublicKeyFromString,account:AccountInfoResult}),ProgramAccountNotificationResult=type({subscription:number(),result:notificationResultAndContext(ProgramAccountInfoResult)}),SlotInfoResult=type({parent:number(),slot:number(),root:number()}),SlotNotificationResult=type({subscription:number(),result:SlotInfoResult}),SlotUpdateResult=union([type({type:union([literal("firstShredReceived"),literal("completed"),literal("optimisticConfirmation"),literal("root")]),slot:number(),timestamp:number()}),type({type:literal("createdBank"),parent:number(),slot:number(),timestamp:number()}),type({type:literal("frozen"),slot:number(),timestamp:number(),stats:type({numTransactionEntries:number(),numSuccessfulTransactions:number(),numFailedTransactions:number(),maxTransactionsPerEntry:number()})}),type({type:literal("dead"),slot:number(),timestamp:number(),err:string$1()})]),SlotUpdateNotificationResult=type({subscription:number(),result:SlotUpdateResult}),SignatureNotificationResult=type({subscription:number(),result:notificationResultAndContext(union([SignatureStatusResult,SignatureReceivedResult]))}),RootNotificationResult=type({subscription:number(),result:number()}),ContactInfoResult=type({pubkey:string$1(),gossip:nullable(string$1()),tpu:nullable(string$1()),rpc:nullable(string$1()),version:nullable(string$1())}),VoteAccountInfoResult=type({votePubkey:string$1(),nodePubkey:string$1(),activatedStake:number(),epochVoteAccount:boolean$1(),epochCredits:array$1(tuple([number(),number(),number()])),commission:number(),lastVote:number(),rootSlot:nullable(number())}),GetVoteAccounts=jsonRpcResult(type({current:array$1(VoteAccountInfoResult),delinquent:array$1(VoteAccountInfoResult)})),ConfirmationStatus=union([literal("processed"),literal("confirmed"),literal("finalized")]),SignatureStatusResponse=type({slot:number(),confirmations:nullable(number()),err:TransactionErrorResult,confirmationStatus:optional(ConfirmationStatus)}),GetSignatureStatusesRpcResult=jsonRpcResultAndContext(array$1(nullable(SignatureStatusResponse))),GetMinimumBalanceForRentExemptionRpcResult=jsonRpcResult(number()),AddressTableLookupStruct=type({accountKey:PublicKeyFromString,writableIndexes:array$1(number()),readonlyIndexes:array$1(number())}),ConfirmedTransactionResult=type({signatures:array$1(string$1()),message:type({accountKeys:array$1(string$1()),header:type({numRequiredSignatures:number(),numReadonlySignedAccounts:number(),numReadonlyUnsignedAccounts:number()}),instructions:array$1(type({accounts:array$1(number()),data:string$1(),programIdIndex:number()})),recentBlockhash:string$1(),addressTableLookups:optional(array$1(AddressTableLookupStruct))})}),AnnotatedAccountKey=type({pubkey:PublicKeyFromString,signer:boolean$1(),writable:boolean$1(),source:optional(union([literal("transaction"),literal("lookupTable")]))}),ConfirmedTransactionAccountsModeResult=type({accountKeys:array$1(AnnotatedAccountKey),signatures:array$1(string$1())}),ParsedInstructionResult=type({parsed:unknown(),program:string$1(),programId:PublicKeyFromString}),RawInstructionResult=type({accounts:array$1(PublicKeyFromString),data:string$1(),programId:PublicKeyFromString}),InstructionResult=union([RawInstructionResult,ParsedInstructionResult]),UnknownInstructionResult=union([type({parsed:unknown(),program:string$1(),programId:string$1()}),type({accounts:array$1(string$1()),data:string$1(),programId:string$1()})]),ParsedOrRawInstruction=coerce(InstructionResult,UnknownInstructionResult,s=>"accounts"in s?create$4(s,RawInstructionResult):create$4(s,ParsedInstructionResult)),ParsedConfirmedTransactionResult=type({signatures:array$1(string$1()),message:type({accountKeys:array$1(AnnotatedAccountKey),instructions:array$1(ParsedOrRawInstruction),recentBlockhash:string$1(),addressTableLookups:optional(nullable(array$1(AddressTableLookupStruct)))})}),TokenBalanceResult=type({accountIndex:number(),mint:string$1(),owner:optional(string$1()),programId:optional(string$1()),uiTokenAmount:TokenAmountResult}),LoadedAddressesResult=type({writable:array$1(PublicKeyFromString),readonly:array$1(PublicKeyFromString)}),ConfirmedTransactionMetaResult=type({err:TransactionErrorResult,fee:number(),innerInstructions:optional(nullable(array$1(type({index:number(),instructions:array$1(type({accounts:array$1(number()),data:string$1(),programIdIndex:number()}))})))),preBalances:array$1(number()),postBalances:array$1(number()),logMessages:optional(nullable(array$1(string$1()))),preTokenBalances:optional(nullable(array$1(TokenBalanceResult))),postTokenBalances:optional(nullable(array$1(TokenBalanceResult))),loadedAddresses:optional(LoadedAddressesResult),computeUnitsConsumed:optional(number())}),ParsedConfirmedTransactionMetaResult=type({err:TransactionErrorResult,fee:number(),innerInstructions:optional(nullable(array$1(type({index:number(),instructions:array$1(ParsedOrRawInstruction)})))),preBalances:array$1(number()),postBalances:array$1(number()),logMessages:optional(nullable(array$1(string$1()))),preTokenBalances:optional(nullable(array$1(TokenBalanceResult))),postTokenBalances:optional(nullable(array$1(TokenBalanceResult))),loadedAddresses:optional(LoadedAddressesResult),computeUnitsConsumed:optional(number())}),TransactionVersionStruct=union([literal(0),literal("legacy")]),RewardsResult=type({pubkey:string$1(),lamports:number(),postBalance:nullable(number()),rewardType:nullable(string$1()),commission:optional(nullable(number()))}),GetBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ConfirmedTransactionResult,meta:nullable(ConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetNoneModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetAccountsModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ConfirmedTransactionAccountsModeResult,meta:nullable(ConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetParsedBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ParsedConfirmedTransactionResult,meta:nullable(ParsedConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetParsedAccountsModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ConfirmedTransactionAccountsModeResult,meta:nullable(ParsedConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetParsedNoneModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetConfirmedBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),transactions:array$1(type({transaction:ConfirmedTransactionResult,meta:nullable(ConfirmedTransactionMetaResult)})),rewards:optional(array$1(RewardsResult)),blockTime:nullable(number())}))),GetBlockSignaturesRpcResult=jsonRpcResult(nullable(type({blockhash:string$1(),previousBlockhash:string$1(),parentSlot:number(),signatures:array$1(string$1()),blockTime:nullable(number())}))),GetTransactionRpcResult=jsonRpcResult(nullable(type({slot:number(),meta:nullable(ConfirmedTransactionMetaResult),blockTime:optional(nullable(number())),transaction:ConfirmedTransactionResult,version:optional(TransactionVersionStruct)}))),GetParsedTransactionRpcResult=jsonRpcResult(nullable(type({slot:number(),transaction:ParsedConfirmedTransactionResult,meta:nullable(ParsedConfirmedTransactionMetaResult),blockTime:optional(nullable(number())),version:optional(TransactionVersionStruct)}))),GetLatestBlockhashRpcResult=jsonRpcResultAndContext(type({blockhash:string$1(),lastValidBlockHeight:number()})),IsBlockhashValidRpcResult=jsonRpcResultAndContext(boolean$1()),PerfSampleResult=type({slot:number(),numTransactions:number(),numSlots:number(),samplePeriodSecs:number()}),GetRecentPerformanceSamplesRpcResult=jsonRpcResult(array$1(PerfSampleResult)),GetFeeCalculatorRpcResult=jsonRpcResultAndContext(nullable(type({feeCalculator:type({lamportsPerSignature:number()})}))),RequestAirdropRpcResult=jsonRpcResult(string$1()),SendTransactionRpcResult=jsonRpcResult(string$1()),LogsResult=type({err:TransactionErrorResult,logs:array$1(string$1()),signature:string$1()}),LogsNotificationResult=type({result:notificationResultAndContext(LogsResult),subscription:number()}),COMMON_HTTP_HEADERS={"solana-client":"js/1.0.0-maintenance"};class Connection{constructor(j,$){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={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{const it={};return async st=>{const{commitment:at,config:ct}=extractCommitmentFromConfig(st),lt=this._buildArgs([],at,void 0,ct),dt=fastStableStringify(lt);return it[dt]=it[dt]??(async()=>{try{const ft=await this._rpcRequest("getBlockHeight",lt),gt=create$4(ft,jsonRpcResult(number()));if("error"in gt)throw new SolanaJSONRPCError(gt.error,"failed to get block height information");return gt.result}finally{delete it[dt]}})(),await it[dt]}})();let _e,et,tt,nt,rt,ot;$&&typeof $=="string"?this._commitment=$:$&&(this._commitment=$.commitment,this._confirmTransactionInitialTimeout=$.confirmTransactionInitialTimeout,_e=$.wsEndpoint,et=$.httpHeaders,tt=$.fetch,nt=$.fetchMiddleware,rt=$.disableRetryOnRateLimit,ot=$.httpAgent),this._rpcEndpoint=assertEndpointUrl(j),this._rpcWsEndpoint=_e||makeWebsocketUrl(j),this._rpcClient=createRpcClient(j,et,tt,nt,rt,ot),this._rpcRequest=createRpcRequest(this._rpcClient),this._rpcBatchRequest=createRpcBatchRequest(this._rpcClient),this._rpcWebSocket=new RpcWebSocketClient(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(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j.toBase58()],_e,void 0,et),nt=await this._rpcRequest("getBalance",tt),rt=create$4(nt,jsonRpcResultAndContext(number()));if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get balance for ${j.toBase58()}`);return rt.result}async getBalance(j,$){return await this.getBalanceAndContext(j,$).then(_e=>_e.value).catch(_e=>{throw new Error("failed to get balance of account "+j.toBase58()+": "+_e)})}async getBlockTime(j){const $=await this._rpcRequest("getBlockTime",[j]),_e=create$4($,jsonRpcResult(nullable(number())));if("error"in _e)throw new SolanaJSONRPCError(_e.error,`failed to get block time for slot ${j}`);return _e.result}async getMinimumLedgerSlot(){const j=await this._rpcRequest("minimumLedgerSlot",[]),$=create$4(j,jsonRpcResult(number()));if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get minimum ledger slot");return $.result}async getFirstAvailableBlock(){const j=await this._rpcRequest("getFirstAvailableBlock",[]),$=create$4(j,SlotRpcResult);if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get first available block");return $.result}async getSupply(j){let $={};typeof j=="string"?$={commitment:j}:j?$={...j,commitment:j&&j.commitment||this.commitment}:$={commitment:this.commitment};const _e=await this._rpcRequest("getSupply",[$]),et=create$4(_e,GetSupplyRpcResult);if("error"in et)throw new SolanaJSONRPCError(et.error,"failed to get supply");return et.result}async getTokenSupply(j,$){const _e=this._buildArgs([j.toBase58()],$),et=await this._rpcRequest("getTokenSupply",_e),tt=create$4(et,jsonRpcResultAndContext(TokenAmountResult));if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get token supply");return tt.result}async getTokenAccountBalance(j,$){const _e=this._buildArgs([j.toBase58()],$),et=await this._rpcRequest("getTokenAccountBalance",_e),tt=create$4(et,jsonRpcResultAndContext(TokenAmountResult));if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get token account balance");return tt.result}async getTokenAccountsByOwner(j,$,_e){const{commitment:et,config:tt}=extractCommitmentFromConfig(_e);let nt=[j.toBase58()];"mint"in $?nt.push({mint:$.mint.toBase58()}):nt.push({programId:$.programId.toBase58()});const rt=this._buildArgs(nt,et,"base64",tt),ot=await this._rpcRequest("getTokenAccountsByOwner",rt),it=create$4(ot,GetTokenAccountsByOwner);if("error"in it)throw new SolanaJSONRPCError(it.error,`failed to get token accounts owned by account ${j.toBase58()}`);return it.result}async getParsedTokenAccountsByOwner(j,$,_e){let et=[j.toBase58()];"mint"in $?et.push({mint:$.mint.toBase58()}):et.push({programId:$.programId.toBase58()});const tt=this._buildArgs(et,_e,"jsonParsed"),nt=await this._rpcRequest("getTokenAccountsByOwner",tt),rt=create$4(nt,GetParsedTokenAccountsByOwner);if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get token accounts owned by account ${j.toBase58()}`);return rt.result}async getLargestAccounts(j){const $={...j,commitment:j&&j.commitment||this.commitment},_e=$.filter||$.commitment?[$]:[],et=await this._rpcRequest("getLargestAccounts",_e),tt=create$4(et,GetLargestAccountsRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get largest accounts");return tt.result}async getTokenLargestAccounts(j,$){const _e=this._buildArgs([j.toBase58()],$),et=await this._rpcRequest("getTokenLargestAccounts",_e),tt=create$4(et,GetTokenLargestAccountsResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get token largest accounts");return tt.result}async getAccountInfoAndContext(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j.toBase58()],_e,"base64",et),nt=await this._rpcRequest("getAccountInfo",tt),rt=create$4(nt,jsonRpcResultAndContext(nullable(AccountInfoResult)));if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get info about account ${j.toBase58()}`);return rt.result}async getParsedAccountInfo(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j.toBase58()],_e,"jsonParsed",et),nt=await this._rpcRequest("getAccountInfo",tt),rt=create$4(nt,jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get info about account ${j.toBase58()}`);return rt.result}async getAccountInfo(j,$){try{return(await this.getAccountInfoAndContext(j,$)).value}catch(_e){throw new Error("failed to get info about account "+j.toBase58()+": "+_e)}}async getMultipleParsedAccounts(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=j.map(it=>it.toBase58()),nt=this._buildArgs([tt],_e,"jsonParsed",et),rt=await this._rpcRequest("getMultipleAccounts",nt),ot=create$4(rt,jsonRpcResultAndContext(array$1(nullable(ParsedAccountInfoResult))));if("error"in ot)throw new SolanaJSONRPCError(ot.error,`failed to get info for accounts ${tt}`);return ot.result}async getMultipleAccountsInfoAndContext(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=j.map(it=>it.toBase58()),nt=this._buildArgs([tt],_e,"base64",et),rt=await this._rpcRequest("getMultipleAccounts",nt),ot=create$4(rt,jsonRpcResultAndContext(array$1(nullable(AccountInfoResult))));if("error"in ot)throw new SolanaJSONRPCError(ot.error,`failed to get info for accounts ${tt}`);return ot.result}async getMultipleAccountsInfo(j,$){return(await this.getMultipleAccountsInfoAndContext(j,$)).value}async getStakeActivation(j,$,_e){const{commitment:et,config:tt}=extractCommitmentFromConfig($),nt=this._buildArgs([j.toBase58()],et,void 0,{...tt,epoch:_e??(tt==null?void 0:tt.epoch)}),rt=await this._rpcRequest("getStakeActivation",nt),ot=create$4(rt,jsonRpcResult(StakeActivationResult));if("error"in ot)throw new SolanaJSONRPCError(ot.error,`failed to get Stake Activation ${j.toBase58()}`);return ot.result}async getProgramAccounts(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),{encoding:tt,...nt}=et||{},rt=this._buildArgs([j.toBase58()],_e,tt||"base64",{...nt,...nt.filters?{filters:applyDefaultMemcmpEncodingToFilters(nt.filters)}:null}),ot=await this._rpcRequest("getProgramAccounts",rt),it=array$1(KeyedAccountInfoResult),st=nt.withContext===!0?create$4(ot,jsonRpcResultAndContext(it)):create$4(ot,jsonRpcResult(it));if("error"in st)throw new SolanaJSONRPCError(st.error,`failed to get accounts owned by program ${j.toBase58()}`);return st.result}async getParsedProgramAccounts(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j.toBase58()],_e,"jsonParsed",et),nt=await this._rpcRequest("getProgramAccounts",tt),rt=create$4(nt,jsonRpcResult(array$1(KeyedParsedAccountInfoResult)));if("error"in rt)throw new SolanaJSONRPCError(rt.error,`failed to get accounts owned by program ${j.toBase58()}`);return rt.result}async confirmTransaction(j,$){var tt;let _e;if(typeof j=="string")_e=j;else{const nt=j;if((tt=nt.abortSignal)!=null&&tt.aborted)return Promise.reject(nt.abortSignal.reason);_e=nt.signature}let et;try{et=base58.decode(_e)}catch{throw new Error("signature must be base58 encoded: "+_e)}return assert(et.length===64,"signature has invalid length"),typeof j=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:$||this.commitment,signature:_e}):"lastValidBlockHeight"in j?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:$||this.commitment,strategy:j}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:$||this.commitment,strategy:j})}getCancellationPromise(j){return new Promise(($,_e)=>{j!=null&&(j.aborted?_e(j.reason):j.addEventListener("abort",()=>{_e(j.reason)}))})}getTransactionConfirmationPromise({commitment:j,signature:$}){let _e,et,tt=!1;const nt=new Promise((ot,it)=>{try{_e=this.onSignature($,(at,ct)=>{_e=void 0;const lt={context:ct,value:at};ot({__type:TransactionStatus.PROCESSED,response:lt})},j);const st=new Promise(at=>{_e==null?at():et=this._onSubscriptionStateChange(_e,ct=>{ct==="subscribed"&&at()})});(async()=>{if(await st,tt)return;const at=await this.getSignatureStatus($);if(tt||at==null)return;const{context:ct,value:lt}=at;if(lt!=null)if(lt!=null&<.err)it(lt.err);else{switch(j){case"confirmed":case"single":case"singleGossip":{if(lt.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(lt.confirmationStatus==="processed"||lt.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}tt=!0,ot({__type:TransactionStatus.PROCESSED,response:{context:ct,value:lt}})}})()}catch(st){it(st)}});return{abortConfirmation:()=>{et&&(et(),et=void 0),_e!=null&&(this.removeSignatureListener(_e),_e=void 0)},confirmationPromise:nt}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:j,strategy:{abortSignal:$,lastValidBlockHeight:_e,signature:et}}){let tt=!1;const nt=new Promise(at=>{const ct=async()=>{try{return await this.getBlockHeight(j)}catch{return-1}};(async()=>{let lt=await ct();if(!tt){for(;lt<=_e;)if(await sleep(1e3),tt||(lt=await ct(),tt))return;at({__type:TransactionStatus.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:rt,confirmationPromise:ot}=this.getTransactionConfirmationPromise({commitment:j,signature:et}),it=this.getCancellationPromise($);let st;try{const at=await Promise.race([it,ot,nt]);if(at.__type===TransactionStatus.PROCESSED)st=at.response;else throw new TransactionExpiredBlockheightExceededError(et)}finally{tt=!0,rt()}return st}async confirmTransactionUsingDurableNonceStrategy({commitment:j,strategy:{abortSignal:$,minContextSlot:_e,nonceAccountPubkey:et,nonceValue:tt,signature:nt}}){let rt=!1;const ot=new Promise(lt=>{let dt=tt,ft=null;const gt=async()=>{try{const{context:yt,value:mt}=await this.getNonceAndContext(et,{commitment:j,minContextSlot:_e});return ft=yt.slot,mt==null?void 0:mt.nonce}catch{return dt}};(async()=>{if(dt=await gt(),!rt)for(;;){if(tt!==dt){lt({__type:TransactionStatus.NONCE_INVALID,slotInWhichNonceDidAdvance:ft});return}if(await sleep(2e3),rt||(dt=await gt(),rt))return}})()}),{abortConfirmation:it,confirmationPromise:st}=this.getTransactionConfirmationPromise({commitment:j,signature:nt}),at=this.getCancellationPromise($);let ct;try{const lt=await Promise.race([at,st,ot]);if(lt.__type===TransactionStatus.PROCESSED)ct=lt.response;else{let dt;for(;;){const ft=await this.getSignatureStatus(nt);if(ft==null)break;if(ft.context.slot<(lt.slotInWhichNonceDidAdvance??_e)){await sleep(400);continue}dt=ft;break}if(dt!=null&&dt.value){const ft=j||"finalized",{confirmationStatus:gt}=dt.value;switch(ft){case"processed":case"recent":if(gt!=="processed"&>!=="confirmed"&>!=="finalized")throw new TransactionExpiredNonceInvalidError(nt);break;case"confirmed":case"single":case"singleGossip":if(gt!=="confirmed"&>!=="finalized")throw new TransactionExpiredNonceInvalidError(nt);break;case"finalized":case"max":case"root":if(gt!=="finalized")throw new TransactionExpiredNonceInvalidError(nt);break;default:}ct={context:dt.context,value:{err:dt.value.err}}}else throw new TransactionExpiredNonceInvalidError(nt)}}finally{rt=!0,it()}return ct}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:j,signature:$}){let _e;const et=new Promise(ot=>{let it=this._confirmTransactionInitialTimeout||6e4;switch(j){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{it=this._confirmTransactionInitialTimeout||3e4;break}}_e=setTimeout(()=>ot({__type:TransactionStatus.TIMED_OUT,timeoutMs:it}),it)}),{abortConfirmation:tt,confirmationPromise:nt}=this.getTransactionConfirmationPromise({commitment:j,signature:$});let rt;try{const ot=await Promise.race([nt,et]);if(ot.__type===TransactionStatus.PROCESSED)rt=ot.response;else throw new TransactionExpiredTimeoutError($,ot.timeoutMs/1e3)}finally{clearTimeout(_e),tt()}return rt}async getClusterNodes(){const j=await this._rpcRequest("getClusterNodes",[]),$=create$4(j,jsonRpcResult(array$1(ContactInfoResult)));if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get cluster nodes");return $.result}async getVoteAccounts(j){const $=this._buildArgs([],j),_e=await this._rpcRequest("getVoteAccounts",$),et=create$4(_e,GetVoteAccounts);if("error"in et)throw new SolanaJSONRPCError(et.error,"failed to get vote accounts");return et.result}async getSlot(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getSlot",et),nt=create$4(tt,jsonRpcResult(number()));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get slot");return nt.result}async getSlotLeader(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getSlotLeader",et),nt=create$4(tt,jsonRpcResult(string$1()));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get slot leader");return nt.result}async getSlotLeaders(j,$){const _e=[j,$],et=await this._rpcRequest("getSlotLeaders",_e),tt=create$4(et,jsonRpcResult(array$1(PublicKeyFromString)));if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get slot leaders");return tt.result}async getSignatureStatus(j,$){const{context:_e,value:et}=await this.getSignatureStatuses([j],$);assert(et.length===1);const tt=et[0];return{context:_e,value:tt}}async getSignatureStatuses(j,$){const _e=[j];$&&_e.push($);const et=await this._rpcRequest("getSignatureStatuses",_e),tt=create$4(et,GetSignatureStatusesRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get signature status");return tt.result}async getTransactionCount(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getTransactionCount",et),nt=create$4(tt,jsonRpcResult(number()));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get transaction count");return nt.result}async getTotalSupply(j){return(await this.getSupply({commitment:j,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(j){const $=this._buildArgs([],j),_e=await this._rpcRequest("getInflationGovernor",$),et=create$4(_e,GetInflationGovernorRpcResult);if("error"in et)throw new SolanaJSONRPCError(et.error,"failed to get inflation");return et.result}async getInflationReward(j,$,_e){const{commitment:et,config:tt}=extractCommitmentFromConfig(_e),nt=this._buildArgs([j.map(it=>it.toBase58())],et,void 0,{...tt,epoch:$??(tt==null?void 0:tt.epoch)}),rt=await this._rpcRequest("getInflationReward",nt),ot=create$4(rt,GetInflationRewardResult);if("error"in ot)throw new SolanaJSONRPCError(ot.error,"failed to get inflation reward");return ot.result}async getInflationRate(){const j=await this._rpcRequest("getInflationRate",[]),$=create$4(j,GetInflationRateRpcResult);if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get inflation rate");return $.result}async getEpochInfo(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getEpochInfo",et),nt=create$4(tt,GetEpochInfoRpcResult);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get epoch info");return nt.result}async getEpochSchedule(){const j=await this._rpcRequest("getEpochSchedule",[]),$=create$4(j,GetEpochScheduleRpcResult);if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get epoch schedule");const _e=$.result;return new EpochSchedule(_e.slotsPerEpoch,_e.leaderScheduleSlotOffset,_e.warmup,_e.firstNormalEpoch,_e.firstNormalSlot)}async getLeaderSchedule(){const j=await this._rpcRequest("getLeaderSchedule",[]),$=create$4(j,GetLeaderScheduleRpcResult);if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get leader schedule");return $.result}async getMinimumBalanceForRentExemption(j,$){const _e=this._buildArgs([j],$),et=await this._rpcRequest("getMinimumBalanceForRentExemption",_e),tt=create$4(et,GetMinimumBalanceForRentExemptionRpcResult);return"error"in tt?(console.warn("Unable to fetch minimum balance for rent exemption"),0):tt.result}async getRecentBlockhashAndContext(j){const{context:$,value:{blockhash:_e}}=await this.getLatestBlockhashAndContext(j);return{context:$,value:{blockhash:_e,feeCalculator:{get lamportsPerSignature(){throw new 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(){return{}}}}}}async getRecentPerformanceSamples(j){const $=await this._rpcRequest("getRecentPerformanceSamples",j?[j]:[]),_e=create$4($,GetRecentPerformanceSamplesRpcResult);if("error"in _e)throw new SolanaJSONRPCError(_e.error,"failed to get recent performance samples");return _e.result}async getFeeCalculatorForBlockhash(j,$){const _e=this._buildArgs([j],$),et=await this._rpcRequest("getFeeCalculatorForBlockhash",_e),tt=create$4(et,GetFeeCalculatorRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get fee calculator");const{context:nt,value:rt}=tt.result;return{context:nt,value:rt!==null?rt.feeCalculator:null}}async getFeeForMessage(j,$){const _e=toBuffer(j.serialize()).toString("base64"),et=this._buildArgs([_e],$),tt=await this._rpcRequest("getFeeForMessage",et),nt=create$4(tt,jsonRpcResultAndContext(nullable(number())));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get fee for message");if(nt.result===null)throw new Error("invalid blockhash");return nt.result}async getRecentPrioritizationFees(j){var nt;const $=(nt=j==null?void 0:j.lockedWritableAccounts)==null?void 0:nt.map(rt=>rt.toBase58()),_e=$!=null&&$.length?[$]:[],et=await this._rpcRequest("getRecentPrioritizationFees",_e),tt=create$4(et,GetRecentPrioritizationFeesRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get recent prioritization fees");return tt.result}async getRecentBlockhash(j){try{return(await this.getRecentBlockhashAndContext(j)).value}catch($){throw new Error("failed to get recent blockhash: "+$)}}async getLatestBlockhash(j){try{return(await this.getLatestBlockhashAndContext(j)).value}catch($){throw new Error("failed to get recent blockhash: "+$)}}async getLatestBlockhashAndContext(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,void 0,_e),tt=await this._rpcRequest("getLatestBlockhash",et),nt=create$4(tt,GetLatestBlockhashRpcResult);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get latest blockhash");return nt.result}async isBlockhashValid(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgs([j],_e,void 0,et),nt=await this._rpcRequest("isBlockhashValid",tt),rt=create$4(nt,IsBlockhashValidRpcResult);if("error"in rt)throw new SolanaJSONRPCError(rt.error,"failed to determine if the blockhash `"+j+"`is valid");return rt.result}async getVersion(){const j=await this._rpcRequest("getVersion",[]),$=create$4(j,jsonRpcResult(VersionResult));if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get version");return $.result}async getGenesisHash(){const j=await this._rpcRequest("getGenesisHash",[]),$=create$4(j,jsonRpcResult(string$1()));if("error"in $)throw new SolanaJSONRPCError($.error,"failed to get genesis hash");return $.result}async getBlock(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgsAtLeastConfirmed([j],_e,void 0,et),nt=await this._rpcRequest("getBlock",tt);try{switch(et==null?void 0:et.transactionDetails){case"accounts":{const rt=create$4(nt,GetAccountsModeBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}case"none":{const rt=create$4(nt,GetNoneModeBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}default:{const rt=create$4(nt,GetBlockRpcResult);if("error"in rt)throw rt.error;const{result:ot}=rt;return ot?{...ot,transactions:ot.transactions.map(({transaction:it,meta:st,version:at})=>({meta:st,transaction:{...it,message:versionedMessageFromResponse(at,it.message)},version:at}))}:null}}}catch(rt){throw new SolanaJSONRPCError(rt,"failed to get confirmed block")}}async getParsedBlock(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgsAtLeastConfirmed([j],_e,"jsonParsed",et),nt=await this._rpcRequest("getBlock",tt);try{switch(et==null?void 0:et.transactionDetails){case"accounts":{const rt=create$4(nt,GetParsedAccountsModeBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}case"none":{const rt=create$4(nt,GetParsedNoneModeBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}default:{const rt=create$4(nt,GetParsedBlockRpcResult);if("error"in rt)throw rt.error;return rt.result}}}catch(rt){throw new SolanaJSONRPCError(rt,"failed to get block")}}async getBlockProduction(j){let $,_e;if(typeof j=="string")_e=j;else if(j){const{commitment:rt,...ot}=j;_e=rt,$=ot}const et=this._buildArgs([],_e,"base64",$),tt=await this._rpcRequest("getBlockProduction",et),nt=create$4(tt,BlockProductionResponseStruct);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get block production information");return nt.result}async getTransaction(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgsAtLeastConfirmed([j],_e,void 0,et),nt=await this._rpcRequest("getTransaction",tt),rt=create$4(nt,GetTransactionRpcResult);if("error"in rt)throw new SolanaJSONRPCError(rt.error,"failed to get transaction");const ot=rt.result;return ot&&{...ot,transaction:{...ot.transaction,message:versionedMessageFromResponse(ot.version,ot.transaction.message)}}}async getParsedTransaction(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=this._buildArgsAtLeastConfirmed([j],_e,"jsonParsed",et),nt=await this._rpcRequest("getTransaction",tt),rt=create$4(nt,GetParsedTransactionRpcResult);if("error"in rt)throw new SolanaJSONRPCError(rt.error,"failed to get transaction");return rt.result}async getParsedTransactions(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=j.map(ot=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([ot],_e,"jsonParsed",et)}));return(await this._rpcBatchRequest(tt)).map(ot=>{const it=create$4(ot,GetParsedTransactionRpcResult);if("error"in it)throw new SolanaJSONRPCError(it.error,"failed to get transactions");return it.result})}async getTransactions(j,$){const{commitment:_e,config:et}=extractCommitmentFromConfig($),tt=j.map(ot=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([ot],_e,void 0,et)}));return(await this._rpcBatchRequest(tt)).map(ot=>{const it=create$4(ot,GetTransactionRpcResult);if("error"in it)throw new SolanaJSONRPCError(it.error,"failed to get transactions");const st=it.result;return st&&{...st,transaction:{...st.transaction,message:versionedMessageFromResponse(st.version,st.transaction.message)}}})}async getConfirmedBlock(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$),et=await this._rpcRequest("getBlock",_e),tt=create$4(et,GetConfirmedBlockRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get confirmed block");const nt=tt.result;if(!nt)throw new Error("Confirmed block "+j+" not found");const rt={...nt,transactions:nt.transactions.map(({transaction:ot,meta:it})=>{const st=new Message(ot.message);return{meta:it,transaction:{...ot,message:st}}})};return{...rt,transactions:rt.transactions.map(({transaction:ot,meta:it})=>({meta:it,transaction:Transaction.populate(ot.message,ot.signatures)}))}}async getBlocks(j,$,_e){const et=this._buildArgsAtLeastConfirmed($!==void 0?[j,$]:[j],_e),tt=await this._rpcRequest("getBlocks",et),nt=create$4(tt,jsonRpcResult(array$1(number())));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get blocks");return nt.result}async getBlockSignatures(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$,void 0,{transactionDetails:"signatures",rewards:!1}),et=await this._rpcRequest("getBlock",_e),tt=create$4(et,GetBlockSignaturesRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get block");const nt=tt.result;if(!nt)throw new Error("Block "+j+" not found");return nt}async getConfirmedBlockSignatures(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$,void 0,{transactionDetails:"signatures",rewards:!1}),et=await this._rpcRequest("getBlock",_e),tt=create$4(et,GetBlockSignaturesRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get confirmed block");const nt=tt.result;if(!nt)throw new Error("Confirmed block "+j+" not found");return nt}async getConfirmedTransaction(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$),et=await this._rpcRequest("getTransaction",_e),tt=create$4(et,GetTransactionRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get transaction");const nt=tt.result;if(!nt)return nt;const rt=new Message(nt.transaction.message),ot=nt.transaction.signatures;return{...nt,transaction:Transaction.populate(rt,ot)}}async getParsedConfirmedTransaction(j,$){const _e=this._buildArgsAtLeastConfirmed([j],$,"jsonParsed"),et=await this._rpcRequest("getTransaction",_e),tt=create$4(et,GetParsedTransactionRpcResult);if("error"in tt)throw new SolanaJSONRPCError(tt.error,"failed to get confirmed transaction");return tt.result}async getParsedConfirmedTransactions(j,$){const _e=j.map(nt=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([nt],$,"jsonParsed")}));return(await this._rpcBatchRequest(_e)).map(nt=>{const rt=create$4(nt,GetParsedTransactionRpcResult);if("error"in rt)throw new SolanaJSONRPCError(rt.error,"failed to get confirmed transactions");return rt.result})}async getConfirmedSignaturesForAddress(j,$,_e){let et={},tt=await this.getFirstAvailableBlock();for(;!("until"in et)&&($--,!($<=0||$0&&(et.until=ot.signatures[ot.signatures.length-1].toString())}catch(ot){if(ot instanceof Error&&ot.message.includes("skipped"))continue;throw ot}let nt=await this.getSlot("finalized");for(;!("before"in et)&&(_e++,!(_e>nt));)try{const ot=await this.getConfirmedBlockSignatures(_e);ot.signatures.length>0&&(et.before=ot.signatures[ot.signatures.length-1].toString())}catch(ot){if(ot instanceof Error&&ot.message.includes("skipped"))continue;throw ot}return(await this.getConfirmedSignaturesForAddress2(j,et)).map(ot=>ot.signature)}async getConfirmedSignaturesForAddress2(j,$,_e){const et=this._buildArgsAtLeastConfirmed([j.toBase58()],_e,void 0,$),tt=await this._rpcRequest("getConfirmedSignaturesForAddress2",et),nt=create$4(tt,GetConfirmedSignaturesForAddress2RpcResult);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get confirmed signatures for address");return nt.result}async getSignaturesForAddress(j,$,_e){const et=this._buildArgsAtLeastConfirmed([j.toBase58()],_e,void 0,$),tt=await this._rpcRequest("getSignaturesForAddress",et),nt=create$4(tt,GetSignaturesForAddressRpcResult);if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get signatures for address");return nt.result}async getAddressLookupTable(j,$){const{context:_e,value:et}=await this.getAccountInfoAndContext(j,$);let tt=null;return et!==null&&(tt=new AddressLookupTableAccount({key:j,state:AddressLookupTableAccount.deserialize(et.data)})),{context:_e,value:tt}}async getNonceAndContext(j,$){const{context:_e,value:et}=await this.getAccountInfoAndContext(j,$);let tt=null;return et!==null&&(tt=NonceAccount.fromAccountData(et.data)),{context:_e,value:tt}}async getNonce(j,$){return await this.getNonceAndContext(j,$).then(_e=>_e.value).catch(_e=>{throw new Error("failed to get nonce for account "+j.toBase58()+": "+_e)})}async requestAirdrop(j,$){const _e=await this._rpcRequest("requestAirdrop",[j.toBase58(),$]),et=create$4(_e,RequestAirdropRpcResult);if("error"in et)throw new SolanaJSONRPCError(et.error,`airdrop to ${j.toBase58()} failed`);return et.result}async _blockhashWithExpiryBlockHeight(j){if(!j){for(;this._pollingBlockhash;)await sleep(100);const _e=Date.now()-this._blockhashInfo.lastFetch>=BLOCKHASH_CACHE_TIMEOUT_MS;if(this._blockhashInfo.latestBlockhash!==null&&!_e)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const j=Date.now(),$=this._blockhashInfo.latestBlockhash,_e=$?$.blockhash:null;for(let et=0;et<50;et++){const tt=await this.getLatestBlockhash("finalized");if(_e!==tt.blockhash)return this._blockhashInfo={latestBlockhash:tt,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},tt;await sleep(MS_PER_SLOT/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-j}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(j){const{commitment:$,config:_e}=extractCommitmentFromConfig(j),et=this._buildArgs([],$,"base64",_e),tt=await this._rpcRequest("getStakeMinimumDelegation",et),nt=create$4(tt,jsonRpcResultAndContext(number()));if("error"in nt)throw new SolanaJSONRPCError(nt.error,"failed to get stake minimum delegation");return nt.result}async simulateTransaction(j,$,_e){if("message"in j){const ft=j.serialize(),gt=buffer.Buffer.from(ft).toString("base64");if(Array.isArray($)||_e!==void 0)throw new Error("Invalid arguments");const yt=$||{};yt.encoding="base64","commitment"in yt||(yt.commitment=this.commitment),$&&typeof $=="object"&&"innerInstructions"in $&&(yt.innerInstructions=$.innerInstructions);const mt=[gt,yt],pt=await this._rpcRequest("simulateTransaction",mt),xt=create$4(pt,SimulatedTransactionResponseStruct);if("error"in xt)throw new Error("failed to simulate transaction: "+xt.error.message);return xt.result}let et;if(j instanceof Transaction){let dt=j;et=new Transaction,et.feePayer=dt.feePayer,et.instructions=j.instructions,et.nonceInfo=dt.nonceInfo,et.signatures=dt.signatures}else et=Transaction.populate(j),et._message=et._json=void 0;if($!==void 0&&!Array.isArray($))throw new Error("Invalid arguments");const tt=$;if(et.nonceInfo&&tt)et.sign(...tt);else{let dt=this._disableBlockhashCaching;for(;;){const ft=await this._blockhashWithExpiryBlockHeight(dt);if(et.lastValidBlockHeight=ft.lastValidBlockHeight,et.recentBlockhash=ft.blockhash,!tt)break;if(et.sign(...tt),!et.signature)throw new Error("!signature");const gt=et.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(gt)&&!this._blockhashInfo.transactionSignatures.includes(gt)){this._blockhashInfo.simulatedSignatures.push(gt);break}else dt=!0}}const nt=et._compile(),rt=nt.serialize(),it=et._serialize(rt).toString("base64"),st={encoding:"base64",commitment:this.commitment};if(_e){const dt=(Array.isArray(_e)?_e:nt.nonProgramIds()).map(ft=>ft.toBase58());st.accounts={encoding:"base64",addresses:dt}}tt&&(st.sigVerify=!0),$&&typeof $=="object"&&"innerInstructions"in $&&(st.innerInstructions=$.innerInstructions);const at=[it,st],ct=await this._rpcRequest("simulateTransaction",at),lt=create$4(ct,SimulatedTransactionResponseStruct);if("error"in lt){let dt;if("data"in lt.error&&(dt=lt.error.data.logs,dt&&Array.isArray(dt))){const ft=` + `,gt=ft+dt.join(ft);console.error(lt.error.message,gt)}throw new SendTransactionError({action:"simulate",signature:"",transactionMessage:lt.error.message,logs:dt})}return lt.result}async sendTransaction(j,$,_e){if("version"in j){if($&&Array.isArray($))throw new Error("Invalid arguments");const nt=j.serialize();return await this.sendRawTransaction(nt,$)}if($===void 0||!Array.isArray($))throw new Error("Invalid arguments");const et=$;if(j.nonceInfo)j.sign(...et);else{let nt=this._disableBlockhashCaching;for(;;){const rt=await this._blockhashWithExpiryBlockHeight(nt);if(j.lastValidBlockHeight=rt.lastValidBlockHeight,j.recentBlockhash=rt.blockhash,j.sign(...et),!j.signature)throw new Error("!signature");const ot=j.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(ot))nt=!0;else{this._blockhashInfo.transactionSignatures.push(ot);break}}}const tt=j.serialize();return await this.sendRawTransaction(tt,_e)}async sendRawTransaction(j,$){const _e=toBuffer(j).toString("base64");return await this.sendEncodedTransaction(_e,$)}async sendEncodedTransaction(j,$){const _e={encoding:"base64"},et=$&&$.skipPreflight,tt=et===!0?"processed":$&&$.preflightCommitment||this.commitment;$&&$.maxRetries!=null&&(_e.maxRetries=$.maxRetries),$&&$.minContextSlot!=null&&(_e.minContextSlot=$.minContextSlot),et&&(_e.skipPreflight=et),tt&&(_e.preflightCommitment=tt);const nt=[j,_e],rt=await this._rpcRequest("sendTransaction",nt),ot=create$4(rt,SendTransactionRpcResult);if("error"in ot){let it;throw"data"in ot.error&&(it=ot.error.data.logs),new SendTransactionError({action:et?"send":"simulate",signature:"",transactionMessage:ot.error.message,logs:it})}return ot.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(j){this._rpcWebSocketConnected=!1,console.error("ws error:",j.message)}_wsOnClose(j){if(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),j===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([$,_e])=>{this._setSubscription($,{..._e,state:"pending"})})}_setSubscription(j,$){var et;const _e=(et=this._subscriptionsByHash[j])==null?void 0:et.state;if(this._subscriptionsByHash[j]=$,_e!==$.state){const tt=this._subscriptionStateChangeCallbacksByHash[j];tt&&tt.forEach(nt=>{try{nt($.state)}catch{}})}}_onSubscriptionStateChange(j,$){var tt;const _e=this._subscriptionHashByClientSubscriptionId[j];if(_e==null)return()=>{};const et=(tt=this._subscriptionStateChangeCallbacksByHash)[_e]||(tt[_e]=new Set);return et.add($),()=>{et.delete($),et.size===0&&delete this._subscriptionStateChangeCallbacksByHash[_e]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){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(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const j=this._rpcWebSocketGeneration,$=()=>j===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async _e=>{const et=this._subscriptionsByHash[_e];if(et!==void 0)switch(et.state){case"pending":case"unsubscribed":if(et.callbacks.size===0){delete this._subscriptionsByHash[_e],et.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[et.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:tt,method:nt}=et;try{this._setSubscription(_e,{...et,state:"subscribing"});const rt=await this._rpcWebSocket.call(nt,tt);this._setSubscription(_e,{...et,serverSubscriptionId:rt,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[rt]=et.callbacks,await this._updateSubscriptions()}catch(rt){if(console.error(`Received ${rt instanceof Error?"":"JSON-RPC "}error calling \`${nt}\``,{args:tt,error:rt}),!$())return;this._setSubscription(_e,{...et,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":et.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:tt,unsubscribeMethod:nt}=et;if(this._subscriptionsAutoDisposedByRpc.has(tt))this._subscriptionsAutoDisposedByRpc.delete(tt);else{this._setSubscription(_e,{...et,state:"unsubscribing"}),this._setSubscription(_e,{...et,state:"unsubscribing"});try{await this._rpcWebSocket.call(nt,[tt])}catch(rt){if(rt instanceof Error&&console.error(`${nt} error:`,rt.message),!$())return;this._setSubscription(_e,{...et,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(_e,{...et,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(j,$){const _e=this._subscriptionCallbacksByServerSubscriptionId[j];_e!==void 0&&_e.forEach(et=>{try{et(...$)}catch(tt){console.error(tt)}})}_wsOnAccountNotification(j){const{result:$,subscription:_e}=create$4(j,AccountNotificationResult);this._handleServerNotification(_e,[$.value,$.context])}_makeSubscription(j,$){const _e=this._nextClientSubscriptionId++,et=fastStableStringify([j.method,$]),tt=this._subscriptionsByHash[et];return tt===void 0?this._subscriptionsByHash[et]={...j,args:$,callbacks:new Set([j.callback]),state:"pending"}:tt.callbacks.add(j.callback),this._subscriptionHashByClientSubscriptionId[_e]=et,this._subscriptionDisposeFunctionsByClientSubscriptionId[_e]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[_e],delete this._subscriptionHashByClientSubscriptionId[_e];const nt=this._subscriptionsByHash[et];assert(nt!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${_e}`),nt.callbacks.delete(j.callback),await this._updateSubscriptions()},this._updateSubscriptions(),_e}onAccountChange(j,$,_e){const{commitment:et,config:tt}=extractCommitmentFromConfig(_e),nt=this._buildArgs([j.toBase58()],et||this._commitment||"finalized","base64",tt);return this._makeSubscription({callback:$,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},nt)}async removeAccountChangeListener(j){await this._unsubscribeClientSubscription(j,"account change")}_wsOnProgramAccountNotification(j){const{result:$,subscription:_e}=create$4(j,ProgramAccountNotificationResult);this._handleServerNotification(_e,[{accountId:$.value.pubkey,accountInfo:$.value.account},$.context])}onProgramAccountChange(j,$,_e,et){const{commitment:tt,config:nt}=extractCommitmentFromConfig(_e),rt=this._buildArgs([j.toBase58()],tt||this._commitment||"finalized","base64",nt||(et?{filters:applyDefaultMemcmpEncodingToFilters(et)}:void 0));return this._makeSubscription({callback:$,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},rt)}async removeProgramAccountChangeListener(j){await this._unsubscribeClientSubscription(j,"program account change")}onLogs(j,$,_e){const et=this._buildArgs([typeof j=="object"?{mentions:[j.toString()]}:j],_e||this._commitment||"finalized");return this._makeSubscription({callback:$,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},et)}async removeOnLogsListener(j){await this._unsubscribeClientSubscription(j,"logs")}_wsOnLogsNotification(j){const{result:$,subscription:_e}=create$4(j,LogsNotificationResult);this._handleServerNotification(_e,[$.value,$.context])}_wsOnSlotNotification(j){const{result:$,subscription:_e}=create$4(j,SlotNotificationResult);this._handleServerNotification(_e,[$])}onSlotChange(j){return this._makeSubscription({callback:j,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(j){await this._unsubscribeClientSubscription(j,"slot change")}_wsOnSlotUpdatesNotification(j){const{result:$,subscription:_e}=create$4(j,SlotUpdateNotificationResult);this._handleServerNotification(_e,[$])}onSlotUpdate(j){return this._makeSubscription({callback:j,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(j){await this._unsubscribeClientSubscription(j,"slot update")}async _unsubscribeClientSubscription(j,$){const _e=this._subscriptionDisposeFunctionsByClientSubscriptionId[j];_e?await _e():console.warn(`Ignored unsubscribe request because an active subscription with id \`${j}\` for '${$}' events could not be found.`)}_buildArgs(j,$,_e,et){const tt=$||this._commitment;if(tt||_e||et){let nt={};_e&&(nt.encoding=_e),tt&&(nt.commitment=tt),et&&(nt=Object.assign(nt,et)),j.push(nt)}return j}_buildArgsAtLeastConfirmed(j,$,_e,et){const tt=$||this._commitment;if(tt&&!["confirmed","finalized"].includes(tt))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(j,$,_e,et)}_wsOnSignatureNotification(j){const{result:$,subscription:_e}=create$4(j,SignatureNotificationResult);$.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(_e),this._handleServerNotification(_e,$.value==="receivedSignature"?[{type:"received"},$.context]:[{type:"status",result:$.value},$.context])}onSignature(j,$,_e){const et=this._buildArgs([j],_e||this._commitment||"finalized"),tt=this._makeSubscription({callback:(nt,rt)=>{if(nt.type==="status"){$(nt.result,rt);try{this.removeSignatureListener(tt)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},et);return tt}onSignatureWithOptions(j,$,_e){const{commitment:et,...tt}={..._e,commitment:_e&&_e.commitment||this._commitment||"finalized"},nt=this._buildArgs([j],et,void 0,tt),rt=this._makeSubscription({callback:(ot,it)=>{$(ot,it);try{this.removeSignatureListener(rt)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},nt);return rt}async removeSignatureListener(j){await this._unsubscribeClientSubscription(j,"signature result")}_wsOnRootNotification(j){const{result:$,subscription:_e}=create$4(j,RootNotificationResult);this._handleServerNotification(_e,[$])}onRootChange(j){return this._makeSubscription({callback:j,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(j){await this._unsubscribeClientSubscription(j,"root change")}}class Keypair{constructor(j){this._keypair=void 0,this._keypair=j??generateKeypair()}static generate(){return new Keypair(generateKeypair())}static fromSecretKey(j,$){if(j.byteLength!==64)throw new Error("bad secret key size");const _e=j.slice(32,64);if(!$||!$.skipValidation){const et=j.slice(0,32),tt=getPublicKey(et);for(let nt=0;nt<32;nt++)if(_e[nt]!==tt[nt])throw new Error("provided secretKey is invalid")}return new Keypair({publicKey:_e,secretKey:j})}static fromSeed(j){const $=getPublicKey(j),_e=new Uint8Array(64);return _e.set(j),_e.set($,32),new Keypair({publicKey:$,secretKey:_e})}get publicKey(){return new PublicKey(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const LOOKUP_TABLE_INSTRUCTION_LAYOUTS=Object.freeze({CreateLookupTable:{index:0,layout:struct([u32("instruction"),u64("recentSlot"),u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:struct([u32("instruction")])},ExtendLookupTable:{index:2,layout:struct([u32("instruction"),u64(),seq(publicKey(),offset(u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:struct([u32("instruction")])},CloseLookupTable:{index:4,layout:struct([u32("instruction")])}});class AddressLookupTableInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u32("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(LOOKUP_TABLE_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return et}static decodeCreateLookupTable(j){this.checkProgramId(j.programId),this.checkKeysLength(j.keys,4);const{recentSlot:$}=decodeData$1(LOOKUP_TABLE_INSTRUCTION_LAYOUTS.CreateLookupTable,j.data);return{authority:j.keys[1].pubkey,payer:j.keys[2].pubkey,recentSlot:Number($)}}static decodeExtendLookupTable(j){if(this.checkProgramId(j.programId),j.keys.length<2)throw new Error(`invalid instruction; found ${j.keys.length} keys, expected at least 2`);const{addresses:$}=decodeData$1(LOOKUP_TABLE_INSTRUCTION_LAYOUTS.ExtendLookupTable,j.data);return{lookupTable:j.keys[0].pubkey,authority:j.keys[1].pubkey,payer:j.keys.length>2?j.keys[2].pubkey:void 0,addresses:$.map(_e=>new PublicKey(_e))}}static decodeCloseLookupTable(j){return this.checkProgramId(j.programId),this.checkKeysLength(j.keys,3),{lookupTable:j.keys[0].pubkey,authority:j.keys[1].pubkey,recipient:j.keys[2].pubkey}}static decodeFreezeLookupTable(j){return this.checkProgramId(j.programId),this.checkKeysLength(j.keys,2),{lookupTable:j.keys[0].pubkey,authority:j.keys[1].pubkey}}static decodeDeactivateLookupTable(j){return this.checkProgramId(j.programId),this.checkKeysLength(j.keys,2),{lookupTable:j.keys[0].pubkey,authority:j.keys[1].pubkey}}static checkProgramId(j){if(!j.equals(AddressLookupTableProgram.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(j,$){if(j.length<$)throw new Error(`invalid instruction; found ${j.length} keys, expected at least ${$}`)}}class AddressLookupTableProgram{constructor(){}static createLookupTable(j){const[$,_e]=PublicKey.findProgramAddressSync([j.authority.toBuffer(),toBufferLE_1(BigInt(j.recentSlot),8)],this.programId),et=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.CreateLookupTable,tt=encodeData(et,{recentSlot:BigInt(j.recentSlot),bumpSeed:_e}),nt=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1},{pubkey:j.payer,isSigner:!0,isWritable:!0},{pubkey:SystemProgram.programId,isSigner:!1,isWritable:!1}];return[new TransactionInstruction({programId:this.programId,keys:nt,data:tt}),$]}static freezeLookupTable(j){const $=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.FreezeLookupTable,_e=encodeData($),et=[{pubkey:j.lookupTable,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1}];return new TransactionInstruction({programId:this.programId,keys:et,data:_e})}static extendLookupTable(j){const $=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.ExtendLookupTable,_e=encodeData($,{addresses:j.addresses.map(tt=>tt.toBytes())}),et=[{pubkey:j.lookupTable,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1}];return j.payer&&et.push({pubkey:j.payer,isSigner:!0,isWritable:!0},{pubkey:SystemProgram.programId,isSigner:!1,isWritable:!1}),new TransactionInstruction({programId:this.programId,keys:et,data:_e})}static deactivateLookupTable(j){const $=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.DeactivateLookupTable,_e=encodeData($),et=[{pubkey:j.lookupTable,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1}];return new TransactionInstruction({programId:this.programId,keys:et,data:_e})}static closeLookupTable(j){const $=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.CloseLookupTable,_e=encodeData($),et=[{pubkey:j.lookupTable,isSigner:!1,isWritable:!0},{pubkey:j.authority,isSigner:!0,isWritable:!1},{pubkey:j.recipient,isSigner:!1,isWritable:!0}];return new TransactionInstruction({programId:this.programId,keys:et,data:_e})}}AddressLookupTableProgram.programId=new PublicKey("AddressLookupTab1e1111111111111111111111111");class ComputeBudgetInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u8("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return et}static decodeRequestUnits(j){this.checkProgramId(j.programId);const{units:$,additionalFee:_e}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits,j.data);return{units:$,additionalFee:_e}}static decodeRequestHeapFrame(j){this.checkProgramId(j.programId);const{bytes:$}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestHeapFrame,j.data);return{bytes:$}}static decodeSetComputeUnitLimit(j){this.checkProgramId(j.programId);const{units:$}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitLimit,j.data);return{units:$}}static decodeSetComputeUnitPrice(j){this.checkProgramId(j.programId);const{microLamports:$}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitPrice,j.data);return{microLamports:$}}static checkProgramId(j){if(!j.equals(ComputeBudgetProgram.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const COMPUTE_BUDGET_INSTRUCTION_LAYOUTS=Object.freeze({RequestUnits:{index:0,layout:struct([u8("instruction"),u32("units"),u32("additionalFee")])},RequestHeapFrame:{index:1,layout:struct([u8("instruction"),u32("bytes")])},SetComputeUnitLimit:{index:2,layout:struct([u8("instruction"),u32("units")])},SetComputeUnitPrice:{index:3,layout:struct([u8("instruction"),u64("microLamports")])}});class ComputeBudgetProgram{constructor(){}static requestUnits(j){const $=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits,_e=encodeData($,j);return new TransactionInstruction({keys:[],programId:this.programId,data:_e})}static requestHeapFrame(j){const $=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestHeapFrame,_e=encodeData($,j);return new TransactionInstruction({keys:[],programId:this.programId,data:_e})}static setComputeUnitLimit(j){const $=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitLimit,_e=encodeData($,j);return new TransactionInstruction({keys:[],programId:this.programId,data:_e})}static setComputeUnitPrice(j){const $=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitPrice,_e=encodeData($,{microLamports:BigInt(j.microLamports)});return new TransactionInstruction({keys:[],programId:this.programId,data:_e})}}ComputeBudgetProgram.programId=new PublicKey("ComputeBudget111111111111111111111111111111");const PRIVATE_KEY_BYTES$1=64,PUBLIC_KEY_BYTES$1=32,SIGNATURE_BYTES=64,ED25519_INSTRUCTION_LAYOUT=struct([u8("numSignatures"),u8("padding"),u16("signatureOffset"),u16("signatureInstructionIndex"),u16("publicKeyOffset"),u16("publicKeyInstructionIndex"),u16("messageDataOffset"),u16("messageDataSize"),u16("messageInstructionIndex")]);class Ed25519Program{constructor(){}static createInstructionWithPublicKey(j){const{publicKey:$,message:_e,signature:et,instructionIndex:tt}=j;assert($.length===PUBLIC_KEY_BYTES$1,`Public Key must be ${PUBLIC_KEY_BYTES$1} bytes but received ${$.length} bytes`),assert(et.length===SIGNATURE_BYTES,`Signature must be ${SIGNATURE_BYTES} bytes but received ${et.length} bytes`);const nt=ED25519_INSTRUCTION_LAYOUT.span,rt=nt+$.length,ot=rt+et.length,it=1,st=buffer.Buffer.alloc(ot+_e.length),at=tt??65535;return ED25519_INSTRUCTION_LAYOUT.encode({numSignatures:it,padding:0,signatureOffset:rt,signatureInstructionIndex:at,publicKeyOffset:nt,publicKeyInstructionIndex:at,messageDataOffset:ot,messageDataSize:_e.length,messageInstructionIndex:at},st),st.fill($,nt),st.fill(et,rt),st.fill(_e,ot),new TransactionInstruction({keys:[],programId:Ed25519Program.programId,data:st})}static createInstructionWithPrivateKey(j){const{privateKey:$,message:_e,instructionIndex:et}=j;assert($.length===PRIVATE_KEY_BYTES$1,`Private key must be ${PRIVATE_KEY_BYTES$1} bytes but received ${$.length} bytes`);try{const tt=Keypair.fromSecretKey($),nt=tt.publicKey.toBytes(),rt=sign(_e,tt.secretKey);return this.createInstructionWithPublicKey({publicKey:nt,message:_e,signature:rt,instructionIndex:et})}catch(tt){throw new Error(`Error creating instruction; ${tt}`)}}}Ed25519Program.programId=new PublicKey("Ed25519SigVerify111111111111111111111111111");const ecdsaSign=(s,j)=>{const $=secp256k1$1.sign(s,j);return[$.toCompactRawBytes(),$.recovery]};secp256k1$1.utils.isValidPrivateKey;const publicKeyCreate=secp256k1$1.getPublicKey,PRIVATE_KEY_BYTES=32,ETHEREUM_ADDRESS_BYTES=20,PUBLIC_KEY_BYTES=64,SIGNATURE_OFFSETS_SERIALIZED_SIZE=11,SECP256K1_INSTRUCTION_LAYOUT=struct([u8("numSignatures"),u16("signatureOffset"),u8("signatureInstructionIndex"),u16("ethAddressOffset"),u8("ethAddressInstructionIndex"),u16("messageDataOffset"),u16("messageDataSize"),u8("messageInstructionIndex"),blob(20,"ethAddress"),blob(64,"signature"),u8("recoveryId")]);class Secp256k1Program{constructor(){}static publicKeyToEthAddress(j){assert(j.length===PUBLIC_KEY_BYTES,`Public key must be ${PUBLIC_KEY_BYTES} bytes but received ${j.length} bytes`);try{return buffer.Buffer.from(keccak_256(toBuffer(j))).slice(-ETHEREUM_ADDRESS_BYTES)}catch($){throw new Error(`Error constructing Ethereum address: ${$}`)}}static createInstructionWithPublicKey(j){const{publicKey:$,message:_e,signature:et,recoveryId:tt,instructionIndex:nt}=j;return Secp256k1Program.createInstructionWithEthAddress({ethAddress:Secp256k1Program.publicKeyToEthAddress($),message:_e,signature:et,recoveryId:tt,instructionIndex:nt})}static createInstructionWithEthAddress(j){const{ethAddress:$,message:_e,signature:et,recoveryId:tt,instructionIndex:nt=0}=j;let rt;typeof $=="string"?$.startsWith("0x")?rt=buffer.Buffer.from($.substr(2),"hex"):rt=buffer.Buffer.from($,"hex"):rt=$,assert(rt.length===ETHEREUM_ADDRESS_BYTES,`Address must be ${ETHEREUM_ADDRESS_BYTES} bytes but received ${rt.length} bytes`);const ot=1+SIGNATURE_OFFSETS_SERIALIZED_SIZE,it=ot,st=ot+rt.length,at=st+et.length+1,ct=1,lt=buffer.Buffer.alloc(SECP256K1_INSTRUCTION_LAYOUT.span+_e.length);return SECP256K1_INSTRUCTION_LAYOUT.encode({numSignatures:ct,signatureOffset:st,signatureInstructionIndex:nt,ethAddressOffset:it,ethAddressInstructionIndex:nt,messageDataOffset:at,messageDataSize:_e.length,messageInstructionIndex:nt,signature:toBuffer(et),ethAddress:toBuffer(rt),recoveryId:tt},lt),lt.fill(toBuffer(_e),SECP256K1_INSTRUCTION_LAYOUT.span),new TransactionInstruction({keys:[],programId:Secp256k1Program.programId,data:lt})}static createInstructionWithPrivateKey(j){const{privateKey:$,message:_e,instructionIndex:et}=j;assert($.length===PRIVATE_KEY_BYTES,`Private key must be ${PRIVATE_KEY_BYTES} bytes but received ${$.length} bytes`);try{const tt=toBuffer($),nt=publicKeyCreate(tt,!1).slice(1),rt=buffer.Buffer.from(keccak_256(toBuffer(_e))),[ot,it]=ecdsaSign(rt,tt);return this.createInstructionWithPublicKey({publicKey:nt,message:_e,signature:ot,recoveryId:it,instructionIndex:et})}catch(tt){throw new Error(`Error creating instruction; ${tt}`)}}}Secp256k1Program.programId=new PublicKey("KeccakSecp256k11111111111111111111111111111");var _Lockup;const STAKE_CONFIG_ID=new PublicKey("StakeConfig11111111111111111111111111111111");class Authorized{constructor(j,$){this.staker=void 0,this.withdrawer=void 0,this.staker=j,this.withdrawer=$}}class Lockup{constructor(j,$,_e){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=j,this.epoch=$,this.custodian=_e}}_Lockup=Lockup;Lockup.default=new _Lockup(0,0,PublicKey.default);class StakeInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u32("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(STAKE_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Instruction type incorrect; not a StakeInstruction");return et}static decodeInitialize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{authorized:$,lockup:_e}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Initialize,j.data);return{stakePubkey:j.keys[0].pubkey,authorized:new Authorized(new PublicKey($.staker),new PublicKey($.withdrawer)),lockup:new Lockup(_e.unixTimestamp,_e.epoch,new PublicKey(_e.custodian))}}static decodeDelegate(j){return this.checkProgramId(j.programId),this.checkKeyLength(j.keys,6),decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Delegate,j.data),{stakePubkey:j.keys[0].pubkey,votePubkey:j.keys[1].pubkey,authorizedPubkey:j.keys[5].pubkey}}static decodeAuthorize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{newAuthorized:$,stakeAuthorizationType:_e}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Authorize,j.data),et={stakePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[2].pubkey,newAuthorizedPubkey:new PublicKey($),stakeAuthorizationType:{index:_e}};return j.keys.length>3&&(et.custodianPubkey=j.keys[3].pubkey),et}static decodeAuthorizeWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,2);const{newAuthorized:$,stakeAuthorizationType:_e,authoritySeed:et,authorityOwner:tt}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,j.data),nt={stakePubkey:j.keys[0].pubkey,authorityBase:j.keys[1].pubkey,authoritySeed:et,authorityOwner:new PublicKey(tt),newAuthorizedPubkey:new PublicKey($),stakeAuthorizationType:{index:_e}};return j.keys.length>3&&(nt.custodianPubkey=j.keys[3].pubkey),nt}static decodeSplit(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{lamports:$}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Split,j.data);return{stakePubkey:j.keys[0].pubkey,splitStakePubkey:j.keys[1].pubkey,authorizedPubkey:j.keys[2].pubkey,lamports:$}}static decodeMerge(j){return this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3),decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Merge,j.data),{stakePubkey:j.keys[0].pubkey,sourceStakePubKey:j.keys[1].pubkey,authorizedPubkey:j.keys[4].pubkey}}static decodeWithdraw(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,5);const{lamports:$}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Withdraw,j.data),_e={stakePubkey:j.keys[0].pubkey,toPubkey:j.keys[1].pubkey,authorizedPubkey:j.keys[4].pubkey,lamports:$};return j.keys.length>5&&(_e.custodianPubkey=j.keys[5].pubkey),_e}static decodeDeactivate(j){return this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3),decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Deactivate,j.data),{stakePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[2].pubkey}}static checkProgramId(j){if(!j.equals(StakeProgram.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(j,$){if(j.length<$)throw new Error(`invalid instruction; found ${j.length} keys, expected at least ${$}`)}}const STAKE_INSTRUCTION_LAYOUTS=Object.freeze({Initialize:{index:0,layout:struct([u32("instruction"),authorized(),lockup()])},Authorize:{index:1,layout:struct([u32("instruction"),publicKey("newAuthorized"),u32("stakeAuthorizationType")])},Delegate:{index:2,layout:struct([u32("instruction")])},Split:{index:3,layout:struct([u32("instruction"),ns64("lamports")])},Withdraw:{index:4,layout:struct([u32("instruction"),ns64("lamports")])},Deactivate:{index:5,layout:struct([u32("instruction")])},Merge:{index:7,layout:struct([u32("instruction")])},AuthorizeWithSeed:{index:8,layout:struct([u32("instruction"),publicKey("newAuthorized"),u32("stakeAuthorizationType"),rustString("authoritySeed"),publicKey("authorityOwner")])}}),StakeAuthorizationLayout=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class StakeProgram{constructor(){}static initialize(j){const{stakePubkey:$,authorized:_e,lockup:et}=j,tt=et||Lockup.default,nt=STAKE_INSTRUCTION_LAYOUTS.Initialize,rt=encodeData(nt,{authorized:{staker:toBuffer(_e.staker.toBuffer()),withdrawer:toBuffer(_e.withdrawer.toBuffer())},lockup:{unixTimestamp:tt.unixTimestamp,epoch:tt.epoch,custodian:toBuffer(tt.custodian.toBuffer())}}),ot={keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:this.programId,data:rt};return new TransactionInstruction(ot)}static createAccountWithSeed(j){const $=new Transaction;$.add(SystemProgram.createAccountWithSeed({fromPubkey:j.fromPubkey,newAccountPubkey:j.stakePubkey,basePubkey:j.basePubkey,seed:j.seed,lamports:j.lamports,space:this.space,programId:this.programId}));const{stakePubkey:_e,authorized:et,lockup:tt}=j;return $.add(this.initialize({stakePubkey:_e,authorized:et,lockup:tt}))}static createAccount(j){const $=new Transaction;$.add(SystemProgram.createAccount({fromPubkey:j.fromPubkey,newAccountPubkey:j.stakePubkey,lamports:j.lamports,space:this.space,programId:this.programId}));const{stakePubkey:_e,authorized:et,lockup:tt}=j;return $.add(this.initialize({stakePubkey:_e,authorized:et,lockup:tt}))}static delegate(j){const{stakePubkey:$,authorizedPubkey:_e,votePubkey:et}=j,tt=STAKE_INSTRUCTION_LAYOUTS.Delegate,nt=encodeData(tt);return new Transaction().add({keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:et,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_STAKE_HISTORY_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:STAKE_CONFIG_ID,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}],programId:this.programId,data:nt})}static authorize(j){const{stakePubkey:$,authorizedPubkey:_e,newAuthorizedPubkey:et,stakeAuthorizationType:tt,custodianPubkey:nt}=j,rt=STAKE_INSTRUCTION_LAYOUTS.Authorize,ot=encodeData(rt,{newAuthorized:toBuffer(et.toBuffer()),stakeAuthorizationType:tt.index}),it=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!0,isWritable:!1}];return nt&&it.push({pubkey:nt,isSigner:!0,isWritable:!1}),new Transaction().add({keys:it,programId:this.programId,data:ot})}static authorizeWithSeed(j){const{stakePubkey:$,authorityBase:_e,authoritySeed:et,authorityOwner:tt,newAuthorizedPubkey:nt,stakeAuthorizationType:rt,custodianPubkey:ot}=j,it=STAKE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,st=encodeData(it,{newAuthorized:toBuffer(nt.toBuffer()),stakeAuthorizationType:rt.index,authoritySeed:et,authorityOwner:toBuffer(tt.toBuffer())}),at=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!0,isWritable:!1},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1}];return ot&&at.push({pubkey:ot,isSigner:!0,isWritable:!1}),new Transaction().add({keys:at,programId:this.programId,data:st})}static splitInstruction(j){const{stakePubkey:$,authorizedPubkey:_e,splitStakePubkey:et,lamports:tt}=j,nt=STAKE_INSTRUCTION_LAYOUTS.Split,rt=encodeData(nt,{lamports:tt});return new TransactionInstruction({keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:et,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!0,isWritable:!1}],programId:this.programId,data:rt})}static split(j,$){const _e=new Transaction;return _e.add(SystemProgram.createAccount({fromPubkey:j.authorizedPubkey,newAccountPubkey:j.splitStakePubkey,lamports:$,space:this.space,programId:this.programId})),_e.add(this.splitInstruction(j))}static splitWithSeed(j,$){const{stakePubkey:_e,authorizedPubkey:et,splitStakePubkey:tt,basePubkey:nt,seed:rt,lamports:ot}=j,it=new Transaction;return it.add(SystemProgram.allocate({accountPubkey:tt,basePubkey:nt,seed:rt,space:this.space,programId:this.programId})),$&&$>0&&it.add(SystemProgram.transfer({fromPubkey:j.authorizedPubkey,toPubkey:tt,lamports:$})),it.add(this.splitInstruction({stakePubkey:_e,authorizedPubkey:et,splitStakePubkey:tt,lamports:ot}))}static merge(j){const{stakePubkey:$,sourceStakePubKey:_e,authorizedPubkey:et}=j,tt=STAKE_INSTRUCTION_LAYOUTS.Merge,nt=encodeData(tt);return new Transaction().add({keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_STAKE_HISTORY_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:et,isSigner:!0,isWritable:!1}],programId:this.programId,data:nt})}static withdraw(j){const{stakePubkey:$,authorizedPubkey:_e,toPubkey:et,lamports:tt,custodianPubkey:nt}=j,rt=STAKE_INSTRUCTION_LAYOUTS.Withdraw,ot=encodeData(rt,{lamports:tt}),it=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:et,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_STAKE_HISTORY_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}];return nt&&it.push({pubkey:nt,isSigner:!0,isWritable:!1}),new Transaction().add({keys:it,programId:this.programId,data:ot})}static deactivate(j){const{stakePubkey:$,authorizedPubkey:_e}=j,et=STAKE_INSTRUCTION_LAYOUTS.Deactivate,tt=encodeData(et);return new Transaction().add({keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}],programId:this.programId,data:tt})}}StakeProgram.programId=new PublicKey("Stake11111111111111111111111111111111111111");StakeProgram.space=200;class VoteInit{constructor(j,$,_e,et){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=j,this.authorizedVoter=$,this.authorizedWithdrawer=_e,this.commission=et}}class VoteInstruction{constructor(){}static decodeInstructionType(j){this.checkProgramId(j.programId);const _e=u32("instruction").decode(j.data);let et;for(const[tt,nt]of Object.entries(VOTE_INSTRUCTION_LAYOUTS))if(nt.index==_e){et=tt;break}if(!et)throw new Error("Instruction type incorrect; not a VoteInstruction");return et}static decodeInitializeAccount(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,4);const{voteInit:$}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.InitializeAccount,j.data);return{votePubkey:j.keys[0].pubkey,nodePubkey:j.keys[3].pubkey,voteInit:new VoteInit(new PublicKey($.nodePubkey),new PublicKey($.authorizedVoter),new PublicKey($.authorizedWithdrawer),$.commission)}}static decodeAuthorize(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{newAuthorized:$,voteAuthorizationType:_e}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.Authorize,j.data);return{votePubkey:j.keys[0].pubkey,authorizedPubkey:j.keys[2].pubkey,newAuthorizedPubkey:new PublicKey($),voteAuthorizationType:{index:_e}}}static decodeAuthorizeWithSeed(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:$,currentAuthorityDerivedKeySeed:_e,newAuthorized:et,voteAuthorizationType:tt}}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,j.data);return{currentAuthorityDerivedKeyBasePubkey:j.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new PublicKey($),currentAuthorityDerivedKeySeed:_e,newAuthorizedPubkey:new PublicKey(et),voteAuthorizationType:{index:tt},votePubkey:j.keys[0].pubkey}}static decodeWithdraw(j){this.checkProgramId(j.programId),this.checkKeyLength(j.keys,3);const{lamports:$}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.Withdraw,j.data);return{votePubkey:j.keys[0].pubkey,authorizedWithdrawerPubkey:j.keys[2].pubkey,lamports:$,toPubkey:j.keys[1].pubkey}}static checkProgramId(j){if(!j.equals(VoteProgram.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(j,$){if(j.length<$)throw new Error(`invalid instruction; found ${j.length} keys, expected at least ${$}`)}}const VOTE_INSTRUCTION_LAYOUTS=Object.freeze({InitializeAccount:{index:0,layout:struct([u32("instruction"),voteInit()])},Authorize:{index:1,layout:struct([u32("instruction"),publicKey("newAuthorized"),u32("voteAuthorizationType")])},Withdraw:{index:3,layout:struct([u32("instruction"),ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:struct([u32("instruction")])},AuthorizeWithSeed:{index:10,layout:struct([u32("instruction"),voteAuthorizeWithSeedArgs()])}}),VoteAuthorizationLayout=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class VoteProgram{constructor(){}static initializeAccount(j){const{votePubkey:$,nodePubkey:_e,voteInit:et}=j,tt=VOTE_INSTRUCTION_LAYOUTS.InitializeAccount,nt=encodeData(tt,{voteInit:{nodePubkey:toBuffer(et.nodePubkey.toBuffer()),authorizedVoter:toBuffer(et.authorizedVoter.toBuffer()),authorizedWithdrawer:toBuffer(et.authorizedWithdrawer.toBuffer()),commission:et.commission}}),rt={keys:[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}],programId:this.programId,data:nt};return new TransactionInstruction(rt)}static createAccount(j){const $=new Transaction;return $.add(SystemProgram.createAccount({fromPubkey:j.fromPubkey,newAccountPubkey:j.votePubkey,lamports:j.lamports,space:this.space,programId:this.programId})),$.add(this.initializeAccount({votePubkey:j.votePubkey,nodePubkey:j.voteInit.nodePubkey,voteInit:j.voteInit}))}static authorize(j){const{votePubkey:$,authorizedPubkey:_e,newAuthorizedPubkey:et,voteAuthorizationType:tt}=j,nt=VOTE_INSTRUCTION_LAYOUTS.Authorize,rt=encodeData(nt,{newAuthorized:toBuffer(et.toBuffer()),voteAuthorizationType:tt.index}),ot=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:ot,programId:this.programId,data:rt})}static authorizeWithSeed(j){const{currentAuthorityDerivedKeyBasePubkey:$,currentAuthorityDerivedKeyOwnerPubkey:_e,currentAuthorityDerivedKeySeed:et,newAuthorizedPubkey:tt,voteAuthorizationType:nt,votePubkey:rt}=j,ot=VOTE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,it=encodeData(ot,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:toBuffer(_e.toBuffer()),currentAuthorityDerivedKeySeed:et,newAuthorized:toBuffer(tt.toBuffer()),voteAuthorizationType:nt.index}}),st=[{pubkey:rt,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:$,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:st,programId:this.programId,data:it})}static withdraw(j){const{votePubkey:$,authorizedWithdrawerPubkey:_e,lamports:et,toPubkey:tt}=j,nt=VOTE_INSTRUCTION_LAYOUTS.Withdraw,rt=encodeData(nt,{lamports:et}),ot=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:tt,isSigner:!1,isWritable:!0},{pubkey:_e,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:ot,programId:this.programId,data:rt})}static safeWithdraw(j,$,_e){if(j.lamports>$-_e)throw new Error("Withdraw will leave vote account with insufficient funds.");return VoteProgram.withdraw(j)}static updateValidatorIdentity(j){const{votePubkey:$,authorizedWithdrawerPubkey:_e,nodePubkey:et}=j,tt=VOTE_INSTRUCTION_LAYOUTS.UpdateValidatorIdentity,nt=encodeData(tt),rt=[{pubkey:$,isSigner:!1,isWritable:!0},{pubkey:et,isSigner:!0,isWritable:!1},{pubkey:_e,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:rt,programId:this.programId,data:nt})}}VoteProgram.programId=new PublicKey("Vote111111111111111111111111111111111111111");VoteProgram.space=3762;const VALIDATOR_INFO_KEY=new PublicKey("Va1idator1nfo111111111111111111111111111111"),InfoString=type({name:string$1(),website:optional(string$1()),details:optional(string$1()),iconUrl:optional(string$1()),keybaseUsername:optional(string$1())});class ValidatorInfo{constructor(j,$){this.key=void 0,this.info=void 0,this.key=j,this.info=$}static fromConfigData(j){let $=[...j];if(decodeLength($)!==2)return null;const et=[];for(let tt=0;tt<2;tt++){const nt=new PublicKey(guardedSplice($,0,PUBLIC_KEY_LENGTH)),rt=guardedShift($)===1;et.push({publicKey:nt,isSigner:rt})}if(et[0].publicKey.equals(VALIDATOR_INFO_KEY)&&et[1].isSigner){const tt=rustString().decode(buffer.Buffer.from($)),nt=JSON.parse(tt);return assert$1(nt,InfoString),new ValidatorInfo(et[1].publicKey,nt)}return null}}const VOTE_PROGRAM_ID=new PublicKey("Vote111111111111111111111111111111111111111"),VoteAccountLayout=struct([publicKey("nodePubkey"),publicKey("authorizedWithdrawer"),u8("commission"),nu64(),seq(struct([nu64("slot"),u32("confirmationCount")]),offset(u32(),-8),"votes"),u8("rootSlotValid"),nu64("rootSlot"),nu64(),seq(struct([nu64("epoch"),publicKey("authorizedVoter")]),offset(u32(),-8),"authorizedVoters"),struct([seq(struct([publicKey("authorizedPubkey"),nu64("epochOfLastAuthorizedSwitch"),nu64("targetEpoch")]),32,"buf"),nu64("idx"),u8("isEmpty")],"priorVoters"),nu64(),seq(struct([nu64("epoch"),nu64("credits"),nu64("prevCredits")]),offset(u32(),-8),"epochCredits"),struct([nu64("slot"),nu64("timestamp")],"lastTimestamp")]);class VoteAccount{constructor(j){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=j.nodePubkey,this.authorizedWithdrawer=j.authorizedWithdrawer,this.commission=j.commission,this.rootSlot=j.rootSlot,this.votes=j.votes,this.authorizedVoters=j.authorizedVoters,this.priorVoters=j.priorVoters,this.epochCredits=j.epochCredits,this.lastTimestamp=j.lastTimestamp}static fromAccountData(j){const _e=VoteAccountLayout.decode(toBuffer(j),4);let et=_e.rootSlot;return _e.rootSlotValid||(et=null),new VoteAccount({nodePubkey:new PublicKey(_e.nodePubkey),authorizedWithdrawer:new PublicKey(_e.authorizedWithdrawer),commission:_e.commission,votes:_e.votes,rootSlot:et,authorizedVoters:_e.authorizedVoters.map(parseAuthorizedVoter),priorVoters:getPriorVoters(_e.priorVoters),epochCredits:_e.epochCredits,lastTimestamp:_e.lastTimestamp})}}function parseAuthorizedVoter({authorizedVoter:s,epoch:j}){return{epoch:j,authorizedVoter:new PublicKey(s)}}function parsePriorVoters({authorizedPubkey:s,epochOfLastAuthorizedSwitch:j,targetEpoch:$}){return{authorizedPubkey:new PublicKey(s),epochOfLastAuthorizedSwitch:j,targetEpoch:$}}function getPriorVoters({buf:s,idx:j,isEmpty:$}){return $?[]:[...s.slice(j+1).map(parsePriorVoters),...s.slice(0,j).map(parsePriorVoters)]}const endpoint={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/"}};function clusterApiUrl(s,j){const $=j===!1?"http":"https";if(!s)return endpoint[$].devnet;const _e=endpoint[$][s];if(!_e)throw new Error(`Unknown ${$} cluster: ${s}`);return _e}async function sendAndConfirmRawTransaction(s,j,$,_e){let et,tt;$&&Object.prototype.hasOwnProperty.call($,"lastValidBlockHeight")||$&&Object.prototype.hasOwnProperty.call($,"nonceValue")?(et=$,tt=_e):tt=$;const nt=tt&&{skipPreflight:tt.skipPreflight,preflightCommitment:tt.preflightCommitment||tt.commitment,minContextSlot:tt.minContextSlot},rt=await s.sendRawTransaction(j,nt),ot=tt&&tt.commitment,st=(await(et?s.confirmTransaction(et,ot):s.confirmTransaction(rt,ot))).value;if(st.err)throw rt!=null?new SendTransactionError({action:nt!=null&&nt.skipPreflight?"send":"simulate",signature:rt,transactionMessage:`Status: (${JSON.stringify(st)})`}):new Error(`Raw transaction ${rt} failed (${JSON.stringify(st)})`);return rt}const LAMPORTS_PER_SOL=1e9,index_browser_esm=Object.freeze(Object.defineProperty({__proto__:null,Account,AddressLookupTableAccount,AddressLookupTableInstruction,AddressLookupTableProgram,Authorized,BLOCKHASH_CACHE_TIMEOUT_MS,BPF_LOADER_DEPRECATED_PROGRAM_ID,BPF_LOADER_PROGRAM_ID,BpfLoader,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS,ComputeBudgetInstruction,ComputeBudgetProgram,Connection,Ed25519Program,Enum,EpochSchedule,FeeCalculatorLayout,Keypair,LAMPORTS_PER_SOL,LOOKUP_TABLE_INSTRUCTION_LAYOUTS,Loader,Lockup,MAX_SEED_LENGTH,Message,MessageAccountKeys,MessageV0,NONCE_ACCOUNT_LENGTH,NonceAccount,PACKET_DATA_SIZE,PUBLIC_KEY_LENGTH,PublicKey,SIGNATURE_LENGTH_IN_BYTES,SOLANA_SCHEMA,STAKE_CONFIG_ID,STAKE_INSTRUCTION_LAYOUTS,SYSTEM_INSTRUCTION_LAYOUTS,SYSVAR_CLOCK_PUBKEY,SYSVAR_EPOCH_SCHEDULE_PUBKEY,SYSVAR_INSTRUCTIONS_PUBKEY,SYSVAR_RECENT_BLOCKHASHES_PUBKEY,SYSVAR_RENT_PUBKEY,SYSVAR_REWARDS_PUBKEY,SYSVAR_SLOT_HASHES_PUBKEY,SYSVAR_SLOT_HISTORY_PUBKEY,SYSVAR_STAKE_HISTORY_PUBKEY,Secp256k1Program,SendTransactionError,SolanaJSONRPCError,SolanaJSONRPCErrorCode,StakeAuthorizationLayout,StakeInstruction,StakeProgram,Struct,SystemInstruction,SystemProgram,Transaction,TransactionExpiredBlockheightExceededError,TransactionExpiredNonceInvalidError,TransactionExpiredTimeoutError,TransactionInstruction,TransactionMessage,TransactionStatus,VALIDATOR_INFO_KEY,VERSION_PREFIX_MASK,VOTE_PROGRAM_ID,ValidatorInfo,VersionedMessage,VersionedTransaction,VoteAccount,VoteAuthorizationLayout,VoteInit,VoteInstruction,VoteProgram,clusterApiUrl,sendAndConfirmRawTransaction,sendAndConfirmTransaction},Symbol.toStringTag,{value:"Module"})),require$$0$5=getAugmentedNamespace(index_browser_esm);function bind(s,j){return function(){return s.apply(j,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(s=>j=>{const $=toString$1.call(j);return s[$]||(s[$]=$.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=s=>(s=s.toLowerCase(),j=>kindOf(j)===s),typeOfTest=s=>j=>typeof j===s,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(s){return s!==null&&!isUndefined(s)&&s.constructor!==null&&!isUndefined(s.constructor)&&isFunction$1(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(s){let j;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?j=ArrayBuffer.isView(s):j=s&&s.buffer&&isArrayBuffer(s.buffer),j}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=s=>s!==null&&typeof s=="object",isBoolean=s=>s===!0||s===!1,isPlainObject=s=>{if(kindOf(s)!=="object")return!1;const j=getPrototypeOf(s);return(j===null||j===Object.prototype||Object.getPrototypeOf(j)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=s=>isObject(s)&&isFunction$1(s.pipe),isFormData=s=>{let j;return s&&(typeof FormData=="function"&&s instanceof FormData||isFunction$1(s.append)&&((j=kindOf(s))==="formdata"||j==="object"&&isFunction$1(s.toString)&&s.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(s,j,{allOwnKeys:$=!1}={}){if(s===null||typeof s>"u")return;let _e,et;if(typeof s!="object"&&(s=[s]),isArray(s))for(_e=0,et=s.length;_e0;)if(et=$[_e],j===et.toLowerCase())return et;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=s=>!isUndefined(s)&&s!==_global;function merge(){const{caseless:s}=isContextDefined(this)&&this||{},j={},$=(_e,et)=>{const tt=s&&findKey(j,et)||et;isPlainObject(j[tt])&&isPlainObject(_e)?j[tt]=merge(j[tt],_e):isPlainObject(_e)?j[tt]=merge({},_e):isArray(_e)?j[tt]=_e.slice():j[tt]=_e};for(let _e=0,et=arguments.length;_e(forEach(j,(et,tt)=>{$&&isFunction$1(et)?s[tt]=bind(et,$):s[tt]=et},{allOwnKeys:_e}),s),stripBOM=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),inherits=(s,j,$,_e)=>{s.prototype=Object.create(j.prototype,_e),s.prototype.constructor=s,Object.defineProperty(s,"super",{value:j.prototype}),$&&Object.assign(s.prototype,$)},toFlatObject=(s,j,$,_e)=>{let et,tt,nt;const rt={};if(j=j||{},s==null)return j;do{for(et=Object.getOwnPropertyNames(s),tt=et.length;tt-- >0;)nt=et[tt],(!_e||_e(nt,s,j))&&!rt[nt]&&(j[nt]=s[nt],rt[nt]=!0);s=$!==!1&&getPrototypeOf(s)}while(s&&(!$||$(s,j))&&s!==Object.prototype);return j},endsWith=(s,j,$)=>{s=String(s),($===void 0||$>s.length)&&($=s.length),$-=j.length;const _e=s.indexOf(j,$);return _e!==-1&&_e===$},toArray=s=>{if(!s)return null;if(isArray(s))return s;let j=s.length;if(!isNumber(j))return null;const $=new Array(j);for(;j-- >0;)$[j]=s[j];return $},isTypedArray=(s=>j=>s&&j instanceof s)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(s,j)=>{const _e=(s&&s[Symbol.iterator]).call(s);let et;for(;(et=_e.next())&&!et.done;){const tt=et.value;j.call(s,tt[0],tt[1])}},matchAll=(s,j)=>{let $;const _e=[];for(;($=s.exec(j))!==null;)_e.push($);return _e},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=s=>s.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function($,_e,et){return _e.toUpperCase()+et}),hasOwnProperty=(({hasOwnProperty:s})=>(j,$)=>s.call(j,$))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(s,j)=>{const $=Object.getOwnPropertyDescriptors(s),_e={};forEach($,(et,tt)=>{let nt;(nt=j(et,tt,s))!==!1&&(_e[tt]=nt||et)}),Object.defineProperties(s,_e)},freezeMethods=s=>{reduceDescriptors(s,(j,$)=>{if(isFunction$1(s)&&["arguments","caller","callee"].indexOf($)!==-1)return!1;const _e=s[$];if(isFunction$1(_e)){if(j.enumerable=!1,"writable"in j){j.writable=!1;return}j.set||(j.set=()=>{throw Error("Can not rewrite read-only method '"+$+"'")})}})},toObjectSet=(s,j)=>{const $={},_e=et=>{et.forEach(tt=>{$[tt]=!0})};return isArray(s)?_e(s):_e(String(s).split(j)),$},noop$1=()=>{},toFiniteNumber=(s,j)=>s!=null&&Number.isFinite(s=+s)?s:j,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(s=16,j=ALPHABET.ALPHA_DIGIT)=>{let $="";const{length:_e}=j;for(;s--;)$+=j[Math.random()*_e|0];return $};function isSpecCompliantForm(s){return!!(s&&isFunction$1(s.append)&&s[Symbol.toStringTag]==="FormData"&&s[Symbol.iterator])}const toJSONObject=s=>{const j=new Array(10),$=(_e,et)=>{if(isObject(_e)){if(j.indexOf(_e)>=0)return;if(!("toJSON"in _e)){j[et]=_e;const tt=isArray(_e)?[]:{};return forEach(_e,(nt,rt)=>{const ot=$(nt,et+1);!isUndefined(ot)&&(tt[rt]=ot)}),j[et]=void 0,tt}}return _e};return $(s,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=s=>s&&(isObject(s)||isFunction$1(s))&&isFunction$1(s.then)&&isFunction$1(s.catch),_setImmediate=((s,j)=>s?setImmediate:j?(($,_e)=>(_global.addEventListener("message",({source:et,data:tt})=>{et===_global&&tt===$&&_e.length&&_e.shift()()},!1),et=>{_e.push(et),_global.postMessage($,"*")}))(`axios@${Math.random()}`,[]):$=>setTimeout($))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$5={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError$1(s,j,$,_e,et){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=s,this.name="AxiosError",j&&(this.code=j),$&&(this.config=$),_e&&(this.request=_e),et&&(this.response=et)}utils$5.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$5.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(s=>{descriptors[s]={value:s}});Object.defineProperties(AxiosError$1,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError$1.from=(s,j,$,_e,et,tt)=>{const nt=Object.create(prototype$1);return utils$5.toFlatObject(s,nt,function(ot){return ot!==Error.prototype},rt=>rt!=="isAxiosError"),AxiosError$1.call(nt,s.message,j,$,_e,et),nt.cause=s,nt.name=s.name,tt&&Object.assign(nt,tt),nt};const httpAdapter=null;function isVisitable(s){return utils$5.isPlainObject(s)||utils$5.isArray(s)}function removeBrackets(s){return utils$5.endsWith(s,"[]")?s.slice(0,-2):s}function renderKey(s,j,$){return s?s.concat(j).map(function(et,tt){return et=removeBrackets(et),!$&&tt?"["+et+"]":et}).join($?".":""):j}function isFlatArray(s){return utils$5.isArray(s)&&!s.some(isVisitable)}const predicates=utils$5.toFlatObject(utils$5,{},null,function(j){return/^is[A-Z]/.test(j)});function toFormData$1(s,j,$){if(!utils$5.isObject(s))throw new TypeError("target must be an object");j=j||new FormData,$=utils$5.toFlatObject($,{metaTokens:!0,dots:!1,indexes:!1},!1,function(ft,gt){return!utils$5.isUndefined(gt[ft])});const _e=$.metaTokens,et=$.visitor||st,tt=$.dots,nt=$.indexes,ot=($.Blob||typeof Blob<"u"&&Blob)&&utils$5.isSpecCompliantForm(j);if(!utils$5.isFunction(et))throw new TypeError("visitor must be a function");function it(dt){if(dt===null)return"";if(utils$5.isDate(dt))return dt.toISOString();if(!ot&&utils$5.isBlob(dt))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$5.isArrayBuffer(dt)||utils$5.isTypedArray(dt)?ot&&typeof Blob=="function"?new Blob([dt]):Buffer.from(dt):dt}function st(dt,ft,gt){let yt=dt;if(dt&&!gt&&typeof dt=="object"){if(utils$5.endsWith(ft,"{}"))ft=_e?ft:ft.slice(0,-2),dt=JSON.stringify(dt);else if(utils$5.isArray(dt)&&isFlatArray(dt)||(utils$5.isFileList(dt)||utils$5.endsWith(ft,"[]"))&&(yt=utils$5.toArray(dt)))return ft=removeBrackets(ft),yt.forEach(function(pt,xt){!(utils$5.isUndefined(pt)||pt===null)&&j.append(nt===!0?renderKey([ft],xt,tt):nt===null?ft:ft+"[]",it(pt))}),!1}return isVisitable(dt)?!0:(j.append(renderKey(gt,ft,tt),it(dt)),!1)}const at=[],ct=Object.assign(predicates,{defaultVisitor:st,convertValue:it,isVisitable});function lt(dt,ft){if(!utils$5.isUndefined(dt)){if(at.indexOf(dt)!==-1)throw Error("Circular reference detected in "+ft.join("."));at.push(dt),utils$5.forEach(dt,function(yt,mt){(!(utils$5.isUndefined(yt)||yt===null)&&et.call(j,yt,utils$5.isString(mt)?mt.trim():mt,ft,ct))===!0&<(yt,ft?ft.concat(mt):[mt])}),at.pop()}}if(!utils$5.isObject(s))throw new TypeError("data must be an object");return lt(s),j}function encode$1(s){const j={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g,function(_e){return j[_e]})}function AxiosURLSearchParams(s,j){this._pairs=[],s&&toFormData$1(s,this,j)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(j,$){this._pairs.push([j,$])};prototype.toString=function(j){const $=j?function(_e){return j.call(this,_e,encode$1)}:encode$1;return this._pairs.map(function(et){return $(et[0])+"="+$(et[1])},"").join("&")};function encode(s){return encodeURIComponent(s).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(s,j,$){if(!j)return s;const _e=$&&$.encode||encode,et=$&&$.serialize;let tt;if(et?tt=et(j,$):tt=utils$5.isURLSearchParams(j)?j.toString():new AxiosURLSearchParams(j,$).toString(_e),tt){const nt=s.indexOf("#");nt!==-1&&(s=s.slice(0,nt)),s+=(s.indexOf("?")===-1?"?":"&")+tt}return s}class InterceptorManager{constructor(){this.handlers=[]}use(j,$,_e){return this.handlers.push({fulfilled:j,rejected:$,synchronous:_e?_e.synchronous:!1,runWhen:_e?_e.runWhen:null}),this.handlers.length-1}eject(j){this.handlers[j]&&(this.handlers[j]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(j){utils$5.forEach(this.handlers,function(_e){_e!==null&&j(_e)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$2={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(s=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(s)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils$4=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,origin},Symbol.toStringTag,{value:"Module"})),platform$1={...utils$4,...platform$2};function toURLEncodedForm(s,j){return toFormData$1(s,new platform$1.classes.URLSearchParams,Object.assign({visitor:function($,_e,et,tt){return platform$1.isNode&&utils$5.isBuffer($)?(this.append(_e,$.toString("base64")),!1):tt.defaultVisitor.apply(this,arguments)}},j))}function parsePropPath(s){return utils$5.matchAll(/\w+|\[(\w*)]/g,s).map(j=>j[0]==="[]"?"":j[1]||j[0])}function arrayToObject(s){const j={},$=Object.keys(s);let _e;const et=$.length;let tt;for(_e=0;_e=$.length;return nt=!nt&&utils$5.isArray(et)?et.length:nt,ot?(utils$5.hasOwnProp(et,nt)?et[nt]=[et[nt],_e]:et[nt]=_e,!rt):((!et[nt]||!utils$5.isObject(et[nt]))&&(et[nt]=[]),j($,_e,et[nt],tt)&&utils$5.isArray(et[nt])&&(et[nt]=arrayToObject(et[nt])),!rt)}if(utils$5.isFormData(s)&&utils$5.isFunction(s.entries)){const $={};return utils$5.forEachEntry(s,(_e,et)=>{j(parsePropPath(_e),et,$,0)}),$}return null}function stringifySafely(s,j,$){if(utils$5.isString(s))try{return(j||JSON.parse)(s),utils$5.trim(s)}catch(_e){if(_e.name!=="SyntaxError")throw _e}return($||JSON.stringify)(s)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(j,$){const _e=$.getContentType()||"",et=_e.indexOf("application/json")>-1,tt=utils$5.isObject(j);if(tt&&utils$5.isHTMLForm(j)&&(j=new FormData(j)),utils$5.isFormData(j))return et?JSON.stringify(formDataToJSON(j)):j;if(utils$5.isArrayBuffer(j)||utils$5.isBuffer(j)||utils$5.isStream(j)||utils$5.isFile(j)||utils$5.isBlob(j)||utils$5.isReadableStream(j))return j;if(utils$5.isArrayBufferView(j))return j.buffer;if(utils$5.isURLSearchParams(j))return $.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),j.toString();let rt;if(tt){if(_e.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(j,this.formSerializer).toString();if((rt=utils$5.isFileList(j))||_e.indexOf("multipart/form-data")>-1){const ot=this.env&&this.env.FormData;return toFormData$1(rt?{"files[]":j}:j,ot&&new ot,this.formSerializer)}}return tt||et?($.setContentType("application/json",!1),stringifySafely(j)):j}],transformResponse:[function(j){const $=this.transitional||defaults.transitional,_e=$&&$.forcedJSONParsing,et=this.responseType==="json";if(utils$5.isResponse(j)||utils$5.isReadableStream(j))return j;if(j&&utils$5.isString(j)&&(_e&&!this.responseType||et)){const nt=!($&&$.silentJSONParsing)&&et;try{return JSON.parse(j)}catch(rt){if(nt)throw rt.name==="SyntaxError"?AxiosError$1.from(rt,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):rt}}return j}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$1.classes.FormData,Blob:platform$1.classes.Blob},validateStatus:function(j){return j>=200&&j<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$5.forEach(["delete","get","head","post","put","patch"],s=>{defaults.headers[s]={}});const ignoreDuplicateOf=utils$5.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=s=>{const j={};let $,_e,et;return s&&s.split(` +`).forEach(function(nt){et=nt.indexOf(":"),$=nt.substring(0,et).trim().toLowerCase(),_e=nt.substring(et+1).trim(),!(!$||j[$]&&ignoreDuplicateOf[$])&&($==="set-cookie"?j[$]?j[$].push(_e):j[$]=[_e]:j[$]=j[$]?j[$]+", "+_e:_e)}),j},$internals=Symbol("internals");function normalizeHeader(s){return s&&String(s).trim().toLowerCase()}function normalizeValue(s){return s===!1||s==null?s:utils$5.isArray(s)?s.map(normalizeValue):String(s)}function parseTokens(s){const j=Object.create(null),$=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let _e;for(;_e=$.exec(s);)j[_e[1]]=_e[2];return j}const isValidHeaderName=s=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());function matchHeaderValue(s,j,$,_e,et){if(utils$5.isFunction(_e))return _e.call(this,j,$);if(et&&(j=$),!!utils$5.isString(j)){if(utils$5.isString(_e))return j.indexOf(_e)!==-1;if(utils$5.isRegExp(_e))return _e.test(j)}}function formatHeader(s){return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(j,$,_e)=>$.toUpperCase()+_e)}function buildAccessors(s,j){const $=utils$5.toCamelCase(" "+j);["get","set","has"].forEach(_e=>{Object.defineProperty(s,_e+$,{value:function(et,tt,nt){return this[_e].call(this,j,et,tt,nt)},configurable:!0})})}let AxiosHeaders$1=class{constructor(j){j&&this.set(j)}set(j,$,_e){const et=this;function tt(rt,ot,it){const st=normalizeHeader(ot);if(!st)throw new Error("header name must be a non-empty string");const at=utils$5.findKey(et,st);(!at||et[at]===void 0||it===!0||it===void 0&&et[at]!==!1)&&(et[at||ot]=normalizeValue(rt))}const nt=(rt,ot)=>utils$5.forEach(rt,(it,st)=>tt(it,st,ot));if(utils$5.isPlainObject(j)||j instanceof this.constructor)nt(j,$);else if(utils$5.isString(j)&&(j=j.trim())&&!isValidHeaderName(j))nt(parseHeaders(j),$);else if(utils$5.isHeaders(j))for(const[rt,ot]of j.entries())tt(ot,rt,_e);else j!=null&&tt($,j,_e);return this}get(j,$){if(j=normalizeHeader(j),j){const _e=utils$5.findKey(this,j);if(_e){const et=this[_e];if(!$)return et;if($===!0)return parseTokens(et);if(utils$5.isFunction($))return $.call(this,et,_e);if(utils$5.isRegExp($))return $.exec(et);throw new TypeError("parser must be boolean|regexp|function")}}}has(j,$){if(j=normalizeHeader(j),j){const _e=utils$5.findKey(this,j);return!!(_e&&this[_e]!==void 0&&(!$||matchHeaderValue(this,this[_e],_e,$)))}return!1}delete(j,$){const _e=this;let et=!1;function tt(nt){if(nt=normalizeHeader(nt),nt){const rt=utils$5.findKey(_e,nt);rt&&(!$||matchHeaderValue(_e,_e[rt],rt,$))&&(delete _e[rt],et=!0)}}return utils$5.isArray(j)?j.forEach(tt):tt(j),et}clear(j){const $=Object.keys(this);let _e=$.length,et=!1;for(;_e--;){const tt=$[_e];(!j||matchHeaderValue(this,this[tt],tt,j,!0))&&(delete this[tt],et=!0)}return et}normalize(j){const $=this,_e={};return utils$5.forEach(this,(et,tt)=>{const nt=utils$5.findKey(_e,tt);if(nt){$[nt]=normalizeValue(et),delete $[tt];return}const rt=j?formatHeader(tt):String(tt).trim();rt!==tt&&delete $[tt],$[rt]=normalizeValue(et),_e[rt]=!0}),this}concat(...j){return this.constructor.concat(this,...j)}toJSON(j){const $=Object.create(null);return utils$5.forEach(this,(_e,et)=>{_e!=null&&_e!==!1&&($[et]=j&&utils$5.isArray(_e)?_e.join(", "):_e)}),$}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([j,$])=>j+": "+$).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(j){return j instanceof this?j:new this(j)}static concat(j,...$){const _e=new this(j);return $.forEach(et=>_e.set(et)),_e}static accessor(j){const _e=(this[$internals]=this[$internals]={accessors:{}}).accessors,et=this.prototype;function tt(nt){const rt=normalizeHeader(nt);_e[rt]||(buildAccessors(et,nt),_e[rt]=!0)}return utils$5.isArray(j)?j.forEach(tt):tt(j),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$5.reduceDescriptors(AxiosHeaders$1.prototype,({value:s},j)=>{let $=j[0].toUpperCase()+j.slice(1);return{get:()=>s,set(_e){this[$]=_e}}});utils$5.freezeMethods(AxiosHeaders$1);function transformData(s,j){const $=this||defaults,_e=j||$,et=AxiosHeaders$1.from(_e.headers);let tt=_e.data;return utils$5.forEach(s,function(rt){tt=rt.call($,tt,et.normalize(),j?j.status:void 0)}),et.normalize(),tt}function isCancel$1(s){return!!(s&&s.__CANCEL__)}function CanceledError$1(s,j,$){AxiosError$1.call(this,s??"canceled",AxiosError$1.ERR_CANCELED,j,$),this.name="CanceledError"}utils$5.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(s,j,$){const _e=$.config.validateStatus;!$.status||!_e||_e($.status)?s($):j(new AxiosError$1("Request failed with status code "+$.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor($.status/100)-4],$.config,$.request,$))}function parseProtocol(s){const j=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return j&&j[1]||""}function speedometer(s,j){s=s||10;const $=new Array(s),_e=new Array(s);let et=0,tt=0,nt;return j=j!==void 0?j:1e3,function(ot){const it=Date.now(),st=_e[tt];nt||(nt=it),$[et]=ot,_e[et]=it;let at=tt,ct=0;for(;at!==et;)ct+=$[at++],at=at%s;if(et=(et+1)%s,et===tt&&(tt=(tt+1)%s),it-nt{$=st,et=null,tt&&(clearTimeout(tt),tt=null),s.apply(null,it)};return[(...it)=>{const st=Date.now(),at=st-$;at>=_e?nt(it,st):(et=it,tt||(tt=setTimeout(()=>{tt=null,nt(et)},_e-at)))},()=>et&&nt(et)]}const progressEventReducer=(s,j,$=3)=>{let _e=0;const et=speedometer(50,250);return throttle(tt=>{const nt=tt.loaded,rt=tt.lengthComputable?tt.total:void 0,ot=nt-_e,it=et(ot),st=nt<=rt;_e=nt;const at={loaded:nt,total:rt,progress:rt?nt/rt:void 0,bytes:ot,rate:it||void 0,estimated:it&&rt&&st?(rt-nt)/it:void 0,event:tt,lengthComputable:rt!=null,[j?"download":"upload"]:!0};s(at)},$)},progressEventDecorator=(s,j)=>{const $=s!=null;return[_e=>j[0]({lengthComputable:$,total:s,loaded:_e}),j[1]]},asyncDecorator=s=>(...j)=>utils$5.asap(()=>s(...j)),isURLSameOrigin=platform$1.hasStandardBrowserEnv?function(){const j=/(msie|trident)/i.test(navigator.userAgent),$=document.createElement("a");let _e;function et(tt){let nt=tt;return j&&($.setAttribute("href",nt),nt=$.href),$.setAttribute("href",nt),{href:$.href,protocol:$.protocol?$.protocol.replace(/:$/,""):"",host:$.host,search:$.search?$.search.replace(/^\?/,""):"",hash:$.hash?$.hash.replace(/^#/,""):"",hostname:$.hostname,port:$.port,pathname:$.pathname.charAt(0)==="/"?$.pathname:"/"+$.pathname}}return _e=et(window.location.href),function(nt){const rt=utils$5.isString(nt)?et(nt):nt;return rt.protocol===_e.protocol&&rt.host===_e.host}}():function(){return function(){return!0}}(),cookies=platform$1.hasStandardBrowserEnv?{write(s,j,$,_e,et,tt){const nt=[s+"="+encodeURIComponent(j)];utils$5.isNumber($)&&nt.push("expires="+new Date($).toGMTString()),utils$5.isString(_e)&&nt.push("path="+_e),utils$5.isString(et)&&nt.push("domain="+et),tt===!0&&nt.push("secure"),document.cookie=nt.join("; ")},read(s){const j=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return j?decodeURIComponent(j[3]):null},remove(s){this.write(s,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function combineURLs(s,j){return j?s.replace(/\/?\/$/,"")+"/"+j.replace(/^\/+/,""):s}function buildFullPath(s,j){return s&&!isAbsoluteURL(j)?combineURLs(s,j):j}const headersToObject=s=>s instanceof AxiosHeaders$1?{...s}:s;function mergeConfig$1(s,j){j=j||{};const $={};function _e(it,st,at){return utils$5.isPlainObject(it)&&utils$5.isPlainObject(st)?utils$5.merge.call({caseless:at},it,st):utils$5.isPlainObject(st)?utils$5.merge({},st):utils$5.isArray(st)?st.slice():st}function et(it,st,at){if(utils$5.isUndefined(st)){if(!utils$5.isUndefined(it))return _e(void 0,it,at)}else return _e(it,st,at)}function tt(it,st){if(!utils$5.isUndefined(st))return _e(void 0,st)}function nt(it,st){if(utils$5.isUndefined(st)){if(!utils$5.isUndefined(it))return _e(void 0,it)}else return _e(void 0,st)}function rt(it,st,at){if(at in j)return _e(it,st);if(at in s)return _e(void 0,it)}const ot={url:tt,method:tt,data:tt,baseURL:nt,transformRequest:nt,transformResponse:nt,paramsSerializer:nt,timeout:nt,timeoutMessage:nt,withCredentials:nt,withXSRFToken:nt,adapter:nt,responseType:nt,xsrfCookieName:nt,xsrfHeaderName:nt,onUploadProgress:nt,onDownloadProgress:nt,decompress:nt,maxContentLength:nt,maxBodyLength:nt,beforeRedirect:nt,transport:nt,httpAgent:nt,httpsAgent:nt,cancelToken:nt,socketPath:nt,responseEncoding:nt,validateStatus:rt,headers:(it,st)=>et(headersToObject(it),headersToObject(st),!0)};return utils$5.forEach(Object.keys(Object.assign({},s,j)),function(st){const at=ot[st]||et,ct=at(s[st],j[st],st);utils$5.isUndefined(ct)&&at!==rt||($[st]=ct)}),$}const resolveConfig=s=>{const j=mergeConfig$1({},s);let{data:$,withXSRFToken:_e,xsrfHeaderName:et,xsrfCookieName:tt,headers:nt,auth:rt}=j;j.headers=nt=AxiosHeaders$1.from(nt),j.url=buildURL(buildFullPath(j.baseURL,j.url),s.params,s.paramsSerializer),rt&&nt.set("Authorization","Basic "+btoa((rt.username||"")+":"+(rt.password?unescape(encodeURIComponent(rt.password)):"")));let ot;if(utils$5.isFormData($)){if(platform$1.hasStandardBrowserEnv||platform$1.hasStandardBrowserWebWorkerEnv)nt.setContentType(void 0);else if((ot=nt.getContentType())!==!1){const[it,...st]=ot?ot.split(";").map(at=>at.trim()).filter(Boolean):[];nt.setContentType([it||"multipart/form-data",...st].join("; "))}}if(platform$1.hasStandardBrowserEnv&&(_e&&utils$5.isFunction(_e)&&(_e=_e(j)),_e||_e!==!1&&isURLSameOrigin(j.url))){const it=et&&tt&&cookies.read(tt);it&&nt.set(et,it)}return j},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(s){return new Promise(function($,_e){const et=resolveConfig(s);let tt=et.data;const nt=AxiosHeaders$1.from(et.headers).normalize();let{responseType:rt,onUploadProgress:ot,onDownloadProgress:it}=et,st,at,ct,lt,dt;function ft(){lt&<(),dt&&dt(),et.cancelToken&&et.cancelToken.unsubscribe(st),et.signal&&et.signal.removeEventListener("abort",st)}let gt=new XMLHttpRequest;gt.open(et.method.toUpperCase(),et.url,!0),gt.timeout=et.timeout;function yt(){if(!gt)return;const pt=AxiosHeaders$1.from("getAllResponseHeaders"in gt&>.getAllResponseHeaders()),Ct={data:!rt||rt==="text"||rt==="json"?gt.responseText:gt.response,status:gt.status,statusText:gt.statusText,headers:pt,config:s,request:gt};settle(function(wt){$(wt),ft()},function(wt){_e(wt),ft()},Ct),gt=null}"onloadend"in gt?gt.onloadend=yt:gt.onreadystatechange=function(){!gt||gt.readyState!==4||gt.status===0&&!(gt.responseURL&>.responseURL.indexOf("file:")===0)||setTimeout(yt)},gt.onabort=function(){gt&&(_e(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,s,gt)),gt=null)},gt.onerror=function(){_e(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,s,gt)),gt=null},gt.ontimeout=function(){let xt=et.timeout?"timeout of "+et.timeout+"ms exceeded":"timeout exceeded";const Ct=et.transitional||transitionalDefaults;et.timeoutErrorMessage&&(xt=et.timeoutErrorMessage),_e(new AxiosError$1(xt,Ct.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,s,gt)),gt=null},tt===void 0&&nt.setContentType(null),"setRequestHeader"in gt&&utils$5.forEach(nt.toJSON(),function(xt,Ct){gt.setRequestHeader(Ct,xt)}),utils$5.isUndefined(et.withCredentials)||(gt.withCredentials=!!et.withCredentials),rt&&rt!=="json"&&(gt.responseType=et.responseType),it&&([ct,dt]=progressEventReducer(it,!0),gt.addEventListener("progress",ct)),ot&>.upload&&([at,lt]=progressEventReducer(ot),gt.upload.addEventListener("progress",at),gt.upload.addEventListener("loadend",lt)),(et.cancelToken||et.signal)&&(st=pt=>{gt&&(_e(!pt||pt.type?new CanceledError$1(null,s,gt):pt),gt.abort(),gt=null)},et.cancelToken&&et.cancelToken.subscribe(st),et.signal&&(et.signal.aborted?st():et.signal.addEventListener("abort",st)));const mt=parseProtocol(et.url);if(mt&&platform$1.protocols.indexOf(mt)===-1){_e(new AxiosError$1("Unsupported protocol "+mt+":",AxiosError$1.ERR_BAD_REQUEST,s));return}gt.send(tt||null)})},composeSignals=(s,j)=>{let $=new AbortController,_e;const et=function(ot){if(!_e){_e=!0,nt();const it=ot instanceof Error?ot:this.reason;$.abort(it instanceof AxiosError$1?it:new CanceledError$1(it instanceof Error?it.message:it))}};let tt=j&&setTimeout(()=>{et(new AxiosError$1(`timeout ${j} of ms exceeded`,AxiosError$1.ETIMEDOUT))},j);const nt=()=>{s&&(tt&&clearTimeout(tt),tt=null,s.forEach(ot=>{ot&&(ot.removeEventListener?ot.removeEventListener("abort",et):ot.unsubscribe(et))}),s=null)};s.forEach(ot=>ot&&ot.addEventListener&&ot.addEventListener("abort",et));const{signal:rt}=$;return rt.unsubscribe=nt,[rt,()=>{tt&&clearTimeout(tt),tt=null}]},streamChunk=function*(s,j){let $=s.byteLength;if(!j||${const tt=readBytes(s,j,et);let nt=0,rt,ot=it=>{rt||(rt=!0,_e&&_e(it))};return new ReadableStream({async pull(it){try{const{done:st,value:at}=await tt.next();if(st){ot(),it.close();return}let ct=at.byteLength;if($){let lt=nt+=ct;$(lt)}it.enqueue(new Uint8Array(at))}catch(st){throw ot(st),st}},cancel(it){return ot(it),tt.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(s=>j=>s.encode(j))(new TextEncoder):async s=>new Uint8Array(await new Response(s).arrayBuffer())),test=(s,...j)=>{try{return!!s(...j)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let s=!1;const j=new Request(platform$1.origin,{body:new ReadableStream,method:"POST",get duplex(){return s=!0,"half"}}).headers.has("Content-Type");return s&&!j}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$5.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(s=>s.body)};isFetchSupported&&(s=>{["text","arrayBuffer","blob","formData","stream"].forEach(j=>{!resolvers[j]&&(resolvers[j]=utils$5.isFunction(s[j])?$=>$[j]():($,_e)=>{throw new AxiosError$1(`Response type '${j}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,_e)})})})(new Response);const getBodyLength=async s=>{if(s==null)return 0;if(utils$5.isBlob(s))return s.size;if(utils$5.isSpecCompliantForm(s))return(await new Request(s).arrayBuffer()).byteLength;if(utils$5.isArrayBufferView(s)||utils$5.isArrayBuffer(s))return s.byteLength;if(utils$5.isURLSearchParams(s)&&(s=s+""),utils$5.isString(s))return(await encodeText(s)).byteLength},resolveBodyLength=async(s,j)=>{const $=utils$5.toFiniteNumber(s.getContentLength());return $??getBodyLength(j)},fetchAdapter=isFetchSupported&&(async s=>{let{url:j,method:$,data:_e,signal:et,cancelToken:tt,timeout:nt,onDownloadProgress:rt,onUploadProgress:ot,responseType:it,headers:st,withCredentials:at="same-origin",fetchOptions:ct}=resolveConfig(s);it=it?(it+"").toLowerCase():"text";let[lt,dt]=et||tt||nt?composeSignals([et,tt],nt):[],ft,gt;const yt=()=>{!ft&&setTimeout(()=>{lt&<.unsubscribe()}),ft=!0};let mt;try{if(ot&&supportsRequestStream&&$!=="get"&&$!=="head"&&(mt=await resolveBodyLength(st,_e))!==0){let Dt=new Request(j,{method:"POST",body:_e,duplex:"half"}),wt;if(utils$5.isFormData(_e)&&(wt=Dt.headers.get("content-type"))&&st.setContentType(wt),Dt.body){const[kt,zt]=progressEventDecorator(mt,progressEventReducer(asyncDecorator(ot)));_e=trackStream(Dt.body,DEFAULT_CHUNK_SIZE,kt,zt,encodeText)}}utils$5.isString(at)||(at=at?"include":"omit"),gt=new Request(j,{...ct,signal:lt,method:$.toUpperCase(),headers:st.normalize().toJSON(),body:_e,duplex:"half",credentials:at});let pt=await fetch(gt);const xt=supportsResponseStream&&(it==="stream"||it==="response");if(supportsResponseStream&&(rt||xt)){const Dt={};["status","statusText","headers"].forEach(Ot=>{Dt[Ot]=pt[Ot]});const wt=utils$5.toFiniteNumber(pt.headers.get("content-length")),[kt,zt]=rt&&progressEventDecorator(wt,progressEventReducer(asyncDecorator(rt),!0))||[];pt=new Response(trackStream(pt.body,DEFAULT_CHUNK_SIZE,kt,()=>{zt&&zt(),xt&&yt()},encodeText),Dt)}it=it||"text";let Ct=await resolvers[utils$5.findKey(resolvers,it)||"text"](pt,s);return!xt&&yt(),dt&&dt(),await new Promise((Dt,wt)=>{settle(Dt,wt,{data:Ct,headers:AxiosHeaders$1.from(pt.headers),status:pt.status,statusText:pt.statusText,config:s,request:gt})})}catch(pt){throw yt(),pt&&pt.name==="TypeError"&&/fetch/i.test(pt.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,s,gt),{cause:pt.cause||pt}):AxiosError$1.from(pt,pt&&pt.code,s,gt)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$5.forEach(knownAdapters,(s,j)=>{if(s){try{Object.defineProperty(s,"name",{value:j})}catch{}Object.defineProperty(s,"adapterName",{value:j})}});const renderReason=s=>`- ${s}`,isResolvedHandle=s=>utils$5.isFunction(s)||s===null||s===!1,adapters={getAdapter:s=>{s=utils$5.isArray(s)?s:[s];const{length:j}=s;let $,_e;const et={};for(let tt=0;tt`adapter ${rt} `+(ot===!1?"is not supported by the environment":"is not available in the build"));let nt=j?tt.length>1?`since : `+tt.map(renderReason).join(` `):" "+renderReason(tt[0]):"as no adapter specified";throw new AxiosError$1("There is no suitable adapter to dispatch the request "+nt,"ERR_NOT_SUPPORT")}return _e},adapters:knownAdapters};function throwIfCancellationRequested(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new CanceledError$1(null,s)}function dispatchRequest(s){return throwIfCancellationRequested(s),s.headers=AxiosHeaders$1.from(s.headers),s.data=transformData.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(s.adapter||defaults.adapter)(s).then(function(_e){return throwIfCancellationRequested(s),_e.data=transformData.call(s,s.transformResponse,_e),_e.headers=AxiosHeaders$1.from(_e.headers),_e},function(_e){return isCancel$1(_e)||(throwIfCancellationRequested(s),_e&&_e.response&&(_e.response.data=transformData.call(s,s.transformResponse,_e.response),_e.response.headers=AxiosHeaders$1.from(_e.response.headers))),Promise.reject(_e)})}const VERSION$1="1.7.4",validators$1={};["object","boolean","number","function","string","symbol"].forEach((s,j)=>{validators$1[s]=function(_e){return typeof _e===s||"a"+(j<1?"n ":" ")+s}});const deprecatedWarnings={};validators$1.transitional=function(j,$,_e){function et(tt,nt){return"[Axios v"+VERSION$1+"] Transitional option '"+tt+"'"+nt+(_e?". "+_e:"")}return(tt,nt,rt)=>{if(j===!1)throw new AxiosError$1(et(nt," has been removed"+($?" in "+$:"")),AxiosError$1.ERR_DEPRECATED);return $&&!deprecatedWarnings[nt]&&(deprecatedWarnings[nt]=!0,console.warn(et(nt," has been deprecated since v"+$+" and will be removed in the near future"))),j?j(tt,nt,rt):!0}};function assertOptions(s,j,$){if(typeof s!="object")throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const _e=Object.keys(s);let et=_e.length;for(;et-- >0;){const tt=_e[et],nt=j[tt];if(nt){const rt=s[tt],ot=rt===void 0||nt(rt,tt,s);if(ot!==!0)throw new AxiosError$1("option "+tt+" must be "+ot,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if($!==!0)throw new AxiosError$1("Unknown option "+tt,AxiosError$1.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(j){this.defaults=j,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(j,$){try{return await this._request(j,$)}catch(_e){if(_e instanceof Error){let et;Error.captureStackTrace?Error.captureStackTrace(et={}):et=new Error;const tt=et.stack?et.stack.replace(/^.+\n/,""):"";try{_e.stack?tt&&!String(_e.stack).endsWith(tt.replace(/^.+\n.+\n/,""))&&(_e.stack+=` -`+tt):_e.stack=tt}catch{}}throw _e}}_request(j,$){typeof j=="string"?($=$||{},$.url=j):$=j||{},$=mergeConfig$1(this.defaults,$);const{transitional:_e,paramsSerializer:et,headers:tt}=$;_e!==void 0&&validator.assertOptions(_e,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),et!=null&&(utils$6.isFunction(et)?$.paramsSerializer={serialize:et}:validator.assertOptions(et,{encode:validators.function,serialize:validators.function},!0)),$.method=($.method||this.defaults.method||"get").toLowerCase();let nt=tt&&utils$6.merge(tt.common,tt[$.method]);tt&&utils$6.forEach(["delete","get","head","post","put","patch","common"],dt=>{delete tt[dt]}),$.headers=AxiosHeaders$1.concat(nt,tt);const rt=[];let ot=!0;this.interceptors.request.forEach(function(pt){typeof pt.runWhen=="function"&&pt.runWhen($)===!1||(ot=ot&&pt.synchronous,rt.unshift(pt.fulfilled,pt.rejected))});const it=[];this.interceptors.response.forEach(function(pt){it.push(pt.fulfilled,pt.rejected)});let st,at=0,ct;if(!ot){const dt=[dispatchRequest.bind(this),void 0];for(dt.unshift.apply(dt,rt),dt.push.apply(dt,it),ct=dt.length,st=Promise.resolve($);at{if(!_e._listeners)return;let tt=_e._listeners.length;for(;tt-- >0;)_e._listeners[tt](et);_e._listeners=null}),this.promise.then=et=>{let tt;const nt=new Promise(rt=>{_e.subscribe(rt),tt=rt}).then(et);return nt.cancel=function(){_e.unsubscribe(tt)},nt},j(function(tt,nt,rt){_e.reason||(_e.reason=new CanceledError$1(tt,nt,rt),$(_e.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(j){if(this.reason){j(this.reason);return}this._listeners?this._listeners.push(j):this._listeners=[j]}unsubscribe(j){if(!this._listeners)return;const $=this._listeners.indexOf(j);$!==-1&&this._listeners.splice($,1)}static source(){let j;return{token:new fr(function(et){j=et}),cancel:j}}};function spread$1(s){return function($){return s.apply(null,$)}}function isAxiosError$1(s){return utils$6.isObject(s)&&s.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode$1).forEach(([s,j])=>{HttpStatusCode$1[j]=s});function createInstance(s){const j=new Axios$1(s),$=bind(Axios$1.prototype.request,j);return utils$6.extend($,Axios$1.prototype,j,{allOwnKeys:!0}),utils$6.extend($,j,null,{allOwnKeys:!0}),$.create=function(et){return createInstance(mergeConfig$1(s,et))},$}const axios$1=createInstance(defaults);axios$1.Axios=Axios$1;axios$1.CanceledError=CanceledError$1;axios$1.CancelToken=CancelToken$1;axios$1.isCancel=isCancel$1;axios$1.VERSION=VERSION$1;axios$1.toFormData=toFormData$1;axios$1.AxiosError=AxiosError$1;axios$1.Cancel=axios$1.CanceledError;axios$1.all=function(j){return Promise.all(j)};axios$1.spread=spread$1;axios$1.isAxiosError=isAxiosError$1;axios$1.mergeConfig=mergeConfig$1;axios$1.AxiosHeaders=AxiosHeaders$1;axios$1.formToJSON=s=>formDataToJSON(utils$6.isHTMLForm(s)?new FormData(s):s);axios$1.getAdapter=adapters.getAdapter;axios$1.HttpStatusCode=HttpStatusCode$1;axios$1.default=axios$1;const axios$2=axios$1,{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios$2,axios=Object.freeze(Object.defineProperty({__proto__:null,Axios,AxiosError,AxiosHeaders,Cancel,CancelToken,CanceledError,HttpStatusCode,VERSION,all,default:axios$2,formToJSON,getAdapter,isAxiosError,isCancel,mergeConfig,spread,toFormData},Symbol.toStringTag,{value:"Module"})),require$$0$3=getAugmentedNamespace(axios);var utils$4={};(function(s){var j={},$=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}};Object.defineProperty(s,"__esModule",{value:!0}),s.stringifyWithBigInt=s.retry=s.sendToPagerDuty=s.isVAASigned=s.formatAndSendToSlack=s.WormholescanRPC=s.parseMessageId=s.makeMessageId=s.stringToChainId=s.universalAddress_stripped=s.getMode=s.getNetwork=s.makeSignedVAAsRowKey=s.padUint64=s.MAX_UINT_64=s.padUint16=s.MAX_UINT_16=s.assertEnvironmentVariable=s.sleep=void 0;const _e=require$$0$7,et=$(require$$0$3);async function tt(Mt){return new Promise(jt=>setTimeout(jt,Mt))}s.sleep=tt;const nt=Mt=>{if(Mt in j)return j[Mt];throw new Error(`Missing required environment variable: ${Mt}`)};s.assertEnvironmentVariable=nt,s.MAX_UINT_16="65535";const rt=Mt=>Mt.padStart(s.MAX_UINT_16.length,"0");s.padUint16=rt,s.MAX_UINT_64="18446744073709551615";const ot=Mt=>Mt.padStart(s.MAX_UINT_64.length,"0");s.padUint64=ot;const it=(Mt,jt,wt)=>`${(0,s.padUint16)(Mt.toString())}/${jt}/${(0,s.padUint64)(wt)}`;s.makeSignedVAAsRowKey=it;function st(){const Mt=(0,s.assertEnvironmentVariable)("NETWORK").toLowerCase();if(Mt==="mainnet")return"Mainnet";if(Mt==="testnet")return"Testnet";if(Mt==="devnet")return"Devnet";throw new Error(`Unknown network: ${Mt}`)}s.getNetwork=st;function at(){const Mt=(0,s.assertEnvironmentVariable)("MODE").toLowerCase();if(Mt==="vaa"||Mt==="ntt"||Mt==="ft")return Mt;throw new Error(`Unknown mode: ${Mt}`)}s.getMode=at;function ct(Mt){return _e.encoding.hex.encode(Mt.toUint8Array())}s.universalAddress_stripped=ct;function lt(Mt){try{return Number.isNaN(Number(Mt))?(0,_e.toChainId)(Mt):(0,_e.toChainId)(Number(Mt))}catch{return}}s.stringToChainId=lt;function dt(Mt,jt,wt,$t){return`${(0,s.padUint16)(Mt.toString())}/${(0,s.padUint64)((BigInt(s.MAX_UINT_64)-BigInt(jt)).toString())}/${wt}/${(0,s.padUint64)($t)}`}s.makeMessageId=dt;function pt(Mt){const[jt,wt,$t,zt]=Mt.split("/");return{chain:parseInt(jt),block:Number(BigInt(s.MAX_UINT_64)-BigInt(wt)),emitter:$t,sequence:BigInt(zt)}}s.parseMessageId=pt,s.WormholescanRPC={Mainnet:"https://api.wormholescan.io/",Testnet:"https://api.testnet.wormholescan.io/",Devnet:""};async function ht(Mt){const jt={channel:Mt.channelId,blocks:[{type:"section",text:{type:"mrkdwn",text:`*${Mt.bannerTxt}*`}},{type:"divider"},{type:"section",text:{type:"mrkdwn",text:Mt.msg}}]},wt=1,$t=250;let zt=null;const Ot=Mt.postUrl;for(let Ft=0;Ft=jt)throw console.error(`Failed after ${jt} retries:`,zt),zt;return console.warn(`Retrying (${$t+1}/${jt})...`,zt),await new Promise(Ot=>setTimeout(Ot,wt*($t+1))),ft(Mt,jt,wt,$t+1)}}s.retry=ft;function xt(Mt){return JSON.stringify(Mt,(jt,wt)=>typeof wt=="bigint"?wt.toString():wt)}s.stringifyWithBigInt=xt})(utils$4);var __importDefault$2=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(solana,"__esModule",{value:!0});solana.getTokenBalanceChange=solana.blockTimeToDate=solana.parseWormholeSequenceFromLogs=solana.decodeBase64Data=solana.makeRpcCall=solana.getCustodyAmount=solana.getCustody=solana.derivePda=solana.getSolanaTokenDecimals=solana.normalizeCompileInstruction=solana.isLegacyMessage=void 0;const web3_js_1=require$$0$4,axios_1$2=__importDefault$2(require$$0$3),bs58_1=bs58,sdk_base_1$d=require$$0$7,utils_1$2=utils$4,isLegacyMessage=s=>s.version==="legacy";solana.isLegacyMessage=isLegacyMessage;const normalizeCompileInstruction=s=>"accounts"in s?{accountKeyIndexes:s.accounts,data:(0,bs58_1.decode)(s.data),programIdIndex:s.programIdIndex}:s;solana.normalizeCompileInstruction=normalizeCompileInstruction;const getSolanaTokenDecimals=async(s,j)=>{var _e,et,tt,nt;const $={jsonrpc:"2.0",id:1,method:"getAccountInfo",params:[j,{encoding:"jsonParsed"}]};try{const ot=(await(0,utils_1$2.retry)(()=>axios_1$2.default.post(s,$))).data.result;if(((nt=(tt=(et=(_e=ot==null?void 0:ot.value)==null?void 0:_e.data)==null?void 0:et.parsed)==null?void 0:tt.info)==null?void 0:nt.decimals)!==void 0)return ot.value.data.parsed.info.decimals;throw new Error("Failed to get mint decimals: decimals not found in response")}catch(rt){throw new Error(`Failed to get mint decimals: ${rt}`)}};solana.getSolanaTokenDecimals=getSolanaTokenDecimals;function derivePda(s,j){const $=_e=>typeof _e=="string"?sdk_base_1$d.encoding.bytes.encode(_e):_e;return web3_js_1.PublicKey.findProgramAddressSync(Array.isArray(s)?s.map($):[$(s)],new web3_js_1.PublicKey(j))[0]}solana.derivePda=derivePda;async function getCustody(s,j){const $=await makeRpcCall(s,"getAccountInfo",[j],"jsonParsed"),_e=decodeBase64Data($.value.data[0]);return new web3_js_1.PublicKey(_e.slice(128,160)).toString()}solana.getCustody=getCustody;async function getCustodyAmount(s,j){var _e,et,tt,nt,rt;const $=await makeRpcCall(s,"getAccountInfo",[j],"jsonParsed");if(!((rt=(nt=(tt=(et=(_e=$.value)==null?void 0:_e.data)==null?void 0:et.parsed)==null?void 0:tt.info)==null?void 0:nt.tokenAmount)!=null&&rt.uiAmount))throw new Error("Custody amount not found or missing data");return{amount:$.value.data.parsed.info.tokenAmount.amount,decimals:$.value.data.parsed.info.tokenAmount.decimals}}solana.getCustodyAmount=getCustodyAmount;async function makeRpcCall(s,j,$,_e){const et={jsonrpc:"2.0",id:1,method:j,params:[...$,{encoding:_e}]},tt=await(0,utils_1$2.retry)(()=>axios_1$2.default.post(s,et));if(tt.data.error)throw new Error(`Error fetching ${j} account: ${tt.data.error.message}`);return tt.data.result}solana.makeRpcCall=makeRpcCall;function decodeBase64Data(s){return new Uint8Array(Buffer.from(s,"base64"))}solana.decodeBase64Data=decodeBase64Data;const SOLANA_SEQ_LOG="Program log: Sequence: ";function parseWormholeSequenceFromLogs(s){for(const j of s)if(j.startsWith(SOLANA_SEQ_LOG))return parseInt(j.replace(SOLANA_SEQ_LOG,""),10);return null}solana.parseWormholeSequenceFromLogs=parseWormholeSequenceFromLogs;function blockTimeToDate(s){return new Date(s*1e3)}solana.blockTimeToDate=blockTimeToDate;function getTokenBalanceChange(s,j,$){var ot,it;const _e=((ot=s.meta)==null?void 0:ot.preTokenBalances)||[],et=((it=s.meta)==null?void 0:it.postTokenBalances)||[],tt=_e.find(st=>st.mint===$&&st.owner===j)||{uiTokenAmount:{amount:0n}},nt=et.find(st=>st.mint===$&&st.owner===j)||{uiTokenAmount:{amount:0n}};return BigInt(nt.uiTokenAmount.amount)-BigInt(tt.uiTokenAmount.amount)}solana.getTokenBalanceChange=getTokenBalanceChange;var nttConsts={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.NTT_SUPPORTED_CHAINS=s.NTT_MANAGER_CONTRACT_ARRAY=s.NTT_TOKENS=s.NTT_TRANSCEIVER_CONTRACT=s.NTT_MANAGER_CONTRACT=s.nttChains=void 0;const j=require$$0$7;s.nttChains=["Ethereum","Fantom","Solana","Arbitrum","Optimism","Base","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky"];function $(et){const tt={};for(const nt of j.networks){tt[nt]={};for(const rt in et[nt])for(const ot of s.nttChains){const it=et[nt][rt][ot];it&&(tt[nt][ot]||(tt[nt][ot]=[]),tt[nt][ot].push(it))}}return tt}s.NTT_MANAGER_CONTRACT={Mainnet:{USDC:{Ethereum:"0xeBdCe9a913d9400EE75ef31Ce8bd34462D01a1c1",Fantom:"0x68dB2f05Aa2d77DEf981fd2be32661340c9222FB"},W:{Solana:"NTtAaoDJhkeHeaVUHnyhwbPNAN6WgBpHkHBTc6d7vLK",Ethereum:"0xc072B1AEf336eDde59A049699Ef4e8Fa9D594A48",Arbitrum:"0x5333d0AcA64a450Add6FeF76D6D1375F726CB484",Optimism:"0x1a4F1a790f23Ffb9772966cB6F36dCd658033e13",Base:"0x5333d0AcA64a450Add6FeF76D6D1375F726CB484"}},Testnet:{TEST_NTT:{Solana:"nTTh3bZ5Aer6xboWZe39RDEft4MeVxSQ8D1EYAVLZw9",Sepolia:"0xB231aD95f2301bc82eA44c515001F0F746D637e0",ArbitrumSepolia:"0xEec94CD3083e067398256a79CcA7e740C5c8ef81",BaseSepolia:"0xB03b030b2f5B40819Df76467d67eD1C85Ff66fAD",OptimismSepolia:"0x7f430D4e7939D994C0955A01FC75D9DE33F12D11"}},Devnet:{}},s.NTT_TRANSCEIVER_CONTRACT={Mainnet:{USDC:{Ethereum:"0x55f7820357FA17A1ECb48E959D5E637bFF956d6F",Fantom:"0x8b47f02E7E20174C76Af910adc0Ad8A4B0342f4c"},W:{Solana:"ExVbjD8inGXkt7Cx8jVr4GF175sQy1MeqgfaY53Ah8as",Ethereum:"0xDb55492d7190D1baE8ACbE03911C4E3E7426870c",Arbitrum:"0xD1a8AB69e00266e8B791a15BC47514153A5045a6",Optimism:"0x9bD8b7b527CA4e6738cBDaBdF51C22466756073d",Base:"0xD1a8AB69e00266e8B791a15BC47514153A5045a6"}},Testnet:{TEST_NTT:{Solana:"9WNzy7xYZyL2k6JnE9dWSp7VpYkvfRN3Rhd8wHv9J9mY",Sepolia:"0x1fDC902e30b188FD2BA976B421Cb179943F57896",ArbitrumSepolia:"0x0E24D17D7467467b39Bf64A9DFf88776Bd6c74d7",BaseSepolia:"0x1e072169541f1171e427Aa44B5fd8924BEE71b0e",OptimismSepolia:"0x41265eb2863bf0238081F6AeefeF73549C82C3DD"}},Devnet:{}},s.NTT_TOKENS={Mainnet:{USDC:{Ethereum:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",Fantom:"0x2F733095B80A04b38b0D10cC884524a3d09b836a"},W:{Solana:"85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ",Ethereum:"0xB0fFa8000886e57F86dd5264b9582b2Ad87b2b91",Arbitrum:"0xB0fFa8000886e57F86dd5264b9582b2Ad87b2b91",Optimism:"0xB0fFa8000886e57F86dd5264b9582b2Ad87b2b91",Base:"0xB0fFa8000886e57F86dd5264b9582b2Ad87b2b91"}},Testnet:{TEST_NTT:{Solana:"87r5ZS91Q2pQbFTvvneqs7y7mbtegtqMt4LDAS4g23Ax",Sepolia:"0x1d30E78B7C7fbbcef87ae6e97B5389b2e470CA4a",ArbitrumSepolia:"0x84A1Cb660B19eB0063EE5FD377eC14AAe3364d74",BaseSepolia:"0x7f430D4e7939D994C0955A01FC75D9DE33F12D11",OptimismSepolia:"0x0e15979a7a1eFAEf20312CA45A59eb141bF7E340"}},Devnet:{}},s.NTT_MANAGER_CONTRACT_ARRAY=$(s.NTT_MANAGER_CONTRACT);function _e(et,tt){const nt=s.NTT_MANAGER_CONTRACT[et][tt];return nt?s.nttChains.filter(rt=>rt in nt):[]}s.NTT_SUPPORTED_CHAINS=_e})(nttConsts);var evm={},cjs={},registry={};Object.defineProperty(registry,"__esModule",{value:!0});var address={},universalAddress$2={},utils$3={};const require$$0$2=getAugmentedNamespace(sha256$1),require$$1$1=getAugmentedNamespace(sha3);var secp256k1={};const require$$1=getAugmentedNamespace(utils$7);var modular={},utils$2={};Object.defineProperty(utils$2,"__esModule",{value:!0});utils$2.validateObject=utils$2.createHmacDrbg=utils$2.bitMask=utils$2.bitSet=utils$2.bitGet=utils$2.bitLen=utils$2.utf8ToBytes=utils$2.equalBytes=utils$2.concatBytes=utils$2.ensureBytes=utils$2.numberToVarBytesBE=utils$2.numberToBytesLE=utils$2.numberToBytesBE=utils$2.bytesToNumberLE=utils$2.bytesToNumberBE=utils$2.hexToBytes=utils$2.hexToNumber=utils$2.numberToHexUnpadded=utils$2.bytesToHex=utils$2.abytes=utils$2.isBytes=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$4=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2);function isBytes(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}utils$2.isBytes=isBytes;function abytes(s){if(!isBytes(s))throw new Error("Uint8Array expected")}utils$2.abytes=abytes;const hexes=Array.from({length:256},(s,j)=>j.toString(16).padStart(2,"0"));function bytesToHex(s){abytes(s);let j="";for(let $=0;$=asciis._0&&s<=asciis._9)return s-asciis._0;if(s>=asciis._A&&s<=asciis._F)return s-(asciis._A-10);if(s>=asciis._a&&s<=asciis._f)return s-(asciis._a-10)}function hexToBytes(s){if(typeof s!="string")throw new Error("hex string expected, got "+typeof s);const j=s.length,$=j/2;if(j%2)throw new Error("padded hex string expected, got unpadded hex of length "+j);const _e=new Uint8Array($);for(let et=0,tt=0;et<$;et++,tt+=2){const nt=asciiToBase16(s.charCodeAt(tt)),rt=asciiToBase16(s.charCodeAt(tt+1));if(nt===void 0||rt===void 0){const ot=s[tt]+s[tt+1];throw new Error('hex string expected, got non-hex character "'+ot+'" at index '+tt)}_e[et]=nt*16+rt}return _e}utils$2.hexToBytes=hexToBytes;function bytesToNumberBE(s){return hexToNumber(bytesToHex(s))}utils$2.bytesToNumberBE=bytesToNumberBE;function bytesToNumberLE(s){return abytes(s),hexToNumber(bytesToHex(Uint8Array.from(s).reverse()))}utils$2.bytesToNumberLE=bytesToNumberLE;function numberToBytesBE(s,j){return hexToBytes(s.toString(16).padStart(j*2,"0"))}utils$2.numberToBytesBE=numberToBytesBE;function numberToBytesLE(s,j){return numberToBytesBE(s,j).reverse()}utils$2.numberToBytesLE=numberToBytesLE;function numberToVarBytesBE(s){return hexToBytes(numberToHexUnpadded(s))}utils$2.numberToVarBytesBE=numberToVarBytesBE;function ensureBytes(s,j,$){let _e;if(typeof j=="string")try{_e=hexToBytes(j)}catch(tt){throw new Error(`${s} must be valid hex string, got "${j}". Cause: ${tt}`)}else if(isBytes(j))_e=Uint8Array.from(j);else throw new Error(`${s} must be hex string or Uint8Array`);const et=_e.length;if(typeof $=="number"&&et!==$)throw new Error(`${s} expected ${$} bytes, got ${et}`);return _e}utils$2.ensureBytes=ensureBytes;function concatBytes(...s){let j=0;for(let _e=0;_e_0n$4;s>>=_1n$4,j+=1);return j}utils$2.bitLen=bitLen;function bitGet(s,j){return s>>BigInt(j)&_1n$4}utils$2.bitGet=bitGet;function bitSet(s,j,$){return s|($?_1n$4:_0n$4)<(_2n$2<new Uint8Array(s),u8fr=s=>Uint8Array.from(s);function createHmacDrbg(s,j,$){if(typeof s!="number"||s<2)throw new Error("hashLen must be a number");if(typeof j!="number"||j<2)throw new Error("qByteLen must be a number");if(typeof $!="function")throw new Error("hmacFn must be a function");let _e=u8n(s),et=u8n(s),tt=0;const nt=()=>{_e.fill(1),et.fill(0),tt=0},rt=(...at)=>$(et,_e,...at),ot=(at=u8n())=>{et=rt(u8fr([0]),at),_e=rt(),at.length!==0&&(et=rt(u8fr([1]),at),_e=rt())},it=()=>{if(tt++>=1e3)throw new Error("drbg: tried 1000 values");let at=0;const ct=[];for(;at{nt(),ot(at);let lt;for(;!(lt=ct(it()));)ot();return nt(),lt}}utils$2.createHmacDrbg=createHmacDrbg;const validatorFns={bigint:s=>typeof s=="bigint",function:s=>typeof s=="function",boolean:s=>typeof s=="boolean",string:s=>typeof s=="string",stringOrUint8Array:s=>typeof s=="string"||isBytes(s),isSafeInteger:s=>Number.isSafeInteger(s),array:s=>Array.isArray(s),field:(s,j)=>j.Fp.isValid(s),hash:s=>typeof s=="function"&&Number.isSafeInteger(s.outputLen)};function validateObject(s,j,$={}){const _e=(et,tt,nt)=>{const rt=validatorFns[tt];if(typeof rt!="function")throw new Error(`Invalid validator "${tt}", expected function`);const ot=s[et];if(!(nt&&ot===void 0)&&!rt(ot,s))throw new Error(`Invalid param ${String(et)}=${ot} (${typeof ot}), expected ${tt}`)};for(const[et,tt]of Object.entries(j))_e(et,tt,!1);for(const[et,tt]of Object.entries($))_e(et,tt,!0);return s}utils$2.validateObject=validateObject;Object.defineProperty(modular,"__esModule",{value:!0});modular.mapHashToField=modular.getMinHashLength=modular.getFieldBytesLength=modular.hashToPrivateScalar=modular.FpSqrtEven=modular.FpSqrtOdd=modular.Field=modular.nLength=modular.FpIsSquare=modular.FpDiv=modular.FpInvertBatch=modular.FpPow=modular.validateField=modular.isNegativeLE=modular.FpSqrt=modular.tonelliShanks=modular.invert=modular.pow2=modular.pow=modular.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const utils_js_1$d=utils$2,_0n$3=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n$1=BigInt(8);BigInt(9);BigInt(16);function mod(s,j){const $=s%j;return $>=_0n$3?$:j+$}modular.mod=mod;function pow(s,j,$){if($<=_0n$3||j<_0n$3)throw new Error("Expected power/modulo > 0");if($===_1n$3)return _0n$3;let _e=_1n$3;for(;j>_0n$3;)j&_1n$3&&(_e=_e*s%$),s=s*s%$,j>>=_1n$3;return _e}modular.pow=pow;function pow2(s,j,$){let _e=s;for(;j-- >_0n$3;)_e*=_e,_e%=$;return _e}modular.pow2=pow2;function invert(s,j){if(s===_0n$3||j<=_0n$3)throw new Error(`invert: expected positive integers, got n=${s} mod=${j}`);let $=mod(s,j),_e=j,et=_0n$3,tt=_1n$3;for(;$!==_0n$3;){const rt=_e/$,ot=_e%$,it=et-tt*rt;_e=$,$=ot,et=tt,tt=it}if(_e!==_1n$3)throw new Error("invert: does not exist");return mod(et,j)}modular.invert=invert;function tonelliShanks(s){const j=(s-_1n$3)/_2n$1;let $,_e,et;for($=s-_1n$3,_e=0;$%_2n$1===_0n$3;$/=_2n$1,_e++);for(et=_2n$1;et(mod(s,j)&_1n$3)===_1n$3;modular.isNegativeLE=isNegativeLE;const FIELD_FIELDS=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField(s){const j={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},$=FIELD_FIELDS.reduce((_e,et)=>(_e[et]="function",_e),j);return(0,utils_js_1$d.validateObject)(s,$)}modular.validateField=validateField;function FpPow(s,j,$){if($<_0n$3)throw new Error("Expected power > 0");if($===_0n$3)return s.ONE;if($===_1n$3)return j;let _e=s.ONE,et=j;for(;$>_0n$3;)$&_1n$3&&(_e=s.mul(_e,et)),et=s.sqr(et),$>>=_1n$3;return _e}modular.FpPow=FpPow;function FpInvertBatch(s,j){const $=new Array(j.length),_e=j.reduce((tt,nt,rt)=>s.is0(nt)?tt:($[rt]=tt,s.mul(tt,nt)),s.ONE),et=s.inv(_e);return j.reduceRight((tt,nt,rt)=>s.is0(nt)?tt:($[rt]=s.mul(tt,$[rt]),s.mul(tt,nt)),et),$}modular.FpInvertBatch=FpInvertBatch;function FpDiv(s,j,$){return s.mul(j,typeof $=="bigint"?invert($,s.ORDER):s.inv($))}modular.FpDiv=FpDiv;function FpIsSquare(s){const j=(s.ORDER-_1n$3)/_2n$1;return $=>{const _e=s.pow($,j);return s.eql(_e,s.ZERO)||s.eql(_e,s.ONE)}}modular.FpIsSquare=FpIsSquare;function nLength(s,j){const $=j!==void 0?j:s.toString(2).length,_e=Math.ceil($/8);return{nBitLength:$,nByteLength:_e}}modular.nLength=nLength;function Field(s,j,$=!1,_e={}){if(s<=_0n$3)throw new Error(`Expected Field ORDER > 0, got ${s}`);const{nBitLength:et,nByteLength:tt}=nLength(s,j);if(tt>2048)throw new Error("Field lengths over 2048 bytes are not supported");const nt=FpSqrt(s),rt=Object.freeze({ORDER:s,BITS:et,BYTES:tt,MASK:(0,utils_js_1$d.bitMask)(et),ZERO:_0n$3,ONE:_1n$3,create:ot=>mod(ot,s),isValid:ot=>{if(typeof ot!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof ot}`);return _0n$3<=ot&&otot===_0n$3,isOdd:ot=>(ot&_1n$3)===_1n$3,neg:ot=>mod(-ot,s),eql:(ot,it)=>ot===it,sqr:ot=>mod(ot*ot,s),add:(ot,it)=>mod(ot+it,s),sub:(ot,it)=>mod(ot-it,s),mul:(ot,it)=>mod(ot*it,s),pow:(ot,it)=>FpPow(rt,ot,it),div:(ot,it)=>mod(ot*invert(it,s),s),sqrN:ot=>ot*ot,addN:(ot,it)=>ot+it,subN:(ot,it)=>ot-it,mulN:(ot,it)=>ot*it,inv:ot=>invert(ot,s),sqrt:_e.sqrt||(ot=>nt(rt,ot)),invertBatch:ot=>FpInvertBatch(rt,ot),cmov:(ot,it,st)=>st?it:ot,toBytes:ot=>$?(0,utils_js_1$d.numberToBytesLE)(ot,tt):(0,utils_js_1$d.numberToBytesBE)(ot,tt),fromBytes:ot=>{if(ot.length!==tt)throw new Error(`Fp.fromBytes: expected ${tt}, got ${ot.length}`);return $?(0,utils_js_1$d.bytesToNumberLE)(ot):(0,utils_js_1$d.bytesToNumberBE)(ot)}});return Object.freeze(rt)}modular.Field=Field;function FpSqrtOdd(s,j){if(!s.isOdd)throw new Error("Field doesn't have isOdd");const $=s.sqrt(j);return s.isOdd($)?$:s.neg($)}modular.FpSqrtOdd=FpSqrtOdd;function FpSqrtEven(s,j){if(!s.isOdd)throw new Error("Field doesn't have isOdd");const $=s.sqrt(j);return s.isOdd($)?s.neg($):$}modular.FpSqrtEven=FpSqrtEven;function hashToPrivateScalar(s,j,$=!1){s=(0,utils_js_1$d.ensureBytes)("privateHash",s);const _e=s.length,et=nLength(j).nByteLength+8;if(et<24||_e1024)throw new Error(`hashToPrivateScalar: expected ${et}-1024 bytes of input, got ${_e}`);const tt=$?(0,utils_js_1$d.bytesToNumberLE)(s):(0,utils_js_1$d.bytesToNumberBE)(s);return mod(tt,j-_1n$3)+_1n$3}modular.hashToPrivateScalar=hashToPrivateScalar;function getFieldBytesLength(s){if(typeof s!="bigint")throw new Error("field order must be bigint");const j=s.toString(2).length;return Math.ceil(j/8)}modular.getFieldBytesLength=getFieldBytesLength;function getMinHashLength(s){const j=getFieldBytesLength(s);return j+Math.ceil(j/2)}modular.getMinHashLength=getMinHashLength;function mapHashToField(s,j,$=!1){const _e=s.length,et=getFieldBytesLength(j),tt=getMinHashLength(j);if(_e<16||_e1024)throw new Error(`expected ${tt}-1024 bytes of input, got ${_e}`);const nt=$?(0,utils_js_1$d.bytesToNumberBE)(s):(0,utils_js_1$d.bytesToNumberLE)(s),rt=mod(nt,j-_1n$3)+_1n$3;return $?(0,utils_js_1$d.numberToBytesLE)(rt,et):(0,utils_js_1$d.numberToBytesBE)(rt,et)}modular.mapHashToField=mapHashToField;var weierstrass={},curve={};Object.defineProperty(curve,"__esModule",{value:!0});curve.validateBasic=curve.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const modular_js_1$3=modular,utils_js_1$c=utils$2,_0n$2=BigInt(0),_1n$2=BigInt(1);function wNAF(s,j){const $=(et,tt)=>{const nt=tt.negate();return et?nt:tt},_e=et=>{const tt=Math.ceil(j/et)+1,nt=2**(et-1);return{windows:tt,windowSize:nt}};return{constTimeNegate:$,unsafeLadder(et,tt){let nt=s.ZERO,rt=et;for(;tt>_0n$2;)tt&_1n$2&&(nt=nt.add(rt)),rt=rt.double(),tt>>=_1n$2;return nt},precomputeWindow(et,tt){const{windows:nt,windowSize:rt}=_e(tt),ot=[];let it=et,st=it;for(let at=0;at>=lt,ht>ot&&(ht-=ct,nt+=_1n$2);const yt=pt,gt=pt+Math.abs(ht)-1,ft=dt%2!==0,xt=ht<0;ht===0?st=st.add($(ft,tt[yt])):it=it.add($(xt,tt[gt]))}return{p:it,f:st}},wNAFCached(et,tt,nt,rt){const ot=et._WINDOW_SIZE||1;let it=tt.get(et);return it||(it=this.precomputeWindow(et,ot),ot!==1&&tt.set(et,rt(it))),this.wNAF(ot,it,nt)}}}curve.wNAF=wNAF;function validateBasic(s){return(0,modular_js_1$3.validateField)(s.Fp),(0,utils_js_1$c.validateObject)(s,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,modular_js_1$3.nLength)(s.n,s.nBitLength),...s,p:s.Fp.ORDER})}curve.validateBasic=validateBasic;(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.mapToCurveSimpleSWU=s.SWUFpSqrtRatio=s.weierstrass=s.weierstrassPoints=s.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const j=modular,$=utils$2,_e=utils$2,et=curve;function tt(gt){const ft=(0,et.validateBasic)(gt);$.validateObject(ft,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:xt,Fp:Mt,a:jt}=ft;if(xt){if(!Mt.eql(jt,Mt.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof xt!="object"||typeof xt.beta!="bigint"||typeof xt.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...ft})}const{bytesToNumberBE:nt,hexToBytes:rt}=$;s.DER={Err:class extends Error{constructor(ft=""){super(ft)}},_parseInt(gt){const{Err:ft}=s.DER;if(gt.length<2||gt[0]!==2)throw new ft("Invalid signature integer tag");const xt=gt[1],Mt=gt.subarray(2,xt+2);if(!xt||Mt.length!==xt)throw new ft("Invalid signature integer: wrong length");if(Mt[0]&128)throw new ft("Invalid signature integer: negative");if(Mt[0]===0&&!(Mt[1]&128))throw new ft("Invalid signature integer: unnecessary leading zero");return{d:nt(Mt),l:gt.subarray(xt+2)}},toSig(gt){const{Err:ft}=s.DER,xt=typeof gt=="string"?rt(gt):gt;$.abytes(xt);let Mt=xt.length;if(Mt<2||xt[0]!=48)throw new ft("Invalid signature tag");if(xt[1]!==Mt-2)throw new ft("Invalid signature: incorrect length");const{d:jt,l:wt}=s.DER._parseInt(xt.subarray(2)),{d:$t,l:zt}=s.DER._parseInt(wt);if(zt.length)throw new ft("Invalid signature: left bytes after parsing");return{r:jt,s:$t}},hexFromSig(gt){const ft=Pt=>Number.parseInt(Pt[0],16)&8?"00"+Pt:Pt,xt=Pt=>{const Ft=Pt.toString(16);return Ft.length&1?`0${Ft}`:Ft},Mt=ft(xt(gt.s)),jt=ft(xt(gt.r)),wt=Mt.length/2,$t=jt.length/2,zt=xt(wt),Ot=xt($t);return`30${xt($t+wt+4)}02${Ot}${jt}02${zt}${Mt}`}};const ot=BigInt(0),it=BigInt(1),st=BigInt(2),at=BigInt(3),ct=BigInt(4);function lt(gt){const ft=tt(gt),{Fp:xt}=ft,Mt=ft.toBytes||((St,vt,At)=>{const Tt=vt.toAffine();return $.concatBytes(Uint8Array.from([4]),xt.toBytes(Tt.x),xt.toBytes(Tt.y))}),jt=ft.fromBytes||(St=>{const vt=St.subarray(1),At=xt.fromBytes(vt.subarray(0,xt.BYTES)),Tt=xt.fromBytes(vt.subarray(xt.BYTES,2*xt.BYTES));return{x:At,y:Tt}});function wt(St){const{a:vt,b:At}=ft,Tt=xt.sqr(St),Dt=xt.mul(Tt,St);return xt.add(xt.add(Dt,xt.mul(St,vt)),At)}if(!xt.eql(xt.sqr(ft.Gy),wt(ft.Gx)))throw new Error("bad generator point: equation left != right");function $t(St){return typeof St=="bigint"&&otxt.eql(Lt,xt.ZERO);return Dt(At)&&Dt(Tt)?Nt.ZERO:new Nt(At,Tt,xt.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(vt){const At=xt.invertBatch(vt.map(Tt=>Tt.pz));return vt.map((Tt,Dt)=>Tt.toAffine(At[Dt])).map(Nt.fromAffine)}static fromHex(vt){const At=Nt.fromAffine(jt((0,_e.ensureBytes)("pointHex",vt)));return At.assertValidity(),At}static fromPrivateKey(vt){return Nt.BASE.multiply(Ot(vt))}_setWindowSize(vt){this._WINDOW_SIZE=vt,Pt.delete(this)}assertValidity(){if(this.is0()){if(ft.allowInfinityPoint&&!xt.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:vt,y:At}=this.toAffine();if(!xt.isValid(vt)||!xt.isValid(At))throw new Error("bad point: x or y not FE");const Tt=xt.sqr(At),Dt=wt(vt);if(!xt.eql(Tt,Dt))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:vt}=this.toAffine();if(xt.isOdd)return!xt.isOdd(vt);throw new Error("Field doesn't support isOdd")}equals(vt){Ft(vt);const{px:At,py:Tt,pz:Dt}=this,{px:Lt,py:Et,pz:kt}=vt,Ut=xt.eql(xt.mul(At,kt),xt.mul(Lt,Dt)),Gt=xt.eql(xt.mul(Tt,kt),xt.mul(Et,Dt));return Ut&&Gt}negate(){return new Nt(this.px,xt.neg(this.py),this.pz)}double(){const{a:vt,b:At}=ft,Tt=xt.mul(At,at),{px:Dt,py:Lt,pz:Et}=this;let kt=xt.ZERO,Ut=xt.ZERO,Gt=xt.ZERO,Ht=xt.mul(Dt,Dt),tn=xt.mul(Lt,Lt),Jt=xt.mul(Et,Et),Kt=xt.mul(Dt,Lt);return Kt=xt.add(Kt,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jt,Qt),dn=xt.add(dn,en),en=xt.sub(Kt,en),en=xt.mul(tn,en),Qt=xt.add(Qt,en),Kt=xt.mul(dn,Qt),Gt=xt.add(Gt,Kt),Kt=xt.mul(qt,Qt),Ut=xt.mul(Zt,Ut),Ut=xt.sub(Ut,Kt),Kt=xt.mul(Zt,dn),Ht=xt.mul(qt,Ht),Ht=xt.add(Ht,Kt),new Nt(Ut,Gt,Ht)}subtract(vt){return this.add(vt.negate())}is0(){return this.equals(Nt.ZERO)}wNAF(vt){return bt.wNAFCached(this,Pt,vt,At=>{const Tt=xt.invertBatch(At.map(Dt=>Dt.pz));return At.map((Dt,Lt)=>Dt.toAffine(Tt[Lt])).map(Nt.fromAffine)})}multiplyUnsafe(vt){const At=Nt.ZERO;if(vt===ot)return At;if(zt(vt),vt===it)return this;const{endo:Tt}=ft;if(!Tt)return bt.unsafeLadder(this,vt);let{k1neg:Dt,k1:Lt,k2neg:Et,k2:kt}=Tt.splitScalar(vt),Ut=At,Gt=At,Ht=this;for(;Lt>ot||kt>ot;)Lt&it&&(Ut=Ut.add(Ht)),kt&it&&(Gt=Gt.add(Ht)),Ht=Ht.double(),Lt>>=it,kt>>=it;return Dt&&(Ut=Ut.negate()),Et&&(Gt=Gt.negate()),Gt=new Nt(xt.mul(Gt.px,Tt.beta),Gt.py,Gt.pz),Ut.add(Gt)}multiply(vt){zt(vt);let At=vt,Tt,Dt;const{endo:Lt}=ft;if(Lt){const{k1neg:Et,k1:kt,k2neg:Ut,k2:Gt}=Lt.splitScalar(At);let{p:Ht,f:tn}=this.wNAF(kt),{p:Jt,f:Kt}=this.wNAF(Gt);Ht=bt.constTimeNegate(Et,Ht),Jt=bt.constTimeNegate(Ut,Jt),Jt=new Nt(xt.mul(Jt.px,Lt.beta),Jt.py,Jt.pz),Tt=Ht.add(Jt),Dt=tn.add(Kt)}else{const{p:Et,f:kt}=this.wNAF(At);Tt=Et,Dt=kt}return Nt.normalizeZ([Tt,Dt])[0]}multiplyAndAddUnsafe(vt,At,Tt){const Dt=Nt.BASE,Lt=(kt,Ut)=>Ut===ot||Ut===it||!kt.equals(Dt)?kt.multiplyUnsafe(Ut):kt.multiply(Ut),Et=Lt(this,At).add(Lt(vt,Tt));return Et.is0()?void 0:Et}toAffine(vt){const{px:At,py:Tt,pz:Dt}=this,Lt=this.is0();vt==null&&(vt=Lt?xt.ONE:xt.inv(Dt));const Et=xt.mul(At,vt),kt=xt.mul(Tt,vt),Ut=xt.mul(Dt,vt);if(Lt)return{x:xt.ZERO,y:xt.ZERO};if(!xt.eql(Ut,xt.ONE))throw new Error("invZ was invalid");return{x:Et,y:kt}}isTorsionFree(){const{h:vt,isTorsionFree:At}=ft;if(vt===it)return!0;if(At)return At(Nt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:vt,clearCofactor:At}=ft;return vt===it?this:At?At(Nt,this):this.multiplyUnsafe(ft.h)}toRawBytes(vt=!0){return this.assertValidity(),Mt(Nt,this,vt)}toHex(vt=!0){return $.bytesToHex(this.toRawBytes(vt))}}Nt.BASE=new Nt(ft.Gx,ft.Gy,xt.ONE),Nt.ZERO=new Nt(xt.ZERO,xt.ONE,xt.ZERO);const mt=ft.nBitLength,bt=(0,et.wNAF)(Nt,ft.endo?Math.ceil(mt/2):mt);return{CURVE:ft,ProjectivePoint:Nt,normPrivateKeyToScalar:Ot,weierstrassEquation:wt,isWithinCurveOrder:$t}}s.weierstrassPoints=lt;function dt(gt){const ft=(0,et.validateBasic)(gt);return $.validateObject(ft,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...ft})}function pt(gt){const ft=dt(gt),{Fp:xt,n:Mt}=ft,jt=xt.BYTES+1,wt=2*xt.BYTES+1;function $t(Qt){return ot$.bytesToHex($.numberToBytesBE(Qt,ft.nByteLength));function St(Qt){const qt=Mt>>it;return Qt>qt}function vt(Qt){return St(Qt)?zt(-Qt):Qt}const At=(Qt,qt,Xt)=>$.bytesToNumberBE(Qt.slice(qt,Xt));class Tt{constructor(qt,Xt,sn){this.r=qt,this.s=Xt,this.recovery=sn,this.assertValidity()}static fromCompact(qt){const Xt=ft.nByteLength;return qt=(0,_e.ensureBytes)("compactSignature",qt,Xt*2),new Tt(At(qt,0,Xt),At(qt,Xt,2*Xt))}static fromDER(qt){const{r:Xt,s:sn}=s.DER.toSig((0,_e.ensureBytes)("DER",qt));return new Tt(Xt,sn)}assertValidity(){if(!mt(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!mt(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(qt){return new Tt(this.r,this.s,qt)}recoverPublicKey(qt){const{r:Xt,s:sn,recovery:nn}=this,rn=Gt((0,_e.ensureBytes)("msgHash",qt));if(nn==null||![0,1,2,3].includes(nn))throw new Error("recovery id invalid");const hn=nn===2||nn===3?Xt+ft.n:Xt;if(hn>=xt.ORDER)throw new Error("recovery id 2 or 3 invalid");const on=nn&1?"03":"02",an=Pt.fromHex(on+bt(hn)),gn=Ot(hn),fn=zt(-rn*gn),ln=zt(sn*gn),yn=Pt.BASE.multiplyAndAddUnsafe(an,fn,ln);if(!yn)throw new Error("point at infinify");return yn.assertValidity(),yn}hasHighS(){return St(this.s)}normalizeS(){return this.hasHighS()?new Tt(this.r,zt(-this.s),this.recovery):this}toDERRawBytes(){return $.hexToBytes(this.toDERHex())}toDERHex(){return s.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return $.hexToBytes(this.toCompactHex())}toCompactHex(){return bt(this.r)+bt(this.s)}}const Dt={isValidPrivateKey(Qt){try{return Ft(Qt),!0}catch{return!1}},normPrivateKeyToScalar:Ft,randomPrivateKey:()=>{const Qt=j.getMinHashLength(ft.n);return j.mapHashToField(ft.randomBytes(Qt),ft.n)},precompute(Qt=8,qt=Pt.BASE){return qt._setWindowSize(Qt),qt.multiply(BigInt(3)),qt}};function Lt(Qt,qt=!0){return Pt.fromPrivateKey(Qt).toRawBytes(qt)}function Et(Qt){const qt=$.isBytes(Qt),Xt=typeof Qt=="string",sn=(qt||Xt)&&Qt.length;return qt?sn===jt||sn===wt:Xt?sn===2*jt||sn===2*wt:Qt instanceof Pt}function kt(Qt,qt,Xt=!0){if(Et(Qt))throw new Error("first arg must be private key");if(!Et(qt))throw new Error("second arg must be public key");return Pt.fromHex(qt).multiply(Ft(Qt)).toRawBytes(Xt)}const Ut=ft.bits2int||function(Qt){const qt=$.bytesToNumberBE(Qt),Xt=Qt.length*8-ft.nBitLength;return Xt>0?qt>>BigInt(Xt):qt},Gt=ft.bits2int_modN||function(Qt){return zt(Ut(Qt))},Ht=$.bitMask(ft.nBitLength);function tn(Qt){if(typeof Qt!="bigint")throw new Error("bigint expected");if(!(ot<=Qt&&QtRt in Xt))throw new Error("sign() legacy options not supported");const{hash:sn,randomBytes:nn}=ft;let{lowS:rn,prehash:hn,extraEntropy:on}=Xt;rn==null&&(rn=!0),Qt=(0,_e.ensureBytes)("msgHash",Qt),hn&&(Qt=(0,_e.ensureBytes)("prehashed msgHash",sn(Qt)));const an=Gt(Qt),gn=Ft(qt),fn=[tn(gn),tn(an)];if(on!=null&&on!==!1){const Rt=on===!0?nn(xt.BYTES):on;fn.push((0,_e.ensureBytes)("extraEntropy",Rt))}const ln=$.concatBytes(...fn),yn=an;function mn(Rt){const Ct=Ut(Rt);if(!mt(Ct))return;const It=Ot(Ct),Bt=Pt.BASE.multiply(Ct).toAffine(),Wt=zt(Bt.x);if(Wt===ot)return;const Vt=zt(It*zt(yn+Wt*gn));if(Vt===ot)return;let Yt=(Bt.x===Wt?0:2)|Number(Bt.y&it),cn=Vt;return rn&&St(Vt)&&(cn=vt(Vt),Yt^=1),new Tt(Wt,cn,Yt)}return{seed:ln,k2sig:mn}}const Kt={lowS:ft.lowS,prehash:!1},dn={lowS:ft.lowS,prehash:!1};function en(Qt,qt,Xt=Kt){const{seed:sn,k2sig:nn}=Jt(Qt,qt,Xt),rn=ft;return $.createHmacDrbg(rn.hash.outputLen,rn.nByteLength,rn.hmac)(sn,nn)}Pt.BASE._setWindowSize(8);function Zt(Qt,qt,Xt,sn=dn){var Bt;const nn=Qt;if(qt=(0,_e.ensureBytes)("msgHash",qt),Xt=(0,_e.ensureBytes)("publicKey",Xt),"strict"in sn)throw new Error("options.strict was renamed to lowS");const{lowS:rn,prehash:hn}=sn;let on,an;try{if(typeof nn=="string"||$.isBytes(nn))try{on=Tt.fromDER(nn)}catch(Wt){if(!(Wt instanceof s.DER.Err))throw Wt;on=Tt.fromCompact(nn)}else if(typeof nn=="object"&&typeof nn.r=="bigint"&&typeof nn.s=="bigint"){const{r:Wt,s:Vt}=nn;on=new Tt(Wt,Vt)}else throw new Error("PARSE");an=Pt.fromHex(Xt)}catch(Wt){if(Wt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(rn&&on.hasHighS())return!1;hn&&(qt=ft.hash(qt));const{r:gn,s:fn}=on,ln=Gt(qt),yn=Ot(fn),mn=zt(ln*yn),Rt=zt(gn*yn),Ct=(Bt=Pt.BASE.multiplyAndAddUnsafe(an,mn,Rt))==null?void 0:Bt.toAffine();return Ct?zt(Ct.x)===gn:!1}return{CURVE:ft,getPublicKey:Lt,getSharedSecret:kt,sign:en,verify:Zt,ProjectivePoint:Pt,Signature:Tt,utils:Dt}}s.weierstrass=pt;function ht(gt,ft){const xt=gt.ORDER;let Mt=ot;for(let St=xt-it;St%st===ot;St/=st)Mt+=it;const jt=Mt,wt=st<{let At=Nt,Tt=gt.pow(vt,Pt),Dt=gt.sqr(Tt);Dt=gt.mul(Dt,vt);let Lt=gt.mul(St,Dt);Lt=gt.pow(Lt,Ot),Lt=gt.mul(Lt,Tt),Tt=gt.mul(Lt,vt),Dt=gt.mul(Lt,St);let Et=gt.mul(Dt,Tt);Lt=gt.pow(Et,Ft);let kt=gt.eql(Lt,gt.ONE);Tt=gt.mul(Dt,mt),Lt=gt.mul(Et,At),Dt=gt.cmov(Tt,Dt,kt),Et=gt.cmov(Lt,Et,kt);for(let Ut=jt;Ut>it;Ut--){let Gt=Ut-st;Gt=st<{let Dt=gt.sqr(Tt);const Lt=gt.mul(At,Tt);Dt=gt.mul(Dt,Lt);let Et=gt.pow(Dt,St);Et=gt.mul(Et,Lt);const kt=gt.mul(Et,vt),Ut=gt.mul(gt.sqr(Et),Tt),Gt=gt.eql(Ut,At);let Ht=gt.cmov(kt,Et,Gt);return{isValid:Gt,value:Ht}}}return bt}s.SWUFpSqrtRatio=ht;function yt(gt,ft){if(j.validateField(gt),!gt.isValid(ft.A)||!gt.isValid(ft.B)||!gt.isValid(ft.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const xt=ht(gt,ft.Z);if(!gt.isOdd)throw new Error("Fp.isOdd is not implemented!");return Mt=>{let jt,wt,$t,zt,Ot,Pt,Ft,Nt;jt=gt.sqr(Mt),jt=gt.mul(jt,ft.Z),wt=gt.sqr(jt),wt=gt.add(wt,jt),$t=gt.add(wt,gt.ONE),$t=gt.mul($t,ft.B),zt=gt.cmov(ft.Z,gt.neg(wt),!gt.eql(wt,gt.ZERO)),zt=gt.mul(zt,ft.A),wt=gt.sqr($t),Pt=gt.sqr(zt),Ot=gt.mul(Pt,ft.A),wt=gt.add(wt,Ot),wt=gt.mul(wt,$t),Pt=gt.mul(Pt,zt),Ot=gt.mul(Pt,ft.B),wt=gt.add(wt,Ot),Ft=gt.mul(jt,$t);const{isValid:mt,value:bt}=xt(wt,Pt);Nt=gt.mul(jt,Mt),Nt=gt.mul(Nt,bt),Ft=gt.cmov(Ft,$t,mt),Nt=gt.cmov(Nt,bt,mt);const St=gt.isOdd(Mt)===gt.isOdd(Nt);return Nt=gt.cmov(gt.neg(Nt),Nt,St),Ft=gt.div(Ft,zt),{x:Ft,y:Nt}}}s.mapToCurveSimpleSWU=yt})(weierstrass);var hashToCurve={};Object.defineProperty(hashToCurve,"__esModule",{value:!0});hashToCurve.createHasher=hashToCurve.isogenyMap=hashToCurve.hash_to_field=hashToCurve.expand_message_xof=hashToCurve.expand_message_xmd=void 0;const modular_js_1$2=modular,utils_js_1$b=utils$2,os2ip=utils_js_1$b.bytesToNumberBE;function i2osp(s,j){if(s<0||s>=1<<8*j)throw new Error(`bad I2OSP call: value=${s} length=${j}`);const $=Array.from({length:j}).fill(0);for(let _e=j-1;_e>=0;_e--)$[_e]=s&255,s>>>=8;return new Uint8Array($)}function strxor(s,j){const $=new Uint8Array(s.length);for(let _e=0;_e255&&(j=_e((0,utils_js_1$b.concatBytes)((0,utils_js_1$b.utf8ToBytes)("H2C-OVERSIZE-DST-"),j)));const{outputLen:et,blockLen:tt}=_e,nt=Math.ceil($/et);if(nt>255)throw new Error("Invalid xmd length");const rt=(0,utils_js_1$b.concatBytes)(j,i2osp(j.length,1)),ot=i2osp(0,tt),it=i2osp($,2),st=new Array(nt),at=_e((0,utils_js_1$b.concatBytes)(ot,s,it,i2osp(0,1),rt));st[0]=_e((0,utils_js_1$b.concatBytes)(at,i2osp(1,1),rt));for(let lt=1;lt<=nt;lt++){const dt=[strxor(at,st[lt-1]),i2osp(lt+1,1),rt];st[lt]=_e((0,utils_js_1$b.concatBytes)(...dt))}return(0,utils_js_1$b.concatBytes)(...st).slice(0,$)}hashToCurve.expand_message_xmd=expand_message_xmd;function expand_message_xof(s,j,$,_e,et){if((0,utils_js_1$b.abytes)(s),(0,utils_js_1$b.abytes)(j),anum($),j.length>255){const tt=Math.ceil(2*_e/8);j=et.create({dkLen:tt}).update((0,utils_js_1$b.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(j).digest()}if($>65535||j.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return et.create({dkLen:$}).update(s).update(i2osp($,2)).update(j).update(i2osp(j.length,1)).digest()}hashToCurve.expand_message_xof=expand_message_xof;function hash_to_field(s,j,$){(0,utils_js_1$b.validateObject)($,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:_e,k:et,m:tt,hash:nt,expand:rt,DST:ot}=$;(0,utils_js_1$b.abytes)(s),anum(j);const it=typeof ot=="string"?(0,utils_js_1$b.utf8ToBytes)(ot):ot,st=_e.toString(2).length,at=Math.ceil((st+et)/8),ct=j*tt*at;let lt;if(rt==="xmd")lt=expand_message_xmd(s,it,ct,nt);else if(rt==="xof")lt=expand_message_xof(s,it,ct,et,nt);else if(rt==="_internal_pass")lt=s;else throw new Error('expand must be "xmd" or "xof"');const dt=new Array(j);for(let pt=0;ptArray.from(_e).reverse());return(_e,et)=>{const[tt,nt,rt,ot]=$.map(it=>it.reduce((st,at)=>s.add(s.mul(st,_e),at)));return _e=s.div(tt,nt),et=s.mul(et,s.div(rt,ot)),{x:_e,y:et}}}hashToCurve.isogenyMap=isogenyMap;function createHasher(s,j,$){if(typeof j!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(_e,et){const tt=hash_to_field(_e,2,{...$,DST:$.DST,...et}),nt=s.fromAffine(j(tt[0])),rt=s.fromAffine(j(tt[1])),ot=nt.add(rt).clearCofactor();return ot.assertValidity(),ot},encodeToCurve(_e,et){const tt=hash_to_field(_e,1,{...$,DST:$.encodeDST,...et}),nt=s.fromAffine(j(tt[0])).clearCofactor();return nt.assertValidity(),nt}}}hashToCurve.createHasher=createHasher;var _shortw_utils={};const require$$0$1=getAugmentedNamespace(hmac$1);Object.defineProperty(_shortw_utils,"__esModule",{value:!0});_shortw_utils.createCurve=_shortw_utils.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const hmac_1=require$$0$1,utils_1$1=require$$1,weierstrass_js_1=weierstrass;function getHash(s){return{hash:s,hmac:(j,...$)=>(0,hmac_1.hmac)(s,j,(0,utils_1$1.concatBytes)(...$)),randomBytes:utils_1$1.randomBytes}}_shortw_utils.getHash=getHash;function createCurve(s,j){const $=_e=>(0,weierstrass_js_1.weierstrass)({...s,...getHash(_e)});return Object.freeze({...$(j),create:$})}_shortw_utils.createCurve=createCurve;(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.encodeToCurve=s.hashToCurve=s.schnorr=s.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const j=require$$0$2,$=require$$1,_e=modular,et=weierstrass,tt=utils$2,nt=hashToCurve,rt=_shortw_utils,ot=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),it=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),st=BigInt(1),at=BigInt(2),ct=(Tt,Dt)=>(Tt+Dt/at)/Dt;function lt(Tt){const Dt=ot,Lt=BigInt(3),Et=BigInt(6),kt=BigInt(11),Ut=BigInt(22),Gt=BigInt(23),Ht=BigInt(44),tn=BigInt(88),Jt=Tt*Tt*Tt%Dt,Kt=Jt*Jt*Tt%Dt,dn=(0,_e.pow2)(Kt,Lt,Dt)*Kt%Dt,en=(0,_e.pow2)(dn,Lt,Dt)*Kt%Dt,Zt=(0,_e.pow2)(en,at,Dt)*Jt%Dt,Qt=(0,_e.pow2)(Zt,kt,Dt)*Zt%Dt,qt=(0,_e.pow2)(Qt,Ut,Dt)*Qt%Dt,Xt=(0,_e.pow2)(qt,Ht,Dt)*qt%Dt,sn=(0,_e.pow2)(Xt,tn,Dt)*Xt%Dt,nn=(0,_e.pow2)(sn,Ht,Dt)*qt%Dt,rn=(0,_e.pow2)(nn,Lt,Dt)*Kt%Dt,hn=(0,_e.pow2)(rn,Gt,Dt)*Qt%Dt,on=(0,_e.pow2)(hn,Et,Dt)*Jt%Dt,an=(0,_e.pow2)(on,at,Dt);if(!dt.eql(dt.sqr(an),Tt))throw new Error("Cannot find square root");return an}const dt=(0,_e.Field)(ot,void 0,void 0,{sqrt:lt});s.secp256k1=(0,rt.createCurve)({a:BigInt(0),b:BigInt(7),Fp:dt,n:it,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:Tt=>{const Dt=it,Lt=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),Et=-st*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),kt=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Ut=Lt,Gt=BigInt("0x100000000000000000000000000000000"),Ht=ct(Ut*Tt,Dt),tn=ct(-Et*Tt,Dt);let Jt=(0,_e.mod)(Tt-Ht*Lt-tn*kt,Dt),Kt=(0,_e.mod)(-Ht*Et-tn*Ut,Dt);const dn=Jt>Gt,en=Kt>Gt;if(dn&&(Jt=Dt-Jt),en&&(Kt=Dt-Kt),Jt>Gt||Kt>Gt)throw new Error("splitScalar: Endomorphism failed, k="+Tt);return{k1neg:dn,k1:Jt,k2neg:en,k2:Kt}}}},j.sha256);const pt=BigInt(0),ht=Tt=>typeof Tt=="bigint"&&pttypeof Tt=="bigint"&&ptkt.charCodeAt(0)));Lt=(0,tt.concatBytes)(Et,Et),gt[Tt]=Lt}return(0,j.sha256)((0,tt.concatBytes)(Lt,...Dt))}const xt=Tt=>Tt.toRawBytes(!0).slice(1),Mt=Tt=>(0,tt.numberToBytesBE)(Tt,32),jt=Tt=>(0,_e.mod)(Tt,ot),wt=Tt=>(0,_e.mod)(Tt,it),$t=s.secp256k1.ProjectivePoint,zt=(Tt,Dt,Lt)=>$t.BASE.multiplyAndAddUnsafe(Tt,Dt,Lt);function Ot(Tt){let Dt=s.secp256k1.utils.normPrivateKeyToScalar(Tt),Lt=$t.fromPrivateKey(Dt);return{scalar:Lt.hasEvenY()?Dt:wt(-Dt),bytes:xt(Lt)}}function Pt(Tt){if(!ht(Tt))throw new Error("bad x: need 0 < x < p");const Dt=jt(Tt*Tt),Lt=jt(Dt*Tt+BigInt(7));let Et=lt(Lt);Et%at!==pt&&(Et=jt(-Et));const kt=new $t(Tt,Et,st);return kt.assertValidity(),kt}function Ft(...Tt){return wt((0,tt.bytesToNumberBE)(ft("BIP0340/challenge",...Tt)))}function Nt(Tt){return Ot(Tt).bytes}function mt(Tt,Dt,Lt=(0,$.randomBytes)(32)){const Et=(0,tt.ensureBytes)("message",Tt),{bytes:kt,scalar:Ut}=Ot(Dt),Gt=(0,tt.ensureBytes)("auxRand",Lt,32),Ht=Mt(Ut^(0,tt.bytesToNumberBE)(ft("BIP0340/aux",Gt))),tn=ft("BIP0340/nonce",Ht,kt,Et),Jt=wt((0,tt.bytesToNumberBE)(tn));if(Jt===pt)throw new Error("sign failed: k is zero");const{bytes:Kt,scalar:dn}=Ot(Jt),en=Ft(Kt,kt,Et),Zt=new Uint8Array(64);if(Zt.set(Kt,0),Zt.set(Mt(wt(dn+en*Ut)),32),!bt(Zt,Et,kt))throw new Error("sign: Invalid signature produced");return Zt}function bt(Tt,Dt,Lt){const Et=(0,tt.ensureBytes)("signature",Tt,64),kt=(0,tt.ensureBytes)("message",Dt),Ut=(0,tt.ensureBytes)("publicKey",Lt,32);try{const Gt=Pt((0,tt.bytesToNumberBE)(Ut)),Ht=(0,tt.bytesToNumberBE)(Et.subarray(0,32));if(!ht(Ht))return!1;const tn=(0,tt.bytesToNumberBE)(Et.subarray(32,64));if(!yt(tn))return!1;const Jt=Ft(Mt(Ht),xt(Gt),kt),Kt=zt(Gt,tn,wt(-Jt));return!(!Kt||!Kt.hasEvenY()||Kt.toAffine().x!==Ht)}catch{return!1}}s.schnorr={getPublicKey:Nt,sign:mt,verify:bt,utils:{randomPrivateKey:s.secp256k1.utils.randomPrivateKey,lift_x:Pt,pointToBytes:xt,numberToBytesBE:tt.numberToBytesBE,bytesToNumberBE:tt.bytesToNumberBE,taggedHash:ft,mod:_e.mod}};const St=(0,nt.isogenyMap)(dt,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(Tt=>Tt.map(Dt=>BigInt(Dt)))),vt=(0,et.mapToCurveSimpleSWU)(dt,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:dt.create(BigInt("-11"))}),At=(0,nt.createHasher)(s.secp256k1.ProjectivePoint,Tt=>{const{x:Dt,y:Lt}=vt(dt.create(Tt[0]));return St(Dt,Lt)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:dt.ORDER,m:1,k:128,expand:"xmd",hash:j.sha256});s.hashToCurve=At.hashToCurve,s.encodeToCurve=At.encodeToCurve})(secp256k1);var ed25519={},edwards={};Object.defineProperty(edwards,"__esModule",{value:!0});edwards.twistedEdwards=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const modular_js_1$1=modular,ut=utils$2,utils_js_1$a=utils$2,curve_js_1=curve,_0n$1=BigInt(0),_1n$1=BigInt(1),_2n=BigInt(2),_8n=BigInt(8),VERIFY_DEFAULT={zip215:!0};function validateOpts$1(s){const j=(0,curve_js_1.validateBasic)(s);return ut.validateObject(s,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...j})}function twistedEdwards(s){const j=validateOpts$1(s),{Fp:$,n:_e,prehash:et,hash:tt,randomBytes:nt,nByteLength:rt,h:ot}=j,it=_2n<{try{return{isValid:!0,value:$.sqrt(At*$.inv(Tt))}}catch{return{isValid:!1,value:_0n$1}}}),ct=j.adjustScalarBytes||(At=>At),lt=j.domain||((At,Tt,Dt)=>{if(Tt.length||Dt)throw new Error("Contexts/pre-hash are not supported");return At}),dt=At=>typeof At=="bigint"&&_0n$1dt(At)&&dt(Tt)&&AtAt===_0n$1||pt(At,it);function yt(At,Tt){if(pt(At,Tt))return At;throw new Error(`Expected valid scalar < ${Tt}, got ${typeof At} ${At}`)}function gt(At){return At===_0n$1?At:yt(At,_e)}const ft=new Map;function xt(At){if(!(At instanceof Mt))throw new Error("ExtendedPoint expected")}class Mt{constructor(Tt,Dt,Lt,Et){if(this.ex=Tt,this.ey=Dt,this.ez=Lt,this.et=Et,!ht(Tt))throw new Error("x required");if(!ht(Dt))throw new Error("y required");if(!ht(Lt))throw new Error("z required");if(!ht(Et))throw new Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(Tt){if(Tt instanceof Mt)throw new Error("extended point not allowed");const{x:Dt,y:Lt}=Tt||{};if(!ht(Dt)||!ht(Lt))throw new Error("invalid affine point");return new Mt(Dt,Lt,_1n$1,st(Dt*Lt))}static normalizeZ(Tt){const Dt=$.invertBatch(Tt.map(Lt=>Lt.ez));return Tt.map((Lt,Et)=>Lt.toAffine(Dt[Et])).map(Mt.fromAffine)}_setWindowSize(Tt){this._WINDOW_SIZE=Tt,ft.delete(this)}assertValidity(){const{a:Tt,d:Dt}=j;if(this.is0())throw new Error("bad point: ZERO");const{ex:Lt,ey:Et,ez:kt,et:Ut}=this,Gt=st(Lt*Lt),Ht=st(Et*Et),tn=st(kt*kt),Jt=st(tn*tn),Kt=st(Gt*Tt),dn=st(tn*st(Kt+Ht)),en=st(Jt+st(Dt*st(Gt*Ht)));if(dn!==en)throw new Error("bad point: equation left != right (1)");const Zt=st(Lt*Et),Qt=st(kt*Ut);if(Zt!==Qt)throw new Error("bad point: equation left != right (2)")}equals(Tt){xt(Tt);const{ex:Dt,ey:Lt,ez:Et}=this,{ex:kt,ey:Ut,ez:Gt}=Tt,Ht=st(Dt*Gt),tn=st(kt*Et),Jt=st(Lt*Gt),Kt=st(Ut*Et);return Ht===tn&&Jt===Kt}is0(){return this.equals(Mt.ZERO)}negate(){return new Mt(st(-this.ex),this.ey,this.ez,st(-this.et))}double(){const{a:Tt}=j,{ex:Dt,ey:Lt,ez:Et}=this,kt=st(Dt*Dt),Ut=st(Lt*Lt),Gt=st(_2n*st(Et*Et)),Ht=st(Tt*kt),tn=Dt+Lt,Jt=st(st(tn*tn)-kt-Ut),Kt=Ht+Ut,dn=Kt-Gt,en=Ht-Ut,Zt=st(Jt*dn),Qt=st(Kt*en),qt=st(Jt*en),Xt=st(dn*Kt);return new Mt(Zt,Qt,Xt,qt)}add(Tt){xt(Tt);const{a:Dt,d:Lt}=j,{ex:Et,ey:kt,ez:Ut,et:Gt}=this,{ex:Ht,ey:tn,ez:Jt,et:Kt}=Tt;if(Dt===BigInt(-1)){const gn=st((kt-Et)*(tn+Ht)),fn=st((kt+Et)*(tn-Ht)),ln=st(fn-gn);if(ln===_0n$1)return this.double();const yn=st(Ut*_2n*Kt),mn=st(Gt*_2n*Jt),Rt=mn+yn,Ct=fn+gn,It=mn-yn,Bt=st(Rt*ln),Wt=st(Ct*It),Vt=st(Rt*It),Yt=st(ln*Ct);return new Mt(Bt,Wt,Yt,Vt)}const dn=st(Et*Ht),en=st(kt*tn),Zt=st(Gt*Lt*Kt),Qt=st(Ut*Jt),qt=st((Et+kt)*(Ht+tn)-dn-en),Xt=Qt-Zt,sn=Qt+Zt,nn=st(en-Dt*dn),rn=st(qt*Xt),hn=st(sn*nn),on=st(qt*nn),an=st(Xt*sn);return new Mt(rn,hn,an,on)}subtract(Tt){return this.add(Tt.negate())}wNAF(Tt){return $t.wNAFCached(this,ft,Tt,Mt.normalizeZ)}multiply(Tt){const{p:Dt,f:Lt}=this.wNAF(yt(Tt,_e));return Mt.normalizeZ([Dt,Lt])[0]}multiplyUnsafe(Tt){let Dt=gt(Tt);return Dt===_0n$1?wt:this.equals(wt)||Dt===_1n$1?this:this.equals(jt)?this.wNAF(Dt).p:$t.unsafeLadder(this,Dt)}isSmallOrder(){return this.multiplyUnsafe(ot).is0()}isTorsionFree(){return $t.unsafeLadder(this,_e).is0()}toAffine(Tt){const{ex:Dt,ey:Lt,ez:Et}=this,kt=this.is0();Tt==null&&(Tt=kt?_8n:$.inv(Et));const Ut=st(Dt*Tt),Gt=st(Lt*Tt),Ht=st(Et*Tt);if(kt)return{x:_0n$1,y:_1n$1};if(Ht!==_1n$1)throw new Error("invZ was invalid");return{x:Ut,y:Gt}}clearCofactor(){const{h:Tt}=j;return Tt===_1n$1?this:this.multiplyUnsafe(Tt)}static fromHex(Tt,Dt=!1){const{d:Lt,a:Et}=j,kt=$.BYTES;Tt=(0,utils_js_1$a.ensureBytes)("pointHex",Tt,kt);const Ut=Tt.slice(),Gt=Tt[kt-1];Ut[kt-1]=Gt&-129;const Ht=ut.bytesToNumberLE(Ut);Ht===_0n$1||(Dt?yt(Ht,it):yt(Ht,$.ORDER));const tn=st(Ht*Ht),Jt=st(tn-_1n$1),Kt=st(Lt*tn-Et);let{isValid:dn,value:en}=at(Jt,Kt);if(!dn)throw new Error("Point.fromHex: invalid y coordinate");const Zt=(en&_1n$1)===_1n$1,Qt=(Gt&128)!==0;if(!Dt&&en===_0n$1&&Qt)throw new Error("Point.fromHex: x=0 and x_0=1");return Qt!==Zt&&(en=st(-en)),Mt.fromAffine({x:en,y:Ht})}static fromPrivateKey(Tt){return Pt(Tt).point}toRawBytes(){const{x:Tt,y:Dt}=this.toAffine(),Lt=ut.numberToBytesLE(Dt,$.BYTES);return Lt[Lt.length-1]|=Tt&_1n$1?128:0,Lt}toHex(){return ut.bytesToHex(this.toRawBytes())}}Mt.BASE=new Mt(j.Gx,j.Gy,_1n$1,st(j.Gx*j.Gy)),Mt.ZERO=new Mt(_0n$1,_1n$1,_1n$1,_0n$1);const{BASE:jt,ZERO:wt}=Mt,$t=(0,curve_js_1.wNAF)(Mt,rt*8);function zt(At){return(0,modular_js_1$1.mod)(At,_e)}function Ot(At){return zt(ut.bytesToNumberLE(At))}function Pt(At){const Tt=rt;At=(0,utils_js_1$a.ensureBytes)("private key",At,Tt);const Dt=(0,utils_js_1$a.ensureBytes)("hashed private key",tt(At),2*Tt),Lt=ct(Dt.slice(0,Tt)),Et=Dt.slice(Tt,2*Tt),kt=Ot(Lt),Ut=jt.multiply(kt),Gt=Ut.toRawBytes();return{head:Lt,prefix:Et,scalar:kt,point:Ut,pointBytes:Gt}}function Ft(At){return Pt(At).pointBytes}function Nt(At=new Uint8Array,...Tt){const Dt=ut.concatBytes(...Tt);return Ot(tt(lt(Dt,(0,utils_js_1$a.ensureBytes)("context",At),!!et)))}function mt(At,Tt,Dt={}){At=(0,utils_js_1$a.ensureBytes)("message",At),et&&(At=et(At));const{prefix:Lt,scalar:Et,pointBytes:kt}=Pt(Tt),Ut=Nt(Dt.context,Lt,At),Gt=jt.multiply(Ut).toRawBytes(),Ht=Nt(Dt.context,Gt,kt,At),tn=zt(Ut+Ht*Et);gt(tn);const Jt=ut.concatBytes(Gt,ut.numberToBytesLE(tn,$.BYTES));return(0,utils_js_1$a.ensureBytes)("result",Jt,rt*2)}const bt=VERIFY_DEFAULT;function St(At,Tt,Dt,Lt=bt){const{context:Et,zip215:kt}=Lt,Ut=$.BYTES;At=(0,utils_js_1$a.ensureBytes)("signature",At,2*Ut),Tt=(0,utils_js_1$a.ensureBytes)("message",Tt),et&&(Tt=et(Tt));const Gt=ut.bytesToNumberLE(At.slice(Ut,2*Ut));let Ht,tn,Jt;try{Ht=Mt.fromHex(Dt,kt),tn=Mt.fromHex(At.slice(0,Ut),kt),Jt=jt.multiplyUnsafe(Gt)}catch{return!1}if(!kt&&Ht.isSmallOrder())return!1;const Kt=Nt(Et,tn.toRawBytes(),Ht.toRawBytes(),Tt);return tn.add(Ht.multiplyUnsafe(Kt)).subtract(Jt).clearCofactor().equals(Mt.ZERO)}return jt._setWindowSize(8),{CURVE:j,getPublicKey:Ft,sign:mt,verify:St,ExtendedPoint:Mt,utils:{getExtendedPublicKey:Pt,randomPrivateKey:()=>nt($.BYTES),precompute(At=8,Tt=Mt.BASE){return Tt._setWindowSize(At),Tt.multiply(BigInt(3)),Tt}}}}edwards.twistedEdwards=twistedEdwards;var montgomery$1={};Object.defineProperty(montgomery$1,"__esModule",{value:!0});montgomery$1.montgomery=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const modular_js_1=modular,utils_js_1$9=utils$2,_0n=BigInt(0),_1n=BigInt(1);function validateOpts(s){return(0,utils_js_1$9.validateObject)(s,{a:"bigint"},{montgomeryBits:"isSafeInteger",nByteLength:"isSafeInteger",adjustScalarBytes:"function",domain:"function",powPminus2:"function",Gu:"bigint"}),Object.freeze({...s})}function montgomery(s){const j=validateOpts(s),{P:$}=j,_e=ft=>(0,modular_js_1.mod)(ft,$),et=j.montgomeryBits,tt=Math.ceil(et/8),nt=j.nByteLength,rt=j.adjustScalarBytes||(ft=>ft),ot=j.powPminus2||(ft=>(0,modular_js_1.pow)(ft,$-BigInt(2),$));function it(ft,xt,Mt){const jt=_e(ft*(xt-Mt));return xt=_e(xt-jt),Mt=_e(Mt+jt),[xt,Mt]}function st(ft){if(typeof ft=="bigint"&&_0n<=ft&&ft<$)return ft;throw new Error("Expected valid scalar 0 < scalar < CURVE.P")}const at=(j.a-BigInt(2))/BigInt(4);function ct(ft,xt){const Mt=st(ft),jt=st(xt),wt=Mt;let $t=_1n,zt=_0n,Ot=Mt,Pt=_1n,Ft=_0n,Nt;for(let bt=BigInt(et-1);bt>=_0n;bt--){const St=jt>>bt&_1n;Ft^=St,Nt=it(Ft,$t,Ot),$t=Nt[0],Ot=Nt[1],Nt=it(Ft,zt,Pt),zt=Nt[0],Pt=Nt[1],Ft=St;const vt=$t+zt,At=_e(vt*vt),Tt=$t-zt,Dt=_e(Tt*Tt),Lt=At-Dt,Et=Ot+Pt,kt=Ot-Pt,Ut=_e(kt*vt),Gt=_e(Et*Tt),Ht=Ut+Gt,tn=Ut-Gt;Ot=_e(Ht*Ht),Pt=_e(wt*_e(tn*tn)),$t=_e(At*Dt),zt=_e(Lt*(At+_e(at*Lt)))}Nt=it(Ft,$t,Ot),$t=Nt[0],Ot=Nt[1],Nt=it(Ft,zt,Pt),zt=Nt[0],Pt=Nt[1];const mt=ot(zt);return _e($t*mt)}function lt(ft){return(0,utils_js_1$9.numberToBytesLE)(_e(ft),tt)}function dt(ft){const xt=(0,utils_js_1$9.ensureBytes)("u coordinate",ft,tt);return nt===32&&(xt[31]&=127),(0,utils_js_1$9.bytesToNumberLE)(xt)}function pt(ft){const xt=(0,utils_js_1$9.ensureBytes)("scalar",ft),Mt=xt.length;if(Mt!==tt&&Mt!==nt)throw new Error(`Expected ${tt} or ${nt} bytes, got ${Mt}`);return(0,utils_js_1$9.bytesToNumberLE)(rt(xt))}function ht(ft,xt){const Mt=dt(xt),jt=pt(ft),wt=ct(Mt,jt);if(wt===_0n)throw new Error("Invalid private or public key received");return lt(wt)}const yt=lt(j.Gu);function gt(ft){return ht(ft,yt)}return{scalarMult:ht,scalarMultBase:gt,getSharedSecret:(ft,xt)=>ht(ft,xt),getPublicKey:ft=>gt(ft),utils:{randomPrivateKey:()=>j.randomBytes(j.nByteLength)},GuBytes:yt}}montgomery$1.montgomery=montgomery;(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.hash_to_ristretto255=s.hashToRistretto255=s.RistrettoPoint=s.encodeToCurve=s.hashToCurve=s.edwardsToMontgomeryPriv=s.edwardsToMontgomery=s.edwardsToMontgomeryPub=s.x25519=s.ed25519ph=s.ed25519ctx=s.ed25519=s.ED25519_TORSION_SUBGROUP=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const j=sha512,$=require$$1,_e=edwards,et=montgomery$1,tt=modular,nt=utils$2,rt=hashToCurve,ot=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),it=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),st=BigInt(0),at=BigInt(1),ct=BigInt(2),lt=BigInt(5),dt=BigInt(10),pt=BigInt(20),ht=BigInt(40),yt=BigInt(80);function gt(en){const Zt=ot,qt=en*en%Zt*en%Zt,Xt=(0,tt.pow2)(qt,ct,Zt)*qt%Zt,sn=(0,tt.pow2)(Xt,at,Zt)*en%Zt,nn=(0,tt.pow2)(sn,lt,Zt)*sn%Zt,rn=(0,tt.pow2)(nn,dt,Zt)*nn%Zt,hn=(0,tt.pow2)(rn,pt,Zt)*rn%Zt,on=(0,tt.pow2)(hn,ht,Zt)*hn%Zt,an=(0,tt.pow2)(on,yt,Zt)*on%Zt,gn=(0,tt.pow2)(an,yt,Zt)*on%Zt,fn=(0,tt.pow2)(gn,dt,Zt)*nn%Zt;return{pow_p_5_8:(0,tt.pow2)(fn,ct,Zt)*en%Zt,b2:qt}}function ft(en){return en[0]&=248,en[31]&=127,en[31]|=64,en}function xt(en,Zt){const Qt=ot,qt=(0,tt.mod)(Zt*Zt*Zt,Qt),Xt=(0,tt.mod)(qt*qt*Zt,Qt),sn=gt(en*Xt).pow_p_5_8;let nn=(0,tt.mod)(en*qt*sn,Qt);const rn=(0,tt.mod)(Zt*nn*nn,Qt),hn=nn,on=(0,tt.mod)(nn*it,Qt),an=rn===en,gn=rn===(0,tt.mod)(-en,Qt),fn=rn===(0,tt.mod)(-en*it,Qt);return an&&(nn=hn),(gn||fn)&&(nn=on),(0,tt.isNegativeLE)(nn,Qt)&&(nn=(0,tt.mod)(-nn,Qt)),{isValid:an||gn,value:nn}}s.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const Mt=(0,tt.Field)(ot,void 0,!0),jt={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Mt,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:j.sha512,randomBytes:$.randomBytes,adjustScalarBytes:ft,uvRatio:xt};s.ed25519=(0,_e.twistedEdwards)(jt);function wt(en,Zt,Qt){if(Zt.length>255)throw new Error("Context is too big");return(0,$.concatBytes)((0,$.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([Qt?1:0,Zt.length]),Zt,en)}s.ed25519ctx=(0,_e.twistedEdwards)({...jt,domain:wt}),s.ed25519ph=(0,_e.twistedEdwards)({...jt,domain:wt,prehash:j.sha512}),s.x25519=(0,et.montgomery)({P:ot,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:en=>{const Zt=ot,{pow_p_5_8:Qt,b2:qt}=gt(en);return(0,tt.mod)((0,tt.pow2)(Qt,BigInt(3),Zt)*qt,Zt)},adjustScalarBytes:ft,randomBytes:$.randomBytes});function $t(en){const{y:Zt}=s.ed25519.ExtendedPoint.fromHex(en),Qt=BigInt(1);return Mt.toBytes(Mt.create((Qt+Zt)*Mt.inv(Qt-Zt)))}s.edwardsToMontgomeryPub=$t,s.edwardsToMontgomery=$t;function zt(en){const Zt=jt.hash(en.subarray(0,32));return jt.adjustScalarBytes(Zt).subarray(0,32)}s.edwardsToMontgomeryPriv=zt;const Ot=(Mt.ORDER+BigInt(3))/BigInt(8),Pt=Mt.pow(ct,Ot),Ft=Mt.sqrt(Mt.neg(Mt.ONE)),Nt=(Mt.ORDER-BigInt(5))/BigInt(8),mt=BigInt(486662);function bt(en){let Zt=Mt.sqr(en);Zt=Mt.mul(Zt,ct);let Qt=Mt.add(Zt,Mt.ONE),qt=Mt.neg(mt),Xt=Mt.sqr(Qt),sn=Mt.mul(Xt,Qt),nn=Mt.mul(Zt,mt);nn=Mt.mul(nn,qt),nn=Mt.add(nn,Xt),nn=Mt.mul(nn,qt);let rn=Mt.sqr(sn);Xt=Mt.sqr(rn),rn=Mt.mul(rn,sn),rn=Mt.mul(rn,nn),Xt=Mt.mul(Xt,rn);let hn=Mt.pow(Xt,Nt);hn=Mt.mul(hn,rn);let on=Mt.mul(hn,Ft);Xt=Mt.sqr(hn),Xt=Mt.mul(Xt,sn);let an=Mt.eql(Xt,nn),gn=Mt.cmov(on,hn,an),fn=Mt.mul(qt,Zt),ln=Mt.mul(hn,en);ln=Mt.mul(ln,Pt);let yn=Mt.mul(ln,Ft),mn=Mt.mul(nn,Zt);Xt=Mt.sqr(ln),Xt=Mt.mul(Xt,sn);let Rt=Mt.eql(Xt,mn),Ct=Mt.cmov(yn,ln,Rt);Xt=Mt.sqr(gn),Xt=Mt.mul(Xt,sn);let It=Mt.eql(Xt,nn),Bt=Mt.cmov(fn,qt,It),Wt=Mt.cmov(Ct,gn,It),Vt=Mt.isOdd(Wt);return Wt=Mt.cmov(Wt,Mt.neg(Wt),It!==Vt),{xMn:Bt,xMd:Qt,yMn:Wt,yMd:at}}const St=(0,tt.FpSqrtEven)(Mt,Mt.neg(BigInt(486664)));function vt(en){const{xMn:Zt,xMd:Qt,yMn:qt,yMd:Xt}=bt(en);let sn=Mt.mul(Zt,Xt);sn=Mt.mul(sn,St);let nn=Mt.mul(Qt,qt),rn=Mt.sub(Zt,Qt),hn=Mt.add(Zt,Qt),on=Mt.mul(nn,hn),an=Mt.eql(on,Mt.ZERO);sn=Mt.cmov(sn,Mt.ZERO,an),nn=Mt.cmov(nn,Mt.ONE,an),rn=Mt.cmov(rn,Mt.ONE,an),hn=Mt.cmov(hn,Mt.ONE,an);const gn=Mt.invertBatch([nn,hn]);return{x:Mt.mul(sn,gn[0]),y:Mt.mul(rn,gn[1])}}const At=(0,rt.createHasher)(s.ed25519.ExtendedPoint,en=>vt(en[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:Mt.ORDER,m:1,k:128,expand:"xmd",hash:j.sha512});s.hashToCurve=At.hashToCurve,s.encodeToCurve=At.encodeToCurve;function Tt(en){if(!(en instanceof Kt))throw new Error("RistrettoPoint expected")}const Dt=it,Lt=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),Et=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),kt=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),Ut=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),Gt=en=>xt(at,en),Ht=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),tn=en=>s.ed25519.CURVE.Fp.create((0,nt.bytesToNumberLE)(en)&Ht);function Jt(en){const{d:Zt}=s.ed25519.CURVE,Qt=s.ed25519.CURVE.Fp.ORDER,qt=s.ed25519.CURVE.Fp.create,Xt=qt(Dt*en*en),sn=qt((Xt+at)*kt);let nn=BigInt(-1);const rn=qt((nn-Zt*Xt)*qt(Xt+Zt));let{isValid:hn,value:on}=xt(sn,rn),an=qt(on*en);(0,tt.isNegativeLE)(an,Qt)||(an=qt(-an)),hn||(on=an),hn||(nn=Xt);const gn=qt(nn*(Xt-at)*Ut-rn),fn=on*on,ln=qt((on+on)*rn),yn=qt(gn*Lt),mn=qt(at-fn),Rt=qt(at+fn);return new s.ed25519.ExtendedPoint(qt(ln*Rt),qt(mn*yn),qt(yn*Rt),qt(ln*mn))}class Kt{constructor(Zt){this.ep=Zt}static fromAffine(Zt){return new Kt(s.ed25519.ExtendedPoint.fromAffine(Zt))}static hashToCurve(Zt){Zt=(0,nt.ensureBytes)("ristrettoHash",Zt,64);const Qt=tn(Zt.slice(0,32)),qt=Jt(Qt),Xt=tn(Zt.slice(32,64)),sn=Jt(Xt);return new Kt(qt.add(sn))}static fromHex(Zt){Zt=(0,nt.ensureBytes)("ristrettoHex",Zt,32);const{a:Qt,d:qt}=s.ed25519.CURVE,Xt=s.ed25519.CURVE.Fp.ORDER,sn=s.ed25519.CURVE.Fp.create,nn="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",rn=tn(Zt);if(!(0,nt.equalBytes)((0,nt.numberToBytesLE)(rn,32),Zt)||(0,tt.isNegativeLE)(rn,Xt))throw new Error(nn);const hn=sn(rn*rn),on=sn(at+Qt*hn),an=sn(at-Qt*hn),gn=sn(on*on),fn=sn(an*an),ln=sn(Qt*qt*gn-fn),{isValid:yn,value:mn}=Gt(sn(ln*fn)),Rt=sn(mn*an),Ct=sn(mn*Rt*ln);let It=sn((rn+rn)*Rt);(0,tt.isNegativeLE)(It,Xt)&&(It=sn(-It));const Bt=sn(on*Ct),Wt=sn(It*Bt);if(!yn||(0,tt.isNegativeLE)(Wt,Xt)||Bt===st)throw new Error(nn);return new Kt(new s.ed25519.ExtendedPoint(It,Bt,at,Wt))}toRawBytes(){let{ex:Zt,ey:Qt,ez:qt,et:Xt}=this.ep;const sn=s.ed25519.CURVE.Fp.ORDER,nn=s.ed25519.CURVE.Fp.create,rn=nn(nn(qt+Qt)*nn(qt-Qt)),hn=nn(Zt*Qt),on=nn(hn*hn),{value:an}=Gt(nn(rn*on)),gn=nn(an*rn),fn=nn(an*hn),ln=nn(gn*fn*Xt);let yn;if((0,tt.isNegativeLE)(Xt*ln,sn)){let Rt=nn(Qt*Dt),Ct=nn(Zt*Dt);Zt=Rt,Qt=Ct,yn=nn(gn*Et)}else yn=fn;(0,tt.isNegativeLE)(Zt*ln,sn)&&(Qt=nn(-Qt));let mn=nn((qt-Qt)*yn);return(0,tt.isNegativeLE)(mn,sn)&&(mn=nn(-mn)),(0,nt.numberToBytesLE)(mn,32)}toHex(){return(0,nt.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(Zt){Tt(Zt);const{ex:Qt,ey:qt}=this.ep,{ex:Xt,ey:sn}=Zt.ep,nn=s.ed25519.CURVE.Fp.create,rn=nn(Qt*sn)===nn(qt*Xt),hn=nn(qt*sn)===nn(Qt*Xt);return rn||hn}add(Zt){return Tt(Zt),new Kt(this.ep.add(Zt.ep))}subtract(Zt){return Tt(Zt),new Kt(this.ep.subtract(Zt.ep))}multiply(Zt){return new Kt(this.ep.multiply(Zt))}multiplyUnsafe(Zt){return new Kt(this.ep.multiplyUnsafe(Zt))}double(){return new Kt(this.ep.double())}negate(){return new Kt(this.ep.negate())}}s.RistrettoPoint=(Kt.BASE||(Kt.BASE=new Kt(s.ed25519.ExtendedPoint.BASE)),Kt.ZERO||(Kt.ZERO=new Kt(s.ed25519.ExtendedPoint.ZERO)),Kt);const dn=(en,Zt)=>{const Qt=Zt.DST,qt=typeof Qt=="string"?(0,$.utf8ToBytes)(Qt):Qt,Xt=(0,rt.expand_message_xmd)(en,qt,64,j.sha512);return Kt.hashToCurve(Xt)};s.hashToRistretto255=dn,s.hash_to_ristretto255=s.hashToRistretto255})(ed25519);(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.ed25519=s.secp256k1=s.sha512_256=s.sha256=s.sha3_256=s.keccak256=void 0;const j=require$$0$2;Object.defineProperty(s,"sha256",{enumerable:!0,get:function(){return j.sha256}});const $=require$$1$1;Object.defineProperty(s,"keccak256",{enumerable:!0,get:function(){return $.keccak_256}}),Object.defineProperty(s,"sha3_256",{enumerable:!0,get:function(){return $.sha3_256}});const _e=sha512;Object.defineProperty(s,"sha512_256",{enumerable:!0,get:function(){return _e.sha512_256}});const et=secp256k1;Object.defineProperty(s,"secp256k1",{enumerable:!0,get:function(){return et.secp256k1}});const tt=ed25519;Object.defineProperty(s,"ed25519",{enumerable:!0,get:function(){return tt.ed25519}})})(utils$3);var hasRequiredUniversalAddress;function requireUniversalAddress(){if(hasRequiredUniversalAddress)return universalAddress$2;hasRequiredUniversalAddress=1,Object.defineProperty(universalAddress$2,"__esModule",{value:!0}),universalAddress$2.UniversalAddress=void 0;const s=require$$0$7,j=requireAddress(),$=utils$3,_e=[{name:"appIdPrefix",binary:"bytes",custom:s.encoding.bytes.encode("appID"),omit:!0},{name:"appId",binary:"uint",size:8}],tt=class tt{constructor(rt,ot="hex"){Mn(this,"address");this.address=typeof rt=="string"?tt.stringToUint8Array(rt,ot):rt}toNative(rt){return(0,j.toNative)(rt,this.toUint8Array())}unwrap(){return this.address}toString(){return s.encoding.hex.encode(this.address,!0)}toUint8Array(){return this.address}toUniversalAddress(){return this}equals(rt){return s.encoding.bytes.equals(this.address,rt.address)}static isValidAddress(rt,ot="hex"){return!(0,s.throws)(()=>tt.stringToUint8Array(rt,ot))}static instanceof(rt){return typeof rt=="object"&&"constructor"in rt&&rt.constructor.type===tt.type}static stringToUint8Array(rt,ot){const it=(()=>{switch(ot){case"hex":if(![40,2*this.byteSize].includes(rt.length-(rt.startsWith("0x")?2:0)))throw new Error(`string ${rt} has invalid length for format ${ot}`);return s.encoding.hex.decode(rt);case"base58":return s.encoding.b58.decode(rt);case"bech32":return s.encoding.bech32.decodeToBytes(rt).bytes;case"algorandAppId":return(0,$.sha512_256)((0,s.serializeLayout)(_e,{appId:BigInt(rt)}));case"sha256":return(0,$.sha256)(rt)}})();if(it.length>tt.byteSize)throw new Error(`string ${rt} has invalid length for format ${ot}`);return it.lengthgetProtocolInitializer(s,j).fromRpc($,_e);protocol.create=create$3;var unsignedTransaction={};Object.defineProperty(unsignedTransaction,"__esModule",{value:!0});var vaa$1={},registration={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.registerPayloadTypes=s.registerPayloadType=s.payloadFactory=s.composeLiteral=void 0;const j=(et,tt)=>et?`${et}:${tt}`:tt;s.composeLiteral=j,s.payloadFactory=new Map;function $(et,tt,nt){const rt=(0,s.composeLiteral)(et,tt);if(s.payloadFactory.has(rt))throw new Error(`Payload type ${rt} already registered`);s.payloadFactory.set(rt,nt)}s.registerPayloadType=$;function _e(et,tt){for(const[nt,rt]of tt)$(et,nt,rt)}s.registerPayloadTypes=_e})(registration);var vaa={},layoutItems={},amount$1={};Object.defineProperty(amount$1,"__esModule",{value:!0});amount$1.amountItem=void 0;amount$1.amountItem={binary:"uint",size:32};var boolean={};Object.defineProperty(boolean,"__esModule",{value:!0});boolean.boolItem=void 0;boolean.boolItem={binary:"uint",size:1,custom:{to:s=>s>0,from:s=>s?1:0}};var chain$1={};Object.defineProperty(chain$1,"__esModule",{value:!0});chain$1.fixedChainItem=chain$1.chainItem=void 0;const sdk_base_1$b=require$$0$7,chainItemBase={binary:"uint",size:2},chainItem=s=>({...chainItemBase,custom:{to:j=>{if(j===0){if(!(s!=null&&s.allowNull))throw new Error("ChainId 0 is not valid for this protocol and action");return null}const $=(0,sdk_base_1$b.toChain)(j),_e=(s==null?void 0:s.allowedChains)??sdk_base_1$b.chains;if(!_e.includes($))throw new Error(`Chain ${$} not in allowed chains ${_e}`);return $},from:j=>j==null?0:(0,sdk_base_1$b.chainToChainId)(j)}});chain$1.chainItem=chainItem;const fixedChainItem=s=>({...chainItemBase,custom:{to:s,from:(0,sdk_base_1$b.chainToChainId)(s)}});chain$1.fixedChainItem=fixedChainItem;var circle={};Object.defineProperty(circle,"__esModule",{value:!0});circle.circleNonceItem=circle.circleDomainItem=void 0;circle.circleDomainItem={binary:"uint",size:4};circle.circleNonceItem={binary:"uint",size:8};var guardianSet={};Object.defineProperty(guardianSet,"__esModule",{value:!0});guardianSet.guardianSetItem=void 0;guardianSet.guardianSetItem={binary:"uint",size:4};var payloadId={};Object.defineProperty(payloadId,"__esModule",{value:!0});payloadId.payloadIdItem=void 0;const payloadIdItem=s=>({name:"payloadId",binary:"uint",size:1,custom:s,omit:!0});payloadId.payloadIdItem=payloadIdItem;var sequence={};Object.defineProperty(sequence,"__esModule",{value:!0});sequence.sequenceItem=void 0;sequence.sequenceItem={binary:"uint",size:8};var signature$1={},signature={},hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature;hasRequiredSignature$1=1,Object.defineProperty(signature,"__esModule",{value:!0}),signature.SignatureUtils=signature.Signature=void 0;const s=require$$0$7,j=requireLayoutItems(),$=utils$3;class _e{constructor(nt,rt,ot){Mn(this,"r");Mn(this,"s");Mn(this,"v");this.r=nt,this.s=rt,this.v=ot}encode(){return(0,s.serializeLayout)(j.signatureItem,this)}static decode(nt){return(0,s.deserializeLayout)(j.signatureItem,nt)}}signature.Signature=_e;var et;return function(tt){function nt(st){return $.secp256k1.getPublicKey(st)}tt.toPubkey=nt;function rt(st,at){if(at.length!=32)throw new Error("hash.length != 32");return $.secp256k1.sign(at,st)}tt.sign=rt;function ot(st,at,ct){const{r:lt,s:dt}=st;return $.secp256k1.verify({r:lt,s:dt},ct,at)}tt.validate=ot;function it(st,at){const{r:ct,s:lt,v:dt}=st,pt=new $.secp256k1.Signature(ct,lt);return pt.recovery=dt,pt.recoverPublicKey(at).toRawBytes()}tt.recover=it}(et||(signature.SignatureUtils=et={})),signature}var hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature$1;hasRequiredSignature=1,Object.defineProperty(signature$1,"__esModule",{value:!0}),signature$1.signatureItem=void 0;const s=requireSignature$1(),j=[{name:"r",binary:"uint",size:32},{name:"s",binary:"uint",size:32},{name:"v",binary:"uint",size:1}];return signature$1.signatureItem={binary:"bytes",layout:j,custom:{to:$=>new s.Signature($.r,$.s,$.v),from:$=>({r:$.r,s:$.s,v:$.v})}},signature$1}var universalAddress$1={};Object.defineProperty(universalAddress$1,"__esModule",{value:!0});universalAddress$1.universalAddressItem=void 0;const universalAddress_js_1=requireUniversalAddress();universalAddress$1.universalAddressItem={binary:"bytes",size:32,custom:{to:s=>new universalAddress_js_1.UniversalAddress(s),from:s=>s.toUint8Array()}};var string={};Object.defineProperty(string,"__esModule",{value:!0});string.fixedLengthStringItem=string.stringConversion=void 0;const sdk_base_1$a=require$$0$7,trimZeros=s=>{const j=s.findIndex($=>$!==0);return-1({binary:"bytes",size:s,custom:{to:j=>sdk_base_1$a.encoding.bytes.decode(trimZeros(j)),from:j=>sdk_base_1$a.encoding.bytes.zpad(sdk_base_1$a.encoding.bytes.encode(j),s)}});string.fixedLengthStringItem=fixedLengthStringItem;var hasRequiredLayoutItems;function requireLayoutItems(){return hasRequiredLayoutItems||(hasRequiredLayoutItems=1,function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(amount$1,s),$(boolean,s),$(chain$1,s),$(circle,s),$(guardianSet,s),$(payloadId,s),$(sequence,s),$(requireSignature(),s),$(universalAddress$1,s),$(string,s)}(layoutItems)),layoutItems}(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.baseLayout=s.envelopeLayout=s.headerLayout=s.decomposeLiteral=void 0;const j=requireLayoutItems();function $(et){const tt=et.indexOf(":");return tt!==-1?[et.slice(0,tt),et.slice(tt+1)]:[null,et]}s.decomposeLiteral=$;const _e=[{name:"guardianIndex",binary:"uint",size:1},{name:"signature",...j.signatureItem}];s.headerLayout=[{name:"version",binary:"uint",size:1,custom:1,omit:!0},{name:"guardianSet",...j.guardianSetItem},{name:"signatures",binary:"array",lengthSize:1,layout:_e}],s.envelopeLayout=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",...(0,j.chainItem)()},{name:"emitterAddress",...j.universalAddressItem},{name:"sequence",...j.sequenceItem},{name:"consistencyLevel",binary:"uint",size:1}],s.baseLayout=[...s.headerLayout,...s.envelopeLayout]})(vaa);var functions={};Object.defineProperty(functions,"__esModule",{value:!0});functions.deserializeUnknownVaa=functions.blindDeserializePayload=functions.exhaustiveDeserialize=functions.deserializePayload=functions.deserialize=functions.payloadDiscriminator=functions.serializePayload=functions.serialize=functions.payloadLiteralToPayloadItemLayout=functions.getPayloadLayout=void 0;const sdk_base_1$9=require$$0$7,registration_js_1=registration,vaa_js_1$1=vaa,index_js_1$5=requireLayoutItems(),utils_js_1$8=utils$3;function getPayloadLayout(s){const j=registration_js_1.payloadFactory.get(s);if(!j)throw new Error(`No layout registered for payload type ${s}`);return j}functions.getPayloadLayout=getPayloadLayout;function payloadLiteralToPayloadItemLayout(s){return{name:"payload",binary:"bytes",...s==="Uint8Array"?{}:{layout:getPayloadLayout(s)}}}functions.payloadLiteralToPayloadItemLayout=payloadLiteralToPayloadItemLayout;function serialize$1(s){const j=[...vaa_js_1$1.baseLayout,payloadLiteralToPayloadItemLayout(s.payloadLiteral)];return(0,sdk_base_1$9.serializeLayout)(j,s)}functions.serialize=serialize$1;function serializePayload(s,j){if(s==="Uint8Array")return j;const $=getPayloadLayout(s);return(0,sdk_base_1$9.serializeLayout)($,j)}functions.serializePayload=serializePayload;function payloadDiscriminator(s,j){const $=(()=>{if(Array.isArray(s[0]))return s.flatMap(([nt,rt])=>rt.map(ot=>(0,registration_js_1.composeLiteral)(nt,ot)));if(typeof s[1]=="string")return s;const[et,tt]=s;return tt.map(nt=>(0,registration_js_1.composeLiteral)(et,nt))})(),_e=(0,sdk_base_1$9.layoutDiscriminator)($.map(et=>getPayloadLayout(et)),!!j);return et=>{typeof et=="string"&&(et=sdk_base_1$9.encoding.hex.decode(et));const tt=_e(et);return Array.isArray(tt)?tt.map(nt=>$[nt]):tt!==null?$[tt]:null}}functions.payloadDiscriminator=payloadDiscriminator;function deserialize$1(s,j){typeof j=="string"&&(j=sdk_base_1$9.encoding.hex.decode(j));const[$,_e]=(0,sdk_base_1$9.deserializeLayout)(vaa_js_1$1.headerLayout,j,{consumeAll:!1});for(let at=1;at<$.signatures.length;++at)if($.signatures[at].guardianIndex<=$.signatures[at-1].guardianIndex)throw new Error("Guardian signatures must be in ascending order of guardian set index");const[et,tt]=(0,sdk_base_1$9.deserializeLayout)(vaa_js_1$1.envelopeLayout,j,{offset:_e,consumeAll:!1}),[nt,rt]=typeof s=="string"?[s,deserializePayload(s,j,tt)]:deserializePayload(s,j,tt),[ot,it]=(0,vaa_js_1$1.decomposeLiteral)(nt),st=(0,utils_js_1$8.keccak256)(j.slice(_e));return{protocolName:ot,payloadName:it,payloadLiteral:nt,...$,...et,payload:rt,hash:st}}functions.deserialize=deserialize$1;function deserializePayload(s,j,$=0){return(()=>{if(typeof j=="string"&&(j=sdk_base_1$9.encoding.hex.decode(j)),s==="Uint8Array")return j.slice($);if(typeof s=="string")return(0,sdk_base_1$9.deserializeLayout)(getPayloadLayout(s),j,{offset:$});const _e=s(j.slice($));if(_e===null)throw new Error(`Encoded data does not match any of the given payload types - ${j}`);return[_e,(0,sdk_base_1$9.deserializeLayout)(getPayloadLayout(_e),j,{offset:$})]})()}functions.deserializePayload=deserializePayload;functions.exhaustiveDeserialize=(()=>{const s=()=>{const $=Array.from(registration_js_1.payloadFactory.keys()),_e=$.map(et=>registration_js_1.payloadFactory.get(et));return[$,(0,sdk_base_1$9.layoutDiscriminator)(_e,!0)]};let j=[];return $=>(registration_js_1.payloadFactory.size!==j.length&&([j]=s()),j.reduce((et,tt)=>{try{et.push([tt,deserializePayload(tt,$)])}catch{}return et},[]))})();functions.blindDeserializePayload=(()=>{const s=()=>{const _e=Array.from(registration_js_1.payloadFactory.keys()),et=_e.map(tt=>registration_js_1.payloadFactory.get(tt));return[_e,(0,sdk_base_1$9.layoutDiscriminator)(et,!0)]};let j=[],$=_e=>[];return _e=>(registration_js_1.payloadFactory.size!==j.length&&([j,$]=s()),typeof _e=="string"&&(_e=sdk_base_1$9.encoding.hex.decode(_e)),$(_e).map(tt=>j[tt]).reduce((tt,nt)=>{try{tt.push([nt,deserializePayload(nt,_e)])}catch{}return tt},[]))})();const deserializeUnknownVaa=s=>{const j=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",binary:"uint",size:2},{name:"emitterAddress",...index_js_1$5.universalAddressItem},{name:"sequence",...index_js_1$5.sequenceItem},{name:"consistencyLevel",binary:"uint",size:1}],[$,_e]=(0,sdk_base_1$9.deserializeLayout)(vaa_js_1$1.headerLayout,s,{consumeAll:!1}),[et,tt]=(0,sdk_base_1$9.deserializeLayout)(j,s,{offset:_e,consumeAll:!1});return{...$,...et,payload:s.slice(tt)}};functions.deserializeUnknownVaa=deserializeUnknownVaa;var create$2={};Object.defineProperty(create$2,"__esModule",{value:!0});create$2.createVAA=void 0;const sdk_base_1$8=require$$0$7,utils_js_1$7=utils$3,vaa_js_1=vaa,functions_js_1=functions;function bodyLayout(s){return[...vaa_js_1.envelopeLayout,(0,functions_js_1.payloadLiteralToPayloadItemLayout)(s)]}function createVAA(s,j){const[$,_e]=(0,vaa_js_1.decomposeLiteral)(s),et=(0,sdk_base_1$8.addFixedValues)(bodyLayout(s),j);return{protocolName:$,payloadName:_e,payloadLiteral:s,...(0,sdk_base_1$8.addFixedValues)(vaa_js_1.headerLayout,j),...et,hash:(0,utils_js_1$7.keccak256)((0,sdk_base_1$8.serializeLayout)(bodyLayout(s),et))}}create$2.createVAA=createVAA;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(registration,s),$(vaa,s),$(functions,s),$(create$2,s)})(vaa$1);var platform={};Object.defineProperty(platform,"__esModule",{value:!0});platform.PlatformContext=void 0;const protocol_js_1$1=protocol;class PlatformContext{constructor(j,$){Mn(this,"network");Mn(this,"config");this.network=j,this.config=$}utils(){return this.constructor}getProtocol(j,$){return(0,protocol_js_1$1.create)(this.utils()._platform,j,$,this.config)}getProtocolInitializer(j){return(0,protocol_js_1$1.getProtocolInitializer)(this.utils()._platform,j)}async parseWormholeMessages(j,$,_e){return(await this.getProtocol("WormholeCore",$)).parseTransaction(_e)}}platform.PlatformContext=PlatformContext;var chain={},tokens$1={},tokens={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.isEqualCaseInsensitive=s.filters=void 0,s.filters={byAddress:($,_e)=>Object.values($).find(et=>(0,s.isEqualCaseInsensitive)(et.address,_e)),native:$=>s.filters.byAddress($,"native"),bySymbol:($,_e)=>{const et=Object.values($).filter(tt=>tt.symbol===_e);return et&&et.length>0?et:void 0},byKey:($,_e)=>{const et=Object.entries($).find(([tt])=>_e===tt);return et?et[1]:void 0}};const j=($,_e)=>$.toLowerCase()===_e.toLowerCase();s.isEqualCaseInsensitive=j})(tokens);var mainnet={},utils$1={},array={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.zip=s.column=s.entries=s.elementIndexPairs=s.range=void 0;const j=nt=>[...Array(nt).keys()];s.range=j;const $=nt=>(0,s.range)(nt.length).map(rt=>[nt[rt],rt]);s.elementIndexPairs=$;const _e=nt=>(0,s.range)(nt.length).map(rt=>[rt,nt[rt]]);s.entries=_e;const et=(nt,rt)=>nt.map(ot=>ot[rt]);s.column=et;const tt=nt=>(0,s.range)(nt[0].length).map(rt=>(0,s.range)(nt.length).map(ot=>nt[ot][rt]));s.zip=tt})(array);var mapping={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.constMap=s.cartesianRightRecursive=void 0;const j=array;function $(rt){return["string","number","symbol","bigint","boolean"].includes(typeof rt)}const _e=rt=>rt.length===2&&!Array.isArray(rt[0])&&Array.isArray(rt[1]),et=rt=>rt.length===0?[]:Array.isArray(rt[0])?rt.map(([ot,it])=>Array.isArray(it)?(_e(it)?(0,s.cartesianRightRecursive)(it):it).map(st=>[ot,st].flat()):[[ot,it]]).flat():_e(rt)?(0,s.cartesianRightRecursive)(rt[1]).map(ot=>[rt[0],ot]):rt;s.cartesianRightRecursive=et;const tt=(rt,ot)=>{const it=(0,s.cartesianRightRecursive)(rt);if(it.length===0)throw new Error("Invalid mapping: empty");const st=ot===void 0?[(0,j.range)(it[0].length-1),[it[0].length-1]]:ot.map(ft=>typeof ft=="number"?[ft]:ft);let at=[],ct=!0;const lt=(ft,xt)=>{const Mt=Array.from(new Set(ft[0]).values()),jt=new Map(Mt.map($t=>[$t,[]]));for(const[$t,zt]of ft[0].entries())jt.get(zt).push($t);if(ft.length===1){const $t=Object.fromEntries(Mt.map(zt=>[zt,jt.get(zt).map(Ot=>xt[Ot].length===1?xt[Ot][0]:xt[Ot])]));if(ct){for(const zt of jt.values())if(zt.length>1)return ct=!1,$t;at.push($t)}return $t}const wt=(0,j.zip)(ft.slice(1));return Object.fromEntries(Mt.map($t=>{const zt=jt.get($t),Ot=(0,j.zip)(zt.map(Ft=>wt[Ft])),Pt=zt.map(Ft=>xt[Ft]);return[$t,lt(Ot,Pt)]}))},dt=(0,j.zip)(it),pt=ft=>{const xt=dt[ft];if(xt===void 0)throw new Error(`Invalid shape: column ${ft} does not exist`);return xt},[ht,yt]=st.map(ft=>ft.map(xt=>pt(xt)));if(ht.length===0)throw new Error("Invalid shape: empty key set");if(yt.length===0)throw new Error("Invalid shape: empty value set");for(const ft of ht)for(const xt of ft)if(!$(xt))throw new Error(`Invalid key: ${xt} in ${ft}`);const gt=lt(ht,(0,j.zip)(yt));if(ct)for(const ft of at)for(const xt of Object.keys(ft))ft[xt]=ft[xt][0];return gt};function nt(rt,ot){const it=tt(rt,ot),st=(...at)=>at.reduce((ct,lt)=>ct?ct[lt.toString()]??void 0:void 0,it);return Object.assign(st,{has:(...at)=>st(...at)!==void 0,get:(...at)=>st(...at),subMap:at=>it[at.toString()]})}s.constMap=nt})(mapping);var metaprogramming={};Object.defineProperty(metaprogramming,"__esModule",{value:!0});var misc={};Object.defineProperty(misc,"__esModule",{value:!0});misc.throws=misc.onlyOnce=misc.lazyInstantiate=void 0;function lazyInstantiate(s){let j=null;return()=>(j||(j=s()),j)}misc.lazyInstantiate=lazyInstantiate;function onlyOnce(s,...j){let $=!1;return()=>{$||($=!0,s(...j))}}misc.onlyOnce=onlyOnce;function throws(s){try{return s(),!1}catch{return!0}}misc.throws=throws;var layout$2={},layout$1={};Object.defineProperty(layout$1,"__esModule",{value:!0});layout$1.numberMaxSize=layout$1.defaultEndianness=layout$1.binaryLiterals=void 0;layout$1.binaryLiterals=["int","uint","bytes","array","switch"];layout$1.defaultEndianness="big";layout$1.numberMaxSize=6;var serialize={},size={},utils={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.findIdLayoutPair=s.checkBytesTypeEqual=s.checkNumEquals=s.checkItemSize=s.checkSize=s.customizableBytes=s.isFixedPrimitiveConversion=s.isFixedBytesConversion=s.isFixedUintConversion=s.isLayout=s.isLayoutItem=s.isPrimitiveType=s.isBytesType=s.isNumType=void 0;const j=layout$1,$=gt=>typeof gt=="number"||typeof gt=="bigint";s.isNumType=$;const _e=gt=>gt instanceof Uint8Array;s.isBytesType=_e;const et=gt=>(0,s.isNumType)(gt)||(0,s.isBytesType)(gt);s.isPrimitiveType=et;const tt=gt=>j.binaryLiterals.includes(gt==null?void 0:gt.binary);s.isLayoutItem=tt;const nt=gt=>(0,s.isLayoutItem)(gt)||Array.isArray(gt)&>.every(s.isLayoutItem);s.isLayout=nt;const rt=gt=>typeof(gt==null?void 0:gt.from)=="number",ot=gt=>typeof(gt==null?void 0:gt.from)=="bigint",it=gt=>rt(gt)||ot(gt);s.isFixedUintConversion=it;const st=gt=>(0,s.isBytesType)(gt==null?void 0:gt.from);s.isFixedBytesConversion=st;const at=gt=>(0,s.isFixedUintConversion)(gt)||(0,s.isFixedBytesConversion)(gt);s.isFixedPrimitiveConversion=at;const ct=(gt,ft)=>({...gt,binary:"bytes",...ft===void 0?{}:(0,s.isLayout)(ft)?{layout:ft}:ft instanceof Uint8Array||(0,s.isFixedBytesConversion)(ft)||!Array.isArray(ft)?{custom:ft}:{layout:ft[0],custom:ft[1]}});s.customizableBytes=ct;const lt=(gt,ft)=>{if(gt!==ft)throw new Error(`size mismatch: layout size: ${gt}, data size: ${ft}`);return ft};s.checkSize=lt;const dt=(gt,ft)=>"size"in gt&>.size!==void 0?(0,s.checkSize)(gt.size,ft):ft;s.checkItemSize=dt;const pt=(gt,ft)=>{if(gt!=ft)throw new Error(`value mismatch: (constant) layout value: ${gt}, data value: ${ft}`)};s.checkNumEquals=pt;const ht=(gt,ft,xt)=>{const Mt=(Pt,Ft)=>Ft===void 0?[0,Pt.length]:Array.isArray(Ft)?Ft:[Ft,Pt.length],[jt,wt]=Mt(gt,xt==null?void 0:xt.customSlice),[$t,zt]=Mt(ft,xt==null?void 0:xt.dataSlize),Ot=wt-jt;(0,s.checkSize)(Ot,zt-$t);for(let Pt=0;Pt(Array.isArray(Mt)?Mt[1]:Mt)==xt)}s.findIdLayoutPair=yt})(utils);Object.defineProperty(size,"__esModule",{value:!0});size.calcLayoutSize=size.calcStaticLayoutSize=void 0;const utils_js_1$6=utils;function calcItemSize(s,j){switch(s.binary){case"int":case"uint":return s.size;case"bytes":{const $="lengthSize"in s?s.lengthSize|0:0;if("layout"in s){const{custom:et}=s,tt=internalCalcLayoutSize(s.layout,et===void 0?j:typeof et.from=="function"?et.from(j):et.from);return tt===null?"size"in s?s.size??null:null:$+(0,utils_js_1$6.checkItemSize)(s,tt)}const{custom:_e}=s;return(0,utils_js_1$6.isBytesType)(_e)?$+_e.length:(0,utils_js_1$6.isFixedBytesConversion)(_e)?$+_e.from.length:_e===void 0?j?$+(0,utils_js_1$6.checkItemSize)(s,j.length):null:j!==void 0?$+(0,utils_js_1$6.checkItemSize)(s,_e.from(j).length):null}case"array":{const $="length"in s?s.length:void 0;if(j===void 0){if($!==void 0){const et=internalCalcLayoutSize(s.layout);return et===null?null:$*et}return null}let _e=0;if($!==void 0&&$!==j.length)throw new Error(`array length mismatch: layout length: ${$}, data length: ${j.length}`);"lengthSize"in s&&s.lengthSize!==void 0&&(_e+=s.lengthSize);for(let et=0;et{s.bytes.set(j,s.offset),s.offset+=j.length};function serializeLayout(s,j,$,_e=0){const et={bytes:$??new Uint8Array((0,size_js_1$1.calcLayoutSize)(s,j)),offset:_e};if(internalSerializeLayout(s,j,et),!$&&et.offset!==et.bytes.length)throw new Error(`encoded data is shorter than expected: ${et.bytes.length} > ${et.offset}`);return $?et.offset:et.bytes}serialize.serializeLayout=serializeLayout;const maxAllowedNumberVal=2**(layout_js_1$2.numberMaxSize*8);function serializeNum(s,j,$,_e=layout_js_1$2.defaultEndianness,et=!1){if(!et&&s<0)throw new Error(`Value ${s} is negative but unsigned`);if(typeof s=="number"){if(!Number.isInteger(s))throw new Error(`Value ${s} is not an integer`);if(j>layout_js_1$2.numberMaxSize){if(s>=maxAllowedNumberVal)throw new Error(`Value ${s} is too large to be safely converted into an integer`);if(et&&s<=-maxAllowedNumberVal)throw new Error(`Value ${s} is too small to be safely converted into an integer`)}}const tt=2n**BigInt(j*8);if(s>=tt)throw new Error(`Value ${s} is too large for ${j} bytes`);if(et&&s<-tt)throw new Error(`Value ${s} is too small for ${j} bytes`);for(let nt=0;nt>BigInt(8*(_e==="big"?j-nt-1:nt))&0xffn);$.offset+=j}serialize.serializeNum=serializeNum;function internalSerializeLayout(s,j,$){if((0,utils_js_1$5.isLayoutItem)(s))serializeLayoutItem(s,j,$);else for(const _e of s)try{serializeLayoutItem(_e,j[_e.name],$)}catch(et){throw et.message=`when serializing item '${_e.name}': ${et.message}`,et}}function serializeLayoutItem(s,j,$){switch(s.binary){case"int":case"uint":{const _e=(()=>{var et;return(0,utils_js_1$5.isNumType)(s.custom)?("omit"in s&&s.omit||(0,utils_js_1$5.checkNumEquals)(s.custom,j),s.custom):(0,utils_js_1$5.isNumType)((et=s==null?void 0:s.custom)==null?void 0:et.from)?s.custom.from:s.custom!==void 0?s.custom.from(j):j})();serializeNum(_e,s.size,$,s.endianness,s.binary==="int");break}case"bytes":{const _e=$.offset;if("lengthSize"in s&&s.lengthSize!==void 0&&($.offset+=s.lengthSize),"layout"in s){const{custom:et}=s;let tt;et===void 0?tt=j:typeof et.from!="function"?tt=et.from:tt=et.from(j),internalSerializeLayout(s.layout,tt,$)}else{const{custom:et}=s;(0,utils_js_1$5.isBytesType)(et)?("omit"in s&&s.omit||(0,utils_js_1$5.checkBytesTypeEqual)(et,j),cursorWrite($,et)):(0,utils_js_1$5.isFixedBytesConversion)(et)?cursorWrite($,et.from):cursorWrite($,et!==void 0?et.from(j):j)}if("lengthSize"in s&&s.lengthSize!==void 0){const et=$.offset-_e-s.lengthSize,tt=$.offset;$.offset=_e,serializeNum(et,s.lengthSize,$,s.lengthEndianness),$.offset=tt}else(0,utils_js_1$5.checkItemSize)(s,$.offset-_e);break}case"array":{if("length"in s&&s.length!==j.length)throw new Error(`array length mismatch: layout length: ${s.length}, data length: ${j.length}`);"lengthSize"in s&&s.lengthSize!==void 0&&serializeNum(j.length,s.lengthSize,$,s.lengthEndianness);for(let _e=0;_e ${_e.offset}`);return($==null?void 0:$.consumeAll)??!0?et:[et,_e.offset]}deserialize.deserializeLayout=deserializeLayout;function updateOffset(s,j){const $=s.offset+j;if($>s.end)throw new Error(`chunk is shorter than expected: ${s.end} < ${$}`);s.offset=$}function internalDeserializeLayout(s,j){if(!Array.isArray(s))return deserializeLayoutItem(s,j);let $={};for(const _e of s)try{(_e.omit?{}:$)[_e.name]=deserializeLayoutItem(_e,j)}catch(et){throw et.message=`when deserializing item '${_e.name}': ${et.message}`,et}return $}function deserializeNum(s,j,$=layout_js_1$1.defaultEndianness,_e=!1){let et=0n;for(let tt=0;ttlayout_js_1$1.numberMaxSize?et:Number(et)}function deserializeLayoutItem(s,j){switch(s.binary){case"int":case"uint":{const $=deserializeNum(j,s.size,s.endianness,s.binary==="int"),{custom:_e}=s;return(0,utils_js_1$4.isNumType)(_e)?((0,utils_js_1$4.checkNumEquals)(_e,$),_e):(0,utils_js_1$4.isNumType)(_e==null?void 0:_e.from)?((0,utils_js_1$4.checkNumEquals)(_e.from,$),_e.to):_e!==void 0?_e.to($):$}case"bytes":{const $="lengthSize"in s&&s.lengthSize!==void 0?deserializeNum(j,s.lengthSize,s.lengthEndianness):s==null?void 0:s.size;if("layout"in s){const{custom:rt}=s,ot=j.offset;let it;if($===void 0)it=internalDeserializeLayout(s.layout,j);else{const st={...j,end:j.offset+$};if(updateOffset(j,$),it=internalDeserializeLayout(s.layout,st),st.offset!==st.end)throw new Error(`read less data than expected: ${st.offset-j.offset} < ${$}`)}return rt!==void 0?typeof rt.from!="function"?((0,utils_js_1$4.checkBytesTypeEqual)((0,serialize_js_1$1.getCachedSerializedFrom)(s),j.bytes,{dataSlize:[ot,j.offset]}),rt.to):rt.to(it):it}const{custom:_e}=s;{let rt,ot;if((0,utils_js_1$4.isBytesType)(_e)?rt=_e:(0,utils_js_1$4.isFixedBytesConversion)(_e)&&(rt=_e.from,ot=_e.to),rt!==void 0){const it=$??rt.length,st=j.bytes.slice(j.offset,j.offset+it);return(0,utils_js_1$4.checkBytesTypeEqual)(rt,st),updateOffset(j,it),ot??rt}}const et=j.offset,tt=$!==void 0?j.offset+$:j.end;updateOffset(j,tt-et);const nt=j.bytes.slice(et,tt);return _e!==void 0?_e.to(nt):nt}case"array":{let $=[];const{layout:_e}=s,et=()=>{const nt=internalDeserializeLayout(_e,j);$.push(nt)};let tt=null;if("length"in s&&s.length!==void 0?tt=s.length:"lengthSize"in s&&s.lengthSize!==void 0&&(tt=deserializeNum(j,s.lengthSize,s.lengthEndianness)),tt!==null)for(let nt=0;ntet?it===$:it[0]===$);if(tt===void 0)throw new Error(`unknown id value: ${$}`);const[nt,rt]=tt,ot=internalDeserializeLayout(rt,j);return{[s.idTag??"id"]:et?$:nt[1],...ot}}}}var fixedDynamic={};Object.defineProperty(fixedDynamic,"__esModule",{value:!0});fixedDynamic.addFixedValues=fixedDynamic.dynamicItemsOfLayout=fixedDynamic.fixedItemsOfLayout=void 0;const utils_js_1$3=utils;function filterItem(s,j){switch(s.binary){case"bytes":if("layout"in s){const{custom:$}=s;if($===void 0){const{layout:et}=s;if((0,utils_js_1$3.isLayoutItem)(et))return filterItem(et,j);const tt=internalFilterItemsOfProperLayout(et,j);return tt.length>0?{...s,layout:tt}:null}const _e=typeof $.from!="function";return j&&_e||!j&&!_e?s:null}case"int":case"uint":{const{custom:$}=s,_e=(0,utils_js_1$3.isPrimitiveType)($)||(0,utils_js_1$3.isFixedPrimitiveConversion)($);return j&&_e||!j&&!_e?s:null}case"array":{const $=internalFilterItemsOfLayout(s.layout,j);return $!==null?{...s,layout:$}:null}case"switch":{const $=s.layouts.reduce((_e,[et,tt])=>{const nt=internalFilterItemsOfProperLayout(tt,j);return nt.length>0?[..._e,[et,nt]]:_e},[]);return{...s,layouts:$}}}}function internalFilterItemsOfProperLayout(s,j){return s.reduce(($,_e)=>{const et=filterItem(_e,j);return et!==null?[...$,et]:$},[])}function internalFilterItemsOfLayout(s,j){return Array.isArray(s)?internalFilterItemsOfProperLayout(s,j):filterItem(s,j)}function filterItemsOfLayout(s,j){return internalFilterItemsOfLayout(s,j)}const fixedItemsOfLayout=s=>filterItemsOfLayout(s,!0);fixedDynamic.fixedItemsOfLayout=fixedItemsOfLayout;const dynamicItemsOfLayout=s=>filterItemsOfLayout(s,!1);fixedDynamic.dynamicItemsOfLayout=dynamicItemsOfLayout;function internalAddFixedValuesItem(s,j){switch(s.binary){case"bytes":if("layout"in s){const{custom:$}=s;return $===void 0||typeof $.from!="function"?internalAddFixedValues(s.layout,$?$.from:j):j}case"int":case"uint":{const{custom:$}=s;return s!=null&&s.omit?void 0:(0,utils_js_1$3.isPrimitiveType)($)?$:(0,utils_js_1$3.isFixedPrimitiveConversion)($)?$.to:j}case"array":return Array.isArray(j)?j.map($=>internalAddFixedValues(s.layout,$)):void 0;case"switch":{const $=j[s.idTag??"id"],[_e,et]=s.layouts.find(([tt])=>(Array.isArray(tt)?tt[1]:tt)==$);return{[s.idTag??"id"]:$,...internalAddFixedValues(et,j)}}}}function internalAddFixedValues(s,j){if(j=j??{},(0,utils_js_1$3.isLayoutItem)(s))return internalAddFixedValuesItem(s,j);const $={};for(const _e of s){const et=internalAddFixedValuesItem(_e,j[_e.name]??{});et!==void 0&&($[_e.name]=et)}return $}function addFixedValues(s,j){return internalAddFixedValues(s,j)}fixedDynamic.addFixedValues=addFixedValues;var discriminate={};Object.defineProperty(discriminate,"__esModule",{value:!0});discriminate.layoutDiscriminator=void 0;const serialize_js_1=serialize,utils_js_1$2=utils,size_js_1=size;function arrayToBitset(s){return s.reduce((j,$)=>j|BigInt(1)<0n;s>>=1n,++$)s&1n&&j.push(Number($));return j}function count$1(s){let j=0;for(;s>0n;s>>=1n)j+=Number(s&1n);return j}const lengthSizeMax=s=>s>0?2**(8*s)-1:1/0;function layoutItemMeta(s,j,$){var _e;switch(s.binary){case"int":case"uint":{const et=(0,utils_js_1$2.isNumType)(s.custom)?s.custom:(0,utils_js_1$2.isNumType)((_e=s==null?void 0:s.custom)==null?void 0:_e.from)?s.custom.from:null;if(et!==null&&j!==null){const tt={bytes:new Uint8Array(s.size),offset:0};(0,serialize_js_1.serializeNum)(et,s.size,tt,s.endianness,s.binary==="int"),$.push([j,tt.bytes])}return[s.size,s.size]}case"bytes":{const et="lengthSize"in s?s.lengthSize|0:0;let tt,nt;if("layout"in s){const{custom:ot}=s;if(ot!==void 0&&typeof ot.from!="function")tt=(0,serialize_js_1.getCachedSerializedFrom)(s),nt=tt.length;else{const it=(0,size_js_1.calcStaticLayoutSize)(s.layout);it!==null&&(nt=it)}}else{const{custom:ot}=s;(0,utils_js_1$2.isBytesType)(ot)?(tt=ot,nt=ot.length):(0,utils_js_1$2.isFixedBytesConversion)(ot)&&(tt=ot.from,nt=ot.from.length)}if(et>0&&j!==null){if(nt!==void 0){const ot={bytes:new Uint8Array(et),offset:0},it=s.lengthEndianness;(0,serialize_js_1.serializeNum)(nt,et,ot,it,!1),$.push([j,ot.bytes])}j+=et}if(tt!==void 0)return j!==null&&$.push([j,tt]),[et+tt.length,et+tt.length];const rt="size"in s&&s.size!==void 0?[s.size,s.size]:void 0;if("layout"in s){const ot=createLayoutMeta(s.layout,j,$);return rt??[et+ot[0],et+ot[1]]}return rt??[et,lengthSizeMax(et)]}case"array":{if("length"in s){let tt=[];const nt=createLayoutMeta(s.layout,0,tt);if(j!==null)if(nt[0]!==nt[1]){if(s.length>0)for(const[rt,ot]of tt)$.push([j+rt,ot])}else for(let rt=0;rt[]),{idSize:tt,idEndianness:nt}=s,rt=s.layouts.map(([ot,it],st)=>{const at=Array.isArray(ot)?ot[0]:ot;if(j!==null){const lt={bytes:new Uint8Array(tt),offset:0};(0,serialize_js_1.serializeNum)(at,tt,lt,nt),et[st].push([0,lt.bytes])}const ct=createLayoutMeta(it,j!==null?tt:null,et[st]);return[ct[0]+tt,ct[1]+tt]});return j!==null&&et.every(ot=>ot.length>0)&&(()=>{const ot=Math.min(...et.map(st=>st.at(-1)[0]+st.at(-1)[1].length)),it=et.map(st=>0);for(let st=0;stot)),Math.max(...rt.map(([ot,it])=>it))]}}}function createLayoutMeta(s,j,$){if(!Array.isArray(s))return layoutItemMeta(s,j,$);let _e=[0,0];for(const et of s){const tt=layoutItemMeta(et,j,$);_e[0]+=tt[0],_e[1]+=tt[1],j!==null&&(j=tt[0]===tt[1]?j+tt[0]:null)}return _e}function buildAscendingBounds(s){const j=new Map;let $=[];const _e=et=>{for(;$.length>0&&$[0][0]tt<=rt);nt===-1?$=[]:$.splice(0,nt),j.set(tt,arrayToBitset($.map(([,rt])=>rt)))}};for(const[[et,tt],nt]of s){_e(et);const rt=$.findIndex(([ot])=>ot>tt);rt===-1?$.push([tt,nt]):$.splice(rt,0,[tt,nt]),j.set(et,arrayToBitset($.map(([,ot])=>ot)))}return _e(1/0),j}function generateLayoutDiscriminator(s){if(s.length===0)throw new Error("Cannot discriminate empty set of layouts");const j=0n,$=(1n<[]),et=s.map((ft,xt)=>createLayoutMeta(ft,0,_e[xt])),tt=et.map((ft,xt)=>[ft,xt]).sort(([[ft]],[[xt]])=>ft-xt),nt=(()=>{let ft=$;const xt=new Map;for(const[[Mt],jt]of tt)ft^=1n<count$1(ft))),it=ft=>{let xt=$;for(const[Mt,jt]of nt){if(ft{let xt=j;for(const[Mt,jt]of rt){if(ftft.length>0?ft.at(-1)[0]+ft.at(-1)[1].length:0))}).map(()=>[]);for(let ft=0;ft<_e.length;++ft)for(const[xt,Mt]of _e[ft])for(let jt=0;jtOt)),wt=$^Mt,$t=new Map;for(const[Ot,Pt]of xt)$t.has(Ot)||$t.set(Ot,j),$t.set(Ot,$t.get(Ot)|1n<bitsetToArray(Ot.length<=ft?wt:$t.get(Ot[ft])??j)];ct.push([zt,ft,wt,$t,jt])}}if(ot===s.length-1)return[!0,ft=>bitsetToArray(st(ft.length))];ct.sort(([ft],[xt])=>xt-ft);let lt=!0;const dt=new Map,pt=new Map,ht=(ft,xt)=>{dt.set(ft,xt),pt.has(count$1(ft))||pt.set(count$1(ft),[]),pt.get(count$1(ft)).push(ft)},yt=(ft,xt)=>{if(count$1(ft)<=1||dt.has(ft))return;let Mt=0;const jt=new Map;for(const $t of bitsetToArray(ft)){const zt=et[$t][0],Ot=rt.get(zt)&ft;jt.set(zt,Ot),Mt=Math.max(Mt,count$1(Ot))}Mt=count$1(ft)-Mt;const wt=[];for(const[$t,zt,Ot,Pt,Ft]of xt){const Nt=new Map;let mt=0;for(const[vt,At]of Pt){const Tt=At&ft;count$1(Tt)>0&&(Nt.set(vt,Tt),mt+=count$1(Tt))}const bt=Ot&ft;let St=Nt.size>0?$t:0;for(const vt of Nt.values()){const At=mt-count$1(vt)+count$1(bt);St=Math.min(St,At)}if(St!==0){if(St===count$1(ft)-1){ht(ft,[zt,bt,Nt]);return}wt.push([St,zt,bt,Nt,Ft&ft])}}if(Mt===count$1(ft)-1){ht(ft,"size");return}if(wt.sort(([$t],[zt])=>zt-$t),wt.length>0&&wt[0][0]>=Mt){const[,$t,zt,Ot,Pt]=wt[0];ht(ft,[$t,zt,Ot]),yt(zt,wt);for(const Ft of Ot.values())yt(Ft|Pt,wt.slice(1));return}if(Mt>0){ht(ft,"size");for(const $t of jt.values())yt($t,wt);return}ht(ft,"indistinguishable"),lt=!1};yt($,ct);const gt=ft=>{for(let xt=count$1(ft)+1;xt{let xt=$,Mt=dt.get(xt);for(;Mt!=="indistinguishable";){if(Mt==="size")xt&=st(ft.length);else{const[jt,wt,$t]=Mt;if(ft.length<=jt)xt&=wt;else{const zt=ft[jt];for(const[Ot,Pt]of $t)Ot!==zt&&(xt^=xt&Pt);xt^=xt&wt}}if(count$1(xt)<=1)break;Mt=dt.get(xt)??gt(xt)}return bitsetToArray(xt)}]}function layoutDiscriminator(s,j){const[$,_e]=generateLayoutDiscriminator(s);if(!$&&!j)throw new Error("Cannot uniquely distinguished the given layouts");return j?_e:et=>{const tt=_e(et);return tt.length===0?null:tt[0]}}discriminate.layoutDiscriminator=layoutDiscriminator;var items={};Object.defineProperty(items,"__esModule",{value:!0});items.bitsetItem=items.optionItem=items.enumItem=void 0;const layout_js_1=layout$1,utils_js_1$1=utils;function enumItem(s,j){const $=Object.fromEntries(s.map(([et,tt])=>[tt,et])),_e=Object.fromEntries(s);return{binary:"uint",size:(j==null?void 0:j.size)??1,endianness:(j==null?void 0:j.endianness)??"big",custom:{to:et=>{const tt=$[et];if(tt===void 0)throw new Error(`Invalid enum value: ${et}`);return tt},from:et=>_e[et]}}}items.enumItem=enumItem;const baseOptionItem=s=>({binary:"switch",idSize:1,idTag:"isSome",layouts:[[[0,!1],[]],[[1,!0],[(0,utils_js_1$1.customizableBytes)({name:"value"},s)]]]});function optionItem(s){return{binary:"bytes",layout:baseOptionItem(s),custom:{to:j=>j.isSome===!0?j.value:void 0,from:j=>j===void 0?{isSome:!1}:{isSome:!0,value:j}}}}items.optionItem=optionItem;function bitsetItem(s,j){return{binary:"uint",size:j??Math.ceil(s.length/8),custom:{to:$=>{const _e={};for(let et=0;et{let _e=0n;for(let et=0;etlayout_js_1.numberMaxSize?_e:Number(_e)}}}}items.bitsetItem=bitsetItem;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(layout$1,s),$(serialize,s),$(deserialize,s),$(fixedDynamic,s),$(discriminate,s),$(utils,s),$(size,s),$(items,s)})(layout$2);var amount={};Object.defineProperty(amount,"__esModule",{value:!0});amount.fmt=amount.whole=amount.display=amount.units=amount.fromBaseUnits=amount.scale=amount.truncate=amount.parse=amount.denoise=void 0;function denoise(s,j){return Number(Number(s).toFixed(j))}amount.denoise=denoise;function parse(s,j){if(validateAmountInput(s,j),s=s.toString(),s.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const $=s.split(".");if($.length>2)throw"Too many decimals";let[_e,et]=$.length===0?["0",""]:$.length===1?[$[0],""]:$;if(et=et.padEnd(j,"0"),et.length>j){if(BigInt(et.substring(j))!==0n)throw new Error("Amount: invalid input. Decimals too low.");et=et.substring(0,j)}return{amount:BigInt(_e+et).toString(),decimals:j}}amount.parse=parse;function truncate(s,j){if(s.decimals<=j)return s;const $=BigInt(s.decimals-j);return{amount:(units(s)/10n**$*10n**$).toString(),decimals:s.decimals}}amount.truncate=truncate;function scale(s,j){if(s.decimals===j)return s;if(s.amount==="0")return{amount:s.amount,decimals:j};const $=j-s.decimals;if($>0)return{amount:s.amount+"0".repeat($),decimals:j};if(BigInt(s.amount.substring(s.amount.length+$))===0n)return{amount:s.amount.substring(0,s.amount.length+$),decimals:j};throw new Error(`scaleAmount(${JSON.stringify(s)}, ${j}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}amount.scale=scale;function fromBaseUnits(s,j){return{amount:s.toString(),decimals:j}}amount.fromBaseUnits=fromBaseUnits;function units(s){return validateAmount(s),BigInt(s.amount)}amount.units=units;function display(s,j){validateAmount(s);let $=s.amount.substring(0,s.amount.length-s.decimals).padStart(1,"0"),_e=s.amount.substring(s.amount.length-s.decimals).padStart(s.decimals,"0");if(j!==void 0){for(;_e.length>j&&_e[_e.length-1]==="0";)_e=_e.substring(0,_e.length-1);_e=_e.padEnd(j,"0")}else _e=_e.replace(/0+$/,"");return _e.length>0?`${$}.${_e}`:$}amount.display=display;function whole(s){return Number(display(s))}amount.whole=whole;function fmt(s,j){return display(fromBaseUnits(s,j))}amount.fmt=fmt;function validateAmountInput(s,j){if(typeof s=="number"){if(!isFinite(s))throw new Error("Amount: invalid input. Amount must be finite");if(s<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(s))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(j))throw new Error("Amount: invalid input. Decimals must be finite")}function validateAmount(s){if(!/^[0-9]*$/.test(s.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(s.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(s.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}var encoding={};const require$$0=getAugmentedNamespace(esm$1);(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.bytes=s.bignum=s.b58=s.b64=s.hex=s.stripPrefix=s.bech32=void 0;const j=require$$0;var $=require$$0;Object.defineProperty(s,"bech32",{enumerable:!0,get:function(){return $.bech32}});const _e=(nt,rt)=>rt.startsWith(nt)?rt.slice(nt.length):rt;s.stripPrefix=_e;const et=/^(?:0x)?[0-9a-fA-F]+$/;s.hex={valid:nt=>et.test(nt),decode:nt=>j.base16.decode((0,s.stripPrefix)("0x",nt).toUpperCase()),encode:(nt,rt=!1)=>(nt=typeof nt=="string"?s.bytes.encode(nt):nt,(rt?"0x":"")+j.base16.encode(nt).toLowerCase())};const tt=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;s.b64={valid:nt=>tt.test(nt),decode:j.base64.decode,encode:nt=>j.base64.encode(typeof nt=="string"?s.bytes.encode(nt):nt)},s.b58={decode:j.base58.decode,encode:nt=>j.base58.encode(typeof nt=="string"?s.bytes.encode(nt):nt)},s.bignum={decode:nt=>(typeof nt!="string"&&(nt=s.hex.encode(nt,!0)),nt===""||nt==="0x"?0n:BigInt(nt)),encode:(nt,rt=!1)=>s.bignum.toString(nt,rt),toString:(nt,rt=!1)=>{let ot=nt.toString(16);return ot=ot.length%2===1?ot="0"+ot:ot,rt?"0x"+ot:ot},toBytes:(nt,rt)=>{typeof nt=="number"&&(nt=s.bignum.toBigInt(nt));const ot=s.hex.decode(s.bignum.toString(nt));if(!rt)return ot;if(rt{if(nt>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${nt} exceeds MAX_SAFE_INTEGER`);return Number(nt)},toBigInt:nt=>{if(nt>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${nt} exceeds MAX_SAFE_INTEGER`);return BigInt(nt)}},s.bytes={encode:nt=>new TextEncoder().encode(nt),decode:nt=>new TextDecoder().decode(nt),equals:(nt,rt)=>nt.length===rt.length&&nt.every((ot,it)=>ot===rt[it]),zpad:(nt,rt,ot=!0)=>ot?s.bytes.concat(new Uint8Array(rt-nt.length),nt):s.bytes.concat(nt,new Uint8Array(rt-nt.length)),concat:(...nt)=>{const rt=nt.reduce((st,at)=>st+at.length,0),ot=new Uint8Array(rt);let it=0;return nt.forEach(st=>{ot.set(st,it),it+=st.length}),ot}}})(encoding);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(tt,nt,rt,ot){ot===void 0&&(ot=rt);var it=Object.getOwnPropertyDescriptor(nt,rt);(!it||("get"in it?!nt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return nt[rt]}}),Object.defineProperty(tt,ot,it)}:function(tt,nt,rt,ot){ot===void 0&&(ot=rt),tt[ot]=nt[rt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(tt,nt){Object.defineProperty(tt,"default",{enumerable:!0,value:nt})}:function(tt,nt){tt.default=nt}),_e=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(tt,nt){for(var rt in tt)rt!=="default"&&!Object.prototype.hasOwnProperty.call(nt,rt)&&j(nt,tt,rt)},et=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(tt){if(tt&&tt.__esModule)return tt;var nt={};if(tt!=null)for(var rt in tt)rt!=="default"&&Object.prototype.hasOwnProperty.call(tt,rt)&&j(nt,tt,rt);return $(nt,tt),nt};Object.defineProperty(s,"__esModule",{value:!0}),s.encoding=s.layout=s.amount=void 0,_e(array,s),_e(mapping,s),_e(metaprogramming,s),_e(misc,s),_e(layout$2,s),s.amount=et(amount),s.layout=et(layout$2),s.encoding=et(encoding)})(utils$1);Object.defineProperty(mainnet,"__esModule",{value:!0});mainnet.mainnetChainTokens=void 0;const index_js_1$4=utils$1,mainnetTokenEntries=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}],["USDT",{symbol:"USDT",decimals:6,address:"0xdac17f958d2ee523a2206206994597c13d831ec7"}],["DAI",{symbol:"DAI",decimals:18,address:"0x6b175474e89094c44da98b954eedeac495271d0f"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x4fabb145d64652a948d72533023f6e7a623c7c53"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8B5653Ae095529155462eDa8CF664eD96773F557",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xb4c624dBC50804dA086cf2380cD55dEBC0d22E96",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0xB8d1E0642bFD3744CaBd2ca8830cFabE19b2Ca54",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4F3819A6cfF717BFfE801a75c73A984141c76589",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x733F28B3e315046Db01dAbC292D6F0F7F26C4551",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",original:"Solana"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB04906e95AB5D797aDA81508115611fee694c2b3",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",original:"Optimism"}],["WETHbsc",{symbol:"WETH",decimals:18,address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x94c97dd3Bde5bC1406BCe82E7941A6365968521D",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",original:"Solana"}],["USDTbsc",{symbol:"USDT",decimals:18,address:"0x55d398326f99059fF775485246999027B3197955"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0x11CD37bb86F65419713f30673A480EA33c826872",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"}],["WETHpolygon",{symbol:"WETH",decimals:18,address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x922F49a9911effc034eE756196E59BE7b90D43b3",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x6a5c59AB16268d2c872916054C50440B999e417C",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x7800FE8951cdc1cDea748d878fAce63018D97960",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8182De59485Bb646542Db8C7E5958148Dc699319",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x31F12aCb60C3c32EE884F3894a873347C097D925",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3362b2B92b331925F09F9E5bCA3E8C43921a435C",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x68A8797da1c8ED592600d70A5151886A92D2183C",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x045D8c62D5326aa51a31518ECF3aF80C17421Aba",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",original:"Ethereum"}],["wstETHpolygon",{symbol:"wstETH",decimals:18,address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",original:"Solana"}],["USDTpolygon",{symbol:"USDT",decimals:6,address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0x8b82A291F83ca07Af22120ABa21632088fC92931",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x6145E8a910aE937913426BF32De2b26039728ACF",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}],["WETHavax",{symbol:"WETH",decimals:18,address:"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3F531c038A0D2d9c7D19FC3554cd0439791526c4",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",original:"Solana"}],["USDTavax",{symbol:"USDT",decimals:6,address:"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x358CE030DC6116Cc296E8B9F002728e65459C146",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xE8367853A0823515D37b1538331B4704089becb4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xd3365E7355230c78098b44B172eE27DAB95B041A",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeE27799cF29D7F64647B92f47d543B382B49f83E",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",original:"Solana"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x617f3112bf5397D0467D315cC709EF968D9ba546",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9C234706292b1144133ED509ccc5B3CD193BF712",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x471ece3750da237f93b8e339c536989b8978a438"}],["USDT",{symbol:"USDT",decimals:6,address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x905CADB645684140E285e2D09D39dF5a2082BC87",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xFaED7314060FCEc652ED91D9eac6c980DCA9D3B8",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x72878E7d3A8746e0c91b9F16F0b8ee4fDE9DDc06",original:"Arbitrum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x985aa4814419ba338379A634785216301e51113D",original:"Solana"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x4415BfBDee669446550d55c749007EF60B520FC8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7f433E22366E03a3758CE22cCf82887d828078f8",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xAcc15dC74880C9944775448304B263D191c6077F"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x25331575641d35D9765e1934acC8F0991c58e904",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeCd65E4B89495Ae63b4f11cA872a23680A7c419c",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",original:"Klaytn"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],["SUI",{symbol:"SUI",decimals:8,address:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG",original:"Ethereum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",original:"Ethereum"}],["PYTH",{symbol:"PYTH",decimals:6,address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x27792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0xaab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xbc3a676894871284b3ccfb2eec66f428612000e2a6e6d23f592ce8833c27c973::coin::COIN",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",original:"Solana"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x0e977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x9d5a0f8215301fa8096df332b1533f6328f18c32fbac2a7089cfbea73b3068a7::coin::T",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",original:"Solana"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x71b35ECb35104773537f849FBC353F81303A5860",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE6396f780b543dF16ee3b784D789c75B68319db0",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x1C61629598e4a901136a81BC138E5828dc150d67",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],["wstETHbase",{symbol:"wstETH",decimals:18,address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x9EE95E6Bd1B3C5740F105d6fb06b8BDeF64Eec70",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x56D0873e0eCA4a56063e1BF945788365666CFBFC",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x4c5d8A75F3762c1561D96f177694f67378705E98",original:"Solana"}],["USDTbase",{symbol:"USDT",decimals:6,address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x565609fAF65B92F7be02468acF86f8979423e514",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4EdeF400eDe5309240814b5FC403F224504604e9",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x57723abc582DBfE11Ea01f1A1f48aEE20bD65D73",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x3bab04bDFd2Dc3640c2B9390A2Da05bC1192D482",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x2519010b6585247BcDC8BcDa5C8730Be754b8c76",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",original:"Ethereum"}],["wstETHarbitrum",{symbol:"wstETH",decimals:18,address:"0x5979D7b546E38E414F7E9822514be443A4800529"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",original:"Solana"}],["USDTarbitrum",{symbol:"USDT",decimals:6,address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xB214C19d81c99E75e84706a3aa0A757319023e26",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x6F974A6dfD5B166731704Be226795901c45Bb815",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x27A533e438892DA192725b4C9AcA51447F457212",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x825206E1D29456337769e6f1384101E997C6A732",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",original:"Arbitrum"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeC0a755664271b87002dDa33CA2484B24aF68912",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE4C32B9eA749fa0342B1C42C01E80028B97c3917",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x2390a5131fcba6e47f702172cF4876589E4161c6",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",original:"Ethereum"}],["wstETHoptimism",{symbol:"wstETH",decimals:18,address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",original:"Solana"}],["USDToptimism",{symbol:"USDT",decimals:6,address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtslwqndm",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1utjx3594tlvfw4375esgu72wa4sdgf0q7x4ye27husf5kvuzp5rsr72gdq",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"wormhole1nz0r0au8aj6dc00wmm3ufy4g4k86rjzlr8wkf92cktdlps5lgfcqxnx9yk",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1w27ekqvvtzfanfxnkw4jx2f8gdfeqwd3drkee3e64xat6phwjg0savgmhw",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1chejx4qqtvwxy6684yrsmf6pylancxqhk3vsmtleg5ta3zrffljqfscg87",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"wormhole1msyushf6d76u9wupuvm6jdvc0x4trmv5w5kxr0hyt7n9npp233usg7pkhm",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1xmpenz0ykxfy8rxr3yc3d4dtqq4dpas4zz3xl6sh873us3vajlpszn4ph7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole169nr66h9gcsfljvsnxnqfjakskcjt6ac8f58wqjuagu79m540teqfvaal4",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"wormhole1g3acw7aumaj3r348cqn4kazrehlmn822w9p46sqwztnke27h3lysxj4ddr",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1ml922hnp59jtq9a87arekvx60ezehwlg2v3j5pduplwkenfa68ksgmzxwr",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1gwm6mrnse9atzf4mer4dnrz64mp6pa75wpsxywu8gymt9fwsk46sfr372u",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1e0cwfmla7exa578xddl87paxexw9ymwrzysfjms8c2mstxjkldlqn45jqa",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1kqey3a6k26kyensq7elcpx229tlj4d3qlshwhjq5xjm8dcdvu60qtef8k9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole1gzuv84xrwwhxhf0f62av279vfyrfrm7x58fcnadlr5m90gnx223ses2st0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8sca0pvl",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole17fr8awnysyv3nt5je4strczdupssl8u9jqam890jfv72sh32yyqqhtg3ry",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole19hlynxzedrlqv99v6qscww7d3crhl86qtd0vprpltg5g9xx6jk9q6ya33y",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1f9sxjn0qu8xylcpzlvnhrefnatndqxnrajfrnr5h97hegnmsdqhsh6juc0",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole18nlwscr7290j463vcptqlgqudycry2rdnw2ysltpc2nqefk3353s808rl9",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole1ev8rhdflmlq6de5g7ttj585fhuv3jfhnuhfzyh7qrswhzaq2tkqswxz6y3",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1snw0qugpjcxwtxzzkqt5guwavq85eumxzeagql2u2m662xrtnjuqyj3pkj",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1edkult6zudk6ld23fesjfrehux35q86engsq5jlycl0e4upkz8mqkgcprf",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"wormhole1nu9wf9dw384attnpu0pwfet5fajn05w2ex4r07mghvk3xcwrt2yq5uutp5",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:8,address:"wormhole1uj24zecnaxz7ftz0sh6dsayfene4w3yptwg0422kves9duel67vsr7hlyz",original:"Polygon"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1q8ynvqvtw49ln73mn70v4me4q03fvvmhkf2lh4ueam5w4362s2asjmvxtd",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1gg6f95cymcfrfzhpek7cf5wl53t5kng52cd2m0krgdlu8k58vd8qezy8pt",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"wormhole1kyy876kye7k79fuzat532yyqkrzhlr6l7hc7lfa2rk5tygzhy00qrhjgkc",original:"Klaytn"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/62F82550D0B96522361C89B0DA1119DE262FBDFB25E5502BC5101B5C0D0DBAAC",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/6B99DB46AA9FF47162148C1726866919E44A6A5E0274B90912FD17E19A337695",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/E4CD61E1FA3EB04EF1BF924D676AB9FD55E84A0DCF4E78C11CCA0E14E5B42672",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/2108F2D81CBE328F371AD0CEF56691B18A86E08C3651504E42487D9EE92DDE9C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/898ACF6F5DEBF535103BBD52E3E5B70A311AD097B198A152483F69290B4210C0",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/03B6D1925A09B3033AA6FA8772202719ABDC51F8CC2A5C26D0A9B19832F2C023",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5394BB30B3C9BD1EE84C9531E5094DDE2490964F518CBE8A4C91F748CE559AF5",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/B28ACEF11D063FA8B1DA73C2F7DA3A1CFCCBC13E96B671698D4860E9367B55BB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/22B44C7369EED16089B9840ADE399B80D9483B4E459E67643C96C681D7C463D0",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/397DFE63D87F6940ECA583DFF5461E48BF0BA6554CBBE70278E307DDFDC8E9D5",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/83300733052AB5F6E0F0C221E24189B6DF26CC94C73D2F44627627F9DEF4A9C8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/0F2941B0168D8DB77DA1B6A2D3A95EC04026D3C97FA3BFE8FD1D5D3F983AA518",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/1E43D59E565D41FB4E54CA639B838FFD5BCFC20003D330A56CB1396231AA1CBA",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/F08DE332018E8070CC4C68FE06E04E254F527556A614F5F8F9A68AF38D367E45",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/B1C287C2701774522570010EEBCD864BCB7AB714711B3AA218699FDD75E832F5",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/A4D176906C1646949574B48C1928D475F2DF56DE0AC04E1C99B08F90BC21ABDE",original:"Aptos"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8AC0F990290BBEF3AEBFCBF70F902AD954781BB40D07EB76341272800D48D05F",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["tBTC",{symbol:"tBTC",decimals:8,address:"ibc/6207D35D2C08F2162575C3C4BFD524226E50639121A273045F1B393AF67DCEB3",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/BF75AE1500CB7EC458E91A11731F1B6AC1F1FE1FA937A88564955ED6A83CA2FB",original:"Ethereum"}]]],["Evmos",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/4442A8E0D487A49E76EA6606F5DADCF8D0DBDD8499112340C964970DB745EDA2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/0C19171CDC59451F91D2749CDEA63355532DCD5D8904CCBAC4953290E16AB8FD",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/46C5DA1CB61C5BAA8730ABA467ADD58DE0333B075CACE28BC87E64AE8C9CA051",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/C9072A294F5649D64E87A6998DD750576881E454CACCDAF7376EFC0FA243808D",original:"Ethereum"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/8E08C01546EF346F7E9A3600DDBC88943ADF3B20A67F1F2DD7B83D85613BCCAB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/2EA2FE172078576E62DA20F14EEED12B26611D93150FE1D68E1AAE00479AC335",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/39913E647C3549D663B1ED7F0745E1779515170C5215B98B2C8410B4C073AD30",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/9EFE5F5D75A87197DD257BA7A96A3BCCEC9DB59D257C742FB5AA9D3DF612D476",original:"Fantom"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/4443218F584A7AB2DFBCF93872D6E5B6967A11C53515DDF45A2CF387C54BD73A",original:"Solana"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/9E2E7B4A53409267CD686F4EB67969C2602A0F5FF9BDB1082B00E71CC4815DDE",original:"Arbitrum"}],["EVMOS",{symbol:"EVMOS",decimals:18,address:"aevmos"}]]],["Kujira",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/7D9D28CABB49A4BB1A50C3B7E4544BFDBC5DDFAEB84A7787755A34CE7196CE15",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/C5EADE2C526B9629D230AC02A97644984ACB7C2F9A6C85126D1025CB0DA42588",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/B2C7F21B604E3974A7DA5DAA9395905F2F3C85392F8A221CFDF62E4A9F4E48E4",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/3CE8A3DE4AE5AE2B4B8C03B2B227CC284732EDC849E506615FF2AA3D8EB1BAFC",original:"Ethereum"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/28E7241F6508EB4692C721E91201377323796EF2758CCD83D220A40EAD32601E",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F9F41DB8DA49EA6AB9EB4B2C9E0ECDC2502ABDA2FE728B85994BF31240CBC163",original:"Avalanche"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/4ACD155D71182398277CBD2C630A7C8C5F0F16FFF77965FDE4C845A4CDE2D60C",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/3D337ECC89A8421DD6F33C4B7DDE9D4A18D728A4A688BA30E41F466EC8DD3869",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/E5CA126979E2FFB4C70C072F8094D07ECF27773B37623AD2BF7582AD0726F0F3",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/EBA52E7239CC1BC7F8ECF4F41523B6DD477FF067FD953315704A9A4FD2131B48",original:"Sui"}],["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}]]]];mainnet.mainnetChainTokens=(0,index_js_1$4.constMap)(mainnetTokenEntries,[0,[1,2]]);var testnet={};Object.defineProperty(testnet,"__esModule",{value:!0});testnet.testnetChainTokens=void 0;const index_js_1$3=utils$1,testnetTokenEntries=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x07865c6e87b9f70255377e024ace6630c1eaa37f"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05"}],["USDT",{symbol:"USDT",decimals:6,address:"0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49"}],["DAI",{symbol:"DAI",decimals:18,address:"0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7cd0e8ff09cEB653813bD3d63d0554c1CB4BFdf6",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB19693FEB013Bab65866dE0a845a9511064230cE",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x4C1b727f6df3B075E682C41a25687A69846aaC04",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xF6699D3f725C4b64Cc6010F2DF77B4B05C76Cd5C",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0d7A9Cdbb7C21E64825cF81750A5081a32aFb5d4",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xe092525a787CD56B901279b5864a224c22B95B72",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x0dc83BB61008A5E1194fe50fA9E474713C1AEcD7",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x494701CE895389d917a938f0ea202D4eB9684Eab",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x70F7360C49D227ccBbb98fB7B69B7CDB651195bb",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd7A89a8DD20Cb4F252c7FB96B6421b37d82cE506",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xd962F26D93c4eF609Ba00Ed6101326A1490B9489",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x76e39239e40857030D6f4D8545EFbd71F904d344",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x5aA392243437dDC8b4d86bfC90DF296908740A41",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x679874fBE6D4E7Cc54A59e315FF1eB266686a937"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x575D93A2278FbF4E8Bd3d51B539a6E237C3F17c5",original:"Arbitrum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x57A52B6F0b393AF7d36116183cA83E584e636eA4",original:"Solana"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f"}],["SEI",{symbol:"SEI",decimals:6,address:"0xd68df72136207E9471C915cf1B6Cf43D587D4E0A",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x327e0c7D5cFa65d4f9E358dC9fA4446C49dBcB6C",original:"Klaytn"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0xc6735cc74553Cc2caeB9F5e1Ea0A4dAe12ef4632",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x543237045a106D7fd2eE3e2B44b5728e70BDe9c3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x02E30E84161BE1aBfcBB2b154B11De4C2b5E0a32",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x87374d35C5F1bD78c2b1da383F460e154e7D3E5e",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x0C63D8ADB69204b2946DcB945a6f16d97C255eE2",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x51f3D34651523dD8CC4872ee261A1B0B3f73AceF",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xcc048C353Fdc2f5c378B7BCab9B240Ca2b619f1c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x84aa9100a36D6c3514605F62342abF3cE77D5b97",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xAd027790A64331A11bd1b651739450cC9Dc0098F",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x693b9AC2199d989bDA8C9C5b5d7A3680B4f40dAa",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x0284B4994456Fae4cb56E4d33228d51B674EAD1b",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x3dadA6f29f80A0427C4989E17a5a2ada17441841",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x226B436043B537BD158e84fA199E2Aa36bf364f8",original:"Aptos"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xC77d781f38Cf52F8Ea0b4c0F22312bB9A34911b5",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x68C4365d5229A44D9A59058B65500365492b5307",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf6CC0Cc8D54a4b1A63a0E9745663e0c844Ee4D48",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xBcD7917282E529BAA6f232DdDc75F3901245A492"}],["SEI",{symbol:"SEI",decimals:6,address:"0xc5C0229B38564E1E8083031405Be8d6E6e3Bc462",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x7b34f3711705eB2963fB856cda063C979de4749e",original:"Klaytn"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x861B5C16A2EcED022241072A7beA9D530b99EB6f",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xe94AaBAdB6F833f65B8A9AdDD030985B775188c9",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x45082C9Fc6BBCa72288F47Fad21dE0BECC75759E",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7FCDA925f0994121752ca14C334297BeC3d0eA9E",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x51a3cc54eA30Da607974C5D07B8502599801AC08",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x60845E2503Fcd945b3A6f0bC077a31CC913E654D",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xe3aA397cb6d93Cce4fAd9Cc9E796CCa5E50FB5ED",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x63108fC941F3cCE0B484De19746B5Af949EAF6eE",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xE7176110261ef2FfC885dd568C1093f58F0aEee9",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x79A8FFFCED130314eCC8782C846c4d8d4867A900",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x79D34FDb686B5D139949E4F92D83EEe376489176",original:"Klaytn"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0xbB5A2dC896Ec4E2fa77F40FA630582ed9c6D0172",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x63A30f239DC8d1c17Bf6653a68Fc6C2F83641E6d",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3989C9c4bdd30400E6Aa90990683EAd6a1638A16",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x78554394273957d7e55afC841aeA27Cce469AEd4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x5425890298aed601595a70AB815c96711a31Bc65"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x36Bd1562F874941eE62Ebb2b3A45B4A88A9df90e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x301587BF484756441de43E522027e3751871237B",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xc07c754ef7473d315D973F7D9F7858C2eCe0a0a6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x7E1779F65B644E5f98DdC4D2cB0A0106a7E6d9e1",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4beDc7471374d7479120E44ea9593eBB85f48AD9",original:"Arbitrum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xfe2eCDD1708aaebf1cF802C6124fAFb18B22dfEE",original:"Sei"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x758FEebDDeC06f4bCcEc8F756C8efBD35d5b7124",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xDF7928AF5B33F7de592594958D8d6Ff8472Eb407",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x32eF19C4b3DF65a24972A489e70AdDef5E54262C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xE4FE5DF2084f9D81595e4fcba2399020FBE7b233",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x47a4C4c0f96D6CBe5b5C0A46CB0E22d6A17F1430",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x0f545Be981C37fB15ab7c65404648761e99016e4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}],["CELO",{symbol:"CELO",decimals:18,address:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAb2297E8994149BA91737944E40891881aF762a4",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x456e08952f9091B6c268dC0cECad53d141152C59",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x685B29e17440c42758Ab3F80FD3603EF01bebe9A",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x01950A33DfFa63E6Bc23b5dB440505581A4cc0e7",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x66E080407407620844fE2083c33108BE55E087bc",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x832e8050D6c64724500DE9B0ffe1CAc6c570a26d",original:"Sei"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x898471a82737dFFfB61915F9e8381e279076D72b",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB0524bEF6c61c6150B340b2828a890fD8dEa60C0",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xeBB3fF6E5d61d3793Fdb60f7942BA78E636019f6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7a56409988BBF8758b3ba412b9c7E3FE504C8544",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xDDB349c976cA2C873644F21f594767Eb5390C831",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAC0a2fF7DD597de863878a3372142b07B614C125",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x0C4AbF95Ff3d82d1F02f55e65050eA5bA062606E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x28E768a51D19dcB753a24B79D1e89c92fee094Ba",original:"Optimism"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x01a050Fc725F4E99aAD43Eb6f8481f38ee6231aD",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x05Efb4aC79ef48a4830f517834c6f5f039F16832",original:"Sei"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xd27d8883E31FAA11B2613b14BE83ad8951C8783C",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xE5dE10C4b744bac6b783fAF8d9B9fDFF14Acc3c9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x7f5Ca1bcFb38fDF4c0E0646FCbf3FA87740ff65D",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xc31EC0108D8e886be58808B4C2C53f8365f1885D",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xD2888f015BcB76CE3d27b6024cdEFA16836d0dbb",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x15025b956969DD8F1d0CD69959Ad97128F8f6D69",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xf98E630a3DD4F21Cab7a37Bb01209cb62959169D",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7480641F5B00b4Fc39d6AaeC4Cd851EdEA7f31CF",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf82E21cE03471983Afb9c2E3789Aa13a2d7242E8",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x1EdDe35B7e058194B457B8621285EaFA710f01ea",original:"Sei"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7VPWjBhCXrpYYBiRKZh1ubh9tLZZNkZGp2ReRphEV4Mc",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"2BAqec7Qof3Y7VJatwFsRHUNSQBSkzaEsT1V5bW6dbZY",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"3WK3mEDNPrNuQReBvM28NcsqrExMnPxD9pPJmgrUeKKH",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ACbmcQxbbhiXWM1GmapUSMmBYKMvnFLfAAXKqdo8xKwo",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"}],["SUI",{symbol:"SUI",decimals:8,address:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",original:"Aptos"}],["WETHbase",{symbol:"WETH",decimals:8,address:"EKZqcBZ3Y7YTDinpecA7SxRp9B4s1m99VHJ9jpvyTwzW",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"FMYvcyMJJ22whB9m3T5g1oPKwM6jpLnFBXnrY6eXmCrp",original:"Ethereum"}],["tBTCoptimism",{symbol:"tBTC",decimals:8,address:"HsPvRT3J7kuitNvNHogyZeSEagcqAqwwq2FPgrGfgApy",original:"Optimism"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["SEI",{symbol:"SEI",decimals:6,address:"8LFdfuhbfdH8oBzSKDgfPAxvLW24dCM9ttjBrBobURuk",original:"Sei"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0x72831f626b1f0e11be201893d5cb641917730b1ccac778e4a77f8ab2052f0784::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x9e4396c19ec1c5f2214c79d3af3f31e59869640305560f8f2499c36fa9c8e0f2::coin::COIN",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0xe6fc78aa2b52b785bdcb67901cd85793a0b593248f315cb755974d23d0fcb837::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xa516bcbf83b29a2944bb53ec9f934ea7d78c3626d3ae411d2fb9dcb977522e67::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN",original:"Aptos"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xbbc39df58a11072ceeac1f685393ca912d1a1bfd6e772053ec5a544f36124da::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x7b442b988864149dedfb9b6a75a88c7c33b9ddd3d15a87bf25104e1fcdd680ab::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x4125940814a0ca87465a1a59092a7344633ad03b48ad7cda36d799d8558012c1::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xacf6784120b221a077ab0b84acc0b76930779eb55f157ea2492be4a60b808f6::coin::COIN",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x22c5cdaabaae4b6d3351f9bba9511b0aebb0662a6c209a360f0776e1e77a8438::coin::COIN",original:"Sei"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0x381775005cb32cdd3dbf935ae1b978ed40d309c72b009cd4a812aab6d991418a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x5f229253e2b2d03fb909f565feca49452582bd633a5816e5ce30aa593cb49d8a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x02ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x3f0fdd44d96dae888d6c576218cf655458316a27c7bdc46537f61e531b10d3df::coin::T",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xcff1d9820851201436ad225dcc4374a2d15f52a74109283eb9881be799677e92::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xcfaabb3cb08ad612905dd6b2593d044ce857dfe5360148333b4635fb57d4d13f::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x6e2d5d1a6d6d0e0c5db506ce64ead0530847a48b96516abbb08cdebe43fe3036::coin::T",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xcae0ba0b7a435730ab65f1c8357d213e5cf9d4b377b96761745a8edaf9c9df6d::coin::T",original:"Sei"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x44D627f900da8AdaC7561bD73aA745F132450798",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5010B0988a035915C91a2a432085824FcB3D8d3f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x31B2BAEE47Dc5Fc06baEC1BF73C124031b44fB97",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xFFB5d863d5132523d013338845A1Bb01EDd440f4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x9DeF11E63C23c71dE3716b81dD2Fdad2B24b8b7F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x410B0EE532EFfB18fa4d90cc095B1CD58aC43d5a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x4C5208246676486064c501E1DAF2dD21596Bc5f5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xB4808E58713112AbAbB8167C7187F8988df38bbD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x72C56041ea5fe8bDE99b2A123fb5964cDE8C7FE9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xCEc03b5710a464F4354AF35ebD0310238F656DFf",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x6Fb1dE2372e48fe66c84cf37cc2fb54EaEe62988",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xEe0fC8BECD593B41AACBd93936fDAbc2A444370A",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd934A15FfA3945DD0Ba2cb7b4174024261A14874",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x8eD43aBdc4f836aa60933177B31AC358ea09f27E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x5c443C05C72F0660502d88642c807020cc9b71A2",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xf175520c52418dfe19c8098071a252da48cd1c19"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x0219441240d89fAc3fD708d06d8fD3A072C02FB6",original:"Ethereum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x783349cd20f26CE12e747b1a17bC38D252c9e119"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x9dA16Ae62De05bcb4606c4BFbB54046872501Bd0",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x7B5edB2B3d2BeA8057a736B82AC6EF35c70bdadD",original:"Sei"}]]],["Sei",[["WETH",{symbol:"WETH",decimals:8,address:"sei13pzlt9etk44hj22lckncvampq2qu2gxv6r6774f3hma4vc07wqgsmftjx7",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"sei1nj32y0h0vzam33ay42h2majlfk7tdkqcuk84srn0v2a52kmujgfsyfe78f",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"sei1dc94as3vgxn3qkr5h0lnnrep69mtfku6jg4t94gfkunuyzr5g5eqyqvj9p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"sei10a7see3f9t2j9l8fdweur3aqy4zgvz583a268hhhln3yzps6l5mqnl4ua6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"sei1mgpq67pj7p2acy5x7r5lz7fulxmuxr3uh5f0szyvqgvru3glufzsxk8tnx",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"sei1uyce5s6cc8hveg0maq2lg7wm6v6fvwqmznypj559nzf9wr9tmw3qnd3ce7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"sei1cr3j7rxq0dhq04ksftmj8n2w096w9g7ck8fngkvk2lrmy3qwz56q9thu9u",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"sei1yw4wv2zqg9xkn67zvq3azye0t8h0x9kgyg3d53jym24gxt49vdyswk5upj",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"sei140m6xagmw0zesejzhsvk46zprgscr7tu94h36rwsutcsxcs4fmds9sevym",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"sei1at3xuugacwgu3ppx7fxzmtr3q6m3ztjuean9r2mwcnqupw28yezs7unxgz",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"sei1rhpcprr2pffe6ydf078a0qeslhnlywxh2t3wjax4489z0m29cj9swj5khc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"sei1em74y5sts4h8y5zuhfdn4w5g8zs285qld3kczpk6rh32jpvjyqqsvv0pdt",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"sei1pf5j3dgngm8yj2xkwmvmvt87g4vyc0szpjz92q8ly9erh23ytn4s983htv",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:8,address:"sei1kdqylzcv86t7slg8m30mlfgna9xsrusghdgnavvurkv0rku7jvqqta7lka",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"sei1lf6ghmrkd7gn5jlj6xw64suycpjy7g4s5q92fc2gef4f8q3znanq95mmgv",original:"Base"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"sei1aj3uu9ejt8fk6rpjfhzluqnzqmv3enlndjmt8llkr7dn2dtz55xst4s3mn",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"usei"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0x285d75E04D78F53f4Ed29A506a7e8479EEf3035f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x42A212A2E7eA8feF4ED28F439F16A6ABDd34DA35",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x2B732F5ad6117818Ad3b7aC73C16033F6ECD78E5",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x50FD4064cC536a964E2E0Dc7B3fE2313Ab386bEA",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB039aC4Fa8Ed99d30C2f7D791294A9d5FAd698eF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x92b0C4D27a05921Ded4BB117755990F567aEe049",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xb39697B8BA5df91A169690DfEf88B911436619F2",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xa507f7566B8aDE000E886166B95964677ef3b3Ef",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9592eE6eD1D9E611b7aa6F20CCbD7Ba571Be8bdd",original:"Celo"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xF8cbdc4E54281b801f182039c250Ad6d13818250",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xe64e2139fdf6Ee7e3795FE51955e21bA3d9eB9F7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa81C3BEf2d6f10213b860458DC119666C0ba13bf",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xfd064A18f3BF249cf1f87FC203E90D8f650f2d63"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xFd903eA23Bf65f26FdAf2eeb589cf007b108882E",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xbC4CB3CD7186fD457C072298C48d0eDf7213CAEa",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x97B5fE27a82b2B187D9a19C5782d9eB93B82DaC3",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x85727F4725A4B2834e00Db1AA8e1b843a188162F"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x227115F659f7c2939D23FedE68583F5291c395A6",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x90eC817A1f7C1Eb18dD2985C534A78dD88747F47",original:"Sei"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0x33Db338718aC89Cd8DB13B56af05be3a3029BBE5",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x0382F518AcE1a86224c78B7CDfa67B9774055A1b",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x427B5a0b0384D7FD3AF81805A166a2d9C1116D7d",original:"Polygon"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x81BA80f5820273AA965086e710042d737993f12c",original:"Fantom"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x99436d62259532E0407A7aE78A3b48D119B13903",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x06EcAF6638070Ccf3b3dEA421b3becAA57f3e559",original:"Solana"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x04b559971c90Dfb12D9795E95883e55f2fcf34Ed",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x5D89a5BcB86F15a2CCAb05e7E3bEE23fDF246a64",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE04e0F5f2C6ce45A40482C3AB92CA91D6741D717",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x1a53759DE2eADf73bd0b05c07a4F1F5B7912dA3d"}],["SEI",{symbol:"SEI",decimals:6,address:"0xE12be3D96fE101246bF2d290184B0eC6D35d02CA",original:"Sei"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfs63pmq2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1rl8su3hadqqq2v86lscpuklsh2mh84cxqvjdew4jt9yd07dzekyqkmcy3p",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1v2efcqkp2qtev06t0ksjnx6trxdd0f7fxg2zdrtzr8cr9wdpjkyqkv9ch6",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1uuwad4khwek2h05gmkktzmh8l4t0ep54yydlsqg0l4y2uh3tqfyq3an9k6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1vhjnzk9ly03dugffvzfcwgry4dgc8x0sv0nqqtfxj3ajn7rn5ghq6whn2p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole1335rlmhujm0gj5e9gh7at9jpqvqckz0mpe4v284ar4lw5mlkryzsnetfsj",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1tqwwyth34550lg2437m05mjnjp8w7h5ka7m70jtzpxn4uh2ktsmq8dv649",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1qum2tr7hh4y7ruzew68c64myjec0dq2s2njf6waja5t0w879lutqv2exs9",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1808lz8dp2c39vhm9gnemt7zzj95nvrmjepxp7v3w4skzrlyzcmnsxkduxf",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1e8z2wjelypwxw5sey62jvwjyup88w55q3h6m0x8jtwjf6sx5c7ys4mzydk",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole10sfpr8ykh9xn93u8xec4ed3990nmvh86e0vaegkauqhlkxspysyqwavrxx",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1gryz69gzl6mz2m66a4twg922jtlc47nlx73sxv88lvq86du5zvyqz3mt23",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole1ced9v4plkf25q8c6k9gz0guq6l4xyjujpjlvxfg8lpaqywkmamashswq7p",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole1yf4p93xu68j5fseupm4laj4k6f60gy7ynx6r5vvyr9c0hl3uy8vqpqd6h0",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1u8rft0gee23fa6a0t4t88ualrza5lj8ses4aur0l66c7efpvjezqchv34j",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole186k0cp83c3wyvapgh8fxf66ededemzrfujvjfsx0xw3vr0u9g8sq2y30vx",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"wormhole1s3pk90ccfl6ueehnj8s9pdgyjjlspmr3m5rv46arjh5v4g08dd0qrchjrk",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole12eu6c7f67l8gdl2lt0hz0dgdh24dhune6wjgy5t0es3tpfzhc3yspwnpfy",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1u5z7097gm57zvun9wqsx6jxej2gpdjhg9l9xfe58rhpm29rtjmfqfnl4yv",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"wormhole10p89p4zh00dwdg8h52sysrqm0l2j47jj3kmg93pnz2a039ucw7esgl5vl9",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1ja4txt6m0jjq0gmjtmv442f8wk0r5f5apaya0z55wwlrpg3p5xaq3qxw7h",original:"Base"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1rm8ztmk20lrd6ex8uqq3yu7a6eyfjwvg53pcuuj22ffe2y8r3yzqr8j4v9",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1u2zdjcczjrenwmf57fmrpensk4the84azdm05m3unm387rm8asdsxqwfeu",original:"Ethereum"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/A4A8B6AE885DACD75B228031C0D18AD7EE1B914CED30C9F6F4230DDBD4A1CF2B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/3BB8C4BD1C90599B2FA5B5839DD0813EF7B94B0BD0904C4C5A61498AE81E0EE9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/1941ED1147121BA7DF35559597B6EB3251844DBBBE4557337D957CB95E0978C2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/2864B3418775DDB90EE1410EFF822FDA94E9F0FF77FC8771644761C79EDFE7A3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/43F15553F8598186394E81E18604B8B4532B2D7E855D9FFE68A2EF6802C18BE4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/65A67BA10DE2378B32AC5A822321E370966D3D4E180DEFB4C3C5245B21088DDF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/99EAD53D49EC7CC4E2E2EB26C22CF81C16727DF0C4BF7F7ACBF0D22D910DB5DE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/EC9FA5074F34F0644A025BB0263FDAE8F364C5E08523F6464465EF1010FF5A3A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/145C6B688F70B0C2F6D87546A5974A75CE75B3A2940275B750E65797B2996157",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/3A4EA3F8096856C0802F86B218DD74213B4C10224AA44BBD54AEAAA2ABF078BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/7DB06BB67428510AFC3967DC90F5632C679D55D8C487A951A0EEC3160AF492A6",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/B5D53105A7AA2BEC4DA4B3304228F3856219AE7CF84A9023043C481629E3E319",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/35A0467DE5744662078DE8B36CBBE0CF0EAA022565A3E6630CB375DDEBB96E05",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/30778BA41ADF2D8A70B90DB53C2E0251731A40276EF6737215BB1A6ED9E90078",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/7C495BD95757ED662A897C139F1C9F18275A86EE7203A0B073E2DB12B1E19D63",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/221A4AADF7972F3BB8F48A6CA984FF0AE65B5D973FF1A695B9642AD702F51789",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/06ED2700071B5A9C582F51A556537DA94E69EF547E7E6CCD8BFA3D95C818A525",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/80B3FECB24A4CE94537444E5BF937AC4C08A39BF90D59620D278FA185BD2B148",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/0A98A3947189D7C368170C76C3EF49486DDBE095F34B72A3C7F92AEBE1013A1D",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/A45069EA82C933945973E66E4222EEE4624498D4483508FE9BEBF9D519F2132F",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/2E4F8BC7F7AF33752CF7E290CAD4417EE67CD18FFC0D099E6519A440E588E0CE",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/C66B7DB3ED665D2F5FE8ED15E88B5913A37D80601E161C5E53A743DE12C0FB85",original:"Ethereum"}]]],["Cosmoshub",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/77FE9153FA76C3107CB9F6633AC33509A58529E9622327F216BA8107C79C2DE3",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/D0EC31D1176BB69EA1A7CF7172CA0380B7AF488AFC6D55B101B8363C2141CD4F",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/755FBC53FFB46FB505B5269F9BEDF47041F2A0EF2FF8D0520315403E5925C80A",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/5F21E975410DA22AF565B1772DC45AD0BD5F6DA004981EBE291763F3D2C72A96",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/37FB599287C6963C413E915FDE83EFA69A3CE8147675DD5A7F974B45F39C8A31",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5B0D5974A56332468DD4B2D07C96A7386FCF8FE7303FF41234F90E410EF51937",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/BAEAC83736444C09656FBE666FB625974FCCDEE566EB700EBFD2642C5F6CF13A",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F09E98FA8682FF39130F171E9D89A948B0C3A452F2A31F22B6CC54A3AAE1CD4A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/919D8F138B7E71BB067C7301AB5C2D48415E8C3A2D9187861245CEC668F88E3C",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/009206915358A002C852A2A2CBEDB8446D2D02E519C815087A01F8BDB4DF77BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/1EEDF447A6B046B20C00B1497BED5947219AEEBE0D9A85235C85133A554DF7A4",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/D3EA463A51E31B2B30BED1978575CAC145DBAB354B8A0EA5D4CFB12D737AF790",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/26D8D6C63C8D37A5127591DDA905E04CC69CBD3A64F9DA3B1DA3FB0B6A7D9FA5",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/129EC6B8A41BE07F94DD267F552F4AE1D5EAEBB51634A1468556AF06C10C2692",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/0CCA5EB15BC2FE474E71DBC9698302CDE260B6F6548F91C30002F7CBF228197B",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/AB4046AF5B6F146C006DE4DECAD929D24F762A701E09EC8B29000EC63A6E649B",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/6D1B6A7A9EF692A279A6B5994C98C0D598D003D9203BE8309F14B6E57A58506E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/A0298483510D803A045AA7F49CCBD0F9D01010FE0B1A346EBDFFF4BA820C3D21",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/CE3F2FE630DA6A1187F085CDC8D59BA8B20DA48F4866F2D71C5AB7A1D5859933",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/97035986A4BD0AF555713355A02EA31A4526616B6543E019E0D750007FABE06C",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8560BA5F45C95AE716C05978E364F50C98347ACBEC745840C30F91611FA36698",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/5BB02667F9F0C8284FCF7716065C2779039817FBCB91E937F5149FE89FD8F202",original:"Ethereum"}],["ATOM",{symbol:"ATOM",decimals:6,address:"uatom"}]]],["Evmos",[["EVMOS",{symbol:"EVMOS",decimals:18,address:"atevmos"}]]],["Kujira",[["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}]]],["Sepolia",[["ETHsepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHsepolia"}],["WETHsepolia",{symbol:"WETH",decimals:18,address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}]]],["ArbitrumSepolia",[["ETHarbitrum_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum_sepolia"}],["WETHarbitrum_sepolia",{symbol:"WETH",decimals:18,address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}]]],["BaseSepolia",[["ETHbase_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase_sepolia"}],["WETHbase_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]],["OptimismSepolia",[["ETHoptimism_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism_sepolia"}],["WETHoptimism_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]]];testnet.testnetChainTokens=(0,index_js_1$3.constMap)(testnetTokenEntries,[0,[1,2]]);Object.defineProperty(tokens$1,"__esModule",{value:!0});tokens$1.getCanonicalToken=tokens$1.getTokenByKey=tokens$1.getTokensBySymbol=tokens$1.getTokenByAddress=tokens$1.getNative=tokens$1.getTokenMap=void 0;const tokens_js_1=tokens,mainnet_js_1=mainnet,testnet_js_1=testnet;function getTokenMap(s,j){if(s!=="Devnet"){if(s==="Mainnet"){if(!mainnet_js_1.mainnetChainTokens.has(j))return;const $=mainnet_js_1.mainnetChainTokens.get(j);return Object.fromEntries($.map(([_e,et])=>[_e,{...et,chain:j,key:_e}]))}if(s==="Testnet"){if(!testnet_js_1.testnetChainTokens.has(j))return;const $=testnet_js_1.testnetChainTokens.get(j);return Object.fromEntries($.map(([_e,et])=>[_e,{...et,chain:j,key:_e}]))}throw new Error("Unsupported network: "+s)}}tokens$1.getTokenMap=getTokenMap;function getNative(s,j){const $=getTokenMap(s,j);return $?tokens_js_1.filters.native($):void 0}tokens$1.getNative=getNative;function getTokenByAddress(s,j,$){const _e=getTokenMap(s,j);return _e?tokens_js_1.filters.byAddress(_e,$):void 0}tokens$1.getTokenByAddress=getTokenByAddress;function getTokensBySymbol(s,j,$){const _e=getTokenMap(s,j);return _e?tokens_js_1.filters.bySymbol(_e,$):void 0}tokens$1.getTokensBySymbol=getTokensBySymbol;function getTokenByKey(s,j,$){const _e=getTokenMap(s,j);return _e?tokens_js_1.filters.byKey(_e,$):void 0}tokens$1.getTokenByKey=getTokenByKey;function getCanonicalToken(s,j,$){const _e=getTokenByKey(s,j,$);if(!_e)return;if(!_e.original)return _e;const et=getTokensBySymbol(s,_e.original,_e.symbol);if(et)return et.find(tt=>!tt.original)}tokens$1.getCanonicalToken=getCanonicalToken;var types$1={},contracts={};Object.defineProperty(contracts,"__esModule",{value:!0});contracts.getContracts=void 0;const sdk_base_1$7=require$$0$7;function getContracts(s,j){const $={coreBridge:sdk_base_1$7.contracts.coreBridge.get(s,j),tokenBridge:sdk_base_1$7.contracts.tokenBridge.get(s,j),nftBridge:sdk_base_1$7.contracts.nftBridge.get(s,j),relayer:sdk_base_1$7.contracts.relayer.get(s,j),tokenBridgeRelayer:sdk_base_1$7.contracts.tokenBridgeRelayer.get(s,j)};return sdk_base_1$7.contracts.circleContracts.has(s,j)&&($.cctp=sdk_base_1$7.contracts.circleContracts.get(s,j)),sdk_base_1$7.contracts.gateway.has(s,j)&&($.gateway=sdk_base_1$7.contracts.gateway.get(s,j)),sdk_base_1$7.contracts.translator.has(s,j)&&($.translator=sdk_base_1$7.contracts.translator.get(s,j)),sdk_base_1$7.contracts.portico.has(s,j)&&($.portico=sdk_base_1$7.contracts.portico.get(s,j)),$}contracts.getContracts=getContracts;Object.defineProperty(types$1,"__esModule",{value:!0});types$1.buildConfig=types$1.isTransactionIdentifier=types$1.resolveWrappedToken=types$1.universalAddress=types$1.canonicalAddress=types$1.isSameToken=types$1.isTokenId=types$1.nativeTokenId=types$1.isNative=void 0;const sdk_base_1$6=require$$0$7,tokens_1$1=tokens$1,address_js_1$1=requireAddress(),contracts_js_1=contracts;function isNative(s){return typeof s=="string"&&s==="native"}types$1.isNative=isNative;function nativeTokenId(s){return{chain:s,address:"native"}}types$1.nativeTokenId=nativeTokenId;function isTokenId(s){return typeof s=="object"&&s.address!==void 0&&s.chain!==void 0&&(0,sdk_base_1$6.isChain)(s.chain)}types$1.isTokenId=isTokenId;function isSameToken(s,j){return s.chain!==j.chain?!1:isNative(s.address)&&isNative(j.address)?!0:canonicalAddress(s)===canonicalAddress(j)}types$1.isSameToken=isSameToken;function canonicalAddress(s){return isTokenId(s)&&isNative(s.address)?s.address:s.address.toNative(s.chain).toString()}types$1.canonicalAddress=canonicalAddress;function universalAddress(s){if(isNative(s.address))throw new Error("Invalid address, cannot convert the string literal `native` to a Universal Address");return s.address.toUniversalAddress().toString()}types$1.universalAddress=universalAddress;function resolveWrappedToken(s,j,$){let _e;if(isTokenId($)){if(!isNative($.address))return[!1,$];_e=$.address}else _e=$;if(isNative(_e)){const tt=(0,tokens_1$1.getNative)(s,j);if(!tt)throw new Error("Invalid destination token");const nt=tt.wrappedKey,rt=(0,tokens_1$1.getTokenByKey)(s,j,nt);if(!rt)throw new Error("Invalid wrapped token key: "+nt);return[!0,{chain:j,address:(0,address_js_1$1.toNative)(j,rt.address)}]}return[!1,{chain:j,address:_e}]}types$1.resolveWrappedToken=resolveWrappedToken;function isTransactionIdentifier(s){return s.chain!==void 0&&s.txid!==void 0}types$1.isTransactionIdentifier=isTransactionIdentifier;function buildConfig(s){return sdk_base_1$6.chains.map($=>{const _e=(0,sdk_base_1$6.chainToPlatform)($);let et="";try{et=sdk_base_1$6.nativeChainIds.networkChainToNativeChainId.get(s,$)}catch{}const tt=(0,tokens_1$1.getTokenMap)(s,$),nt=tt?Object.values(tt).find(ot=>isNative(ot.address)&&ot.wrappedKey):void 0,rt=nt?tt[nt.wrappedKey]:void 0;return{key:$,platform:_e,network:s,chainId:(0,sdk_base_1$6.toChainId)($),finalityThreshold:sdk_base_1$6.finality.finalityThreshold.get($)??0,blockTime:sdk_base_1$6.finality.blockTime.get($)??0,contracts:(0,contracts_js_1.getContracts)(s,$),nativeTokenDecimals:sdk_base_1$6.decimals.nativeDecimals(_e),nativeChainId:et,tokenMap:tt,wrappedNative:rt,explorer:sdk_base_1$6.explorer.explorerConfigs(s,$),rpc:sdk_base_1$6.rpc.rpcAddress(s,$)}}).reduce(($,_e)=>({...$,[_e.key]:_e}),{})}types$1.buildConfig=buildConfig;Object.defineProperty(chain,"__esModule",{value:!0});chain.ChainContext=void 0;const tokens_1=tokens$1,address_js_1=requireAddress(),protocol_js_1=protocol,types_js_1=types$1;class ChainContext{constructor(j,$,_e){Mn(this,"network");Mn(this,"chain");Mn(this,"config");Mn(this,"platform");Mn(this,"rpc");Mn(this,"protocols",new Map);Mn(this,"supportsWormholeCore",()=>this.supportsProtocol("WormholeCore"));Mn(this,"getWormholeCore",()=>this.getProtocol("WormholeCore"));Mn(this,"supportsTokenBridge",()=>this.supportsProtocol("TokenBridge"));Mn(this,"getTokenBridge",()=>this.getProtocol("TokenBridge"));Mn(this,"supportsAutomaticTokenBridge",()=>this.supportsProtocol("AutomaticTokenBridge"));Mn(this,"getAutomaticTokenBridge",()=>this.getProtocol("AutomaticTokenBridge"));Mn(this,"supportsCircleBridge",()=>this.supportsProtocol("CircleBridge"));Mn(this,"getCircleBridge",()=>this.getProtocol("CircleBridge"));Mn(this,"supportsAutomaticCircleBridge",()=>this.supportsProtocol("AutomaticCircleBridge"));Mn(this,"getAutomaticCircleBridge",()=>this.getProtocol("AutomaticCircleBridge"));Mn(this,"supportsIbcBridge",()=>this.supportsProtocol("IbcBridge"));Mn(this,"getIbcBridge",()=>this.getProtocol("IbcBridge"));Mn(this,"supportsPorticoBridge",()=>this.supportsProtocol("PorticoBridge"));Mn(this,"getPorticoBridge",()=>this.getProtocol("PorticoBridge"));this.config=$.config[j],this.platform=$,this.chain=this.config.key,this.network=this.config.network,this.rpc=_e}getRpc(){return this.rpc=this.rpc?this.rpc:this.platform.getRpc(this.chain),this.rpc}async getDecimals(j){if((0,types_js_1.isNative)(j))return this.config.nativeTokenDecimals;if(this.config.tokenMap){const $=(0,types_js_1.canonicalAddress)({chain:this.chain,address:j}),_e=(0,tokens_1.getTokenByAddress)(this.network,this.chain,$);if(_e)return _e.decimals}return this.platform.utils().getDecimals(this.chain,await this.getRpc(),j)}async getBalance(j,$){return this.platform.utils().getBalance(this.chain,await this.getRpc(),j,$)}async getLatestBlock(){return this.platform.utils().getLatestBlock(await this.getRpc())}async getLatestFinalizedBlock(){return this.platform.utils().getLatestFinalizedBlock(await this.getRpc())}async parseTransaction(j){return this.platform.parseWormholeMessages(this.chain,await this.getRpc(),j)}async sendWait(j){return this.platform.utils().sendWait(this.chain,await this.getRpc(),j)}getToken(j){if(this.config.tokenMap&&j in this.config.tokenMap)return this.config.tokenMap[j]}async getNativeWrappedTokenId(){if(this.config.wrappedNative){const{address:$}=this.config.wrappedNative;return{chain:this.chain,address:(0,address_js_1.toNative)(this.chain,$)}}const j=await this.getTokenBridge();return{chain:this.chain,address:await j.getWrappedNative()}}async getTokenAccount(j,$){return{chain:this.chain,address:j}}supportsProtocol(j){return(0,protocol_js_1.protocolIsRegistered)(this.chain,j)}async getProtocol(j,$,_e){if(!$&&this.protocols.has(j))return this.protocols.get(j);const et=$?{...this.config.contracts,...$}:this.config.contracts,tt=_e??await this.getRpc(),nt=this.platform.getProtocolInitializer(j);let rt;if(_e){if($)throw new Error("Custom contracts are currently not supported with custom rpc connection. Add the contracts to the base config.");rt=await this.platform.getProtocol(j,tt)}else if((0,protocol_js_1.isVersionedProtocolInitializer)(nt)){const ot=await nt.getVersion(tt,et);rt=new nt(this.network,this.chain,tt,et,ot)}else rt=new nt(this.network,this.chain,tt,et);return $||this.protocols.set(j,rt),rt}}chain.ChainContext=ChainContext;var signer={};Object.defineProperty(signer,"__esModule",{value:!0});signer.isNativeSigner=signer.PlatformNativeSigner=signer.isSignAndSendSigner=signer.isSignOnlySigner=signer.isSigner=void 0;function isSigner(s){return isSignOnlySigner(s)||isSignAndSendSigner(s)}signer.isSigner=isSigner;function isSignOnlySigner(s){return typeof s=="object"&&"chain"in s&&typeof s.chain=="function"&&"address"in s&&typeof s.address=="function"&&"sign"in s&&typeof s.sign=="function"}signer.isSignOnlySigner=isSignOnlySigner;function isSignAndSendSigner(s){return typeof s=="object"&&"chain"in s&&typeof s.chain=="function"&&"address"in s&&typeof s.address=="function"&&"signAndSend"in s&&typeof s.signAndSend=="function"}signer.isSignAndSendSigner=isSignAndSendSigner;class PlatformNativeSigner{constructor(j,$,_e){Mn(this,"_chain");Mn(this,"_address");Mn(this,"_signer");this._chain=j,this._address=$,this._signer=_e}unwrap(){return this._signer}}signer.PlatformNativeSigner=PlatformNativeSigner;function isNativeSigner(s){return isSigner(s)&&"unwrap"in s&&typeof s.unwrap=="function"}signer.isNativeSigner=isNativeSigner;var rpc$1={};Object.defineProperty(rpc$1,"__esModule",{value:!0});var attestation={};Object.defineProperty(attestation,"__esModule",{value:!0});attestation.isIbcMessageId=attestation.isCircleMessageId=attestation.isWormholeMessageId=void 0;function isWormholeMessageId(s){return s.sequence!==void 0&&s.emitter!==void 0&&s.chain!==void 0}attestation.isWormholeMessageId=isWormholeMessageId;function isCircleMessageId(s){return s.hash!==void 0}attestation.isCircleMessageId=isCircleMessageId;function isIbcMessageId(s){return s.dstChannel!==void 0&&s.srcChannel!==void 0&&s.chain!==void 0&&s.srcPort!==void 0&&s.dstPort!==void 0&&s.sequence!==void 0}attestation.isIbcMessageId=isIbcMessageId;var protocols={},core$1={},core={};Object.defineProperty(core,"__esModule",{value:!0});(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(core,s)})(core$1);var circleBridge$1={},automaticCircleBridgeLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.automaticCircleBridgeNamedPayloads=s.circleConnectPayload=s.depositWithPayloadLayout=void 0;const j=require$$0$7,$=requireLayoutItems(),_e=vaa$1,et=tt=>[(0,$.payloadIdItem)(1),{name:"token",binary:"bytes",layout:[{name:"address",...$.universalAddressItem},{name:"amount",...$.amountItem}]},{name:"sourceDomain",...$.circleDomainItem},{name:"targetDomain",...$.circleDomainItem},{name:"nonce",...$.circleNonceItem},{name:"caller",...$.universalAddressItem},{name:"mintRecipient",...$.universalAddressItem},j.layout.customizableBytes({name:"payload",lengthSize:2},tt)];s.depositWithPayloadLayout=et,s.circleConnectPayload=[(0,$.payloadIdItem)(1),{name:"targetRelayerFee",...$.amountItem},{name:"toNativeTokenAmount",...$.amountItem},{name:"targetRecipient",...$.universalAddressItem}],s.automaticCircleBridgeNamedPayloads=[["DepositWithPayload",(0,s.depositWithPayloadLayout)()],["TransferWithRelay",(0,s.depositWithPayloadLayout)(s.circleConnectPayload)]],(0,_e.registerPayloadTypes)("AutomaticCircleBridge",s.automaticCircleBridgeNamedPayloads)})(automaticCircleBridgeLayout);var circleBridgeLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.circleBridgeNamedPayloads=s.circleMessageLayout=void 0;const j=requireLayoutItems(),$=vaa$1,_e={binary:"uint",size:4,custom:0,omit:!0},et=[{name:"messageBodyVersion",..._e},{name:"burnToken",...j.universalAddressItem},{name:"mintRecipient",...j.universalAddressItem},{name:"amount",...j.amountItem},{name:"messageSender",...j.universalAddressItem}];s.circleMessageLayout=[{name:"version",..._e},{name:"sourceDomain",...j.circleDomainItem},{name:"destinationDomain",...j.circleDomainItem},{name:"nonce",...j.circleNonceItem},{name:"sender",...j.universalAddressItem},{name:"recipient",...j.universalAddressItem},{name:"destinationCaller",...j.universalAddressItem},{name:"payload",binary:"bytes",layout:et}],s.circleBridgeNamedPayloads=[["Message",s.circleMessageLayout]],(0,$.registerPayloadTypes)("CircleBridge",s.circleBridgeNamedPayloads)})(circleBridgeLayout);var circleBridge={};Object.defineProperty(circleBridge,"__esModule",{value:!0});circleBridge.isCircleTransferDetails=circleBridge.AutomaticCircleBridge=circleBridge.CircleBridge=void 0;const sdk_base_1$5=require$$0$7,circleBridgeLayout_js_1=circleBridgeLayout,utils_js_1=utils$3,index_js_1$2=vaa$1;var CircleBridge;(function(s){s.isCircleAttestation=j=>j.message!==void 0,s.deserialize=j=>{const $=(0,sdk_base_1$5.deserializeLayout)(circleBridgeLayout_js_1.circleMessageLayout,j),_e=sdk_base_1$5.encoding.hex.encode((0,utils_js_1.keccak256)(j),!0);return[$,_e]},s.serialize=j=>(0,sdk_base_1$5.serializeLayout)(circleBridgeLayout_js_1.circleMessageLayout,j)})(CircleBridge||(circleBridge.CircleBridge=CircleBridge={}));var AutomaticCircleBridge;(function(s){const j="AutomaticCircleBridge",$=["DepositWithPayload","TransferWithRelay"];s.getTransferDiscriminator=(0,sdk_base_1$5.lazyInstantiate)(()=>(0,index_js_1$2.payloadDiscriminator)([j,$]))})(AutomaticCircleBridge||(circleBridge.AutomaticCircleBridge=AutomaticCircleBridge={}));function isCircleTransferDetails(s){return s.amount!==void 0&&s.from!==void 0&&s.to!==void 0}circleBridge.isCircleTransferDetails=isCircleTransferDetails;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(automaticCircleBridgeLayout,s),$(circleBridgeLayout,s),$(circleBridge,s)})(circleBridge$1);var ibc$1={},ibc={};Object.defineProperty(ibc,"__esModule",{value:!0});ibc.isIbcTransferInfo=ibc.makeGatewayTransferMsg=ibc.gatewayTransferMsg=ibc.toGatewayMsg=ibc.isGatewayTransferDetails=ibc.isGatewayIbcTransferMsg=ibc.isGatewayTransferWithPayloadMsg=ibc.isGatewayTransferMsg=void 0;const sdk_base_1$4=require$$0$7;function isGatewayTransferMsg(s){return s.gateway_transfer!==void 0}ibc.isGatewayTransferMsg=isGatewayTransferMsg;function isGatewayTransferWithPayloadMsg(s){return s.gateway_transfer_with_payload!==void 0}ibc.isGatewayTransferWithPayloadMsg=isGatewayTransferWithPayloadMsg;function isGatewayIbcTransferMsg(s){return s.gateway_ibc_token_bridge_payload!==void 0}ibc.isGatewayIbcTransferMsg=isGatewayIbcTransferMsg;function isGatewayTransferDetails(s){return s.token!==void 0&&s.amount!==void 0&&s.from!==void 0&&s.to!==void 0}ibc.isGatewayTransferDetails=isGatewayTransferDetails;function toGatewayMsg(s){if(typeof s=="string"&&(s=JSON.parse(s)),isGatewayIbcTransferMsg(s)&&(s=s.gateway_ibc_token_bridge_payload),isGatewayTransferMsg(s))return s.gateway_transfer;if(isGatewayTransferWithPayloadMsg(s))return s.gateway_transfer_with_payload;throw new Error(`Unrecognized payload: ${s}`)}ibc.toGatewayMsg=toGatewayMsg;function gatewayTransferMsg(s){if(isGatewayTransferDetails(s)){const j=s.payload?sdk_base_1$4.encoding.b64.encode(s.payload):void 0;return makeGatewayTransferMsg(s.to.chain,s.to.address.toNative(s.to.chain),s.fee,s.nonce??Math.round(Math.random()*1e5),j)}return makeGatewayTransferMsg((0,sdk_base_1$4.toChain)(s.chain),s.recipient,BigInt(s.fee),s.nonce,s.payload)}ibc.gatewayTransferMsg=gatewayTransferMsg;function makeGatewayTransferMsg(s,j,$=0n,_e,et){const tt=typeof j=="string"?j:sdk_base_1$4.encoding.b64.encode(j.toString()),nt={chain:(0,sdk_base_1$4.toChainId)(s),recipient:tt,fee:$.toString(),nonce:_e};return et?{gateway_transfer_with_payload:{...nt,payload:et}}:{gateway_transfer:{...nt}}}ibc.makeGatewayTransferMsg=makeGatewayTransferMsg;function isIbcTransferInfo(s){return s.id!==void 0&&s.pending!==void 0&&s.data!==void 0}ibc.isIbcTransferInfo=isIbcTransferInfo;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(ibc,s)})(ibc$1);var portico$1={},portico={},porticoLayout={},tokenBridgeLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.tokenBridgeNamedPayloads=s.transferWithPayloadLayout=void 0;const j=require$$0$7,$=requireLayoutItems(),_e=vaa$1,et={binary:"bytes",size:32,custom:{to:rt=>(0,j.range)(rt.byteLength).map(ot=>String.fromCharCode(rt[ot])).join(""),from:rt=>new Uint8Array(rt.split("").map(ot=>ot.charCodeAt(0)))}},tt=[{name:"token",binary:"bytes",layout:[{name:"amount",...$.amountItem},{name:"address",...$.universalAddressItem},{name:"chain",...(0,$.chainItem)()}]},{name:"to",binary:"bytes",layout:[{name:"address",...$.universalAddressItem},{name:"chain",...(0,$.chainItem)()}]}],nt=rt=>[(0,$.payloadIdItem)(3),...tt,{name:"from",...$.universalAddressItem},(0,j.customizableBytes)({name:"payload"},rt)];s.transferWithPayloadLayout=nt,s.tokenBridgeNamedPayloads=[["AttestMeta",[(0,$.payloadIdItem)(2),{name:"token",binary:"bytes",layout:[{name:"address",...$.universalAddressItem},{name:"chain",...(0,$.chainItem)()}]},{name:"decimals",binary:"uint",size:1},{name:"symbol",...et},{name:"name",...et}]],["Transfer",[(0,$.payloadIdItem)(1),...tt,{name:"fee",...$.amountItem}]],["TransferWithPayload",(0,s.transferWithPayloadLayout)()]],(0,_e.registerPayloadTypes)("TokenBridge",s.tokenBridgeNamedPayloads)})(tokenBridgeLayout);(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.namedPayloads=s.porticoPayloadLayout=s.porticoTransferLayout=s.porticoFlagSetLayout=void 0;const j=require$$0$7,$=requireLayoutItems(),_e=vaa$1,et=tokenBridgeLayout,tt=(0,j.bitsetItem)(["shouldWrapNative","shouldUnwrapNative"]);s.porticoFlagSetLayout=[{name:"recipientChain",binary:"uint",endianness:"little",size:2},{name:"bridgeNonce",binary:"uint",endianness:"little",size:4},{name:"feeTierStart",binary:"uint",endianness:"little",size:3},{name:"feeTierFinish",binary:"uint",endianness:"little",size:3},{name:"padding",binary:"bytes",size:19},{name:"flags",...tt}],s.porticoTransferLayout=[{name:"flagSet",binary:"bytes",layout:s.porticoFlagSetLayout},{name:"startTokenAddress",...$.universalAddressItem},{name:"cannonAssetAmount",...$.amountItem},{name:"finalTokenAddress",...$.universalAddressItem},{name:"recipientAddress",...$.universalAddressItem},{name:"destinationPorticoAddress",...$.universalAddressItem},{name:"amountSpecified",...$.amountItem},{name:"minAmountStart",...$.amountItem},{name:"minAmountFinish",...$.amountItem},{name:"relayerFee",...$.amountItem}],s.porticoPayloadLayout=[{name:"flagSet",binary:"bytes",layout:s.porticoFlagSetLayout},{name:"finalTokenAddress",...$.universalAddressItem},{name:"recipientAddress",...$.universalAddressItem},{name:"cannonAssetAmount",...$.amountItem},{name:"minAmountFinish",...$.amountItem},{name:"relayerFee",...$.amountItem}],s.namedPayloads=[["Transfer",(0,et.transferWithPayloadLayout)(s.porticoPayloadLayout)]],(0,_e.registerPayloadTypes)("PorticoBridge",s.namedPayloads)})(porticoLayout);Object.defineProperty(portico,"__esModule",{value:!0});portico.PorticoBridge=void 0;const sdk_base_1$3=require$$0$7,porticoLayout_js_1=porticoLayout;var PorticoBridge;(function(s){s.deserializePayload=j=>(0,sdk_base_1$3.deserializeLayout)(porticoLayout_js_1.porticoPayloadLayout,j),s.serializePayload=j=>(0,sdk_base_1$3.serializeLayout)(porticoLayout_js_1.porticoPayloadLayout,j),s.deserializeFlagSet=j=>(0,sdk_base_1$3.deserializeLayout)(porticoLayout_js_1.porticoFlagSetLayout,j),s.serializeFlagSet=j=>(0,sdk_base_1$3.serializeLayout)(porticoLayout_js_1.porticoFlagSetLayout,j)})(PorticoBridge||(portico.PorticoBridge=PorticoBridge={}));(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(portico,s),$(porticoLayout,s)})(portico$1);var relayer={},relayerLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.deliveryInstructionLayout=void 0;const j=require$$0$7,$=requireLayoutItems(),_e=vaa$1,et={binary:"bytes",layout:[{name:"size",binary:"uint",size:4,custom:3*32,omit:!0},{name:"waste",binary:"uint",size:31,custom:0n,omit:!0},{name:"version",binary:"uint",size:1,custom:0,omit:!0},{name:"gasLimit",...$.amountItem},{name:"targetChainRefundPerGasUnused",...$.amountItem}]},tt={binary:"bytes",layout:[{name:"chain",...(0,$.chainItem)()},{name:"address",...$.universalAddressItem}]},nt=[{name:"chain",...(0,$.chainItem)()},{name:"emitterAddress",...$.universalAddressItem},{name:"sequence",...$.sequenceItem}],rt=[{name:"size",binary:"uint",size:4,custom:12,omit:!0},{name:"domain",...$.circleDomainItem},{name:"nonce",...$.circleNonceItem}],ot={binary:"switch",idSize:1,idTag:"keyType",layouts:[[[1,"VAA"],nt],[[2,"CCTP"],rt]]},it=at=>[(0,$.payloadIdItem)(1),{name:"target",...tt},(0,j.customizableBytes)({name:"payload",lengthSize:4},at),{name:"requestedReceiverValue",...$.amountItem},{name:"extraReceiverValue",...$.amountItem},{name:"executionInfo",...et},{name:"refund",...tt},{name:"refundDeliveryProvider",...$.universalAddressItem},{name:"sourceDeliveryProvider",...$.universalAddressItem},{name:"senderAddress",...$.universalAddressItem},{name:"messageKeys",binary:"array",lengthSize:1,layout:ot}];s.deliveryInstructionLayout=it;const st=[["DeliveryInstruction",(0,s.deliveryInstructionLayout)()],["RedeliveryInstruction",[(0,$.payloadIdItem)(2),{name:"deliveryVaaKey",binary:"bytes",layout:ot},{name:"targetChain",...(0,$.chainItem)()},{name:"newRequestedReceiverValue",...$.amountItem},{name:"newEncodedExecutionInfo",...et},{name:"newSourceDeliveryProvider",...$.universalAddressItem},{name:"newSenderAddress",...$.universalAddressItem}]]];(0,_e.registerPayloadTypes)("Relayer",st)})(relayerLayout);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(relayerLayout,s)})(relayer);var tokenBridge$1={},tokenBridge={},automaticTokenBridgeLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.automaticTokenBridgeNamedPayloads=s.connectPayload=void 0;const j=requireLayoutItems(),$=vaa$1,_e=tokenBridgeLayout;s.connectPayload=[(0,j.payloadIdItem)(1),{name:"targetRelayerFee",...j.amountItem},{name:"toNativeTokenAmount",...j.amountItem},{name:"targetRecipient",...j.universalAddressItem}],s.automaticTokenBridgeNamedPayloads=[["TransferWithRelay",(0,_e.transferWithPayloadLayout)(s.connectPayload)]],(0,$.registerPayloadTypes)("AutomaticTokenBridge",s.automaticTokenBridgeNamedPayloads)})(automaticTokenBridgeLayout);Object.defineProperty(tokenBridge,"__esModule",{value:!0});tokenBridge.isTokenTransferDetails=tokenBridge.AutomaticTokenBridge=tokenBridge.TokenBridge=tokenBridge.ErrNotWrapped=void 0;const sdk_base_1$2=require$$0$7,index_js_1$1=vaa$1,ErrNotWrapped=s=>new Error(`Token ${s} is not a wrapped asset`);tokenBridge.ErrNotWrapped=ErrNotWrapped;var TokenBridge;(function(s){const j="TokenBridge",$=["Transfer","TransferWithPayload"],_e=["AttestMeta"];[...$,..._e],s.getTransferDiscriminator=(0,sdk_base_1$2.lazyInstantiate)(()=>(0,index_js_1$1.payloadDiscriminator)([j,$]))})(TokenBridge||(tokenBridge.TokenBridge=TokenBridge={}));var AutomaticTokenBridge;AutomaticTokenBridge||(tokenBridge.AutomaticTokenBridge=AutomaticTokenBridge={});function isTokenTransferDetails(s){return s.token!==void 0&&s.amount!==void 0&&s.from!==void 0&&s.to!==void 0}tokenBridge.isTokenTransferDetails=isTokenTransferDetails;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(tokenBridge,s),$(tokenBridgeLayout,s),$(automaticTokenBridgeLayout,s)})(tokenBridge$1);var governance={},layout={},globalAccountant={};Object.defineProperty(globalAccountant,"__esModule",{value:!0});globalAccountant.modificationKinds=void 0;globalAccountant.modificationKinds=[["Add",1],["Subtract",2],["Unknown",3]];Object.defineProperty(layout,"__esModule",{value:!0});const sdk_base_1$1=require$$0$7,globalAccountant_js_1=globalAccountant,index_js_1=requireLayoutItems(),index_js_2=vaa$1,rawEvmAddressItem={binary:"bytes",size:20,custom:{to:s=>sdk_base_1$1.encoding.hex.encode(s,!0),from:s=>sdk_base_1$1.encoding.hex.decode(s)}},contractActions=[["UpgradeContract",[!1,[{name:"newContract",...index_js_1.universalAddressItem}]]],["RegisterChain",[!0,[{name:"foreignChain",...(0,index_js_1.chainItem)()},{name:"foreignAddress",...index_js_1.universalAddressItem}]]],["RecoverChainId",[!1,[{name:"evmChainId",binary:"uint",size:32},{name:"newChainId",...(0,index_js_1.chainItem)({allowedChains:(0,sdk_base_1$1.platformToChains)("Evm")})}]]],["GuardianSetUpgrade",[!0,[{name:"guardianSet",...index_js_1.guardianSetItem},{name:"guardians",binary:"array",lengthSize:1,layout:rawEvmAddressItem}]]],["SetMessageFee",[!1,[{name:"messageFee",binary:"uint",size:32}]]],["TransferFees",[!0,[{name:"amount",binary:"uint",size:32},{name:"recipient",...index_js_1.universalAddressItem}]]],["UpdateDefaultProvider",[!1,[{name:"defaultProvider",...index_js_1.universalAddressItem}]]],["RegisterEmitterAndDomain",[!0,[{name:"emitterChain",...(0,index_js_1.chainItem)()},{name:"emitterAddress",...index_js_1.universalAddressItem},{name:"domain",binary:"uint",size:4}]]],["UpdateFinality",[!1,[{name:"finality",binary:"uint",size:1}]]]],wasmHashItem={binary:"bytes",size:32},wasmContractLayout=[{name:"contractAddr",...index_js_1.universalAddressItem},{name:"codeId",binary:"uint",size:8}],wormchainActions=[["StoreCode",[!1,[{name:"wasmHash",...wasmHashItem}]]],["InstantiateContract",[!1,[{name:"instantiationParamsHash",...wasmHashItem}]]],["MigrateContract",[!1,[{name:"migrationParamsHash",...wasmHashItem}]]],["AddWasmInstantiateAllowlist",[!1,wasmContractLayout]],["DeleteWasmInstantiateAllowlist",[!1,wasmContractLayout]]],gatewayScheduleUpgradeItem=(()=>{const s=et=>({binary:"bytes",size:et,custom:index_js_1.stringConversion}),j=[{name:"height",binary:"uint",size:8}],$=(0,sdk_base_1$1.calcStaticLayoutSize)(j),_e=et=>[{name:"name",...s(et)},...j];return{binary:"bytes",custom:{to:et=>(0,sdk_base_1$1.deserializeLayout)(_e(et.length-$),et),from:et=>(0,sdk_base_1$1.serializeLayout)(_e(et.name.length),et)}}})(),gatewayActions=[["ScheduleUpgrade",[!1,gatewayScheduleUpgradeItem]],["CancelUpgrade",[!0,[]]],["SetIbcComposabilityMwContract",[!1,[{name:"contractAddress",...index_js_1.universalAddressItem}]]]],globalAccountantActions=[["ModifyBalance",[!1,[{name:"sequence",...index_js_1.sequenceItem},{name:"modifiedChain",...(0,index_js_1.chainItem)()},{name:"tokenChain",...(0,index_js_1.chainItem)()},{name:"tokenAddress",...index_js_1.universalAddressItem},{name:"kind",...(0,sdk_base_1$1.enumItem)(globalAccountant_js_1.modificationKinds)},{name:"amount",...index_js_1.amountItem},{name:"reason",...(0,index_js_1.fixedLengthStringItem)(32)}]]]],ibcReceiverActions=[["ActionUpdateChannelChain",[!1,[{name:"channelId",...(0,index_js_1.fixedLengthStringItem)(64)},{name:"channelChain",...(0,index_js_1.chainItem)({allowedChains:(0,sdk_base_1$1.platformToChains)("Cosmwasm")})}]]]],generalPurposeActions=[["GeneralPurposeEvm",[!1,[{name:"governanceContract",...rawEvmAddressItem},{name:"targetContract",...rawEvmAddressItem},{name:"payload",binary:"bytes",lengthSize:2}]]],["GeneralPurposeSolana",[!1,[{name:"governanceContract",...index_js_1.universalAddressItem},{name:"payload",binary:"bytes"}]]]],actionTuples=[...contractActions,...wormchainActions,...gatewayActions,...globalAccountantActions,...ibcReceiverActions,...generalPurposeActions];(0,sdk_base_1$1.column)(actionTuples,0);const actionMapping=Object.fromEntries(actionTuples),sdkProtocolNameAndGovernanceVaaModuleEntries=[["WormholeCore","Core"],["TokenBridge","TokenBridge"],["NftBridge","NftBridge"],["Relayer","WormholeRelayer"],["CircleBridge","CircleIntegration"],["IbcBridge","IbcTranslator"],["IbcReceiver","IbcReceiver"],["GlobalAccountant","GlobalAccountant"],["GeneralPurposeGovernance","GeneralPurposeGovernance"],["WormchainGovernance","WasmdModule"],["GatewayGovernance","GatewayModule"]],sdkProtocolNameToGovernanceVaaModuleMapping=(0,sdk_base_1$1.constMap)(sdkProtocolNameAndGovernanceVaaModuleEntries),protocolConversion=s=>({to:s,from:(()=>{const $=new Uint8Array(32),_e=sdkProtocolNameToGovernanceVaaModuleMapping(s);for(let et=1;et<=_e.length;++et)$[32-et]=_e.charCodeAt(_e.length-et);return $})()}),actionConversion=(s,j)=>({to:s,from:j}),governanceLayout=(s,j,$)=>[{name:"protocol",binary:"bytes",custom:protocolConversion(s)},{name:"action",binary:"uint",size:1,custom:actionConversion(j,$)},{name:"chain",...(0,index_js_1.chainItem)({allowNull:actionMapping[j][0]})},{name:"actionArgs",binary:"bytes",layout:actionMapping[j][1]}],governancePayload=(s,j,$)=>[j,governanceLayout(s,j,$)],coreBridgePayloads=[governancePayload("WormholeCore","UpgradeContract",1),governancePayload("WormholeCore","GuardianSetUpgrade",2),governancePayload("WormholeCore","SetMessageFee",3),governancePayload("WormholeCore","TransferFees",4),governancePayload("WormholeCore","RecoverChainId",5)],tokenBridgePayloads=[governancePayload("TokenBridge","RegisterChain",1),governancePayload("TokenBridge","UpgradeContract",2),governancePayload("TokenBridge","RecoverChainId",3)],nftBridgePayloads=[governancePayload("NftBridge","RegisterChain",1),governancePayload("NftBridge","UpgradeContract",2),governancePayload("NftBridge","RecoverChainId",3)],relayerPayloads=[governancePayload("Relayer","RegisterChain",1),governancePayload("Relayer","UpgradeContract",2),governancePayload("Relayer","UpdateDefaultProvider",3)],cctpPayloads=[governancePayload("CircleBridge","UpdateFinality",1),governancePayload("CircleBridge","RegisterEmitterAndDomain",2),governancePayload("CircleBridge","UpgradeContract",3)],ibcBridgePayloads=[governancePayload("IbcBridge","ActionUpdateChannelChain",1)],ibcReceiverPayloads=[governancePayload("IbcReceiver","ActionUpdateChannelChain",1)],globalAccountantPayloads=[governancePayload("GlobalAccountant","ModifyBalance",1)],generalPurposeGovernancePayloads=[governancePayload("GeneralPurposeGovernance","GeneralPurposeEvm",1),governancePayload("GeneralPurposeGovernance","GeneralPurposeSolana",2)],wormchainGovernancePayloads=[governancePayload("WormchainGovernance","StoreCode",1),governancePayload("WormchainGovernance","InstantiateContract",2),governancePayload("WormchainGovernance","MigrateContract",3),governancePayload("WormchainGovernance","AddWasmInstantiateAllowlist",4),governancePayload("WormchainGovernance","DeleteWasmInstantiateAllowlist",5)],gatewayGovernancePayloads=[governancePayload("GatewayGovernance","ScheduleUpgrade",1),governancePayload("GatewayGovernance","CancelUpgrade",2),governancePayload("GatewayGovernance","SetIbcComposabilityMwContract",3)];(0,index_js_2.registerPayloadTypes)("WormholeCore",coreBridgePayloads);(0,index_js_2.registerPayloadTypes)("TokenBridge",tokenBridgePayloads);(0,index_js_2.registerPayloadTypes)("NftBridge",nftBridgePayloads);(0,index_js_2.registerPayloadTypes)("Relayer",relayerPayloads);(0,index_js_2.registerPayloadTypes)("CircleBridge",cctpPayloads);(0,index_js_2.registerPayloadTypes)("IbcBridge",ibcBridgePayloads);(0,index_js_2.registerPayloadTypes)("IbcReceiver",ibcReceiverPayloads);(0,index_js_2.registerPayloadTypes)("GlobalAccountant",globalAccountantPayloads);(0,index_js_2.registerPayloadTypes)("GeneralPurposeGovernance",generalPurposeGovernancePayloads);(0,index_js_2.registerPayloadTypes)("WormchainGovernance",wormchainGovernancePayloads);(0,index_js_2.registerPayloadTypes)("GatewayGovernance",gatewayGovernancePayloads);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(layout,s)})(governance);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(core$1,s),$(circleBridge$1,s),$(ibc$1,s),$(portico$1,s),$(relayer,s),$(tokenBridge$1,s),$(governance,s)})(protocols);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(tt,nt,rt,ot){ot===void 0&&(ot=rt);var it=Object.getOwnPropertyDescriptor(nt,rt);(!it||("get"in it?!nt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return nt[rt]}}),Object.defineProperty(tt,ot,it)}:function(tt,nt,rt,ot){ot===void 0&&(ot=rt),tt[ot]=nt[rt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(tt,nt){Object.defineProperty(tt,"default",{enumerable:!0,value:nt})}:function(tt,nt){tt.default=nt}),_e=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(tt,nt){for(var rt in tt)rt!=="default"&&!Object.prototype.hasOwnProperty.call(nt,rt)&&j(nt,tt,rt)},et=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(tt){if(tt&&tt.__esModule)return tt;var nt={};if(tt!=null)for(var rt in tt)rt!=="default"&&Object.prototype.hasOwnProperty.call(tt,rt)&&j(nt,tt,rt);return $(nt,tt),nt};Object.defineProperty(s,"__esModule",{value:!0}),s.layoutItems=void 0,_e(registry,s),_e(requireAddress(),s),_e(protocol,s),_e(requireUniversalAddress(),s),_e(unsignedTransaction,s),_e(vaa$1,s),_e(utils$3,s),_e(platform,s),_e(chain,s),_e(contracts,s),_e(requireSignature$1(),s),_e(signer,s),_e(rpc$1,s),_e(attestation,s),_e(types$1,s),_e(protocols,s),s.layoutItems=et(requireLayoutItems())})(cjs);var __importDefault$1=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(evm,"__esModule",{value:!0});evm.getEvmTotalSupply=evm.getEvmTokenDecimals=evm.getMethodId=evm.callContractMethod=void 0;const axios_1$1=__importDefault$1(require$$0$3),sdk_definitions_1$1=cjs,utils_1=utils$4;async function callContractMethod(s,j,$,_e=""){const et=$+_e,tt={jsonrpc:"2.0",method:"eth_call",params:[{to:j,data:et},"latest"],id:1};try{const nt=await(0,utils_1.retry)(()=>axios_1$1.default.post(s,tt));if(nt.data.error)throw new Error(`Error calling contract method: ${nt.data.error.message}`);return nt.data.result}catch(nt){throw new Error(`Failed to call contract method: ${nt}`)}}evm.callContractMethod=callContractMethod;function getMethodId(s){const j=(0,sdk_definitions_1$1.keccak256)(s);return"0x"+Array.from(j).map(_e=>_e.toString(16).padStart(2,"0")).join("").substring(0,8)}evm.getMethodId=getMethodId;async function getEvmTokenDecimals(s,j){const $=getMethodId("tokenDecimals()"),_e=await callContractMethod(s,j,$);return Number(_e)}evm.getEvmTokenDecimals=getEvmTokenDecimals;async function getEvmTotalSupply(s,j){const $=getMethodId("totalSupply()"),_e=await callContractMethod(s,j,$);return BigInt(_e)}evm.getEvmTotalSupply=getEvmTotalSupply;var types={};Object.defineProperty(types,"__esModule",{value:!0});types.normalizeToDecimals=types.makeCache=types.makeCacheEntry=void 0;const sdk_base_1=require$$0$7;function makeCacheEntry(){return{messages:[],lastUpdated:0,lastRowKey:""}}types.makeCacheEntry=makeCacheEntry;function makeCache(){const s={};return sdk_base_1.chainIds.forEach(j=>{s[j]=makeCacheEntry()}),s}types.makeCache=makeCache;function normalizeToDecimals(s,j){const{amount:$,decimals:_e}=s,et=BigInt($);let tt;if(_ej){const nt=BigInt(10**(_e-j));tt=et/nt}else tt=et;return tt}types.normalizeToDecimals=normalizeToDecimals;var wormhole={};Object.defineProperty(wormhole,"__esModule",{value:!0});wormhole.parseVaa=void 0;const sdk_definitions_1=cjs;function parseVaa(s){const j=Buffer.isBuffer(s)?s:Buffer.from(s),$=6,_e=j[5],et=66,tt=[];for(let rt=0;rt<_e;++rt){const ot=$+rt*et;tt.push({index:j[ot],signature:j.subarray(ot+1,ot+66)})}const nt=j.subarray($+et*_e);return{version:j[0],guardianSetIndex:j.readUInt32BE(1),guardianSignatures:tt,timestamp:nt.readUInt32BE(0),nonce:nt.readUInt32BE(4),emitterChain:nt.readUInt16BE(8),emitterAddress:nt.subarray(10,42),sequence:nt.readBigUInt64BE(42),consistencyLevel:nt[50],payload:nt.subarray(51),hash:Buffer.from((0,sdk_definitions_1.keccak256)(nt))}}wormhole.parseVaa=parseVaa;var queryContractSmart$2={},__importDefault=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(queryContractSmart$2,"__esModule",{value:!0});queryContractSmart$2.queryContractSmart=queryContractSmart$2.fromUtf8=queryContractSmart$2.BinaryReader=queryContractSmart$2.uint32ToString=void 0;const axios_1=__importDefault(require$$0$3),buffer_1=buffer;function uint32ToString$1(s){const j=s<128?1:s<16384?2:s<2097152?3:s<268435456?4:5,$=new Array(j);let _e=0;for(;s>127;)$[_e++]=s&127|128,s>>>=7;return $[_e]=s,buffer_1.Buffer.from($).toString("hex")}queryContractSmart$2.uint32ToString=uint32ToString$1;var WireType;(function(s){s[s.Varint=0]="Varint",s[s.Fixed64=1]="Fixed64",s[s.Bytes=2]="Bytes",s[s.Fixed32=5]="Fixed32"})(WireType||(WireType={}));function indexOutOfRange$2(s,j){return RangeError("index out of range: "+s.pos+" + "+(j||1)+" > "+s.len)}let BinaryReader$1=class{constructor(j){Mn(this,"buf");Mn(this,"pos");Mn(this,"type");Mn(this,"len");this.buf=j,this.pos=0,this.type=0,this.len=this.buf.length}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}varint32read(){let j=this.buf[this.pos++],$=j&127;if(!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<7,!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<14,!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<21,!(j&128))return this.assertBounds(),$;j=this.buf[this.pos++],$|=(j&15)<<28;for(let _e=5;j&128&&_e<10;_e++)j=this.buf[this.pos++];if(j&128)throw new Error("invalid varint");return this.assertBounds(),$>>>0}skip(j){if(typeof j=="number"){if(this.pos+j>this.len)throw indexOutOfRange$2(this,j);this.pos+=j}else do if(this.pos>=this.len)throw indexOutOfRange$2(this);while(this.buf[this.pos++]&128);return this}skipType(j){switch(j){case WireType.Varint:this.skip();break;case WireType.Fixed64:this.skip(8);break;case WireType.Bytes:this.skip(this.uint32());break;case 3:for(;(j=this.uint32()&7)!==4;)this.skipType(j);break;case WireType.Fixed32:this.skip(4);break;default:throw Error("invalid wire type "+j+" at offset "+this.pos)}return this}uint32(){return this.varint32read()}bytes(){const j=this.uint32(),$=this.pos;return this.pos+=j,this.assertBounds(),this.buf.subarray($,$+j)}};queryContractSmart$2.BinaryReader=BinaryReader$1;function createBaseQuerySmartContractStateResponse$1(){return{data:new Uint8Array}}const QuerySmartContractStateResponse$1={decode(s,j){const $=s instanceof BinaryReader$1?s:new BinaryReader$1(s);let _e=j===void 0?$.len:$.pos+j;const et=createBaseQuerySmartContractStateResponse$1();for(;$.pos<_e;){const tt=$.uint32();switch(tt>>>3){case 1:et.data=$.bytes();break;default:$.skipType(tt&7);break}}return et}};function fromUtf8$1(s,j=!1){const $=!j;return new TextDecoder("utf-8",{fatal:$}).decode(s)}queryContractSmart$2.fromUtf8=fromUtf8$1;async function queryContractSmart$1(s,j,$){const _e=buffer_1.Buffer.from(j).toString("hex"),et=uint32ToString$1(_e.length/2),tt=buffer_1.Buffer.from(JSON.stringify($)).toString("hex"),nt=uint32ToString$1(tt.length/2),rt=`0a${et}${_e}12${nt}${tt}`,ot=await axios_1.default.post(s,{jsonrpc:"2.0",id:Math.floor(Math.random()*Number.MAX_SAFE_INTEGER),method:"abci_query",params:{path:"/cosmwasm.wasm.v1.Query/SmartContractState",data:rt,prove:!1}});if(!ot.data.result.response.value)throw ot.data.result.response.code&&ot.data.result.response.log?new Error(`Query failed with (${ot.data.result.response.code}) ${ot.data.result.response.log}`):new Error("Query failed with unknown error");const{data:it}=QuerySmartContractStateResponse$1.decode(buffer_1.Buffer.from(ot.data.result.response.value,"base64"));let st;try{st=fromUtf8$1(it)}catch(at){throw new Error(`Could not UTF-8 decode smart query response from contract: ${at}`)}try{return JSON.parse(st)}catch(at){throw new Error(`Could not JSON parse smart query response from contract: ${at}`)}}queryContractSmart$2.queryContractSmart=queryContractSmart$1;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(arrays,s),$(chainIdToName$1,s),$(consts,s),$(explorer,s),$(solana,s),$(utils$4,s),$(nttConsts,s),$(evm,s),$(types,s),$(wormhole,s),$(queryContractSmart$2,s)})(dist);function useGetGuardianSet(s,j){const $=useNetworkContext(),[_e,et]=reactExports.useState([null,null]);return reactExports.useEffect(()=>{if(et([null,null]),!j)return;const tt=rpcAddress("Mainnet",s);if(!tt)return;let nt=!1;return chainToPlatform(s)==="Evm"&&(async()=>{try{const ot=await dist.callContractMethod(tt,j,dist.getMethodId("getCurrentGuardianSetIndex()"));if(nt)return;const it=await dist.callContractMethod(tt,j,dist.getMethodId("getGuardianSet(uint32)"),ot.substring(2));if(nt)return;et([BigInt(ot),it])}catch{}})(),()=>{nt=!0}},[$.currentNetwork.env,s,j]),_e}var long=Long,wasm=null;try{wasm=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Long(s,j,$){this.low=s|0,this.high=j|0,this.unsigned=!!$}Long.prototype.__isLong__;Object.defineProperty(Long.prototype,"__isLong__",{value:!0});function isLong(s){return(s&&s.__isLong__)===!0}Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(s,j){var $,_e,et;return j?(s>>>=0,(et=0<=s&&s<256)&&(_e=UINT_CACHE[s],_e)?_e:($=fromBits(s,(s|0)<0?-1:0,!0),et&&(UINT_CACHE[s]=$),$)):(s|=0,(et=-128<=s&&s<128)&&(_e=INT_CACHE[s],_e)?_e:($=fromBits(s,s<0?-1:0,!1),et&&(INT_CACHE[s]=$),$))}Long.fromInt=fromInt;function fromNumber(s,j){if(isNaN(s))return j?UZERO:ZERO;if(j){if(s<0)return UZERO;if(s>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(s<=-TWO_PWR_63_DBL)return MIN_VALUE;if(s+1>=TWO_PWR_63_DBL)return MAX_VALUE}return s<0?fromNumber(-s,j).neg():fromBits(s%TWO_PWR_32_DBL|0,s/TWO_PWR_32_DBL|0,j)}Long.fromNumber=fromNumber;function fromBits(s,j,$){return new Long(s,j,$)}Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(s,j,$){if(s.length===0)throw Error("empty string");if(s==="NaN"||s==="Infinity"||s==="+Infinity"||s==="-Infinity")return ZERO;if(typeof j=="number"?($=j,j=!1):j=!!j,$=$||10,$<2||36<$)throw RangeError("radix");var _e;if((_e=s.indexOf("-"))>0)throw Error("interior hyphen");if(_e===0)return fromString(s.substring(1),j,$).neg();for(var et=fromNumber(pow_dbl($,8)),tt=ZERO,nt=0;nt>>0:this.low};LongPrototype.toNumber=function(){return this.unsigned?(this.high>>>0)*TWO_PWR_32_DBL+(this.low>>>0):this.high*TWO_PWR_32_DBL+(this.low>>>0)};LongPrototype.toString=function(j){if(j=j||10,j<2||36>>0,st=it.toString(j);if(nt=ot,nt.isZero())return st+rt;for(;st.length<6;)st="0"+st;rt=""+st+rt}};LongPrototype.getHighBits=function(){return this.high};LongPrototype.getHighBitsUnsigned=function(){return this.high>>>0};LongPrototype.getLowBits=function(){return this.low};LongPrototype.getLowBitsUnsigned=function(){return this.low>>>0};LongPrototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var j=this.high!=0?this.high:this.low,$=31;$>0&&!(j&1<<$);$--);return this.high!=0?$+33:$+1};LongPrototype.isZero=function(){return this.high===0&&this.low===0};LongPrototype.eqz=LongPrototype.isZero;LongPrototype.isNegative=function(){return!this.unsigned&&this.high<0};LongPrototype.isPositive=function(){return this.unsigned||this.high>=0};LongPrototype.isOdd=function(){return(this.low&1)===1};LongPrototype.isEven=function(){return(this.low&1)===0};LongPrototype.equals=function(j){return isLong(j)||(j=fromValue(j)),this.unsigned!==j.unsigned&&this.high>>>31===1&&j.high>>>31===1?!1:this.high===j.high&&this.low===j.low};LongPrototype.eq=LongPrototype.equals;LongPrototype.notEquals=function(j){return!this.eq(j)};LongPrototype.neq=LongPrototype.notEquals;LongPrototype.ne=LongPrototype.notEquals;LongPrototype.lessThan=function(j){return this.comp(j)<0};LongPrototype.lt=LongPrototype.lessThan;LongPrototype.lessThanOrEqual=function(j){return this.comp(j)<=0};LongPrototype.lte=LongPrototype.lessThanOrEqual;LongPrototype.le=LongPrototype.lessThanOrEqual;LongPrototype.greaterThan=function(j){return this.comp(j)>0};LongPrototype.gt=LongPrototype.greaterThan;LongPrototype.greaterThanOrEqual=function(j){return this.comp(j)>=0};LongPrototype.gte=LongPrototype.greaterThanOrEqual;LongPrototype.ge=LongPrototype.greaterThanOrEqual;LongPrototype.compare=function(j){if(isLong(j)||(j=fromValue(j)),this.eq(j))return 0;var $=this.isNegative(),_e=j.isNegative();return $&&!_e?-1:!$&&_e?1:this.unsigned?j.high>>>0>this.high>>>0||j.high===this.high&&j.low>>>0>this.low>>>0?-1:1:this.sub(j).isNegative()?-1:1};LongPrototype.comp=LongPrototype.compare;LongPrototype.negate=function(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)};LongPrototype.neg=LongPrototype.negate;LongPrototype.add=function(j){isLong(j)||(j=fromValue(j));var $=this.high>>>16,_e=this.high&65535,et=this.low>>>16,tt=this.low&65535,nt=j.high>>>16,rt=j.high&65535,ot=j.low>>>16,it=j.low&65535,st=0,at=0,ct=0,lt=0;return lt+=tt+it,ct+=lt>>>16,lt&=65535,ct+=et+ot,at+=ct>>>16,ct&=65535,at+=_e+rt,st+=at>>>16,at&=65535,st+=$+nt,st&=65535,fromBits(ct<<16|lt,st<<16|at,this.unsigned)};LongPrototype.subtract=function(j){return isLong(j)||(j=fromValue(j)),this.add(j.neg())};LongPrototype.sub=LongPrototype.subtract;LongPrototype.multiply=function(j){if(this.isZero())return ZERO;if(isLong(j)||(j=fromValue(j)),wasm){var $=wasm.mul(this.low,this.high,j.low,j.high);return fromBits($,wasm.get_high(),this.unsigned)}if(j.isZero())return ZERO;if(this.eq(MIN_VALUE))return j.isOdd()?MIN_VALUE:ZERO;if(j.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return j.isNegative()?this.neg().mul(j.neg()):this.neg().mul(j).neg();if(j.isNegative())return this.mul(j.neg()).neg();if(this.lt(TWO_PWR_24)&&j.lt(TWO_PWR_24))return fromNumber(this.toNumber()*j.toNumber(),this.unsigned);var _e=this.high>>>16,et=this.high&65535,tt=this.low>>>16,nt=this.low&65535,rt=j.high>>>16,ot=j.high&65535,it=j.low>>>16,st=j.low&65535,at=0,ct=0,lt=0,dt=0;return dt+=nt*st,lt+=dt>>>16,dt&=65535,lt+=tt*st,ct+=lt>>>16,lt&=65535,lt+=nt*it,ct+=lt>>>16,lt&=65535,ct+=et*st,at+=ct>>>16,ct&=65535,ct+=tt*it,at+=ct>>>16,ct&=65535,ct+=nt*ot,at+=ct>>>16,ct&=65535,at+=_e*st+et*it+tt*ot+nt*rt,at&=65535,fromBits(lt<<16|dt,at<<16|ct,this.unsigned)};LongPrototype.mul=LongPrototype.multiply;LongPrototype.divide=function(j){if(isLong(j)||(j=fromValue(j)),j.isZero())throw Error("division by zero");if(wasm){if(!this.unsigned&&this.high===-2147483648&&j.low===-1&&j.high===-1)return this;var $=(this.unsigned?wasm.div_u:wasm.div_s)(this.low,this.high,j.low,j.high);return fromBits($,wasm.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?UZERO:ZERO;var _e,et,tt;if(this.unsigned){if(j.unsigned||(j=j.toUnsigned()),j.gt(this))return UZERO;if(j.gt(this.shru(1)))return UONE;tt=UZERO}else{if(this.eq(MIN_VALUE)){if(j.eq(ONE)||j.eq(NEG_ONE))return MIN_VALUE;if(j.eq(MIN_VALUE))return ONE;var nt=this.shr(1);return _e=nt.div(j).shl(1),_e.eq(ZERO)?j.isNegative()?ONE:NEG_ONE:(et=this.sub(j.mul(_e)),tt=_e.add(et.div(j)),tt)}else if(j.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return j.isNegative()?this.neg().div(j.neg()):this.neg().div(j).neg();if(j.isNegative())return this.div(j.neg()).neg();tt=ZERO}for(et=this;et.gte(j);){_e=Math.max(1,Math.floor(et.toNumber()/j.toNumber()));for(var rt=Math.ceil(Math.log(_e)/Math.LN2),ot=rt<=48?1:pow_dbl(2,rt-48),it=fromNumber(_e),st=it.mul(j);st.isNegative()||st.gt(et);)_e-=ot,it=fromNumber(_e,this.unsigned),st=it.mul(j);it.isZero()&&(it=ONE),tt=tt.add(it),et=et.sub(st)}return tt};LongPrototype.div=LongPrototype.divide;LongPrototype.modulo=function(j){if(isLong(j)||(j=fromValue(j)),wasm){var $=(this.unsigned?wasm.rem_u:wasm.rem_s)(this.low,this.high,j.low,j.high);return fromBits($,wasm.get_high(),this.unsigned)}return this.sub(this.div(j).mul(j))};LongPrototype.mod=LongPrototype.modulo;LongPrototype.rem=LongPrototype.modulo;LongPrototype.not=function(){return fromBits(~this.low,~this.high,this.unsigned)};LongPrototype.and=function(j){return isLong(j)||(j=fromValue(j)),fromBits(this.low&j.low,this.high&j.high,this.unsigned)};LongPrototype.or=function(j){return isLong(j)||(j=fromValue(j)),fromBits(this.low|j.low,this.high|j.high,this.unsigned)};LongPrototype.xor=function(j){return isLong(j)||(j=fromValue(j)),fromBits(this.low^j.low,this.high^j.high,this.unsigned)};LongPrototype.shiftLeft=function(j){return isLong(j)&&(j=j.toInt()),(j&=63)===0?this:j<32?fromBits(this.low<>>32-j,this.unsigned):fromBits(0,this.low<>>j|this.high<<32-j,this.high>>j,this.unsigned):fromBits(this.high>>j-32,this.high>=0?0:-1,this.unsigned)};LongPrototype.shr=LongPrototype.shiftRight;LongPrototype.shiftRightUnsigned=function(j){if(isLong(j)&&(j=j.toInt()),j&=63,j===0)return this;var $=this.high;if(j<32){var _e=this.low;return fromBits(_e>>>j|$<<32-j,$>>>j,this.unsigned)}else return j===32?fromBits($,0,this.unsigned):fromBits($>>>j-32,0,this.unsigned)};LongPrototype.shru=LongPrototype.shiftRightUnsigned;LongPrototype.shr_u=LongPrototype.shiftRightUnsigned;LongPrototype.toSigned=function(){return this.unsigned?fromBits(this.low,this.high,!1):this};LongPrototype.toUnsigned=function(){return this.unsigned?this:fromBits(this.low,this.high,!0)};LongPrototype.toBytes=function(j){return j?this.toBytesLE():this.toBytesBE()};LongPrototype.toBytesLE=function(){var j=this.high,$=this.low;return[$&255,$>>>8&255,$>>>16&255,$>>>24,j&255,j>>>8&255,j>>>16&255,j>>>24]};LongPrototype.toBytesBE=function(){var j=this.high,$=this.low;return[j>>>24,j>>>16&255,j>>>8&255,j&255,$>>>24,$>>>16&255,$>>>8&255,$&255]};Long.fromBytes=function(j,$,_e){return _e?Long.fromBytesLE(j,$):Long.fromBytesBE(j,$)};Long.fromBytesLE=function(j,$){return new Long(j[0]|j[1]<<8|j[2]<<16|j[3]<<24,j[4]|j[5]<<8|j[6]<<16|j[7]<<24,$)};Long.fromBytesBE=function(j,$){return new Long(j[4]<<24|j[5]<<16|j[6]<<8|j[7],j[0]<<24|j[1]<<16|j[2]<<8|j[3],$)};const Long$1=getDefaultExportFromCjs$1(long);var indexMinimal={},minimal$1={},aspromise=asPromise;function asPromise(s,j){for(var $=new Array(arguments.length-1),_e=0,et=2,tt=!0;et1&&rt.charAt(ot)==="=";)++it;return Math.ceil(rt.length*3)/4-it};for(var $=new Array(64),_e=new Array(123),et=0;et<64;)_e[$[et]=et<26?et+65:et<52?et+71:et<62?et-4:et-59|43]=et++;j.encode=function(rt,ot,it){for(var st=null,at=[],ct=0,lt=0,dt;ot>2],dt=(pt&3)<<4,lt=1;break;case 1:at[ct++]=$[dt|pt>>4],dt=(pt&15)<<2,lt=2;break;case 2:at[ct++]=$[dt|pt>>6],at[ct++]=$[pt&63],lt=0;break}ct>8191&&((st||(st=[])).push(String.fromCharCode.apply(String,at)),ct=0)}return lt&&(at[ct++]=$[dt],at[ct++]=61,lt===1&&(at[ct++]=61)),st?(ct&&st.push(String.fromCharCode.apply(String,at.slice(0,ct))),st.join("")):String.fromCharCode.apply(String,at.slice(0,ct))};var tt="invalid encoding";j.decode=function(rt,ot,it){for(var st=it,at=0,ct,lt=0;lt1)break;if((dt=_e[dt])===void 0)throw Error(tt);switch(at){case 0:ct=dt,at=1;break;case 1:ot[it++]=ct<<2|(dt&48)>>4,ct=dt,at=2;break;case 2:ot[it++]=(ct&15)<<4|(dt&60)>>2,ct=dt,at=3;break;case 3:ot[it++]=(ct&3)<<6|dt,at=0;break}}if(at===1)throw Error(tt);return it-st},j.test=function(rt){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(rt)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(j,$,_e){return(this._listeners[j]||(this._listeners[j]=[])).push({fn:$,ctx:_e||this}),this};EventEmitter.prototype.off=function(j,$){if(j===void 0)this._listeners={};else if($===void 0)this._listeners[j]=[];else for(var _e=this._listeners[j],et=0;et<_e.length;)_e[et].fn===$?_e.splice(et,1):++et;return this};EventEmitter.prototype.emit=function(j){var $=this._listeners[j];if($){for(var _e=[],et=1;et0?0:2147483648,tt,nt);else if(isNaN(et))_e(2143289344,tt,nt);else if(et>34028234663852886e22)_e((rt<<31|2139095040)>>>0,tt,nt);else if(et<11754943508222875e-54)_e((rt<<31|Math.round(et/1401298464324817e-60))>>>0,tt,nt);else{var ot=Math.floor(Math.log(et)/Math.LN2),it=Math.round(et*Math.pow(2,-ot)*8388608)&8388607;_e((rt<<31|ot+127<<23|it)>>>0,tt,nt)}}s.writeFloatLE=j.bind(null,writeUintLE),s.writeFloatBE=j.bind(null,writeUintBE);function $(_e,et,tt){var nt=_e(et,tt),rt=(nt>>31)*2+1,ot=nt>>>23&255,it=nt&8388607;return ot===255?it?NaN:rt*(1/0):ot===0?rt*1401298464324817e-60*it:rt*Math.pow(2,ot-150)*(it+8388608)}s.readFloatLE=$.bind(null,readUintLE),s.readFloatBE=$.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var j=new Float64Array([-0]),$=new Uint8Array(j.buffer),_e=$[7]===128;function et(ot,it,st){j[0]=ot,it[st]=$[0],it[st+1]=$[1],it[st+2]=$[2],it[st+3]=$[3],it[st+4]=$[4],it[st+5]=$[5],it[st+6]=$[6],it[st+7]=$[7]}function tt(ot,it,st){j[0]=ot,it[st]=$[7],it[st+1]=$[6],it[st+2]=$[5],it[st+3]=$[4],it[st+4]=$[3],it[st+5]=$[2],it[st+6]=$[1],it[st+7]=$[0]}s.writeDoubleLE=_e?et:tt,s.writeDoubleBE=_e?tt:et;function nt(ot,it){return $[0]=ot[it],$[1]=ot[it+1],$[2]=ot[it+2],$[3]=ot[it+3],$[4]=ot[it+4],$[5]=ot[it+5],$[6]=ot[it+6],$[7]=ot[it+7],j[0]}function rt(ot,it){return $[7]=ot[it],$[6]=ot[it+1],$[5]=ot[it+2],$[4]=ot[it+3],$[3]=ot[it+4],$[2]=ot[it+5],$[1]=ot[it+6],$[0]=ot[it+7],j[0]}s.readDoubleLE=_e?nt:rt,s.readDoubleBE=_e?rt:nt}():function(){function j(_e,et,tt,nt,rt,ot){var it=nt<0?1:0;if(it&&(nt=-nt),nt===0)_e(0,rt,ot+et),_e(1/nt>0?0:2147483648,rt,ot+tt);else if(isNaN(nt))_e(0,rt,ot+et),_e(2146959360,rt,ot+tt);else if(nt>17976931348623157e292)_e(0,rt,ot+et),_e((it<<31|2146435072)>>>0,rt,ot+tt);else{var st;if(nt<22250738585072014e-324)st=nt/5e-324,_e(st>>>0,rt,ot+et),_e((it<<31|st/4294967296)>>>0,rt,ot+tt);else{var at=Math.floor(Math.log(nt)/Math.LN2);at===1024&&(at=1023),st=nt*Math.pow(2,-at),_e(st*4503599627370496>>>0,rt,ot+et),_e((it<<31|at+1023<<20|st*1048576&1048575)>>>0,rt,ot+tt)}}}s.writeDoubleLE=j.bind(null,writeUintLE,0,4),s.writeDoubleBE=j.bind(null,writeUintBE,4,0);function $(_e,et,tt,nt,rt){var ot=_e(nt,rt+et),it=_e(nt,rt+tt),st=(it>>31)*2+1,at=it>>>20&2047,ct=4294967296*(it&1048575)+ot;return at===2047?ct?NaN:st*(1/0):at===0?st*5e-324*ct:st*Math.pow(2,at-1075)*(ct+4503599627370496)}s.readDoubleLE=$.bind(null,readUintLE,0,4),s.readDoubleBE=$.bind(null,readUintBE,4,0)}(),s}function writeUintLE(s,j,$){j[$]=s&255,j[$+1]=s>>>8&255,j[$+2]=s>>>16&255,j[$+3]=s>>>24}function writeUintBE(s,j,$){j[$]=s>>>24,j[$+1]=s>>>16&255,j[$+2]=s>>>8&255,j[$+3]=s&255}function readUintLE(s,j){return(s[j]|s[j+1]<<8|s[j+2]<<16|s[j+3]<<24)>>>0}function readUintBE(s,j){return(s[j]<<24|s[j+1]<<16|s[j+2]<<8|s[j+3])>>>0}var inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(s){}return null}var utf8$2={};(function(s){var j=s;j.length=function(_e){for(var et=0,tt=0,nt=0;nt<_e.length;++nt)tt=_e.charCodeAt(nt),tt<128?et+=1:tt<2048?et+=2:(tt&64512)===55296&&(_e.charCodeAt(nt+1)&64512)===56320?(++nt,et+=4):et+=3;return et},j.read=function(_e,et,tt){var nt=tt-et;if(nt<1)return"";for(var rt=null,ot=[],it=0,st;et191&&st<224?ot[it++]=(st&31)<<6|_e[et++]&63:st>239&&st<365?(st=((st&7)<<18|(_e[et++]&63)<<12|(_e[et++]&63)<<6|_e[et++]&63)-65536,ot[it++]=55296+(st>>10),ot[it++]=56320+(st&1023)):ot[it++]=(st&15)<<12|(_e[et++]&63)<<6|_e[et++]&63,it>8191&&((rt||(rt=[])).push(String.fromCharCode.apply(String,ot)),it=0);return rt?(it&&rt.push(String.fromCharCode.apply(String,ot.slice(0,it))),rt.join("")):String.fromCharCode.apply(String,ot.slice(0,it))},j.write=function(_e,et,tt){for(var nt=tt,rt,ot,it=0;it<_e.length;++it)rt=_e.charCodeAt(it),rt<128?et[tt++]=rt:rt<2048?(et[tt++]=rt>>6|192,et[tt++]=rt&63|128):(rt&64512)===55296&&((ot=_e.charCodeAt(it+1))&64512)===56320?(rt=65536+((rt&1023)<<10)+(ot&1023),++it,et[tt++]=rt>>18|240,et[tt++]=rt>>12&63|128,et[tt++]=rt>>6&63|128,et[tt++]=rt&63|128):(et[tt++]=rt>>12|224,et[tt++]=rt>>6&63|128,et[tt++]=rt&63|128);return tt-nt}})(utf8$2);var pool_1=pool;function pool(s,j,$){var _e=$||8192,et=_e>>>1,tt=null,nt=_e;return function(ot){if(ot<1||ot>et)return s(ot);nt+ot>_e&&(tt=s(_e),nt=0);var it=j.call(tt,nt,nt+=ot);return nt&7&&(nt=(nt|7)+1),it}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=j;var s=requireMinimal();function j(tt,nt){this.lo=tt>>>0,this.hi=nt>>>0}var $=j.zero=new j(0,0);$.toNumber=function(){return 0},$.zzEncode=$.zzDecode=function(){return this},$.length=function(){return 1};var _e=j.zeroHash="\0\0\0\0\0\0\0\0";j.fromNumber=function(nt){if(nt===0)return $;var rt=nt<0;rt&&(nt=-nt);var ot=nt>>>0,it=(nt-ot)/4294967296>>>0;return rt&&(it=~it>>>0,ot=~ot>>>0,++ot>4294967295&&(ot=0,++it>4294967295&&(it=0))),new j(ot,it)},j.from=function(nt){if(typeof nt=="number")return j.fromNumber(nt);if(s.isString(nt))if(s.Long)nt=s.Long.fromString(nt);else return j.fromNumber(parseInt(nt,10));return nt.low||nt.high?new j(nt.low>>>0,nt.high>>>0):$},j.prototype.toNumber=function(nt){if(!nt&&this.hi>>>31){var rt=~this.lo+1>>>0,ot=~this.hi>>>0;return rt||(ot=ot+1>>>0),-(rt+ot*4294967296)}return this.lo+this.hi*4294967296},j.prototype.toLong=function(nt){return s.Long?new s.Long(this.lo|0,this.hi|0,!!nt):{low:this.lo|0,high:this.hi|0,unsigned:!!nt}};var et=String.prototype.charCodeAt;return j.fromHash=function(nt){return nt===_e?$:new j((et.call(nt,0)|et.call(nt,1)<<8|et.call(nt,2)<<16|et.call(nt,3)<<24)>>>0,(et.call(nt,4)|et.call(nt,5)<<8|et.call(nt,6)<<16|et.call(nt,7)<<24)>>>0)},j.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},j.prototype.zzEncode=function(){var nt=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^nt)>>>0,this.lo=(this.lo<<1^nt)>>>0,this},j.prototype.zzDecode=function(){var nt=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^nt)>>>0,this.hi=(this.hi>>>1^nt)>>>0,this},j.prototype.length=function(){var nt=this.lo,rt=(this.lo>>>28|this.hi<<4)>>>0,ot=this.hi>>>24;return ot===0?rt===0?nt<16384?nt<128?1:2:nt<2097152?3:4:rt<16384?rt<128?5:6:rt<2097152?7:8:ot<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(s){var j=s;j.asPromise=aspromise,j.base64=base64$1,j.EventEmitter=eventemitter,j.float=float,j.inquire=inquire_1,j.utf8=utf8$2,j.pool=pool_1,j.LongBits=requireLongbits(),j.isNode=!!(typeof commonjsGlobal$1<"u"&&commonjsGlobal$1&&commonjsGlobal$1.process&&commonjsGlobal$1.process.versions&&commonjsGlobal$1.process.versions.node),j.global=j.isNode&&commonjsGlobal$1||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal$1,j.emptyArray=Object.freeze?Object.freeze([]):[],j.emptyObject=Object.freeze?Object.freeze({}):{},j.isInteger=Number.isInteger||function(tt){return typeof tt=="number"&&isFinite(tt)&&Math.floor(tt)===tt},j.isString=function(tt){return typeof tt=="string"||tt instanceof String},j.isObject=function(tt){return tt&&typeof tt=="object"},j.isset=j.isSet=function(tt,nt){var rt=tt[nt];return rt!=null&&tt.hasOwnProperty(nt)?typeof rt!="object"||(Array.isArray(rt)?rt.length:Object.keys(rt).length)>0:!1},j.Buffer=function(){try{var et=j.inquire("buffer").Buffer;return et.prototype.utf8Write?et:null}catch{return null}}(),j._Buffer_from=null,j._Buffer_allocUnsafe=null,j.newBuffer=function(tt){return typeof tt=="number"?j.Buffer?j._Buffer_allocUnsafe(tt):new j.Array(tt):j.Buffer?j._Buffer_from(tt):typeof Uint8Array>"u"?tt:new Uint8Array(tt)},j.Array=typeof Uint8Array<"u"?Uint8Array:Array,j.Long=j.global.dcodeIO&&j.global.dcodeIO.Long||j.global.Long||j.inquire("long"),j.key2Re=/^true|false|0|1$/,j.key32Re=/^-?(?:0|[1-9][0-9]*)$/,j.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,j.longToHash=function(tt){return tt?j.LongBits.from(tt).toHash():j.LongBits.zeroHash},j.longFromHash=function(tt,nt){var rt=j.LongBits.fromHash(tt);return j.Long?j.Long.fromBits(rt.lo,rt.hi,nt):rt.toNumber(!!nt)};function $(et,tt,nt){for(var rt=Object.keys(tt),ot=0;ot-1;--it)if(nt[ot[it]]===1&&this[ot[it]]!==void 0&&this[ot[it]]!==null)return ot[it]}},j.oneOfSetter=function(tt){return function(nt){for(var rt=0;rt127;)j[$++]=s&127|128,s>>>=7;j[$]=s}function VarintOp(s,j){this.len=s,this.next=void 0,this.val=j}VarintOp.prototype=Object.create(Op.prototype);VarintOp.prototype.fn=writeVarint32;Writer$1.prototype.uint32=function s(j){return this.len+=(this.tail=this.tail.next=new VarintOp((j=j>>>0)<128?1:j<16384?2:j<2097152?3:j<268435456?4:5,j)).len,this};Writer$1.prototype.int32=function s(j){return j<0?this._push(writeVarint64,10,LongBits$1.fromNumber(j)):this.uint32(j)};Writer$1.prototype.sint32=function s(j){return this.uint32((j<<1^j>>31)>>>0)};function writeVarint64(s,j,$){for(;s.hi;)j[$++]=s.lo&127|128,s.lo=(s.lo>>>7|s.hi<<25)>>>0,s.hi>>>=7;for(;s.lo>127;)j[$++]=s.lo&127|128,s.lo=s.lo>>>7;j[$++]=s.lo}Writer$1.prototype.uint64=function s(j){var $=LongBits$1.from(j);return this._push(writeVarint64,$.length(),$)};Writer$1.prototype.int64=Writer$1.prototype.uint64;Writer$1.prototype.sint64=function s(j){var $=LongBits$1.from(j).zzEncode();return this._push(writeVarint64,$.length(),$)};Writer$1.prototype.bool=function s(j){return this._push(writeByte,1,j?1:0)};function writeFixed32(s,j,$){j[$]=s&255,j[$+1]=s>>>8&255,j[$+2]=s>>>16&255,j[$+3]=s>>>24}Writer$1.prototype.fixed32=function s(j){return this._push(writeFixed32,4,j>>>0)};Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32;Writer$1.prototype.fixed64=function s(j){var $=LongBits$1.from(j);return this._push(writeFixed32,4,$.lo)._push(writeFixed32,4,$.hi)};Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64;Writer$1.prototype.float=function s(j){return this._push(util$4.float.writeFloatLE,4,j)};Writer$1.prototype.double=function s(j){return this._push(util$4.float.writeDoubleLE,8,j)};var writeBytes=util$4.Array.prototype.set?function s(j,$,_e){$.set(j,_e)}:function s(j,$,_e){for(var et=0;et>>0;if(!$)return this._push(writeByte,1,0);if(util$4.isString(j)){var _e=Writer$1.alloc($=base64.length(j));base64.decode(j,_e,0),j=_e}return this.uint32($)._push(writeBytes,$,j)};Writer$1.prototype.string=function s(j){var $=utf8$1.length(j);return $?this.uint32($)._push(utf8$1.write,$,j):this._push(writeByte,1,0)};Writer$1.prototype.fork=function s(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this};Writer$1.prototype.reset=function s(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this};Writer$1.prototype.ldelim=function s(){var j=this.head,$=this.tail,_e=this.len;return this.reset().uint32(_e),_e&&(this.tail.next=j.next,this.tail=$,this.len+=_e),this};Writer$1.prototype.finish=function s(){for(var j=this.head.next,$=this.constructor.alloc(this.len),_e=0;j;)j.fn(j.val,$,_e),_e+=j.len,j=j.next;return $};Writer$1._configure=function(s){BufferWriter$1=s,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$3=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$3._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$3.Buffer&&util$3.Buffer.prototype instanceof Uint8Array&&util$3.Buffer.prototype.set.name==="set"?function(j,$,_e){$.set(j,_e)}:function(j,$,_e){if(j.copy)j.copy($,_e,0,j.length);else for(var et=0;et>>0;return this.uint32($),$&&this._push(BufferWriter.writeBytesBuffer,$,j),this};function writeStringBuffer(s,j,$){s.length<40?util$3.utf8.write(s,j,$):j.utf8Write?j.utf8Write(s,$):j.write(s,$)}BufferWriter.prototype.string=function s(j){var $=util$3.Buffer.byteLength(j);return this.uint32($),$&&this._push(writeStringBuffer,$,j),this};BufferWriter._configure();var reader=Reader$1,util$2=requireMinimal(),BufferReader$1,LongBits=util$2.LongBits,utf8=util$2.utf8;function indexOutOfRange$1(s,j){return RangeError("index out of range: "+s.pos+" + "+(j||1)+" > "+s.len)}function Reader$1(s){this.buf=s,this.pos=0,this.len=s.length}var create_array=typeof Uint8Array<"u"?function s(j){if(j instanceof Uint8Array||Array.isArray(j))return new Reader$1(j);throw Error("illegal buffer")}:function s(j){if(Array.isArray(j))return new Reader$1(j);throw Error("illegal buffer")},create=function s(){return util$2.Buffer?function($){return(Reader$1.create=function(et){return util$2.Buffer.isBuffer(et)?new BufferReader$1(et):create_array(et)})($)}:create_array};Reader$1.create=create();Reader$1.prototype._slice=util$2.Array.prototype.subarray||util$2.Array.prototype.slice;Reader$1.prototype.uint32=function s(){var j=4294967295;return function(){if(j=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(j=(j|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(j=(j|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(j=(j|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(j=(j|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return j;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange$1(this,10);return j}}();Reader$1.prototype.int32=function s(){return this.uint32()|0};Reader$1.prototype.sint32=function s(){var j=this.uint32();return j>>>1^-(j&1)|0};function readLongVarint(){var s=new LongBits(0,0),j=0;if(this.len-this.pos>4){for(;j<4;++j)if(s.lo=(s.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return s;if(s.lo=(s.lo|(this.buf[this.pos]&127)<<28)>>>0,s.hi=(s.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return s;j=0}else{for(;j<3;++j){if(this.pos>=this.len)throw indexOutOfRange$1(this);if(s.lo=(s.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return s}return s.lo=(s.lo|(this.buf[this.pos++]&127)<>>0,s}if(this.len-this.pos>4){for(;j<5;++j)if(s.hi=(s.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return s}else for(;j<5;++j){if(this.pos>=this.len)throw indexOutOfRange$1(this);if(s.hi=(s.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return s}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function s(){return this.uint32()!==0};function readFixed32_end(s,j){return(s[j-4]|s[j-3]<<8|s[j-2]<<16|s[j-1]<<24)>>>0}Reader$1.prototype.fixed32=function s(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);return readFixed32_end(this.buf,this.pos+=4)};Reader$1.prototype.sfixed32=function s(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange$1(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function s(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);var j=util$2.float.readFloatLE(this.buf,this.pos);return this.pos+=4,j};Reader$1.prototype.double=function s(){if(this.pos+8>this.len)throw indexOutOfRange$1(this,4);var j=util$2.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,j};Reader$1.prototype.bytes=function s(){var j=this.uint32(),$=this.pos,_e=this.pos+j;if(_e>this.len)throw indexOutOfRange$1(this,j);if(this.pos+=j,Array.isArray(this.buf))return this.buf.slice($,_e);if($===_e){var et=util$2.Buffer;return et?et.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,$,_e)};Reader$1.prototype.string=function s(){var j=this.bytes();return utf8.read(j,0,j.length)};Reader$1.prototype.skip=function s(j){if(typeof j=="number"){if(this.pos+j>this.len)throw indexOutOfRange$1(this,j);this.pos+=j}else do if(this.pos>=this.len)throw indexOutOfRange$1(this);while(this.buf[this.pos++]&128);return this};Reader$1.prototype.skipType=function(s){switch(s){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(s=this.uint32()&7)!==4;)this.skipType(s);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+s+" at offset "+this.pos)}return this};Reader$1._configure=function(s){BufferReader$1=s,Reader$1.create=create(),BufferReader$1._configure();var j=util$2.Long?"toLong":"toNumber";util$2.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[j](!1)},uint64:function(){return readLongVarint.call(this)[j](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[j](!1)},fixed64:function(){return readFixed64.call(this)[j](!0)},sfixed64:function(){return readFixed64.call(this)[j](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$1=requireMinimal();function BufferReader(s){Reader.call(this,s)}BufferReader._configure=function(){util$1.Buffer&&(BufferReader.prototype._slice=util$1.Buffer.prototype.slice)};BufferReader.prototype.string=function s(){var j=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+j,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+j,this.len))};BufferReader._configure();var rpc={},service=Service,util=requireMinimal();(Service.prototype=Object.create(util.EventEmitter.prototype)).constructor=Service;function Service(s,j,$){if(typeof s!="function")throw TypeError("rpcImpl must be a function");util.EventEmitter.call(this),this.rpcImpl=s,this.requestDelimited=!!j,this.responseDelimited=!!$}Service.prototype.rpcCall=function s(j,$,_e,et,tt){if(!et)throw TypeError("request must be specified");var nt=this;if(!tt)return util.asPromise(s,nt,j,$,_e,et);if(!nt.rpcImpl){setTimeout(function(){tt(Error("already ended"))},0);return}try{return nt.rpcImpl(j,$[nt.requestDelimited?"encodeDelimited":"encode"](et).finish(),function(ot,it){if(ot)return nt.emit("error",ot,j),tt(ot);if(it===null){nt.end(!0);return}if(!(it instanceof _e))try{it=_e[nt.responseDelimited?"decodeDelimited":"decode"](it)}catch(st){return nt.emit("error",st,j),tt(st)}return nt.emit("data",it,j),tt(null,it)})}catch(rt){nt.emit("error",rt,j),setTimeout(function(){tt(rt)},0);return}};Service.prototype.end=function s(j){return this.rpcImpl&&(j||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(s){var j=s;j.Service=service})(rpc);var roots={};(function(s){var j=s;j.build="minimal",j.Writer=writer,j.BufferWriter=writer_buffer,j.Reader=reader,j.BufferReader=reader_buffer,j.util=requireMinimal(),j.rpc=rpc,j.roots=roots,j.configure=$;function $(){j.util._configure(),j.Writer._configure(j.BufferWriter),j.Reader._configure(j.BufferReader)}$()})(indexMinimal);var minimal=indexMinimal;const _m0=getDefaultExportFromCjs$1(minimal);_m0.util.Long!==Long$1&&(_m0.util.Long=Long$1,_m0.configure());var __assign$5=function(){return __assign$5=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$5.apply(this,arguments)};_m0.util.Long!==Long$1&&(_m0.util.Long=Long$1,_m0.configure());var __assign$4=function(){return __assign$4=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$4.apply(this,arguments)},FieldDescriptorProto_Type;(function(s){s[s.TYPE_DOUBLE=1]="TYPE_DOUBLE",s[s.TYPE_FLOAT=2]="TYPE_FLOAT",s[s.TYPE_INT64=3]="TYPE_INT64",s[s.TYPE_UINT64=4]="TYPE_UINT64",s[s.TYPE_INT32=5]="TYPE_INT32",s[s.TYPE_FIXED64=6]="TYPE_FIXED64",s[s.TYPE_FIXED32=7]="TYPE_FIXED32",s[s.TYPE_BOOL=8]="TYPE_BOOL",s[s.TYPE_STRING=9]="TYPE_STRING",s[s.TYPE_GROUP=10]="TYPE_GROUP",s[s.TYPE_MESSAGE=11]="TYPE_MESSAGE",s[s.TYPE_BYTES=12]="TYPE_BYTES",s[s.TYPE_UINT32=13]="TYPE_UINT32",s[s.TYPE_ENUM=14]="TYPE_ENUM",s[s.TYPE_SFIXED32=15]="TYPE_SFIXED32",s[s.TYPE_SFIXED64=16]="TYPE_SFIXED64",s[s.TYPE_SINT32=17]="TYPE_SINT32",s[s.TYPE_SINT64=18]="TYPE_SINT64",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FieldDescriptorProto_Type||(FieldDescriptorProto_Type={}));var FieldDescriptorProto_Label;(function(s){s[s.LABEL_OPTIONAL=1]="LABEL_OPTIONAL",s[s.LABEL_REQUIRED=2]="LABEL_REQUIRED",s[s.LABEL_REPEATED=3]="LABEL_REPEATED",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FieldDescriptorProto_Label||(FieldDescriptorProto_Label={}));var FileOptions_OptimizeMode;(function(s){s[s.SPEED=1]="SPEED",s[s.CODE_SIZE=2]="CODE_SIZE",s[s.LITE_RUNTIME=3]="LITE_RUNTIME",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FileOptions_OptimizeMode||(FileOptions_OptimizeMode={}));var FieldOptions_CType;(function(s){s[s.STRING=0]="STRING",s[s.CORD=1]="CORD",s[s.STRING_PIECE=2]="STRING_PIECE",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FieldOptions_CType||(FieldOptions_CType={}));var FieldOptions_JSType;(function(s){s[s.JS_NORMAL=0]="JS_NORMAL",s[s.JS_STRING=1]="JS_STRING",s[s.JS_NUMBER=2]="JS_NUMBER",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FieldOptions_JSType||(FieldOptions_JSType={}));var MethodOptions_IdempotencyLevel;(function(s){s[s.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",s[s.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",s[s.IDEMPOTENT=2]="IDEMPOTENT",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MethodOptions_IdempotencyLevel||(MethodOptions_IdempotencyLevel={}));var globalThis$5=function(){if(typeof globalThis$5<"u")return globalThis$5;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"}();globalThis$5.atob;globalThis$5.btoa;_m0.util.Long!==Long$1&&(_m0.util.Long=Long$1,_m0.configure());var __assign$3=function(){return __assign$3=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$3.apply(this,arguments)},__values$1=function(s){var j=typeof Symbol=="function"&&Symbol.iterator,$=j&&s[j],_e=0;if($)return $.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&_e>=s.length&&(s=void 0),{value:s&&s[_e++],done:!s}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")},baseHeartbeat={nodeName:"",counter:"0",timestamp:"0",version:"",guardianAddr:"",bootTimestamp:"0",features:""},Heartbeat={encode:function(s,j){var $,_e,et,tt;j===void 0&&(j=_m0.Writer.create()),s.nodeName!==""&&j.uint32(10).string(s.nodeName),s.counter!=="0"&&j.uint32(16).int64(s.counter),s.timestamp!=="0"&&j.uint32(24).int64(s.timestamp);try{for(var nt=__values$1(s.networks),rt=nt.next();!rt.done;rt=nt.next()){var ot=rt.value;Heartbeat_Network.encode(ot,j.uint32(34).fork()).ldelim()}}catch(at){$={error:at}}finally{try{rt&&!rt.done&&(_e=nt.return)&&_e.call(nt)}finally{if($)throw $.error}}s.version!==""&&j.uint32(42).string(s.version),s.guardianAddr!==""&&j.uint32(50).string(s.guardianAddr),s.bootTimestamp!=="0"&&j.uint32(56).int64(s.bootTimestamp);try{for(var it=__values$1(s.features),st=it.next();!st.done;st=it.next()){var ot=st.value;j.uint32(66).string(ot)}}catch(at){et={error:at}}finally{try{st&&!st.done&&(tt=it.return)&&tt.call(it)}finally{if(et)throw et.error}}return s.p2pNodeId.length!==0&&j.uint32(74).bytes(s.p2pNodeId),j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$3({},baseHeartbeat);for(et.networks=[],et.features=[],et.p2pNodeId=new Uint8Array;$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.nodeName=$.string();break;case 2:et.counter=longToString$1($.int64());break;case 3:et.timestamp=longToString$1($.int64());break;case 4:et.networks.push(Heartbeat_Network.decode($,$.uint32()));break;case 5:et.version=$.string();break;case 6:et.guardianAddr=$.string();break;case 7:et.bootTimestamp=longToString$1($.int64());break;case 8:et.features.push($.string());break;case 9:et.p2pNodeId=$.bytes();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e,et,tt=__assign$3({},baseHeartbeat);if(tt.networks=[],tt.features=[],tt.p2pNodeId=new Uint8Array,s.nodeName!==void 0&&s.nodeName!==null?tt.nodeName=String(s.nodeName):tt.nodeName="",s.counter!==void 0&&s.counter!==null?tt.counter=String(s.counter):tt.counter="0",s.timestamp!==void 0&&s.timestamp!==null?tt.timestamp=String(s.timestamp):tt.timestamp="0",s.networks!==void 0&&s.networks!==null)try{for(var nt=__values$1(s.networks),rt=nt.next();!rt.done;rt=nt.next()){var ot=rt.value;tt.networks.push(Heartbeat_Network.fromJSON(ot))}}catch(at){j={error:at}}finally{try{rt&&!rt.done&&($=nt.return)&&$.call(nt)}finally{if(j)throw j.error}}if(s.version!==void 0&&s.version!==null?tt.version=String(s.version):tt.version="",s.guardianAddr!==void 0&&s.guardianAddr!==null?tt.guardianAddr=String(s.guardianAddr):tt.guardianAddr="",s.bootTimestamp!==void 0&&s.bootTimestamp!==null?tt.bootTimestamp=String(s.bootTimestamp):tt.bootTimestamp="0",s.features!==void 0&&s.features!==null)try{for(var it=__values$1(s.features),st=it.next();!st.done;st=it.next()){var ot=st.value;tt.features.push(String(ot))}}catch(at){_e={error:at}}finally{try{st&&!st.done&&(et=it.return)&&et.call(it)}finally{if(_e)throw _e.error}}return s.p2pNodeId!==void 0&&s.p2pNodeId!==null&&(tt.p2pNodeId=bytesFromBase64$1(s.p2pNodeId)),tt},toJSON:function(s){var j={};return s.nodeName!==void 0&&(j.nodeName=s.nodeName),s.counter!==void 0&&(j.counter=s.counter),s.timestamp!==void 0&&(j.timestamp=s.timestamp),s.networks?j.networks=s.networks.map(function($){return $?Heartbeat_Network.toJSON($):void 0}):j.networks=[],s.version!==void 0&&(j.version=s.version),s.guardianAddr!==void 0&&(j.guardianAddr=s.guardianAddr),s.bootTimestamp!==void 0&&(j.bootTimestamp=s.bootTimestamp),s.features?j.features=s.features.map(function($){return $}):j.features=[],s.p2pNodeId!==void 0&&(j.p2pNodeId=base64FromBytes$1(s.p2pNodeId!==void 0?s.p2pNodeId:new Uint8Array)),j},fromPartial:function(s){var j,$,_e,et,tt=__assign$3({},baseHeartbeat);if(tt.networks=[],tt.features=[],s.nodeName!==void 0&&s.nodeName!==null?tt.nodeName=s.nodeName:tt.nodeName="",s.counter!==void 0&&s.counter!==null?tt.counter=s.counter:tt.counter="0",s.timestamp!==void 0&&s.timestamp!==null?tt.timestamp=s.timestamp:tt.timestamp="0",s.networks!==void 0&&s.networks!==null)try{for(var nt=__values$1(s.networks),rt=nt.next();!rt.done;rt=nt.next()){var ot=rt.value;tt.networks.push(Heartbeat_Network.fromPartial(ot))}}catch(at){j={error:at}}finally{try{rt&&!rt.done&&($=nt.return)&&$.call(nt)}finally{if(j)throw j.error}}if(s.version!==void 0&&s.version!==null?tt.version=s.version:tt.version="",s.guardianAddr!==void 0&&s.guardianAddr!==null?tt.guardianAddr=s.guardianAddr:tt.guardianAddr="",s.bootTimestamp!==void 0&&s.bootTimestamp!==null?tt.bootTimestamp=s.bootTimestamp:tt.bootTimestamp="0",s.features!==void 0&&s.features!==null)try{for(var it=__values$1(s.features),st=it.next();!st.done;st=it.next()){var ot=st.value;tt.features.push(ot)}}catch(at){_e={error:at}}finally{try{st&&!st.done&&(et=it.return)&&et.call(it)}finally{if(_e)throw _e.error}}return s.p2pNodeId!==void 0&&s.p2pNodeId!==null?tt.p2pNodeId=s.p2pNodeId:tt.p2pNodeId=new Uint8Array,tt}},baseHeartbeat_Network={id:0,height:"0",contractAddress:"",errorCount:"0",safeHeight:"0",finalizedHeight:"0"},Heartbeat_Network={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.id!==0&&j.uint32(8).uint32(s.id),s.height!=="0"&&j.uint32(16).int64(s.height),s.contractAddress!==""&&j.uint32(26).string(s.contractAddress),s.errorCount!=="0"&&j.uint32(32).uint64(s.errorCount),s.safeHeight!=="0"&&j.uint32(40).int64(s.safeHeight),s.finalizedHeight!=="0"&&j.uint32(48).int64(s.finalizedHeight),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$3({},baseHeartbeat_Network);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.id=$.uint32();break;case 2:et.height=longToString$1($.int64());break;case 3:et.contractAddress=$.string();break;case 4:et.errorCount=longToString$1($.uint64());break;case 5:et.safeHeight=longToString$1($.int64());break;case 6:et.finalizedHeight=longToString$1($.int64());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$3({},baseHeartbeat_Network);return s.id!==void 0&&s.id!==null?j.id=Number(s.id):j.id=0,s.height!==void 0&&s.height!==null?j.height=String(s.height):j.height="0",s.contractAddress!==void 0&&s.contractAddress!==null?j.contractAddress=String(s.contractAddress):j.contractAddress="",s.errorCount!==void 0&&s.errorCount!==null?j.errorCount=String(s.errorCount):j.errorCount="0",s.safeHeight!==void 0&&s.safeHeight!==null?j.safeHeight=String(s.safeHeight):j.safeHeight="0",s.finalizedHeight!==void 0&&s.finalizedHeight!==null?j.finalizedHeight=String(s.finalizedHeight):j.finalizedHeight="0",j},toJSON:function(s){var j={};return s.id!==void 0&&(j.id=s.id),s.height!==void 0&&(j.height=s.height),s.contractAddress!==void 0&&(j.contractAddress=s.contractAddress),s.errorCount!==void 0&&(j.errorCount=s.errorCount),s.safeHeight!==void 0&&(j.safeHeight=s.safeHeight),s.finalizedHeight!==void 0&&(j.finalizedHeight=s.finalizedHeight),j},fromPartial:function(s){var j=__assign$3({},baseHeartbeat_Network);return s.id!==void 0&&s.id!==null?j.id=s.id:j.id=0,s.height!==void 0&&s.height!==null?j.height=s.height:j.height="0",s.contractAddress!==void 0&&s.contractAddress!==null?j.contractAddress=s.contractAddress:j.contractAddress="",s.errorCount!==void 0&&s.errorCount!==null?j.errorCount=s.errorCount:j.errorCount="0",s.safeHeight!==void 0&&s.safeHeight!==null?j.safeHeight=s.safeHeight:j.safeHeight="0",s.finalizedHeight!==void 0&&s.finalizedHeight!==null?j.finalizedHeight=s.finalizedHeight:j.finalizedHeight="0",j}},baseSignedBatchVAAWithQuorum={chainId:0,nonce:0,batchId:""},SignedBatchVAAWithQuorum={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.batchVaa.length!==0&&j.uint32(10).bytes(s.batchVaa),s.chainId!==0&&j.uint32(16).uint32(s.chainId),s.txId.length!==0&&j.uint32(26).bytes(s.txId),s.nonce!==0&&j.uint32(32).uint32(s.nonce),s.batchId!==""&&j.uint32(42).string(s.batchId),j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$3({},baseSignedBatchVAAWithQuorum);for(et.batchVaa=new Uint8Array,et.txId=new Uint8Array;$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.batchVaa=$.bytes();break;case 2:et.chainId=$.uint32();break;case 3:et.txId=$.bytes();break;case 4:et.nonce=$.uint32();break;case 5:et.batchId=$.string();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$3({},baseSignedBatchVAAWithQuorum);return j.batchVaa=new Uint8Array,j.txId=new Uint8Array,s.batchVaa!==void 0&&s.batchVaa!==null&&(j.batchVaa=bytesFromBase64$1(s.batchVaa)),s.chainId!==void 0&&s.chainId!==null?j.chainId=Number(s.chainId):j.chainId=0,s.txId!==void 0&&s.txId!==null&&(j.txId=bytesFromBase64$1(s.txId)),s.nonce!==void 0&&s.nonce!==null?j.nonce=Number(s.nonce):j.nonce=0,s.batchId!==void 0&&s.batchId!==null?j.batchId=String(s.batchId):j.batchId="",j},toJSON:function(s){var j={};return s.batchVaa!==void 0&&(j.batchVaa=base64FromBytes$1(s.batchVaa!==void 0?s.batchVaa:new Uint8Array)),s.chainId!==void 0&&(j.chainId=s.chainId),s.txId!==void 0&&(j.txId=base64FromBytes$1(s.txId!==void 0?s.txId:new Uint8Array)),s.nonce!==void 0&&(j.nonce=s.nonce),s.batchId!==void 0&&(j.batchId=s.batchId),j},fromPartial:function(s){var j=__assign$3({},baseSignedBatchVAAWithQuorum);return s.batchVaa!==void 0&&s.batchVaa!==null?j.batchVaa=s.batchVaa:j.batchVaa=new Uint8Array,s.chainId!==void 0&&s.chainId!==null?j.chainId=s.chainId:j.chainId=0,s.txId!==void 0&&s.txId!==null?j.txId=s.txId:j.txId=new Uint8Array,s.nonce!==void 0&&s.nonce!==null?j.nonce=s.nonce:j.nonce=0,s.batchId!==void 0&&s.batchId!==null?j.batchId=s.batchId:j.batchId="",j}},globalThis$4=function(){if(typeof globalThis$4<"u")return globalThis$4;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"}(),atob$1=globalThis$4.atob||function(s){return globalThis$4.Buffer.from(s,"base64").toString("binary")};function bytesFromBase64$1(s){for(var j=atob$1(s),$=new Uint8Array(j.length),_e=0;_e0){var yt=pt.substring(0,ht).trim(),gt=pt.substring(ht+1).trim();this.append(yt,gt)}}},at.prototype.delete=function(ct,lt){var dt=it.normalizeName(ct);if(lt===void 0)delete this.headersMap[dt];else{var pt=this.headersMap[dt];if(pt){var ht=pt.indexOf(lt);ht>=0&&pt.splice(ht,1),pt.length===0&&delete this.headersMap[dt]}}},at.prototype.append=function(ct,lt){var dt=this,pt=it.normalizeName(ct);Array.isArray(this.headersMap[pt])||(this.headersMap[pt]=[]),Array.isArray(lt)?lt.forEach(function(ht){dt.headersMap[pt].push(it.normalizeValue(ht))}):this.headersMap[pt].push(it.normalizeValue(lt))},at.prototype.set=function(ct,lt){var dt=it.normalizeName(ct);if(Array.isArray(lt)){var pt=[];lt.forEach(function(ht){pt.push(it.normalizeValue(ht))}),this.headersMap[dt]=pt}else this.headersMap[dt]=[it.normalizeValue(lt)]},at.prototype.has=function(ct,lt){var dt=this.headersMap[it.normalizeName(ct)];if(!Array.isArray(dt))return!1;if(lt!==void 0){var pt=it.normalizeValue(lt);return dt.indexOf(pt)>=0}return!0},at.prototype.get=function(ct){var lt=this.headersMap[it.normalizeName(ct)];return lt!==void 0?lt.concat():[]},at.prototype.forEach=function(ct){var lt=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(dt){ct(dt,lt.headersMap[dt])},this)},at.prototype.toHeaders=function(){if(typeof Headers<"u"){var ct=new Headers;return this.forEach(function(lt,dt){dt.forEach(function(pt){ct.append(lt,pt)})}),ct}throw new Error("Headers class is not defined")},at}();rt.BrowserHeaders=st},function(nt,rt,ot){Object.defineProperty(rt,"__esModule",{value:!0});var it=ot(0);rt.BrowserHeaders=it.BrowserHeaders},function(nt,rt,ot){Object.defineProperty(rt,"__esModule",{value:!0}),rt.iterateHeaders=function(it,st){for(var at=it[Symbol.iterator](),ct=at.next();!ct.done;)st(ct.value[0]),ct=at.next()},rt.iterateHeadersKeys=function(it,st){for(var at=it.keys(),ct=at.next();!ct.done;)st(ct.value),ct=at.next()}},function(nt,rt,ot){Object.defineProperty(rt,"__esModule",{value:!0});var it=ot(2);rt.normalizeName=function(st){if(typeof st!="string"&&(st=String(st)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(st))throw new TypeError("Invalid character in header field name");return st.toLowerCase()},rt.normalizeValue=function(st){return typeof st!="string"&&(st=String(st)),st},rt.getHeaderValues=function(st,at){var ct=st;if(ct instanceof Headers&&ct.getAll)return ct.getAll(at);var lt=ct.get(at);return lt&&typeof lt=="string"?[lt]:lt},rt.getHeaderKeys=function(st){var at=st,ct={},lt=[];return at.keys?it.iterateHeadersKeys(at,function(dt){ct[dt]||(ct[dt]=!0,lt.push(dt))}):at.forEach?at.forEach(function(dt,pt){ct[pt]||(ct[pt]=!0,lt.push(pt))}):it.iterateHeaders(at,function(dt){var pt=dt[0];ct[pt]||(ct[pt]=!0,lt.push(pt))}),lt},rt.splitHeaderValue=function(st){var at=[];return st.split(", ").forEach(function(ct){ct.split(",").forEach(function(lt){at.push(lt)})}),at}}]))},617:function(et,tt,nt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.ChunkParser=tt.ChunkType=tt.encodeASCII=tt.decodeASCII=void 0;var rt,ot=nt(65);function it(ht){return(yt=ht)===9||yt===10||yt===13||ht>=32&&ht<=126;var yt}function st(ht){for(var yt=0;yt!==ht.length;++yt)if(!it(ht[yt]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(ht))}function at(ht){return(128&ht.getUint8(0))==128}function ct(ht){return ht.getUint32(1,!1)}function lt(ht,yt,gt){return ht.byteLength-yt>=gt}function dt(ht,yt,gt){if(ht.slice)return ht.slice(yt,gt);var ft=ht.length;gt!==void 0&&(ft=gt);for(var xt=new Uint8Array(ft-yt),Mt=0,jt=yt;jt=0?gt:it.httpStatusToCode(yt);this.props.debug&&st.debug("onHeaders.code",ft);var xt=ht.get("grpc-message")||[];if(this.props.debug&&st.debug("onHeaders.gRPCMessage",xt),this.rawOnHeaders(ht),ft!==it.Code.OK){var Mt=this.decodeGRPCStatus(xt[0]);this.rawOnError(ft,Mt,ht)}}},pt.prototype.onTransportChunk=function(ht){var yt=this;if(this.closed)this.props.debug&&st.debug("grpc.onChunk received after request was closed - ignoring");else{var gt=[];try{gt=this.parser.parse(ht)}catch(ft){return this.props.debug&&st.debug("onChunk.parsing error",ft,ft.message),void this.rawOnError(it.Code.Internal,"parsing error: "+ft.message)}gt.forEach(function(ft){if(ft.chunkType===ot.ChunkType.MESSAGE){var xt=yt.methodDefinition.responseType.deserializeBinary(ft.data);yt.rawOnMessage(xt)}else ft.chunkType===ot.ChunkType.TRAILERS&&(yt.responseHeaders?(yt.responseTrailers=new rt.Metadata(ft.trailers),yt.props.debug&&st.debug("onChunk.trailers",yt.responseTrailers)):(yt.responseHeaders=new rt.Metadata(ft.trailers),yt.rawOnHeaders(yt.responseHeaders)))})}},pt.prototype.onTransportEnd=function(){if(this.props.debug&&st.debug("grpc.onEnd"),this.closed)this.props.debug&&st.debug("grpc.onEnd received after request was closed - ignoring");else if(this.responseTrailers!==void 0){var ht=dt(this.responseTrailers);if(ht!==null){var yt=this.responseTrailers.get("grpc-message"),gt=this.decodeGRPCStatus(yt[0]);this.rawOnEnd(ht,gt,this.responseTrailers)}else this.rawOnError(it.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(this.responseHeaders===void 0)return void this.rawOnError(it.Code.Unknown,"Response closed without headers");var ft=dt(this.responseHeaders),xt=this.responseHeaders.get("grpc-message");if(this.props.debug&&st.debug("grpc.headers only response ",ft,xt),ft===null)return void this.rawOnEnd(it.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var Mt=this.decodeGRPCStatus(xt[0]);this.rawOnEnd(ft,Mt,this.responseHeaders)}},pt.prototype.decodeGRPCStatus=function(ht){if(!ht)return"";try{return decodeURIComponent(ht)}catch{return ht}},pt.prototype.rawOnEnd=function(ht,yt,gt){var ft=this;this.props.debug&&st.debug("rawOnEnd",ht,yt,gt),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(xt){if(!ft.closed)try{xt(ht,yt,gt)}catch(Mt){setTimeout(function(){throw Mt},0)}}))},pt.prototype.rawOnHeaders=function(ht){this.props.debug&&st.debug("rawOnHeaders",ht),this.completed||this.onHeadersCallbacks.forEach(function(yt){try{yt(ht)}catch(gt){setTimeout(function(){throw gt},0)}})},pt.prototype.rawOnError=function(ht,yt,gt){var ft=this;gt===void 0&&(gt=new rt.Metadata),this.props.debug&&st.debug("rawOnError",ht,yt),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(xt){if(!ft.closed)try{xt(ht,yt,gt)}catch(Mt){setTimeout(function(){throw Mt},0)}}))},pt.prototype.rawOnMessage=function(ht){var yt=this;this.props.debug&&st.debug("rawOnMessage",ht.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach(function(gt){if(!yt.closed)try{gt(ht)}catch(ft){setTimeout(function(){throw ft},0)}})},pt.prototype.onHeaders=function(ht){this.onHeadersCallbacks.push(ht)},pt.prototype.onMessage=function(ht){this.onMessageCallbacks.push(ht)},pt.prototype.onEnd=function(ht){this.onEndCallbacks.push(ht)},pt.prototype.start=function(ht){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var yt=new rt.Metadata(ht||{});yt.set("content-type","application/grpc-web+proto"),yt.set("x-grpc-web","1"),this.transport.start(yt)},pt.prototype.send=function(ht){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var yt=ct.frameRequest(ht);this.transport.sendMessage(yt)},pt.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},pt.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&st.debug("request.abort aborting request"),this.transport.cancel()},pt}();function dt(pt){var ht=pt.get("grpc-status")||[];if(ht.length>0)try{var yt=ht[0];return parseInt(yt,10)}catch{return null}return null}},346:function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.debug=void 0,tt.debug=function(){for(var nt=[],rt=0;rt=55296&><=56319){var ft=ht.charCodeAt(yt+1);ft>=56320&&ft<=57343&&(gt=65536+(gt-55296<<10)+(ft-56320))}return gt}function pt(ht){for(var yt=new Uint8Array(ht.length),gt=0,ft=0;ft0){var dt=ct.substring(0,lt).trim(),pt=ct.substring(lt+1).trim();this.append(dt,pt)}}},ot.prototype.delete=function(it,st){var at=tt.normalizeName(it);if(st===void 0)delete this.headersMap[at];else{var ct=this.headersMap[at];if(ct){var lt=ct.indexOf(st);lt>=0&&ct.splice(lt,1),ct.length===0&&delete this.headersMap[at]}}},ot.prototype.append=function(it,st){var at=this,ct=tt.normalizeName(it);Array.isArray(this.headersMap[ct])||(this.headersMap[ct]=[]),Array.isArray(st)?st.forEach(function(lt){at.headersMap[ct].push(tt.normalizeValue(lt))}):this.headersMap[ct].push(tt.normalizeValue(st))},ot.prototype.set=function(it,st){var at=tt.normalizeName(it);if(Array.isArray(st)){var ct=[];st.forEach(function(lt){ct.push(tt.normalizeValue(lt))}),this.headersMap[at]=ct}else this.headersMap[at]=[tt.normalizeValue(st)]},ot.prototype.has=function(it,st){var at=this.headersMap[tt.normalizeName(it)],ct=Array.isArray(at);if(!ct)return!1;if(st!==void 0){var lt=tt.normalizeValue(st);return at.indexOf(lt)>=0}else return!0},ot.prototype.get=function(it){var st=this.headersMap[tt.normalizeName(it)];return st!==void 0?st.concat():[]},ot.prototype.forEach=function(it){var st=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(at){it(at,st.headersMap[at])},this)},ot.prototype.toHeaders=function(){if(typeof Headers<"u"){var it=new Headers;return this.forEach(function(st,at){at.forEach(function(ct){it.append(st,ct)})}),it}else throw new Error("Headers class is not defined")},ot}();_e.BrowserHeaders=rt},function($,_e,et){Object.defineProperty(_e,"__esModule",{value:!0});var tt=et(0);_e.BrowserHeaders=tt.BrowserHeaders},function($,_e,et){Object.defineProperty(_e,"__esModule",{value:!0});function tt(rt,ot){for(var it=rt[Symbol.iterator](),st=it.next();!st.done;)ot(st.value[0]),st=it.next()}_e.iterateHeaders=tt;function nt(rt,ot){for(var it=rt.keys(),st=it.next();!st.done;)ot(st.value),st=it.next()}_e.iterateHeadersKeys=nt},function($,_e,et){Object.defineProperty(_e,"__esModule",{value:!0});var tt=et(2);function nt(ct){if(typeof ct!="string"&&(ct=String(ct)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(ct))throw new TypeError("Invalid character in header field name");return ct.toLowerCase()}_e.normalizeName=nt;function rt(ct){return typeof ct!="string"&&(ct=String(ct)),ct}_e.normalizeValue=rt;function ot(ct,lt){var dt=ct;if(dt instanceof Headers&&dt.getAll)return dt.getAll(lt);var pt=dt.get(lt);return pt&&typeof pt=="string"?[pt]:pt}_e.getHeaderValues=ot;function it(ct){return ct}function st(ct){var lt=ct,dt={},pt=[];return lt.keys?tt.iterateHeadersKeys(lt,function(ht){dt[ht]||(dt[ht]=!0,pt.push(ht))}):lt.forEach?lt.forEach(function(ht,yt){dt[yt]||(dt[yt]=!0,pt.push(yt))}):tt.iterateHeaders(lt,function(ht){var yt=ht[0];dt[yt]||(dt[yt]=!0,pt.push(yt))}),pt}_e.getHeaderKeys=st;function at(ct){var lt=[],dt=ct.split(", ");return dt.forEach(function(pt){pt.split(",").forEach(function(ht){lt.push(ht)})}),lt}_e.splitHeaderValue=at}])})})(browserHeaders_umd);var browserHeaders_umdExports=browserHeaders_umd.exports,__assign$2=function(){return __assign$2=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$2.apply(this,arguments)},ModificationKind;(function(s){s[s.MODIFICATION_KIND_UNSPECIFIED=0]="MODIFICATION_KIND_UNSPECIFIED",s[s.MODIFICATION_KIND_ADD=1]="MODIFICATION_KIND_ADD",s[s.MODIFICATION_KIND_SUBTRACT=2]="MODIFICATION_KIND_SUBTRACT",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ModificationKind||(ModificationKind={}));var WormchainWasmInstantiateAllowlistAction;(function(s){s[s.WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_UNSPECIFIED=0]="WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_UNSPECIFIED",s[s.WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_ADD=1]="WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_ADD",s[s.WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_DELETE=2]="WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_DELETE",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WormchainWasmInstantiateAllowlistAction||(WormchainWasmInstantiateAllowlistAction={}));var IbcUpdateChannelChainModule;(function(s){s[s.IBC_UPDATE_CHANNEL_CHAIN_MODULE_UNSPECIFIED=0]="IBC_UPDATE_CHANNEL_CHAIN_MODULE_UNSPECIFIED",s[s.IBC_UPDATE_CHANNEL_CHAIN_MODULE_RECEIVER=1]="IBC_UPDATE_CHANNEL_CHAIN_MODULE_RECEIVER",s[s.IBC_UPDATE_CHANNEL_CHAIN_MODULE_TRANSLATOR=2]="IBC_UPDATE_CHANNEL_CHAIN_MODULE_TRANSLATOR",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IbcUpdateChannelChainModule||(IbcUpdateChannelChainModule={}));var globalThis$3=function(){if(typeof globalThis$3<"u")return globalThis$3;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"}();globalThis$3.atob;globalThis$3.btoa;_m0.util.Long!==Long$1&&(_m0.util.Long=Long$1,_m0.configure());var __assign$1=function(){return __assign$1=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$1.apply(this,arguments)},__values=function(s){var j=typeof Symbol=="function"&&Symbol.iterator,$=j&&s[j],_e=0;if($)return $.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&_e>=s.length&&(s=void 0),{value:s&&s[_e++],done:!s}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")},protobufPackage="publicrpc.v1",ChainID;(function(s){s[s.CHAIN_ID_UNSPECIFIED=0]="CHAIN_ID_UNSPECIFIED",s[s.CHAIN_ID_SOLANA=1]="CHAIN_ID_SOLANA",s[s.CHAIN_ID_ETHEREUM=2]="CHAIN_ID_ETHEREUM",s[s.CHAIN_ID_TERRA=3]="CHAIN_ID_TERRA",s[s.CHAIN_ID_BSC=4]="CHAIN_ID_BSC",s[s.CHAIN_ID_POLYGON=5]="CHAIN_ID_POLYGON",s[s.CHAIN_ID_AVALANCHE=6]="CHAIN_ID_AVALANCHE",s[s.CHAIN_ID_OASIS=7]="CHAIN_ID_OASIS",s[s.CHAIN_ID_ALGORAND=8]="CHAIN_ID_ALGORAND",s[s.CHAIN_ID_AURORA=9]="CHAIN_ID_AURORA",s[s.CHAIN_ID_FANTOM=10]="CHAIN_ID_FANTOM",s[s.CHAIN_ID_KARURA=11]="CHAIN_ID_KARURA",s[s.CHAIN_ID_ACALA=12]="CHAIN_ID_ACALA",s[s.CHAIN_ID_KLAYTN=13]="CHAIN_ID_KLAYTN",s[s.CHAIN_ID_CELO=14]="CHAIN_ID_CELO",s[s.CHAIN_ID_NEAR=15]="CHAIN_ID_NEAR",s[s.CHAIN_ID_MOONBEAM=16]="CHAIN_ID_MOONBEAM",s[s.CHAIN_ID_NEON=17]="CHAIN_ID_NEON",s[s.CHAIN_ID_TERRA2=18]="CHAIN_ID_TERRA2",s[s.CHAIN_ID_INJECTIVE=19]="CHAIN_ID_INJECTIVE",s[s.CHAIN_ID_OSMOSIS=20]="CHAIN_ID_OSMOSIS",s[s.CHAIN_ID_SUI=21]="CHAIN_ID_SUI",s[s.CHAIN_ID_APTOS=22]="CHAIN_ID_APTOS",s[s.CHAIN_ID_ARBITRUM=23]="CHAIN_ID_ARBITRUM",s[s.CHAIN_ID_OPTIMISM=24]="CHAIN_ID_OPTIMISM",s[s.CHAIN_ID_GNOSIS=25]="CHAIN_ID_GNOSIS",s[s.CHAIN_ID_PYTHNET=26]="CHAIN_ID_PYTHNET",s[s.CHAIN_ID_XPLA=28]="CHAIN_ID_XPLA",s[s.CHAIN_ID_BTC=29]="CHAIN_ID_BTC",s[s.CHAIN_ID_BASE=30]="CHAIN_ID_BASE",s[s.CHAIN_ID_SEI=32]="CHAIN_ID_SEI",s[s.CHAIN_ID_SCROLL=34]="CHAIN_ID_SCROLL",s[s.CHAIN_ID_SEPOLIA=10002]="CHAIN_ID_SEPOLIA",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ChainID||(ChainID={}));function chainIDFromJSON(s){switch(s){case 0:case"CHAIN_ID_UNSPECIFIED":return ChainID.CHAIN_ID_UNSPECIFIED;case 1:case"CHAIN_ID_SOLANA":return ChainID.CHAIN_ID_SOLANA;case 2:case"CHAIN_ID_ETHEREUM":return ChainID.CHAIN_ID_ETHEREUM;case 3:case"CHAIN_ID_TERRA":return ChainID.CHAIN_ID_TERRA;case 4:case"CHAIN_ID_BSC":return ChainID.CHAIN_ID_BSC;case 5:case"CHAIN_ID_POLYGON":return ChainID.CHAIN_ID_POLYGON;case 6:case"CHAIN_ID_AVALANCHE":return ChainID.CHAIN_ID_AVALANCHE;case 7:case"CHAIN_ID_OASIS":return ChainID.CHAIN_ID_OASIS;case 8:case"CHAIN_ID_ALGORAND":return ChainID.CHAIN_ID_ALGORAND;case 9:case"CHAIN_ID_AURORA":return ChainID.CHAIN_ID_AURORA;case 10:case"CHAIN_ID_FANTOM":return ChainID.CHAIN_ID_FANTOM;case 11:case"CHAIN_ID_KARURA":return ChainID.CHAIN_ID_KARURA;case 12:case"CHAIN_ID_ACALA":return ChainID.CHAIN_ID_ACALA;case 13:case"CHAIN_ID_KLAYTN":return ChainID.CHAIN_ID_KLAYTN;case 14:case"CHAIN_ID_CELO":return ChainID.CHAIN_ID_CELO;case 15:case"CHAIN_ID_NEAR":return ChainID.CHAIN_ID_NEAR;case 16:case"CHAIN_ID_MOONBEAM":return ChainID.CHAIN_ID_MOONBEAM;case 17:case"CHAIN_ID_NEON":return ChainID.CHAIN_ID_NEON;case 18:case"CHAIN_ID_TERRA2":return ChainID.CHAIN_ID_TERRA2;case 19:case"CHAIN_ID_INJECTIVE":return ChainID.CHAIN_ID_INJECTIVE;case 20:case"CHAIN_ID_OSMOSIS":return ChainID.CHAIN_ID_OSMOSIS;case 21:case"CHAIN_ID_SUI":return ChainID.CHAIN_ID_SUI;case 22:case"CHAIN_ID_APTOS":return ChainID.CHAIN_ID_APTOS;case 23:case"CHAIN_ID_ARBITRUM":return ChainID.CHAIN_ID_ARBITRUM;case 24:case"CHAIN_ID_OPTIMISM":return ChainID.CHAIN_ID_OPTIMISM;case 25:case"CHAIN_ID_GNOSIS":return ChainID.CHAIN_ID_GNOSIS;case 26:case"CHAIN_ID_PYTHNET":return ChainID.CHAIN_ID_PYTHNET;case 28:case"CHAIN_ID_XPLA":return ChainID.CHAIN_ID_XPLA;case 29:case"CHAIN_ID_BTC":return ChainID.CHAIN_ID_BTC;case 30:case"CHAIN_ID_BASE":return ChainID.CHAIN_ID_BASE;case 32:case"CHAIN_ID_SEI":return ChainID.CHAIN_ID_SEI;case 34:case"CHAIN_ID_SCROLL":return ChainID.CHAIN_ID_SCROLL;case 10002:case"CHAIN_ID_SEPOLIA":return ChainID.CHAIN_ID_SEPOLIA;case-1:case"UNRECOGNIZED":default:return ChainID.UNRECOGNIZED}}function chainIDToJSON(s){switch(s){case ChainID.CHAIN_ID_UNSPECIFIED:return"CHAIN_ID_UNSPECIFIED";case ChainID.CHAIN_ID_SOLANA:return"CHAIN_ID_SOLANA";case ChainID.CHAIN_ID_ETHEREUM:return"CHAIN_ID_ETHEREUM";case ChainID.CHAIN_ID_TERRA:return"CHAIN_ID_TERRA";case ChainID.CHAIN_ID_BSC:return"CHAIN_ID_BSC";case ChainID.CHAIN_ID_POLYGON:return"CHAIN_ID_POLYGON";case ChainID.CHAIN_ID_AVALANCHE:return"CHAIN_ID_AVALANCHE";case ChainID.CHAIN_ID_OASIS:return"CHAIN_ID_OASIS";case ChainID.CHAIN_ID_ALGORAND:return"CHAIN_ID_ALGORAND";case ChainID.CHAIN_ID_AURORA:return"CHAIN_ID_AURORA";case ChainID.CHAIN_ID_FANTOM:return"CHAIN_ID_FANTOM";case ChainID.CHAIN_ID_KARURA:return"CHAIN_ID_KARURA";case ChainID.CHAIN_ID_ACALA:return"CHAIN_ID_ACALA";case ChainID.CHAIN_ID_KLAYTN:return"CHAIN_ID_KLAYTN";case ChainID.CHAIN_ID_CELO:return"CHAIN_ID_CELO";case ChainID.CHAIN_ID_NEAR:return"CHAIN_ID_NEAR";case ChainID.CHAIN_ID_MOONBEAM:return"CHAIN_ID_MOONBEAM";case ChainID.CHAIN_ID_NEON:return"CHAIN_ID_NEON";case ChainID.CHAIN_ID_TERRA2:return"CHAIN_ID_TERRA2";case ChainID.CHAIN_ID_INJECTIVE:return"CHAIN_ID_INJECTIVE";case ChainID.CHAIN_ID_OSMOSIS:return"CHAIN_ID_OSMOSIS";case ChainID.CHAIN_ID_SUI:return"CHAIN_ID_SUI";case ChainID.CHAIN_ID_APTOS:return"CHAIN_ID_APTOS";case ChainID.CHAIN_ID_ARBITRUM:return"CHAIN_ID_ARBITRUM";case ChainID.CHAIN_ID_OPTIMISM:return"CHAIN_ID_OPTIMISM";case ChainID.CHAIN_ID_GNOSIS:return"CHAIN_ID_GNOSIS";case ChainID.CHAIN_ID_PYTHNET:return"CHAIN_ID_PYTHNET";case ChainID.CHAIN_ID_XPLA:return"CHAIN_ID_XPLA";case ChainID.CHAIN_ID_BTC:return"CHAIN_ID_BTC";case ChainID.CHAIN_ID_BASE:return"CHAIN_ID_BASE";case ChainID.CHAIN_ID_SEI:return"CHAIN_ID_SEI";case ChainID.CHAIN_ID_SCROLL:return"CHAIN_ID_SCROLL";case ChainID.CHAIN_ID_SEPOLIA:return"CHAIN_ID_SEPOLIA";default:return"UNKNOWN"}}var baseMessageID={emitterChain:0,emitterAddress:"",sequence:"0"},MessageID={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.emitterChain!==0&&j.uint32(8).int32(s.emitterChain),s.emitterAddress!==""&&j.uint32(18).string(s.emitterAddress),s.sequence!=="0"&&j.uint32(24).uint64(s.sequence),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseMessageID);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.emitterChain=$.int32();break;case 2:et.emitterAddress=$.string();break;case 3:et.sequence=longToString($.uint64());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseMessageID);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=chainIDFromJSON(s.emitterChain):j.emitterChain=0,s.emitterAddress!==void 0&&s.emitterAddress!==null?j.emitterAddress=String(s.emitterAddress):j.emitterAddress="",s.sequence!==void 0&&s.sequence!==null?j.sequence=String(s.sequence):j.sequence="0",j},toJSON:function(s){var j={};return s.emitterChain!==void 0&&(j.emitterChain=chainIDToJSON(s.emitterChain)),s.emitterAddress!==void 0&&(j.emitterAddress=s.emitterAddress),s.sequence!==void 0&&(j.sequence=s.sequence),j},fromPartial:function(s){var j=__assign$1({},baseMessageID);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=s.emitterChain:j.emitterChain=0,s.emitterAddress!==void 0&&s.emitterAddress!==null?j.emitterAddress=s.emitterAddress:j.emitterAddress="",s.sequence!==void 0&&s.sequence!==null?j.sequence=s.sequence:j.sequence="0",j}},baseBatchID={emitterChain:0,nonce:0},BatchID={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.emitterChain!==0&&j.uint32(8).int32(s.emitterChain),s.txId.length!==0&&j.uint32(18).bytes(s.txId),s.nonce!==0&&j.uint32(24).uint32(s.nonce),j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseBatchID);for(et.txId=new Uint8Array;$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.emitterChain=$.int32();break;case 2:et.txId=$.bytes();break;case 3:et.nonce=$.uint32();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseBatchID);return j.txId=new Uint8Array,s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=chainIDFromJSON(s.emitterChain):j.emitterChain=0,s.txId!==void 0&&s.txId!==null&&(j.txId=bytesFromBase64(s.txId)),s.nonce!==void 0&&s.nonce!==null?j.nonce=Number(s.nonce):j.nonce=0,j},toJSON:function(s){var j={};return s.emitterChain!==void 0&&(j.emitterChain=chainIDToJSON(s.emitterChain)),s.txId!==void 0&&(j.txId=base64FromBytes(s.txId!==void 0?s.txId:new Uint8Array)),s.nonce!==void 0&&(j.nonce=s.nonce),j},fromPartial:function(s){var j=__assign$1({},baseBatchID);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=s.emitterChain:j.emitterChain=0,s.txId!==void 0&&s.txId!==null?j.txId=s.txId:j.txId=new Uint8Array,s.nonce!==void 0&&s.nonce!==null?j.nonce=s.nonce:j.nonce=0,j}},baseGetSignedVAARequest={},GetSignedVAARequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.messageId!==void 0&&MessageID.encode(s.messageId,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetSignedVAARequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.messageId=MessageID.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetSignedVAARequest);return s.messageId!==void 0&&s.messageId!==null?j.messageId=MessageID.fromJSON(s.messageId):j.messageId=void 0,j},toJSON:function(s){var j={};return s.messageId!==void 0&&(j.messageId=s.messageId?MessageID.toJSON(s.messageId):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetSignedVAARequest);return s.messageId!==void 0&&s.messageId!==null?j.messageId=MessageID.fromPartial(s.messageId):j.messageId=void 0,j}},baseGetSignedVAAResponse={},GetSignedVAAResponse={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.vaaBytes.length!==0&&j.uint32(10).bytes(s.vaaBytes),j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetSignedVAAResponse);for(et.vaaBytes=new Uint8Array;$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.vaaBytes=$.bytes();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetSignedVAAResponse);return j.vaaBytes=new Uint8Array,s.vaaBytes!==void 0&&s.vaaBytes!==null&&(j.vaaBytes=bytesFromBase64(s.vaaBytes)),j},toJSON:function(s){var j={};return s.vaaBytes!==void 0&&(j.vaaBytes=base64FromBytes(s.vaaBytes!==void 0?s.vaaBytes:new Uint8Array)),j},fromPartial:function(s){var j=__assign$1({},baseGetSignedVAAResponse);return s.vaaBytes!==void 0&&s.vaaBytes!==null?j.vaaBytes=s.vaaBytes:j.vaaBytes=new Uint8Array,j}},baseGetSignedBatchVAARequest={},GetSignedBatchVAARequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.batchId!==void 0&&BatchID.encode(s.batchId,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetSignedBatchVAARequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.batchId=BatchID.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetSignedBatchVAARequest);return s.batchId!==void 0&&s.batchId!==null?j.batchId=BatchID.fromJSON(s.batchId):j.batchId=void 0,j},toJSON:function(s){var j={};return s.batchId!==void 0&&(j.batchId=s.batchId?BatchID.toJSON(s.batchId):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetSignedBatchVAARequest);return s.batchId!==void 0&&s.batchId!==null?j.batchId=BatchID.fromPartial(s.batchId):j.batchId=void 0,j}},baseGetSignedBatchVAAResponse={},GetSignedBatchVAAResponse={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.signedBatchVaa!==void 0&&SignedBatchVAAWithQuorum.encode(s.signedBatchVaa,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetSignedBatchVAAResponse);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.signedBatchVaa=SignedBatchVAAWithQuorum.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetSignedBatchVAAResponse);return s.signedBatchVaa!==void 0&&s.signedBatchVaa!==null?j.signedBatchVaa=SignedBatchVAAWithQuorum.fromJSON(s.signedBatchVaa):j.signedBatchVaa=void 0,j},toJSON:function(s){var j={};return s.signedBatchVaa!==void 0&&(j.signedBatchVaa=s.signedBatchVaa?SignedBatchVAAWithQuorum.toJSON(s.signedBatchVaa):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetSignedBatchVAAResponse);return s.signedBatchVaa!==void 0&&s.signedBatchVaa!==null?j.signedBatchVaa=SignedBatchVAAWithQuorum.fromPartial(s.signedBatchVaa):j.signedBatchVaa=void 0,j}},baseGetLastHeartbeatsRequest={},GetLastHeartbeatsRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetLastHeartbeatsRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetLastHeartbeatsRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGetLastHeartbeatsRequest);return j}},baseGetLastHeartbeatsResponse={},GetLastHeartbeatsResponse={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create());try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;GetLastHeartbeatsResponse_Entry.encode(nt,j.uint32(10).fork()).ldelim()}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetLastHeartbeatsResponse);for(et.entries=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.entries.push(GetLastHeartbeatsResponse_Entry.decode($,$.uint32()));break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGetLastHeartbeatsResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GetLastHeartbeatsResponse_Entry.fromJSON(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.entries?j.entries=s.entries.map(function($){return $?GetLastHeartbeatsResponse_Entry.toJSON($):void 0}):j.entries=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGetLastHeartbeatsResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GetLastHeartbeatsResponse_Entry.fromPartial(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGetLastHeartbeatsResponse_Entry={verifiedGuardianAddr:"",p2pNodeAddr:""},GetLastHeartbeatsResponse_Entry={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.verifiedGuardianAddr!==""&&j.uint32(10).string(s.verifiedGuardianAddr),s.p2pNodeAddr!==""&&j.uint32(18).string(s.p2pNodeAddr),s.rawHeartbeat!==void 0&&Heartbeat.encode(s.rawHeartbeat,j.uint32(26).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetLastHeartbeatsResponse_Entry);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.verifiedGuardianAddr=$.string();break;case 2:et.p2pNodeAddr=$.string();break;case 3:et.rawHeartbeat=Heartbeat.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetLastHeartbeatsResponse_Entry);return s.verifiedGuardianAddr!==void 0&&s.verifiedGuardianAddr!==null?j.verifiedGuardianAddr=String(s.verifiedGuardianAddr):j.verifiedGuardianAddr="",s.p2pNodeAddr!==void 0&&s.p2pNodeAddr!==null?j.p2pNodeAddr=String(s.p2pNodeAddr):j.p2pNodeAddr="",s.rawHeartbeat!==void 0&&s.rawHeartbeat!==null?j.rawHeartbeat=Heartbeat.fromJSON(s.rawHeartbeat):j.rawHeartbeat=void 0,j},toJSON:function(s){var j={};return s.verifiedGuardianAddr!==void 0&&(j.verifiedGuardianAddr=s.verifiedGuardianAddr),s.p2pNodeAddr!==void 0&&(j.p2pNodeAddr=s.p2pNodeAddr),s.rawHeartbeat!==void 0&&(j.rawHeartbeat=s.rawHeartbeat?Heartbeat.toJSON(s.rawHeartbeat):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetLastHeartbeatsResponse_Entry);return s.verifiedGuardianAddr!==void 0&&s.verifiedGuardianAddr!==null?j.verifiedGuardianAddr=s.verifiedGuardianAddr:j.verifiedGuardianAddr="",s.p2pNodeAddr!==void 0&&s.p2pNodeAddr!==null?j.p2pNodeAddr=s.p2pNodeAddr:j.p2pNodeAddr="",s.rawHeartbeat!==void 0&&s.rawHeartbeat!==null?j.rawHeartbeat=Heartbeat.fromPartial(s.rawHeartbeat):j.rawHeartbeat=void 0,j}},baseGetCurrentGuardianSetRequest={},GetCurrentGuardianSetRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetCurrentGuardianSetRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetCurrentGuardianSetRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGetCurrentGuardianSetRequest);return j}},baseGetCurrentGuardianSetResponse={},GetCurrentGuardianSetResponse={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.guardianSet!==void 0&&GuardianSet.encode(s.guardianSet,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetCurrentGuardianSetResponse);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.guardianSet=GuardianSet.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetCurrentGuardianSetResponse);return s.guardianSet!==void 0&&s.guardianSet!==null?j.guardianSet=GuardianSet.fromJSON(s.guardianSet):j.guardianSet=void 0,j},toJSON:function(s){var j={};return s.guardianSet!==void 0&&(j.guardianSet=s.guardianSet?GuardianSet.toJSON(s.guardianSet):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetCurrentGuardianSetResponse);return s.guardianSet!==void 0&&s.guardianSet!==null?j.guardianSet=GuardianSet.fromPartial(s.guardianSet):j.guardianSet=void 0,j}},baseGuardianSet={index:0,addresses:""},GuardianSet={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create()),s.index!==0&&j.uint32(8).uint32(s.index);try{for(var et=__values(s.addresses),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;j.uint32(18).string(nt)}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGuardianSet);for(et.addresses=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.index=$.uint32();break;case 2:et.addresses.push($.string());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGuardianSet);if(_e.addresses=[],s.index!==void 0&&s.index!==null?_e.index=Number(s.index):_e.index=0,s.addresses!==void 0&&s.addresses!==null)try{for(var et=__values(s.addresses),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.addresses.push(String(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.index!==void 0&&(j.index=s.index),s.addresses?j.addresses=s.addresses.map(function($){return $}):j.addresses=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGuardianSet);if(_e.addresses=[],s.index!==void 0&&s.index!==null?_e.index=s.index:_e.index=0,s.addresses!==void 0&&s.addresses!==null)try{for(var et=__values(s.addresses),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.addresses.push(nt)}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGovernorGetAvailableNotionalByChainRequest={},GovernorGetAvailableNotionalByChainRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetAvailableNotionalByChainRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetAvailableNotionalByChainRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetAvailableNotionalByChainRequest);return j}},baseGovernorGetAvailableNotionalByChainResponse={},GovernorGetAvailableNotionalByChainResponse={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create());try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;GovernorGetAvailableNotionalByChainResponse_Entry.encode(nt,j.uint32(10).fork()).ldelim()}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse);for(et.entries=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.entries.push(GovernorGetAvailableNotionalByChainResponse_Entry.decode($,$.uint32()));break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetAvailableNotionalByChainResponse_Entry.fromJSON(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.entries?j.entries=s.entries.map(function($){return $?GovernorGetAvailableNotionalByChainResponse_Entry.toJSON($):void 0}):j.entries=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetAvailableNotionalByChainResponse_Entry.fromPartial(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGovernorGetAvailableNotionalByChainResponse_Entry={chainId:0,remainingAvailableNotional:"0",notionalLimit:"0",bigTransactionSize:"0"},GovernorGetAvailableNotionalByChainResponse_Entry={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.chainId!==0&&j.uint32(8).uint32(s.chainId),s.remainingAvailableNotional!=="0"&&j.uint32(16).uint64(s.remainingAvailableNotional),s.notionalLimit!=="0"&&j.uint32(24).uint64(s.notionalLimit),s.bigTransactionSize!=="0"&&j.uint32(32).uint64(s.bigTransactionSize),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse_Entry);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.chainId=$.uint32();break;case 2:et.remainingAvailableNotional=longToString($.uint64());break;case 3:et.notionalLimit=longToString($.uint64());break;case 4:et.bigTransactionSize=longToString($.uint64());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse_Entry);return s.chainId!==void 0&&s.chainId!==null?j.chainId=Number(s.chainId):j.chainId=0,s.remainingAvailableNotional!==void 0&&s.remainingAvailableNotional!==null?j.remainingAvailableNotional=String(s.remainingAvailableNotional):j.remainingAvailableNotional="0",s.notionalLimit!==void 0&&s.notionalLimit!==null?j.notionalLimit=String(s.notionalLimit):j.notionalLimit="0",s.bigTransactionSize!==void 0&&s.bigTransactionSize!==null?j.bigTransactionSize=String(s.bigTransactionSize):j.bigTransactionSize="0",j},toJSON:function(s){var j={};return s.chainId!==void 0&&(j.chainId=s.chainId),s.remainingAvailableNotional!==void 0&&(j.remainingAvailableNotional=s.remainingAvailableNotional),s.notionalLimit!==void 0&&(j.notionalLimit=s.notionalLimit),s.bigTransactionSize!==void 0&&(j.bigTransactionSize=s.bigTransactionSize),j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse_Entry);return s.chainId!==void 0&&s.chainId!==null?j.chainId=s.chainId:j.chainId=0,s.remainingAvailableNotional!==void 0&&s.remainingAvailableNotional!==null?j.remainingAvailableNotional=s.remainingAvailableNotional:j.remainingAvailableNotional="0",s.notionalLimit!==void 0&&s.notionalLimit!==null?j.notionalLimit=s.notionalLimit:j.notionalLimit="0",s.bigTransactionSize!==void 0&&s.bigTransactionSize!==null?j.bigTransactionSize=s.bigTransactionSize:j.bigTransactionSize="0",j}},baseGovernorGetEnqueuedVAAsRequest={},GovernorGetEnqueuedVAAsRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetEnqueuedVAAsRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetEnqueuedVAAsRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetEnqueuedVAAsRequest);return j}},baseGovernorGetEnqueuedVAAsResponse={},GovernorGetEnqueuedVAAsResponse={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create());try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;GovernorGetEnqueuedVAAsResponse_Entry.encode(nt,j.uint32(10).fork()).ldelim()}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetEnqueuedVAAsResponse);for(et.entries=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.entries.push(GovernorGetEnqueuedVAAsResponse_Entry.decode($,$.uint32()));break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGovernorGetEnqueuedVAAsResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetEnqueuedVAAsResponse_Entry.fromJSON(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.entries?j.entries=s.entries.map(function($){return $?GovernorGetEnqueuedVAAsResponse_Entry.toJSON($):void 0}):j.entries=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGovernorGetEnqueuedVAAsResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetEnqueuedVAAsResponse_Entry.fromPartial(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGovernorGetEnqueuedVAAsResponse_Entry={emitterChain:0,emitterAddress:"",sequence:"0",releaseTime:0,notionalValue:"0",txHash:""},GovernorGetEnqueuedVAAsResponse_Entry={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.emitterChain!==0&&j.uint32(8).uint32(s.emitterChain),s.emitterAddress!==""&&j.uint32(18).string(s.emitterAddress),s.sequence!=="0"&&j.uint32(24).uint64(s.sequence),s.releaseTime!==0&&j.uint32(32).uint32(s.releaseTime),s.notionalValue!=="0"&&j.uint32(40).uint64(s.notionalValue),s.txHash!==""&&j.uint32(50).string(s.txHash),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetEnqueuedVAAsResponse_Entry);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.emitterChain=$.uint32();break;case 2:et.emitterAddress=$.string();break;case 3:et.sequence=longToString($.uint64());break;case 4:et.releaseTime=$.uint32();break;case 5:et.notionalValue=longToString($.uint64());break;case 6:et.txHash=$.string();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetEnqueuedVAAsResponse_Entry);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=Number(s.emitterChain):j.emitterChain=0,s.emitterAddress!==void 0&&s.emitterAddress!==null?j.emitterAddress=String(s.emitterAddress):j.emitterAddress="",s.sequence!==void 0&&s.sequence!==null?j.sequence=String(s.sequence):j.sequence="0",s.releaseTime!==void 0&&s.releaseTime!==null?j.releaseTime=Number(s.releaseTime):j.releaseTime=0,s.notionalValue!==void 0&&s.notionalValue!==null?j.notionalValue=String(s.notionalValue):j.notionalValue="0",s.txHash!==void 0&&s.txHash!==null?j.txHash=String(s.txHash):j.txHash="",j},toJSON:function(s){var j={};return s.emitterChain!==void 0&&(j.emitterChain=s.emitterChain),s.emitterAddress!==void 0&&(j.emitterAddress=s.emitterAddress),s.sequence!==void 0&&(j.sequence=s.sequence),s.releaseTime!==void 0&&(j.releaseTime=s.releaseTime),s.notionalValue!==void 0&&(j.notionalValue=s.notionalValue),s.txHash!==void 0&&(j.txHash=s.txHash),j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetEnqueuedVAAsResponse_Entry);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=s.emitterChain:j.emitterChain=0,s.emitterAddress!==void 0&&s.emitterAddress!==null?j.emitterAddress=s.emitterAddress:j.emitterAddress="",s.sequence!==void 0&&s.sequence!==null?j.sequence=s.sequence:j.sequence="0",s.releaseTime!==void 0&&s.releaseTime!==null?j.releaseTime=s.releaseTime:j.releaseTime=0,s.notionalValue!==void 0&&s.notionalValue!==null?j.notionalValue=s.notionalValue:j.notionalValue="0",s.txHash!==void 0&&s.txHash!==null?j.txHash=s.txHash:j.txHash="",j}},baseGovernorIsVAAEnqueuedRequest={},GovernorIsVAAEnqueuedRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.messageId!==void 0&&MessageID.encode(s.messageId,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorIsVAAEnqueuedRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.messageId=MessageID.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorIsVAAEnqueuedRequest);return s.messageId!==void 0&&s.messageId!==null?j.messageId=MessageID.fromJSON(s.messageId):j.messageId=void 0,j},toJSON:function(s){var j={};return s.messageId!==void 0&&(j.messageId=s.messageId?MessageID.toJSON(s.messageId):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGovernorIsVAAEnqueuedRequest);return s.messageId!==void 0&&s.messageId!==null?j.messageId=MessageID.fromPartial(s.messageId):j.messageId=void 0,j}},baseGovernorIsVAAEnqueuedResponse={isEnqueued:!1},GovernorIsVAAEnqueuedResponse={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.isEnqueued===!0&&j.uint32(8).bool(s.isEnqueued),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorIsVAAEnqueuedResponse);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.isEnqueued=$.bool();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorIsVAAEnqueuedResponse);return s.isEnqueued!==void 0&&s.isEnqueued!==null?j.isEnqueued=!!s.isEnqueued:j.isEnqueued=!1,j},toJSON:function(s){var j={};return s.isEnqueued!==void 0&&(j.isEnqueued=s.isEnqueued),j},fromPartial:function(s){var j=__assign$1({},baseGovernorIsVAAEnqueuedResponse);return s.isEnqueued!==void 0&&s.isEnqueued!==null?j.isEnqueued=s.isEnqueued:j.isEnqueued=!1,j}},baseGovernorGetTokenListRequest={},GovernorGetTokenListRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetTokenListRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetTokenListRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetTokenListRequest);return j}},baseGovernorGetTokenListResponse={},GovernorGetTokenListResponse={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create());try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;GovernorGetTokenListResponse_Entry.encode(nt,j.uint32(10).fork()).ldelim()}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetTokenListResponse);for(et.entries=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.entries.push(GovernorGetTokenListResponse_Entry.decode($,$.uint32()));break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGovernorGetTokenListResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetTokenListResponse_Entry.fromJSON(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.entries?j.entries=s.entries.map(function($){return $?GovernorGetTokenListResponse_Entry.toJSON($):void 0}):j.entries=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGovernorGetTokenListResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetTokenListResponse_Entry.fromPartial(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGovernorGetTokenListResponse_Entry={originChainId:0,originAddress:"",price:0},GovernorGetTokenListResponse_Entry={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.originChainId!==0&&j.uint32(8).uint32(s.originChainId),s.originAddress!==""&&j.uint32(18).string(s.originAddress),s.price!==0&&j.uint32(29).float(s.price),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetTokenListResponse_Entry);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.originChainId=$.uint32();break;case 2:et.originAddress=$.string();break;case 3:et.price=$.float();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetTokenListResponse_Entry);return s.originChainId!==void 0&&s.originChainId!==null?j.originChainId=Number(s.originChainId):j.originChainId=0,s.originAddress!==void 0&&s.originAddress!==null?j.originAddress=String(s.originAddress):j.originAddress="",s.price!==void 0&&s.price!==null?j.price=Number(s.price):j.price=0,j},toJSON:function(s){var j={};return s.originChainId!==void 0&&(j.originChainId=s.originChainId),s.originAddress!==void 0&&(j.originAddress=s.originAddress),s.price!==void 0&&(j.price=s.price),j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetTokenListResponse_Entry);return s.originChainId!==void 0&&s.originChainId!==null?j.originChainId=s.originChainId:j.originChainId=0,s.originAddress!==void 0&&s.originAddress!==null?j.originAddress=s.originAddress:j.originAddress="",s.price!==void 0&&s.price!==null?j.price=s.price:j.price=0,j}},PublicRPCServiceClientImpl$5=function(){function s(j){this.rpc=j,this.GetLastHeartbeats=this.GetLastHeartbeats.bind(this),this.GetSignedVAA=this.GetSignedVAA.bind(this),this.GetSignedBatchVAA=this.GetSignedBatchVAA.bind(this),this.GetCurrentGuardianSet=this.GetCurrentGuardianSet.bind(this),this.GovernorGetAvailableNotionalByChain=this.GovernorGetAvailableNotionalByChain.bind(this),this.GovernorGetEnqueuedVAAs=this.GovernorGetEnqueuedVAAs.bind(this),this.GovernorIsVAAEnqueued=this.GovernorIsVAAEnqueued.bind(this),this.GovernorGetTokenList=this.GovernorGetTokenList.bind(this)}return s.prototype.GetLastHeartbeats=function(j,$){return this.rpc.unary(PublicRPCServiceGetLastHeartbeatsDesc,GetLastHeartbeatsRequest.fromPartial(j),$)},s.prototype.GetSignedVAA=function(j,$){return this.rpc.unary(PublicRPCServiceGetSignedVAADesc,GetSignedVAARequest.fromPartial(j),$)},s.prototype.GetSignedBatchVAA=function(j,$){return this.rpc.unary(PublicRPCServiceGetSignedBatchVAADesc,GetSignedBatchVAARequest.fromPartial(j),$)},s.prototype.GetCurrentGuardianSet=function(j,$){return this.rpc.unary(PublicRPCServiceGetCurrentGuardianSetDesc,GetCurrentGuardianSetRequest.fromPartial(j),$)},s.prototype.GovernorGetAvailableNotionalByChain=function(j,$){return this.rpc.unary(PublicRPCServiceGovernorGetAvailableNotionalByChainDesc,GovernorGetAvailableNotionalByChainRequest.fromPartial(j),$)},s.prototype.GovernorGetEnqueuedVAAs=function(j,$){return this.rpc.unary(PublicRPCServiceGovernorGetEnqueuedVAAsDesc,GovernorGetEnqueuedVAAsRequest.fromPartial(j),$)},s.prototype.GovernorIsVAAEnqueued=function(j,$){return this.rpc.unary(PublicRPCServiceGovernorIsVAAEnqueuedDesc,GovernorIsVAAEnqueuedRequest.fromPartial(j),$)},s.prototype.GovernorGetTokenList=function(j,$){return this.rpc.unary(PublicRPCServiceGovernorGetTokenListDesc,GovernorGetTokenListRequest.fromPartial(j),$)},s}(),PublicRPCServiceDesc={serviceName:"publicrpc.v1.PublicRPCService"},PublicRPCServiceGetLastHeartbeatsDesc={methodName:"GetLastHeartbeats",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GetLastHeartbeatsRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GetLastHeartbeatsResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGetSignedVAADesc={methodName:"GetSignedVAA",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GetSignedVAARequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GetSignedVAAResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGetSignedBatchVAADesc={methodName:"GetSignedBatchVAA",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GetSignedBatchVAARequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GetSignedBatchVAAResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGetCurrentGuardianSetDesc={methodName:"GetCurrentGuardianSet",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GetCurrentGuardianSetRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GetCurrentGuardianSetResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGovernorGetAvailableNotionalByChainDesc={methodName:"GovernorGetAvailableNotionalByChain",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GovernorGetAvailableNotionalByChainRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GovernorGetAvailableNotionalByChainResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGovernorGetEnqueuedVAAsDesc={methodName:"GovernorGetEnqueuedVAAs",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GovernorGetEnqueuedVAAsRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GovernorGetEnqueuedVAAsResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGovernorIsVAAEnqueuedDesc={methodName:"GovernorIsVAAEnqueued",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GovernorIsVAAEnqueuedRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GovernorIsVAAEnqueuedResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGovernorGetTokenListDesc={methodName:"GovernorGetTokenList",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GovernorGetTokenListRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GovernorGetTokenListResponse.decode(s)),{toObject:function(){return this}})}}},GrpcWebImpl$5=function(){function s(j,$){this.host=j,this.options=$}return s.prototype.unary=function(j,$,_e){var et=this,tt,nt=__assign$1(__assign$1({},$),j.requestType),rt=_e&&this.options.metadata?new browserHeaders_umdExports.BrowserHeaders(__assign$1(__assign$1({},(tt=this.options)===null||tt===void 0?void 0:tt.metadata.headersMap),_e==null?void 0:_e.headersMap)):_e||this.options.metadata;return new Promise(function(ot,it){grpcWebClient_umdExports.grpc.unary(j,{request:nt,host:et.host,metadata:rt,transport:et.options.transport,debug:et.options.debug,onEnd:function(st){if(st.status===grpcWebClient_umdExports.grpc.Code.OK)ot(st.message);else{var at=new Error(st.statusMessage);at.code=st.status,at.metadata=st.trailers,it(at)}}})})},s}(),globalThis$2=function(){if(typeof globalThis$2<"u")return globalThis$2;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"}(),atob=globalThis$2.atob||function(s){return globalThis$2.Buffer.from(s,"base64").toString("binary")};function bytesFromBase64(s){for(var j=atob(s),$=new Uint8Array(j.length),_e=0;_e(nt.rawHeartbeat&&(!j||j.toLowerCase().includes(nt.rawHeartbeat.guardianAddr.toLowerCase().substring(2)))&&tt.push({...nt.rawHeartbeat,p2pNodeAddr:nt.p2pNodeAddr}),tt),[])}else if(s.type==="cloudfunction")return(await axios$2.get(`${s.endpoint}/guardian-heartbeats`)).data.heartbeats||[];throw new Error("Unsupported network")}function useHeartbeats(s){const{currentNetwork:j}=useNetworkContext(),[$,_e]=reactExports.useState([]);return reactExports.useEffect(()=>{_e([])},[j,s]),reactExports.useEffect(()=>{let et=!1;return(async()=>{for(;!et;){const tt=await getLastHeartbeats(j,s);et||(_e(tt.sort((nt,rt)=>nt.nodeName.localeCompare(rt.nodeName))),await new Promise(nt=>setTimeout(nt,j.type==="guardian"?1e3:1e4)))}})(),()=>{et=!0}},[j,s]),$}function useLatestRelease(){const[s,j]=reactExports.useState(null);return reactExports.useEffect(()=>{let $=!1;return(async()=>{var _e;for(;!$;){const et=await axios$2.get("https://api.github.com/repos/wormhole-foundation/wormhole/releases/latest");$||(j(((_e=et.data)==null?void 0:_e.tag_name)||null),await new Promise(tt=>setTimeout(tt,6e4)))}})(),()=>{$=!0}},[]),s}function WormholeStatsIcon(){return jsxRuntimeExports.jsxs(SvgIcon,{viewBox:"0 0 40 40",children:[jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:`M20,40c-5.3,0-10.4-2.1-14.1-5.9C2.1,30.4,0,25.3,0,20C0,14.7,2.1,9.6,5.9,5.9C9.6,2.1,14.7,0,20,0 +`+tt):_e.stack=tt}catch{}}throw _e}}_request(j,$){typeof j=="string"?($=$||{},$.url=j):$=j||{},$=mergeConfig$1(this.defaults,$);const{transitional:_e,paramsSerializer:et,headers:tt}=$;_e!==void 0&&validator.assertOptions(_e,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),et!=null&&(utils$5.isFunction(et)?$.paramsSerializer={serialize:et}:validator.assertOptions(et,{encode:validators.function,serialize:validators.function},!0)),$.method=($.method||this.defaults.method||"get").toLowerCase();let nt=tt&&utils$5.merge(tt.common,tt[$.method]);tt&&utils$5.forEach(["delete","get","head","post","put","patch","common"],dt=>{delete tt[dt]}),$.headers=AxiosHeaders$1.concat(nt,tt);const rt=[];let ot=!0;this.interceptors.request.forEach(function(ft){typeof ft.runWhen=="function"&&ft.runWhen($)===!1||(ot=ot&&ft.synchronous,rt.unshift(ft.fulfilled,ft.rejected))});const it=[];this.interceptors.response.forEach(function(ft){it.push(ft.fulfilled,ft.rejected)});let st,at=0,ct;if(!ot){const dt=[dispatchRequest.bind(this),void 0];for(dt.unshift.apply(dt,rt),dt.push.apply(dt,it),ct=dt.length,st=Promise.resolve($);at{if(!_e._listeners)return;let tt=_e._listeners.length;for(;tt-- >0;)_e._listeners[tt](et);_e._listeners=null}),this.promise.then=et=>{let tt;const nt=new Promise(rt=>{_e.subscribe(rt),tt=rt}).then(et);return nt.cancel=function(){_e.unsubscribe(tt)},nt},j(function(tt,nt,rt){_e.reason||(_e.reason=new CanceledError$1(tt,nt,rt),$(_e.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(j){if(this.reason){j(this.reason);return}this._listeners?this._listeners.push(j):this._listeners=[j]}unsubscribe(j){if(!this._listeners)return;const $=this._listeners.indexOf(j);$!==-1&&this._listeners.splice($,1)}static source(){let j;return{token:new fr(function(et){j=et}),cancel:j}}};function spread$1(s){return function($){return s.apply(null,$)}}function isAxiosError$1(s){return utils$5.isObject(s)&&s.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode$1).forEach(([s,j])=>{HttpStatusCode$1[j]=s});function createInstance(s){const j=new Axios$1(s),$=bind(Axios$1.prototype.request,j);return utils$5.extend($,Axios$1.prototype,j,{allOwnKeys:!0}),utils$5.extend($,j,null,{allOwnKeys:!0}),$.create=function(et){return createInstance(mergeConfig$1(s,et))},$}const axios$1=createInstance(defaults);axios$1.Axios=Axios$1;axios$1.CanceledError=CanceledError$1;axios$1.CancelToken=CancelToken$1;axios$1.isCancel=isCancel$1;axios$1.VERSION=VERSION$1;axios$1.toFormData=toFormData$1;axios$1.AxiosError=AxiosError$1;axios$1.Cancel=axios$1.CanceledError;axios$1.all=function(j){return Promise.all(j)};axios$1.spread=spread$1;axios$1.isAxiosError=isAxiosError$1;axios$1.mergeConfig=mergeConfig$1;axios$1.AxiosHeaders=AxiosHeaders$1;axios$1.formToJSON=s=>formDataToJSON(utils$5.isHTMLForm(s)?new FormData(s):s);axios$1.getAdapter=adapters.getAdapter;axios$1.HttpStatusCode=HttpStatusCode$1;axios$1.default=axios$1;const axios$2=axios$1,{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios$2,axios=Object.freeze(Object.defineProperty({__proto__:null,Axios,AxiosError,AxiosHeaders,Cancel,CancelToken,CanceledError,HttpStatusCode,VERSION,all,default:axios$2,formToJSON,getAdapter,isAxiosError,isCancel,mergeConfig,spread,toFormData},Symbol.toStringTag,{value:"Module"})),require$$0$4=getAugmentedNamespace(axios);var utils$3={};(function(s){var j={},$=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}};Object.defineProperty(s,"__esModule",{value:!0}),s.stringifyWithBigInt=s.retry=s.sendToPagerDuty=s.isVAASigned=s.formatAndSendToSlack=s.WormholescanRPC=s.parseMessageId=s.makeMessageId=s.stringToChainId=s.universalAddress_stripped=s.getMode=s.getNetwork=s.makeSignedVAAsRowKey=s.padUint64=s.MAX_UINT_64=s.padUint16=s.MAX_UINT_16=s.assertEnvironmentVariable=s.sleep=void 0;const _e=require$$0$8,et=$(require$$0$4);async function tt(Ct){return new Promise(Dt=>setTimeout(Dt,Ct))}s.sleep=tt;const nt=Ct=>{if(Ct in j)return j[Ct];throw new Error(`Missing required environment variable: ${Ct}`)};s.assertEnvironmentVariable=nt,s.MAX_UINT_16="65535";const rt=Ct=>Ct.padStart(s.MAX_UINT_16.length,"0");s.padUint16=rt,s.MAX_UINT_64="18446744073709551615";const ot=Ct=>Ct.padStart(s.MAX_UINT_64.length,"0");s.padUint64=ot;const it=(Ct,Dt,wt)=>`${(0,s.padUint16)(Ct.toString())}/${Dt}/${(0,s.padUint64)(wt)}`;s.makeSignedVAAsRowKey=it;function st(){const Ct=(0,s.assertEnvironmentVariable)("NETWORK").toLowerCase();if(Ct==="mainnet")return"Mainnet";if(Ct==="testnet")return"Testnet";if(Ct==="devnet")return"Devnet";throw new Error(`Unknown network: ${Ct}`)}s.getNetwork=st;function at(){const Ct=(0,s.assertEnvironmentVariable)("MODE").toLowerCase();if(Ct==="vaa"||Ct==="ntt"||Ct==="ft")return Ct;throw new Error(`Unknown mode: ${Ct}`)}s.getMode=at;function ct(Ct){return _e.encoding.hex.encode(Ct.toUint8Array())}s.universalAddress_stripped=ct;function lt(Ct){try{return Number.isNaN(Number(Ct))?(0,_e.toChainId)(Ct):(0,_e.toChainId)(Number(Ct))}catch{return}}s.stringToChainId=lt;function dt(Ct,Dt,wt,kt){return`${(0,s.padUint16)(Ct.toString())}/${(0,s.padUint64)((BigInt(s.MAX_UINT_64)-BigInt(Dt)).toString())}/${wt}/${(0,s.padUint64)(kt)}`}s.makeMessageId=dt;function ft(Ct){const[Dt,wt,kt,zt]=Ct.split("/");return{chain:parseInt(Dt),block:Number(BigInt(s.MAX_UINT_64)-BigInt(wt)),emitter:kt,sequence:BigInt(zt)}}s.parseMessageId=ft,s.WormholescanRPC={Mainnet:"https://api.wormholescan.io/",Testnet:"https://api.testnet.wormholescan.io/",Devnet:""};async function gt(Ct){const Dt={channel:Ct.channelId,blocks:[{type:"section",text:{type:"mrkdwn",text:`*${Ct.bannerTxt}*`}},{type:"divider"},{type:"section",text:{type:"mrkdwn",text:Ct.msg}}]},wt=1,kt=250;let zt=null;const Ot=Ct.postUrl;for(let Pt=0;Pt=Dt)throw console.error(`Failed after ${Dt} retries:`,zt),zt;return console.warn(`Retrying (${kt+1}/${Dt})...`,zt),await new Promise(Ot=>setTimeout(Ot,wt*(kt+1))),pt(Ct,Dt,wt,kt+1)}}s.retry=pt;function xt(Ct){return JSON.stringify(Ct,(Dt,wt)=>typeof wt=="bigint"?wt.toString():wt)}s.stringifyWithBigInt=xt})(utils$3);var __importDefault$2=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(solana,"__esModule",{value:!0});solana.getTokenBalanceChange=solana.blockTimeToDate=solana.parseWormholeSequenceFromLogs=solana.decodeBase64Data=solana.makeRpcCall=solana.getCustodyAmount=solana.getCustody=solana.derivePda=solana.getSolanaTokenDecimals=solana.normalizeCompileInstruction=solana.isLegacyMessage=void 0;const web3_js_1=require$$0$5,axios_1$2=__importDefault$2(require$$0$4),bs58_1=bs58,sdk_base_1$d=require$$0$8,utils_1$2=utils$3,isLegacyMessage=s=>s.version==="legacy";solana.isLegacyMessage=isLegacyMessage;const normalizeCompileInstruction=s=>"accounts"in s?{accountKeyIndexes:s.accounts,data:(0,bs58_1.decode)(s.data),programIdIndex:s.programIdIndex}:s;solana.normalizeCompileInstruction=normalizeCompileInstruction;const getSolanaTokenDecimals=async(s,j)=>{var _e,et,tt,nt;const $={jsonrpc:"2.0",id:1,method:"getAccountInfo",params:[j,{encoding:"jsonParsed"}]};try{const ot=(await(0,utils_1$2.retry)(()=>axios_1$2.default.post(s,$))).data.result;if(((nt=(tt=(et=(_e=ot==null?void 0:ot.value)==null?void 0:_e.data)==null?void 0:et.parsed)==null?void 0:tt.info)==null?void 0:nt.decimals)!==void 0)return ot.value.data.parsed.info.decimals;throw new Error("Failed to get mint decimals: decimals not found in response")}catch(rt){throw new Error(`Failed to get mint decimals: ${rt}`)}};solana.getSolanaTokenDecimals=getSolanaTokenDecimals;function derivePda(s,j){const $=_e=>typeof _e=="string"?sdk_base_1$d.encoding.bytes.encode(_e):_e;return web3_js_1.PublicKey.findProgramAddressSync(Array.isArray(s)?s.map($):[$(s)],new web3_js_1.PublicKey(j))[0]}solana.derivePda=derivePda;async function getCustody(s,j){const $=await makeRpcCall(s,"getAccountInfo",[j],"jsonParsed"),_e=decodeBase64Data($.value.data[0]);return new web3_js_1.PublicKey(_e.slice(128,160)).toString()}solana.getCustody=getCustody;async function getCustodyAmount(s,j){var _e,et,tt,nt,rt;const $=await makeRpcCall(s,"getAccountInfo",[j],"jsonParsed");if(!((rt=(nt=(tt=(et=(_e=$.value)==null?void 0:_e.data)==null?void 0:et.parsed)==null?void 0:tt.info)==null?void 0:nt.tokenAmount)!=null&&rt.uiAmount))throw new Error("Custody amount not found or missing data");return{amount:$.value.data.parsed.info.tokenAmount.amount,decimals:$.value.data.parsed.info.tokenAmount.decimals}}solana.getCustodyAmount=getCustodyAmount;async function makeRpcCall(s,j,$,_e){const et={jsonrpc:"2.0",id:1,method:j,params:[...$,{encoding:_e}]},tt=await(0,utils_1$2.retry)(()=>axios_1$2.default.post(s,et));if(tt.data.error)throw new Error(`Error fetching ${j} account: ${tt.data.error.message}`);return tt.data.result}solana.makeRpcCall=makeRpcCall;function decodeBase64Data(s){return new Uint8Array(Buffer.from(s,"base64"))}solana.decodeBase64Data=decodeBase64Data;const SOLANA_SEQ_LOG="Program log: Sequence: ";function parseWormholeSequenceFromLogs(s){for(const j of s)if(j.startsWith(SOLANA_SEQ_LOG))return parseInt(j.replace(SOLANA_SEQ_LOG,""),10);return null}solana.parseWormholeSequenceFromLogs=parseWormholeSequenceFromLogs;function blockTimeToDate(s){return new Date(s*1e3)}solana.blockTimeToDate=blockTimeToDate;function getTokenBalanceChange(s,j,$){var ot,it;const _e=((ot=s.meta)==null?void 0:ot.preTokenBalances)||[],et=((it=s.meta)==null?void 0:it.postTokenBalances)||[],tt=_e.find(st=>st.mint===$&&st.owner===j)||{uiTokenAmount:{amount:0n}},nt=et.find(st=>st.mint===$&&st.owner===j)||{uiTokenAmount:{amount:0n}};return BigInt(nt.uiTokenAmount.amount)-BigInt(tt.uiTokenAmount.amount)}solana.getTokenBalanceChange=getTokenBalanceChange;var nttConsts={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.NTT_SUPPORTED_CHAINS=s.NTT_MANAGER_CONTRACT_ARRAY=s.NTT_TOKENS=s.NTT_TRANSCEIVER_CONTRACT=s.NTT_MANAGER_CONTRACT=s.nttChains=void 0;const j=require$$0$8;s.nttChains=["Ethereum","Fantom","Solana","Arbitrum","Optimism","Base","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky"];function $(et){const tt={};for(const nt of j.networks){tt[nt]={};for(const rt in et[nt])for(const ot of s.nttChains){const it=et[nt][rt][ot];it&&(tt[nt][ot]||(tt[nt][ot]=[]),tt[nt][ot].push(it))}}return tt}s.NTT_MANAGER_CONTRACT={Mainnet:{USDC:{Ethereum:"0xeBdCe9a913d9400EE75ef31Ce8bd34462D01a1c1",Fantom:"0x68dB2f05Aa2d77DEf981fd2be32661340c9222FB"},W:{Solana:"NTtAaoDJhkeHeaVUHnyhwbPNAN6WgBpHkHBTc6d7vLK",Ethereum:"0xc072B1AEf336eDde59A049699Ef4e8Fa9D594A48",Arbitrum:"0x5333d0AcA64a450Add6FeF76D6D1375F726CB484",Optimism:"0x1a4F1a790f23Ffb9772966cB6F36dCd658033e13",Base:"0x5333d0AcA64a450Add6FeF76D6D1375F726CB484"}},Testnet:{TEST_NTT:{Solana:"nTTh3bZ5Aer6xboWZe39RDEft4MeVxSQ8D1EYAVLZw9",Sepolia:"0xB231aD95f2301bc82eA44c515001F0F746D637e0",ArbitrumSepolia:"0xEec94CD3083e067398256a79CcA7e740C5c8ef81",BaseSepolia:"0xB03b030b2f5B40819Df76467d67eD1C85Ff66fAD",OptimismSepolia:"0x7f430D4e7939D994C0955A01FC75D9DE33F12D11"}},Devnet:{}},s.NTT_TRANSCEIVER_CONTRACT={Mainnet:{USDC:{Ethereum:"0x55f7820357FA17A1ECb48E959D5E637bFF956d6F",Fantom:"0x8b47f02E7E20174C76Af910adc0Ad8A4B0342f4c"},W:{Solana:"ExVbjD8inGXkt7Cx8jVr4GF175sQy1MeqgfaY53Ah8as",Ethereum:"0xDb55492d7190D1baE8ACbE03911C4E3E7426870c",Arbitrum:"0xD1a8AB69e00266e8B791a15BC47514153A5045a6",Optimism:"0x9bD8b7b527CA4e6738cBDaBdF51C22466756073d",Base:"0xD1a8AB69e00266e8B791a15BC47514153A5045a6"}},Testnet:{TEST_NTT:{Solana:"9WNzy7xYZyL2k6JnE9dWSp7VpYkvfRN3Rhd8wHv9J9mY",Sepolia:"0x1fDC902e30b188FD2BA976B421Cb179943F57896",ArbitrumSepolia:"0x0E24D17D7467467b39Bf64A9DFf88776Bd6c74d7",BaseSepolia:"0x1e072169541f1171e427Aa44B5fd8924BEE71b0e",OptimismSepolia:"0x41265eb2863bf0238081F6AeefeF73549C82C3DD"}},Devnet:{}},s.NTT_TOKENS={Mainnet:{USDC:{Ethereum:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",Fantom:"0x2F733095B80A04b38b0D10cC884524a3d09b836a"},W:{Solana:"85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ",Ethereum:"0xB0fFa8000886e57F86dd5264b9582b2Ad87b2b91",Arbitrum:"0xB0fFa8000886e57F86dd5264b9582b2Ad87b2b91",Optimism:"0xB0fFa8000886e57F86dd5264b9582b2Ad87b2b91",Base:"0xB0fFa8000886e57F86dd5264b9582b2Ad87b2b91"}},Testnet:{TEST_NTT:{Solana:"87r5ZS91Q2pQbFTvvneqs7y7mbtegtqMt4LDAS4g23Ax",Sepolia:"0x1d30E78B7C7fbbcef87ae6e97B5389b2e470CA4a",ArbitrumSepolia:"0x84A1Cb660B19eB0063EE5FD377eC14AAe3364d74",BaseSepolia:"0x7f430D4e7939D994C0955A01FC75D9DE33F12D11",OptimismSepolia:"0x0e15979a7a1eFAEf20312CA45A59eb141bF7E340"}},Devnet:{}},s.NTT_MANAGER_CONTRACT_ARRAY=$(s.NTT_MANAGER_CONTRACT);function _e(et,tt){const nt=s.NTT_MANAGER_CONTRACT[et][tt];return nt?s.nttChains.filter(rt=>rt in nt):[]}s.NTT_SUPPORTED_CHAINS=_e})(nttConsts);var evm={},cjs={},registry={};Object.defineProperty(registry,"__esModule",{value:!0});var address={},universalAddress$2={},utils$2={};const require$$0$3=getAugmentedNamespace(sha256$1),require$$1$1=getAugmentedNamespace(sha3);var secp256k1={};const require$$1=getAugmentedNamespace(utils$6);var modular={},utils$1={};Object.defineProperty(utils$1,"__esModule",{value:!0});utils$1.validateObject=utils$1.createHmacDrbg=utils$1.bitMask=utils$1.bitSet=utils$1.bitGet=utils$1.bitLen=utils$1.utf8ToBytes=utils$1.equalBytes=utils$1.concatBytes=utils$1.ensureBytes=utils$1.numberToVarBytesBE=utils$1.numberToBytesLE=utils$1.numberToBytesBE=utils$1.bytesToNumberLE=utils$1.bytesToNumberBE=utils$1.hexToBytes=utils$1.hexToNumber=utils$1.numberToHexUnpadded=utils$1.bytesToHex=utils$1.abytes=utils$1.isBytes=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$4=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2);function isBytes(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}utils$1.isBytes=isBytes;function abytes(s){if(!isBytes(s))throw new Error("Uint8Array expected")}utils$1.abytes=abytes;const hexes=Array.from({length:256},(s,j)=>j.toString(16).padStart(2,"0"));function bytesToHex(s){abytes(s);let j="";for(let $=0;$=asciis._0&&s<=asciis._9)return s-asciis._0;if(s>=asciis._A&&s<=asciis._F)return s-(asciis._A-10);if(s>=asciis._a&&s<=asciis._f)return s-(asciis._a-10)}function hexToBytes(s){if(typeof s!="string")throw new Error("hex string expected, got "+typeof s);const j=s.length,$=j/2;if(j%2)throw new Error("padded hex string expected, got unpadded hex of length "+j);const _e=new Uint8Array($);for(let et=0,tt=0;et<$;et++,tt+=2){const nt=asciiToBase16(s.charCodeAt(tt)),rt=asciiToBase16(s.charCodeAt(tt+1));if(nt===void 0||rt===void 0){const ot=s[tt]+s[tt+1];throw new Error('hex string expected, got non-hex character "'+ot+'" at index '+tt)}_e[et]=nt*16+rt}return _e}utils$1.hexToBytes=hexToBytes;function bytesToNumberBE(s){return hexToNumber(bytesToHex(s))}utils$1.bytesToNumberBE=bytesToNumberBE;function bytesToNumberLE(s){return abytes(s),hexToNumber(bytesToHex(Uint8Array.from(s).reverse()))}utils$1.bytesToNumberLE=bytesToNumberLE;function numberToBytesBE(s,j){return hexToBytes(s.toString(16).padStart(j*2,"0"))}utils$1.numberToBytesBE=numberToBytesBE;function numberToBytesLE(s,j){return numberToBytesBE(s,j).reverse()}utils$1.numberToBytesLE=numberToBytesLE;function numberToVarBytesBE(s){return hexToBytes(numberToHexUnpadded(s))}utils$1.numberToVarBytesBE=numberToVarBytesBE;function ensureBytes(s,j,$){let _e;if(typeof j=="string")try{_e=hexToBytes(j)}catch(tt){throw new Error(`${s} must be valid hex string, got "${j}". Cause: ${tt}`)}else if(isBytes(j))_e=Uint8Array.from(j);else throw new Error(`${s} must be hex string or Uint8Array`);const et=_e.length;if(typeof $=="number"&&et!==$)throw new Error(`${s} expected ${$} bytes, got ${et}`);return _e}utils$1.ensureBytes=ensureBytes;function concatBytes(...s){let j=0;for(let _e=0;_e_0n$4;s>>=_1n$4,j+=1);return j}utils$1.bitLen=bitLen;function bitGet(s,j){return s>>BigInt(j)&_1n$4}utils$1.bitGet=bitGet;function bitSet(s,j,$){return s|($?_1n$4:_0n$4)<(_2n$2<new Uint8Array(s),u8fr=s=>Uint8Array.from(s);function createHmacDrbg(s,j,$){if(typeof s!="number"||s<2)throw new Error("hashLen must be a number");if(typeof j!="number"||j<2)throw new Error("qByteLen must be a number");if(typeof $!="function")throw new Error("hmacFn must be a function");let _e=u8n(s),et=u8n(s),tt=0;const nt=()=>{_e.fill(1),et.fill(0),tt=0},rt=(...at)=>$(et,_e,...at),ot=(at=u8n())=>{et=rt(u8fr([0]),at),_e=rt(),at.length!==0&&(et=rt(u8fr([1]),at),_e=rt())},it=()=>{if(tt++>=1e3)throw new Error("drbg: tried 1000 values");let at=0;const ct=[];for(;at{nt(),ot(at);let lt;for(;!(lt=ct(it()));)ot();return nt(),lt}}utils$1.createHmacDrbg=createHmacDrbg;const validatorFns={bigint:s=>typeof s=="bigint",function:s=>typeof s=="function",boolean:s=>typeof s=="boolean",string:s=>typeof s=="string",stringOrUint8Array:s=>typeof s=="string"||isBytes(s),isSafeInteger:s=>Number.isSafeInteger(s),array:s=>Array.isArray(s),field:(s,j)=>j.Fp.isValid(s),hash:s=>typeof s=="function"&&Number.isSafeInteger(s.outputLen)};function validateObject(s,j,$={}){const _e=(et,tt,nt)=>{const rt=validatorFns[tt];if(typeof rt!="function")throw new Error(`Invalid validator "${tt}", expected function`);const ot=s[et];if(!(nt&&ot===void 0)&&!rt(ot,s))throw new Error(`Invalid param ${String(et)}=${ot} (${typeof ot}), expected ${tt}`)};for(const[et,tt]of Object.entries(j))_e(et,tt,!1);for(const[et,tt]of Object.entries($))_e(et,tt,!0);return s}utils$1.validateObject=validateObject;Object.defineProperty(modular,"__esModule",{value:!0});modular.mapHashToField=modular.getMinHashLength=modular.getFieldBytesLength=modular.hashToPrivateScalar=modular.FpSqrtEven=modular.FpSqrtOdd=modular.Field=modular.nLength=modular.FpIsSquare=modular.FpDiv=modular.FpInvertBatch=modular.FpPow=modular.validateField=modular.isNegativeLE=modular.FpSqrt=modular.tonelliShanks=modular.invert=modular.pow2=modular.pow=modular.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const utils_js_1$7=utils$1,_0n$3=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n$1=BigInt(8);BigInt(9);BigInt(16);function mod(s,j){const $=s%j;return $>=_0n$3?$:j+$}modular.mod=mod;function pow(s,j,$){if($<=_0n$3||j<_0n$3)throw new Error("Expected power/modulo > 0");if($===_1n$3)return _0n$3;let _e=_1n$3;for(;j>_0n$3;)j&_1n$3&&(_e=_e*s%$),s=s*s%$,j>>=_1n$3;return _e}modular.pow=pow;function pow2(s,j,$){let _e=s;for(;j-- >_0n$3;)_e*=_e,_e%=$;return _e}modular.pow2=pow2;function invert(s,j){if(s===_0n$3||j<=_0n$3)throw new Error(`invert: expected positive integers, got n=${s} mod=${j}`);let $=mod(s,j),_e=j,et=_0n$3,tt=_1n$3;for(;$!==_0n$3;){const rt=_e/$,ot=_e%$,it=et-tt*rt;_e=$,$=ot,et=tt,tt=it}if(_e!==_1n$3)throw new Error("invert: does not exist");return mod(et,j)}modular.invert=invert;function tonelliShanks(s){const j=(s-_1n$3)/_2n$1;let $,_e,et;for($=s-_1n$3,_e=0;$%_2n$1===_0n$3;$/=_2n$1,_e++);for(et=_2n$1;et(mod(s,j)&_1n$3)===_1n$3;modular.isNegativeLE=isNegativeLE;const FIELD_FIELDS=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField(s){const j={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},$=FIELD_FIELDS.reduce((_e,et)=>(_e[et]="function",_e),j);return(0,utils_js_1$7.validateObject)(s,$)}modular.validateField=validateField;function FpPow(s,j,$){if($<_0n$3)throw new Error("Expected power > 0");if($===_0n$3)return s.ONE;if($===_1n$3)return j;let _e=s.ONE,et=j;for(;$>_0n$3;)$&_1n$3&&(_e=s.mul(_e,et)),et=s.sqr(et),$>>=_1n$3;return _e}modular.FpPow=FpPow;function FpInvertBatch(s,j){const $=new Array(j.length),_e=j.reduce((tt,nt,rt)=>s.is0(nt)?tt:($[rt]=tt,s.mul(tt,nt)),s.ONE),et=s.inv(_e);return j.reduceRight((tt,nt,rt)=>s.is0(nt)?tt:($[rt]=s.mul(tt,$[rt]),s.mul(tt,nt)),et),$}modular.FpInvertBatch=FpInvertBatch;function FpDiv(s,j,$){return s.mul(j,typeof $=="bigint"?invert($,s.ORDER):s.inv($))}modular.FpDiv=FpDiv;function FpIsSquare(s){const j=(s.ORDER-_1n$3)/_2n$1;return $=>{const _e=s.pow($,j);return s.eql(_e,s.ZERO)||s.eql(_e,s.ONE)}}modular.FpIsSquare=FpIsSquare;function nLength(s,j){const $=j!==void 0?j:s.toString(2).length,_e=Math.ceil($/8);return{nBitLength:$,nByteLength:_e}}modular.nLength=nLength;function Field(s,j,$=!1,_e={}){if(s<=_0n$3)throw new Error(`Expected Field ORDER > 0, got ${s}`);const{nBitLength:et,nByteLength:tt}=nLength(s,j);if(tt>2048)throw new Error("Field lengths over 2048 bytes are not supported");const nt=FpSqrt(s),rt=Object.freeze({ORDER:s,BITS:et,BYTES:tt,MASK:(0,utils_js_1$7.bitMask)(et),ZERO:_0n$3,ONE:_1n$3,create:ot=>mod(ot,s),isValid:ot=>{if(typeof ot!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof ot}`);return _0n$3<=ot&&otot===_0n$3,isOdd:ot=>(ot&_1n$3)===_1n$3,neg:ot=>mod(-ot,s),eql:(ot,it)=>ot===it,sqr:ot=>mod(ot*ot,s),add:(ot,it)=>mod(ot+it,s),sub:(ot,it)=>mod(ot-it,s),mul:(ot,it)=>mod(ot*it,s),pow:(ot,it)=>FpPow(rt,ot,it),div:(ot,it)=>mod(ot*invert(it,s),s),sqrN:ot=>ot*ot,addN:(ot,it)=>ot+it,subN:(ot,it)=>ot-it,mulN:(ot,it)=>ot*it,inv:ot=>invert(ot,s),sqrt:_e.sqrt||(ot=>nt(rt,ot)),invertBatch:ot=>FpInvertBatch(rt,ot),cmov:(ot,it,st)=>st?it:ot,toBytes:ot=>$?(0,utils_js_1$7.numberToBytesLE)(ot,tt):(0,utils_js_1$7.numberToBytesBE)(ot,tt),fromBytes:ot=>{if(ot.length!==tt)throw new Error(`Fp.fromBytes: expected ${tt}, got ${ot.length}`);return $?(0,utils_js_1$7.bytesToNumberLE)(ot):(0,utils_js_1$7.bytesToNumberBE)(ot)}});return Object.freeze(rt)}modular.Field=Field;function FpSqrtOdd(s,j){if(!s.isOdd)throw new Error("Field doesn't have isOdd");const $=s.sqrt(j);return s.isOdd($)?$:s.neg($)}modular.FpSqrtOdd=FpSqrtOdd;function FpSqrtEven(s,j){if(!s.isOdd)throw new Error("Field doesn't have isOdd");const $=s.sqrt(j);return s.isOdd($)?s.neg($):$}modular.FpSqrtEven=FpSqrtEven;function hashToPrivateScalar(s,j,$=!1){s=(0,utils_js_1$7.ensureBytes)("privateHash",s);const _e=s.length,et=nLength(j).nByteLength+8;if(et<24||_e1024)throw new Error(`hashToPrivateScalar: expected ${et}-1024 bytes of input, got ${_e}`);const tt=$?(0,utils_js_1$7.bytesToNumberLE)(s):(0,utils_js_1$7.bytesToNumberBE)(s);return mod(tt,j-_1n$3)+_1n$3}modular.hashToPrivateScalar=hashToPrivateScalar;function getFieldBytesLength(s){if(typeof s!="bigint")throw new Error("field order must be bigint");const j=s.toString(2).length;return Math.ceil(j/8)}modular.getFieldBytesLength=getFieldBytesLength;function getMinHashLength(s){const j=getFieldBytesLength(s);return j+Math.ceil(j/2)}modular.getMinHashLength=getMinHashLength;function mapHashToField(s,j,$=!1){const _e=s.length,et=getFieldBytesLength(j),tt=getMinHashLength(j);if(_e<16||_e1024)throw new Error(`expected ${tt}-1024 bytes of input, got ${_e}`);const nt=$?(0,utils_js_1$7.bytesToNumberBE)(s):(0,utils_js_1$7.bytesToNumberLE)(s),rt=mod(nt,j-_1n$3)+_1n$3;return $?(0,utils_js_1$7.numberToBytesLE)(rt,et):(0,utils_js_1$7.numberToBytesBE)(rt,et)}modular.mapHashToField=mapHashToField;var weierstrass={},curve={};Object.defineProperty(curve,"__esModule",{value:!0});curve.validateBasic=curve.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const modular_js_1$3=modular,utils_js_1$6=utils$1,_0n$2=BigInt(0),_1n$2=BigInt(1);function wNAF(s,j){const $=(et,tt)=>{const nt=tt.negate();return et?nt:tt},_e=et=>{const tt=Math.ceil(j/et)+1,nt=2**(et-1);return{windows:tt,windowSize:nt}};return{constTimeNegate:$,unsafeLadder(et,tt){let nt=s.ZERO,rt=et;for(;tt>_0n$2;)tt&_1n$2&&(nt=nt.add(rt)),rt=rt.double(),tt>>=_1n$2;return nt},precomputeWindow(et,tt){const{windows:nt,windowSize:rt}=_e(tt),ot=[];let it=et,st=it;for(let at=0;at>=lt,gt>ot&&(gt-=ct,nt+=_1n$2);const yt=ft,mt=ft+Math.abs(gt)-1,pt=dt%2!==0,xt=gt<0;gt===0?st=st.add($(pt,tt[yt])):it=it.add($(xt,tt[mt]))}return{p:it,f:st}},wNAFCached(et,tt,nt,rt){const ot=et._WINDOW_SIZE||1;let it=tt.get(et);return it||(it=this.precomputeWindow(et,ot),ot!==1&&tt.set(et,rt(it))),this.wNAF(ot,it,nt)}}}curve.wNAF=wNAF;function validateBasic(s){return(0,modular_js_1$3.validateField)(s.Fp),(0,utils_js_1$6.validateObject)(s,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,modular_js_1$3.nLength)(s.n,s.nBitLength),...s,p:s.Fp.ORDER})}curve.validateBasic=validateBasic;(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.mapToCurveSimpleSWU=s.SWUFpSqrtRatio=s.weierstrass=s.weierstrassPoints=s.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const j=modular,$=utils$1,_e=utils$1,et=curve;function tt(mt){const pt=(0,et.validateBasic)(mt);$.validateObject(pt,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:xt,Fp:Ct,a:Dt}=pt;if(xt){if(!Ct.eql(Dt,Ct.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof xt!="object"||typeof xt.beta!="bigint"||typeof xt.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...pt})}const{bytesToNumberBE:nt,hexToBytes:rt}=$;s.DER={Err:class extends Error{constructor(pt=""){super(pt)}},_parseInt(mt){const{Err:pt}=s.DER;if(mt.length<2||mt[0]!==2)throw new pt("Invalid signature integer tag");const xt=mt[1],Ct=mt.subarray(2,xt+2);if(!xt||Ct.length!==xt)throw new pt("Invalid signature integer: wrong length");if(Ct[0]&128)throw new pt("Invalid signature integer: negative");if(Ct[0]===0&&!(Ct[1]&128))throw new pt("Invalid signature integer: unnecessary leading zero");return{d:nt(Ct),l:mt.subarray(xt+2)}},toSig(mt){const{Err:pt}=s.DER,xt=typeof mt=="string"?rt(mt):mt;$.abytes(xt);let Ct=xt.length;if(Ct<2||xt[0]!=48)throw new pt("Invalid signature tag");if(xt[1]!==Ct-2)throw new pt("Invalid signature: incorrect length");const{d:Dt,l:wt}=s.DER._parseInt(xt.subarray(2)),{d:kt,l:zt}=s.DER._parseInt(wt);if(zt.length)throw new pt("Invalid signature: left bytes after parsing");return{r:Dt,s:kt}},hexFromSig(mt){const pt=Ft=>Number.parseInt(Ft[0],16)&8?"00"+Ft:Ft,xt=Ft=>{const Pt=Ft.toString(16);return Pt.length&1?`0${Pt}`:Pt},Ct=pt(xt(mt.s)),Dt=pt(xt(mt.r)),wt=Ct.length/2,kt=Dt.length/2,zt=xt(wt),Ot=xt(kt);return`30${xt(kt+wt+4)}02${Ot}${Dt}02${zt}${Ct}`}};const ot=BigInt(0),it=BigInt(1),st=BigInt(2),at=BigInt(3),ct=BigInt(4);function lt(mt){const pt=tt(mt),{Fp:xt}=pt,Ct=pt.toBytes||((St,vt,At)=>{const Tt=vt.toAffine();return $.concatBytes(Uint8Array.from([4]),xt.toBytes(Tt.x),xt.toBytes(Tt.y))}),Dt=pt.fromBytes||(St=>{const vt=St.subarray(1),At=xt.fromBytes(vt.subarray(0,xt.BYTES)),Tt=xt.fromBytes(vt.subarray(xt.BYTES,2*xt.BYTES));return{x:At,y:Tt}});function wt(St){const{a:vt,b:At}=pt,Tt=xt.sqr(St),jt=xt.mul(Tt,St);return xt.add(xt.add(jt,xt.mul(St,vt)),At)}if(!xt.eql(xt.sqr(pt.Gy),wt(pt.Gx)))throw new Error("bad generator point: equation left != right");function kt(St){return typeof St=="bigint"&&otxt.eql(Lt,xt.ZERO);return jt(At)&&jt(Tt)?Nt.ZERO:new Nt(At,Tt,xt.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(vt){const At=xt.invertBatch(vt.map(Tt=>Tt.pz));return vt.map((Tt,jt)=>Tt.toAffine(At[jt])).map(Nt.fromAffine)}static fromHex(vt){const At=Nt.fromAffine(Dt((0,_e.ensureBytes)("pointHex",vt)));return At.assertValidity(),At}static fromPrivateKey(vt){return Nt.BASE.multiply(Ot(vt))}_setWindowSize(vt){this._WINDOW_SIZE=vt,Ft.delete(this)}assertValidity(){if(this.is0()){if(pt.allowInfinityPoint&&!xt.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:vt,y:At}=this.toAffine();if(!xt.isValid(vt)||!xt.isValid(At))throw new Error("bad point: x or y not FE");const Tt=xt.sqr(At),jt=wt(vt);if(!xt.eql(Tt,jt))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:vt}=this.toAffine();if(xt.isOdd)return!xt.isOdd(vt);throw new Error("Field doesn't support isOdd")}equals(vt){Pt(vt);const{px:At,py:Tt,pz:jt}=this,{px:Lt,py:Mt,pz:$t}=vt,Ut=xt.eql(xt.mul(At,$t),xt.mul(Lt,jt)),Gt=xt.eql(xt.mul(Tt,$t),xt.mul(Mt,jt));return Ut&&Gt}negate(){return new Nt(this.px,xt.neg(this.py),this.pz)}double(){const{a:vt,b:At}=pt,Tt=xt.mul(At,at),{px:jt,py:Lt,pz:Mt}=this;let $t=xt.ZERO,Ut=xt.ZERO,Gt=xt.ZERO,Ht=xt.mul(jt,jt),tn=xt.mul(Lt,Lt),Jt=xt.mul(Mt,Mt),Kt=xt.mul(jt,Lt);return Kt=xt.add(Kt,Kt),Gt=xt.mul(jt,Mt),Gt=xt.add(Gt,Gt),$t=xt.mul(vt,Gt),Ut=xt.mul(Tt,Jt),Ut=xt.add($t,Ut),$t=xt.sub(tn,Ut),Ut=xt.add(tn,Ut),Ut=xt.mul($t,Ut),$t=xt.mul(Kt,$t),Gt=xt.mul(Tt,Gt),Jt=xt.mul(vt,Jt),Kt=xt.sub(Ht,Jt),Kt=xt.mul(vt,Kt),Kt=xt.add(Kt,Gt),Gt=xt.add(Ht,Ht),Ht=xt.add(Gt,Ht),Ht=xt.add(Ht,Jt),Ht=xt.mul(Ht,Kt),Ut=xt.add(Ut,Ht),Jt=xt.mul(Lt,Mt),Jt=xt.add(Jt,Jt),Ht=xt.mul(Jt,Kt),$t=xt.sub($t,Ht),Gt=xt.mul(Jt,tn),Gt=xt.add(Gt,Gt),Gt=xt.add(Gt,Gt),new Nt($t,Ut,Gt)}add(vt){Pt(vt);const{px:At,py:Tt,pz:jt}=this,{px:Lt,py:Mt,pz:$t}=vt;let Ut=xt.ZERO,Gt=xt.ZERO,Ht=xt.ZERO;const tn=pt.a,Jt=xt.mul(pt.b,at);let Kt=xt.mul(At,Lt),dn=xt.mul(Tt,Mt),en=xt.mul(jt,$t),qt=xt.add(At,Tt),Qt=xt.add(Lt,Mt);qt=xt.mul(qt,Qt),Qt=xt.add(Kt,dn),qt=xt.sub(qt,Qt),Qt=xt.add(At,jt);let Zt=xt.add(Lt,$t);return Qt=xt.mul(Qt,Zt),Zt=xt.add(Kt,en),Qt=xt.sub(Qt,Zt),Zt=xt.add(Tt,jt),Ut=xt.add(Mt,$t),Zt=xt.mul(Zt,Ut),Ut=xt.add(dn,en),Zt=xt.sub(Zt,Ut),Ht=xt.mul(tn,Qt),Ut=xt.mul(Jt,en),Ht=xt.add(Ut,Ht),Ut=xt.sub(dn,Ht),Ht=xt.add(dn,Ht),Gt=xt.mul(Ut,Ht),dn=xt.add(Kt,Kt),dn=xt.add(dn,Kt),en=xt.mul(tn,en),Qt=xt.mul(Jt,Qt),dn=xt.add(dn,en),en=xt.sub(Kt,en),en=xt.mul(tn,en),Qt=xt.add(Qt,en),Kt=xt.mul(dn,Qt),Gt=xt.add(Gt,Kt),Kt=xt.mul(Zt,Qt),Ut=xt.mul(qt,Ut),Ut=xt.sub(Ut,Kt),Kt=xt.mul(qt,dn),Ht=xt.mul(Zt,Ht),Ht=xt.add(Ht,Kt),new Nt(Ut,Gt,Ht)}subtract(vt){return this.add(vt.negate())}is0(){return this.equals(Nt.ZERO)}wNAF(vt){return bt.wNAFCached(this,Ft,vt,At=>{const Tt=xt.invertBatch(At.map(jt=>jt.pz));return At.map((jt,Lt)=>jt.toAffine(Tt[Lt])).map(Nt.fromAffine)})}multiplyUnsafe(vt){const At=Nt.ZERO;if(vt===ot)return At;if(zt(vt),vt===it)return this;const{endo:Tt}=pt;if(!Tt)return bt.unsafeLadder(this,vt);let{k1neg:jt,k1:Lt,k2neg:Mt,k2:$t}=Tt.splitScalar(vt),Ut=At,Gt=At,Ht=this;for(;Lt>ot||$t>ot;)Lt&it&&(Ut=Ut.add(Ht)),$t&it&&(Gt=Gt.add(Ht)),Ht=Ht.double(),Lt>>=it,$t>>=it;return jt&&(Ut=Ut.negate()),Mt&&(Gt=Gt.negate()),Gt=new Nt(xt.mul(Gt.px,Tt.beta),Gt.py,Gt.pz),Ut.add(Gt)}multiply(vt){zt(vt);let At=vt,Tt,jt;const{endo:Lt}=pt;if(Lt){const{k1neg:Mt,k1:$t,k2neg:Ut,k2:Gt}=Lt.splitScalar(At);let{p:Ht,f:tn}=this.wNAF($t),{p:Jt,f:Kt}=this.wNAF(Gt);Ht=bt.constTimeNegate(Mt,Ht),Jt=bt.constTimeNegate(Ut,Jt),Jt=new Nt(xt.mul(Jt.px,Lt.beta),Jt.py,Jt.pz),Tt=Ht.add(Jt),jt=tn.add(Kt)}else{const{p:Mt,f:$t}=this.wNAF(At);Tt=Mt,jt=$t}return Nt.normalizeZ([Tt,jt])[0]}multiplyAndAddUnsafe(vt,At,Tt){const jt=Nt.BASE,Lt=($t,Ut)=>Ut===ot||Ut===it||!$t.equals(jt)?$t.multiplyUnsafe(Ut):$t.multiply(Ut),Mt=Lt(this,At).add(Lt(vt,Tt));return Mt.is0()?void 0:Mt}toAffine(vt){const{px:At,py:Tt,pz:jt}=this,Lt=this.is0();vt==null&&(vt=Lt?xt.ONE:xt.inv(jt));const Mt=xt.mul(At,vt),$t=xt.mul(Tt,vt),Ut=xt.mul(jt,vt);if(Lt)return{x:xt.ZERO,y:xt.ZERO};if(!xt.eql(Ut,xt.ONE))throw new Error("invZ was invalid");return{x:Mt,y:$t}}isTorsionFree(){const{h:vt,isTorsionFree:At}=pt;if(vt===it)return!0;if(At)return At(Nt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:vt,clearCofactor:At}=pt;return vt===it?this:At?At(Nt,this):this.multiplyUnsafe(pt.h)}toRawBytes(vt=!0){return this.assertValidity(),Ct(Nt,this,vt)}toHex(vt=!0){return $.bytesToHex(this.toRawBytes(vt))}}Nt.BASE=new Nt(pt.Gx,pt.Gy,xt.ONE),Nt.ZERO=new Nt(xt.ZERO,xt.ONE,xt.ZERO);const ht=pt.nBitLength,bt=(0,et.wNAF)(Nt,pt.endo?Math.ceil(ht/2):ht);return{CURVE:pt,ProjectivePoint:Nt,normPrivateKeyToScalar:Ot,weierstrassEquation:wt,isWithinCurveOrder:kt}}s.weierstrassPoints=lt;function dt(mt){const pt=(0,et.validateBasic)(mt);return $.validateObject(pt,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...pt})}function ft(mt){const pt=dt(mt),{Fp:xt,n:Ct}=pt,Dt=xt.BYTES+1,wt=2*xt.BYTES+1;function kt(Qt){return ot$.bytesToHex($.numberToBytesBE(Qt,pt.nByteLength));function St(Qt){const Zt=Ct>>it;return Qt>Zt}function vt(Qt){return St(Qt)?zt(-Qt):Qt}const At=(Qt,Zt,Xt)=>$.bytesToNumberBE(Qt.slice(Zt,Xt));class Tt{constructor(Zt,Xt,sn){this.r=Zt,this.s=Xt,this.recovery=sn,this.assertValidity()}static fromCompact(Zt){const Xt=pt.nByteLength;return Zt=(0,_e.ensureBytes)("compactSignature",Zt,Xt*2),new Tt(At(Zt,0,Xt),At(Zt,Xt,2*Xt))}static fromDER(Zt){const{r:Xt,s:sn}=s.DER.toSig((0,_e.ensureBytes)("DER",Zt));return new Tt(Xt,sn)}assertValidity(){if(!ht(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!ht(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(Zt){return new Tt(this.r,this.s,Zt)}recoverPublicKey(Zt){const{r:Xt,s:sn,recovery:nn}=this,rn=Gt((0,_e.ensureBytes)("msgHash",Zt));if(nn==null||![0,1,2,3].includes(nn))throw new Error("recovery id invalid");const gn=nn===2||nn===3?Xt+pt.n:Xt;if(gn>=xt.ORDER)throw new Error("recovery id 2 or 3 invalid");const on=nn&1?"03":"02",an=Ft.fromHex(on+bt(gn)),hn=Ot(gn),fn=zt(-rn*hn),ln=zt(sn*hn),yn=Ft.BASE.multiplyAndAddUnsafe(an,fn,ln);if(!yn)throw new Error("point at infinify");return yn.assertValidity(),yn}hasHighS(){return St(this.s)}normalizeS(){return this.hasHighS()?new Tt(this.r,zt(-this.s),this.recovery):this}toDERRawBytes(){return $.hexToBytes(this.toDERHex())}toDERHex(){return s.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return $.hexToBytes(this.toCompactHex())}toCompactHex(){return bt(this.r)+bt(this.s)}}const jt={isValidPrivateKey(Qt){try{return Pt(Qt),!0}catch{return!1}},normPrivateKeyToScalar:Pt,randomPrivateKey:()=>{const Qt=j.getMinHashLength(pt.n);return j.mapHashToField(pt.randomBytes(Qt),pt.n)},precompute(Qt=8,Zt=Ft.BASE){return Zt._setWindowSize(Qt),Zt.multiply(BigInt(3)),Zt}};function Lt(Qt,Zt=!0){return Ft.fromPrivateKey(Qt).toRawBytes(Zt)}function Mt(Qt){const Zt=$.isBytes(Qt),Xt=typeof Qt=="string",sn=(Zt||Xt)&&Qt.length;return Zt?sn===Dt||sn===wt:Xt?sn===2*Dt||sn===2*wt:Qt instanceof Ft}function $t(Qt,Zt,Xt=!0){if(Mt(Qt))throw new Error("first arg must be private key");if(!Mt(Zt))throw new Error("second arg must be public key");return Ft.fromHex(Zt).multiply(Pt(Qt)).toRawBytes(Xt)}const Ut=pt.bits2int||function(Qt){const Zt=$.bytesToNumberBE(Qt),Xt=Qt.length*8-pt.nBitLength;return Xt>0?Zt>>BigInt(Xt):Zt},Gt=pt.bits2int_modN||function(Qt){return zt(Ut(Qt))},Ht=$.bitMask(pt.nBitLength);function tn(Qt){if(typeof Qt!="bigint")throw new Error("bigint expected");if(!(ot<=Qt&&QtRt in Xt))throw new Error("sign() legacy options not supported");const{hash:sn,randomBytes:nn}=pt;let{lowS:rn,prehash:gn,extraEntropy:on}=Xt;rn==null&&(rn=!0),Qt=(0,_e.ensureBytes)("msgHash",Qt),gn&&(Qt=(0,_e.ensureBytes)("prehashed msgHash",sn(Qt)));const an=Gt(Qt),hn=Pt(Zt),fn=[tn(hn),tn(an)];if(on!=null&&on!==!1){const Rt=on===!0?nn(xt.BYTES):on;fn.push((0,_e.ensureBytes)("extraEntropy",Rt))}const ln=$.concatBytes(...fn),yn=an;function mn(Rt){const Et=Ut(Rt);if(!ht(Et))return;const It=Ot(Et),Bt=Ft.BASE.multiply(Et).toAffine(),Wt=zt(Bt.x);if(Wt===ot)return;const Vt=zt(It*zt(yn+Wt*hn));if(Vt===ot)return;let Yt=(Bt.x===Wt?0:2)|Number(Bt.y&it),cn=Vt;return rn&&St(Vt)&&(cn=vt(Vt),Yt^=1),new Tt(Wt,cn,Yt)}return{seed:ln,k2sig:mn}}const Kt={lowS:pt.lowS,prehash:!1},dn={lowS:pt.lowS,prehash:!1};function en(Qt,Zt,Xt=Kt){const{seed:sn,k2sig:nn}=Jt(Qt,Zt,Xt),rn=pt;return $.createHmacDrbg(rn.hash.outputLen,rn.nByteLength,rn.hmac)(sn,nn)}Ft.BASE._setWindowSize(8);function qt(Qt,Zt,Xt,sn=dn){var Bt;const nn=Qt;if(Zt=(0,_e.ensureBytes)("msgHash",Zt),Xt=(0,_e.ensureBytes)("publicKey",Xt),"strict"in sn)throw new Error("options.strict was renamed to lowS");const{lowS:rn,prehash:gn}=sn;let on,an;try{if(typeof nn=="string"||$.isBytes(nn))try{on=Tt.fromDER(nn)}catch(Wt){if(!(Wt instanceof s.DER.Err))throw Wt;on=Tt.fromCompact(nn)}else if(typeof nn=="object"&&typeof nn.r=="bigint"&&typeof nn.s=="bigint"){const{r:Wt,s:Vt}=nn;on=new Tt(Wt,Vt)}else throw new Error("PARSE");an=Ft.fromHex(Xt)}catch(Wt){if(Wt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(rn&&on.hasHighS())return!1;gn&&(Zt=pt.hash(Zt));const{r:hn,s:fn}=on,ln=Gt(Zt),yn=Ot(fn),mn=zt(ln*yn),Rt=zt(hn*yn),Et=(Bt=Ft.BASE.multiplyAndAddUnsafe(an,mn,Rt))==null?void 0:Bt.toAffine();return Et?zt(Et.x)===hn:!1}return{CURVE:pt,getPublicKey:Lt,getSharedSecret:$t,sign:en,verify:qt,ProjectivePoint:Ft,Signature:Tt,utils:jt}}s.weierstrass=ft;function gt(mt,pt){const xt=mt.ORDER;let Ct=ot;for(let St=xt-it;St%st===ot;St/=st)Ct+=it;const Dt=Ct,wt=st<{let At=Nt,Tt=mt.pow(vt,Ft),jt=mt.sqr(Tt);jt=mt.mul(jt,vt);let Lt=mt.mul(St,jt);Lt=mt.pow(Lt,Ot),Lt=mt.mul(Lt,Tt),Tt=mt.mul(Lt,vt),jt=mt.mul(Lt,St);let Mt=mt.mul(jt,Tt);Lt=mt.pow(Mt,Pt);let $t=mt.eql(Lt,mt.ONE);Tt=mt.mul(jt,ht),Lt=mt.mul(Mt,At),jt=mt.cmov(Tt,jt,$t),Mt=mt.cmov(Lt,Mt,$t);for(let Ut=Dt;Ut>it;Ut--){let Gt=Ut-st;Gt=st<{let jt=mt.sqr(Tt);const Lt=mt.mul(At,Tt);jt=mt.mul(jt,Lt);let Mt=mt.pow(jt,St);Mt=mt.mul(Mt,Lt);const $t=mt.mul(Mt,vt),Ut=mt.mul(mt.sqr(Mt),Tt),Gt=mt.eql(Ut,At);let Ht=mt.cmov($t,Mt,Gt);return{isValid:Gt,value:Ht}}}return bt}s.SWUFpSqrtRatio=gt;function yt(mt,pt){if(j.validateField(mt),!mt.isValid(pt.A)||!mt.isValid(pt.B)||!mt.isValid(pt.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const xt=gt(mt,pt.Z);if(!mt.isOdd)throw new Error("Fp.isOdd is not implemented!");return Ct=>{let Dt,wt,kt,zt,Ot,Ft,Pt,Nt;Dt=mt.sqr(Ct),Dt=mt.mul(Dt,pt.Z),wt=mt.sqr(Dt),wt=mt.add(wt,Dt),kt=mt.add(wt,mt.ONE),kt=mt.mul(kt,pt.B),zt=mt.cmov(pt.Z,mt.neg(wt),!mt.eql(wt,mt.ZERO)),zt=mt.mul(zt,pt.A),wt=mt.sqr(kt),Ft=mt.sqr(zt),Ot=mt.mul(Ft,pt.A),wt=mt.add(wt,Ot),wt=mt.mul(wt,kt),Ft=mt.mul(Ft,zt),Ot=mt.mul(Ft,pt.B),wt=mt.add(wt,Ot),Pt=mt.mul(Dt,kt);const{isValid:ht,value:bt}=xt(wt,Ft);Nt=mt.mul(Dt,Ct),Nt=mt.mul(Nt,bt),Pt=mt.cmov(Pt,kt,ht),Nt=mt.cmov(Nt,bt,ht);const St=mt.isOdd(Ct)===mt.isOdd(Nt);return Nt=mt.cmov(mt.neg(Nt),Nt,St),Pt=mt.div(Pt,zt),{x:Pt,y:Nt}}}s.mapToCurveSimpleSWU=yt})(weierstrass);var hashToCurve={};Object.defineProperty(hashToCurve,"__esModule",{value:!0});hashToCurve.createHasher=hashToCurve.isogenyMap=hashToCurve.hash_to_field=hashToCurve.expand_message_xof=hashToCurve.expand_message_xmd=void 0;const modular_js_1$2=modular,utils_js_1$5=utils$1,os2ip=utils_js_1$5.bytesToNumberBE;function i2osp(s,j){if(s<0||s>=1<<8*j)throw new Error(`bad I2OSP call: value=${s} length=${j}`);const $=Array.from({length:j}).fill(0);for(let _e=j-1;_e>=0;_e--)$[_e]=s&255,s>>>=8;return new Uint8Array($)}function strxor(s,j){const $=new Uint8Array(s.length);for(let _e=0;_e255&&(j=_e((0,utils_js_1$5.concatBytes)((0,utils_js_1$5.utf8ToBytes)("H2C-OVERSIZE-DST-"),j)));const{outputLen:et,blockLen:tt}=_e,nt=Math.ceil($/et);if(nt>255)throw new Error("Invalid xmd length");const rt=(0,utils_js_1$5.concatBytes)(j,i2osp(j.length,1)),ot=i2osp(0,tt),it=i2osp($,2),st=new Array(nt),at=_e((0,utils_js_1$5.concatBytes)(ot,s,it,i2osp(0,1),rt));st[0]=_e((0,utils_js_1$5.concatBytes)(at,i2osp(1,1),rt));for(let lt=1;lt<=nt;lt++){const dt=[strxor(at,st[lt-1]),i2osp(lt+1,1),rt];st[lt]=_e((0,utils_js_1$5.concatBytes)(...dt))}return(0,utils_js_1$5.concatBytes)(...st).slice(0,$)}hashToCurve.expand_message_xmd=expand_message_xmd;function expand_message_xof(s,j,$,_e,et){if((0,utils_js_1$5.abytes)(s),(0,utils_js_1$5.abytes)(j),anum($),j.length>255){const tt=Math.ceil(2*_e/8);j=et.create({dkLen:tt}).update((0,utils_js_1$5.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(j).digest()}if($>65535||j.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return et.create({dkLen:$}).update(s).update(i2osp($,2)).update(j).update(i2osp(j.length,1)).digest()}hashToCurve.expand_message_xof=expand_message_xof;function hash_to_field(s,j,$){(0,utils_js_1$5.validateObject)($,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:_e,k:et,m:tt,hash:nt,expand:rt,DST:ot}=$;(0,utils_js_1$5.abytes)(s),anum(j);const it=typeof ot=="string"?(0,utils_js_1$5.utf8ToBytes)(ot):ot,st=_e.toString(2).length,at=Math.ceil((st+et)/8),ct=j*tt*at;let lt;if(rt==="xmd")lt=expand_message_xmd(s,it,ct,nt);else if(rt==="xof")lt=expand_message_xof(s,it,ct,et,nt);else if(rt==="_internal_pass")lt=s;else throw new Error('expand must be "xmd" or "xof"');const dt=new Array(j);for(let ft=0;ftArray.from(_e).reverse());return(_e,et)=>{const[tt,nt,rt,ot]=$.map(it=>it.reduce((st,at)=>s.add(s.mul(st,_e),at)));return _e=s.div(tt,nt),et=s.mul(et,s.div(rt,ot)),{x:_e,y:et}}}hashToCurve.isogenyMap=isogenyMap;function createHasher(s,j,$){if(typeof j!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(_e,et){const tt=hash_to_field(_e,2,{...$,DST:$.DST,...et}),nt=s.fromAffine(j(tt[0])),rt=s.fromAffine(j(tt[1])),ot=nt.add(rt).clearCofactor();return ot.assertValidity(),ot},encodeToCurve(_e,et){const tt=hash_to_field(_e,1,{...$,DST:$.encodeDST,...et}),nt=s.fromAffine(j(tt[0])).clearCofactor();return nt.assertValidity(),nt}}}hashToCurve.createHasher=createHasher;var _shortw_utils={};const require$$0$2=getAugmentedNamespace(hmac$1);Object.defineProperty(_shortw_utils,"__esModule",{value:!0});_shortw_utils.createCurve=_shortw_utils.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const hmac_1=require$$0$2,utils_1$1=require$$1,weierstrass_js_1=weierstrass;function getHash(s){return{hash:s,hmac:(j,...$)=>(0,hmac_1.hmac)(s,j,(0,utils_1$1.concatBytes)(...$)),randomBytes:utils_1$1.randomBytes}}_shortw_utils.getHash=getHash;function createCurve(s,j){const $=_e=>(0,weierstrass_js_1.weierstrass)({...s,...getHash(_e)});return Object.freeze({...$(j),create:$})}_shortw_utils.createCurve=createCurve;(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.encodeToCurve=s.hashToCurve=s.schnorr=s.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const j=require$$0$3,$=require$$1,_e=modular,et=weierstrass,tt=utils$1,nt=hashToCurve,rt=_shortw_utils,ot=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),it=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),st=BigInt(1),at=BigInt(2),ct=(Tt,jt)=>(Tt+jt/at)/jt;function lt(Tt){const jt=ot,Lt=BigInt(3),Mt=BigInt(6),$t=BigInt(11),Ut=BigInt(22),Gt=BigInt(23),Ht=BigInt(44),tn=BigInt(88),Jt=Tt*Tt*Tt%jt,Kt=Jt*Jt*Tt%jt,dn=(0,_e.pow2)(Kt,Lt,jt)*Kt%jt,en=(0,_e.pow2)(dn,Lt,jt)*Kt%jt,qt=(0,_e.pow2)(en,at,jt)*Jt%jt,Qt=(0,_e.pow2)(qt,$t,jt)*qt%jt,Zt=(0,_e.pow2)(Qt,Ut,jt)*Qt%jt,Xt=(0,_e.pow2)(Zt,Ht,jt)*Zt%jt,sn=(0,_e.pow2)(Xt,tn,jt)*Xt%jt,nn=(0,_e.pow2)(sn,Ht,jt)*Zt%jt,rn=(0,_e.pow2)(nn,Lt,jt)*Kt%jt,gn=(0,_e.pow2)(rn,Gt,jt)*Qt%jt,on=(0,_e.pow2)(gn,Mt,jt)*Jt%jt,an=(0,_e.pow2)(on,at,jt);if(!dt.eql(dt.sqr(an),Tt))throw new Error("Cannot find square root");return an}const dt=(0,_e.Field)(ot,void 0,void 0,{sqrt:lt});s.secp256k1=(0,rt.createCurve)({a:BigInt(0),b:BigInt(7),Fp:dt,n:it,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:Tt=>{const jt=it,Lt=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),Mt=-st*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),$t=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Ut=Lt,Gt=BigInt("0x100000000000000000000000000000000"),Ht=ct(Ut*Tt,jt),tn=ct(-Mt*Tt,jt);let Jt=(0,_e.mod)(Tt-Ht*Lt-tn*$t,jt),Kt=(0,_e.mod)(-Ht*Mt-tn*Ut,jt);const dn=Jt>Gt,en=Kt>Gt;if(dn&&(Jt=jt-Jt),en&&(Kt=jt-Kt),Jt>Gt||Kt>Gt)throw new Error("splitScalar: Endomorphism failed, k="+Tt);return{k1neg:dn,k1:Jt,k2neg:en,k2:Kt}}}},j.sha256);const ft=BigInt(0),gt=Tt=>typeof Tt=="bigint"&&fttypeof Tt=="bigint"&&ft$t.charCodeAt(0)));Lt=(0,tt.concatBytes)(Mt,Mt),mt[Tt]=Lt}return(0,j.sha256)((0,tt.concatBytes)(Lt,...jt))}const xt=Tt=>Tt.toRawBytes(!0).slice(1),Ct=Tt=>(0,tt.numberToBytesBE)(Tt,32),Dt=Tt=>(0,_e.mod)(Tt,ot),wt=Tt=>(0,_e.mod)(Tt,it),kt=s.secp256k1.ProjectivePoint,zt=(Tt,jt,Lt)=>kt.BASE.multiplyAndAddUnsafe(Tt,jt,Lt);function Ot(Tt){let jt=s.secp256k1.utils.normPrivateKeyToScalar(Tt),Lt=kt.fromPrivateKey(jt);return{scalar:Lt.hasEvenY()?jt:wt(-jt),bytes:xt(Lt)}}function Ft(Tt){if(!gt(Tt))throw new Error("bad x: need 0 < x < p");const jt=Dt(Tt*Tt),Lt=Dt(jt*Tt+BigInt(7));let Mt=lt(Lt);Mt%at!==ft&&(Mt=Dt(-Mt));const $t=new kt(Tt,Mt,st);return $t.assertValidity(),$t}function Pt(...Tt){return wt((0,tt.bytesToNumberBE)(pt("BIP0340/challenge",...Tt)))}function Nt(Tt){return Ot(Tt).bytes}function ht(Tt,jt,Lt=(0,$.randomBytes)(32)){const Mt=(0,tt.ensureBytes)("message",Tt),{bytes:$t,scalar:Ut}=Ot(jt),Gt=(0,tt.ensureBytes)("auxRand",Lt,32),Ht=Ct(Ut^(0,tt.bytesToNumberBE)(pt("BIP0340/aux",Gt))),tn=pt("BIP0340/nonce",Ht,$t,Mt),Jt=wt((0,tt.bytesToNumberBE)(tn));if(Jt===ft)throw new Error("sign failed: k is zero");const{bytes:Kt,scalar:dn}=Ot(Jt),en=Pt(Kt,$t,Mt),qt=new Uint8Array(64);if(qt.set(Kt,0),qt.set(Ct(wt(dn+en*Ut)),32),!bt(qt,Mt,$t))throw new Error("sign: Invalid signature produced");return qt}function bt(Tt,jt,Lt){const Mt=(0,tt.ensureBytes)("signature",Tt,64),$t=(0,tt.ensureBytes)("message",jt),Ut=(0,tt.ensureBytes)("publicKey",Lt,32);try{const Gt=Ft((0,tt.bytesToNumberBE)(Ut)),Ht=(0,tt.bytesToNumberBE)(Mt.subarray(0,32));if(!gt(Ht))return!1;const tn=(0,tt.bytesToNumberBE)(Mt.subarray(32,64));if(!yt(tn))return!1;const Jt=Pt(Ct(Ht),xt(Gt),$t),Kt=zt(Gt,tn,wt(-Jt));return!(!Kt||!Kt.hasEvenY()||Kt.toAffine().x!==Ht)}catch{return!1}}s.schnorr={getPublicKey:Nt,sign:ht,verify:bt,utils:{randomPrivateKey:s.secp256k1.utils.randomPrivateKey,lift_x:Ft,pointToBytes:xt,numberToBytesBE:tt.numberToBytesBE,bytesToNumberBE:tt.bytesToNumberBE,taggedHash:pt,mod:_e.mod}};const St=(0,nt.isogenyMap)(dt,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(Tt=>Tt.map(jt=>BigInt(jt)))),vt=(0,et.mapToCurveSimpleSWU)(dt,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:dt.create(BigInt("-11"))}),At=(0,nt.createHasher)(s.secp256k1.ProjectivePoint,Tt=>{const{x:jt,y:Lt}=vt(dt.create(Tt[0]));return St(jt,Lt)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:dt.ORDER,m:1,k:128,expand:"xmd",hash:j.sha256});s.hashToCurve=At.hashToCurve,s.encodeToCurve=At.encodeToCurve})(secp256k1);var ed25519={},edwards={};Object.defineProperty(edwards,"__esModule",{value:!0});edwards.twistedEdwards=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const modular_js_1$1=modular,ut=utils$1,utils_js_1$4=utils$1,curve_js_1=curve,_0n$1=BigInt(0),_1n$1=BigInt(1),_2n=BigInt(2),_8n=BigInt(8),VERIFY_DEFAULT={zip215:!0};function validateOpts$1(s){const j=(0,curve_js_1.validateBasic)(s);return ut.validateObject(s,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...j})}function twistedEdwards(s){const j=validateOpts$1(s),{Fp:$,n:_e,prehash:et,hash:tt,randomBytes:nt,nByteLength:rt,h:ot}=j,it=_2n<{try{return{isValid:!0,value:$.sqrt(At*$.inv(Tt))}}catch{return{isValid:!1,value:_0n$1}}}),ct=j.adjustScalarBytes||(At=>At),lt=j.domain||((At,Tt,jt)=>{if(Tt.length||jt)throw new Error("Contexts/pre-hash are not supported");return At}),dt=At=>typeof At=="bigint"&&_0n$1dt(At)&&dt(Tt)&&AtAt===_0n$1||ft(At,it);function yt(At,Tt){if(ft(At,Tt))return At;throw new Error(`Expected valid scalar < ${Tt}, got ${typeof At} ${At}`)}function mt(At){return At===_0n$1?At:yt(At,_e)}const pt=new Map;function xt(At){if(!(At instanceof Ct))throw new Error("ExtendedPoint expected")}class Ct{constructor(Tt,jt,Lt,Mt){if(this.ex=Tt,this.ey=jt,this.ez=Lt,this.et=Mt,!gt(Tt))throw new Error("x required");if(!gt(jt))throw new Error("y required");if(!gt(Lt))throw new Error("z required");if(!gt(Mt))throw new Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(Tt){if(Tt instanceof Ct)throw new Error("extended point not allowed");const{x:jt,y:Lt}=Tt||{};if(!gt(jt)||!gt(Lt))throw new Error("invalid affine point");return new Ct(jt,Lt,_1n$1,st(jt*Lt))}static normalizeZ(Tt){const jt=$.invertBatch(Tt.map(Lt=>Lt.ez));return Tt.map((Lt,Mt)=>Lt.toAffine(jt[Mt])).map(Ct.fromAffine)}_setWindowSize(Tt){this._WINDOW_SIZE=Tt,pt.delete(this)}assertValidity(){const{a:Tt,d:jt}=j;if(this.is0())throw new Error("bad point: ZERO");const{ex:Lt,ey:Mt,ez:$t,et:Ut}=this,Gt=st(Lt*Lt),Ht=st(Mt*Mt),tn=st($t*$t),Jt=st(tn*tn),Kt=st(Gt*Tt),dn=st(tn*st(Kt+Ht)),en=st(Jt+st(jt*st(Gt*Ht)));if(dn!==en)throw new Error("bad point: equation left != right (1)");const qt=st(Lt*Mt),Qt=st($t*Ut);if(qt!==Qt)throw new Error("bad point: equation left != right (2)")}equals(Tt){xt(Tt);const{ex:jt,ey:Lt,ez:Mt}=this,{ex:$t,ey:Ut,ez:Gt}=Tt,Ht=st(jt*Gt),tn=st($t*Mt),Jt=st(Lt*Gt),Kt=st(Ut*Mt);return Ht===tn&&Jt===Kt}is0(){return this.equals(Ct.ZERO)}negate(){return new Ct(st(-this.ex),this.ey,this.ez,st(-this.et))}double(){const{a:Tt}=j,{ex:jt,ey:Lt,ez:Mt}=this,$t=st(jt*jt),Ut=st(Lt*Lt),Gt=st(_2n*st(Mt*Mt)),Ht=st(Tt*$t),tn=jt+Lt,Jt=st(st(tn*tn)-$t-Ut),Kt=Ht+Ut,dn=Kt-Gt,en=Ht-Ut,qt=st(Jt*dn),Qt=st(Kt*en),Zt=st(Jt*en),Xt=st(dn*Kt);return new Ct(qt,Qt,Xt,Zt)}add(Tt){xt(Tt);const{a:jt,d:Lt}=j,{ex:Mt,ey:$t,ez:Ut,et:Gt}=this,{ex:Ht,ey:tn,ez:Jt,et:Kt}=Tt;if(jt===BigInt(-1)){const hn=st(($t-Mt)*(tn+Ht)),fn=st(($t+Mt)*(tn-Ht)),ln=st(fn-hn);if(ln===_0n$1)return this.double();const yn=st(Ut*_2n*Kt),mn=st(Gt*_2n*Jt),Rt=mn+yn,Et=fn+hn,It=mn-yn,Bt=st(Rt*ln),Wt=st(Et*It),Vt=st(Rt*It),Yt=st(ln*Et);return new Ct(Bt,Wt,Yt,Vt)}const dn=st(Mt*Ht),en=st($t*tn),qt=st(Gt*Lt*Kt),Qt=st(Ut*Jt),Zt=st((Mt+$t)*(Ht+tn)-dn-en),Xt=Qt-qt,sn=Qt+qt,nn=st(en-jt*dn),rn=st(Zt*Xt),gn=st(sn*nn),on=st(Zt*nn),an=st(Xt*sn);return new Ct(rn,gn,an,on)}subtract(Tt){return this.add(Tt.negate())}wNAF(Tt){return kt.wNAFCached(this,pt,Tt,Ct.normalizeZ)}multiply(Tt){const{p:jt,f:Lt}=this.wNAF(yt(Tt,_e));return Ct.normalizeZ([jt,Lt])[0]}multiplyUnsafe(Tt){let jt=mt(Tt);return jt===_0n$1?wt:this.equals(wt)||jt===_1n$1?this:this.equals(Dt)?this.wNAF(jt).p:kt.unsafeLadder(this,jt)}isSmallOrder(){return this.multiplyUnsafe(ot).is0()}isTorsionFree(){return kt.unsafeLadder(this,_e).is0()}toAffine(Tt){const{ex:jt,ey:Lt,ez:Mt}=this,$t=this.is0();Tt==null&&(Tt=$t?_8n:$.inv(Mt));const Ut=st(jt*Tt),Gt=st(Lt*Tt),Ht=st(Mt*Tt);if($t)return{x:_0n$1,y:_1n$1};if(Ht!==_1n$1)throw new Error("invZ was invalid");return{x:Ut,y:Gt}}clearCofactor(){const{h:Tt}=j;return Tt===_1n$1?this:this.multiplyUnsafe(Tt)}static fromHex(Tt,jt=!1){const{d:Lt,a:Mt}=j,$t=$.BYTES;Tt=(0,utils_js_1$4.ensureBytes)("pointHex",Tt,$t);const Ut=Tt.slice(),Gt=Tt[$t-1];Ut[$t-1]=Gt&-129;const Ht=ut.bytesToNumberLE(Ut);Ht===_0n$1||(jt?yt(Ht,it):yt(Ht,$.ORDER));const tn=st(Ht*Ht),Jt=st(tn-_1n$1),Kt=st(Lt*tn-Mt);let{isValid:dn,value:en}=at(Jt,Kt);if(!dn)throw new Error("Point.fromHex: invalid y coordinate");const qt=(en&_1n$1)===_1n$1,Qt=(Gt&128)!==0;if(!jt&&en===_0n$1&&Qt)throw new Error("Point.fromHex: x=0 and x_0=1");return Qt!==qt&&(en=st(-en)),Ct.fromAffine({x:en,y:Ht})}static fromPrivateKey(Tt){return Ft(Tt).point}toRawBytes(){const{x:Tt,y:jt}=this.toAffine(),Lt=ut.numberToBytesLE(jt,$.BYTES);return Lt[Lt.length-1]|=Tt&_1n$1?128:0,Lt}toHex(){return ut.bytesToHex(this.toRawBytes())}}Ct.BASE=new Ct(j.Gx,j.Gy,_1n$1,st(j.Gx*j.Gy)),Ct.ZERO=new Ct(_0n$1,_1n$1,_1n$1,_0n$1);const{BASE:Dt,ZERO:wt}=Ct,kt=(0,curve_js_1.wNAF)(Ct,rt*8);function zt(At){return(0,modular_js_1$1.mod)(At,_e)}function Ot(At){return zt(ut.bytesToNumberLE(At))}function Ft(At){const Tt=rt;At=(0,utils_js_1$4.ensureBytes)("private key",At,Tt);const jt=(0,utils_js_1$4.ensureBytes)("hashed private key",tt(At),2*Tt),Lt=ct(jt.slice(0,Tt)),Mt=jt.slice(Tt,2*Tt),$t=Ot(Lt),Ut=Dt.multiply($t),Gt=Ut.toRawBytes();return{head:Lt,prefix:Mt,scalar:$t,point:Ut,pointBytes:Gt}}function Pt(At){return Ft(At).pointBytes}function Nt(At=new Uint8Array,...Tt){const jt=ut.concatBytes(...Tt);return Ot(tt(lt(jt,(0,utils_js_1$4.ensureBytes)("context",At),!!et)))}function ht(At,Tt,jt={}){At=(0,utils_js_1$4.ensureBytes)("message",At),et&&(At=et(At));const{prefix:Lt,scalar:Mt,pointBytes:$t}=Ft(Tt),Ut=Nt(jt.context,Lt,At),Gt=Dt.multiply(Ut).toRawBytes(),Ht=Nt(jt.context,Gt,$t,At),tn=zt(Ut+Ht*Mt);mt(tn);const Jt=ut.concatBytes(Gt,ut.numberToBytesLE(tn,$.BYTES));return(0,utils_js_1$4.ensureBytes)("result",Jt,rt*2)}const bt=VERIFY_DEFAULT;function St(At,Tt,jt,Lt=bt){const{context:Mt,zip215:$t}=Lt,Ut=$.BYTES;At=(0,utils_js_1$4.ensureBytes)("signature",At,2*Ut),Tt=(0,utils_js_1$4.ensureBytes)("message",Tt),et&&(Tt=et(Tt));const Gt=ut.bytesToNumberLE(At.slice(Ut,2*Ut));let Ht,tn,Jt;try{Ht=Ct.fromHex(jt,$t),tn=Ct.fromHex(At.slice(0,Ut),$t),Jt=Dt.multiplyUnsafe(Gt)}catch{return!1}if(!$t&&Ht.isSmallOrder())return!1;const Kt=Nt(Mt,tn.toRawBytes(),Ht.toRawBytes(),Tt);return tn.add(Ht.multiplyUnsafe(Kt)).subtract(Jt).clearCofactor().equals(Ct.ZERO)}return Dt._setWindowSize(8),{CURVE:j,getPublicKey:Pt,sign:ht,verify:St,ExtendedPoint:Ct,utils:{getExtendedPublicKey:Ft,randomPrivateKey:()=>nt($.BYTES),precompute(At=8,Tt=Ct.BASE){return Tt._setWindowSize(At),Tt.multiply(BigInt(3)),Tt}}}}edwards.twistedEdwards=twistedEdwards;var montgomery$1={};Object.defineProperty(montgomery$1,"__esModule",{value:!0});montgomery$1.montgomery=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const modular_js_1=modular,utils_js_1$3=utils$1,_0n=BigInt(0),_1n=BigInt(1);function validateOpts(s){return(0,utils_js_1$3.validateObject)(s,{a:"bigint"},{montgomeryBits:"isSafeInteger",nByteLength:"isSafeInteger",adjustScalarBytes:"function",domain:"function",powPminus2:"function",Gu:"bigint"}),Object.freeze({...s})}function montgomery(s){const j=validateOpts(s),{P:$}=j,_e=pt=>(0,modular_js_1.mod)(pt,$),et=j.montgomeryBits,tt=Math.ceil(et/8),nt=j.nByteLength,rt=j.adjustScalarBytes||(pt=>pt),ot=j.powPminus2||(pt=>(0,modular_js_1.pow)(pt,$-BigInt(2),$));function it(pt,xt,Ct){const Dt=_e(pt*(xt-Ct));return xt=_e(xt-Dt),Ct=_e(Ct+Dt),[xt,Ct]}function st(pt){if(typeof pt=="bigint"&&_0n<=pt&&pt<$)return pt;throw new Error("Expected valid scalar 0 < scalar < CURVE.P")}const at=(j.a-BigInt(2))/BigInt(4);function ct(pt,xt){const Ct=st(pt),Dt=st(xt),wt=Ct;let kt=_1n,zt=_0n,Ot=Ct,Ft=_1n,Pt=_0n,Nt;for(let bt=BigInt(et-1);bt>=_0n;bt--){const St=Dt>>bt&_1n;Pt^=St,Nt=it(Pt,kt,Ot),kt=Nt[0],Ot=Nt[1],Nt=it(Pt,zt,Ft),zt=Nt[0],Ft=Nt[1],Pt=St;const vt=kt+zt,At=_e(vt*vt),Tt=kt-zt,jt=_e(Tt*Tt),Lt=At-jt,Mt=Ot+Ft,$t=Ot-Ft,Ut=_e($t*vt),Gt=_e(Mt*Tt),Ht=Ut+Gt,tn=Ut-Gt;Ot=_e(Ht*Ht),Ft=_e(wt*_e(tn*tn)),kt=_e(At*jt),zt=_e(Lt*(At+_e(at*Lt)))}Nt=it(Pt,kt,Ot),kt=Nt[0],Ot=Nt[1],Nt=it(Pt,zt,Ft),zt=Nt[0],Ft=Nt[1];const ht=ot(zt);return _e(kt*ht)}function lt(pt){return(0,utils_js_1$3.numberToBytesLE)(_e(pt),tt)}function dt(pt){const xt=(0,utils_js_1$3.ensureBytes)("u coordinate",pt,tt);return nt===32&&(xt[31]&=127),(0,utils_js_1$3.bytesToNumberLE)(xt)}function ft(pt){const xt=(0,utils_js_1$3.ensureBytes)("scalar",pt),Ct=xt.length;if(Ct!==tt&&Ct!==nt)throw new Error(`Expected ${tt} or ${nt} bytes, got ${Ct}`);return(0,utils_js_1$3.bytesToNumberLE)(rt(xt))}function gt(pt,xt){const Ct=dt(xt),Dt=ft(pt),wt=ct(Ct,Dt);if(wt===_0n)throw new Error("Invalid private or public key received");return lt(wt)}const yt=lt(j.Gu);function mt(pt){return gt(pt,yt)}return{scalarMult:gt,scalarMultBase:mt,getSharedSecret:(pt,xt)=>gt(pt,xt),getPublicKey:pt=>mt(pt),utils:{randomPrivateKey:()=>j.randomBytes(j.nByteLength)},GuBytes:yt}}montgomery$1.montgomery=montgomery;(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.hash_to_ristretto255=s.hashToRistretto255=s.RistrettoPoint=s.encodeToCurve=s.hashToCurve=s.edwardsToMontgomeryPriv=s.edwardsToMontgomery=s.edwardsToMontgomeryPub=s.x25519=s.ed25519ph=s.ed25519ctx=s.ed25519=s.ED25519_TORSION_SUBGROUP=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const j=sha512,$=require$$1,_e=edwards,et=montgomery$1,tt=modular,nt=utils$1,rt=hashToCurve,ot=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),it=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),st=BigInt(0),at=BigInt(1),ct=BigInt(2),lt=BigInt(5),dt=BigInt(10),ft=BigInt(20),gt=BigInt(40),yt=BigInt(80);function mt(en){const qt=ot,Zt=en*en%qt*en%qt,Xt=(0,tt.pow2)(Zt,ct,qt)*Zt%qt,sn=(0,tt.pow2)(Xt,at,qt)*en%qt,nn=(0,tt.pow2)(sn,lt,qt)*sn%qt,rn=(0,tt.pow2)(nn,dt,qt)*nn%qt,gn=(0,tt.pow2)(rn,ft,qt)*rn%qt,on=(0,tt.pow2)(gn,gt,qt)*gn%qt,an=(0,tt.pow2)(on,yt,qt)*on%qt,hn=(0,tt.pow2)(an,yt,qt)*on%qt,fn=(0,tt.pow2)(hn,dt,qt)*nn%qt;return{pow_p_5_8:(0,tt.pow2)(fn,ct,qt)*en%qt,b2:Zt}}function pt(en){return en[0]&=248,en[31]&=127,en[31]|=64,en}function xt(en,qt){const Qt=ot,Zt=(0,tt.mod)(qt*qt*qt,Qt),Xt=(0,tt.mod)(Zt*Zt*qt,Qt),sn=mt(en*Xt).pow_p_5_8;let nn=(0,tt.mod)(en*Zt*sn,Qt);const rn=(0,tt.mod)(qt*nn*nn,Qt),gn=nn,on=(0,tt.mod)(nn*it,Qt),an=rn===en,hn=rn===(0,tt.mod)(-en,Qt),fn=rn===(0,tt.mod)(-en*it,Qt);return an&&(nn=gn),(hn||fn)&&(nn=on),(0,tt.isNegativeLE)(nn,Qt)&&(nn=(0,tt.mod)(-nn,Qt)),{isValid:an||hn,value:nn}}s.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const Ct=(0,tt.Field)(ot,void 0,!0),Dt={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Ct,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:j.sha512,randomBytes:$.randomBytes,adjustScalarBytes:pt,uvRatio:xt};s.ed25519=(0,_e.twistedEdwards)(Dt);function wt(en,qt,Qt){if(qt.length>255)throw new Error("Context is too big");return(0,$.concatBytes)((0,$.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([Qt?1:0,qt.length]),qt,en)}s.ed25519ctx=(0,_e.twistedEdwards)({...Dt,domain:wt}),s.ed25519ph=(0,_e.twistedEdwards)({...Dt,domain:wt,prehash:j.sha512}),s.x25519=(0,et.montgomery)({P:ot,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:en=>{const qt=ot,{pow_p_5_8:Qt,b2:Zt}=mt(en);return(0,tt.mod)((0,tt.pow2)(Qt,BigInt(3),qt)*Zt,qt)},adjustScalarBytes:pt,randomBytes:$.randomBytes});function kt(en){const{y:qt}=s.ed25519.ExtendedPoint.fromHex(en),Qt=BigInt(1);return Ct.toBytes(Ct.create((Qt+qt)*Ct.inv(Qt-qt)))}s.edwardsToMontgomeryPub=kt,s.edwardsToMontgomery=kt;function zt(en){const qt=Dt.hash(en.subarray(0,32));return Dt.adjustScalarBytes(qt).subarray(0,32)}s.edwardsToMontgomeryPriv=zt;const Ot=(Ct.ORDER+BigInt(3))/BigInt(8),Ft=Ct.pow(ct,Ot),Pt=Ct.sqrt(Ct.neg(Ct.ONE)),Nt=(Ct.ORDER-BigInt(5))/BigInt(8),ht=BigInt(486662);function bt(en){let qt=Ct.sqr(en);qt=Ct.mul(qt,ct);let Qt=Ct.add(qt,Ct.ONE),Zt=Ct.neg(ht),Xt=Ct.sqr(Qt),sn=Ct.mul(Xt,Qt),nn=Ct.mul(qt,ht);nn=Ct.mul(nn,Zt),nn=Ct.add(nn,Xt),nn=Ct.mul(nn,Zt);let rn=Ct.sqr(sn);Xt=Ct.sqr(rn),rn=Ct.mul(rn,sn),rn=Ct.mul(rn,nn),Xt=Ct.mul(Xt,rn);let gn=Ct.pow(Xt,Nt);gn=Ct.mul(gn,rn);let on=Ct.mul(gn,Pt);Xt=Ct.sqr(gn),Xt=Ct.mul(Xt,sn);let an=Ct.eql(Xt,nn),hn=Ct.cmov(on,gn,an),fn=Ct.mul(Zt,qt),ln=Ct.mul(gn,en);ln=Ct.mul(ln,Ft);let yn=Ct.mul(ln,Pt),mn=Ct.mul(nn,qt);Xt=Ct.sqr(ln),Xt=Ct.mul(Xt,sn);let Rt=Ct.eql(Xt,mn),Et=Ct.cmov(yn,ln,Rt);Xt=Ct.sqr(hn),Xt=Ct.mul(Xt,sn);let It=Ct.eql(Xt,nn),Bt=Ct.cmov(fn,Zt,It),Wt=Ct.cmov(Et,hn,It),Vt=Ct.isOdd(Wt);return Wt=Ct.cmov(Wt,Ct.neg(Wt),It!==Vt),{xMn:Bt,xMd:Qt,yMn:Wt,yMd:at}}const St=(0,tt.FpSqrtEven)(Ct,Ct.neg(BigInt(486664)));function vt(en){const{xMn:qt,xMd:Qt,yMn:Zt,yMd:Xt}=bt(en);let sn=Ct.mul(qt,Xt);sn=Ct.mul(sn,St);let nn=Ct.mul(Qt,Zt),rn=Ct.sub(qt,Qt),gn=Ct.add(qt,Qt),on=Ct.mul(nn,gn),an=Ct.eql(on,Ct.ZERO);sn=Ct.cmov(sn,Ct.ZERO,an),nn=Ct.cmov(nn,Ct.ONE,an),rn=Ct.cmov(rn,Ct.ONE,an),gn=Ct.cmov(gn,Ct.ONE,an);const hn=Ct.invertBatch([nn,gn]);return{x:Ct.mul(sn,hn[0]),y:Ct.mul(rn,hn[1])}}const At=(0,rt.createHasher)(s.ed25519.ExtendedPoint,en=>vt(en[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:Ct.ORDER,m:1,k:128,expand:"xmd",hash:j.sha512});s.hashToCurve=At.hashToCurve,s.encodeToCurve=At.encodeToCurve;function Tt(en){if(!(en instanceof Kt))throw new Error("RistrettoPoint expected")}const jt=it,Lt=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),Mt=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),$t=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),Ut=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),Gt=en=>xt(at,en),Ht=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),tn=en=>s.ed25519.CURVE.Fp.create((0,nt.bytesToNumberLE)(en)&Ht);function Jt(en){const{d:qt}=s.ed25519.CURVE,Qt=s.ed25519.CURVE.Fp.ORDER,Zt=s.ed25519.CURVE.Fp.create,Xt=Zt(jt*en*en),sn=Zt((Xt+at)*$t);let nn=BigInt(-1);const rn=Zt((nn-qt*Xt)*Zt(Xt+qt));let{isValid:gn,value:on}=xt(sn,rn),an=Zt(on*en);(0,tt.isNegativeLE)(an,Qt)||(an=Zt(-an)),gn||(on=an),gn||(nn=Xt);const hn=Zt(nn*(Xt-at)*Ut-rn),fn=on*on,ln=Zt((on+on)*rn),yn=Zt(hn*Lt),mn=Zt(at-fn),Rt=Zt(at+fn);return new s.ed25519.ExtendedPoint(Zt(ln*Rt),Zt(mn*yn),Zt(yn*Rt),Zt(ln*mn))}class Kt{constructor(qt){this.ep=qt}static fromAffine(qt){return new Kt(s.ed25519.ExtendedPoint.fromAffine(qt))}static hashToCurve(qt){qt=(0,nt.ensureBytes)("ristrettoHash",qt,64);const Qt=tn(qt.slice(0,32)),Zt=Jt(Qt),Xt=tn(qt.slice(32,64)),sn=Jt(Xt);return new Kt(Zt.add(sn))}static fromHex(qt){qt=(0,nt.ensureBytes)("ristrettoHex",qt,32);const{a:Qt,d:Zt}=s.ed25519.CURVE,Xt=s.ed25519.CURVE.Fp.ORDER,sn=s.ed25519.CURVE.Fp.create,nn="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",rn=tn(qt);if(!(0,nt.equalBytes)((0,nt.numberToBytesLE)(rn,32),qt)||(0,tt.isNegativeLE)(rn,Xt))throw new Error(nn);const gn=sn(rn*rn),on=sn(at+Qt*gn),an=sn(at-Qt*gn),hn=sn(on*on),fn=sn(an*an),ln=sn(Qt*Zt*hn-fn),{isValid:yn,value:mn}=Gt(sn(ln*fn)),Rt=sn(mn*an),Et=sn(mn*Rt*ln);let It=sn((rn+rn)*Rt);(0,tt.isNegativeLE)(It,Xt)&&(It=sn(-It));const Bt=sn(on*Et),Wt=sn(It*Bt);if(!yn||(0,tt.isNegativeLE)(Wt,Xt)||Bt===st)throw new Error(nn);return new Kt(new s.ed25519.ExtendedPoint(It,Bt,at,Wt))}toRawBytes(){let{ex:qt,ey:Qt,ez:Zt,et:Xt}=this.ep;const sn=s.ed25519.CURVE.Fp.ORDER,nn=s.ed25519.CURVE.Fp.create,rn=nn(nn(Zt+Qt)*nn(Zt-Qt)),gn=nn(qt*Qt),on=nn(gn*gn),{value:an}=Gt(nn(rn*on)),hn=nn(an*rn),fn=nn(an*gn),ln=nn(hn*fn*Xt);let yn;if((0,tt.isNegativeLE)(Xt*ln,sn)){let Rt=nn(Qt*jt),Et=nn(qt*jt);qt=Rt,Qt=Et,yn=nn(hn*Mt)}else yn=fn;(0,tt.isNegativeLE)(qt*ln,sn)&&(Qt=nn(-Qt));let mn=nn((Zt-Qt)*yn);return(0,tt.isNegativeLE)(mn,sn)&&(mn=nn(-mn)),(0,nt.numberToBytesLE)(mn,32)}toHex(){return(0,nt.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(qt){Tt(qt);const{ex:Qt,ey:Zt}=this.ep,{ex:Xt,ey:sn}=qt.ep,nn=s.ed25519.CURVE.Fp.create,rn=nn(Qt*sn)===nn(Zt*Xt),gn=nn(Zt*sn)===nn(Qt*Xt);return rn||gn}add(qt){return Tt(qt),new Kt(this.ep.add(qt.ep))}subtract(qt){return Tt(qt),new Kt(this.ep.subtract(qt.ep))}multiply(qt){return new Kt(this.ep.multiply(qt))}multiplyUnsafe(qt){return new Kt(this.ep.multiplyUnsafe(qt))}double(){return new Kt(this.ep.double())}negate(){return new Kt(this.ep.negate())}}s.RistrettoPoint=(Kt.BASE||(Kt.BASE=new Kt(s.ed25519.ExtendedPoint.BASE)),Kt.ZERO||(Kt.ZERO=new Kt(s.ed25519.ExtendedPoint.ZERO)),Kt);const dn=(en,qt)=>{const Qt=qt.DST,Zt=typeof Qt=="string"?(0,$.utf8ToBytes)(Qt):Qt,Xt=(0,rt.expand_message_xmd)(en,Zt,64,j.sha512);return Kt.hashToCurve(Xt)};s.hashToRistretto255=dn,s.hash_to_ristretto255=s.hashToRistretto255})(ed25519);(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.ed25519=s.secp256k1=s.sha512_256=s.sha256=s.sha3_256=s.keccak256=void 0;const j=require$$0$3;Object.defineProperty(s,"sha256",{enumerable:!0,get:function(){return j.sha256}});const $=require$$1$1;Object.defineProperty(s,"keccak256",{enumerable:!0,get:function(){return $.keccak_256}}),Object.defineProperty(s,"sha3_256",{enumerable:!0,get:function(){return $.sha3_256}});const _e=sha512;Object.defineProperty(s,"sha512_256",{enumerable:!0,get:function(){return _e.sha512_256}});const et=secp256k1;Object.defineProperty(s,"secp256k1",{enumerable:!0,get:function(){return et.secp256k1}});const tt=ed25519;Object.defineProperty(s,"ed25519",{enumerable:!0,get:function(){return tt.ed25519}})})(utils$2);var hasRequiredUniversalAddress;function requireUniversalAddress(){if(hasRequiredUniversalAddress)return universalAddress$2;hasRequiredUniversalAddress=1,Object.defineProperty(universalAddress$2,"__esModule",{value:!0}),universalAddress$2.UniversalAddress=void 0;const s=require$$0$8,j=requireAddress(),$=utils$2,_e=[{name:"appIdPrefix",binary:"bytes",custom:s.encoding.bytes.encode("appID"),omit:!0},{name:"appId",binary:"uint",size:8}],tt=class tt{constructor(rt,ot="hex"){Mn(this,"address");this.address=typeof rt=="string"?tt.stringToUint8Array(rt,ot):rt}toNative(rt){return(0,j.toNative)(rt,this)}unwrap(){return this.address}toString(){return s.encoding.hex.encode(this.address,!0)}toUint8Array(){return this.address}toUniversalAddress(){return this}equals(rt){return s.encoding.bytes.equals(this.address,rt.address)}static isValidAddress(rt,ot="hex"){return!(0,s.throws)(()=>tt.stringToUint8Array(rt,ot))}static instanceof(rt){return typeof rt=="object"&&"constructor"in rt&&rt.constructor.type===tt.type}static stringToUint8Array(rt,ot){const it=(()=>{switch(ot){case"hex":if(![40,2*this.byteSize].includes(rt.length-(rt.startsWith("0x")?2:0)))throw new Error(`string ${rt} has invalid length for format ${ot}`);return s.encoding.hex.decode(rt);case"base58":return s.encoding.b58.decode(rt);case"bech32":return s.encoding.bech32.decodeToBytes(rt).bytes;case"algorandAppId":return(0,$.sha512_256)((0,s.serializeLayout)(_e,{appId:BigInt(rt)}));case"sha256":return(0,$.sha256)(rt)}})();if(it.length>tt.byteSize)throw new Error(`string ${rt} has invalid length for format ${ot}`);return it.lengthgetProtocolInitializer(s,j).fromRpc($,_e);protocol.create=create$3;var unsignedTransaction={};Object.defineProperty(unsignedTransaction,"__esModule",{value:!0});var vaa$1={},registration={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.registerPayloadTypes=s.registerPayloadType=s.payloadFactory=s.composeLiteral=void 0;const j=(et,tt)=>et?`${et}:${tt}`:tt;s.composeLiteral=j,s.payloadFactory=new Map;function $(et,tt,nt){const rt=(0,s.composeLiteral)(et,tt);if(s.payloadFactory.has(rt))throw new Error(`Payload type ${rt} already registered`);s.payloadFactory.set(rt,nt)}s.registerPayloadType=$;function _e(et,tt){for(const[nt,rt]of tt)$(et,nt,rt)}s.registerPayloadTypes=_e})(registration);var vaa={},layoutItems={},amount$1={};Object.defineProperty(amount$1,"__esModule",{value:!0});amount$1.amountItem=void 0;amount$1.amountItem={binary:"uint",size:32};var boolean={};Object.defineProperty(boolean,"__esModule",{value:!0});boolean.boolItem=void 0;boolean.boolItem={binary:"uint",size:1,custom:{to:s=>s>0,from:s=>s?1:0}};var chain$1={};Object.defineProperty(chain$1,"__esModule",{value:!0});chain$1.fixedChainItem=chain$1.chainItem=void 0;const sdk_base_1$b=require$$0$8,chainItemBase={binary:"uint",size:2},chainItem=s=>({...chainItemBase,custom:{to:j=>{if(j===0){if(!(s!=null&&s.allowNull))throw new Error("ChainId 0 is not valid for this protocol and action");return null}const $=(0,sdk_base_1$b.toChain)(j),_e=(s==null?void 0:s.allowedChains)??sdk_base_1$b.chains;if(!_e.includes($))throw new Error(`Chain ${$} not in allowed chains ${_e}`);return $},from:j=>j==null?0:(0,sdk_base_1$b.chainToChainId)(j)}});chain$1.chainItem=chainItem;const fixedChainItem=s=>({...chainItemBase,custom:{to:s,from:(0,sdk_base_1$b.chainToChainId)(s)}});chain$1.fixedChainItem=fixedChainItem;var circle={};Object.defineProperty(circle,"__esModule",{value:!0});circle.circleNonceItem=circle.circleDomainItem=void 0;circle.circleDomainItem={binary:"uint",size:4};circle.circleNonceItem={binary:"uint",size:8};var guardianSet={};Object.defineProperty(guardianSet,"__esModule",{value:!0});guardianSet.guardianSetItem=void 0;guardianSet.guardianSetItem={binary:"uint",size:4};var payloadId={};Object.defineProperty(payloadId,"__esModule",{value:!0});payloadId.payloadIdItem=void 0;const payloadIdItem=s=>({name:"payloadId",binary:"uint",size:1,custom:s,omit:!0});payloadId.payloadIdItem=payloadIdItem;var sequence={};Object.defineProperty(sequence,"__esModule",{value:!0});sequence.sequenceItem=void 0;sequence.sequenceItem={binary:"uint",size:8};var signature$1={},signature={},hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature;hasRequiredSignature$1=1,Object.defineProperty(signature,"__esModule",{value:!0}),signature.SignatureUtils=signature.Signature=void 0;const s=require$$0$8,j=requireLayoutItems(),$=utils$2;class _e{constructor(nt,rt,ot){Mn(this,"r");Mn(this,"s");Mn(this,"v");this.r=nt,this.s=rt,this.v=ot}encode(){return(0,s.serializeLayout)(j.signatureItem,this)}static decode(nt){return(0,s.deserializeLayout)(j.signatureItem,nt)}}signature.Signature=_e;var et;return function(tt){function nt(st){return $.secp256k1.getPublicKey(st)}tt.toPubkey=nt;function rt(st,at){if(at.length!=32)throw new Error("hash.length != 32");return $.secp256k1.sign(at,st)}tt.sign=rt;function ot(st,at,ct){const{r:lt,s:dt}=st;return $.secp256k1.verify({r:lt,s:dt},ct,at)}tt.validate=ot;function it(st,at){const{r:ct,s:lt,v:dt}=st,ft=new $.secp256k1.Signature(ct,lt);return ft.recovery=dt,ft.recoverPublicKey(at).toRawBytes()}tt.recover=it}(et||(signature.SignatureUtils=et={})),signature}var hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature$1;hasRequiredSignature=1,Object.defineProperty(signature$1,"__esModule",{value:!0}),signature$1.signatureItem=void 0;const s=requireSignature$1(),j=[{name:"r",binary:"uint",size:32},{name:"s",binary:"uint",size:32},{name:"v",binary:"uint",size:1}];return signature$1.signatureItem={binary:"bytes",layout:j,custom:{to:$=>new s.Signature($.r,$.s,$.v),from:$=>({r:$.r,s:$.s,v:$.v})}},signature$1}var universalAddress$1={};Object.defineProperty(universalAddress$1,"__esModule",{value:!0});universalAddress$1.universalAddressItem=void 0;const universalAddress_js_1=requireUniversalAddress();universalAddress$1.universalAddressItem={binary:"bytes",size:32,custom:{to:s=>new universalAddress_js_1.UniversalAddress(s),from:s=>s.toUint8Array()}};var string={};Object.defineProperty(string,"__esModule",{value:!0});string.fixedLengthStringItem=string.stringConversion=void 0;const sdk_base_1$a=require$$0$8,trimZeros=s=>{const j=s.findIndex($=>$!==0);return-1({binary:"bytes",size:s,custom:{to:j=>sdk_base_1$a.encoding.bytes.decode(trimZeros(j)),from:j=>sdk_base_1$a.encoding.bytes.zpad(sdk_base_1$a.encoding.bytes.encode(j),s)}});string.fixedLengthStringItem=fixedLengthStringItem;var hasRequiredLayoutItems;function requireLayoutItems(){return hasRequiredLayoutItems||(hasRequiredLayoutItems=1,function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(amount$1,s),$(boolean,s),$(chain$1,s),$(circle,s),$(guardianSet,s),$(payloadId,s),$(sequence,s),$(requireSignature(),s),$(universalAddress$1,s),$(string,s)}(layoutItems)),layoutItems}(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.baseLayout=s.envelopeLayout=s.headerLayout=s.decomposeLiteral=void 0;const j=requireLayoutItems();function $(et){const tt=et.indexOf(":");return tt!==-1?[et.slice(0,tt),et.slice(tt+1)]:[null,et]}s.decomposeLiteral=$;const _e=[{name:"guardianIndex",binary:"uint",size:1},{name:"signature",...j.signatureItem}];s.headerLayout=[{name:"version",binary:"uint",size:1,custom:1,omit:!0},{name:"guardianSet",...j.guardianSetItem},{name:"signatures",binary:"array",lengthSize:1,layout:_e}],s.envelopeLayout=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",...(0,j.chainItem)()},{name:"emitterAddress",...j.universalAddressItem},{name:"sequence",...j.sequenceItem},{name:"consistencyLevel",binary:"uint",size:1}],s.baseLayout=[...s.headerLayout,...s.envelopeLayout]})(vaa);var functions={};Object.defineProperty(functions,"__esModule",{value:!0});functions.deserializeUnknownVaa=functions.blindDeserializePayload=functions.exhaustiveDeserialize=functions.deserializePayload=functions.deserialize=functions.payloadDiscriminator=functions.serializePayload=functions.serialize=functions.payloadLiteralToPayloadItemLayout=functions.getPayloadLayout=void 0;const sdk_base_1$9=require$$0$8,registration_js_1=registration,vaa_js_1$1=vaa,index_js_1$5=requireLayoutItems(),utils_js_1$2=utils$2;function getPayloadLayout(s){const j=registration_js_1.payloadFactory.get(s);if(!j)throw new Error(`No layout registered for payload type ${s}`);return j}functions.getPayloadLayout=getPayloadLayout;function payloadLiteralToPayloadItemLayout(s){return{name:"payload",binary:"bytes",...s==="Uint8Array"?{}:{layout:getPayloadLayout(s)}}}functions.payloadLiteralToPayloadItemLayout=payloadLiteralToPayloadItemLayout;function serialize(s){const j=[...vaa_js_1$1.baseLayout,payloadLiteralToPayloadItemLayout(s.payloadLiteral)];return(0,sdk_base_1$9.serializeLayout)(j,s)}functions.serialize=serialize;function serializePayload(s,j){if(s==="Uint8Array")return j;const $=getPayloadLayout(s);return(0,sdk_base_1$9.serializeLayout)($,j)}functions.serializePayload=serializePayload;function payloadDiscriminator(s,j){const $=(()=>{if(Array.isArray(s[0]))return s.flatMap(([nt,rt])=>rt.map(ot=>(0,registration_js_1.composeLiteral)(nt,ot)));if(typeof s[1]=="string")return s;const[et,tt]=s;return tt.map(nt=>(0,registration_js_1.composeLiteral)(et,nt))})(),_e=(0,sdk_base_1$9.layoutDiscriminator)($.map(et=>getPayloadLayout(et)),!!j);return et=>{typeof et=="string"&&(et=sdk_base_1$9.encoding.hex.decode(et));const tt=_e(et);return Array.isArray(tt)?tt.map(nt=>$[nt]):tt!==null?$[tt]:null}}functions.payloadDiscriminator=payloadDiscriminator;function deserialize(s,j){typeof j=="string"&&(j=sdk_base_1$9.encoding.hex.decode(j));const[$,_e]=(0,sdk_base_1$9.deserializeLayout)(vaa_js_1$1.headerLayout,j,!1);for(let lt=1;lt<$.signatures.length;++lt)if($.signatures[lt].guardianIndex<=$.signatures[lt-1].guardianIndex)throw new Error("Guardian signatures must be in ascending order of guardian set index");const et=_e,[tt,nt]=(0,sdk_base_1$9.deserializeLayout)(vaa_js_1$1.envelopeLayout,j.subarray(et),!1),rt=et+nt,[ot,it]=typeof s=="string"?[s,deserializePayload(s,j.subarray(rt))]:deserializePayload(s,j.subarray(rt)),[st,at]=(0,vaa_js_1$1.decomposeLiteral)(ot),ct=(0,utils_js_1$2.keccak256)(j.slice(et));return{protocolName:st,payloadName:at,payloadLiteral:ot,...$,...tt,payload:it,hash:ct}}functions.deserialize=deserialize;function deserializePayload(s,j,$=0){return(()=>{if(typeof j=="string"&&(j=sdk_base_1$9.encoding.hex.decode(j)),s==="Uint8Array")return j.slice($);if(typeof s=="string")return(0,sdk_base_1$9.deserializeLayout)(getPayloadLayout(s),j.subarray($));const _e=s(j.slice($));if(_e===null)throw new Error(`Encoded data does not match any of the given payload types - ${j}`);return[_e,(0,sdk_base_1$9.deserializeLayout)(getPayloadLayout(_e),j.subarray($))]})()}functions.deserializePayload=deserializePayload;functions.exhaustiveDeserialize=(()=>{const s=()=>{const $=Array.from(registration_js_1.payloadFactory.keys()),_e=$.map(et=>registration_js_1.payloadFactory.get(et));return[$,(0,sdk_base_1$9.layoutDiscriminator)(_e,!0)]};let j=[];return $=>(registration_js_1.payloadFactory.size!==j.length&&([j]=s()),j.reduce((et,tt)=>{try{et.push([tt,deserializePayload(tt,$)])}catch{}return et},[]))})();functions.blindDeserializePayload=(()=>{const s=()=>{const _e=Array.from(registration_js_1.payloadFactory.keys()),et=_e.map(tt=>registration_js_1.payloadFactory.get(tt));return[_e,(0,sdk_base_1$9.layoutDiscriminator)(et,!0)]};let j=[],$=_e=>[];return _e=>(registration_js_1.payloadFactory.size!==j.length&&([j,$]=s()),typeof _e=="string"&&(_e=sdk_base_1$9.encoding.hex.decode(_e)),$(_e).map(tt=>j[tt]).reduce((tt,nt)=>{try{tt.push([nt,deserializePayload(nt,_e)])}catch{}return tt},[]))})();const deserializeUnknownVaa=s=>{const j=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",binary:"uint",size:2},{name:"emitterAddress",...index_js_1$5.universalAddressItem},{name:"sequence",...index_js_1$5.sequenceItem},{name:"consistencyLevel",binary:"uint",size:1}],[$,_e]=(0,sdk_base_1$9.deserializeLayout)(vaa_js_1$1.headerLayout,s,!1),[et,tt]=(0,sdk_base_1$9.deserializeLayout)(j,s.subarray(_e),!1);return{...$,...et,payload:s.slice(tt)}};functions.deserializeUnknownVaa=deserializeUnknownVaa;var create$2={};Object.defineProperty(create$2,"__esModule",{value:!0});create$2.createVAA=void 0;const sdk_base_1$8=require$$0$8,utils_js_1$1=utils$2,vaa_js_1=vaa,functions_js_1=functions;function bodyLayout(s){return[...vaa_js_1.envelopeLayout,(0,functions_js_1.payloadLiteralToPayloadItemLayout)(s)]}function createVAA(s,j){const[$,_e]=(0,vaa_js_1.decomposeLiteral)(s),et=(0,sdk_base_1$8.addFixedValues)(bodyLayout(s),j);return{protocolName:$,payloadName:_e,payloadLiteral:s,...(0,sdk_base_1$8.addFixedValues)(vaa_js_1.headerLayout,j),...et,hash:(0,utils_js_1$1.keccak256)((0,sdk_base_1$8.serializeLayout)(bodyLayout(s),et))}}create$2.createVAA=createVAA;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(registration,s),$(vaa,s),$(functions,s),$(create$2,s)})(vaa$1);var platform={};Object.defineProperty(platform,"__esModule",{value:!0});platform.PlatformContext=void 0;const protocol_js_1$1=protocol;class PlatformContext{constructor(j,$){Mn(this,"network");Mn(this,"config");this.network=j,this.config=$}utils(){return this.constructor}getProtocol(j,$){return(0,protocol_js_1$1.create)(this.utils()._platform,j,$,this.config)}getProtocolInitializer(j){return(0,protocol_js_1$1.getProtocolInitializer)(this.utils()._platform,j)}async parseWormholeMessages(j,$,_e){return(await this.getProtocol("WormholeCore",$)).parseTransaction(_e)}}platform.PlatformContext=PlatformContext;var chain={},tokens$1={},tokens={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.isEqualCaseInsensitive=s.filters=void 0,s.filters={byAddress:($,_e)=>Object.values($).find(et=>(0,s.isEqualCaseInsensitive)(et.address,_e)),native:$=>s.filters.byAddress($,"native"),bySymbol:($,_e)=>{const et=Object.values($).filter(tt=>tt.symbol===_e);return et&&et.length>0?et:void 0},byKey:($,_e)=>{const et=Object.entries($).find(([tt])=>_e===tt);return et?et[1]:void 0}};const j=($,_e)=>$.toLowerCase()===_e.toLowerCase();s.isEqualCaseInsensitive=j})(tokens);var mainnet={},utils={},array={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.filterIndexes=s.pickWithOrder=s.zip=s.column=s.flatten=s.entries=s.range=void 0;const j=ot=>[...Array(ot).keys()];s.range=j;function $(ot){return[...ot.entries()]}s.entries=$;const _e=ot=>ot.flat();s.flatten=_e;const et=(ot,it)=>ot.map(st=>st[it]);s.column=et;const tt=ot=>(0,s.range)(ot[0].length).map(it=>(0,s.range)(ot.length).map(st=>ot[st][it]));s.zip=tt;const nt=(ot,it)=>it.map(st=>ot[st]);s.pickWithOrder=nt;const rt=(ot,it,st)=>{const at=new Set(Array.isArray(it)?it:[it]);return ot.filter((ct,lt)=>at.has(lt)!==st)};s.filterIndexes=rt})(array);var mapping={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.constMap=s.cartesianRightRecursive=void 0;const j=array;function $(rt){return["string","number","symbol","bigint","boolean"].includes(typeof rt)}const _e=rt=>rt.length===2&&!Array.isArray(rt[0])&&Array.isArray(rt[1]),et=rt=>rt.length===0?[]:Array.isArray(rt[0])?rt.map(([ot,it])=>Array.isArray(it)?(_e(it)?(0,s.cartesianRightRecursive)(it):it).map(st=>[ot,st].flat()):[[ot,it]]).flat():_e(rt)?(0,s.cartesianRightRecursive)(rt[1]).map(ot=>[rt[0],ot]):rt;s.cartesianRightRecursive=et;const tt=(rt,ot)=>{const it=(0,s.cartesianRightRecursive)(rt);if(it.length===0)throw new Error("Invalid mapping: empty");const st=ot===void 0?[(0,j.range)(it[0].length-1),[it[0].length-1]]:ot.map(pt=>typeof pt=="number"?[pt]:pt);let at=[],ct=!0;const lt=(pt,xt)=>{const Ct=Array.from(new Set(pt[0]).values()),Dt=new Map(Ct.map(kt=>[kt,[]]));for(const[kt,zt]of pt[0].entries())Dt.get(zt).push(kt);if(pt.length===1){const kt=Object.fromEntries(Ct.map(zt=>[zt,Dt.get(zt).map(Ot=>xt[Ot].length===1?xt[Ot][0]:xt[Ot])]));if(ct){for(const zt of Dt.values())if(zt.length>1)return ct=!1,kt;at.push(kt)}return kt}const wt=(0,j.zip)(pt.slice(1));return Object.fromEntries(Ct.map(kt=>{const zt=Dt.get(kt),Ot=(0,j.zip)(zt.map(Pt=>wt[Pt])),Ft=zt.map(Pt=>xt[Pt]);return[kt,lt(Ot,Ft)]}))},dt=(0,j.zip)(it),ft=pt=>{const xt=dt[pt];if(xt===void 0)throw new Error(`Invalid shape: column ${pt} does not exist`);return xt},[gt,yt]=st.map(pt=>pt.map(xt=>ft(xt)));if(gt.length===0)throw new Error("Invalid shape: empty key set");if(yt.length===0)throw new Error("Invalid shape: empty value set");for(const pt of gt)for(const xt of pt)if(!$(xt))throw new Error(`Invalid key: ${xt} in ${pt}`);const mt=lt(gt,(0,j.zip)(yt));if(ct)for(const pt of at)for(const xt of Object.keys(pt))pt[xt]=pt[xt][0];return mt};function nt(rt,ot){const it=tt(rt,ot),st=(...at)=>at.reduce((ct,lt)=>ct?ct[lt.toString()]??void 0:void 0,it);return Object.assign(st,{has:(...at)=>st(...at)!==void 0,get:(...at)=>st(...at),subMap:at=>it[at.toString()]})}s.constMap=nt})(mapping);var metaprogramming={};Object.defineProperty(metaprogramming,"__esModule",{value:!0});var misc={};Object.defineProperty(misc,"__esModule",{value:!0});misc.throws=misc.onlyOnce=misc.lazyInstantiate=void 0;function lazyInstantiate(s){let j=null;return()=>(j||(j=s()),j)}misc.lazyInstantiate=lazyInstantiate;function onlyOnce(s,...j){let $=!1;return()=>{$||($=!0,s(...j))}}misc.onlyOnce=onlyOnce;function throws(s){try{return s(),!1}catch{return!0}}misc.throws=throws;var layout$1={};const require$$0$1=getAugmentedNamespace(dist$1);(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.bitsetItem=s.optionItem=s.enumItem=s.dynamicItemsOfLayout=s.fixedItemsOfLayout=s.addFixedValues=s.customizableBytes=s.calcStaticLayoutSize=s.calcLayoutSize=s.layoutDiscriminator=s.deserializeLayout=s.serializeLayout=void 0;var j=require$$0$1;Object.defineProperty(s,"serializeLayout",{enumerable:!0,get:function(){return j.serialize}}),Object.defineProperty(s,"deserializeLayout",{enumerable:!0,get:function(){return j.deserialize}}),Object.defineProperty(s,"layoutDiscriminator",{enumerable:!0,get:function(){return j.buildDiscriminator}}),Object.defineProperty(s,"calcLayoutSize",{enumerable:!0,get:function(){return j.calcSize}}),Object.defineProperty(s,"calcStaticLayoutSize",{enumerable:!0,get:function(){return j.calcStaticSize}}),Object.defineProperty(s,"customizableBytes",{enumerable:!0,get:function(){return j.customizableBytes}}),Object.defineProperty(s,"addFixedValues",{enumerable:!0,get:function(){return j.addFixedValues}}),Object.defineProperty(s,"fixedItemsOfLayout",{enumerable:!0,get:function(){return j.fixedItemsOf}}),Object.defineProperty(s,"dynamicItemsOfLayout",{enumerable:!0,get:function(){return j.dynamicItemsOf}}),Object.defineProperty(s,"enumItem",{enumerable:!0,get:function(){return j.enumItem}}),Object.defineProperty(s,"optionItem",{enumerable:!0,get:function(){return j.optionItem}}),Object.defineProperty(s,"bitsetItem",{enumerable:!0,get:function(){return j.bitsetItem}})})(layout$1);var amount={};Object.defineProperty(amount,"__esModule",{value:!0});amount.fmt=amount.whole=amount.display=amount.units=amount.fromBaseUnits=amount.scale=amount.truncate=amount.parse=amount.denoise=void 0;function denoise(s,j){return Number(Number(s).toFixed(j))}amount.denoise=denoise;function parse(s,j){if(validateAmountInput(s,j),s=s.toString(),s.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const $=s.split(".");if($.length>2)throw"Too many decimals";let[_e,et]=$.length===0?["0",""]:$.length===1?[$[0],""]:$;if(et=et.padEnd(j,"0"),et.length>j){if(BigInt(et.substring(j))!==0n)throw new Error("Amount: invalid input. Decimals too low.");et=et.substring(0,j)}return{amount:BigInt(_e+et).toString(),decimals:j}}amount.parse=parse;function truncate(s,j){if(s.decimals<=j)return s;const $=BigInt(s.decimals-j);return{amount:(units(s)/10n**$*10n**$).toString(),decimals:s.decimals}}amount.truncate=truncate;function scale(s,j){if(s.decimals===j)return s;if(s.amount==="0")return{amount:s.amount,decimals:j};const $=j-s.decimals;if($>0)return{amount:s.amount+"0".repeat($),decimals:j};if(BigInt(s.amount.substring(s.amount.length+$))===0n)return{amount:s.amount.substring(0,s.amount.length+$),decimals:j};throw new Error(`scaleAmount(${JSON.stringify(s)}, ${j}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}amount.scale=scale;function fromBaseUnits(s,j){return{amount:s.toString(),decimals:j}}amount.fromBaseUnits=fromBaseUnits;function units(s){return validateAmount(s),BigInt(s.amount)}amount.units=units;function display(s,j){validateAmount(s);let $=s.amount.substring(0,s.amount.length-s.decimals).padStart(1,"0"),_e=s.amount.substring(s.amount.length-s.decimals).padStart(s.decimals,"0");if(j!==void 0){for(;_e.length>j&&_e[_e.length-1]==="0";)_e=_e.substring(0,_e.length-1);_e=_e.padEnd(j,"0")}else _e=_e.replace(/0+$/,"");return _e.length>0?`${$}.${_e}`:$}amount.display=display;function whole(s){return Number(display(s))}amount.whole=whole;function fmt(s,j){return display(fromBaseUnits(s,j))}amount.fmt=fmt;function validateAmountInput(s,j){if(typeof s=="number"){if(!isFinite(s))throw new Error("Amount: invalid input. Amount must be finite");if(s<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(s))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(j))throw new Error("Amount: invalid input. Decimals must be finite")}function validateAmount(s){if(!/^[0-9]*$/.test(s.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(s.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(s.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}var encoding={};const require$$0=getAugmentedNamespace(esm$1);(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.bytes=s.bignum=s.b58=s.b64=s.hex=s.stripPrefix=s.bech32=void 0;const j=require$$0;var $=require$$0;Object.defineProperty(s,"bech32",{enumerable:!0,get:function(){return $.bech32}});const _e=(nt,rt)=>rt.startsWith(nt)?rt.slice(nt.length):rt;s.stripPrefix=_e;const et=/^(?:0x)?[0-9a-fA-F]+$/;s.hex={valid:nt=>et.test(nt),decode:nt=>j.base16.decode((0,s.stripPrefix)("0x",nt).toUpperCase()),encode:(nt,rt=!1)=>(nt=typeof nt=="string"?s.bytes.encode(nt):nt,(rt?"0x":"")+j.base16.encode(nt).toLowerCase())};const tt=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;s.b64={valid:nt=>tt.test(nt),decode:j.base64.decode,encode:nt=>j.base64.encode(typeof nt=="string"?s.bytes.encode(nt):nt)},s.b58={decode:j.base58.decode,encode:nt=>j.base58.encode(typeof nt=="string"?s.bytes.encode(nt):nt)},s.bignum={decode:nt=>(typeof nt!="string"&&(nt=s.hex.encode(nt,!0)),nt===""||nt==="0x"?0n:BigInt(nt)),encode:(nt,rt=!1)=>s.bignum.toString(nt,rt),toString:(nt,rt=!1)=>{let ot=nt.toString(16);return ot=ot.length%2===1?ot="0"+ot:ot,rt?"0x"+ot:ot},toBytes:(nt,rt)=>{typeof nt=="number"&&(nt=s.bignum.toBigInt(nt));const ot=s.hex.decode(s.bignum.toString(nt));if(!rt)return ot;if(rt{if(nt>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${nt} exceeds MAX_SAFE_INTEGER`);return Number(nt)},toBigInt:nt=>{if(nt>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${nt} exceeds MAX_SAFE_INTEGER`);return BigInt(nt)}},s.bytes={encode:nt=>new TextEncoder().encode(nt),decode:nt=>new TextDecoder().decode(nt),equals:(nt,rt)=>nt.length===rt.length&&nt.every((ot,it)=>ot===rt[it]),zpad:(nt,rt,ot=!0)=>ot?s.bytes.concat(new Uint8Array(rt-nt.length),nt):s.bytes.concat(nt,new Uint8Array(rt-nt.length)),concat:(...nt)=>{const rt=nt.reduce((st,at)=>st+at.length,0),ot=new Uint8Array(rt);let it=0;return nt.forEach(st=>{ot.set(st,it),it+=st.length}),ot}}})(encoding);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(tt,nt,rt,ot){ot===void 0&&(ot=rt);var it=Object.getOwnPropertyDescriptor(nt,rt);(!it||("get"in it?!nt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return nt[rt]}}),Object.defineProperty(tt,ot,it)}:function(tt,nt,rt,ot){ot===void 0&&(ot=rt),tt[ot]=nt[rt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(tt,nt){Object.defineProperty(tt,"default",{enumerable:!0,value:nt})}:function(tt,nt){tt.default=nt}),_e=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(tt,nt){for(var rt in tt)rt!=="default"&&!Object.prototype.hasOwnProperty.call(nt,rt)&&j(nt,tt,rt)},et=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(tt){if(tt&&tt.__esModule)return tt;var nt={};if(tt!=null)for(var rt in tt)rt!=="default"&&Object.prototype.hasOwnProperty.call(tt,rt)&&j(nt,tt,rt);return $(nt,tt),nt};Object.defineProperty(s,"__esModule",{value:!0}),s.encoding=s.amount=void 0,_e(array,s),_e(mapping,s),_e(metaprogramming,s),_e(misc,s),_e(layout$1,s),s.amount=et(amount),s.encoding=et(encoding)})(utils);Object.defineProperty(mainnet,"__esModule",{value:!0});mainnet.mainnetChainTokens=void 0;const index_js_1$4=utils,mainnetTokenEntries=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}],["USDT",{symbol:"USDT",decimals:6,address:"0xdac17f958d2ee523a2206206994597c13d831ec7"}],["DAI",{symbol:"DAI",decimals:18,address:"0x6b175474e89094c44da98b954eedeac495271d0f"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x4fabb145d64652a948d72533023f6e7a623c7c53"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8B5653Ae095529155462eDa8CF664eD96773F557",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xb4c624dBC50804dA086cf2380cD55dEBC0d22E96",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0xB8d1E0642bFD3744CaBd2ca8830cFabE19b2Ca54",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4F3819A6cfF717BFfE801a75c73A984141c76589",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x733F28B3e315046Db01dAbC292D6F0F7F26C4551",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",original:"Solana"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB04906e95AB5D797aDA81508115611fee694c2b3",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",original:"Optimism"}],["WETHbsc",{symbol:"WETH",decimals:18,address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x94c97dd3Bde5bC1406BCe82E7941A6365968521D",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",original:"Solana"}],["USDTbsc",{symbol:"USDT",decimals:18,address:"0x55d398326f99059fF775485246999027B3197955"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0x11CD37bb86F65419713f30673A480EA33c826872",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"}],["WETHpolygon",{symbol:"WETH",decimals:18,address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x922F49a9911effc034eE756196E59BE7b90D43b3",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x6a5c59AB16268d2c872916054C50440B999e417C",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x7800FE8951cdc1cDea748d878fAce63018D97960",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8182De59485Bb646542Db8C7E5958148Dc699319",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x31F12aCb60C3c32EE884F3894a873347C097D925",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3362b2B92b331925F09F9E5bCA3E8C43921a435C",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x68A8797da1c8ED592600d70A5151886A92D2183C",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x045D8c62D5326aa51a31518ECF3aF80C17421Aba",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",original:"Ethereum"}],["wstETHpolygon",{symbol:"wstETH",decimals:18,address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",original:"Solana"}],["USDTpolygon",{symbol:"USDT",decimals:6,address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0x8b82A291F83ca07Af22120ABa21632088fC92931",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x6145E8a910aE937913426BF32De2b26039728ACF",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}],["WETHavax",{symbol:"WETH",decimals:18,address:"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3F531c038A0D2d9c7D19FC3554cd0439791526c4",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",original:"Solana"}],["USDTavax",{symbol:"USDT",decimals:6,address:"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x358CE030DC6116Cc296E8B9F002728e65459C146",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xE8367853A0823515D37b1538331B4704089becb4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xd3365E7355230c78098b44B172eE27DAB95B041A",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeE27799cF29D7F64647B92f47d543B382B49f83E",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",original:"Solana"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x617f3112bf5397D0467D315cC709EF968D9ba546",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9C234706292b1144133ED509ccc5B3CD193BF712",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x471ece3750da237f93b8e339c536989b8978a438"}],["USDT",{symbol:"USDT",decimals:6,address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x905CADB645684140E285e2D09D39dF5a2082BC87",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xFaED7314060FCEc652ED91D9eac6c980DCA9D3B8",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x72878E7d3A8746e0c91b9F16F0b8ee4fDE9DDc06",original:"Arbitrum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x985aa4814419ba338379A634785216301e51113D",original:"Solana"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x4415BfBDee669446550d55c749007EF60B520FC8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7f433E22366E03a3758CE22cCf82887d828078f8",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xAcc15dC74880C9944775448304B263D191c6077F"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x25331575641d35D9765e1934acC8F0991c58e904",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeCd65E4B89495Ae63b4f11cA872a23680A7c419c",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",original:"Klaytn"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],["SUI",{symbol:"SUI",decimals:8,address:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG",original:"Ethereum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",original:"Ethereum"}],["PYTH",{symbol:"PYTH",decimals:6,address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x27792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0xaab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xbc3a676894871284b3ccfb2eec66f428612000e2a6e6d23f592ce8833c27c973::coin::COIN",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",original:"Solana"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x0e977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x9d5a0f8215301fa8096df332b1533f6328f18c32fbac2a7089cfbea73b3068a7::coin::T",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",original:"Solana"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x71b35ECb35104773537f849FBC353F81303A5860",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE6396f780b543dF16ee3b784D789c75B68319db0",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x1C61629598e4a901136a81BC138E5828dc150d67",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],["wstETHbase",{symbol:"wstETH",decimals:18,address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x9EE95E6Bd1B3C5740F105d6fb06b8BDeF64Eec70",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x56D0873e0eCA4a56063e1BF945788365666CFBFC",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x4c5d8A75F3762c1561D96f177694f67378705E98",original:"Solana"}],["USDTbase",{symbol:"USDT",decimals:6,address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x565609fAF65B92F7be02468acF86f8979423e514",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4EdeF400eDe5309240814b5FC403F224504604e9",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x57723abc582DBfE11Ea01f1A1f48aEE20bD65D73",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x3bab04bDFd2Dc3640c2B9390A2Da05bC1192D482",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x2519010b6585247BcDC8BcDa5C8730Be754b8c76",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",original:"Ethereum"}],["wstETHarbitrum",{symbol:"wstETH",decimals:18,address:"0x5979D7b546E38E414F7E9822514be443A4800529"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",original:"Solana"}],["USDTarbitrum",{symbol:"USDT",decimals:6,address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xB214C19d81c99E75e84706a3aa0A757319023e26",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x6F974A6dfD5B166731704Be226795901c45Bb815",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x27A533e438892DA192725b4C9AcA51447F457212",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x825206E1D29456337769e6f1384101E997C6A732",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",original:"Arbitrum"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeC0a755664271b87002dDa33CA2484B24aF68912",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE4C32B9eA749fa0342B1C42C01E80028B97c3917",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x2390a5131fcba6e47f702172cF4876589E4161c6",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",original:"Ethereum"}],["wstETHoptimism",{symbol:"wstETH",decimals:18,address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",original:"Solana"}],["USDToptimism",{symbol:"USDT",decimals:6,address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtslwqndm",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1utjx3594tlvfw4375esgu72wa4sdgf0q7x4ye27husf5kvuzp5rsr72gdq",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"wormhole1nz0r0au8aj6dc00wmm3ufy4g4k86rjzlr8wkf92cktdlps5lgfcqxnx9yk",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1w27ekqvvtzfanfxnkw4jx2f8gdfeqwd3drkee3e64xat6phwjg0savgmhw",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1chejx4qqtvwxy6684yrsmf6pylancxqhk3vsmtleg5ta3zrffljqfscg87",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"wormhole1msyushf6d76u9wupuvm6jdvc0x4trmv5w5kxr0hyt7n9npp233usg7pkhm",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1xmpenz0ykxfy8rxr3yc3d4dtqq4dpas4zz3xl6sh873us3vajlpszn4ph7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole169nr66h9gcsfljvsnxnqfjakskcjt6ac8f58wqjuagu79m540teqfvaal4",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"wormhole1g3acw7aumaj3r348cqn4kazrehlmn822w9p46sqwztnke27h3lysxj4ddr",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1ml922hnp59jtq9a87arekvx60ezehwlg2v3j5pduplwkenfa68ksgmzxwr",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1gwm6mrnse9atzf4mer4dnrz64mp6pa75wpsxywu8gymt9fwsk46sfr372u",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1e0cwfmla7exa578xddl87paxexw9ymwrzysfjms8c2mstxjkldlqn45jqa",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1kqey3a6k26kyensq7elcpx229tlj4d3qlshwhjq5xjm8dcdvu60qtef8k9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole1gzuv84xrwwhxhf0f62av279vfyrfrm7x58fcnadlr5m90gnx223ses2st0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8sca0pvl",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole17fr8awnysyv3nt5je4strczdupssl8u9jqam890jfv72sh32yyqqhtg3ry",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole19hlynxzedrlqv99v6qscww7d3crhl86qtd0vprpltg5g9xx6jk9q6ya33y",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1f9sxjn0qu8xylcpzlvnhrefnatndqxnrajfrnr5h97hegnmsdqhsh6juc0",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole18nlwscr7290j463vcptqlgqudycry2rdnw2ysltpc2nqefk3353s808rl9",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole1ev8rhdflmlq6de5g7ttj585fhuv3jfhnuhfzyh7qrswhzaq2tkqswxz6y3",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1snw0qugpjcxwtxzzkqt5guwavq85eumxzeagql2u2m662xrtnjuqyj3pkj",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1edkult6zudk6ld23fesjfrehux35q86engsq5jlycl0e4upkz8mqkgcprf",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"wormhole1nu9wf9dw384attnpu0pwfet5fajn05w2ex4r07mghvk3xcwrt2yq5uutp5",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:8,address:"wormhole1uj24zecnaxz7ftz0sh6dsayfene4w3yptwg0422kves9duel67vsr7hlyz",original:"Polygon"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1q8ynvqvtw49ln73mn70v4me4q03fvvmhkf2lh4ueam5w4362s2asjmvxtd",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1gg6f95cymcfrfzhpek7cf5wl53t5kng52cd2m0krgdlu8k58vd8qezy8pt",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"wormhole1kyy876kye7k79fuzat532yyqkrzhlr6l7hc7lfa2rk5tygzhy00qrhjgkc",original:"Klaytn"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/62F82550D0B96522361C89B0DA1119DE262FBDFB25E5502BC5101B5C0D0DBAAC",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/6B99DB46AA9FF47162148C1726866919E44A6A5E0274B90912FD17E19A337695",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/E4CD61E1FA3EB04EF1BF924D676AB9FD55E84A0DCF4E78C11CCA0E14E5B42672",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/2108F2D81CBE328F371AD0CEF56691B18A86E08C3651504E42487D9EE92DDE9C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/898ACF6F5DEBF535103BBD52E3E5B70A311AD097B198A152483F69290B4210C0",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/03B6D1925A09B3033AA6FA8772202719ABDC51F8CC2A5C26D0A9B19832F2C023",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5394BB30B3C9BD1EE84C9531E5094DDE2490964F518CBE8A4C91F748CE559AF5",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/B28ACEF11D063FA8B1DA73C2F7DA3A1CFCCBC13E96B671698D4860E9367B55BB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/22B44C7369EED16089B9840ADE399B80D9483B4E459E67643C96C681D7C463D0",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/397DFE63D87F6940ECA583DFF5461E48BF0BA6554CBBE70278E307DDFDC8E9D5",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/83300733052AB5F6E0F0C221E24189B6DF26CC94C73D2F44627627F9DEF4A9C8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/0F2941B0168D8DB77DA1B6A2D3A95EC04026D3C97FA3BFE8FD1D5D3F983AA518",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/1E43D59E565D41FB4E54CA639B838FFD5BCFC20003D330A56CB1396231AA1CBA",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/F08DE332018E8070CC4C68FE06E04E254F527556A614F5F8F9A68AF38D367E45",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/B1C287C2701774522570010EEBCD864BCB7AB714711B3AA218699FDD75E832F5",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/A4D176906C1646949574B48C1928D475F2DF56DE0AC04E1C99B08F90BC21ABDE",original:"Aptos"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8AC0F990290BBEF3AEBFCBF70F902AD954781BB40D07EB76341272800D48D05F",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["tBTC",{symbol:"tBTC",decimals:8,address:"ibc/6207D35D2C08F2162575C3C4BFD524226E50639121A273045F1B393AF67DCEB3",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/BF75AE1500CB7EC458E91A11731F1B6AC1F1FE1FA937A88564955ED6A83CA2FB",original:"Ethereum"}]]],["Evmos",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/4442A8E0D487A49E76EA6606F5DADCF8D0DBDD8499112340C964970DB745EDA2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/0C19171CDC59451F91D2749CDEA63355532DCD5D8904CCBAC4953290E16AB8FD",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/46C5DA1CB61C5BAA8730ABA467ADD58DE0333B075CACE28BC87E64AE8C9CA051",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/C9072A294F5649D64E87A6998DD750576881E454CACCDAF7376EFC0FA243808D",original:"Ethereum"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/8E08C01546EF346F7E9A3600DDBC88943ADF3B20A67F1F2DD7B83D85613BCCAB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/2EA2FE172078576E62DA20F14EEED12B26611D93150FE1D68E1AAE00479AC335",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/39913E647C3549D663B1ED7F0745E1779515170C5215B98B2C8410B4C073AD30",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/9EFE5F5D75A87197DD257BA7A96A3BCCEC9DB59D257C742FB5AA9D3DF612D476",original:"Fantom"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/4443218F584A7AB2DFBCF93872D6E5B6967A11C53515DDF45A2CF387C54BD73A",original:"Solana"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/9E2E7B4A53409267CD686F4EB67969C2602A0F5FF9BDB1082B00E71CC4815DDE",original:"Arbitrum"}],["EVMOS",{symbol:"EVMOS",decimals:18,address:"aevmos"}]]],["Kujira",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/7D9D28CABB49A4BB1A50C3B7E4544BFDBC5DDFAEB84A7787755A34CE7196CE15",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/C5EADE2C526B9629D230AC02A97644984ACB7C2F9A6C85126D1025CB0DA42588",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/B2C7F21B604E3974A7DA5DAA9395905F2F3C85392F8A221CFDF62E4A9F4E48E4",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/3CE8A3DE4AE5AE2B4B8C03B2B227CC284732EDC849E506615FF2AA3D8EB1BAFC",original:"Ethereum"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/28E7241F6508EB4692C721E91201377323796EF2758CCD83D220A40EAD32601E",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F9F41DB8DA49EA6AB9EB4B2C9E0ECDC2502ABDA2FE728B85994BF31240CBC163",original:"Avalanche"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/4ACD155D71182398277CBD2C630A7C8C5F0F16FFF77965FDE4C845A4CDE2D60C",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/3D337ECC89A8421DD6F33C4B7DDE9D4A18D728A4A688BA30E41F466EC8DD3869",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/E5CA126979E2FFB4C70C072F8094D07ECF27773B37623AD2BF7582AD0726F0F3",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/EBA52E7239CC1BC7F8ECF4F41523B6DD477FF067FD953315704A9A4FD2131B48",original:"Sui"}],["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}]]]];mainnet.mainnetChainTokens=(0,index_js_1$4.constMap)(mainnetTokenEntries,[0,[1,2]]);var testnet={};Object.defineProperty(testnet,"__esModule",{value:!0});testnet.testnetChainTokens=void 0;const index_js_1$3=utils,testnetTokenEntries=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x07865c6e87b9f70255377e024ace6630c1eaa37f"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05"}],["USDT",{symbol:"USDT",decimals:6,address:"0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49"}],["DAI",{symbol:"DAI",decimals:18,address:"0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7cd0e8ff09cEB653813bD3d63d0554c1CB4BFdf6",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB19693FEB013Bab65866dE0a845a9511064230cE",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x4C1b727f6df3B075E682C41a25687A69846aaC04",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xF6699D3f725C4b64Cc6010F2DF77B4B05C76Cd5C",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0d7A9Cdbb7C21E64825cF81750A5081a32aFb5d4",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xe092525a787CD56B901279b5864a224c22B95B72",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x0dc83BB61008A5E1194fe50fA9E474713C1AEcD7",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x494701CE895389d917a938f0ea202D4eB9684Eab",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x70F7360C49D227ccBbb98fB7B69B7CDB651195bb",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd7A89a8DD20Cb4F252c7FB96B6421b37d82cE506",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xd962F26D93c4eF609Ba00Ed6101326A1490B9489",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x76e39239e40857030D6f4D8545EFbd71F904d344",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x5aA392243437dDC8b4d86bfC90DF296908740A41",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x679874fBE6D4E7Cc54A59e315FF1eB266686a937"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x575D93A2278FbF4E8Bd3d51B539a6E237C3F17c5",original:"Arbitrum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x57A52B6F0b393AF7d36116183cA83E584e636eA4",original:"Solana"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f"}],["SEI",{symbol:"SEI",decimals:6,address:"0xd68df72136207E9471C915cf1B6Cf43D587D4E0A",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x327e0c7D5cFa65d4f9E358dC9fA4446C49dBcB6C",original:"Klaytn"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0xc6735cc74553Cc2caeB9F5e1Ea0A4dAe12ef4632",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x543237045a106D7fd2eE3e2B44b5728e70BDe9c3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x02E30E84161BE1aBfcBB2b154B11De4C2b5E0a32",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x87374d35C5F1bD78c2b1da383F460e154e7D3E5e",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x0C63D8ADB69204b2946DcB945a6f16d97C255eE2",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x51f3D34651523dD8CC4872ee261A1B0B3f73AceF",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xcc048C353Fdc2f5c378B7BCab9B240Ca2b619f1c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x84aa9100a36D6c3514605F62342abF3cE77D5b97",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xAd027790A64331A11bd1b651739450cC9Dc0098F",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x693b9AC2199d989bDA8C9C5b5d7A3680B4f40dAa",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x0284B4994456Fae4cb56E4d33228d51B674EAD1b",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x3dadA6f29f80A0427C4989E17a5a2ada17441841",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x226B436043B537BD158e84fA199E2Aa36bf364f8",original:"Aptos"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xC77d781f38Cf52F8Ea0b4c0F22312bB9A34911b5",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x68C4365d5229A44D9A59058B65500365492b5307",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf6CC0Cc8D54a4b1A63a0E9745663e0c844Ee4D48",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xBcD7917282E529BAA6f232DdDc75F3901245A492"}],["SEI",{symbol:"SEI",decimals:6,address:"0xc5C0229B38564E1E8083031405Be8d6E6e3Bc462",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x7b34f3711705eB2963fB856cda063C979de4749e",original:"Klaytn"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x861B5C16A2EcED022241072A7beA9D530b99EB6f",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xe94AaBAdB6F833f65B8A9AdDD030985B775188c9",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x45082C9Fc6BBCa72288F47Fad21dE0BECC75759E",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7FCDA925f0994121752ca14C334297BeC3d0eA9E",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x51a3cc54eA30Da607974C5D07B8502599801AC08",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x60845E2503Fcd945b3A6f0bC077a31CC913E654D",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xe3aA397cb6d93Cce4fAd9Cc9E796CCa5E50FB5ED",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x63108fC941F3cCE0B484De19746B5Af949EAF6eE",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xE7176110261ef2FfC885dd568C1093f58F0aEee9",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x79A8FFFCED130314eCC8782C846c4d8d4867A900",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x79D34FDb686B5D139949E4F92D83EEe376489176",original:"Klaytn"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0xbB5A2dC896Ec4E2fa77F40FA630582ed9c6D0172",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x63A30f239DC8d1c17Bf6653a68Fc6C2F83641E6d",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3989C9c4bdd30400E6Aa90990683EAd6a1638A16",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x78554394273957d7e55afC841aeA27Cce469AEd4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x5425890298aed601595a70AB815c96711a31Bc65"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x36Bd1562F874941eE62Ebb2b3A45B4A88A9df90e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x301587BF484756441de43E522027e3751871237B",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xc07c754ef7473d315D973F7D9F7858C2eCe0a0a6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x7E1779F65B644E5f98DdC4D2cB0A0106a7E6d9e1",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4beDc7471374d7479120E44ea9593eBB85f48AD9",original:"Arbitrum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xfe2eCDD1708aaebf1cF802C6124fAFb18B22dfEE",original:"Sei"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x758FEebDDeC06f4bCcEc8F756C8efBD35d5b7124",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xDF7928AF5B33F7de592594958D8d6Ff8472Eb407",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x32eF19C4b3DF65a24972A489e70AdDef5E54262C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xE4FE5DF2084f9D81595e4fcba2399020FBE7b233",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x47a4C4c0f96D6CBe5b5C0A46CB0E22d6A17F1430",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x0f545Be981C37fB15ab7c65404648761e99016e4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}],["CELO",{symbol:"CELO",decimals:18,address:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAb2297E8994149BA91737944E40891881aF762a4",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x456e08952f9091B6c268dC0cECad53d141152C59",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x685B29e17440c42758Ab3F80FD3603EF01bebe9A",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x01950A33DfFa63E6Bc23b5dB440505581A4cc0e7",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x66E080407407620844fE2083c33108BE55E087bc",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x832e8050D6c64724500DE9B0ffe1CAc6c570a26d",original:"Sei"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x898471a82737dFFfB61915F9e8381e279076D72b",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB0524bEF6c61c6150B340b2828a890fD8dEa60C0",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xeBB3fF6E5d61d3793Fdb60f7942BA78E636019f6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7a56409988BBF8758b3ba412b9c7E3FE504C8544",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xDDB349c976cA2C873644F21f594767Eb5390C831",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAC0a2fF7DD597de863878a3372142b07B614C125",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x0C4AbF95Ff3d82d1F02f55e65050eA5bA062606E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x28E768a51D19dcB753a24B79D1e89c92fee094Ba",original:"Optimism"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x01a050Fc725F4E99aAD43Eb6f8481f38ee6231aD",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x05Efb4aC79ef48a4830f517834c6f5f039F16832",original:"Sei"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xd27d8883E31FAA11B2613b14BE83ad8951C8783C",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xE5dE10C4b744bac6b783fAF8d9B9fDFF14Acc3c9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x7f5Ca1bcFb38fDF4c0E0646FCbf3FA87740ff65D",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xc31EC0108D8e886be58808B4C2C53f8365f1885D",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xD2888f015BcB76CE3d27b6024cdEFA16836d0dbb",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x15025b956969DD8F1d0CD69959Ad97128F8f6D69",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xf98E630a3DD4F21Cab7a37Bb01209cb62959169D",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7480641F5B00b4Fc39d6AaeC4Cd851EdEA7f31CF",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf82E21cE03471983Afb9c2E3789Aa13a2d7242E8",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x1EdDe35B7e058194B457B8621285EaFA710f01ea",original:"Sei"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7VPWjBhCXrpYYBiRKZh1ubh9tLZZNkZGp2ReRphEV4Mc",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"2BAqec7Qof3Y7VJatwFsRHUNSQBSkzaEsT1V5bW6dbZY",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"3WK3mEDNPrNuQReBvM28NcsqrExMnPxD9pPJmgrUeKKH",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ACbmcQxbbhiXWM1GmapUSMmBYKMvnFLfAAXKqdo8xKwo",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"}],["SUI",{symbol:"SUI",decimals:8,address:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",original:"Aptos"}],["WETHbase",{symbol:"WETH",decimals:8,address:"EKZqcBZ3Y7YTDinpecA7SxRp9B4s1m99VHJ9jpvyTwzW",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"FMYvcyMJJ22whB9m3T5g1oPKwM6jpLnFBXnrY6eXmCrp",original:"Ethereum"}],["tBTCoptimism",{symbol:"tBTC",decimals:8,address:"HsPvRT3J7kuitNvNHogyZeSEagcqAqwwq2FPgrGfgApy",original:"Optimism"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["SEI",{symbol:"SEI",decimals:6,address:"8LFdfuhbfdH8oBzSKDgfPAxvLW24dCM9ttjBrBobURuk",original:"Sei"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0x72831f626b1f0e11be201893d5cb641917730b1ccac778e4a77f8ab2052f0784::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x9e4396c19ec1c5f2214c79d3af3f31e59869640305560f8f2499c36fa9c8e0f2::coin::COIN",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0xe6fc78aa2b52b785bdcb67901cd85793a0b593248f315cb755974d23d0fcb837::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xa516bcbf83b29a2944bb53ec9f934ea7d78c3626d3ae411d2fb9dcb977522e67::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN",original:"Aptos"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xbbc39df58a11072ceeac1f685393ca912d1a1bfd6e772053ec5a544f36124da::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x7b442b988864149dedfb9b6a75a88c7c33b9ddd3d15a87bf25104e1fcdd680ab::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x4125940814a0ca87465a1a59092a7344633ad03b48ad7cda36d799d8558012c1::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xacf6784120b221a077ab0b84acc0b76930779eb55f157ea2492be4a60b808f6::coin::COIN",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x22c5cdaabaae4b6d3351f9bba9511b0aebb0662a6c209a360f0776e1e77a8438::coin::COIN",original:"Sei"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0x381775005cb32cdd3dbf935ae1b978ed40d309c72b009cd4a812aab6d991418a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x5f229253e2b2d03fb909f565feca49452582bd633a5816e5ce30aa593cb49d8a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x02ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x3f0fdd44d96dae888d6c576218cf655458316a27c7bdc46537f61e531b10d3df::coin::T",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xcff1d9820851201436ad225dcc4374a2d15f52a74109283eb9881be799677e92::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xcfaabb3cb08ad612905dd6b2593d044ce857dfe5360148333b4635fb57d4d13f::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x6e2d5d1a6d6d0e0c5db506ce64ead0530847a48b96516abbb08cdebe43fe3036::coin::T",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xcae0ba0b7a435730ab65f1c8357d213e5cf9d4b377b96761745a8edaf9c9df6d::coin::T",original:"Sei"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x44D627f900da8AdaC7561bD73aA745F132450798",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5010B0988a035915C91a2a432085824FcB3D8d3f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x31B2BAEE47Dc5Fc06baEC1BF73C124031b44fB97",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xFFB5d863d5132523d013338845A1Bb01EDd440f4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x9DeF11E63C23c71dE3716b81dD2Fdad2B24b8b7F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x410B0EE532EFfB18fa4d90cc095B1CD58aC43d5a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x4C5208246676486064c501E1DAF2dD21596Bc5f5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xB4808E58713112AbAbB8167C7187F8988df38bbD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x72C56041ea5fe8bDE99b2A123fb5964cDE8C7FE9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xCEc03b5710a464F4354AF35ebD0310238F656DFf",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x6Fb1dE2372e48fe66c84cf37cc2fb54EaEe62988",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xEe0fC8BECD593B41AACBd93936fDAbc2A444370A",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd934A15FfA3945DD0Ba2cb7b4174024261A14874",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x8eD43aBdc4f836aa60933177B31AC358ea09f27E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x5c443C05C72F0660502d88642c807020cc9b71A2",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xf175520c52418dfe19c8098071a252da48cd1c19"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x0219441240d89fAc3fD708d06d8fD3A072C02FB6",original:"Ethereum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x783349cd20f26CE12e747b1a17bC38D252c9e119"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x9dA16Ae62De05bcb4606c4BFbB54046872501Bd0",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x7B5edB2B3d2BeA8057a736B82AC6EF35c70bdadD",original:"Sei"}]]],["Sei",[["WETH",{symbol:"WETH",decimals:8,address:"sei13pzlt9etk44hj22lckncvampq2qu2gxv6r6774f3hma4vc07wqgsmftjx7",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"sei1nj32y0h0vzam33ay42h2majlfk7tdkqcuk84srn0v2a52kmujgfsyfe78f",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"sei1dc94as3vgxn3qkr5h0lnnrep69mtfku6jg4t94gfkunuyzr5g5eqyqvj9p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"sei10a7see3f9t2j9l8fdweur3aqy4zgvz583a268hhhln3yzps6l5mqnl4ua6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"sei1mgpq67pj7p2acy5x7r5lz7fulxmuxr3uh5f0szyvqgvru3glufzsxk8tnx",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"sei1uyce5s6cc8hveg0maq2lg7wm6v6fvwqmznypj559nzf9wr9tmw3qnd3ce7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"sei1cr3j7rxq0dhq04ksftmj8n2w096w9g7ck8fngkvk2lrmy3qwz56q9thu9u",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"sei1yw4wv2zqg9xkn67zvq3azye0t8h0x9kgyg3d53jym24gxt49vdyswk5upj",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"sei140m6xagmw0zesejzhsvk46zprgscr7tu94h36rwsutcsxcs4fmds9sevym",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"sei1at3xuugacwgu3ppx7fxzmtr3q6m3ztjuean9r2mwcnqupw28yezs7unxgz",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"sei1rhpcprr2pffe6ydf078a0qeslhnlywxh2t3wjax4489z0m29cj9swj5khc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"sei1em74y5sts4h8y5zuhfdn4w5g8zs285qld3kczpk6rh32jpvjyqqsvv0pdt",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"sei1pf5j3dgngm8yj2xkwmvmvt87g4vyc0szpjz92q8ly9erh23ytn4s983htv",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:8,address:"sei1kdqylzcv86t7slg8m30mlfgna9xsrusghdgnavvurkv0rku7jvqqta7lka",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"sei1lf6ghmrkd7gn5jlj6xw64suycpjy7g4s5q92fc2gef4f8q3znanq95mmgv",original:"Base"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"sei1aj3uu9ejt8fk6rpjfhzluqnzqmv3enlndjmt8llkr7dn2dtz55xst4s3mn",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"usei"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0x285d75E04D78F53f4Ed29A506a7e8479EEf3035f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x42A212A2E7eA8feF4ED28F439F16A6ABDd34DA35",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x2B732F5ad6117818Ad3b7aC73C16033F6ECD78E5",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x50FD4064cC536a964E2E0Dc7B3fE2313Ab386bEA",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB039aC4Fa8Ed99d30C2f7D791294A9d5FAd698eF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x92b0C4D27a05921Ded4BB117755990F567aEe049",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xb39697B8BA5df91A169690DfEf88B911436619F2",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xa507f7566B8aDE000E886166B95964677ef3b3Ef",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9592eE6eD1D9E611b7aa6F20CCbD7Ba571Be8bdd",original:"Celo"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xF8cbdc4E54281b801f182039c250Ad6d13818250",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xe64e2139fdf6Ee7e3795FE51955e21bA3d9eB9F7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa81C3BEf2d6f10213b860458DC119666C0ba13bf",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xfd064A18f3BF249cf1f87FC203E90D8f650f2d63"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xFd903eA23Bf65f26FdAf2eeb589cf007b108882E",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xbC4CB3CD7186fD457C072298C48d0eDf7213CAEa",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x97B5fE27a82b2B187D9a19C5782d9eB93B82DaC3",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x85727F4725A4B2834e00Db1AA8e1b843a188162F"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x227115F659f7c2939D23FedE68583F5291c395A6",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x90eC817A1f7C1Eb18dD2985C534A78dD88747F47",original:"Sei"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0x33Db338718aC89Cd8DB13B56af05be3a3029BBE5",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x0382F518AcE1a86224c78B7CDfa67B9774055A1b",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x427B5a0b0384D7FD3AF81805A166a2d9C1116D7d",original:"Polygon"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x81BA80f5820273AA965086e710042d737993f12c",original:"Fantom"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x99436d62259532E0407A7aE78A3b48D119B13903",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x06EcAF6638070Ccf3b3dEA421b3becAA57f3e559",original:"Solana"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x04b559971c90Dfb12D9795E95883e55f2fcf34Ed",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x5D89a5BcB86F15a2CCAb05e7E3bEE23fDF246a64",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE04e0F5f2C6ce45A40482C3AB92CA91D6741D717",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x1a53759DE2eADf73bd0b05c07a4F1F5B7912dA3d"}],["SEI",{symbol:"SEI",decimals:6,address:"0xE12be3D96fE101246bF2d290184B0eC6D35d02CA",original:"Sei"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfs63pmq2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1rl8su3hadqqq2v86lscpuklsh2mh84cxqvjdew4jt9yd07dzekyqkmcy3p",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1v2efcqkp2qtev06t0ksjnx6trxdd0f7fxg2zdrtzr8cr9wdpjkyqkv9ch6",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1uuwad4khwek2h05gmkktzmh8l4t0ep54yydlsqg0l4y2uh3tqfyq3an9k6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1vhjnzk9ly03dugffvzfcwgry4dgc8x0sv0nqqtfxj3ajn7rn5ghq6whn2p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole1335rlmhujm0gj5e9gh7at9jpqvqckz0mpe4v284ar4lw5mlkryzsnetfsj",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1tqwwyth34550lg2437m05mjnjp8w7h5ka7m70jtzpxn4uh2ktsmq8dv649",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1qum2tr7hh4y7ruzew68c64myjec0dq2s2njf6waja5t0w879lutqv2exs9",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1808lz8dp2c39vhm9gnemt7zzj95nvrmjepxp7v3w4skzrlyzcmnsxkduxf",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1e8z2wjelypwxw5sey62jvwjyup88w55q3h6m0x8jtwjf6sx5c7ys4mzydk",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole10sfpr8ykh9xn93u8xec4ed3990nmvh86e0vaegkauqhlkxspysyqwavrxx",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1gryz69gzl6mz2m66a4twg922jtlc47nlx73sxv88lvq86du5zvyqz3mt23",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole1ced9v4plkf25q8c6k9gz0guq6l4xyjujpjlvxfg8lpaqywkmamashswq7p",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole1yf4p93xu68j5fseupm4laj4k6f60gy7ynx6r5vvyr9c0hl3uy8vqpqd6h0",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1u8rft0gee23fa6a0t4t88ualrza5lj8ses4aur0l66c7efpvjezqchv34j",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole186k0cp83c3wyvapgh8fxf66ededemzrfujvjfsx0xw3vr0u9g8sq2y30vx",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"wormhole1s3pk90ccfl6ueehnj8s9pdgyjjlspmr3m5rv46arjh5v4g08dd0qrchjrk",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole12eu6c7f67l8gdl2lt0hz0dgdh24dhune6wjgy5t0es3tpfzhc3yspwnpfy",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1u5z7097gm57zvun9wqsx6jxej2gpdjhg9l9xfe58rhpm29rtjmfqfnl4yv",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"wormhole10p89p4zh00dwdg8h52sysrqm0l2j47jj3kmg93pnz2a039ucw7esgl5vl9",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1ja4txt6m0jjq0gmjtmv442f8wk0r5f5apaya0z55wwlrpg3p5xaq3qxw7h",original:"Base"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1rm8ztmk20lrd6ex8uqq3yu7a6eyfjwvg53pcuuj22ffe2y8r3yzqr8j4v9",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1u2zdjcczjrenwmf57fmrpensk4the84azdm05m3unm387rm8asdsxqwfeu",original:"Ethereum"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/A4A8B6AE885DACD75B228031C0D18AD7EE1B914CED30C9F6F4230DDBD4A1CF2B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/3BB8C4BD1C90599B2FA5B5839DD0813EF7B94B0BD0904C4C5A61498AE81E0EE9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/1941ED1147121BA7DF35559597B6EB3251844DBBBE4557337D957CB95E0978C2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/2864B3418775DDB90EE1410EFF822FDA94E9F0FF77FC8771644761C79EDFE7A3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/43F15553F8598186394E81E18604B8B4532B2D7E855D9FFE68A2EF6802C18BE4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/65A67BA10DE2378B32AC5A822321E370966D3D4E180DEFB4C3C5245B21088DDF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/99EAD53D49EC7CC4E2E2EB26C22CF81C16727DF0C4BF7F7ACBF0D22D910DB5DE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/EC9FA5074F34F0644A025BB0263FDAE8F364C5E08523F6464465EF1010FF5A3A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/145C6B688F70B0C2F6D87546A5974A75CE75B3A2940275B750E65797B2996157",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/3A4EA3F8096856C0802F86B218DD74213B4C10224AA44BBD54AEAAA2ABF078BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/7DB06BB67428510AFC3967DC90F5632C679D55D8C487A951A0EEC3160AF492A6",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/B5D53105A7AA2BEC4DA4B3304228F3856219AE7CF84A9023043C481629E3E319",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/35A0467DE5744662078DE8B36CBBE0CF0EAA022565A3E6630CB375DDEBB96E05",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/30778BA41ADF2D8A70B90DB53C2E0251731A40276EF6737215BB1A6ED9E90078",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/7C495BD95757ED662A897C139F1C9F18275A86EE7203A0B073E2DB12B1E19D63",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/221A4AADF7972F3BB8F48A6CA984FF0AE65B5D973FF1A695B9642AD702F51789",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/06ED2700071B5A9C582F51A556537DA94E69EF547E7E6CCD8BFA3D95C818A525",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/80B3FECB24A4CE94537444E5BF937AC4C08A39BF90D59620D278FA185BD2B148",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/0A98A3947189D7C368170C76C3EF49486DDBE095F34B72A3C7F92AEBE1013A1D",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/A45069EA82C933945973E66E4222EEE4624498D4483508FE9BEBF9D519F2132F",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/2E4F8BC7F7AF33752CF7E290CAD4417EE67CD18FFC0D099E6519A440E588E0CE",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/C66B7DB3ED665D2F5FE8ED15E88B5913A37D80601E161C5E53A743DE12C0FB85",original:"Ethereum"}]]],["Cosmoshub",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/77FE9153FA76C3107CB9F6633AC33509A58529E9622327F216BA8107C79C2DE3",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/D0EC31D1176BB69EA1A7CF7172CA0380B7AF488AFC6D55B101B8363C2141CD4F",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/755FBC53FFB46FB505B5269F9BEDF47041F2A0EF2FF8D0520315403E5925C80A",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/5F21E975410DA22AF565B1772DC45AD0BD5F6DA004981EBE291763F3D2C72A96",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/37FB599287C6963C413E915FDE83EFA69A3CE8147675DD5A7F974B45F39C8A31",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5B0D5974A56332468DD4B2D07C96A7386FCF8FE7303FF41234F90E410EF51937",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/BAEAC83736444C09656FBE666FB625974FCCDEE566EB700EBFD2642C5F6CF13A",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F09E98FA8682FF39130F171E9D89A948B0C3A452F2A31F22B6CC54A3AAE1CD4A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/919D8F138B7E71BB067C7301AB5C2D48415E8C3A2D9187861245CEC668F88E3C",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/009206915358A002C852A2A2CBEDB8446D2D02E519C815087A01F8BDB4DF77BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/1EEDF447A6B046B20C00B1497BED5947219AEEBE0D9A85235C85133A554DF7A4",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/D3EA463A51E31B2B30BED1978575CAC145DBAB354B8A0EA5D4CFB12D737AF790",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/26D8D6C63C8D37A5127591DDA905E04CC69CBD3A64F9DA3B1DA3FB0B6A7D9FA5",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/129EC6B8A41BE07F94DD267F552F4AE1D5EAEBB51634A1468556AF06C10C2692",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/0CCA5EB15BC2FE474E71DBC9698302CDE260B6F6548F91C30002F7CBF228197B",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/AB4046AF5B6F146C006DE4DECAD929D24F762A701E09EC8B29000EC63A6E649B",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/6D1B6A7A9EF692A279A6B5994C98C0D598D003D9203BE8309F14B6E57A58506E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/A0298483510D803A045AA7F49CCBD0F9D01010FE0B1A346EBDFFF4BA820C3D21",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/CE3F2FE630DA6A1187F085CDC8D59BA8B20DA48F4866F2D71C5AB7A1D5859933",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/97035986A4BD0AF555713355A02EA31A4526616B6543E019E0D750007FABE06C",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8560BA5F45C95AE716C05978E364F50C98347ACBEC745840C30F91611FA36698",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/5BB02667F9F0C8284FCF7716065C2779039817FBCB91E937F5149FE89FD8F202",original:"Ethereum"}],["ATOM",{symbol:"ATOM",decimals:6,address:"uatom"}]]],["Evmos",[["EVMOS",{symbol:"EVMOS",decimals:18,address:"atevmos"}]]],["Kujira",[["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}]]],["Sepolia",[["ETHsepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHsepolia"}],["WETHsepolia",{symbol:"WETH",decimals:18,address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}]]],["ArbitrumSepolia",[["ETHarbitrum_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum_sepolia"}],["WETHarbitrum_sepolia",{symbol:"WETH",decimals:18,address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}]]],["BaseSepolia",[["ETHbase_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase_sepolia"}],["WETHbase_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]],["OptimismSepolia",[["ETHoptimism_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism_sepolia"}],["WETHoptimism_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]]];testnet.testnetChainTokens=(0,index_js_1$3.constMap)(testnetTokenEntries,[0,[1,2]]);Object.defineProperty(tokens$1,"__esModule",{value:!0});tokens$1.getCanonicalToken=tokens$1.getTokenByKey=tokens$1.getTokensBySymbol=tokens$1.getTokenByAddress=tokens$1.getNative=tokens$1.getTokenMap=void 0;const tokens_js_1=tokens,mainnet_js_1=mainnet,testnet_js_1=testnet;function getTokenMap(s,j){if(s!=="Devnet"){if(s==="Mainnet"){if(!mainnet_js_1.mainnetChainTokens.has(j))return;const $=mainnet_js_1.mainnetChainTokens.get(j);return Object.fromEntries($.map(([_e,et])=>[_e,{...et,chain:j,key:_e}]))}if(s==="Testnet"){if(!testnet_js_1.testnetChainTokens.has(j))return;const $=testnet_js_1.testnetChainTokens.get(j);return Object.fromEntries($.map(([_e,et])=>[_e,{...et,chain:j,key:_e}]))}throw new Error("Unsupported network: "+s)}}tokens$1.getTokenMap=getTokenMap;function getNative(s,j){const $=getTokenMap(s,j);return $?tokens_js_1.filters.native($):void 0}tokens$1.getNative=getNative;function getTokenByAddress(s,j,$){const _e=getTokenMap(s,j);return _e?tokens_js_1.filters.byAddress(_e,$):void 0}tokens$1.getTokenByAddress=getTokenByAddress;function getTokensBySymbol(s,j,$){const _e=getTokenMap(s,j);return _e?tokens_js_1.filters.bySymbol(_e,$):void 0}tokens$1.getTokensBySymbol=getTokensBySymbol;function getTokenByKey(s,j,$){const _e=getTokenMap(s,j);return _e?tokens_js_1.filters.byKey(_e,$):void 0}tokens$1.getTokenByKey=getTokenByKey;function getCanonicalToken(s,j,$){const _e=getTokenByKey(s,j,$);if(!_e)return;if(!_e.original)return _e;const et=getTokensBySymbol(s,_e.original,_e.symbol);if(et)return et.find(tt=>!tt.original)}tokens$1.getCanonicalToken=getCanonicalToken;var types$1={},contracts={};Object.defineProperty(contracts,"__esModule",{value:!0});contracts.getContracts=void 0;const sdk_base_1$7=require$$0$8;function getContracts(s,j){const $={coreBridge:sdk_base_1$7.contracts.coreBridge.get(s,j),tokenBridge:sdk_base_1$7.contracts.tokenBridge.get(s,j),nftBridge:sdk_base_1$7.contracts.nftBridge.get(s,j),relayer:sdk_base_1$7.contracts.relayer.get(s,j),tokenBridgeRelayer:sdk_base_1$7.contracts.tokenBridgeRelayer.get(s,j)};return sdk_base_1$7.contracts.circleContracts.has(s,j)&&($.cctp=sdk_base_1$7.contracts.circleContracts.get(s,j)),sdk_base_1$7.contracts.gateway.has(s,j)&&($.gateway=sdk_base_1$7.contracts.gateway.get(s,j)),sdk_base_1$7.contracts.translator.has(s,j)&&($.translator=sdk_base_1$7.contracts.translator.get(s,j)),sdk_base_1$7.contracts.portico.has(s,j)&&($.portico=sdk_base_1$7.contracts.portico.get(s,j)),$}contracts.getContracts=getContracts;Object.defineProperty(types$1,"__esModule",{value:!0});types$1.buildConfig=types$1.isTransactionIdentifier=types$1.resolveWrappedToken=types$1.universalAddress=types$1.canonicalAddress=types$1.isSameToken=types$1.isTokenId=types$1.nativeTokenId=types$1.isNative=void 0;const sdk_base_1$6=require$$0$8,tokens_1$1=tokens$1,address_js_1$1=requireAddress(),contracts_js_1=contracts;function isNative(s){return typeof s=="string"&&s==="native"}types$1.isNative=isNative;function nativeTokenId(s){return{chain:s,address:"native"}}types$1.nativeTokenId=nativeTokenId;function isTokenId(s){return typeof s=="object"&&s.address!==void 0&&s.chain!==void 0&&(0,sdk_base_1$6.isChain)(s.chain)}types$1.isTokenId=isTokenId;function isSameToken(s,j){return s.chain!==j.chain?!1:isNative(s.address)&&isNative(j.address)?!0:canonicalAddress(s)===canonicalAddress(j)}types$1.isSameToken=isSameToken;function canonicalAddress(s){return isTokenId(s)&&isNative(s.address)?s.address:s.address.toNative(s.chain).toString()}types$1.canonicalAddress=canonicalAddress;function universalAddress(s){if(isNative(s.address))throw new Error("Invalid address, cannot convert the string literal `native` to a Universal Address");return s.address.toUniversalAddress().toString()}types$1.universalAddress=universalAddress;function resolveWrappedToken(s,j,$){let _e;if(isTokenId($)){if(!isNative($.address))return[!1,$];_e=$.address}else _e=$;if(isNative(_e)){const tt=(0,tokens_1$1.getNative)(s,j);if(!tt)throw new Error("Invalid destination token");const nt=tt.wrappedKey,rt=(0,tokens_1$1.getTokenByKey)(s,j,nt);if(!rt)throw new Error("Invalid wrapped token key: "+nt);return[!0,{chain:j,address:(0,address_js_1$1.toNative)(j,rt.address)}]}return[!1,{chain:j,address:_e}]}types$1.resolveWrappedToken=resolveWrappedToken;function isTransactionIdentifier(s){return s.chain!==void 0&&s.txid!==void 0}types$1.isTransactionIdentifier=isTransactionIdentifier;function buildConfig(s){return sdk_base_1$6.chains.map($=>{const _e=(0,sdk_base_1$6.chainToPlatform)($);let et="";try{et=sdk_base_1$6.nativeChainIds.networkChainToNativeChainId.get(s,$)}catch{}const tt=(0,tokens_1$1.getTokenMap)(s,$),nt=tt?Object.values(tt).find(ot=>isNative(ot.address)&&ot.wrappedKey):void 0,rt=nt?tt[nt.wrappedKey]:void 0;return{key:$,platform:_e,network:s,chainId:(0,sdk_base_1$6.toChainId)($),finalityThreshold:sdk_base_1$6.finality.finalityThreshold.get($)??0,blockTime:sdk_base_1$6.finality.blockTime.get($)??0,contracts:(0,contracts_js_1.getContracts)(s,$),nativeTokenDecimals:sdk_base_1$6.decimals.nativeDecimals(_e),nativeChainId:et,tokenMap:tt,wrappedNative:rt,explorer:sdk_base_1$6.explorer.explorerConfigs(s,$),rpc:sdk_base_1$6.rpc.rpcAddress(s,$)}}).reduce(($,_e)=>({...$,[_e.key]:_e}),{})}types$1.buildConfig=buildConfig;Object.defineProperty(chain,"__esModule",{value:!0});chain.ChainContext=void 0;const tokens_1=tokens$1,address_js_1=requireAddress(),protocol_js_1=protocol,types_js_1=types$1;class ChainContext{constructor(j,$,_e){Mn(this,"network");Mn(this,"chain");Mn(this,"config");Mn(this,"platform");Mn(this,"rpc");Mn(this,"protocols",new Map);Mn(this,"supportsWormholeCore",()=>this.supportsProtocol("WormholeCore"));Mn(this,"getWormholeCore",()=>this.getProtocol("WormholeCore"));Mn(this,"supportsTokenBridge",()=>this.supportsProtocol("TokenBridge"));Mn(this,"getTokenBridge",()=>this.getProtocol("TokenBridge"));Mn(this,"supportsAutomaticTokenBridge",()=>this.supportsProtocol("AutomaticTokenBridge"));Mn(this,"getAutomaticTokenBridge",()=>this.getProtocol("AutomaticTokenBridge"));Mn(this,"supportsCircleBridge",()=>this.supportsProtocol("CircleBridge"));Mn(this,"getCircleBridge",()=>this.getProtocol("CircleBridge"));Mn(this,"supportsAutomaticCircleBridge",()=>this.supportsProtocol("AutomaticCircleBridge"));Mn(this,"getAutomaticCircleBridge",()=>this.getProtocol("AutomaticCircleBridge"));Mn(this,"supportsIbcBridge",()=>this.supportsProtocol("IbcBridge"));Mn(this,"getIbcBridge",()=>this.getProtocol("IbcBridge"));Mn(this,"supportsPorticoBridge",()=>this.supportsProtocol("PorticoBridge"));Mn(this,"getPorticoBridge",()=>this.getProtocol("PorticoBridge"));this.config=$.config[j],this.platform=$,this.chain=this.config.key,this.network=this.config.network,this.rpc=_e}getRpc(){return this.rpc=this.rpc?this.rpc:this.platform.getRpc(this.chain),this.rpc}async getDecimals(j){if((0,types_js_1.isNative)(j))return this.config.nativeTokenDecimals;if(this.config.tokenMap){const $=(0,types_js_1.canonicalAddress)({chain:this.chain,address:j}),_e=(0,tokens_1.getTokenByAddress)(this.network,this.chain,$);if(_e)return _e.decimals}return this.platform.utils().getDecimals(this.chain,await this.getRpc(),j)}async getBalance(j,$){return this.platform.utils().getBalance(this.chain,await this.getRpc(),j,$)}async getLatestBlock(){return this.platform.utils().getLatestBlock(await this.getRpc())}async getLatestFinalizedBlock(){return this.platform.utils().getLatestFinalizedBlock(await this.getRpc())}async parseTransaction(j){return this.platform.parseWormholeMessages(this.chain,await this.getRpc(),j)}async sendWait(j){return this.platform.utils().sendWait(this.chain,await this.getRpc(),j)}getToken(j){if(this.config.tokenMap&&j in this.config.tokenMap)return this.config.tokenMap[j]}async getNativeWrappedTokenId(){if(this.config.wrappedNative){const{address:$}=this.config.wrappedNative;return{chain:this.chain,address:(0,address_js_1.toNative)(this.chain,$)}}const j=await this.getTokenBridge();return{chain:this.chain,address:await j.getWrappedNative()}}async getTokenAccount(j,$){return{chain:this.chain,address:j}}supportsProtocol(j){return(0,protocol_js_1.protocolIsRegistered)(this.chain,j)}async getProtocol(j,$,_e){if(!$&&this.protocols.has(j))return this.protocols.get(j);const et=$?{...this.config.contracts,...$}:this.config.contracts,tt=_e??await this.getRpc(),nt=this.platform.getProtocolInitializer(j);let rt;if(_e){if($)throw new Error("Custom contracts are currently not supported with custom rpc connection. Add the contracts to the base config.");rt=await this.platform.getProtocol(j,tt)}else if((0,protocol_js_1.isVersionedProtocolInitializer)(nt)){const ot=await nt.getVersion(tt,et);rt=new nt(this.network,this.chain,tt,et,ot)}else rt=new nt(this.network,this.chain,tt,et);return $||this.protocols.set(j,rt),rt}}chain.ChainContext=ChainContext;var signer={};Object.defineProperty(signer,"__esModule",{value:!0});signer.isNativeSigner=signer.PlatformNativeSigner=signer.isSignAndSendSigner=signer.isSignOnlySigner=signer.isSigner=void 0;function isSigner(s){return isSignOnlySigner(s)||isSignAndSendSigner(s)}signer.isSigner=isSigner;function isSignOnlySigner(s){return typeof s=="object"&&"chain"in s&&typeof s.chain=="function"&&"address"in s&&typeof s.address=="function"&&"sign"in s&&typeof s.sign=="function"}signer.isSignOnlySigner=isSignOnlySigner;function isSignAndSendSigner(s){return typeof s=="object"&&"chain"in s&&typeof s.chain=="function"&&"address"in s&&typeof s.address=="function"&&"signAndSend"in s&&typeof s.signAndSend=="function"}signer.isSignAndSendSigner=isSignAndSendSigner;class PlatformNativeSigner{constructor(j,$,_e){Mn(this,"_chain");Mn(this,"_address");Mn(this,"_signer");this._chain=j,this._address=$,this._signer=_e}unwrap(){return this._signer}}signer.PlatformNativeSigner=PlatformNativeSigner;function isNativeSigner(s){return isSigner(s)&&"unwrap"in s&&typeof s.unwrap=="function"}signer.isNativeSigner=isNativeSigner;var rpc$1={};Object.defineProperty(rpc$1,"__esModule",{value:!0});var attestation={};Object.defineProperty(attestation,"__esModule",{value:!0});attestation.isIbcMessageId=attestation.isCircleMessageId=attestation.isWormholeMessageId=void 0;function isWormholeMessageId(s){return s.sequence!==void 0&&s.emitter!==void 0&&s.chain!==void 0}attestation.isWormholeMessageId=isWormholeMessageId;function isCircleMessageId(s){return s.hash!==void 0}attestation.isCircleMessageId=isCircleMessageId;function isIbcMessageId(s){return s.dstChannel!==void 0&&s.srcChannel!==void 0&&s.chain!==void 0&&s.srcPort!==void 0&&s.dstPort!==void 0&&s.sequence!==void 0}attestation.isIbcMessageId=isIbcMessageId;var protocols={},core$1={},core={};Object.defineProperty(core,"__esModule",{value:!0});(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(core,s)})(core$1);var circleBridge$1={},automaticCircleBridgeLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.automaticCircleBridgeNamedPayloads=s.circleConnectPayload=s.depositWithPayloadLayout=void 0;const j=require$$0$8,$=requireLayoutItems(),_e=vaa$1,et=tt=>[(0,$.payloadIdItem)(1),{name:"token",binary:"bytes",layout:[{name:"address",...$.universalAddressItem},{name:"amount",...$.amountItem}]},{name:"sourceDomain",...$.circleDomainItem},{name:"targetDomain",...$.circleDomainItem},{name:"nonce",...$.circleNonceItem},{name:"caller",...$.universalAddressItem},{name:"mintRecipient",...$.universalAddressItem},(0,j.customizableBytes)({name:"payload",lengthSize:2},tt)];s.depositWithPayloadLayout=et,s.circleConnectPayload=[(0,$.payloadIdItem)(1),{name:"targetRelayerFee",...$.amountItem},{name:"toNativeTokenAmount",...$.amountItem},{name:"targetRecipient",...$.universalAddressItem}],s.automaticCircleBridgeNamedPayloads=[["DepositWithPayload",(0,s.depositWithPayloadLayout)()],["TransferWithRelay",(0,s.depositWithPayloadLayout)(s.circleConnectPayload)]],(0,_e.registerPayloadTypes)("AutomaticCircleBridge",s.automaticCircleBridgeNamedPayloads)})(automaticCircleBridgeLayout);var circleBridgeLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.circleBridgeNamedPayloads=s.circleMessageLayout=void 0;const j=requireLayoutItems(),$=vaa$1,_e={binary:"uint",size:4,custom:0,omit:!0},et=[{name:"messageBodyVersion",..._e},{name:"burnToken",...j.universalAddressItem},{name:"mintRecipient",...j.universalAddressItem},{name:"amount",...j.amountItem},{name:"messageSender",...j.universalAddressItem}];s.circleMessageLayout=[{name:"version",..._e},{name:"sourceDomain",...j.circleDomainItem},{name:"destinationDomain",...j.circleDomainItem},{name:"nonce",...j.circleNonceItem},{name:"sender",...j.universalAddressItem},{name:"recipient",...j.universalAddressItem},{name:"destinationCaller",...j.universalAddressItem},{name:"payload",binary:"bytes",layout:et}],s.circleBridgeNamedPayloads=[["Message",s.circleMessageLayout]],(0,$.registerPayloadTypes)("CircleBridge",s.circleBridgeNamedPayloads)})(circleBridgeLayout);var circleBridge={};Object.defineProperty(circleBridge,"__esModule",{value:!0});circleBridge.isCircleTransferDetails=circleBridge.AutomaticCircleBridge=circleBridge.CircleBridge=void 0;const sdk_base_1$5=require$$0$8,circleBridgeLayout_js_1=circleBridgeLayout,utils_js_1=utils$2,index_js_1$2=vaa$1;var CircleBridge;(function(s){s.isCircleAttestation=j=>j.message!==void 0,s.deserialize=j=>{const $=(0,sdk_base_1$5.deserializeLayout)(circleBridgeLayout_js_1.circleMessageLayout,j),_e=sdk_base_1$5.encoding.hex.encode((0,utils_js_1.keccak256)(j),!0);return[$,_e]},s.serialize=j=>(0,sdk_base_1$5.serializeLayout)(circleBridgeLayout_js_1.circleMessageLayout,j)})(CircleBridge||(circleBridge.CircleBridge=CircleBridge={}));var AutomaticCircleBridge;(function(s){const j="AutomaticCircleBridge",$=["DepositWithPayload","TransferWithRelay"];s.getTransferDiscriminator=(0,sdk_base_1$5.lazyInstantiate)(()=>(0,index_js_1$2.payloadDiscriminator)([j,$]))})(AutomaticCircleBridge||(circleBridge.AutomaticCircleBridge=AutomaticCircleBridge={}));function isCircleTransferDetails(s){return s.amount!==void 0&&s.from!==void 0&&s.to!==void 0}circleBridge.isCircleTransferDetails=isCircleTransferDetails;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(automaticCircleBridgeLayout,s),$(circleBridgeLayout,s),$(circleBridge,s)})(circleBridge$1);var ibc$1={},ibc={};Object.defineProperty(ibc,"__esModule",{value:!0});ibc.isIbcTransferInfo=ibc.makeGatewayTransferMsg=ibc.gatewayTransferMsg=ibc.toGatewayMsg=ibc.isGatewayTransferDetails=ibc.isGatewayIbcTransferMsg=ibc.isGatewayTransferWithPayloadMsg=ibc.isGatewayTransferMsg=void 0;const sdk_base_1$4=require$$0$8;function isGatewayTransferMsg(s){return s.gateway_transfer!==void 0}ibc.isGatewayTransferMsg=isGatewayTransferMsg;function isGatewayTransferWithPayloadMsg(s){return s.gateway_transfer_with_payload!==void 0}ibc.isGatewayTransferWithPayloadMsg=isGatewayTransferWithPayloadMsg;function isGatewayIbcTransferMsg(s){return s.gateway_ibc_token_bridge_payload!==void 0}ibc.isGatewayIbcTransferMsg=isGatewayIbcTransferMsg;function isGatewayTransferDetails(s){return s.token!==void 0&&s.amount!==void 0&&s.from!==void 0&&s.to!==void 0}ibc.isGatewayTransferDetails=isGatewayTransferDetails;function toGatewayMsg(s){if(typeof s=="string"&&(s=JSON.parse(s)),isGatewayIbcTransferMsg(s)&&(s=s.gateway_ibc_token_bridge_payload),isGatewayTransferMsg(s))return s.gateway_transfer;if(isGatewayTransferWithPayloadMsg(s))return s.gateway_transfer_with_payload;throw new Error(`Unrecognized payload: ${s}`)}ibc.toGatewayMsg=toGatewayMsg;function gatewayTransferMsg(s){if(isGatewayTransferDetails(s)){const j=s.payload?sdk_base_1$4.encoding.b64.encode(s.payload):void 0;return makeGatewayTransferMsg(s.to.chain,s.to.address.toNative(s.to.chain),s.fee,s.nonce??Math.round(Math.random()*1e5),j)}return makeGatewayTransferMsg((0,sdk_base_1$4.toChain)(s.chain),s.recipient,BigInt(s.fee),s.nonce,s.payload)}ibc.gatewayTransferMsg=gatewayTransferMsg;function makeGatewayTransferMsg(s,j,$=0n,_e,et){const tt=typeof j=="string"?j:sdk_base_1$4.encoding.b64.encode(j.toString()),nt={chain:(0,sdk_base_1$4.toChainId)(s),recipient:tt,fee:$.toString(),nonce:_e};return et?{gateway_transfer_with_payload:{...nt,payload:et}}:{gateway_transfer:{...nt}}}ibc.makeGatewayTransferMsg=makeGatewayTransferMsg;function isIbcTransferInfo(s){return s.id!==void 0&&s.pending!==void 0&&s.data!==void 0}ibc.isIbcTransferInfo=isIbcTransferInfo;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(ibc,s)})(ibc$1);var portico$1={},portico={},porticoLayout={},tokenBridgeLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.tokenBridgeNamedPayloads=s.transferWithPayloadLayout=void 0;const j=require$$0$8,$=requireLayoutItems(),_e=vaa$1,et={binary:"bytes",size:32,custom:{to:rt=>(0,j.range)(rt.byteLength).map(ot=>String.fromCharCode(rt[ot])).join(""),from:rt=>new Uint8Array(rt.split("").map(ot=>ot.charCodeAt(0)))}},tt=[{name:"token",binary:"bytes",layout:[{name:"amount",...$.amountItem},{name:"address",...$.universalAddressItem},{name:"chain",...(0,$.chainItem)()}]},{name:"to",binary:"bytes",layout:[{name:"address",...$.universalAddressItem},{name:"chain",...(0,$.chainItem)()}]}],nt=rt=>[(0,$.payloadIdItem)(3),...tt,{name:"from",...$.universalAddressItem},(0,j.customizableBytes)({name:"payload"},rt)];s.transferWithPayloadLayout=nt,s.tokenBridgeNamedPayloads=[["AttestMeta",[(0,$.payloadIdItem)(2),{name:"token",binary:"bytes",layout:[{name:"address",...$.universalAddressItem},{name:"chain",...(0,$.chainItem)()}]},{name:"decimals",binary:"uint",size:1},{name:"symbol",...et},{name:"name",...et}]],["Transfer",[(0,$.payloadIdItem)(1),...tt,{name:"fee",...$.amountItem}]],["TransferWithPayload",(0,s.transferWithPayloadLayout)()]],(0,_e.registerPayloadTypes)("TokenBridge",s.tokenBridgeNamedPayloads)})(tokenBridgeLayout);(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.namedPayloads=s.porticoPayloadLayout=s.porticoTransferLayout=s.porticoFlagSetLayout=void 0;const j=require$$0$8,$=requireLayoutItems(),_e=vaa$1,et=tokenBridgeLayout,tt=(0,j.bitsetItem)(["shouldWrapNative","shouldUnwrapNative"]);s.porticoFlagSetLayout=[{name:"recipientChain",binary:"uint",endianness:"little",size:2},{name:"bridgeNonce",binary:"uint",endianness:"little",size:4},{name:"feeTierStart",binary:"uint",endianness:"little",size:3},{name:"feeTierFinish",binary:"uint",endianness:"little",size:3},{name:"padding",binary:"bytes",size:19},{name:"flags",...tt}],s.porticoTransferLayout=[{name:"flagSet",binary:"bytes",layout:s.porticoFlagSetLayout},{name:"startTokenAddress",...$.universalAddressItem},{name:"cannonAssetAmount",...$.amountItem},{name:"finalTokenAddress",...$.universalAddressItem},{name:"recipientAddress",...$.universalAddressItem},{name:"destinationPorticoAddress",...$.universalAddressItem},{name:"amountSpecified",...$.amountItem},{name:"minAmountStart",...$.amountItem},{name:"minAmountFinish",...$.amountItem},{name:"relayerFee",...$.amountItem}],s.porticoPayloadLayout=[{name:"flagSet",binary:"bytes",layout:s.porticoFlagSetLayout},{name:"finalTokenAddress",...$.universalAddressItem},{name:"recipientAddress",...$.universalAddressItem},{name:"cannonAssetAmount",...$.amountItem},{name:"minAmountFinish",...$.amountItem},{name:"relayerFee",...$.amountItem}],s.namedPayloads=[["Transfer",(0,et.transferWithPayloadLayout)(s.porticoPayloadLayout)]],(0,_e.registerPayloadTypes)("PorticoBridge",s.namedPayloads)})(porticoLayout);Object.defineProperty(portico,"__esModule",{value:!0});portico.PorticoBridge=void 0;const sdk_base_1$3=require$$0$8,porticoLayout_js_1=porticoLayout;var PorticoBridge;(function(s){s.deserializePayload=j=>(0,sdk_base_1$3.deserializeLayout)(porticoLayout_js_1.porticoPayloadLayout,j),s.serializePayload=j=>(0,sdk_base_1$3.serializeLayout)(porticoLayout_js_1.porticoPayloadLayout,j),s.deserializeFlagSet=j=>(0,sdk_base_1$3.deserializeLayout)(porticoLayout_js_1.porticoFlagSetLayout,j),s.serializeFlagSet=j=>(0,sdk_base_1$3.serializeLayout)(porticoLayout_js_1.porticoFlagSetLayout,j)})(PorticoBridge||(portico.PorticoBridge=PorticoBridge={}));(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(portico,s),$(porticoLayout,s)})(portico$1);var relayer={},relayerLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.deliveryInstructionLayout=void 0;const j=require$$0$8,$=requireLayoutItems(),_e=vaa$1,et={binary:"bytes",layout:[{name:"size",binary:"uint",size:4,custom:3*32,omit:!0},{name:"waste",binary:"uint",size:31,custom:0n,omit:!0},{name:"version",binary:"uint",size:1,custom:0,omit:!0},{name:"gasLimit",...$.amountItem},{name:"targetChainRefundPerGasUnused",...$.amountItem}]},tt={binary:"bytes",layout:[{name:"chain",...(0,$.chainItem)()},{name:"address",...$.universalAddressItem}]},nt=[{name:"chain",...(0,$.chainItem)()},{name:"emitterAddress",...$.universalAddressItem},{name:"sequence",...$.sequenceItem}],rt=[{name:"size",binary:"uint",size:4,custom:12,omit:!0},{name:"domain",...$.circleDomainItem},{name:"nonce",...$.circleNonceItem}],ot={binary:"switch",idSize:1,idTag:"keyType",layouts:[[[1,"VAA"],nt],[[2,"CCTP"],rt]]},it=at=>[(0,$.payloadIdItem)(1),{name:"target",...tt},(0,j.customizableBytes)({name:"payload",lengthSize:4},at),{name:"requestedReceiverValue",...$.amountItem},{name:"extraReceiverValue",...$.amountItem},{name:"executionInfo",...et},{name:"refund",...tt},{name:"refundDeliveryProvider",...$.universalAddressItem},{name:"sourceDeliveryProvider",...$.universalAddressItem},{name:"senderAddress",...$.universalAddressItem},{name:"messageKeys",binary:"array",lengthSize:1,layout:ot}];s.deliveryInstructionLayout=it;const st=[["DeliveryInstruction",(0,s.deliveryInstructionLayout)()],["RedeliveryInstruction",[(0,$.payloadIdItem)(2),{name:"deliveryVaaKey",binary:"bytes",layout:ot},{name:"targetChain",...(0,$.chainItem)()},{name:"newRequestedReceiverValue",...$.amountItem},{name:"newEncodedExecutionInfo",...et},{name:"newSourceDeliveryProvider",...$.universalAddressItem},{name:"newSenderAddress",...$.universalAddressItem}]]];(0,_e.registerPayloadTypes)("Relayer",st)})(relayerLayout);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(relayerLayout,s)})(relayer);var tokenBridge$1={},tokenBridge={},automaticTokenBridgeLayout={};(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.automaticTokenBridgeNamedPayloads=s.connectPayload=void 0;const j=requireLayoutItems(),$=vaa$1,_e=tokenBridgeLayout;s.connectPayload=[(0,j.payloadIdItem)(1),{name:"targetRelayerFee",...j.amountItem},{name:"toNativeTokenAmount",...j.amountItem},{name:"targetRecipient",...j.universalAddressItem}],s.automaticTokenBridgeNamedPayloads=[["TransferWithRelay",(0,_e.transferWithPayloadLayout)(s.connectPayload)]],(0,$.registerPayloadTypes)("AutomaticTokenBridge",s.automaticTokenBridgeNamedPayloads)})(automaticTokenBridgeLayout);Object.defineProperty(tokenBridge,"__esModule",{value:!0});tokenBridge.isTokenTransferDetails=tokenBridge.AutomaticTokenBridge=tokenBridge.TokenBridge=tokenBridge.ErrNotWrapped=void 0;const sdk_base_1$2=require$$0$8,index_js_1$1=vaa$1,ErrNotWrapped=s=>new Error(`Token ${s} is not a wrapped asset`);tokenBridge.ErrNotWrapped=ErrNotWrapped;var TokenBridge;(function(s){const j="TokenBridge",$=["Transfer","TransferWithPayload"],_e=["AttestMeta"];[...$,..._e],s.getTransferDiscriminator=(0,sdk_base_1$2.lazyInstantiate)(()=>(0,index_js_1$1.payloadDiscriminator)([j,$]))})(TokenBridge||(tokenBridge.TokenBridge=TokenBridge={}));var AutomaticTokenBridge;AutomaticTokenBridge||(tokenBridge.AutomaticTokenBridge=AutomaticTokenBridge={});function isTokenTransferDetails(s){return s.token!==void 0&&s.amount!==void 0&&s.from!==void 0&&s.to!==void 0}tokenBridge.isTokenTransferDetails=isTokenTransferDetails;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(tokenBridge,s),$(tokenBridgeLayout,s),$(automaticTokenBridgeLayout,s)})(tokenBridge$1);var governance={},layout={},globalAccountant={};Object.defineProperty(globalAccountant,"__esModule",{value:!0});globalAccountant.modificationKinds=void 0;globalAccountant.modificationKinds=[["Add",1],["Subtract",2],["Unknown",3]];Object.defineProperty(layout,"__esModule",{value:!0});const sdk_base_1$1=require$$0$8,globalAccountant_js_1=globalAccountant,index_js_1=requireLayoutItems(),index_js_2=vaa$1,rawEvmAddressItem={binary:"bytes",size:20,custom:{to:s=>sdk_base_1$1.encoding.hex.encode(s,!0),from:s=>sdk_base_1$1.encoding.hex.decode(s)}},contractActions=[["UpgradeContract",[!1,[{name:"newContract",...index_js_1.universalAddressItem}]]],["RegisterChain",[!0,[{name:"foreignChain",...(0,index_js_1.chainItem)()},{name:"foreignAddress",...index_js_1.universalAddressItem}]]],["RecoverChainId",[!1,[{name:"evmChainId",binary:"uint",size:32},{name:"newChainId",...(0,index_js_1.chainItem)({allowedChains:(0,sdk_base_1$1.platformToChains)("Evm")})}]]],["GuardianSetUpgrade",[!0,[{name:"guardianSet",...index_js_1.guardianSetItem},{name:"guardians",binary:"array",lengthSize:1,layout:rawEvmAddressItem}]]],["SetMessageFee",[!1,[{name:"messageFee",binary:"uint",size:32}]]],["TransferFees",[!0,[{name:"amount",binary:"uint",size:32},{name:"recipient",...index_js_1.universalAddressItem}]]],["UpdateDefaultProvider",[!1,[{name:"defaultProvider",...index_js_1.universalAddressItem}]]],["RegisterEmitterAndDomain",[!0,[{name:"emitterChain",...(0,index_js_1.chainItem)()},{name:"emitterAddress",...index_js_1.universalAddressItem},{name:"domain",binary:"uint",size:4}]]],["UpdateFinality",[!1,[{name:"finality",binary:"uint",size:1}]]]],wasmHashItem={binary:"bytes",size:32},wasmContractLayout=[{name:"contractAddr",...index_js_1.universalAddressItem},{name:"codeId",binary:"uint",size:8}],wormchainActions=[["StoreCode",[!1,[{name:"wasmHash",...wasmHashItem}]]],["InstantiateContract",[!1,[{name:"instantiationParamsHash",...wasmHashItem}]]],["MigrateContract",[!1,[{name:"migrationParamsHash",...wasmHashItem}]]],["AddWasmInstantiateAllowlist",[!1,wasmContractLayout]],["DeleteWasmInstantiateAllowlist",[!1,wasmContractLayout]]],gatewayScheduleUpgradeItem=(()=>{const s=et=>({binary:"bytes",size:et,custom:index_js_1.stringConversion}),j=[{name:"height",binary:"uint",size:8}],$=(0,sdk_base_1$1.calcStaticLayoutSize)(j),_e=et=>[{name:"name",...s(et)},...j];return{binary:"bytes",custom:{to:et=>(0,sdk_base_1$1.deserializeLayout)(_e(et.length-$),et),from:et=>(0,sdk_base_1$1.serializeLayout)(_e(et.name.length),et)}}})(),gatewayActions=[["ScheduleUpgrade",[!1,gatewayScheduleUpgradeItem]],["CancelUpgrade",[!0,[]]],["SetIbcComposabilityMwContract",[!1,[{name:"contractAddress",...index_js_1.universalAddressItem}]]]],globalAccountantActions=[["ModifyBalance",[!1,[{name:"sequence",...index_js_1.sequenceItem},{name:"modifiedChain",...(0,index_js_1.chainItem)()},{name:"tokenChain",...(0,index_js_1.chainItem)()},{name:"tokenAddress",...index_js_1.universalAddressItem},{name:"kind",...(0,sdk_base_1$1.enumItem)(globalAccountant_js_1.modificationKinds)},{name:"amount",...index_js_1.amountItem},{name:"reason",...(0,index_js_1.fixedLengthStringItem)(32)}]]]],ibcReceiverActions=[["ActionUpdateChannelChain",[!1,[{name:"channelId",...(0,index_js_1.fixedLengthStringItem)(64)},{name:"channelChain",...(0,index_js_1.chainItem)({allowedChains:(0,sdk_base_1$1.platformToChains)("Cosmwasm")})}]]]],generalPurposeActions=[["GeneralPurposeEvm",[!1,[{name:"governanceContract",...rawEvmAddressItem},{name:"targetContract",...rawEvmAddressItem},{name:"payload",binary:"bytes",lengthSize:2}]]],["GeneralPurposeSolana",[!1,[{name:"governanceContract",...index_js_1.universalAddressItem},{name:"payload",binary:"bytes"}]]]],actionTuples=[...contractActions,...wormchainActions,...gatewayActions,...globalAccountantActions,...ibcReceiverActions,...generalPurposeActions];(0,sdk_base_1$1.column)(actionTuples,0);const actionMapping=Object.fromEntries(actionTuples),sdkProtocolNameAndGovernanceVaaModuleEntries=[["WormholeCore","Core"],["TokenBridge","TokenBridge"],["NftBridge","NftBridge"],["Relayer","WormholeRelayer"],["CircleBridge","CircleIntegration"],["IbcBridge","IbcTranslator"],["IbcReceiver","IbcReceiver"],["GlobalAccountant","GlobalAccountant"],["GeneralPurposeGovernance","GeneralPurposeGovernance"],["WormchainGovernance","WasmdModule"],["GatewayGovernance","GatewayModule"]],sdkProtocolNameToGovernanceVaaModuleMapping=(0,sdk_base_1$1.constMap)(sdkProtocolNameAndGovernanceVaaModuleEntries),protocolConversion=s=>({to:s,from:(()=>{const $=new Uint8Array(32),_e=sdkProtocolNameToGovernanceVaaModuleMapping(s);for(let et=1;et<=_e.length;++et)$[32-et]=_e.charCodeAt(_e.length-et);return $})()}),actionConversion=(s,j)=>({to:s,from:j}),governanceLayout=(s,j,$)=>[{name:"protocol",binary:"bytes",custom:protocolConversion(s)},{name:"action",binary:"uint",size:1,custom:actionConversion(j,$)},{name:"chain",...(0,index_js_1.chainItem)({allowNull:actionMapping[j][0]})},{name:"actionArgs",binary:"bytes",layout:actionMapping[j][1]}],governancePayload=(s,j,$)=>[j,governanceLayout(s,j,$)],coreBridgePayloads=[governancePayload("WormholeCore","UpgradeContract",1),governancePayload("WormholeCore","GuardianSetUpgrade",2),governancePayload("WormholeCore","SetMessageFee",3),governancePayload("WormholeCore","TransferFees",4),governancePayload("WormholeCore","RecoverChainId",5)],tokenBridgePayloads=[governancePayload("TokenBridge","RegisterChain",1),governancePayload("TokenBridge","UpgradeContract",2),governancePayload("TokenBridge","RecoverChainId",3)],nftBridgePayloads=[governancePayload("NftBridge","RegisterChain",1),governancePayload("NftBridge","UpgradeContract",2),governancePayload("NftBridge","RecoverChainId",3)],relayerPayloads=[governancePayload("Relayer","RegisterChain",1),governancePayload("Relayer","UpgradeContract",2),governancePayload("Relayer","UpdateDefaultProvider",3)],cctpPayloads=[governancePayload("CircleBridge","UpdateFinality",1),governancePayload("CircleBridge","RegisterEmitterAndDomain",2),governancePayload("CircleBridge","UpgradeContract",3)],ibcBridgePayloads=[governancePayload("IbcBridge","ActionUpdateChannelChain",1)],ibcReceiverPayloads=[governancePayload("IbcReceiver","ActionUpdateChannelChain",1)],globalAccountantPayloads=[governancePayload("GlobalAccountant","ModifyBalance",1)],generalPurposeGovernancePayloads=[governancePayload("GeneralPurposeGovernance","GeneralPurposeEvm",1),governancePayload("GeneralPurposeGovernance","GeneralPurposeSolana",2)],wormchainGovernancePayloads=[governancePayload("WormchainGovernance","StoreCode",1),governancePayload("WormchainGovernance","InstantiateContract",2),governancePayload("WormchainGovernance","MigrateContract",3),governancePayload("WormchainGovernance","AddWasmInstantiateAllowlist",4),governancePayload("WormchainGovernance","DeleteWasmInstantiateAllowlist",5)],gatewayGovernancePayloads=[governancePayload("GatewayGovernance","ScheduleUpgrade",1),governancePayload("GatewayGovernance","CancelUpgrade",2),governancePayload("GatewayGovernance","SetIbcComposabilityMwContract",3)];(0,index_js_2.registerPayloadTypes)("WormholeCore",coreBridgePayloads);(0,index_js_2.registerPayloadTypes)("TokenBridge",tokenBridgePayloads);(0,index_js_2.registerPayloadTypes)("NftBridge",nftBridgePayloads);(0,index_js_2.registerPayloadTypes)("Relayer",relayerPayloads);(0,index_js_2.registerPayloadTypes)("CircleBridge",cctpPayloads);(0,index_js_2.registerPayloadTypes)("IbcBridge",ibcBridgePayloads);(0,index_js_2.registerPayloadTypes)("IbcReceiver",ibcReceiverPayloads);(0,index_js_2.registerPayloadTypes)("GlobalAccountant",globalAccountantPayloads);(0,index_js_2.registerPayloadTypes)("GeneralPurposeGovernance",generalPurposeGovernancePayloads);(0,index_js_2.registerPayloadTypes)("WormchainGovernance",wormchainGovernancePayloads);(0,index_js_2.registerPayloadTypes)("GatewayGovernance",gatewayGovernancePayloads);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(layout,s)})(governance);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(core$1,s),$(circleBridge$1,s),$(ibc$1,s),$(portico$1,s),$(relayer,s),$(tokenBridge$1,s),$(governance,s)})(protocols);(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(tt,nt,rt,ot){ot===void 0&&(ot=rt);var it=Object.getOwnPropertyDescriptor(nt,rt);(!it||("get"in it?!nt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return nt[rt]}}),Object.defineProperty(tt,ot,it)}:function(tt,nt,rt,ot){ot===void 0&&(ot=rt),tt[ot]=nt[rt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(tt,nt){Object.defineProperty(tt,"default",{enumerable:!0,value:nt})}:function(tt,nt){tt.default=nt}),_e=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(tt,nt){for(var rt in tt)rt!=="default"&&!Object.prototype.hasOwnProperty.call(nt,rt)&&j(nt,tt,rt)},et=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(tt){if(tt&&tt.__esModule)return tt;var nt={};if(tt!=null)for(var rt in tt)rt!=="default"&&Object.prototype.hasOwnProperty.call(tt,rt)&&j(nt,tt,rt);return $(nt,tt),nt};Object.defineProperty(s,"__esModule",{value:!0}),s.layoutItems=void 0,_e(registry,s),_e(requireAddress(),s),_e(protocol,s),_e(requireUniversalAddress(),s),_e(unsignedTransaction,s),_e(vaa$1,s),_e(utils$2,s),_e(platform,s),_e(chain,s),_e(contracts,s),_e(requireSignature$1(),s),_e(signer,s),_e(rpc$1,s),_e(attestation,s),_e(types$1,s),_e(protocols,s),s.layoutItems=et(requireLayoutItems())})(cjs);var __importDefault$1=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(evm,"__esModule",{value:!0});evm.getEvmTotalSupply=evm.getEvmTokenDecimals=evm.getMethodId=evm.callContractMethod=void 0;const axios_1$1=__importDefault$1(require$$0$4),sdk_definitions_1$1=cjs,utils_1=utils$3;async function callContractMethod(s,j,$,_e=""){const et=$+_e,tt={jsonrpc:"2.0",method:"eth_call",params:[{to:j,data:et},"latest"],id:1};try{const nt=await(0,utils_1.retry)(()=>axios_1$1.default.post(s,tt));if(nt.data.error)throw new Error(`Error calling contract method: ${nt.data.error.message}`);return nt.data.result}catch(nt){throw new Error(`Failed to call contract method: ${nt}`)}}evm.callContractMethod=callContractMethod;function getMethodId(s){const j=(0,sdk_definitions_1$1.keccak256)(s);return"0x"+Array.from(j).map(_e=>_e.toString(16).padStart(2,"0")).join("").substring(0,8)}evm.getMethodId=getMethodId;async function getEvmTokenDecimals(s,j){const $=getMethodId("tokenDecimals()"),_e=await callContractMethod(s,j,$);return Number(_e)}evm.getEvmTokenDecimals=getEvmTokenDecimals;async function getEvmTotalSupply(s,j){const $=getMethodId("totalSupply()"),_e=await callContractMethod(s,j,$);return BigInt(_e)}evm.getEvmTotalSupply=getEvmTotalSupply;var types={};Object.defineProperty(types,"__esModule",{value:!0});types.normalizeToDecimals=types.makeCache=types.makeCacheEntry=void 0;const sdk_base_1=require$$0$8;function makeCacheEntry(){return{messages:[],lastUpdated:0,lastRowKey:""}}types.makeCacheEntry=makeCacheEntry;function makeCache(){const s={};return sdk_base_1.chainIds.forEach(j=>{s[j]=makeCacheEntry()}),s}types.makeCache=makeCache;function normalizeToDecimals(s,j){const{amount:$,decimals:_e}=s,et=BigInt($);let tt;if(_ej){const nt=BigInt(10**(_e-j));tt=et/nt}else tt=et;return tt}types.normalizeToDecimals=normalizeToDecimals;var wormhole={};Object.defineProperty(wormhole,"__esModule",{value:!0});wormhole.parseVaa=void 0;const sdk_definitions_1=cjs;function parseVaa(s){const j=Buffer.isBuffer(s)?s:Buffer.from(s),$=6,_e=j[5],et=66,tt=[];for(let rt=0;rt<_e;++rt){const ot=$+rt*et;tt.push({index:j[ot],signature:j.subarray(ot+1,ot+66)})}const nt=j.subarray($+et*_e);return{version:j[0],guardianSetIndex:j.readUInt32BE(1),guardianSignatures:tt,timestamp:nt.readUInt32BE(0),nonce:nt.readUInt32BE(4),emitterChain:nt.readUInt16BE(8),emitterAddress:nt.subarray(10,42),sequence:nt.readBigUInt64BE(42),consistencyLevel:nt[50],payload:nt.subarray(51),hash:Buffer.from((0,sdk_definitions_1.keccak256)(nt))}}wormhole.parseVaa=parseVaa;var queryContractSmart$2={},__importDefault=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(queryContractSmart$2,"__esModule",{value:!0});queryContractSmart$2.queryContractSmart=queryContractSmart$2.fromUtf8=queryContractSmart$2.BinaryReader=queryContractSmart$2.uint32ToString=void 0;const axios_1=__importDefault(require$$0$4),buffer_1=buffer;function uint32ToString$1(s){const j=s<128?1:s<16384?2:s<2097152?3:s<268435456?4:5,$=new Array(j);let _e=0;for(;s>127;)$[_e++]=s&127|128,s>>>=7;return $[_e]=s,buffer_1.Buffer.from($).toString("hex")}queryContractSmart$2.uint32ToString=uint32ToString$1;var WireType;(function(s){s[s.Varint=0]="Varint",s[s.Fixed64=1]="Fixed64",s[s.Bytes=2]="Bytes",s[s.Fixed32=5]="Fixed32"})(WireType||(WireType={}));function indexOutOfRange$2(s,j){return RangeError("index out of range: "+s.pos+" + "+(j||1)+" > "+s.len)}let BinaryReader$1=class{constructor(j){Mn(this,"buf");Mn(this,"pos");Mn(this,"type");Mn(this,"len");this.buf=j,this.pos=0,this.type=0,this.len=this.buf.length}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}varint32read(){let j=this.buf[this.pos++],$=j&127;if(!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<7,!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<14,!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<21,!(j&128))return this.assertBounds(),$;j=this.buf[this.pos++],$|=(j&15)<<28;for(let _e=5;j&128&&_e<10;_e++)j=this.buf[this.pos++];if(j&128)throw new Error("invalid varint");return this.assertBounds(),$>>>0}skip(j){if(typeof j=="number"){if(this.pos+j>this.len)throw indexOutOfRange$2(this,j);this.pos+=j}else do if(this.pos>=this.len)throw indexOutOfRange$2(this);while(this.buf[this.pos++]&128);return this}skipType(j){switch(j){case WireType.Varint:this.skip();break;case WireType.Fixed64:this.skip(8);break;case WireType.Bytes:this.skip(this.uint32());break;case 3:for(;(j=this.uint32()&7)!==4;)this.skipType(j);break;case WireType.Fixed32:this.skip(4);break;default:throw Error("invalid wire type "+j+" at offset "+this.pos)}return this}uint32(){return this.varint32read()}bytes(){const j=this.uint32(),$=this.pos;return this.pos+=j,this.assertBounds(),this.buf.subarray($,$+j)}};queryContractSmart$2.BinaryReader=BinaryReader$1;function createBaseQuerySmartContractStateResponse$1(){return{data:new Uint8Array}}const QuerySmartContractStateResponse$1={decode(s,j){const $=s instanceof BinaryReader$1?s:new BinaryReader$1(s);let _e=j===void 0?$.len:$.pos+j;const et=createBaseQuerySmartContractStateResponse$1();for(;$.pos<_e;){const tt=$.uint32();switch(tt>>>3){case 1:et.data=$.bytes();break;default:$.skipType(tt&7);break}}return et}};function fromUtf8$1(s,j=!1){const $=!j;return new TextDecoder("utf-8",{fatal:$}).decode(s)}queryContractSmart$2.fromUtf8=fromUtf8$1;async function queryContractSmart$1(s,j,$){const _e=buffer_1.Buffer.from(j).toString("hex"),et=uint32ToString$1(_e.length/2),tt=buffer_1.Buffer.from(JSON.stringify($)).toString("hex"),nt=uint32ToString$1(tt.length/2),rt=`0a${et}${_e}12${nt}${tt}`,ot=await axios_1.default.post(s,{jsonrpc:"2.0",id:Math.floor(Math.random()*Number.MAX_SAFE_INTEGER),method:"abci_query",params:{path:"/cosmwasm.wasm.v1.Query/SmartContractState",data:rt,prove:!1}});if(!ot.data.result.response.value)throw ot.data.result.response.code&&ot.data.result.response.log?new Error(`Query failed with (${ot.data.result.response.code}) ${ot.data.result.response.log}`):new Error("Query failed with unknown error");const{data:it}=QuerySmartContractStateResponse$1.decode(buffer_1.Buffer.from(ot.data.result.response.value,"base64"));let st;try{st=fromUtf8$1(it)}catch(at){throw new Error(`Could not UTF-8 decode smart query response from contract: ${at}`)}try{return JSON.parse(st)}catch(at){throw new Error(`Could not JSON parse smart query response from contract: ${at}`)}}queryContractSmart$2.queryContractSmart=queryContractSmart$1;(function(s){var j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var rt=Object.getOwnPropertyDescriptor(et,tt);(!rt||("get"in rt?!et.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,rt)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),$=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_e,et){for(var tt in _e)tt!=="default"&&!Object.prototype.hasOwnProperty.call(et,tt)&&j(et,_e,tt)};Object.defineProperty(s,"__esModule",{value:!0}),$(arrays,s),$(chainIdToName$1,s),$(consts,s),$(explorer,s),$(solana,s),$(utils$3,s),$(nttConsts,s),$(evm,s),$(types,s),$(wormhole,s),$(queryContractSmart$2,s)})(dist);function useGetGuardianSet(s,j){const $=useNetworkContext(),[_e,et]=reactExports.useState([null,null]);return reactExports.useEffect(()=>{if(et([null,null]),!j)return;const tt=rpcAddress("Mainnet",s);if(!tt)return;let nt=!1;return chainToPlatform(s)==="Evm"&&(async()=>{try{const ot=await dist.callContractMethod(tt,j,dist.getMethodId("getCurrentGuardianSetIndex()"));if(nt)return;const it=await dist.callContractMethod(tt,j,dist.getMethodId("getGuardianSet(uint32)"),ot.substring(2));if(nt)return;et([BigInt(ot),it])}catch{}})(),()=>{nt=!0}},[$.currentNetwork.env,s,j]),_e}var long=Long,wasm=null;try{wasm=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Long(s,j,$){this.low=s|0,this.high=j|0,this.unsigned=!!$}Long.prototype.__isLong__;Object.defineProperty(Long.prototype,"__isLong__",{value:!0});function isLong(s){return(s&&s.__isLong__)===!0}Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(s,j){var $,_e,et;return j?(s>>>=0,(et=0<=s&&s<256)&&(_e=UINT_CACHE[s],_e)?_e:($=fromBits(s,(s|0)<0?-1:0,!0),et&&(UINT_CACHE[s]=$),$)):(s|=0,(et=-128<=s&&s<128)&&(_e=INT_CACHE[s],_e)?_e:($=fromBits(s,s<0?-1:0,!1),et&&(INT_CACHE[s]=$),$))}Long.fromInt=fromInt;function fromNumber(s,j){if(isNaN(s))return j?UZERO:ZERO;if(j){if(s<0)return UZERO;if(s>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(s<=-TWO_PWR_63_DBL)return MIN_VALUE;if(s+1>=TWO_PWR_63_DBL)return MAX_VALUE}return s<0?fromNumber(-s,j).neg():fromBits(s%TWO_PWR_32_DBL|0,s/TWO_PWR_32_DBL|0,j)}Long.fromNumber=fromNumber;function fromBits(s,j,$){return new Long(s,j,$)}Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(s,j,$){if(s.length===0)throw Error("empty string");if(s==="NaN"||s==="Infinity"||s==="+Infinity"||s==="-Infinity")return ZERO;if(typeof j=="number"?($=j,j=!1):j=!!j,$=$||10,$<2||36<$)throw RangeError("radix");var _e;if((_e=s.indexOf("-"))>0)throw Error("interior hyphen");if(_e===0)return fromString(s.substring(1),j,$).neg();for(var et=fromNumber(pow_dbl($,8)),tt=ZERO,nt=0;nt>>0:this.low};LongPrototype.toNumber=function(){return this.unsigned?(this.high>>>0)*TWO_PWR_32_DBL+(this.low>>>0):this.high*TWO_PWR_32_DBL+(this.low>>>0)};LongPrototype.toString=function(j){if(j=j||10,j<2||36>>0,st=it.toString(j);if(nt=ot,nt.isZero())return st+rt;for(;st.length<6;)st="0"+st;rt=""+st+rt}};LongPrototype.getHighBits=function(){return this.high};LongPrototype.getHighBitsUnsigned=function(){return this.high>>>0};LongPrototype.getLowBits=function(){return this.low};LongPrototype.getLowBitsUnsigned=function(){return this.low>>>0};LongPrototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var j=this.high!=0?this.high:this.low,$=31;$>0&&!(j&1<<$);$--);return this.high!=0?$+33:$+1};LongPrototype.isZero=function(){return this.high===0&&this.low===0};LongPrototype.eqz=LongPrototype.isZero;LongPrototype.isNegative=function(){return!this.unsigned&&this.high<0};LongPrototype.isPositive=function(){return this.unsigned||this.high>=0};LongPrototype.isOdd=function(){return(this.low&1)===1};LongPrototype.isEven=function(){return(this.low&1)===0};LongPrototype.equals=function(j){return isLong(j)||(j=fromValue(j)),this.unsigned!==j.unsigned&&this.high>>>31===1&&j.high>>>31===1?!1:this.high===j.high&&this.low===j.low};LongPrototype.eq=LongPrototype.equals;LongPrototype.notEquals=function(j){return!this.eq(j)};LongPrototype.neq=LongPrototype.notEquals;LongPrototype.ne=LongPrototype.notEquals;LongPrototype.lessThan=function(j){return this.comp(j)<0};LongPrototype.lt=LongPrototype.lessThan;LongPrototype.lessThanOrEqual=function(j){return this.comp(j)<=0};LongPrototype.lte=LongPrototype.lessThanOrEqual;LongPrototype.le=LongPrototype.lessThanOrEqual;LongPrototype.greaterThan=function(j){return this.comp(j)>0};LongPrototype.gt=LongPrototype.greaterThan;LongPrototype.greaterThanOrEqual=function(j){return this.comp(j)>=0};LongPrototype.gte=LongPrototype.greaterThanOrEqual;LongPrototype.ge=LongPrototype.greaterThanOrEqual;LongPrototype.compare=function(j){if(isLong(j)||(j=fromValue(j)),this.eq(j))return 0;var $=this.isNegative(),_e=j.isNegative();return $&&!_e?-1:!$&&_e?1:this.unsigned?j.high>>>0>this.high>>>0||j.high===this.high&&j.low>>>0>this.low>>>0?-1:1:this.sub(j).isNegative()?-1:1};LongPrototype.comp=LongPrototype.compare;LongPrototype.negate=function(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)};LongPrototype.neg=LongPrototype.negate;LongPrototype.add=function(j){isLong(j)||(j=fromValue(j));var $=this.high>>>16,_e=this.high&65535,et=this.low>>>16,tt=this.low&65535,nt=j.high>>>16,rt=j.high&65535,ot=j.low>>>16,it=j.low&65535,st=0,at=0,ct=0,lt=0;return lt+=tt+it,ct+=lt>>>16,lt&=65535,ct+=et+ot,at+=ct>>>16,ct&=65535,at+=_e+rt,st+=at>>>16,at&=65535,st+=$+nt,st&=65535,fromBits(ct<<16|lt,st<<16|at,this.unsigned)};LongPrototype.subtract=function(j){return isLong(j)||(j=fromValue(j)),this.add(j.neg())};LongPrototype.sub=LongPrototype.subtract;LongPrototype.multiply=function(j){if(this.isZero())return ZERO;if(isLong(j)||(j=fromValue(j)),wasm){var $=wasm.mul(this.low,this.high,j.low,j.high);return fromBits($,wasm.get_high(),this.unsigned)}if(j.isZero())return ZERO;if(this.eq(MIN_VALUE))return j.isOdd()?MIN_VALUE:ZERO;if(j.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return j.isNegative()?this.neg().mul(j.neg()):this.neg().mul(j).neg();if(j.isNegative())return this.mul(j.neg()).neg();if(this.lt(TWO_PWR_24)&&j.lt(TWO_PWR_24))return fromNumber(this.toNumber()*j.toNumber(),this.unsigned);var _e=this.high>>>16,et=this.high&65535,tt=this.low>>>16,nt=this.low&65535,rt=j.high>>>16,ot=j.high&65535,it=j.low>>>16,st=j.low&65535,at=0,ct=0,lt=0,dt=0;return dt+=nt*st,lt+=dt>>>16,dt&=65535,lt+=tt*st,ct+=lt>>>16,lt&=65535,lt+=nt*it,ct+=lt>>>16,lt&=65535,ct+=et*st,at+=ct>>>16,ct&=65535,ct+=tt*it,at+=ct>>>16,ct&=65535,ct+=nt*ot,at+=ct>>>16,ct&=65535,at+=_e*st+et*it+tt*ot+nt*rt,at&=65535,fromBits(lt<<16|dt,at<<16|ct,this.unsigned)};LongPrototype.mul=LongPrototype.multiply;LongPrototype.divide=function(j){if(isLong(j)||(j=fromValue(j)),j.isZero())throw Error("division by zero");if(wasm){if(!this.unsigned&&this.high===-2147483648&&j.low===-1&&j.high===-1)return this;var $=(this.unsigned?wasm.div_u:wasm.div_s)(this.low,this.high,j.low,j.high);return fromBits($,wasm.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?UZERO:ZERO;var _e,et,tt;if(this.unsigned){if(j.unsigned||(j=j.toUnsigned()),j.gt(this))return UZERO;if(j.gt(this.shru(1)))return UONE;tt=UZERO}else{if(this.eq(MIN_VALUE)){if(j.eq(ONE)||j.eq(NEG_ONE))return MIN_VALUE;if(j.eq(MIN_VALUE))return ONE;var nt=this.shr(1);return _e=nt.div(j).shl(1),_e.eq(ZERO)?j.isNegative()?ONE:NEG_ONE:(et=this.sub(j.mul(_e)),tt=_e.add(et.div(j)),tt)}else if(j.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return j.isNegative()?this.neg().div(j.neg()):this.neg().div(j).neg();if(j.isNegative())return this.div(j.neg()).neg();tt=ZERO}for(et=this;et.gte(j);){_e=Math.max(1,Math.floor(et.toNumber()/j.toNumber()));for(var rt=Math.ceil(Math.log(_e)/Math.LN2),ot=rt<=48?1:pow_dbl(2,rt-48),it=fromNumber(_e),st=it.mul(j);st.isNegative()||st.gt(et);)_e-=ot,it=fromNumber(_e,this.unsigned),st=it.mul(j);it.isZero()&&(it=ONE),tt=tt.add(it),et=et.sub(st)}return tt};LongPrototype.div=LongPrototype.divide;LongPrototype.modulo=function(j){if(isLong(j)||(j=fromValue(j)),wasm){var $=(this.unsigned?wasm.rem_u:wasm.rem_s)(this.low,this.high,j.low,j.high);return fromBits($,wasm.get_high(),this.unsigned)}return this.sub(this.div(j).mul(j))};LongPrototype.mod=LongPrototype.modulo;LongPrototype.rem=LongPrototype.modulo;LongPrototype.not=function(){return fromBits(~this.low,~this.high,this.unsigned)};LongPrototype.and=function(j){return isLong(j)||(j=fromValue(j)),fromBits(this.low&j.low,this.high&j.high,this.unsigned)};LongPrototype.or=function(j){return isLong(j)||(j=fromValue(j)),fromBits(this.low|j.low,this.high|j.high,this.unsigned)};LongPrototype.xor=function(j){return isLong(j)||(j=fromValue(j)),fromBits(this.low^j.low,this.high^j.high,this.unsigned)};LongPrototype.shiftLeft=function(j){return isLong(j)&&(j=j.toInt()),(j&=63)===0?this:j<32?fromBits(this.low<>>32-j,this.unsigned):fromBits(0,this.low<>>j|this.high<<32-j,this.high>>j,this.unsigned):fromBits(this.high>>j-32,this.high>=0?0:-1,this.unsigned)};LongPrototype.shr=LongPrototype.shiftRight;LongPrototype.shiftRightUnsigned=function(j){if(isLong(j)&&(j=j.toInt()),j&=63,j===0)return this;var $=this.high;if(j<32){var _e=this.low;return fromBits(_e>>>j|$<<32-j,$>>>j,this.unsigned)}else return j===32?fromBits($,0,this.unsigned):fromBits($>>>j-32,0,this.unsigned)};LongPrototype.shru=LongPrototype.shiftRightUnsigned;LongPrototype.shr_u=LongPrototype.shiftRightUnsigned;LongPrototype.toSigned=function(){return this.unsigned?fromBits(this.low,this.high,!1):this};LongPrototype.toUnsigned=function(){return this.unsigned?this:fromBits(this.low,this.high,!0)};LongPrototype.toBytes=function(j){return j?this.toBytesLE():this.toBytesBE()};LongPrototype.toBytesLE=function(){var j=this.high,$=this.low;return[$&255,$>>>8&255,$>>>16&255,$>>>24,j&255,j>>>8&255,j>>>16&255,j>>>24]};LongPrototype.toBytesBE=function(){var j=this.high,$=this.low;return[j>>>24,j>>>16&255,j>>>8&255,j&255,$>>>24,$>>>16&255,$>>>8&255,$&255]};Long.fromBytes=function(j,$,_e){return _e?Long.fromBytesLE(j,$):Long.fromBytesBE(j,$)};Long.fromBytesLE=function(j,$){return new Long(j[0]|j[1]<<8|j[2]<<16|j[3]<<24,j[4]|j[5]<<8|j[6]<<16|j[7]<<24,$)};Long.fromBytesBE=function(j,$){return new Long(j[4]<<24|j[5]<<16|j[6]<<8|j[7],j[0]<<24|j[1]<<16|j[2]<<8|j[3],$)};const Long$1=getDefaultExportFromCjs$1(long);var indexMinimal={},minimal$1={},aspromise=asPromise;function asPromise(s,j){for(var $=new Array(arguments.length-1),_e=0,et=2,tt=!0;et1&&rt.charAt(ot)==="=";)++it;return Math.ceil(rt.length*3)/4-it};for(var $=new Array(64),_e=new Array(123),et=0;et<64;)_e[$[et]=et<26?et+65:et<52?et+71:et<62?et-4:et-59|43]=et++;j.encode=function(rt,ot,it){for(var st=null,at=[],ct=0,lt=0,dt;ot>2],dt=(ft&3)<<4,lt=1;break;case 1:at[ct++]=$[dt|ft>>4],dt=(ft&15)<<2,lt=2;break;case 2:at[ct++]=$[dt|ft>>6],at[ct++]=$[ft&63],lt=0;break}ct>8191&&((st||(st=[])).push(String.fromCharCode.apply(String,at)),ct=0)}return lt&&(at[ct++]=$[dt],at[ct++]=61,lt===1&&(at[ct++]=61)),st?(ct&&st.push(String.fromCharCode.apply(String,at.slice(0,ct))),st.join("")):String.fromCharCode.apply(String,at.slice(0,ct))};var tt="invalid encoding";j.decode=function(rt,ot,it){for(var st=it,at=0,ct,lt=0;lt1)break;if((dt=_e[dt])===void 0)throw Error(tt);switch(at){case 0:ct=dt,at=1;break;case 1:ot[it++]=ct<<2|(dt&48)>>4,ct=dt,at=2;break;case 2:ot[it++]=(ct&15)<<4|(dt&60)>>2,ct=dt,at=3;break;case 3:ot[it++]=(ct&3)<<6|dt,at=0;break}}if(at===1)throw Error(tt);return it-st},j.test=function(rt){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(rt)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(j,$,_e){return(this._listeners[j]||(this._listeners[j]=[])).push({fn:$,ctx:_e||this}),this};EventEmitter.prototype.off=function(j,$){if(j===void 0)this._listeners={};else if($===void 0)this._listeners[j]=[];else for(var _e=this._listeners[j],et=0;et<_e.length;)_e[et].fn===$?_e.splice(et,1):++et;return this};EventEmitter.prototype.emit=function(j){var $=this._listeners[j];if($){for(var _e=[],et=1;et0?0:2147483648,tt,nt);else if(isNaN(et))_e(2143289344,tt,nt);else if(et>34028234663852886e22)_e((rt<<31|2139095040)>>>0,tt,nt);else if(et<11754943508222875e-54)_e((rt<<31|Math.round(et/1401298464324817e-60))>>>0,tt,nt);else{var ot=Math.floor(Math.log(et)/Math.LN2),it=Math.round(et*Math.pow(2,-ot)*8388608)&8388607;_e((rt<<31|ot+127<<23|it)>>>0,tt,nt)}}s.writeFloatLE=j.bind(null,writeUintLE),s.writeFloatBE=j.bind(null,writeUintBE);function $(_e,et,tt){var nt=_e(et,tt),rt=(nt>>31)*2+1,ot=nt>>>23&255,it=nt&8388607;return ot===255?it?NaN:rt*(1/0):ot===0?rt*1401298464324817e-60*it:rt*Math.pow(2,ot-150)*(it+8388608)}s.readFloatLE=$.bind(null,readUintLE),s.readFloatBE=$.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var j=new Float64Array([-0]),$=new Uint8Array(j.buffer),_e=$[7]===128;function et(ot,it,st){j[0]=ot,it[st]=$[0],it[st+1]=$[1],it[st+2]=$[2],it[st+3]=$[3],it[st+4]=$[4],it[st+5]=$[5],it[st+6]=$[6],it[st+7]=$[7]}function tt(ot,it,st){j[0]=ot,it[st]=$[7],it[st+1]=$[6],it[st+2]=$[5],it[st+3]=$[4],it[st+4]=$[3],it[st+5]=$[2],it[st+6]=$[1],it[st+7]=$[0]}s.writeDoubleLE=_e?et:tt,s.writeDoubleBE=_e?tt:et;function nt(ot,it){return $[0]=ot[it],$[1]=ot[it+1],$[2]=ot[it+2],$[3]=ot[it+3],$[4]=ot[it+4],$[5]=ot[it+5],$[6]=ot[it+6],$[7]=ot[it+7],j[0]}function rt(ot,it){return $[7]=ot[it],$[6]=ot[it+1],$[5]=ot[it+2],$[4]=ot[it+3],$[3]=ot[it+4],$[2]=ot[it+5],$[1]=ot[it+6],$[0]=ot[it+7],j[0]}s.readDoubleLE=_e?nt:rt,s.readDoubleBE=_e?rt:nt}():function(){function j(_e,et,tt,nt,rt,ot){var it=nt<0?1:0;if(it&&(nt=-nt),nt===0)_e(0,rt,ot+et),_e(1/nt>0?0:2147483648,rt,ot+tt);else if(isNaN(nt))_e(0,rt,ot+et),_e(2146959360,rt,ot+tt);else if(nt>17976931348623157e292)_e(0,rt,ot+et),_e((it<<31|2146435072)>>>0,rt,ot+tt);else{var st;if(nt<22250738585072014e-324)st=nt/5e-324,_e(st>>>0,rt,ot+et),_e((it<<31|st/4294967296)>>>0,rt,ot+tt);else{var at=Math.floor(Math.log(nt)/Math.LN2);at===1024&&(at=1023),st=nt*Math.pow(2,-at),_e(st*4503599627370496>>>0,rt,ot+et),_e((it<<31|at+1023<<20|st*1048576&1048575)>>>0,rt,ot+tt)}}}s.writeDoubleLE=j.bind(null,writeUintLE,0,4),s.writeDoubleBE=j.bind(null,writeUintBE,4,0);function $(_e,et,tt,nt,rt){var ot=_e(nt,rt+et),it=_e(nt,rt+tt),st=(it>>31)*2+1,at=it>>>20&2047,ct=4294967296*(it&1048575)+ot;return at===2047?ct?NaN:st*(1/0):at===0?st*5e-324*ct:st*Math.pow(2,at-1075)*(ct+4503599627370496)}s.readDoubleLE=$.bind(null,readUintLE,0,4),s.readDoubleBE=$.bind(null,readUintBE,4,0)}(),s}function writeUintLE(s,j,$){j[$]=s&255,j[$+1]=s>>>8&255,j[$+2]=s>>>16&255,j[$+3]=s>>>24}function writeUintBE(s,j,$){j[$]=s>>>24,j[$+1]=s>>>16&255,j[$+2]=s>>>8&255,j[$+3]=s&255}function readUintLE(s,j){return(s[j]|s[j+1]<<8|s[j+2]<<16|s[j+3]<<24)>>>0}function readUintBE(s,j){return(s[j]<<24|s[j+1]<<16|s[j+2]<<8|s[j+3])>>>0}var inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(s){}return null}var utf8$2={};(function(s){var j=s;j.length=function(_e){for(var et=0,tt=0,nt=0;nt<_e.length;++nt)tt=_e.charCodeAt(nt),tt<128?et+=1:tt<2048?et+=2:(tt&64512)===55296&&(_e.charCodeAt(nt+1)&64512)===56320?(++nt,et+=4):et+=3;return et},j.read=function(_e,et,tt){var nt=tt-et;if(nt<1)return"";for(var rt=null,ot=[],it=0,st;et191&&st<224?ot[it++]=(st&31)<<6|_e[et++]&63:st>239&&st<365?(st=((st&7)<<18|(_e[et++]&63)<<12|(_e[et++]&63)<<6|_e[et++]&63)-65536,ot[it++]=55296+(st>>10),ot[it++]=56320+(st&1023)):ot[it++]=(st&15)<<12|(_e[et++]&63)<<6|_e[et++]&63,it>8191&&((rt||(rt=[])).push(String.fromCharCode.apply(String,ot)),it=0);return rt?(it&&rt.push(String.fromCharCode.apply(String,ot.slice(0,it))),rt.join("")):String.fromCharCode.apply(String,ot.slice(0,it))},j.write=function(_e,et,tt){for(var nt=tt,rt,ot,it=0;it<_e.length;++it)rt=_e.charCodeAt(it),rt<128?et[tt++]=rt:rt<2048?(et[tt++]=rt>>6|192,et[tt++]=rt&63|128):(rt&64512)===55296&&((ot=_e.charCodeAt(it+1))&64512)===56320?(rt=65536+((rt&1023)<<10)+(ot&1023),++it,et[tt++]=rt>>18|240,et[tt++]=rt>>12&63|128,et[tt++]=rt>>6&63|128,et[tt++]=rt&63|128):(et[tt++]=rt>>12|224,et[tt++]=rt>>6&63|128,et[tt++]=rt&63|128);return tt-nt}})(utf8$2);var pool_1=pool;function pool(s,j,$){var _e=$||8192,et=_e>>>1,tt=null,nt=_e;return function(ot){if(ot<1||ot>et)return s(ot);nt+ot>_e&&(tt=s(_e),nt=0);var it=j.call(tt,nt,nt+=ot);return nt&7&&(nt=(nt|7)+1),it}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=j;var s=requireMinimal();function j(tt,nt){this.lo=tt>>>0,this.hi=nt>>>0}var $=j.zero=new j(0,0);$.toNumber=function(){return 0},$.zzEncode=$.zzDecode=function(){return this},$.length=function(){return 1};var _e=j.zeroHash="\0\0\0\0\0\0\0\0";j.fromNumber=function(nt){if(nt===0)return $;var rt=nt<0;rt&&(nt=-nt);var ot=nt>>>0,it=(nt-ot)/4294967296>>>0;return rt&&(it=~it>>>0,ot=~ot>>>0,++ot>4294967295&&(ot=0,++it>4294967295&&(it=0))),new j(ot,it)},j.from=function(nt){if(typeof nt=="number")return j.fromNumber(nt);if(s.isString(nt))if(s.Long)nt=s.Long.fromString(nt);else return j.fromNumber(parseInt(nt,10));return nt.low||nt.high?new j(nt.low>>>0,nt.high>>>0):$},j.prototype.toNumber=function(nt){if(!nt&&this.hi>>>31){var rt=~this.lo+1>>>0,ot=~this.hi>>>0;return rt||(ot=ot+1>>>0),-(rt+ot*4294967296)}return this.lo+this.hi*4294967296},j.prototype.toLong=function(nt){return s.Long?new s.Long(this.lo|0,this.hi|0,!!nt):{low:this.lo|0,high:this.hi|0,unsigned:!!nt}};var et=String.prototype.charCodeAt;return j.fromHash=function(nt){return nt===_e?$:new j((et.call(nt,0)|et.call(nt,1)<<8|et.call(nt,2)<<16|et.call(nt,3)<<24)>>>0,(et.call(nt,4)|et.call(nt,5)<<8|et.call(nt,6)<<16|et.call(nt,7)<<24)>>>0)},j.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},j.prototype.zzEncode=function(){var nt=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^nt)>>>0,this.lo=(this.lo<<1^nt)>>>0,this},j.prototype.zzDecode=function(){var nt=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^nt)>>>0,this.hi=(this.hi>>>1^nt)>>>0,this},j.prototype.length=function(){var nt=this.lo,rt=(this.lo>>>28|this.hi<<4)>>>0,ot=this.hi>>>24;return ot===0?rt===0?nt<16384?nt<128?1:2:nt<2097152?3:4:rt<16384?rt<128?5:6:rt<2097152?7:8:ot<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(s){var j=s;j.asPromise=aspromise,j.base64=base64$1,j.EventEmitter=eventemitter,j.float=float,j.inquire=inquire_1,j.utf8=utf8$2,j.pool=pool_1,j.LongBits=requireLongbits(),j.isNode=!!(typeof commonjsGlobal$1<"u"&&commonjsGlobal$1&&commonjsGlobal$1.process&&commonjsGlobal$1.process.versions&&commonjsGlobal$1.process.versions.node),j.global=j.isNode&&commonjsGlobal$1||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal$1,j.emptyArray=Object.freeze?Object.freeze([]):[],j.emptyObject=Object.freeze?Object.freeze({}):{},j.isInteger=Number.isInteger||function(tt){return typeof tt=="number"&&isFinite(tt)&&Math.floor(tt)===tt},j.isString=function(tt){return typeof tt=="string"||tt instanceof String},j.isObject=function(tt){return tt&&typeof tt=="object"},j.isset=j.isSet=function(tt,nt){var rt=tt[nt];return rt!=null&&tt.hasOwnProperty(nt)?typeof rt!="object"||(Array.isArray(rt)?rt.length:Object.keys(rt).length)>0:!1},j.Buffer=function(){try{var et=j.inquire("buffer").Buffer;return et.prototype.utf8Write?et:null}catch{return null}}(),j._Buffer_from=null,j._Buffer_allocUnsafe=null,j.newBuffer=function(tt){return typeof tt=="number"?j.Buffer?j._Buffer_allocUnsafe(tt):new j.Array(tt):j.Buffer?j._Buffer_from(tt):typeof Uint8Array>"u"?tt:new Uint8Array(tt)},j.Array=typeof Uint8Array<"u"?Uint8Array:Array,j.Long=j.global.dcodeIO&&j.global.dcodeIO.Long||j.global.Long||j.inquire("long"),j.key2Re=/^true|false|0|1$/,j.key32Re=/^-?(?:0|[1-9][0-9]*)$/,j.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,j.longToHash=function(tt){return tt?j.LongBits.from(tt).toHash():j.LongBits.zeroHash},j.longFromHash=function(tt,nt){var rt=j.LongBits.fromHash(tt);return j.Long?j.Long.fromBits(rt.lo,rt.hi,nt):rt.toNumber(!!nt)};function $(et,tt,nt){for(var rt=Object.keys(tt),ot=0;ot-1;--it)if(nt[ot[it]]===1&&this[ot[it]]!==void 0&&this[ot[it]]!==null)return ot[it]}},j.oneOfSetter=function(tt){return function(nt){for(var rt=0;rt127;)j[$++]=s&127|128,s>>>=7;j[$]=s}function VarintOp(s,j){this.len=s,this.next=void 0,this.val=j}VarintOp.prototype=Object.create(Op.prototype);VarintOp.prototype.fn=writeVarint32;Writer$1.prototype.uint32=function s(j){return this.len+=(this.tail=this.tail.next=new VarintOp((j=j>>>0)<128?1:j<16384?2:j<2097152?3:j<268435456?4:5,j)).len,this};Writer$1.prototype.int32=function s(j){return j<0?this._push(writeVarint64,10,LongBits$1.fromNumber(j)):this.uint32(j)};Writer$1.prototype.sint32=function s(j){return this.uint32((j<<1^j>>31)>>>0)};function writeVarint64(s,j,$){for(;s.hi;)j[$++]=s.lo&127|128,s.lo=(s.lo>>>7|s.hi<<25)>>>0,s.hi>>>=7;for(;s.lo>127;)j[$++]=s.lo&127|128,s.lo=s.lo>>>7;j[$++]=s.lo}Writer$1.prototype.uint64=function s(j){var $=LongBits$1.from(j);return this._push(writeVarint64,$.length(),$)};Writer$1.prototype.int64=Writer$1.prototype.uint64;Writer$1.prototype.sint64=function s(j){var $=LongBits$1.from(j).zzEncode();return this._push(writeVarint64,$.length(),$)};Writer$1.prototype.bool=function s(j){return this._push(writeByte,1,j?1:0)};function writeFixed32(s,j,$){j[$]=s&255,j[$+1]=s>>>8&255,j[$+2]=s>>>16&255,j[$+3]=s>>>24}Writer$1.prototype.fixed32=function s(j){return this._push(writeFixed32,4,j>>>0)};Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32;Writer$1.prototype.fixed64=function s(j){var $=LongBits$1.from(j);return this._push(writeFixed32,4,$.lo)._push(writeFixed32,4,$.hi)};Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64;Writer$1.prototype.float=function s(j){return this._push(util$4.float.writeFloatLE,4,j)};Writer$1.prototype.double=function s(j){return this._push(util$4.float.writeDoubleLE,8,j)};var writeBytes=util$4.Array.prototype.set?function s(j,$,_e){$.set(j,_e)}:function s(j,$,_e){for(var et=0;et>>0;if(!$)return this._push(writeByte,1,0);if(util$4.isString(j)){var _e=Writer$1.alloc($=base64.length(j));base64.decode(j,_e,0),j=_e}return this.uint32($)._push(writeBytes,$,j)};Writer$1.prototype.string=function s(j){var $=utf8$1.length(j);return $?this.uint32($)._push(utf8$1.write,$,j):this._push(writeByte,1,0)};Writer$1.prototype.fork=function s(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this};Writer$1.prototype.reset=function s(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this};Writer$1.prototype.ldelim=function s(){var j=this.head,$=this.tail,_e=this.len;return this.reset().uint32(_e),_e&&(this.tail.next=j.next,this.tail=$,this.len+=_e),this};Writer$1.prototype.finish=function s(){for(var j=this.head.next,$=this.constructor.alloc(this.len),_e=0;j;)j.fn(j.val,$,_e),_e+=j.len,j=j.next;return $};Writer$1._configure=function(s){BufferWriter$1=s,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$3=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$3._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$3.Buffer&&util$3.Buffer.prototype instanceof Uint8Array&&util$3.Buffer.prototype.set.name==="set"?function(j,$,_e){$.set(j,_e)}:function(j,$,_e){if(j.copy)j.copy($,_e,0,j.length);else for(var et=0;et>>0;return this.uint32($),$&&this._push(BufferWriter.writeBytesBuffer,$,j),this};function writeStringBuffer(s,j,$){s.length<40?util$3.utf8.write(s,j,$):j.utf8Write?j.utf8Write(s,$):j.write(s,$)}BufferWriter.prototype.string=function s(j){var $=util$3.Buffer.byteLength(j);return this.uint32($),$&&this._push(writeStringBuffer,$,j),this};BufferWriter._configure();var reader=Reader$1,util$2=requireMinimal(),BufferReader$1,LongBits=util$2.LongBits,utf8=util$2.utf8;function indexOutOfRange$1(s,j){return RangeError("index out of range: "+s.pos+" + "+(j||1)+" > "+s.len)}function Reader$1(s){this.buf=s,this.pos=0,this.len=s.length}var create_array=typeof Uint8Array<"u"?function s(j){if(j instanceof Uint8Array||Array.isArray(j))return new Reader$1(j);throw Error("illegal buffer")}:function s(j){if(Array.isArray(j))return new Reader$1(j);throw Error("illegal buffer")},create=function s(){return util$2.Buffer?function($){return(Reader$1.create=function(et){return util$2.Buffer.isBuffer(et)?new BufferReader$1(et):create_array(et)})($)}:create_array};Reader$1.create=create();Reader$1.prototype._slice=util$2.Array.prototype.subarray||util$2.Array.prototype.slice;Reader$1.prototype.uint32=function s(){var j=4294967295;return function(){if(j=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(j=(j|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(j=(j|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(j=(j|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(j=(j|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return j;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange$1(this,10);return j}}();Reader$1.prototype.int32=function s(){return this.uint32()|0};Reader$1.prototype.sint32=function s(){var j=this.uint32();return j>>>1^-(j&1)|0};function readLongVarint(){var s=new LongBits(0,0),j=0;if(this.len-this.pos>4){for(;j<4;++j)if(s.lo=(s.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return s;if(s.lo=(s.lo|(this.buf[this.pos]&127)<<28)>>>0,s.hi=(s.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return s;j=0}else{for(;j<3;++j){if(this.pos>=this.len)throw indexOutOfRange$1(this);if(s.lo=(s.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return s}return s.lo=(s.lo|(this.buf[this.pos++]&127)<>>0,s}if(this.len-this.pos>4){for(;j<5;++j)if(s.hi=(s.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return s}else for(;j<5;++j){if(this.pos>=this.len)throw indexOutOfRange$1(this);if(s.hi=(s.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return s}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function s(){return this.uint32()!==0};function readFixed32_end(s,j){return(s[j-4]|s[j-3]<<8|s[j-2]<<16|s[j-1]<<24)>>>0}Reader$1.prototype.fixed32=function s(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);return readFixed32_end(this.buf,this.pos+=4)};Reader$1.prototype.sfixed32=function s(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange$1(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function s(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);var j=util$2.float.readFloatLE(this.buf,this.pos);return this.pos+=4,j};Reader$1.prototype.double=function s(){if(this.pos+8>this.len)throw indexOutOfRange$1(this,4);var j=util$2.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,j};Reader$1.prototype.bytes=function s(){var j=this.uint32(),$=this.pos,_e=this.pos+j;if(_e>this.len)throw indexOutOfRange$1(this,j);if(this.pos+=j,Array.isArray(this.buf))return this.buf.slice($,_e);if($===_e){var et=util$2.Buffer;return et?et.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,$,_e)};Reader$1.prototype.string=function s(){var j=this.bytes();return utf8.read(j,0,j.length)};Reader$1.prototype.skip=function s(j){if(typeof j=="number"){if(this.pos+j>this.len)throw indexOutOfRange$1(this,j);this.pos+=j}else do if(this.pos>=this.len)throw indexOutOfRange$1(this);while(this.buf[this.pos++]&128);return this};Reader$1.prototype.skipType=function(s){switch(s){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(s=this.uint32()&7)!==4;)this.skipType(s);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+s+" at offset "+this.pos)}return this};Reader$1._configure=function(s){BufferReader$1=s,Reader$1.create=create(),BufferReader$1._configure();var j=util$2.Long?"toLong":"toNumber";util$2.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[j](!1)},uint64:function(){return readLongVarint.call(this)[j](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[j](!1)},fixed64:function(){return readFixed64.call(this)[j](!0)},sfixed64:function(){return readFixed64.call(this)[j](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$1=requireMinimal();function BufferReader(s){Reader.call(this,s)}BufferReader._configure=function(){util$1.Buffer&&(BufferReader.prototype._slice=util$1.Buffer.prototype.slice)};BufferReader.prototype.string=function s(){var j=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+j,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+j,this.len))};BufferReader._configure();var rpc={},service=Service,util=requireMinimal();(Service.prototype=Object.create(util.EventEmitter.prototype)).constructor=Service;function Service(s,j,$){if(typeof s!="function")throw TypeError("rpcImpl must be a function");util.EventEmitter.call(this),this.rpcImpl=s,this.requestDelimited=!!j,this.responseDelimited=!!$}Service.prototype.rpcCall=function s(j,$,_e,et,tt){if(!et)throw TypeError("request must be specified");var nt=this;if(!tt)return util.asPromise(s,nt,j,$,_e,et);if(!nt.rpcImpl){setTimeout(function(){tt(Error("already ended"))},0);return}try{return nt.rpcImpl(j,$[nt.requestDelimited?"encodeDelimited":"encode"](et).finish(),function(ot,it){if(ot)return nt.emit("error",ot,j),tt(ot);if(it===null){nt.end(!0);return}if(!(it instanceof _e))try{it=_e[nt.responseDelimited?"decodeDelimited":"decode"](it)}catch(st){return nt.emit("error",st,j),tt(st)}return nt.emit("data",it,j),tt(null,it)})}catch(rt){nt.emit("error",rt,j),setTimeout(function(){tt(rt)},0);return}};Service.prototype.end=function s(j){return this.rpcImpl&&(j||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(s){var j=s;j.Service=service})(rpc);var roots={};(function(s){var j=s;j.build="minimal",j.Writer=writer,j.BufferWriter=writer_buffer,j.Reader=reader,j.BufferReader=reader_buffer,j.util=requireMinimal(),j.rpc=rpc,j.roots=roots,j.configure=$;function $(){j.util._configure(),j.Writer._configure(j.BufferWriter),j.Reader._configure(j.BufferReader)}$()})(indexMinimal);var minimal=indexMinimal;const _m0=getDefaultExportFromCjs$1(minimal);_m0.util.Long!==Long$1&&(_m0.util.Long=Long$1,_m0.configure());var __assign$5=function(){return __assign$5=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$5.apply(this,arguments)};_m0.util.Long!==Long$1&&(_m0.util.Long=Long$1,_m0.configure());var __assign$4=function(){return __assign$4=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$4.apply(this,arguments)},FieldDescriptorProto_Type;(function(s){s[s.TYPE_DOUBLE=1]="TYPE_DOUBLE",s[s.TYPE_FLOAT=2]="TYPE_FLOAT",s[s.TYPE_INT64=3]="TYPE_INT64",s[s.TYPE_UINT64=4]="TYPE_UINT64",s[s.TYPE_INT32=5]="TYPE_INT32",s[s.TYPE_FIXED64=6]="TYPE_FIXED64",s[s.TYPE_FIXED32=7]="TYPE_FIXED32",s[s.TYPE_BOOL=8]="TYPE_BOOL",s[s.TYPE_STRING=9]="TYPE_STRING",s[s.TYPE_GROUP=10]="TYPE_GROUP",s[s.TYPE_MESSAGE=11]="TYPE_MESSAGE",s[s.TYPE_BYTES=12]="TYPE_BYTES",s[s.TYPE_UINT32=13]="TYPE_UINT32",s[s.TYPE_ENUM=14]="TYPE_ENUM",s[s.TYPE_SFIXED32=15]="TYPE_SFIXED32",s[s.TYPE_SFIXED64=16]="TYPE_SFIXED64",s[s.TYPE_SINT32=17]="TYPE_SINT32",s[s.TYPE_SINT64=18]="TYPE_SINT64",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FieldDescriptorProto_Type||(FieldDescriptorProto_Type={}));var FieldDescriptorProto_Label;(function(s){s[s.LABEL_OPTIONAL=1]="LABEL_OPTIONAL",s[s.LABEL_REQUIRED=2]="LABEL_REQUIRED",s[s.LABEL_REPEATED=3]="LABEL_REPEATED",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FieldDescriptorProto_Label||(FieldDescriptorProto_Label={}));var FileOptions_OptimizeMode;(function(s){s[s.SPEED=1]="SPEED",s[s.CODE_SIZE=2]="CODE_SIZE",s[s.LITE_RUNTIME=3]="LITE_RUNTIME",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FileOptions_OptimizeMode||(FileOptions_OptimizeMode={}));var FieldOptions_CType;(function(s){s[s.STRING=0]="STRING",s[s.CORD=1]="CORD",s[s.STRING_PIECE=2]="STRING_PIECE",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FieldOptions_CType||(FieldOptions_CType={}));var FieldOptions_JSType;(function(s){s[s.JS_NORMAL=0]="JS_NORMAL",s[s.JS_STRING=1]="JS_STRING",s[s.JS_NUMBER=2]="JS_NUMBER",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FieldOptions_JSType||(FieldOptions_JSType={}));var MethodOptions_IdempotencyLevel;(function(s){s[s.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",s[s.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",s[s.IDEMPOTENT=2]="IDEMPOTENT",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MethodOptions_IdempotencyLevel||(MethodOptions_IdempotencyLevel={}));var globalThis$5=function(){if(typeof globalThis$5<"u")return globalThis$5;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"}();globalThis$5.atob;globalThis$5.btoa;_m0.util.Long!==Long$1&&(_m0.util.Long=Long$1,_m0.configure());var __assign$3=function(){return __assign$3=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$3.apply(this,arguments)},__values$1=function(s){var j=typeof Symbol=="function"&&Symbol.iterator,$=j&&s[j],_e=0;if($)return $.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&_e>=s.length&&(s=void 0),{value:s&&s[_e++],done:!s}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")},baseHeartbeat={nodeName:"",counter:"0",timestamp:"0",version:"",guardianAddr:"",bootTimestamp:"0",features:""},Heartbeat={encode:function(s,j){var $,_e,et,tt;j===void 0&&(j=_m0.Writer.create()),s.nodeName!==""&&j.uint32(10).string(s.nodeName),s.counter!=="0"&&j.uint32(16).int64(s.counter),s.timestamp!=="0"&&j.uint32(24).int64(s.timestamp);try{for(var nt=__values$1(s.networks),rt=nt.next();!rt.done;rt=nt.next()){var ot=rt.value;Heartbeat_Network.encode(ot,j.uint32(34).fork()).ldelim()}}catch(at){$={error:at}}finally{try{rt&&!rt.done&&(_e=nt.return)&&_e.call(nt)}finally{if($)throw $.error}}s.version!==""&&j.uint32(42).string(s.version),s.guardianAddr!==""&&j.uint32(50).string(s.guardianAddr),s.bootTimestamp!=="0"&&j.uint32(56).int64(s.bootTimestamp);try{for(var it=__values$1(s.features),st=it.next();!st.done;st=it.next()){var ot=st.value;j.uint32(66).string(ot)}}catch(at){et={error:at}}finally{try{st&&!st.done&&(tt=it.return)&&tt.call(it)}finally{if(et)throw et.error}}return s.p2pNodeId.length!==0&&j.uint32(74).bytes(s.p2pNodeId),j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$3({},baseHeartbeat);for(et.networks=[],et.features=[],et.p2pNodeId=new Uint8Array;$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.nodeName=$.string();break;case 2:et.counter=longToString$1($.int64());break;case 3:et.timestamp=longToString$1($.int64());break;case 4:et.networks.push(Heartbeat_Network.decode($,$.uint32()));break;case 5:et.version=$.string();break;case 6:et.guardianAddr=$.string();break;case 7:et.bootTimestamp=longToString$1($.int64());break;case 8:et.features.push($.string());break;case 9:et.p2pNodeId=$.bytes();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e,et,tt=__assign$3({},baseHeartbeat);if(tt.networks=[],tt.features=[],tt.p2pNodeId=new Uint8Array,s.nodeName!==void 0&&s.nodeName!==null?tt.nodeName=String(s.nodeName):tt.nodeName="",s.counter!==void 0&&s.counter!==null?tt.counter=String(s.counter):tt.counter="0",s.timestamp!==void 0&&s.timestamp!==null?tt.timestamp=String(s.timestamp):tt.timestamp="0",s.networks!==void 0&&s.networks!==null)try{for(var nt=__values$1(s.networks),rt=nt.next();!rt.done;rt=nt.next()){var ot=rt.value;tt.networks.push(Heartbeat_Network.fromJSON(ot))}}catch(at){j={error:at}}finally{try{rt&&!rt.done&&($=nt.return)&&$.call(nt)}finally{if(j)throw j.error}}if(s.version!==void 0&&s.version!==null?tt.version=String(s.version):tt.version="",s.guardianAddr!==void 0&&s.guardianAddr!==null?tt.guardianAddr=String(s.guardianAddr):tt.guardianAddr="",s.bootTimestamp!==void 0&&s.bootTimestamp!==null?tt.bootTimestamp=String(s.bootTimestamp):tt.bootTimestamp="0",s.features!==void 0&&s.features!==null)try{for(var it=__values$1(s.features),st=it.next();!st.done;st=it.next()){var ot=st.value;tt.features.push(String(ot))}}catch(at){_e={error:at}}finally{try{st&&!st.done&&(et=it.return)&&et.call(it)}finally{if(_e)throw _e.error}}return s.p2pNodeId!==void 0&&s.p2pNodeId!==null&&(tt.p2pNodeId=bytesFromBase64$1(s.p2pNodeId)),tt},toJSON:function(s){var j={};return s.nodeName!==void 0&&(j.nodeName=s.nodeName),s.counter!==void 0&&(j.counter=s.counter),s.timestamp!==void 0&&(j.timestamp=s.timestamp),s.networks?j.networks=s.networks.map(function($){return $?Heartbeat_Network.toJSON($):void 0}):j.networks=[],s.version!==void 0&&(j.version=s.version),s.guardianAddr!==void 0&&(j.guardianAddr=s.guardianAddr),s.bootTimestamp!==void 0&&(j.bootTimestamp=s.bootTimestamp),s.features?j.features=s.features.map(function($){return $}):j.features=[],s.p2pNodeId!==void 0&&(j.p2pNodeId=base64FromBytes$1(s.p2pNodeId!==void 0?s.p2pNodeId:new Uint8Array)),j},fromPartial:function(s){var j,$,_e,et,tt=__assign$3({},baseHeartbeat);if(tt.networks=[],tt.features=[],s.nodeName!==void 0&&s.nodeName!==null?tt.nodeName=s.nodeName:tt.nodeName="",s.counter!==void 0&&s.counter!==null?tt.counter=s.counter:tt.counter="0",s.timestamp!==void 0&&s.timestamp!==null?tt.timestamp=s.timestamp:tt.timestamp="0",s.networks!==void 0&&s.networks!==null)try{for(var nt=__values$1(s.networks),rt=nt.next();!rt.done;rt=nt.next()){var ot=rt.value;tt.networks.push(Heartbeat_Network.fromPartial(ot))}}catch(at){j={error:at}}finally{try{rt&&!rt.done&&($=nt.return)&&$.call(nt)}finally{if(j)throw j.error}}if(s.version!==void 0&&s.version!==null?tt.version=s.version:tt.version="",s.guardianAddr!==void 0&&s.guardianAddr!==null?tt.guardianAddr=s.guardianAddr:tt.guardianAddr="",s.bootTimestamp!==void 0&&s.bootTimestamp!==null?tt.bootTimestamp=s.bootTimestamp:tt.bootTimestamp="0",s.features!==void 0&&s.features!==null)try{for(var it=__values$1(s.features),st=it.next();!st.done;st=it.next()){var ot=st.value;tt.features.push(ot)}}catch(at){_e={error:at}}finally{try{st&&!st.done&&(et=it.return)&&et.call(it)}finally{if(_e)throw _e.error}}return s.p2pNodeId!==void 0&&s.p2pNodeId!==null?tt.p2pNodeId=s.p2pNodeId:tt.p2pNodeId=new Uint8Array,tt}},baseHeartbeat_Network={id:0,height:"0",contractAddress:"",errorCount:"0",safeHeight:"0",finalizedHeight:"0"},Heartbeat_Network={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.id!==0&&j.uint32(8).uint32(s.id),s.height!=="0"&&j.uint32(16).int64(s.height),s.contractAddress!==""&&j.uint32(26).string(s.contractAddress),s.errorCount!=="0"&&j.uint32(32).uint64(s.errorCount),s.safeHeight!=="0"&&j.uint32(40).int64(s.safeHeight),s.finalizedHeight!=="0"&&j.uint32(48).int64(s.finalizedHeight),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$3({},baseHeartbeat_Network);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.id=$.uint32();break;case 2:et.height=longToString$1($.int64());break;case 3:et.contractAddress=$.string();break;case 4:et.errorCount=longToString$1($.uint64());break;case 5:et.safeHeight=longToString$1($.int64());break;case 6:et.finalizedHeight=longToString$1($.int64());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$3({},baseHeartbeat_Network);return s.id!==void 0&&s.id!==null?j.id=Number(s.id):j.id=0,s.height!==void 0&&s.height!==null?j.height=String(s.height):j.height="0",s.contractAddress!==void 0&&s.contractAddress!==null?j.contractAddress=String(s.contractAddress):j.contractAddress="",s.errorCount!==void 0&&s.errorCount!==null?j.errorCount=String(s.errorCount):j.errorCount="0",s.safeHeight!==void 0&&s.safeHeight!==null?j.safeHeight=String(s.safeHeight):j.safeHeight="0",s.finalizedHeight!==void 0&&s.finalizedHeight!==null?j.finalizedHeight=String(s.finalizedHeight):j.finalizedHeight="0",j},toJSON:function(s){var j={};return s.id!==void 0&&(j.id=s.id),s.height!==void 0&&(j.height=s.height),s.contractAddress!==void 0&&(j.contractAddress=s.contractAddress),s.errorCount!==void 0&&(j.errorCount=s.errorCount),s.safeHeight!==void 0&&(j.safeHeight=s.safeHeight),s.finalizedHeight!==void 0&&(j.finalizedHeight=s.finalizedHeight),j},fromPartial:function(s){var j=__assign$3({},baseHeartbeat_Network);return s.id!==void 0&&s.id!==null?j.id=s.id:j.id=0,s.height!==void 0&&s.height!==null?j.height=s.height:j.height="0",s.contractAddress!==void 0&&s.contractAddress!==null?j.contractAddress=s.contractAddress:j.contractAddress="",s.errorCount!==void 0&&s.errorCount!==null?j.errorCount=s.errorCount:j.errorCount="0",s.safeHeight!==void 0&&s.safeHeight!==null?j.safeHeight=s.safeHeight:j.safeHeight="0",s.finalizedHeight!==void 0&&s.finalizedHeight!==null?j.finalizedHeight=s.finalizedHeight:j.finalizedHeight="0",j}},baseSignedBatchVAAWithQuorum={chainId:0,nonce:0,batchId:""},SignedBatchVAAWithQuorum={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.batchVaa.length!==0&&j.uint32(10).bytes(s.batchVaa),s.chainId!==0&&j.uint32(16).uint32(s.chainId),s.txId.length!==0&&j.uint32(26).bytes(s.txId),s.nonce!==0&&j.uint32(32).uint32(s.nonce),s.batchId!==""&&j.uint32(42).string(s.batchId),j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$3({},baseSignedBatchVAAWithQuorum);for(et.batchVaa=new Uint8Array,et.txId=new Uint8Array;$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.batchVaa=$.bytes();break;case 2:et.chainId=$.uint32();break;case 3:et.txId=$.bytes();break;case 4:et.nonce=$.uint32();break;case 5:et.batchId=$.string();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$3({},baseSignedBatchVAAWithQuorum);return j.batchVaa=new Uint8Array,j.txId=new Uint8Array,s.batchVaa!==void 0&&s.batchVaa!==null&&(j.batchVaa=bytesFromBase64$1(s.batchVaa)),s.chainId!==void 0&&s.chainId!==null?j.chainId=Number(s.chainId):j.chainId=0,s.txId!==void 0&&s.txId!==null&&(j.txId=bytesFromBase64$1(s.txId)),s.nonce!==void 0&&s.nonce!==null?j.nonce=Number(s.nonce):j.nonce=0,s.batchId!==void 0&&s.batchId!==null?j.batchId=String(s.batchId):j.batchId="",j},toJSON:function(s){var j={};return s.batchVaa!==void 0&&(j.batchVaa=base64FromBytes$1(s.batchVaa!==void 0?s.batchVaa:new Uint8Array)),s.chainId!==void 0&&(j.chainId=s.chainId),s.txId!==void 0&&(j.txId=base64FromBytes$1(s.txId!==void 0?s.txId:new Uint8Array)),s.nonce!==void 0&&(j.nonce=s.nonce),s.batchId!==void 0&&(j.batchId=s.batchId),j},fromPartial:function(s){var j=__assign$3({},baseSignedBatchVAAWithQuorum);return s.batchVaa!==void 0&&s.batchVaa!==null?j.batchVaa=s.batchVaa:j.batchVaa=new Uint8Array,s.chainId!==void 0&&s.chainId!==null?j.chainId=s.chainId:j.chainId=0,s.txId!==void 0&&s.txId!==null?j.txId=s.txId:j.txId=new Uint8Array,s.nonce!==void 0&&s.nonce!==null?j.nonce=s.nonce:j.nonce=0,s.batchId!==void 0&&s.batchId!==null?j.batchId=s.batchId:j.batchId="",j}},globalThis$4=function(){if(typeof globalThis$4<"u")return globalThis$4;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"}(),atob$1=globalThis$4.atob||function(s){return globalThis$4.Buffer.from(s,"base64").toString("binary")};function bytesFromBase64$1(s){for(var j=atob$1(s),$=new Uint8Array(j.length),_e=0;_e0){var yt=ft.substring(0,gt).trim(),mt=ft.substring(gt+1).trim();this.append(yt,mt)}}},at.prototype.delete=function(ct,lt){var dt=it.normalizeName(ct);if(lt===void 0)delete this.headersMap[dt];else{var ft=this.headersMap[dt];if(ft){var gt=ft.indexOf(lt);gt>=0&&ft.splice(gt,1),ft.length===0&&delete this.headersMap[dt]}}},at.prototype.append=function(ct,lt){var dt=this,ft=it.normalizeName(ct);Array.isArray(this.headersMap[ft])||(this.headersMap[ft]=[]),Array.isArray(lt)?lt.forEach(function(gt){dt.headersMap[ft].push(it.normalizeValue(gt))}):this.headersMap[ft].push(it.normalizeValue(lt))},at.prototype.set=function(ct,lt){var dt=it.normalizeName(ct);if(Array.isArray(lt)){var ft=[];lt.forEach(function(gt){ft.push(it.normalizeValue(gt))}),this.headersMap[dt]=ft}else this.headersMap[dt]=[it.normalizeValue(lt)]},at.prototype.has=function(ct,lt){var dt=this.headersMap[it.normalizeName(ct)];if(!Array.isArray(dt))return!1;if(lt!==void 0){var ft=it.normalizeValue(lt);return dt.indexOf(ft)>=0}return!0},at.prototype.get=function(ct){var lt=this.headersMap[it.normalizeName(ct)];return lt!==void 0?lt.concat():[]},at.prototype.forEach=function(ct){var lt=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(dt){ct(dt,lt.headersMap[dt])},this)},at.prototype.toHeaders=function(){if(typeof Headers<"u"){var ct=new Headers;return this.forEach(function(lt,dt){dt.forEach(function(ft){ct.append(lt,ft)})}),ct}throw new Error("Headers class is not defined")},at}();rt.BrowserHeaders=st},function(nt,rt,ot){Object.defineProperty(rt,"__esModule",{value:!0});var it=ot(0);rt.BrowserHeaders=it.BrowserHeaders},function(nt,rt,ot){Object.defineProperty(rt,"__esModule",{value:!0}),rt.iterateHeaders=function(it,st){for(var at=it[Symbol.iterator](),ct=at.next();!ct.done;)st(ct.value[0]),ct=at.next()},rt.iterateHeadersKeys=function(it,st){for(var at=it.keys(),ct=at.next();!ct.done;)st(ct.value),ct=at.next()}},function(nt,rt,ot){Object.defineProperty(rt,"__esModule",{value:!0});var it=ot(2);rt.normalizeName=function(st){if(typeof st!="string"&&(st=String(st)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(st))throw new TypeError("Invalid character in header field name");return st.toLowerCase()},rt.normalizeValue=function(st){return typeof st!="string"&&(st=String(st)),st},rt.getHeaderValues=function(st,at){var ct=st;if(ct instanceof Headers&&ct.getAll)return ct.getAll(at);var lt=ct.get(at);return lt&&typeof lt=="string"?[lt]:lt},rt.getHeaderKeys=function(st){var at=st,ct={},lt=[];return at.keys?it.iterateHeadersKeys(at,function(dt){ct[dt]||(ct[dt]=!0,lt.push(dt))}):at.forEach?at.forEach(function(dt,ft){ct[ft]||(ct[ft]=!0,lt.push(ft))}):it.iterateHeaders(at,function(dt){var ft=dt[0];ct[ft]||(ct[ft]=!0,lt.push(ft))}),lt},rt.splitHeaderValue=function(st){var at=[];return st.split(", ").forEach(function(ct){ct.split(",").forEach(function(lt){at.push(lt)})}),at}}]))},617:function(et,tt,nt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.ChunkParser=tt.ChunkType=tt.encodeASCII=tt.decodeASCII=void 0;var rt,ot=nt(65);function it(gt){return(yt=gt)===9||yt===10||yt===13||gt>=32&><=126;var yt}function st(gt){for(var yt=0;yt!==gt.length;++yt)if(!it(gt[yt]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(gt))}function at(gt){return(128>.getUint8(0))==128}function ct(gt){return gt.getUint32(1,!1)}function lt(gt,yt,mt){return gt.byteLength-yt>=mt}function dt(gt,yt,mt){if(gt.slice)return gt.slice(yt,mt);var pt=gt.length;mt!==void 0&&(pt=mt);for(var xt=new Uint8Array(pt-yt),Ct=0,Dt=yt;Dt=0?mt:it.httpStatusToCode(yt);this.props.debug&&st.debug("onHeaders.code",pt);var xt=gt.get("grpc-message")||[];if(this.props.debug&&st.debug("onHeaders.gRPCMessage",xt),this.rawOnHeaders(gt),pt!==it.Code.OK){var Ct=this.decodeGRPCStatus(xt[0]);this.rawOnError(pt,Ct,gt)}}},ft.prototype.onTransportChunk=function(gt){var yt=this;if(this.closed)this.props.debug&&st.debug("grpc.onChunk received after request was closed - ignoring");else{var mt=[];try{mt=this.parser.parse(gt)}catch(pt){return this.props.debug&&st.debug("onChunk.parsing error",pt,pt.message),void this.rawOnError(it.Code.Internal,"parsing error: "+pt.message)}mt.forEach(function(pt){if(pt.chunkType===ot.ChunkType.MESSAGE){var xt=yt.methodDefinition.responseType.deserializeBinary(pt.data);yt.rawOnMessage(xt)}else pt.chunkType===ot.ChunkType.TRAILERS&&(yt.responseHeaders?(yt.responseTrailers=new rt.Metadata(pt.trailers),yt.props.debug&&st.debug("onChunk.trailers",yt.responseTrailers)):(yt.responseHeaders=new rt.Metadata(pt.trailers),yt.rawOnHeaders(yt.responseHeaders)))})}},ft.prototype.onTransportEnd=function(){if(this.props.debug&&st.debug("grpc.onEnd"),this.closed)this.props.debug&&st.debug("grpc.onEnd received after request was closed - ignoring");else if(this.responseTrailers!==void 0){var gt=dt(this.responseTrailers);if(gt!==null){var yt=this.responseTrailers.get("grpc-message"),mt=this.decodeGRPCStatus(yt[0]);this.rawOnEnd(gt,mt,this.responseTrailers)}else this.rawOnError(it.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(this.responseHeaders===void 0)return void this.rawOnError(it.Code.Unknown,"Response closed without headers");var pt=dt(this.responseHeaders),xt=this.responseHeaders.get("grpc-message");if(this.props.debug&&st.debug("grpc.headers only response ",pt,xt),pt===null)return void this.rawOnEnd(it.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var Ct=this.decodeGRPCStatus(xt[0]);this.rawOnEnd(pt,Ct,this.responseHeaders)}},ft.prototype.decodeGRPCStatus=function(gt){if(!gt)return"";try{return decodeURIComponent(gt)}catch{return gt}},ft.prototype.rawOnEnd=function(gt,yt,mt){var pt=this;this.props.debug&&st.debug("rawOnEnd",gt,yt,mt),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(xt){if(!pt.closed)try{xt(gt,yt,mt)}catch(Ct){setTimeout(function(){throw Ct},0)}}))},ft.prototype.rawOnHeaders=function(gt){this.props.debug&&st.debug("rawOnHeaders",gt),this.completed||this.onHeadersCallbacks.forEach(function(yt){try{yt(gt)}catch(mt){setTimeout(function(){throw mt},0)}})},ft.prototype.rawOnError=function(gt,yt,mt){var pt=this;mt===void 0&&(mt=new rt.Metadata),this.props.debug&&st.debug("rawOnError",gt,yt),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(xt){if(!pt.closed)try{xt(gt,yt,mt)}catch(Ct){setTimeout(function(){throw Ct},0)}}))},ft.prototype.rawOnMessage=function(gt){var yt=this;this.props.debug&&st.debug("rawOnMessage",gt.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach(function(mt){if(!yt.closed)try{mt(gt)}catch(pt){setTimeout(function(){throw pt},0)}})},ft.prototype.onHeaders=function(gt){this.onHeadersCallbacks.push(gt)},ft.prototype.onMessage=function(gt){this.onMessageCallbacks.push(gt)},ft.prototype.onEnd=function(gt){this.onEndCallbacks.push(gt)},ft.prototype.start=function(gt){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var yt=new rt.Metadata(gt||{});yt.set("content-type","application/grpc-web+proto"),yt.set("x-grpc-web","1"),this.transport.start(yt)},ft.prototype.send=function(gt){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var yt=ct.frameRequest(gt);this.transport.sendMessage(yt)},ft.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},ft.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&st.debug("request.abort aborting request"),this.transport.cancel()},ft}();function dt(ft){var gt=ft.get("grpc-status")||[];if(gt.length>0)try{var yt=gt[0];return parseInt(yt,10)}catch{return null}return null}},346:function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.debug=void 0,tt.debug=function(){for(var nt=[],rt=0;rt=55296&&mt<=56319){var pt=gt.charCodeAt(yt+1);pt>=56320&&pt<=57343&&(mt=65536+(mt-55296<<10)+(pt-56320))}return mt}function ft(gt){for(var yt=new Uint8Array(gt.length),mt=0,pt=0;pt0){var dt=ct.substring(0,lt).trim(),ft=ct.substring(lt+1).trim();this.append(dt,ft)}}},ot.prototype.delete=function(it,st){var at=tt.normalizeName(it);if(st===void 0)delete this.headersMap[at];else{var ct=this.headersMap[at];if(ct){var lt=ct.indexOf(st);lt>=0&&ct.splice(lt,1),ct.length===0&&delete this.headersMap[at]}}},ot.prototype.append=function(it,st){var at=this,ct=tt.normalizeName(it);Array.isArray(this.headersMap[ct])||(this.headersMap[ct]=[]),Array.isArray(st)?st.forEach(function(lt){at.headersMap[ct].push(tt.normalizeValue(lt))}):this.headersMap[ct].push(tt.normalizeValue(st))},ot.prototype.set=function(it,st){var at=tt.normalizeName(it);if(Array.isArray(st)){var ct=[];st.forEach(function(lt){ct.push(tt.normalizeValue(lt))}),this.headersMap[at]=ct}else this.headersMap[at]=[tt.normalizeValue(st)]},ot.prototype.has=function(it,st){var at=this.headersMap[tt.normalizeName(it)],ct=Array.isArray(at);if(!ct)return!1;if(st!==void 0){var lt=tt.normalizeValue(st);return at.indexOf(lt)>=0}else return!0},ot.prototype.get=function(it){var st=this.headersMap[tt.normalizeName(it)];return st!==void 0?st.concat():[]},ot.prototype.forEach=function(it){var st=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(at){it(at,st.headersMap[at])},this)},ot.prototype.toHeaders=function(){if(typeof Headers<"u"){var it=new Headers;return this.forEach(function(st,at){at.forEach(function(ct){it.append(st,ct)})}),it}else throw new Error("Headers class is not defined")},ot}();_e.BrowserHeaders=rt},function($,_e,et){Object.defineProperty(_e,"__esModule",{value:!0});var tt=et(0);_e.BrowserHeaders=tt.BrowserHeaders},function($,_e,et){Object.defineProperty(_e,"__esModule",{value:!0});function tt(rt,ot){for(var it=rt[Symbol.iterator](),st=it.next();!st.done;)ot(st.value[0]),st=it.next()}_e.iterateHeaders=tt;function nt(rt,ot){for(var it=rt.keys(),st=it.next();!st.done;)ot(st.value),st=it.next()}_e.iterateHeadersKeys=nt},function($,_e,et){Object.defineProperty(_e,"__esModule",{value:!0});var tt=et(2);function nt(ct){if(typeof ct!="string"&&(ct=String(ct)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(ct))throw new TypeError("Invalid character in header field name");return ct.toLowerCase()}_e.normalizeName=nt;function rt(ct){return typeof ct!="string"&&(ct=String(ct)),ct}_e.normalizeValue=rt;function ot(ct,lt){var dt=ct;if(dt instanceof Headers&&dt.getAll)return dt.getAll(lt);var ft=dt.get(lt);return ft&&typeof ft=="string"?[ft]:ft}_e.getHeaderValues=ot;function it(ct){return ct}function st(ct){var lt=ct,dt={},ft=[];return lt.keys?tt.iterateHeadersKeys(lt,function(gt){dt[gt]||(dt[gt]=!0,ft.push(gt))}):lt.forEach?lt.forEach(function(gt,yt){dt[yt]||(dt[yt]=!0,ft.push(yt))}):tt.iterateHeaders(lt,function(gt){var yt=gt[0];dt[yt]||(dt[yt]=!0,ft.push(yt))}),ft}_e.getHeaderKeys=st;function at(ct){var lt=[],dt=ct.split(", ");return dt.forEach(function(ft){ft.split(",").forEach(function(gt){lt.push(gt)})}),lt}_e.splitHeaderValue=at}])})})(browserHeaders_umd);var browserHeaders_umdExports=browserHeaders_umd.exports,__assign$2=function(){return __assign$2=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$2.apply(this,arguments)},ModificationKind;(function(s){s[s.MODIFICATION_KIND_UNSPECIFIED=0]="MODIFICATION_KIND_UNSPECIFIED",s[s.MODIFICATION_KIND_ADD=1]="MODIFICATION_KIND_ADD",s[s.MODIFICATION_KIND_SUBTRACT=2]="MODIFICATION_KIND_SUBTRACT",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ModificationKind||(ModificationKind={}));var WormchainWasmInstantiateAllowlistAction;(function(s){s[s.WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_UNSPECIFIED=0]="WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_UNSPECIFIED",s[s.WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_ADD=1]="WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_ADD",s[s.WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_DELETE=2]="WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_DELETE",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WormchainWasmInstantiateAllowlistAction||(WormchainWasmInstantiateAllowlistAction={}));var IbcUpdateChannelChainModule;(function(s){s[s.IBC_UPDATE_CHANNEL_CHAIN_MODULE_UNSPECIFIED=0]="IBC_UPDATE_CHANNEL_CHAIN_MODULE_UNSPECIFIED",s[s.IBC_UPDATE_CHANNEL_CHAIN_MODULE_RECEIVER=1]="IBC_UPDATE_CHANNEL_CHAIN_MODULE_RECEIVER",s[s.IBC_UPDATE_CHANNEL_CHAIN_MODULE_TRANSLATOR=2]="IBC_UPDATE_CHANNEL_CHAIN_MODULE_TRANSLATOR",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IbcUpdateChannelChainModule||(IbcUpdateChannelChainModule={}));var globalThis$3=function(){if(typeof globalThis$3<"u")return globalThis$3;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"}();globalThis$3.atob;globalThis$3.btoa;_m0.util.Long!==Long$1&&(_m0.util.Long=Long$1,_m0.configure());var __assign$1=function(){return __assign$1=Object.assign||function(s){for(var j,$=1,_e=arguments.length;$<_e;$++){j=arguments[$];for(var et in j)Object.prototype.hasOwnProperty.call(j,et)&&(s[et]=j[et])}return s},__assign$1.apply(this,arguments)},__values=function(s){var j=typeof Symbol=="function"&&Symbol.iterator,$=j&&s[j],_e=0;if($)return $.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&_e>=s.length&&(s=void 0),{value:s&&s[_e++],done:!s}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")},protobufPackage="publicrpc.v1",ChainID;(function(s){s[s.CHAIN_ID_UNSPECIFIED=0]="CHAIN_ID_UNSPECIFIED",s[s.CHAIN_ID_SOLANA=1]="CHAIN_ID_SOLANA",s[s.CHAIN_ID_ETHEREUM=2]="CHAIN_ID_ETHEREUM",s[s.CHAIN_ID_TERRA=3]="CHAIN_ID_TERRA",s[s.CHAIN_ID_BSC=4]="CHAIN_ID_BSC",s[s.CHAIN_ID_POLYGON=5]="CHAIN_ID_POLYGON",s[s.CHAIN_ID_AVALANCHE=6]="CHAIN_ID_AVALANCHE",s[s.CHAIN_ID_OASIS=7]="CHAIN_ID_OASIS",s[s.CHAIN_ID_ALGORAND=8]="CHAIN_ID_ALGORAND",s[s.CHAIN_ID_AURORA=9]="CHAIN_ID_AURORA",s[s.CHAIN_ID_FANTOM=10]="CHAIN_ID_FANTOM",s[s.CHAIN_ID_KARURA=11]="CHAIN_ID_KARURA",s[s.CHAIN_ID_ACALA=12]="CHAIN_ID_ACALA",s[s.CHAIN_ID_KLAYTN=13]="CHAIN_ID_KLAYTN",s[s.CHAIN_ID_CELO=14]="CHAIN_ID_CELO",s[s.CHAIN_ID_NEAR=15]="CHAIN_ID_NEAR",s[s.CHAIN_ID_MOONBEAM=16]="CHAIN_ID_MOONBEAM",s[s.CHAIN_ID_NEON=17]="CHAIN_ID_NEON",s[s.CHAIN_ID_TERRA2=18]="CHAIN_ID_TERRA2",s[s.CHAIN_ID_INJECTIVE=19]="CHAIN_ID_INJECTIVE",s[s.CHAIN_ID_OSMOSIS=20]="CHAIN_ID_OSMOSIS",s[s.CHAIN_ID_SUI=21]="CHAIN_ID_SUI",s[s.CHAIN_ID_APTOS=22]="CHAIN_ID_APTOS",s[s.CHAIN_ID_ARBITRUM=23]="CHAIN_ID_ARBITRUM",s[s.CHAIN_ID_OPTIMISM=24]="CHAIN_ID_OPTIMISM",s[s.CHAIN_ID_GNOSIS=25]="CHAIN_ID_GNOSIS",s[s.CHAIN_ID_PYTHNET=26]="CHAIN_ID_PYTHNET",s[s.CHAIN_ID_XPLA=28]="CHAIN_ID_XPLA",s[s.CHAIN_ID_BTC=29]="CHAIN_ID_BTC",s[s.CHAIN_ID_BASE=30]="CHAIN_ID_BASE",s[s.CHAIN_ID_SEI=32]="CHAIN_ID_SEI",s[s.CHAIN_ID_SCROLL=34]="CHAIN_ID_SCROLL",s[s.CHAIN_ID_SEPOLIA=10002]="CHAIN_ID_SEPOLIA",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ChainID||(ChainID={}));function chainIDFromJSON(s){switch(s){case 0:case"CHAIN_ID_UNSPECIFIED":return ChainID.CHAIN_ID_UNSPECIFIED;case 1:case"CHAIN_ID_SOLANA":return ChainID.CHAIN_ID_SOLANA;case 2:case"CHAIN_ID_ETHEREUM":return ChainID.CHAIN_ID_ETHEREUM;case 3:case"CHAIN_ID_TERRA":return ChainID.CHAIN_ID_TERRA;case 4:case"CHAIN_ID_BSC":return ChainID.CHAIN_ID_BSC;case 5:case"CHAIN_ID_POLYGON":return ChainID.CHAIN_ID_POLYGON;case 6:case"CHAIN_ID_AVALANCHE":return ChainID.CHAIN_ID_AVALANCHE;case 7:case"CHAIN_ID_OASIS":return ChainID.CHAIN_ID_OASIS;case 8:case"CHAIN_ID_ALGORAND":return ChainID.CHAIN_ID_ALGORAND;case 9:case"CHAIN_ID_AURORA":return ChainID.CHAIN_ID_AURORA;case 10:case"CHAIN_ID_FANTOM":return ChainID.CHAIN_ID_FANTOM;case 11:case"CHAIN_ID_KARURA":return ChainID.CHAIN_ID_KARURA;case 12:case"CHAIN_ID_ACALA":return ChainID.CHAIN_ID_ACALA;case 13:case"CHAIN_ID_KLAYTN":return ChainID.CHAIN_ID_KLAYTN;case 14:case"CHAIN_ID_CELO":return ChainID.CHAIN_ID_CELO;case 15:case"CHAIN_ID_NEAR":return ChainID.CHAIN_ID_NEAR;case 16:case"CHAIN_ID_MOONBEAM":return ChainID.CHAIN_ID_MOONBEAM;case 17:case"CHAIN_ID_NEON":return ChainID.CHAIN_ID_NEON;case 18:case"CHAIN_ID_TERRA2":return ChainID.CHAIN_ID_TERRA2;case 19:case"CHAIN_ID_INJECTIVE":return ChainID.CHAIN_ID_INJECTIVE;case 20:case"CHAIN_ID_OSMOSIS":return ChainID.CHAIN_ID_OSMOSIS;case 21:case"CHAIN_ID_SUI":return ChainID.CHAIN_ID_SUI;case 22:case"CHAIN_ID_APTOS":return ChainID.CHAIN_ID_APTOS;case 23:case"CHAIN_ID_ARBITRUM":return ChainID.CHAIN_ID_ARBITRUM;case 24:case"CHAIN_ID_OPTIMISM":return ChainID.CHAIN_ID_OPTIMISM;case 25:case"CHAIN_ID_GNOSIS":return ChainID.CHAIN_ID_GNOSIS;case 26:case"CHAIN_ID_PYTHNET":return ChainID.CHAIN_ID_PYTHNET;case 28:case"CHAIN_ID_XPLA":return ChainID.CHAIN_ID_XPLA;case 29:case"CHAIN_ID_BTC":return ChainID.CHAIN_ID_BTC;case 30:case"CHAIN_ID_BASE":return ChainID.CHAIN_ID_BASE;case 32:case"CHAIN_ID_SEI":return ChainID.CHAIN_ID_SEI;case 34:case"CHAIN_ID_SCROLL":return ChainID.CHAIN_ID_SCROLL;case 10002:case"CHAIN_ID_SEPOLIA":return ChainID.CHAIN_ID_SEPOLIA;case-1:case"UNRECOGNIZED":default:return ChainID.UNRECOGNIZED}}function chainIDToJSON(s){switch(s){case ChainID.CHAIN_ID_UNSPECIFIED:return"CHAIN_ID_UNSPECIFIED";case ChainID.CHAIN_ID_SOLANA:return"CHAIN_ID_SOLANA";case ChainID.CHAIN_ID_ETHEREUM:return"CHAIN_ID_ETHEREUM";case ChainID.CHAIN_ID_TERRA:return"CHAIN_ID_TERRA";case ChainID.CHAIN_ID_BSC:return"CHAIN_ID_BSC";case ChainID.CHAIN_ID_POLYGON:return"CHAIN_ID_POLYGON";case ChainID.CHAIN_ID_AVALANCHE:return"CHAIN_ID_AVALANCHE";case ChainID.CHAIN_ID_OASIS:return"CHAIN_ID_OASIS";case ChainID.CHAIN_ID_ALGORAND:return"CHAIN_ID_ALGORAND";case ChainID.CHAIN_ID_AURORA:return"CHAIN_ID_AURORA";case ChainID.CHAIN_ID_FANTOM:return"CHAIN_ID_FANTOM";case ChainID.CHAIN_ID_KARURA:return"CHAIN_ID_KARURA";case ChainID.CHAIN_ID_ACALA:return"CHAIN_ID_ACALA";case ChainID.CHAIN_ID_KLAYTN:return"CHAIN_ID_KLAYTN";case ChainID.CHAIN_ID_CELO:return"CHAIN_ID_CELO";case ChainID.CHAIN_ID_NEAR:return"CHAIN_ID_NEAR";case ChainID.CHAIN_ID_MOONBEAM:return"CHAIN_ID_MOONBEAM";case ChainID.CHAIN_ID_NEON:return"CHAIN_ID_NEON";case ChainID.CHAIN_ID_TERRA2:return"CHAIN_ID_TERRA2";case ChainID.CHAIN_ID_INJECTIVE:return"CHAIN_ID_INJECTIVE";case ChainID.CHAIN_ID_OSMOSIS:return"CHAIN_ID_OSMOSIS";case ChainID.CHAIN_ID_SUI:return"CHAIN_ID_SUI";case ChainID.CHAIN_ID_APTOS:return"CHAIN_ID_APTOS";case ChainID.CHAIN_ID_ARBITRUM:return"CHAIN_ID_ARBITRUM";case ChainID.CHAIN_ID_OPTIMISM:return"CHAIN_ID_OPTIMISM";case ChainID.CHAIN_ID_GNOSIS:return"CHAIN_ID_GNOSIS";case ChainID.CHAIN_ID_PYTHNET:return"CHAIN_ID_PYTHNET";case ChainID.CHAIN_ID_XPLA:return"CHAIN_ID_XPLA";case ChainID.CHAIN_ID_BTC:return"CHAIN_ID_BTC";case ChainID.CHAIN_ID_BASE:return"CHAIN_ID_BASE";case ChainID.CHAIN_ID_SEI:return"CHAIN_ID_SEI";case ChainID.CHAIN_ID_SCROLL:return"CHAIN_ID_SCROLL";case ChainID.CHAIN_ID_SEPOLIA:return"CHAIN_ID_SEPOLIA";default:return"UNKNOWN"}}var baseMessageID={emitterChain:0,emitterAddress:"",sequence:"0"},MessageID={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.emitterChain!==0&&j.uint32(8).int32(s.emitterChain),s.emitterAddress!==""&&j.uint32(18).string(s.emitterAddress),s.sequence!=="0"&&j.uint32(24).uint64(s.sequence),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseMessageID);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.emitterChain=$.int32();break;case 2:et.emitterAddress=$.string();break;case 3:et.sequence=longToString($.uint64());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseMessageID);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=chainIDFromJSON(s.emitterChain):j.emitterChain=0,s.emitterAddress!==void 0&&s.emitterAddress!==null?j.emitterAddress=String(s.emitterAddress):j.emitterAddress="",s.sequence!==void 0&&s.sequence!==null?j.sequence=String(s.sequence):j.sequence="0",j},toJSON:function(s){var j={};return s.emitterChain!==void 0&&(j.emitterChain=chainIDToJSON(s.emitterChain)),s.emitterAddress!==void 0&&(j.emitterAddress=s.emitterAddress),s.sequence!==void 0&&(j.sequence=s.sequence),j},fromPartial:function(s){var j=__assign$1({},baseMessageID);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=s.emitterChain:j.emitterChain=0,s.emitterAddress!==void 0&&s.emitterAddress!==null?j.emitterAddress=s.emitterAddress:j.emitterAddress="",s.sequence!==void 0&&s.sequence!==null?j.sequence=s.sequence:j.sequence="0",j}},baseBatchID={emitterChain:0,nonce:0},BatchID={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.emitterChain!==0&&j.uint32(8).int32(s.emitterChain),s.txId.length!==0&&j.uint32(18).bytes(s.txId),s.nonce!==0&&j.uint32(24).uint32(s.nonce),j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseBatchID);for(et.txId=new Uint8Array;$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.emitterChain=$.int32();break;case 2:et.txId=$.bytes();break;case 3:et.nonce=$.uint32();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseBatchID);return j.txId=new Uint8Array,s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=chainIDFromJSON(s.emitterChain):j.emitterChain=0,s.txId!==void 0&&s.txId!==null&&(j.txId=bytesFromBase64(s.txId)),s.nonce!==void 0&&s.nonce!==null?j.nonce=Number(s.nonce):j.nonce=0,j},toJSON:function(s){var j={};return s.emitterChain!==void 0&&(j.emitterChain=chainIDToJSON(s.emitterChain)),s.txId!==void 0&&(j.txId=base64FromBytes(s.txId!==void 0?s.txId:new Uint8Array)),s.nonce!==void 0&&(j.nonce=s.nonce),j},fromPartial:function(s){var j=__assign$1({},baseBatchID);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=s.emitterChain:j.emitterChain=0,s.txId!==void 0&&s.txId!==null?j.txId=s.txId:j.txId=new Uint8Array,s.nonce!==void 0&&s.nonce!==null?j.nonce=s.nonce:j.nonce=0,j}},baseGetSignedVAARequest={},GetSignedVAARequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.messageId!==void 0&&MessageID.encode(s.messageId,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetSignedVAARequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.messageId=MessageID.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetSignedVAARequest);return s.messageId!==void 0&&s.messageId!==null?j.messageId=MessageID.fromJSON(s.messageId):j.messageId=void 0,j},toJSON:function(s){var j={};return s.messageId!==void 0&&(j.messageId=s.messageId?MessageID.toJSON(s.messageId):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetSignedVAARequest);return s.messageId!==void 0&&s.messageId!==null?j.messageId=MessageID.fromPartial(s.messageId):j.messageId=void 0,j}},baseGetSignedVAAResponse={},GetSignedVAAResponse={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.vaaBytes.length!==0&&j.uint32(10).bytes(s.vaaBytes),j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetSignedVAAResponse);for(et.vaaBytes=new Uint8Array;$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.vaaBytes=$.bytes();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetSignedVAAResponse);return j.vaaBytes=new Uint8Array,s.vaaBytes!==void 0&&s.vaaBytes!==null&&(j.vaaBytes=bytesFromBase64(s.vaaBytes)),j},toJSON:function(s){var j={};return s.vaaBytes!==void 0&&(j.vaaBytes=base64FromBytes(s.vaaBytes!==void 0?s.vaaBytes:new Uint8Array)),j},fromPartial:function(s){var j=__assign$1({},baseGetSignedVAAResponse);return s.vaaBytes!==void 0&&s.vaaBytes!==null?j.vaaBytes=s.vaaBytes:j.vaaBytes=new Uint8Array,j}},baseGetSignedBatchVAARequest={},GetSignedBatchVAARequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.batchId!==void 0&&BatchID.encode(s.batchId,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetSignedBatchVAARequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.batchId=BatchID.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetSignedBatchVAARequest);return s.batchId!==void 0&&s.batchId!==null?j.batchId=BatchID.fromJSON(s.batchId):j.batchId=void 0,j},toJSON:function(s){var j={};return s.batchId!==void 0&&(j.batchId=s.batchId?BatchID.toJSON(s.batchId):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetSignedBatchVAARequest);return s.batchId!==void 0&&s.batchId!==null?j.batchId=BatchID.fromPartial(s.batchId):j.batchId=void 0,j}},baseGetSignedBatchVAAResponse={},GetSignedBatchVAAResponse={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.signedBatchVaa!==void 0&&SignedBatchVAAWithQuorum.encode(s.signedBatchVaa,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetSignedBatchVAAResponse);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.signedBatchVaa=SignedBatchVAAWithQuorum.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetSignedBatchVAAResponse);return s.signedBatchVaa!==void 0&&s.signedBatchVaa!==null?j.signedBatchVaa=SignedBatchVAAWithQuorum.fromJSON(s.signedBatchVaa):j.signedBatchVaa=void 0,j},toJSON:function(s){var j={};return s.signedBatchVaa!==void 0&&(j.signedBatchVaa=s.signedBatchVaa?SignedBatchVAAWithQuorum.toJSON(s.signedBatchVaa):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetSignedBatchVAAResponse);return s.signedBatchVaa!==void 0&&s.signedBatchVaa!==null?j.signedBatchVaa=SignedBatchVAAWithQuorum.fromPartial(s.signedBatchVaa):j.signedBatchVaa=void 0,j}},baseGetLastHeartbeatsRequest={},GetLastHeartbeatsRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetLastHeartbeatsRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetLastHeartbeatsRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGetLastHeartbeatsRequest);return j}},baseGetLastHeartbeatsResponse={},GetLastHeartbeatsResponse={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create());try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;GetLastHeartbeatsResponse_Entry.encode(nt,j.uint32(10).fork()).ldelim()}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetLastHeartbeatsResponse);for(et.entries=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.entries.push(GetLastHeartbeatsResponse_Entry.decode($,$.uint32()));break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGetLastHeartbeatsResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GetLastHeartbeatsResponse_Entry.fromJSON(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.entries?j.entries=s.entries.map(function($){return $?GetLastHeartbeatsResponse_Entry.toJSON($):void 0}):j.entries=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGetLastHeartbeatsResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GetLastHeartbeatsResponse_Entry.fromPartial(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGetLastHeartbeatsResponse_Entry={verifiedGuardianAddr:"",p2pNodeAddr:""},GetLastHeartbeatsResponse_Entry={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.verifiedGuardianAddr!==""&&j.uint32(10).string(s.verifiedGuardianAddr),s.p2pNodeAddr!==""&&j.uint32(18).string(s.p2pNodeAddr),s.rawHeartbeat!==void 0&&Heartbeat.encode(s.rawHeartbeat,j.uint32(26).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetLastHeartbeatsResponse_Entry);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.verifiedGuardianAddr=$.string();break;case 2:et.p2pNodeAddr=$.string();break;case 3:et.rawHeartbeat=Heartbeat.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetLastHeartbeatsResponse_Entry);return s.verifiedGuardianAddr!==void 0&&s.verifiedGuardianAddr!==null?j.verifiedGuardianAddr=String(s.verifiedGuardianAddr):j.verifiedGuardianAddr="",s.p2pNodeAddr!==void 0&&s.p2pNodeAddr!==null?j.p2pNodeAddr=String(s.p2pNodeAddr):j.p2pNodeAddr="",s.rawHeartbeat!==void 0&&s.rawHeartbeat!==null?j.rawHeartbeat=Heartbeat.fromJSON(s.rawHeartbeat):j.rawHeartbeat=void 0,j},toJSON:function(s){var j={};return s.verifiedGuardianAddr!==void 0&&(j.verifiedGuardianAddr=s.verifiedGuardianAddr),s.p2pNodeAddr!==void 0&&(j.p2pNodeAddr=s.p2pNodeAddr),s.rawHeartbeat!==void 0&&(j.rawHeartbeat=s.rawHeartbeat?Heartbeat.toJSON(s.rawHeartbeat):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetLastHeartbeatsResponse_Entry);return s.verifiedGuardianAddr!==void 0&&s.verifiedGuardianAddr!==null?j.verifiedGuardianAddr=s.verifiedGuardianAddr:j.verifiedGuardianAddr="",s.p2pNodeAddr!==void 0&&s.p2pNodeAddr!==null?j.p2pNodeAddr=s.p2pNodeAddr:j.p2pNodeAddr="",s.rawHeartbeat!==void 0&&s.rawHeartbeat!==null?j.rawHeartbeat=Heartbeat.fromPartial(s.rawHeartbeat):j.rawHeartbeat=void 0,j}},baseGetCurrentGuardianSetRequest={},GetCurrentGuardianSetRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetCurrentGuardianSetRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetCurrentGuardianSetRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGetCurrentGuardianSetRequest);return j}},baseGetCurrentGuardianSetResponse={},GetCurrentGuardianSetResponse={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.guardianSet!==void 0&&GuardianSet.encode(s.guardianSet,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGetCurrentGuardianSetResponse);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.guardianSet=GuardianSet.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGetCurrentGuardianSetResponse);return s.guardianSet!==void 0&&s.guardianSet!==null?j.guardianSet=GuardianSet.fromJSON(s.guardianSet):j.guardianSet=void 0,j},toJSON:function(s){var j={};return s.guardianSet!==void 0&&(j.guardianSet=s.guardianSet?GuardianSet.toJSON(s.guardianSet):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGetCurrentGuardianSetResponse);return s.guardianSet!==void 0&&s.guardianSet!==null?j.guardianSet=GuardianSet.fromPartial(s.guardianSet):j.guardianSet=void 0,j}},baseGuardianSet={index:0,addresses:""},GuardianSet={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create()),s.index!==0&&j.uint32(8).uint32(s.index);try{for(var et=__values(s.addresses),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;j.uint32(18).string(nt)}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGuardianSet);for(et.addresses=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.index=$.uint32();break;case 2:et.addresses.push($.string());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGuardianSet);if(_e.addresses=[],s.index!==void 0&&s.index!==null?_e.index=Number(s.index):_e.index=0,s.addresses!==void 0&&s.addresses!==null)try{for(var et=__values(s.addresses),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.addresses.push(String(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.index!==void 0&&(j.index=s.index),s.addresses?j.addresses=s.addresses.map(function($){return $}):j.addresses=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGuardianSet);if(_e.addresses=[],s.index!==void 0&&s.index!==null?_e.index=s.index:_e.index=0,s.addresses!==void 0&&s.addresses!==null)try{for(var et=__values(s.addresses),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.addresses.push(nt)}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGovernorGetAvailableNotionalByChainRequest={},GovernorGetAvailableNotionalByChainRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetAvailableNotionalByChainRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetAvailableNotionalByChainRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetAvailableNotionalByChainRequest);return j}},baseGovernorGetAvailableNotionalByChainResponse={},GovernorGetAvailableNotionalByChainResponse={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create());try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;GovernorGetAvailableNotionalByChainResponse_Entry.encode(nt,j.uint32(10).fork()).ldelim()}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse);for(et.entries=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.entries.push(GovernorGetAvailableNotionalByChainResponse_Entry.decode($,$.uint32()));break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetAvailableNotionalByChainResponse_Entry.fromJSON(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.entries?j.entries=s.entries.map(function($){return $?GovernorGetAvailableNotionalByChainResponse_Entry.toJSON($):void 0}):j.entries=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetAvailableNotionalByChainResponse_Entry.fromPartial(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGovernorGetAvailableNotionalByChainResponse_Entry={chainId:0,remainingAvailableNotional:"0",notionalLimit:"0",bigTransactionSize:"0"},GovernorGetAvailableNotionalByChainResponse_Entry={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.chainId!==0&&j.uint32(8).uint32(s.chainId),s.remainingAvailableNotional!=="0"&&j.uint32(16).uint64(s.remainingAvailableNotional),s.notionalLimit!=="0"&&j.uint32(24).uint64(s.notionalLimit),s.bigTransactionSize!=="0"&&j.uint32(32).uint64(s.bigTransactionSize),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse_Entry);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.chainId=$.uint32();break;case 2:et.remainingAvailableNotional=longToString($.uint64());break;case 3:et.notionalLimit=longToString($.uint64());break;case 4:et.bigTransactionSize=longToString($.uint64());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse_Entry);return s.chainId!==void 0&&s.chainId!==null?j.chainId=Number(s.chainId):j.chainId=0,s.remainingAvailableNotional!==void 0&&s.remainingAvailableNotional!==null?j.remainingAvailableNotional=String(s.remainingAvailableNotional):j.remainingAvailableNotional="0",s.notionalLimit!==void 0&&s.notionalLimit!==null?j.notionalLimit=String(s.notionalLimit):j.notionalLimit="0",s.bigTransactionSize!==void 0&&s.bigTransactionSize!==null?j.bigTransactionSize=String(s.bigTransactionSize):j.bigTransactionSize="0",j},toJSON:function(s){var j={};return s.chainId!==void 0&&(j.chainId=s.chainId),s.remainingAvailableNotional!==void 0&&(j.remainingAvailableNotional=s.remainingAvailableNotional),s.notionalLimit!==void 0&&(j.notionalLimit=s.notionalLimit),s.bigTransactionSize!==void 0&&(j.bigTransactionSize=s.bigTransactionSize),j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetAvailableNotionalByChainResponse_Entry);return s.chainId!==void 0&&s.chainId!==null?j.chainId=s.chainId:j.chainId=0,s.remainingAvailableNotional!==void 0&&s.remainingAvailableNotional!==null?j.remainingAvailableNotional=s.remainingAvailableNotional:j.remainingAvailableNotional="0",s.notionalLimit!==void 0&&s.notionalLimit!==null?j.notionalLimit=s.notionalLimit:j.notionalLimit="0",s.bigTransactionSize!==void 0&&s.bigTransactionSize!==null?j.bigTransactionSize=s.bigTransactionSize:j.bigTransactionSize="0",j}},baseGovernorGetEnqueuedVAAsRequest={},GovernorGetEnqueuedVAAsRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetEnqueuedVAAsRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetEnqueuedVAAsRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetEnqueuedVAAsRequest);return j}},baseGovernorGetEnqueuedVAAsResponse={},GovernorGetEnqueuedVAAsResponse={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create());try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;GovernorGetEnqueuedVAAsResponse_Entry.encode(nt,j.uint32(10).fork()).ldelim()}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetEnqueuedVAAsResponse);for(et.entries=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.entries.push(GovernorGetEnqueuedVAAsResponse_Entry.decode($,$.uint32()));break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGovernorGetEnqueuedVAAsResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetEnqueuedVAAsResponse_Entry.fromJSON(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.entries?j.entries=s.entries.map(function($){return $?GovernorGetEnqueuedVAAsResponse_Entry.toJSON($):void 0}):j.entries=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGovernorGetEnqueuedVAAsResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetEnqueuedVAAsResponse_Entry.fromPartial(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGovernorGetEnqueuedVAAsResponse_Entry={emitterChain:0,emitterAddress:"",sequence:"0",releaseTime:0,notionalValue:"0",txHash:""},GovernorGetEnqueuedVAAsResponse_Entry={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.emitterChain!==0&&j.uint32(8).uint32(s.emitterChain),s.emitterAddress!==""&&j.uint32(18).string(s.emitterAddress),s.sequence!=="0"&&j.uint32(24).uint64(s.sequence),s.releaseTime!==0&&j.uint32(32).uint32(s.releaseTime),s.notionalValue!=="0"&&j.uint32(40).uint64(s.notionalValue),s.txHash!==""&&j.uint32(50).string(s.txHash),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetEnqueuedVAAsResponse_Entry);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.emitterChain=$.uint32();break;case 2:et.emitterAddress=$.string();break;case 3:et.sequence=longToString($.uint64());break;case 4:et.releaseTime=$.uint32();break;case 5:et.notionalValue=longToString($.uint64());break;case 6:et.txHash=$.string();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetEnqueuedVAAsResponse_Entry);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=Number(s.emitterChain):j.emitterChain=0,s.emitterAddress!==void 0&&s.emitterAddress!==null?j.emitterAddress=String(s.emitterAddress):j.emitterAddress="",s.sequence!==void 0&&s.sequence!==null?j.sequence=String(s.sequence):j.sequence="0",s.releaseTime!==void 0&&s.releaseTime!==null?j.releaseTime=Number(s.releaseTime):j.releaseTime=0,s.notionalValue!==void 0&&s.notionalValue!==null?j.notionalValue=String(s.notionalValue):j.notionalValue="0",s.txHash!==void 0&&s.txHash!==null?j.txHash=String(s.txHash):j.txHash="",j},toJSON:function(s){var j={};return s.emitterChain!==void 0&&(j.emitterChain=s.emitterChain),s.emitterAddress!==void 0&&(j.emitterAddress=s.emitterAddress),s.sequence!==void 0&&(j.sequence=s.sequence),s.releaseTime!==void 0&&(j.releaseTime=s.releaseTime),s.notionalValue!==void 0&&(j.notionalValue=s.notionalValue),s.txHash!==void 0&&(j.txHash=s.txHash),j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetEnqueuedVAAsResponse_Entry);return s.emitterChain!==void 0&&s.emitterChain!==null?j.emitterChain=s.emitterChain:j.emitterChain=0,s.emitterAddress!==void 0&&s.emitterAddress!==null?j.emitterAddress=s.emitterAddress:j.emitterAddress="",s.sequence!==void 0&&s.sequence!==null?j.sequence=s.sequence:j.sequence="0",s.releaseTime!==void 0&&s.releaseTime!==null?j.releaseTime=s.releaseTime:j.releaseTime=0,s.notionalValue!==void 0&&s.notionalValue!==null?j.notionalValue=s.notionalValue:j.notionalValue="0",s.txHash!==void 0&&s.txHash!==null?j.txHash=s.txHash:j.txHash="",j}},baseGovernorIsVAAEnqueuedRequest={},GovernorIsVAAEnqueuedRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.messageId!==void 0&&MessageID.encode(s.messageId,j.uint32(10).fork()).ldelim(),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorIsVAAEnqueuedRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.messageId=MessageID.decode($,$.uint32());break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorIsVAAEnqueuedRequest);return s.messageId!==void 0&&s.messageId!==null?j.messageId=MessageID.fromJSON(s.messageId):j.messageId=void 0,j},toJSON:function(s){var j={};return s.messageId!==void 0&&(j.messageId=s.messageId?MessageID.toJSON(s.messageId):void 0),j},fromPartial:function(s){var j=__assign$1({},baseGovernorIsVAAEnqueuedRequest);return s.messageId!==void 0&&s.messageId!==null?j.messageId=MessageID.fromPartial(s.messageId):j.messageId=void 0,j}},baseGovernorIsVAAEnqueuedResponse={isEnqueued:!1},GovernorIsVAAEnqueuedResponse={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.isEnqueued===!0&&j.uint32(8).bool(s.isEnqueued),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorIsVAAEnqueuedResponse);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.isEnqueued=$.bool();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorIsVAAEnqueuedResponse);return s.isEnqueued!==void 0&&s.isEnqueued!==null?j.isEnqueued=!!s.isEnqueued:j.isEnqueued=!1,j},toJSON:function(s){var j={};return s.isEnqueued!==void 0&&(j.isEnqueued=s.isEnqueued),j},fromPartial:function(s){var j=__assign$1({},baseGovernorIsVAAEnqueuedResponse);return s.isEnqueued!==void 0&&s.isEnqueued!==null?j.isEnqueued=s.isEnqueued:j.isEnqueued=!1,j}},baseGovernorGetTokenListRequest={},GovernorGetTokenListRequest={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetTokenListRequest);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetTokenListRequest);return j},toJSON:function(s){var j={};return j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetTokenListRequest);return j}},baseGovernorGetTokenListResponse={},GovernorGetTokenListResponse={encode:function(s,j){var $,_e;j===void 0&&(j=_m0.Writer.create());try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;GovernorGetTokenListResponse_Entry.encode(nt,j.uint32(10).fork()).ldelim()}}catch(rt){$={error:rt}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if($)throw $.error}}return j},decode:function(s,j){var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetTokenListResponse);for(et.entries=[];$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.entries.push(GovernorGetTokenListResponse_Entry.decode($,$.uint32()));break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j,$,_e=__assign$1({},baseGovernorGetTokenListResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetTokenListResponse_Entry.fromJSON(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e},toJSON:function(s){var j={};return s.entries?j.entries=s.entries.map(function($){return $?GovernorGetTokenListResponse_Entry.toJSON($):void 0}):j.entries=[],j},fromPartial:function(s){var j,$,_e=__assign$1({},baseGovernorGetTokenListResponse);if(_e.entries=[],s.entries!==void 0&&s.entries!==null)try{for(var et=__values(s.entries),tt=et.next();!tt.done;tt=et.next()){var nt=tt.value;_e.entries.push(GovernorGetTokenListResponse_Entry.fromPartial(nt))}}catch(rt){j={error:rt}}finally{try{tt&&!tt.done&&($=et.return)&&$.call(et)}finally{if(j)throw j.error}}return _e}},baseGovernorGetTokenListResponse_Entry={originChainId:0,originAddress:"",price:0},GovernorGetTokenListResponse_Entry={encode:function(s,j){return j===void 0&&(j=_m0.Writer.create()),s.originChainId!==0&&j.uint32(8).uint32(s.originChainId),s.originAddress!==""&&j.uint32(18).string(s.originAddress),s.price!==0&&j.uint32(29).float(s.price),j},decode:function(s,j){for(var $=s instanceof _m0.Reader?s:new _m0.Reader(s),_e=j===void 0?$.len:$.pos+j,et=__assign$1({},baseGovernorGetTokenListResponse_Entry);$.pos<_e;){var tt=$.uint32();switch(tt>>>3){case 1:et.originChainId=$.uint32();break;case 2:et.originAddress=$.string();break;case 3:et.price=$.float();break;default:$.skipType(tt&7);break}}return et},fromJSON:function(s){var j=__assign$1({},baseGovernorGetTokenListResponse_Entry);return s.originChainId!==void 0&&s.originChainId!==null?j.originChainId=Number(s.originChainId):j.originChainId=0,s.originAddress!==void 0&&s.originAddress!==null?j.originAddress=String(s.originAddress):j.originAddress="",s.price!==void 0&&s.price!==null?j.price=Number(s.price):j.price=0,j},toJSON:function(s){var j={};return s.originChainId!==void 0&&(j.originChainId=s.originChainId),s.originAddress!==void 0&&(j.originAddress=s.originAddress),s.price!==void 0&&(j.price=s.price),j},fromPartial:function(s){var j=__assign$1({},baseGovernorGetTokenListResponse_Entry);return s.originChainId!==void 0&&s.originChainId!==null?j.originChainId=s.originChainId:j.originChainId=0,s.originAddress!==void 0&&s.originAddress!==null?j.originAddress=s.originAddress:j.originAddress="",s.price!==void 0&&s.price!==null?j.price=s.price:j.price=0,j}},PublicRPCServiceClientImpl$5=function(){function s(j){this.rpc=j,this.GetLastHeartbeats=this.GetLastHeartbeats.bind(this),this.GetSignedVAA=this.GetSignedVAA.bind(this),this.GetSignedBatchVAA=this.GetSignedBatchVAA.bind(this),this.GetCurrentGuardianSet=this.GetCurrentGuardianSet.bind(this),this.GovernorGetAvailableNotionalByChain=this.GovernorGetAvailableNotionalByChain.bind(this),this.GovernorGetEnqueuedVAAs=this.GovernorGetEnqueuedVAAs.bind(this),this.GovernorIsVAAEnqueued=this.GovernorIsVAAEnqueued.bind(this),this.GovernorGetTokenList=this.GovernorGetTokenList.bind(this)}return s.prototype.GetLastHeartbeats=function(j,$){return this.rpc.unary(PublicRPCServiceGetLastHeartbeatsDesc,GetLastHeartbeatsRequest.fromPartial(j),$)},s.prototype.GetSignedVAA=function(j,$){return this.rpc.unary(PublicRPCServiceGetSignedVAADesc,GetSignedVAARequest.fromPartial(j),$)},s.prototype.GetSignedBatchVAA=function(j,$){return this.rpc.unary(PublicRPCServiceGetSignedBatchVAADesc,GetSignedBatchVAARequest.fromPartial(j),$)},s.prototype.GetCurrentGuardianSet=function(j,$){return this.rpc.unary(PublicRPCServiceGetCurrentGuardianSetDesc,GetCurrentGuardianSetRequest.fromPartial(j),$)},s.prototype.GovernorGetAvailableNotionalByChain=function(j,$){return this.rpc.unary(PublicRPCServiceGovernorGetAvailableNotionalByChainDesc,GovernorGetAvailableNotionalByChainRequest.fromPartial(j),$)},s.prototype.GovernorGetEnqueuedVAAs=function(j,$){return this.rpc.unary(PublicRPCServiceGovernorGetEnqueuedVAAsDesc,GovernorGetEnqueuedVAAsRequest.fromPartial(j),$)},s.prototype.GovernorIsVAAEnqueued=function(j,$){return this.rpc.unary(PublicRPCServiceGovernorIsVAAEnqueuedDesc,GovernorIsVAAEnqueuedRequest.fromPartial(j),$)},s.prototype.GovernorGetTokenList=function(j,$){return this.rpc.unary(PublicRPCServiceGovernorGetTokenListDesc,GovernorGetTokenListRequest.fromPartial(j),$)},s}(),PublicRPCServiceDesc={serviceName:"publicrpc.v1.PublicRPCService"},PublicRPCServiceGetLastHeartbeatsDesc={methodName:"GetLastHeartbeats",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GetLastHeartbeatsRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GetLastHeartbeatsResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGetSignedVAADesc={methodName:"GetSignedVAA",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GetSignedVAARequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GetSignedVAAResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGetSignedBatchVAADesc={methodName:"GetSignedBatchVAA",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GetSignedBatchVAARequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GetSignedBatchVAAResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGetCurrentGuardianSetDesc={methodName:"GetCurrentGuardianSet",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GetCurrentGuardianSetRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GetCurrentGuardianSetResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGovernorGetAvailableNotionalByChainDesc={methodName:"GovernorGetAvailableNotionalByChain",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GovernorGetAvailableNotionalByChainRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GovernorGetAvailableNotionalByChainResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGovernorGetEnqueuedVAAsDesc={methodName:"GovernorGetEnqueuedVAAs",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GovernorGetEnqueuedVAAsRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GovernorGetEnqueuedVAAsResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGovernorIsVAAEnqueuedDesc={methodName:"GovernorIsVAAEnqueued",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GovernorIsVAAEnqueuedRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GovernorIsVAAEnqueuedResponse.decode(s)),{toObject:function(){return this}})}}},PublicRPCServiceGovernorGetTokenListDesc={methodName:"GovernorGetTokenList",service:PublicRPCServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return GovernorGetTokenListRequest.encode(this).finish()}},responseType:{deserializeBinary:function(s){return __assign$1(__assign$1({},GovernorGetTokenListResponse.decode(s)),{toObject:function(){return this}})}}},GrpcWebImpl$5=function(){function s(j,$){this.host=j,this.options=$}return s.prototype.unary=function(j,$,_e){var et=this,tt,nt=__assign$1(__assign$1({},$),j.requestType),rt=_e&&this.options.metadata?new browserHeaders_umdExports.BrowserHeaders(__assign$1(__assign$1({},(tt=this.options)===null||tt===void 0?void 0:tt.metadata.headersMap),_e==null?void 0:_e.headersMap)):_e||this.options.metadata;return new Promise(function(ot,it){grpcWebClient_umdExports.grpc.unary(j,{request:nt,host:et.host,metadata:rt,transport:et.options.transport,debug:et.options.debug,onEnd:function(st){if(st.status===grpcWebClient_umdExports.grpc.Code.OK)ot(st.message);else{var at=new Error(st.statusMessage);at.code=st.status,at.metadata=st.trailers,it(at)}}})})},s}(),globalThis$2=function(){if(typeof globalThis$2<"u")return globalThis$2;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw"Unable to locate global object"}(),atob=globalThis$2.atob||function(s){return globalThis$2.Buffer.from(s,"base64").toString("binary")};function bytesFromBase64(s){for(var j=atob(s),$=new Uint8Array(j.length),_e=0;_e(nt.rawHeartbeat&&(!j||j.toLowerCase().includes(nt.rawHeartbeat.guardianAddr.toLowerCase().substring(2)))&&tt.push({...nt.rawHeartbeat,p2pNodeAddr:nt.p2pNodeAddr}),tt),[])}else if(s.type==="cloudfunction")return(await axios$2.get(`${s.endpoint}/guardian-heartbeats`)).data.heartbeats||[];throw new Error("Unsupported network")}function useHeartbeats(s){const{currentNetwork:j}=useNetworkContext(),[$,_e]=reactExports.useState([]);return reactExports.useEffect(()=>{_e([])},[j,s]),reactExports.useEffect(()=>{let et=!1;return(async()=>{for(;!et;){const tt=await getLastHeartbeats(j,s);et||(_e(tt.sort((nt,rt)=>nt.nodeName.localeCompare(rt.nodeName))),await new Promise(nt=>setTimeout(nt,j.type==="guardian"?1e3:1e4)))}})(),()=>{et=!0}},[j,s]),$}function useLatestRelease(){const[s,j]=reactExports.useState(null);return reactExports.useEffect(()=>{let $=!1;return(async()=>{var _e;for(;!$;){const et=await axios$2.get("https://api.github.com/repos/wormhole-foundation/wormhole/releases/latest");$||(j(((_e=et.data)==null?void 0:_e.tag_name)||null),await new Promise(tt=>setTimeout(tt,6e4)))}})(),()=>{$=!0}},[]),s}function WormholeStatsIcon(){return jsxRuntimeExports.jsxs(SvgIcon,{viewBox:"0 0 40 40",children:[jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:`M20,40c-5.3,0-10.4-2.1-14.1-5.9C2.1,30.4,0,25.3,0,20C0,14.7,2.1,9.6,5.9,5.9C9.6,2.1,14.7,0,20,0 c5.3,0,10.4,2.1,14.1,5.9C37.9,9.6,40,14.7,40,20c0,5.3-2.1,10.4-5.9,14.1C30.4,37.9,25.3,40,20,40z M20,1.5c-4.9,0-9.6,1.9-13,5.4 s-5.4,8.1-5.4,13c0,4.9,2,9.6,5.4,13c3.5,3.5,8.2,5.4,13,5.4s9.6-1.9,13-5.4c3.5-3.5,5.4-8.1,5.4-13c0-4.9-2-9.6-5.4-13 C29.6,3.5,24.9,1.5,20,1.5L20,1.5z`}),jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:`M22.5,36.8c-4.4,0-8.6-1.7-11.7-4.9C7.7,28.8,6,24.6,6,20.2c0-4.4,1.8-8.6,4.9-11.7c3.1-3.1,7.3-4.8,11.7-4.9 @@ -250,7 +250,7 @@ Message: ${_e}. c0-2.4-1-4.8-2.7-6.5C32.4,12.6,30,11.6,27.6,11.6z`}),jsxRuntimeExports.jsx("path",{fill:"#ffffff",stroke:"#231f20",strokeMiterlimit:"10",d:`M37.2,10.5h-7.1c-1,0-1.8,0.8-1.8,1.8s0.8,1.8,1.8,1.8h2.8l-7.6,7.6l-1,1l-0.2,0.2l-2.3,2.3l-8.2-8.2 c-0.3-0.3-0.8-0.5-1.3-0.5c-0.5,0-0.9,0.2-1.3,0.5l-9.5,9.5C1.2,26.8,1,27.2,1,27.7c0,1,0.8,1.8,1.8,1.8c0.5,0,0.9-0.2,1.3-0.5 l8.2-8.2l8.2,8.2c0.3,0.3,0.8,0.5,1.3,0.5s0.9-0.2,1.3-0.5l3.5-3.5l0,0l8.9-8.9v2.8c0,1,0.8,1.8,1.8,1.8s1.8-0.8,1.8-1.8v-7.1 - C39,11.3,38.2,10.5,37.2,10.5z`})]})}const BEHIND_DIFF=1e3,CHAIN_LESS_THAN_MAX_WARNING_THRESHOLD=2,isLayer2=s=>s===chainToChainId("Polygon")||s===chainToChainId("Arbitrum")||s===chainToChainId("Optimism"),getBehindDiffForChain=s=>isLayer2(s)?BEHIND_DIFF*2:BEHIND_DIFF,getNumGuardians=s=>s==="Mainnet"?dist.GUARDIAN_SET_4.length:1;function getQuorumCount(s){return Math.floor(getNumGuardians(s)*2/3+1)}function getWarningCount(s){return Math.max(getNumGuardians(s)-CHAIN_LESS_THAN_MAX_WARNING_THRESHOLD+1,1)}function getQuorumLossCount(s){return getNumGuardians(s)-getQuorumCount(s)+1}const alertSeverityOrder=["error","warning","success","info"];function chainDownAlerts(s,j,$){const _e=s.filter(tt=>!dist.STANDBY_GUARDIANS.find(nt=>nt.pubkey.toLowerCase()===tt.guardianAddr.toLowerCase())),et={};return Object.entries(j).filter(([tt])=>tt!==chainToChainId("Aurora").toString()).forEach(([tt,nt])=>{const rt=nt.filter(st=>!dist.STANDBY_GUARDIANS.find(at=>at.pubkey.toLowerCase()===st.guardian.toLowerCase()));_e.filter(st=>rt.findIndex(at=>at.guardian===st.guardianAddr)===-1).forEach(st=>{et[tt]||(et[tt]=[]),et[tt].push(st.nodeName)});let it=BigInt(0);rt.forEach(st=>{const at=BigInt(st.network.height);at>it&&(it=at),st.network.height==="0"&&(et[tt]||(et[tt]=[]),et[tt].push(st.name))}),rt.forEach(st=>{if(st.network.height!=="0"){const at=BigInt(st.network.height);it-at>getBehindDiffForChain(st.network.id)&&(et[tt]||(et[tt]=[]),et[tt].push(st.name))}})}),Object.entries(et).map(([tt,nt])=>({severity:nt.length>=getQuorumLossCount($)?"error":"warning",text:`${nt.length} guardian${nt.length>1?"s":""} [${nt.join(", ")}] ${nt.length>1?"are":"is"} down on ${dist.chainIdToName(Number(tt))} (${tt})!`}))}const releaseChecker=(s,j)=>s===null?[]:j.filter($=>$.version!==s).map($=>({severity:"info",text:`${$.nodeName} is not running the latest release (${$.version} !== ${s})`}));function Alerts({heartbeats:s,chainIdsToHeartbeats:j,latestRelease:$}){const[_e,et]=reactExports.useState(!1),tt=reactExports.useCallback(()=>{et(!0)},[]),nt=reactExports.useCallback(()=>{et(!1)},[]),rt=useCurrentEnvironment(),ot=reactExports.useMemo(()=>[...chainDownAlerts(s,j,rt),...releaseChecker($,s)].sort((dt,pt)=>alertSeverityOrder.indexOf(dt.severity)alertSeverityOrder.indexOf(pt.severity)?1:0),[$,s,j,rt]),it=reactExports.useMemo(()=>ot.filter(lt=>lt.severity==="error").length,[ot]),st=reactExports.useMemo(()=>ot.filter(lt=>lt.severity==="info").length,[ot]),at=reactExports.useMemo(()=>ot.filter(lt=>lt.severity==="success").length,[ot]),ct=reactExports.useMemo(()=>ot.filter(lt=>lt.severity==="warning").length,[ot]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Button,{sx:{display:"flex",alignItems:"center",mx:2,"& svg:not(:first-of-type)":{ml:1}},color:"inherit",onClick:tt,children:[st>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(InfoOutlined,{color:"info"}),jsxRuntimeExports.jsx(Typography,{component:"strong",sx:{ml:.5},children:st})]}):null,at>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CheckCircleOutline,{color:"success"}),jsxRuntimeExports.jsx(Typography,{component:"strong",sx:{ml:.5},children:at})]}):null,ct>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(WarningAmberOutlined,{color:"warning"}),jsxRuntimeExports.jsx(Typography,{component:"strong",sx:{ml:.5},children:ct})]}):null,it>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ErrorOutline,{color:"error"}),jsxRuntimeExports.jsx(Typography,{component:"strong",sx:{ml:.5},children:it})]}):null]}),jsxRuntimeExports.jsxs(Dialog,{open:_e,onClose:nt,children:[jsxRuntimeExports.jsx(DialogTitle,{children:"Alerts"}),jsxRuntimeExports.jsx(DialogContent,{children:ot.map(lt=>jsxRuntimeExports.jsx(Alert,{severity:lt.severity,children:lt.text},lt.text))})]})]})}function CollapsibleSection({header:s,children:j,defaultExpanded:$=!0}){return jsxRuntimeExports.jsxs(Accordion,{defaultExpanded:$,disableGutters:!0,TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},sx:{background:"transparent",my:.5,"&.Mui-expanded:first-of-type":{marginTop:.5},"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"}},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsx(Typography,{variant:"h5",sx:{width:"100%"},children:s})}),jsxRuntimeExports.jsx(AccordionDetails,{children:j})]})}const useGetGuardianSetInfoByChain=()=>{const[s,j]=reactExports.useState({});return reactExports.useEffect(()=>{let $=!1;return(async()=>{const et=await getCoreBridgeInfos();$||j(et)})(),()=>{$=!0}},[]),s};async function getCoreBridgeInfos(){const s="https://europe-west3-wormhole-message-db-mainnet.cloudfunctions.net/get-guardian-set-info";let j={};try{const $=await axios$2.post(s);console.log("Response:",$.data);for(const _e in $.data){const et=$.data[_e];j[_e]={timestamp:et.timestamp,contract:et.contract,guardianSet:et.guardianSet,guardianSetIndex:et.guardianSetIndex}}}catch($){console.error("Error calling cloud function:",$)}return j}const coreBridgeChains=chains.filter(s=>s!=="Aurora"&&coreBridge.get("Mainnet",s));function CoreBridgeInfo({chain:s,address:j,guardianSetIndex:$}){return j?jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:s}),jsxRuntimeExports.jsx(TableCell,{children:chainToChainId(s)}),jsxRuntimeExports.jsx(TableCell,{children:j}),jsxRuntimeExports.jsx(TableCell,{children:$})]}):null}function Contracts(){const{currentNetwork:s}=useNetworkContext(),j=useGetGuardianSetInfoByChain();return s.name==="Mainnet"?jsxRuntimeExports.jsx(CollapsibleSection,{header:"Core",children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(TableContainer,{children:jsxRuntimeExports.jsxs(Table$1,{size:"small",children:[jsxRuntimeExports.jsx(TableHead,{children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:"Chain Name"}),jsxRuntimeExports.jsx(TableCell,{children:"Chain ID"}),jsxRuntimeExports.jsx(TableCell,{children:"Address"}),jsxRuntimeExports.jsx(TableCell,{children:"Guardian Set Index"})]})}),jsxRuntimeExports.jsx(TableBody,{children:coreBridgeChains.map($=>{var _e;return jsxRuntimeExports.jsx(CoreBridgeInfo,{chain:$,address:coreBridge.get("Mainnet",$),guardianSetIndex:(_e=j[$])==null?void 0:_e.guardianSetIndex.toString()},$)})})]})})})}):jsxRuntimeExports.jsx(Box,{textAlign:"center",my:8,mx:4,children:jsxRuntimeExports.jsx(Typography,{variant:"h3",children:"Contract info is currently only supported in Mainnet"})})}const hexToUint8Array=s=>(s.startsWith("0x")&&(s=s.slice(2)),new Uint8Array(buffer.Buffer.from(s,"hex")));function hexToNativeAssetStringAlgorand(s){return BigInt(s.startsWith("0x")?s:`0x${s}`).toString()}const tryUint8ArrayToNative=(s,j)=>{const $=chainToPlatform(toChain(j));return $==="Evm"?`0x${buffer.Buffer.from(s).toString("hex").substring(24)}`:$==="Solana"?base58.encode(s):`0x${buffer.Buffer.from(s).toString("hex")}`},tryHexToNativeString=(s,j)=>tryUint8ArrayToNative(hexToUint8Array(s),j),tryHexToNativeAssetString=(s,j)=>j===chainToChainId("Algorand")?hexToNativeAssetStringAlgorand(s):tryHexToNativeString(s,j),POLL_INTERVAL_MS$3=10*1e3,createEmptyInfo$1=()=>({notionals:[],tokens:[],enqueuedVAAs:[],totalEnqueuedVaas:{}}),getInfo=async s=>{var dt,pt,ht,yt;const[j,$]=await Promise.all([axios$2.get(`${s}/governor-configs`),axios$2.get(`${s}/governor-status`)]);let _e;const et={},tt={},nt={},rt={};for(const gt of j.data.governorConfigs){gt.guardianAddress.toLowerCase()===dist.GUARDIAN_SET_4[0].pubkey.toLowerCase().substring(2)&&(_e=gt);const ft=((dt=dist.GUARDIAN_SET_4.find(xt=>`0x${gt.guardianAddress}`.toLowerCase()===xt.pubkey.toLowerCase()))==null?void 0:dt.name)||gt.guardianAddress;for(const xt of gt.chains){const{chainId:Mt,availableNotional:jt,bigTransactionSize:wt,notionalLimit:$t}=xt;et[Mt]=[...et[Mt]||[],BigInt(jt)],tt[Mt]=[...tt[Mt]||[],BigInt(wt)],nt[Mt]=[...nt[Mt]||[],BigInt($t)],rt[Mt]=[...rt[Mt]||[],{...xt,guardianName:ft,remainingAvailableNotional:{min:"",max:"",quorum:xt.availableNotional}}]}}const ot=[],it=getQuorumCount("Mainnet")-1;for(const gt in et){const ft=Number(gt);et[ft].sort((xt,Mt)=>xtMt?1:0).reverse(),tt[ft].sort((xt,Mt)=>xtMt?1:0).reverse(),nt[ft].sort((xt,Mt)=>xtMt?1:0).reverse(),ot.push({chainId:ft,remainingAvailableNotional:{min:et[ft][et[ft].length-1].toString(),max:et[ft][0].toString(),quorum:et[ft][Math.min(it,et[ft].length-1)].toString()},bigTransactionSize:tt[ft][Math.min(it,tt[ft].length-1)].toString(),notionalLimit:nt[ft][Math.min(it,nt[ft].length-1)].toString(),byGuardian:rt[ft]})}const st=((pt=_e==null?void 0:_e.tokens)==null?void 0:pt.map(gt=>{try{return{...gt,originAddress:tryHexToNativeAssetString(gt.originAddress,gt.originChainId)}}catch{}return gt}))||[],at={},ct={};for(const gt of $.data.governorStatus){const ft=((ht=dist.GUARDIAN_SET_4.find(xt=>`0x${gt.guardianAddress}`.toLowerCase()===xt.pubkey.toLowerCase()))==null?void 0:ht.name)||gt.guardianAddress;for(const xt of gt.chains)for(const Mt of xt.emitters){ct[gt.guardianAddress]||(ct[gt.guardianAddress]={}),ct[gt.guardianAddress][xt.chainId]||(ct[gt.guardianAddress][xt.chainId]=0),ct[gt.guardianAddress][xt.chainId]+=Number(Mt.totalEnqueuedVaas);for(const jt of Mt.enqueuedVaas){const wt=Mt.emitterAddress.slice(2),$t=`${xt.chainId}/${wt}/${jt.sequence}`;at[$t]={...jt,emitterChain:xt.chainId,emitterAddress:wt,byGuardian:[...((yt=at[$t])==null?void 0:yt.byGuardian)||[],{...jt,emitterChain:xt.chainId,emitterAddress:wt,guardianName:ft}]}}}}const lt=Object.values(at);return{notionals:ot,tokens:st,enqueuedVAAs:lt,totalEnqueuedVaas:ct}},useCloudGovernorInfo=()=>{const{currentNetwork:s}=useNetworkContext(),[j,$]=reactExports.useState(createEmptyInfo$1());return reactExports.useEffect(()=>{if($(createEmptyInfo$1()),s.name!=="Mainnet")return;let _e=!1;return(async()=>{for(;!_e;){try{const et=await getInfo(s.endpoint);et.notionals.sort((tt,nt)=>tt.chainIdnt.chainId?1:0),_e||$(et)}catch(et){_e||$(createEmptyInfo$1()),console.error(et)}_e||await new Promise(et=>setTimeout(et,POLL_INTERVAL_MS$3))}})(),()=>{_e=!0}},[s]),j};/** + C39,11.3,38.2,10.5,37.2,10.5z`})]})}const BEHIND_DIFF=1e3,CHAIN_LESS_THAN_MAX_WARNING_THRESHOLD=2,isLayer2=s=>s===chainToChainId("Polygon")||s===chainToChainId("Arbitrum")||s===chainToChainId("Optimism"),getBehindDiffForChain=s=>isLayer2(s)?BEHIND_DIFF*2:BEHIND_DIFF,getNumGuardians=s=>s==="Mainnet"?dist.GUARDIAN_SET_4.length:1;function getQuorumCount(s){return Math.floor(getNumGuardians(s)*2/3+1)}function getWarningCount(s){return Math.max(getNumGuardians(s)-CHAIN_LESS_THAN_MAX_WARNING_THRESHOLD+1,1)}function getQuorumLossCount(s){return getNumGuardians(s)-getQuorumCount(s)+1}const alertSeverityOrder=["error","warning","success","info"];function chainDownAlerts(s,j,$){const _e=s.filter(tt=>!dist.STANDBY_GUARDIANS.find(nt=>nt.pubkey.toLowerCase()===tt.guardianAddr.toLowerCase())),et={};return Object.entries(j).filter(([tt])=>tt!==chainToChainId("Aurora").toString()).forEach(([tt,nt])=>{const rt=nt.filter(st=>!dist.STANDBY_GUARDIANS.find(at=>at.pubkey.toLowerCase()===st.guardian.toLowerCase()));_e.filter(st=>rt.findIndex(at=>at.guardian===st.guardianAddr)===-1).forEach(st=>{et[tt]||(et[tt]=[]),et[tt].push(st.nodeName)});let it=BigInt(0);rt.forEach(st=>{const at=BigInt(st.network.height);at>it&&(it=at),st.network.height==="0"&&(et[tt]||(et[tt]=[]),et[tt].push(st.name))}),rt.forEach(st=>{if(st.network.height!=="0"){const at=BigInt(st.network.height);it-at>getBehindDiffForChain(st.network.id)&&(et[tt]||(et[tt]=[]),et[tt].push(st.name))}})}),Object.entries(et).map(([tt,nt])=>({severity:nt.length>=getQuorumLossCount($)?"error":"warning",text:`${nt.length} guardian${nt.length>1?"s":""} [${nt.join(", ")}] ${nt.length>1?"are":"is"} down on ${dist.chainIdToName(Number(tt))} (${tt})!`}))}const releaseChecker=(s,j)=>s===null?[]:j.filter($=>$.version!==s).map($=>({severity:"info",text:`${$.nodeName} is not running the latest release (${$.version} !== ${s})`}));function Alerts({heartbeats:s,chainIdsToHeartbeats:j,latestRelease:$}){const[_e,et]=reactExports.useState(!1),tt=reactExports.useCallback(()=>{et(!0)},[]),nt=reactExports.useCallback(()=>{et(!1)},[]),rt=useCurrentEnvironment(),ot=reactExports.useMemo(()=>[...chainDownAlerts(s,j,rt),...releaseChecker($,s)].sort((dt,ft)=>alertSeverityOrder.indexOf(dt.severity)alertSeverityOrder.indexOf(ft.severity)?1:0),[$,s,j,rt]),it=reactExports.useMemo(()=>ot.filter(lt=>lt.severity==="error").length,[ot]),st=reactExports.useMemo(()=>ot.filter(lt=>lt.severity==="info").length,[ot]),at=reactExports.useMemo(()=>ot.filter(lt=>lt.severity==="success").length,[ot]),ct=reactExports.useMemo(()=>ot.filter(lt=>lt.severity==="warning").length,[ot]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Button,{sx:{display:"flex",alignItems:"center",mx:2,"& svg:not(:first-of-type)":{ml:1}},color:"inherit",onClick:tt,children:[st>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(InfoOutlined,{color:"info"}),jsxRuntimeExports.jsx(Typography,{component:"strong",sx:{ml:.5},children:st})]}):null,at>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CheckCircleOutline,{color:"success"}),jsxRuntimeExports.jsx(Typography,{component:"strong",sx:{ml:.5},children:at})]}):null,ct>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(WarningAmberOutlined,{color:"warning"}),jsxRuntimeExports.jsx(Typography,{component:"strong",sx:{ml:.5},children:ct})]}):null,it>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ErrorOutline,{color:"error"}),jsxRuntimeExports.jsx(Typography,{component:"strong",sx:{ml:.5},children:it})]}):null]}),jsxRuntimeExports.jsxs(Dialog,{open:_e,onClose:nt,children:[jsxRuntimeExports.jsx(DialogTitle,{children:"Alerts"}),jsxRuntimeExports.jsx(DialogContent,{children:ot.map(lt=>jsxRuntimeExports.jsx(Alert,{severity:lt.severity,children:lt.text},lt.text))})]})]})}function CollapsibleSection({header:s,children:j,defaultExpanded:$=!0}){return jsxRuntimeExports.jsxs(Accordion,{defaultExpanded:$,disableGutters:!0,TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},sx:{background:"transparent",my:.5,"&.Mui-expanded:first-of-type":{marginTop:.5},"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"}},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsx(Typography,{variant:"h5",sx:{width:"100%"},children:s})}),jsxRuntimeExports.jsx(AccordionDetails,{children:j})]})}const useGetGuardianSetInfoByChain=()=>{const[s,j]=reactExports.useState({});return reactExports.useEffect(()=>{let $=!1;return(async()=>{const et=await getCoreBridgeInfos();$||j(et)})(),()=>{$=!0}},[]),s};async function getCoreBridgeInfos(){const s="https://europe-west3-wormhole-message-db-mainnet.cloudfunctions.net/get-guardian-set-info";let j={};try{const $=await axios$2.post(s);console.log("Response:",$.data);for(const _e in $.data){const et=$.data[_e];j[_e]={timestamp:et.timestamp,contract:et.contract,guardianSet:et.guardianSet,guardianSetIndex:et.guardianSetIndex}}}catch($){console.error("Error calling cloud function:",$)}return j}const coreBridgeChains=chains.filter(s=>s!=="Aurora"&&coreBridge.get("Mainnet",s));function CoreBridgeInfo({chain:s,address:j,guardianSetIndex:$}){return j?jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:s}),jsxRuntimeExports.jsx(TableCell,{children:chainToChainId(s)}),jsxRuntimeExports.jsx(TableCell,{children:j}),jsxRuntimeExports.jsx(TableCell,{children:$})]}):null}function Contracts(){const{currentNetwork:s}=useNetworkContext(),j=useGetGuardianSetInfoByChain();return s.name==="Mainnet"?jsxRuntimeExports.jsx(CollapsibleSection,{header:"Core",children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(TableContainer,{children:jsxRuntimeExports.jsxs(Table$1,{size:"small",children:[jsxRuntimeExports.jsx(TableHead,{children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:"Chain Name"}),jsxRuntimeExports.jsx(TableCell,{children:"Chain ID"}),jsxRuntimeExports.jsx(TableCell,{children:"Address"}),jsxRuntimeExports.jsx(TableCell,{children:"Guardian Set Index"})]})}),jsxRuntimeExports.jsx(TableBody,{children:coreBridgeChains.map($=>{var _e;return jsxRuntimeExports.jsx(CoreBridgeInfo,{chain:$,address:coreBridge.get("Mainnet",$),guardianSetIndex:(_e=j[$])==null?void 0:_e.guardianSetIndex.toString()},$)})})]})})})}):jsxRuntimeExports.jsx(Box,{textAlign:"center",my:8,mx:4,children:jsxRuntimeExports.jsx(Typography,{variant:"h3",children:"Contract info is currently only supported in Mainnet"})})}const hexToUint8Array=s=>(s.startsWith("0x")&&(s=s.slice(2)),new Uint8Array(buffer.Buffer.from(s,"hex")));function hexToNativeAssetStringAlgorand(s){return BigInt(s.startsWith("0x")?s:`0x${s}`).toString()}const tryUint8ArrayToNative=(s,j)=>{const $=chainToPlatform(toChain(j));return $==="Evm"?`0x${buffer.Buffer.from(s).toString("hex").substring(24)}`:$==="Solana"?base58.encode(s):`0x${buffer.Buffer.from(s).toString("hex")}`},tryHexToNativeString=(s,j)=>tryUint8ArrayToNative(hexToUint8Array(s),j),tryHexToNativeAssetString=(s,j)=>j===chainToChainId("Algorand")?hexToNativeAssetStringAlgorand(s):tryHexToNativeString(s,j),POLL_INTERVAL_MS$3=10*1e3,createEmptyInfo$1=()=>({notionals:[],tokens:[],enqueuedVAAs:[],totalEnqueuedVaas:{}}),getInfo=async s=>{var dt,ft,gt,yt;const[j,$]=await Promise.all([axios$2.get(`${s}/governor-configs`),axios$2.get(`${s}/governor-status`)]);let _e;const et={},tt={},nt={},rt={};for(const mt of j.data.governorConfigs){mt.guardianAddress.toLowerCase()===dist.GUARDIAN_SET_4[0].pubkey.toLowerCase().substring(2)&&(_e=mt);const pt=((dt=dist.GUARDIAN_SET_4.find(xt=>`0x${mt.guardianAddress}`.toLowerCase()===xt.pubkey.toLowerCase()))==null?void 0:dt.name)||mt.guardianAddress;for(const xt of mt.chains){const{chainId:Ct,availableNotional:Dt,bigTransactionSize:wt,notionalLimit:kt}=xt;et[Ct]=[...et[Ct]||[],BigInt(Dt)],tt[Ct]=[...tt[Ct]||[],BigInt(wt)],nt[Ct]=[...nt[Ct]||[],BigInt(kt)],rt[Ct]=[...rt[Ct]||[],{...xt,guardianName:pt,remainingAvailableNotional:{min:"",max:"",quorum:xt.availableNotional}}]}}const ot=[],it=getQuorumCount("Mainnet")-1;for(const mt in et){const pt=Number(mt);et[pt].sort((xt,Ct)=>xtCt?1:0).reverse(),tt[pt].sort((xt,Ct)=>xtCt?1:0).reverse(),nt[pt].sort((xt,Ct)=>xtCt?1:0).reverse(),ot.push({chainId:pt,remainingAvailableNotional:{min:et[pt][et[pt].length-1].toString(),max:et[pt][0].toString(),quorum:et[pt][Math.min(it,et[pt].length-1)].toString()},bigTransactionSize:tt[pt][Math.min(it,tt[pt].length-1)].toString(),notionalLimit:nt[pt][Math.min(it,nt[pt].length-1)].toString(),byGuardian:rt[pt]})}const st=((ft=_e==null?void 0:_e.tokens)==null?void 0:ft.map(mt=>{try{return{...mt,originAddress:tryHexToNativeAssetString(mt.originAddress,mt.originChainId)}}catch{}return mt}))||[],at={},ct={};for(const mt of $.data.governorStatus){const pt=((gt=dist.GUARDIAN_SET_4.find(xt=>`0x${mt.guardianAddress}`.toLowerCase()===xt.pubkey.toLowerCase()))==null?void 0:gt.name)||mt.guardianAddress;for(const xt of mt.chains)for(const Ct of xt.emitters){ct[mt.guardianAddress]||(ct[mt.guardianAddress]={}),ct[mt.guardianAddress][xt.chainId]||(ct[mt.guardianAddress][xt.chainId]=0),ct[mt.guardianAddress][xt.chainId]+=Number(Ct.totalEnqueuedVaas);for(const Dt of Ct.enqueuedVaas){const wt=Ct.emitterAddress.slice(2),kt=`${xt.chainId}/${wt}/${Dt.sequence}`;at[kt]={...Dt,emitterChain:xt.chainId,emitterAddress:wt,byGuardian:[...((yt=at[kt])==null?void 0:yt.byGuardian)||[],{...Dt,emitterChain:xt.chainId,emitterAddress:wt,guardianName:pt}]}}}}const lt=Object.values(at);return{notionals:ot,tokens:st,enqueuedVAAs:lt,totalEnqueuedVaas:ct}},useCloudGovernorInfo=()=>{const{currentNetwork:s}=useNetworkContext(),[j,$]=reactExports.useState(createEmptyInfo$1());return reactExports.useEffect(()=>{if($(createEmptyInfo$1()),s.name!=="Mainnet")return;let _e=!1;return(async()=>{for(;!_e;){try{const et=await getInfo(s.endpoint);et.notionals.sort((tt,nt)=>tt.chainIdnt.chainId?1:0),_e||$(et)}catch(et){_e||$(createEmptyInfo$1()),console.error(et)}_e||await new Promise(et=>setTimeout(et,POLL_INTERVAL_MS$3))}})(),()=>{_e=!0}},[s]),j};/** * table-core * * Copyright (c) TanStack @@ -259,10 +259,10 @@ Message: ${_e}. * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function createColumnHelper(){return{accessor:(s,j)=>typeof s=="function"?{...j,accessorFn:s}:{...j,accessorKey:s},display:s=>s,group:s=>s}}function functionalUpdate(s,j){return typeof s=="function"?s(j):s}function makeStateUpdater(s,j){return $=>{j.setState(_e=>({..._e,[s]:functionalUpdate($,_e[s])}))}}function isFunction(s){return s instanceof Function}function isNumberArray(s){return Array.isArray(s)&&s.every(j=>typeof j=="number")}function flattenBy(s,j){const $=[],_e=et=>{et.forEach(tt=>{$.push(tt);const nt=j(tt);nt!=null&&nt.length&&_e(nt)})};return _e(s),$}function memo(s,j,$){let _e=[],et;return tt=>{let nt;$.key&&$.debug&&(nt=Date.now());const rt=s(tt);if(!(rt.length!==_e.length||rt.some((st,at)=>_e[at]!==st)))return et;_e=rt;let it;if($.key&&$.debug&&(it=Date.now()),et=j(...rt),$==null||$.onChange==null||$.onChange(et),$.key&&$.debug&&$!=null&&$.debug()){const st=Math.round((Date.now()-nt)*100)/100,at=Math.round((Date.now()-it)*100)/100,ct=at/16,lt=(dt,pt)=>{for(dt=String(dt);dt.lengthtypeof s=="function"?{...j,accessorFn:s}:{...j,accessorKey:s},display:s=>s,group:s=>s}}function functionalUpdate(s,j){return typeof s=="function"?s(j):s}function makeStateUpdater(s,j){return $=>{j.setState(_e=>({..._e,[s]:functionalUpdate($,_e[s])}))}}function isFunction(s){return s instanceof Function}function isNumberArray(s){return Array.isArray(s)&&s.every(j=>typeof j=="number")}function flattenBy(s,j){const $=[],_e=et=>{et.forEach(tt=>{$.push(tt);const nt=j(tt);nt!=null&&nt.length&&_e(nt)})};return _e(s),$}function memo(s,j,$){let _e=[],et;return tt=>{let nt;$.key&&$.debug&&(nt=Date.now());const rt=s(tt);if(!(rt.length!==_e.length||rt.some((st,at)=>_e[at]!==st)))return et;_e=rt;let it;if($.key&&$.debug&&(it=Date.now()),et=j(...rt),$==null||$.onChange==null||$.onChange(et),$.key&&$.debug&&$!=null&&$.debug()){const st=Math.round((Date.now()-nt)*100)/100,at=Math.round((Date.now()-it)*100)/100,ct=at/16,lt=(dt,ft)=>{for(dt=String(dt);dt.length{var et;return(et=s==null?void 0:s.debugAll)!=null?et:s[j]},key:!1,onChange:_e}}function createCell(s,j,$,_e){const et=()=>{var nt;return(nt=tt.getValue())!=null?nt:s.options.renderFallbackValue},tt={id:`${j.id}_${$.id}`,row:j,column:$,getValue:()=>j.getValue(_e),renderValue:et,getContext:memo(()=>[s,$,j,tt],(nt,rt,ot,it)=>({table:nt,column:rt,row:ot,cell:it,getValue:it.getValue,renderValue:it.renderValue}),getMemoOptions(s.options,"debugCells"))};return s._features.forEach(nt=>{nt.createCell==null||nt.createCell(tt,$,j,s)},{}),tt}function createColumn(s,j,$,_e){var et,tt;const rt={...s._getDefaultColumnDef(),...j},ot=rt.accessorKey;let it=(et=(tt=rt.id)!=null?tt:ot?ot.replace(".","_"):void 0)!=null?et:typeof rt.header=="string"?rt.header:void 0,st;if(rt.accessorFn?st=rt.accessorFn:ot&&(ot.includes(".")?st=ct=>{let lt=ct;for(const pt of ot.split(".")){var dt;lt=(dt=lt)==null?void 0:dt[pt]}return lt}:st=ct=>ct[rt.accessorKey]),!it)throw new Error;let at={id:`${String(it)}`,accessorFn:st,parent:_e,depth:$,columnDef:rt,columns:[],getFlatColumns:memo(()=>[!0],()=>{var ct;return[at,...(ct=at.columns)==null?void 0:ct.flatMap(lt=>lt.getFlatColumns())]},getMemoOptions(s.options,"debugColumns")),getLeafColumns:memo(()=>[s._getOrderColumnsFn()],ct=>{var lt;if((lt=at.columns)!=null&<.length){let dt=at.columns.flatMap(pt=>pt.getLeafColumns());return ct(dt)}return[at]},getMemoOptions(s.options,"debugColumns"))};for(const ct of s._features)ct.createColumn==null||ct.createColumn(at,s);return at}const debug="debugHeaders";function createHeader(s,j,$){var _e;let tt={id:(_e=$.id)!=null?_e:j.id,column:j,index:$.index,isPlaceholder:!!$.isPlaceholder,placeholderId:$.placeholderId,depth:$.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const nt=[],rt=ot=>{ot.subHeaders&&ot.subHeaders.length&&ot.subHeaders.map(rt),nt.push(ot)};return rt(tt),nt},getContext:()=>({table:s,header:tt,column:j})};return s._features.forEach(nt=>{nt.createHeader==null||nt.createHeader(tt,s)}),tt}const Headers$1={createTable:s=>{s.getHeaderGroups=memo(()=>[s.getAllColumns(),s.getVisibleLeafColumns(),s.getState().columnPinning.left,s.getState().columnPinning.right],(j,$,_e,et)=>{var tt,nt;const rt=(tt=_e==null?void 0:_e.map(at=>$.find(ct=>ct.id===at)).filter(Boolean))!=null?tt:[],ot=(nt=et==null?void 0:et.map(at=>$.find(ct=>ct.id===at)).filter(Boolean))!=null?nt:[],it=$.filter(at=>!(_e!=null&&_e.includes(at.id))&&!(et!=null&&et.includes(at.id)));return buildHeaderGroups(j,[...rt,...it,...ot],s)},getMemoOptions(s.options,debug)),s.getCenterHeaderGroups=memo(()=>[s.getAllColumns(),s.getVisibleLeafColumns(),s.getState().columnPinning.left,s.getState().columnPinning.right],(j,$,_e,et)=>($=$.filter(tt=>!(_e!=null&&_e.includes(tt.id))&&!(et!=null&&et.includes(tt.id))),buildHeaderGroups(j,$,s,"center")),getMemoOptions(s.options,debug)),s.getLeftHeaderGroups=memo(()=>[s.getAllColumns(),s.getVisibleLeafColumns(),s.getState().columnPinning.left],(j,$,_e)=>{var et;const tt=(et=_e==null?void 0:_e.map(nt=>$.find(rt=>rt.id===nt)).filter(Boolean))!=null?et:[];return buildHeaderGroups(j,tt,s,"left")},getMemoOptions(s.options,debug)),s.getRightHeaderGroups=memo(()=>[s.getAllColumns(),s.getVisibleLeafColumns(),s.getState().columnPinning.right],(j,$,_e)=>{var et;const tt=(et=_e==null?void 0:_e.map(nt=>$.find(rt=>rt.id===nt)).filter(Boolean))!=null?et:[];return buildHeaderGroups(j,tt,s,"right")},getMemoOptions(s.options,debug)),s.getFooterGroups=memo(()=>[s.getHeaderGroups()],j=>[...j].reverse(),getMemoOptions(s.options,debug)),s.getLeftFooterGroups=memo(()=>[s.getLeftHeaderGroups()],j=>[...j].reverse(),getMemoOptions(s.options,debug)),s.getCenterFooterGroups=memo(()=>[s.getCenterHeaderGroups()],j=>[...j].reverse(),getMemoOptions(s.options,debug)),s.getRightFooterGroups=memo(()=>[s.getRightHeaderGroups()],j=>[...j].reverse(),getMemoOptions(s.options,debug)),s.getFlatHeaders=memo(()=>[s.getHeaderGroups()],j=>j.map($=>$.headers).flat(),getMemoOptions(s.options,debug)),s.getLeftFlatHeaders=memo(()=>[s.getLeftHeaderGroups()],j=>j.map($=>$.headers).flat(),getMemoOptions(s.options,debug)),s.getCenterFlatHeaders=memo(()=>[s.getCenterHeaderGroups()],j=>j.map($=>$.headers).flat(),getMemoOptions(s.options,debug)),s.getRightFlatHeaders=memo(()=>[s.getRightHeaderGroups()],j=>j.map($=>$.headers).flat(),getMemoOptions(s.options,debug)),s.getCenterLeafHeaders=memo(()=>[s.getCenterFlatHeaders()],j=>j.filter($=>{var _e;return!((_e=$.subHeaders)!=null&&_e.length)}),getMemoOptions(s.options,debug)),s.getLeftLeafHeaders=memo(()=>[s.getLeftFlatHeaders()],j=>j.filter($=>{var _e;return!((_e=$.subHeaders)!=null&&_e.length)}),getMemoOptions(s.options,debug)),s.getRightLeafHeaders=memo(()=>[s.getRightFlatHeaders()],j=>j.filter($=>{var _e;return!((_e=$.subHeaders)!=null&&_e.length)}),getMemoOptions(s.options,debug)),s.getLeafHeaders=memo(()=>[s.getLeftHeaderGroups(),s.getCenterHeaderGroups(),s.getRightHeaderGroups()],(j,$,_e)=>{var et,tt,nt,rt,ot,it;return[...(et=(tt=j[0])==null?void 0:tt.headers)!=null?et:[],...(nt=(rt=$[0])==null?void 0:rt.headers)!=null?nt:[],...(ot=(it=_e[0])==null?void 0:it.headers)!=null?ot:[]].map(st=>st.getLeafHeaders()).flat()},getMemoOptions(s.options,debug))}};function buildHeaderGroups(s,j,$,_e){var et,tt;let nt=0;const rt=function(ct,lt){lt===void 0&&(lt=1),nt=Math.max(nt,lt),ct.filter(dt=>dt.getIsVisible()).forEach(dt=>{var pt;(pt=dt.columns)!=null&&pt.length&&rt(dt.columns,lt+1)},0)};rt(s);let ot=[];const it=(ct,lt)=>{const dt={depth:lt,id:[_e,`${lt}`].filter(Boolean).join("_"),headers:[]},pt=[];ct.forEach(ht=>{const yt=[...pt].reverse()[0],gt=ht.column.depth===dt.depth;let ft,xt=!1;if(gt&&ht.column.parent?ft=ht.column.parent:(ft=ht.column,xt=!0),yt&&(yt==null?void 0:yt.column)===ft)yt.subHeaders.push(ht);else{const Mt=createHeader($,ft,{id:[_e,lt,ft.id,ht==null?void 0:ht.id].filter(Boolean).join("_"),isPlaceholder:xt,placeholderId:xt?`${pt.filter(jt=>jt.column===ft).length}`:void 0,depth:lt,index:pt.length});Mt.subHeaders.push(ht),pt.push(Mt)}dt.headers.push(ht),ht.headerGroup=dt}),ot.push(dt),lt>0&&it(pt,lt-1)},st=j.map((ct,lt)=>createHeader($,ct,{depth:nt,index:lt}));it(st,nt-1),ot.reverse();const at=ct=>ct.filter(dt=>dt.column.getIsVisible()).map(dt=>{let pt=0,ht=0,yt=[0];dt.subHeaders&&dt.subHeaders.length?(yt=[],at(dt.subHeaders).forEach(ft=>{let{colSpan:xt,rowSpan:Mt}=ft;pt+=xt,yt.push(Mt)})):pt=1;const gt=Math.min(...yt);return ht=ht+gt,dt.colSpan=pt,dt.rowSpan=ht,{colSpan:pt,rowSpan:ht}});return at((et=(tt=ot[0])==null?void 0:tt.headers)!=null?et:[]),ot}const createRow=(s,j,$,_e,et,tt,nt)=>{let rt={id:j,index:_e,original:$,depth:et,parentId:nt,_valuesCache:{},_uniqueValuesCache:{},getValue:ot=>{if(rt._valuesCache.hasOwnProperty(ot))return rt._valuesCache[ot];const it=s.getColumn(ot);if(it!=null&&it.accessorFn)return rt._valuesCache[ot]=it.accessorFn(rt.original,_e),rt._valuesCache[ot]},getUniqueValues:ot=>{if(rt._uniqueValuesCache.hasOwnProperty(ot))return rt._uniqueValuesCache[ot];const it=s.getColumn(ot);if(it!=null&&it.accessorFn)return it.columnDef.getUniqueValues?(rt._uniqueValuesCache[ot]=it.columnDef.getUniqueValues(rt.original,_e),rt._uniqueValuesCache[ot]):(rt._uniqueValuesCache[ot]=[rt.getValue(ot)],rt._uniqueValuesCache[ot])},renderValue:ot=>{var it;return(it=rt.getValue(ot))!=null?it:s.options.renderFallbackValue},subRows:[],getLeafRows:()=>flattenBy(rt.subRows,ot=>ot.subRows),getParentRow:()=>rt.parentId?s.getRow(rt.parentId,!0):void 0,getParentRows:()=>{let ot=[],it=rt;for(;;){const st=it.getParentRow();if(!st)break;ot.push(st),it=st}return ot.reverse()},getAllCells:memo(()=>[s.getAllLeafColumns()],ot=>ot.map(it=>createCell(s,rt,it,it.id)),getMemoOptions(s.options,"debugRows")),_getAllCellsByColumnId:memo(()=>[rt.getAllCells()],ot=>ot.reduce((it,st)=>(it[st.column.id]=st,it),{}),getMemoOptions(s.options,"debugRows"))};for(let ot=0;ot{s._getFacetedRowModel=j.options.getFacetedRowModel&&j.options.getFacetedRowModel(j,s.id),s.getFacetedRowModel=()=>s._getFacetedRowModel?s._getFacetedRowModel():j.getPreFilteredRowModel(),s._getFacetedUniqueValues=j.options.getFacetedUniqueValues&&j.options.getFacetedUniqueValues(j,s.id),s.getFacetedUniqueValues=()=>s._getFacetedUniqueValues?s._getFacetedUniqueValues():new Map,s._getFacetedMinMaxValues=j.options.getFacetedMinMaxValues&&j.options.getFacetedMinMaxValues(j,s.id),s.getFacetedMinMaxValues=()=>{if(s._getFacetedMinMaxValues)return s._getFacetedMinMaxValues()}}},includesString=(s,j,$)=>{var _e;const et=$.toLowerCase();return!!(!((_e=s.getValue(j))==null||(_e=_e.toString())==null||(_e=_e.toLowerCase())==null)&&_e.includes(et))};includesString.autoRemove=s=>testFalsey(s);const includesStringSensitive=(s,j,$)=>{var _e;return!!(!((_e=s.getValue(j))==null||(_e=_e.toString())==null)&&_e.includes($))};includesStringSensitive.autoRemove=s=>testFalsey(s);const equalsString=(s,j,$)=>{var _e;return((_e=s.getValue(j))==null||(_e=_e.toString())==null?void 0:_e.toLowerCase())===($==null?void 0:$.toLowerCase())};equalsString.autoRemove=s=>testFalsey(s);const arrIncludes=(s,j,$)=>{var _e;return(_e=s.getValue(j))==null?void 0:_e.includes($)};arrIncludes.autoRemove=s=>testFalsey(s)||!(s!=null&&s.length);const arrIncludesAll=(s,j,$)=>!$.some(_e=>{var et;return!((et=s.getValue(j))!=null&&et.includes(_e))});arrIncludesAll.autoRemove=s=>testFalsey(s)||!(s!=null&&s.length);const arrIncludesSome=(s,j,$)=>$.some(_e=>{var et;return(et=s.getValue(j))==null?void 0:et.includes(_e)});arrIncludesSome.autoRemove=s=>testFalsey(s)||!(s!=null&&s.length);const equals=(s,j,$)=>s.getValue(j)===$;equals.autoRemove=s=>testFalsey(s);const weakEquals=(s,j,$)=>s.getValue(j)==$;weakEquals.autoRemove=s=>testFalsey(s);const inNumberRange=(s,j,$)=>{let[_e,et]=$;const tt=s.getValue(j);return tt>=_e&&tt<=et};inNumberRange.resolveFilterValue=s=>{let[j,$]=s,_e=typeof j!="number"?parseFloat(j):j,et=typeof $!="number"?parseFloat($):$,tt=j===null||Number.isNaN(_e)?-1/0:_e,nt=$===null||Number.isNaN(et)?1/0:et;if(tt>nt){const rt=tt;tt=nt,nt=rt}return[tt,nt]};inNumberRange.autoRemove=s=>testFalsey(s)||testFalsey(s[0])&&testFalsey(s[1]);const filterFns={includesString,includesStringSensitive,equalsString,arrIncludes,arrIncludesAll,arrIncludesSome,equals,weakEquals,inNumberRange};function testFalsey(s){return s==null||s===""}const ColumnFiltering={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:s=>({columnFilters:[],...s}),getDefaultOptions:s=>({onColumnFiltersChange:makeStateUpdater("columnFilters",s),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(s,j)=>{s.getAutoFilterFn=()=>{const $=j.getCoreRowModel().flatRows[0],_e=$==null?void 0:$.getValue(s.id);return typeof _e=="string"?filterFns.includesString:typeof _e=="number"?filterFns.inNumberRange:typeof _e=="boolean"||_e!==null&&typeof _e=="object"?filterFns.equals:Array.isArray(_e)?filterFns.arrIncludes:filterFns.weakEquals},s.getFilterFn=()=>{var $,_e;return isFunction(s.columnDef.filterFn)?s.columnDef.filterFn:s.columnDef.filterFn==="auto"?s.getAutoFilterFn():($=(_e=j.options.filterFns)==null?void 0:_e[s.columnDef.filterFn])!=null?$:filterFns[s.columnDef.filterFn]},s.getCanFilter=()=>{var $,_e,et;return(($=s.columnDef.enableColumnFilter)!=null?$:!0)&&((_e=j.options.enableColumnFilters)!=null?_e:!0)&&((et=j.options.enableFilters)!=null?et:!0)&&!!s.accessorFn},s.getIsFiltered=()=>s.getFilterIndex()>-1,s.getFilterValue=()=>{var $;return($=j.getState().columnFilters)==null||($=$.find(_e=>_e.id===s.id))==null?void 0:$.value},s.getFilterIndex=()=>{var $,_e;return($=(_e=j.getState().columnFilters)==null?void 0:_e.findIndex(et=>et.id===s.id))!=null?$:-1},s.setFilterValue=$=>{j.setColumnFilters(_e=>{const et=s.getFilterFn(),tt=_e==null?void 0:_e.find(st=>st.id===s.id),nt=functionalUpdate($,tt?tt.value:void 0);if(shouldAutoRemoveFilter(et,nt,s)){var rt;return(rt=_e==null?void 0:_e.filter(st=>st.id!==s.id))!=null?rt:[]}const ot={id:s.id,value:nt};if(tt){var it;return(it=_e==null?void 0:_e.map(st=>st.id===s.id?ot:st))!=null?it:[]}return _e!=null&&_e.length?[..._e,ot]:[ot]})}},createRow:(s,j)=>{s.columnFilters={},s.columnFiltersMeta={}},createTable:s=>{s.setColumnFilters=j=>{const $=s.getAllLeafColumns(),_e=et=>{var tt;return(tt=functionalUpdate(j,et))==null?void 0:tt.filter(nt=>{const rt=$.find(ot=>ot.id===nt.id);if(rt){const ot=rt.getFilterFn();if(shouldAutoRemoveFilter(ot,nt.value,rt))return!1}return!0})};s.options.onColumnFiltersChange==null||s.options.onColumnFiltersChange(_e)},s.resetColumnFilters=j=>{var $,_e;s.setColumnFilters(j?[]:($=(_e=s.initialState)==null?void 0:_e.columnFilters)!=null?$:[])},s.getPreFilteredRowModel=()=>s.getCoreRowModel(),s.getFilteredRowModel=()=>(!s._getFilteredRowModel&&s.options.getFilteredRowModel&&(s._getFilteredRowModel=s.options.getFilteredRowModel(s)),s.options.manualFiltering||!s._getFilteredRowModel?s.getPreFilteredRowModel():s._getFilteredRowModel())}};function shouldAutoRemoveFilter(s,j,$){return(s&&s.autoRemove?s.autoRemove(j,$):!1)||typeof j>"u"||typeof j=="string"&&!j}const sum=(s,j,$)=>$.reduce((_e,et)=>{const tt=et.getValue(s);return _e+(typeof tt=="number"?tt:0)},0),min=(s,j,$)=>{let _e;return $.forEach(et=>{const tt=et.getValue(s);tt!=null&&(_e>tt||_e===void 0&&tt>=tt)&&(_e=tt)}),_e},max=(s,j,$)=>{let _e;return $.forEach(et=>{const tt=et.getValue(s);tt!=null&&(_e=tt)&&(_e=tt)}),_e},extent=(s,j,$)=>{let _e,et;return $.forEach(tt=>{const nt=tt.getValue(s);nt!=null&&(_e===void 0?nt>=nt&&(_e=et=nt):(_e>nt&&(_e=nt),et{let $=0,_e=0;if(j.forEach(et=>{let tt=et.getValue(s);tt!=null&&(tt=+tt)>=tt&&(++$,_e+=tt)}),$)return _e/$},median=(s,j)=>{if(!j.length)return;const $=j.map(tt=>tt.getValue(s));if(!isNumberArray($))return;if($.length===1)return $[0];const _e=Math.floor($.length/2),et=$.sort((tt,nt)=>tt-nt);return $.length%2!==0?et[_e]:(et[_e-1]+et[_e])/2},unique=(s,j)=>Array.from(new Set(j.map($=>$.getValue(s))).values()),uniqueCount=(s,j)=>new Set(j.map($=>$.getValue(s))).size,count=(s,j)=>j.length,aggregationFns={sum,min,max,extent,mean,median,unique,uniqueCount,count},ColumnGrouping={getDefaultColumnDef:()=>({aggregatedCell:s=>{var j,$;return(j=($=s.getValue())==null||$.toString==null?void 0:$.toString())!=null?j:null},aggregationFn:"auto"}),getInitialState:s=>({grouping:[],...s}),getDefaultOptions:s=>({onGroupingChange:makeStateUpdater("grouping",s),groupedColumnMode:"reorder"}),createColumn:(s,j)=>{s.toggleGrouping=()=>{j.setGrouping($=>$!=null&&$.includes(s.id)?$.filter(_e=>_e!==s.id):[...$??[],s.id])},s.getCanGroup=()=>{var $,_e;return(($=s.columnDef.enableGrouping)!=null?$:!0)&&((_e=j.options.enableGrouping)!=null?_e:!0)&&(!!s.accessorFn||!!s.columnDef.getGroupingValue)},s.getIsGrouped=()=>{var $;return($=j.getState().grouping)==null?void 0:$.includes(s.id)},s.getGroupedIndex=()=>{var $;return($=j.getState().grouping)==null?void 0:$.indexOf(s.id)},s.getToggleGroupingHandler=()=>{const $=s.getCanGroup();return()=>{$&&s.toggleGrouping()}},s.getAutoAggregationFn=()=>{const $=j.getCoreRowModel().flatRows[0],_e=$==null?void 0:$.getValue(s.id);if(typeof _e=="number")return aggregationFns.sum;if(Object.prototype.toString.call(_e)==="[object Date]")return aggregationFns.extent},s.getAggregationFn=()=>{var $,_e;if(!s)throw new Error;return isFunction(s.columnDef.aggregationFn)?s.columnDef.aggregationFn:s.columnDef.aggregationFn==="auto"?s.getAutoAggregationFn():($=(_e=j.options.aggregationFns)==null?void 0:_e[s.columnDef.aggregationFn])!=null?$:aggregationFns[s.columnDef.aggregationFn]}},createTable:s=>{s.setGrouping=j=>s.options.onGroupingChange==null?void 0:s.options.onGroupingChange(j),s.resetGrouping=j=>{var $,_e;s.setGrouping(j?[]:($=(_e=s.initialState)==null?void 0:_e.grouping)!=null?$:[])},s.getPreGroupedRowModel=()=>s.getFilteredRowModel(),s.getGroupedRowModel=()=>(!s._getGroupedRowModel&&s.options.getGroupedRowModel&&(s._getGroupedRowModel=s.options.getGroupedRowModel(s)),s.options.manualGrouping||!s._getGroupedRowModel?s.getPreGroupedRowModel():s._getGroupedRowModel())},createRow:(s,j)=>{s.getIsGrouped=()=>!!s.groupingColumnId,s.getGroupingValue=$=>{if(s._groupingValuesCache.hasOwnProperty($))return s._groupingValuesCache[$];const _e=j.getColumn($);return _e!=null&&_e.columnDef.getGroupingValue?(s._groupingValuesCache[$]=_e.columnDef.getGroupingValue(s.original),s._groupingValuesCache[$]):s.getValue($)},s._groupingValuesCache={}},createCell:(s,j,$,_e)=>{s.getIsGrouped=()=>j.getIsGrouped()&&j.id===$.groupingColumnId,s.getIsPlaceholder=()=>!s.getIsGrouped()&&j.getIsGrouped(),s.getIsAggregated=()=>{var et;return!s.getIsGrouped()&&!s.getIsPlaceholder()&&!!((et=$.subRows)!=null&&et.length)}}};function orderColumns(s,j,$){if(!(j!=null&&j.length)||!$)return s;const _e=s.filter(tt=>!j.includes(tt.id));return $==="remove"?_e:[...j.map(tt=>s.find(nt=>nt.id===tt)).filter(Boolean),..._e]}const ColumnOrdering={getInitialState:s=>({columnOrder:[],...s}),getDefaultOptions:s=>({onColumnOrderChange:makeStateUpdater("columnOrder",s)}),createColumn:(s,j)=>{s.getIndex=memo($=>[_getVisibleLeafColumns(j,$)],$=>$.findIndex(_e=>_e.id===s.id),getMemoOptions(j.options,"debugColumns")),s.getIsFirstColumn=$=>{var _e;return((_e=_getVisibleLeafColumns(j,$)[0])==null?void 0:_e.id)===s.id},s.getIsLastColumn=$=>{var _e;const et=_getVisibleLeafColumns(j,$);return((_e=et[et.length-1])==null?void 0:_e.id)===s.id}},createTable:s=>{s.setColumnOrder=j=>s.options.onColumnOrderChange==null?void 0:s.options.onColumnOrderChange(j),s.resetColumnOrder=j=>{var $;s.setColumnOrder(j?[]:($=s.initialState.columnOrder)!=null?$:[])},s._getOrderColumnsFn=memo(()=>[s.getState().columnOrder,s.getState().grouping,s.options.groupedColumnMode],(j,$,_e)=>et=>{let tt=[];if(!(j!=null&&j.length))tt=et;else{const nt=[...j],rt=[...et];for(;rt.length&&nt.length;){const ot=nt.shift(),it=rt.findIndex(st=>st.id===ot);it>-1&&tt.push(rt.splice(it,1)[0])}tt=[...tt,...rt]}return orderColumns(tt,$,_e)},getMemoOptions(s.options,"debugTable"))}},getDefaultColumnPinningState=()=>({left:[],right:[]}),ColumnPinning={getInitialState:s=>({columnPinning:getDefaultColumnPinningState(),...s}),getDefaultOptions:s=>({onColumnPinningChange:makeStateUpdater("columnPinning",s)}),createColumn:(s,j)=>{s.pin=$=>{const _e=s.getLeafColumns().map(et=>et.id).filter(Boolean);j.setColumnPinning(et=>{var tt,nt;if($==="right"){var rt,ot;return{left:((rt=et==null?void 0:et.left)!=null?rt:[]).filter(at=>!(_e!=null&&_e.includes(at))),right:[...((ot=et==null?void 0:et.right)!=null?ot:[]).filter(at=>!(_e!=null&&_e.includes(at))),..._e]}}if($==="left"){var it,st;return{left:[...((it=et==null?void 0:et.left)!=null?it:[]).filter(at=>!(_e!=null&&_e.includes(at))),..._e],right:((st=et==null?void 0:et.right)!=null?st:[]).filter(at=>!(_e!=null&&_e.includes(at)))}}return{left:((tt=et==null?void 0:et.left)!=null?tt:[]).filter(at=>!(_e!=null&&_e.includes(at))),right:((nt=et==null?void 0:et.right)!=null?nt:[]).filter(at=>!(_e!=null&&_e.includes(at)))}})},s.getCanPin=()=>s.getLeafColumns().some(_e=>{var et,tt,nt;return((et=_e.columnDef.enablePinning)!=null?et:!0)&&((tt=(nt=j.options.enableColumnPinning)!=null?nt:j.options.enablePinning)!=null?tt:!0)}),s.getIsPinned=()=>{const $=s.getLeafColumns().map(rt=>rt.id),{left:_e,right:et}=j.getState().columnPinning,tt=$.some(rt=>_e==null?void 0:_e.includes(rt)),nt=$.some(rt=>et==null?void 0:et.includes(rt));return tt?"left":nt?"right":!1},s.getPinnedIndex=()=>{var $,_e;const et=s.getIsPinned();return et?($=(_e=j.getState().columnPinning)==null||(_e=_e[et])==null?void 0:_e.indexOf(s.id))!=null?$:-1:0}},createRow:(s,j)=>{s.getCenterVisibleCells=memo(()=>[s._getAllVisibleCells(),j.getState().columnPinning.left,j.getState().columnPinning.right],($,_e,et)=>{const tt=[..._e??[],...et??[]];return $.filter(nt=>!tt.includes(nt.column.id))},getMemoOptions(j.options,"debugRows")),s.getLeftVisibleCells=memo(()=>[s._getAllVisibleCells(),j.getState().columnPinning.left],($,_e)=>(_e??[]).map(tt=>$.find(nt=>nt.column.id===tt)).filter(Boolean).map(tt=>({...tt,position:"left"})),getMemoOptions(j.options,"debugRows")),s.getRightVisibleCells=memo(()=>[s._getAllVisibleCells(),j.getState().columnPinning.right],($,_e)=>(_e??[]).map(tt=>$.find(nt=>nt.column.id===tt)).filter(Boolean).map(tt=>({...tt,position:"right"})),getMemoOptions(j.options,"debugRows"))},createTable:s=>{s.setColumnPinning=j=>s.options.onColumnPinningChange==null?void 0:s.options.onColumnPinningChange(j),s.resetColumnPinning=j=>{var $,_e;return s.setColumnPinning(j?getDefaultColumnPinningState():($=(_e=s.initialState)==null?void 0:_e.columnPinning)!=null?$:getDefaultColumnPinningState())},s.getIsSomeColumnsPinned=j=>{var $;const _e=s.getState().columnPinning;if(!j){var et,tt;return!!((et=_e.left)!=null&&et.length||(tt=_e.right)!=null&&tt.length)}return!!(($=_e[j])!=null&&$.length)},s.getLeftLeafColumns=memo(()=>[s.getAllLeafColumns(),s.getState().columnPinning.left],(j,$)=>($??[]).map(_e=>j.find(et=>et.id===_e)).filter(Boolean),getMemoOptions(s.options,"debugColumns")),s.getRightLeafColumns=memo(()=>[s.getAllLeafColumns(),s.getState().columnPinning.right],(j,$)=>($??[]).map(_e=>j.find(et=>et.id===_e)).filter(Boolean),getMemoOptions(s.options,"debugColumns")),s.getCenterLeafColumns=memo(()=>[s.getAllLeafColumns(),s.getState().columnPinning.left,s.getState().columnPinning.right],(j,$,_e)=>{const et=[...$??[],..._e??[]];return j.filter(tt=>!et.includes(tt.id))},getMemoOptions(s.options,"debugColumns"))}},defaultColumnSizing={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},getDefaultColumnSizingInfoState=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),ColumnSizing={getDefaultColumnDef:()=>defaultColumnSizing,getInitialState:s=>({columnSizing:{},columnSizingInfo:getDefaultColumnSizingInfoState(),...s}),getDefaultOptions:s=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:makeStateUpdater("columnSizing",s),onColumnSizingInfoChange:makeStateUpdater("columnSizingInfo",s)}),createColumn:(s,j)=>{s.getSize=()=>{var $,_e,et;const tt=j.getState().columnSizing[s.id];return Math.min(Math.max(($=s.columnDef.minSize)!=null?$:defaultColumnSizing.minSize,(_e=tt??s.columnDef.size)!=null?_e:defaultColumnSizing.size),(et=s.columnDef.maxSize)!=null?et:defaultColumnSizing.maxSize)},s.getStart=memo($=>[$,_getVisibleLeafColumns(j,$),j.getState().columnSizing],($,_e)=>_e.slice(0,s.getIndex($)).reduce((et,tt)=>et+tt.getSize(),0),getMemoOptions(j.options,"debugColumns")),s.getAfter=memo($=>[$,_getVisibleLeafColumns(j,$),j.getState().columnSizing],($,_e)=>_e.slice(s.getIndex($)+1).reduce((et,tt)=>et+tt.getSize(),0),getMemoOptions(j.options,"debugColumns")),s.resetSize=()=>{j.setColumnSizing($=>{let{[s.id]:_e,...et}=$;return et})},s.getCanResize=()=>{var $,_e;return(($=s.columnDef.enableResizing)!=null?$:!0)&&((_e=j.options.enableColumnResizing)!=null?_e:!0)},s.getIsResizing=()=>j.getState().columnSizingInfo.isResizingColumn===s.id},createHeader:(s,j)=>{s.getSize=()=>{let $=0;const _e=et=>{if(et.subHeaders.length)et.subHeaders.forEach(_e);else{var tt;$+=(tt=et.column.getSize())!=null?tt:0}};return _e(s),$},s.getStart=()=>{if(s.index>0){const $=s.headerGroup.headers[s.index-1];return $.getStart()+$.getSize()}return 0},s.getResizeHandler=$=>{const _e=j.getColumn(s.column.id),et=_e==null?void 0:_e.getCanResize();return tt=>{if(!_e||!et||(tt.persist==null||tt.persist(),isTouchStartEvent(tt)&&tt.touches&&tt.touches.length>1))return;const nt=s.getSize(),rt=s?s.getLeafHeaders().map(yt=>[yt.column.id,yt.column.getSize()]):[[_e.id,_e.getSize()]],ot=isTouchStartEvent(tt)?Math.round(tt.touches[0].clientX):tt.clientX,it={},st=(yt,gt)=>{typeof gt=="number"&&(j.setColumnSizingInfo(ft=>{var xt,Mt;const jt=j.options.columnResizeDirection==="rtl"?-1:1,wt=(gt-((xt=ft==null?void 0:ft.startOffset)!=null?xt:0))*jt,$t=Math.max(wt/((Mt=ft==null?void 0:ft.startSize)!=null?Mt:0),-.999999);return ft.columnSizingStart.forEach(zt=>{let[Ot,Pt]=zt;it[Ot]=Math.round(Math.max(Pt+Pt*$t,0)*100)/100}),{...ft,deltaOffset:wt,deltaPercentage:$t}}),(j.options.columnResizeMode==="onChange"||yt==="end")&&j.setColumnSizing(ft=>({...ft,...it})))},at=yt=>st("move",yt),ct=yt=>{st("end",yt),j.setColumnSizingInfo(gt=>({...gt,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},lt=$||typeof document<"u"?document:null,dt={moveHandler:yt=>at(yt.clientX),upHandler:yt=>{lt==null||lt.removeEventListener("mousemove",dt.moveHandler),lt==null||lt.removeEventListener("mouseup",dt.upHandler),ct(yt.clientX)}},pt={moveHandler:yt=>(yt.cancelable&&(yt.preventDefault(),yt.stopPropagation()),at(yt.touches[0].clientX),!1),upHandler:yt=>{var gt;lt==null||lt.removeEventListener("touchmove",pt.moveHandler),lt==null||lt.removeEventListener("touchend",pt.upHandler),yt.cancelable&&(yt.preventDefault(),yt.stopPropagation()),ct((gt=yt.touches[0])==null?void 0:gt.clientX)}},ht=passiveEventSupported()?{passive:!1}:!1;isTouchStartEvent(tt)?(lt==null||lt.addEventListener("touchmove",pt.moveHandler,ht),lt==null||lt.addEventListener("touchend",pt.upHandler,ht)):(lt==null||lt.addEventListener("mousemove",dt.moveHandler,ht),lt==null||lt.addEventListener("mouseup",dt.upHandler,ht)),j.setColumnSizingInfo(yt=>({...yt,startOffset:ot,startSize:nt,deltaOffset:0,deltaPercentage:0,columnSizingStart:rt,isResizingColumn:_e.id}))}}},createTable:s=>{s.setColumnSizing=j=>s.options.onColumnSizingChange==null?void 0:s.options.onColumnSizingChange(j),s.setColumnSizingInfo=j=>s.options.onColumnSizingInfoChange==null?void 0:s.options.onColumnSizingInfoChange(j),s.resetColumnSizing=j=>{var $;s.setColumnSizing(j?{}:($=s.initialState.columnSizing)!=null?$:{})},s.resetHeaderSizeInfo=j=>{var $;s.setColumnSizingInfo(j?getDefaultColumnSizingInfoState():($=s.initialState.columnSizingInfo)!=null?$:getDefaultColumnSizingInfoState())},s.getTotalSize=()=>{var j,$;return(j=($=s.getHeaderGroups()[0])==null?void 0:$.headers.reduce((_e,et)=>_e+et.getSize(),0))!=null?j:0},s.getLeftTotalSize=()=>{var j,$;return(j=($=s.getLeftHeaderGroups()[0])==null?void 0:$.headers.reduce((_e,et)=>_e+et.getSize(),0))!=null?j:0},s.getCenterTotalSize=()=>{var j,$;return(j=($=s.getCenterHeaderGroups()[0])==null?void 0:$.headers.reduce((_e,et)=>_e+et.getSize(),0))!=null?j:0},s.getRightTotalSize=()=>{var j,$;return(j=($=s.getRightHeaderGroups()[0])==null?void 0:$.headers.reduce((_e,et)=>_e+et.getSize(),0))!=null?j:0}}};let passiveSupported=null;function passiveEventSupported(){if(typeof passiveSupported=="boolean")return passiveSupported;let s=!1;try{const j={get passive(){return s=!0,!1}},$=()=>{};window.addEventListener("test",$,j),window.removeEventListener("test",$)}catch{s=!1}return passiveSupported=s,passiveSupported}function isTouchStartEvent(s){return s.type==="touchstart"}const ColumnVisibility={getInitialState:s=>({columnVisibility:{},...s}),getDefaultOptions:s=>({onColumnVisibilityChange:makeStateUpdater("columnVisibility",s)}),createColumn:(s,j)=>{s.toggleVisibility=$=>{s.getCanHide()&&j.setColumnVisibility(_e=>({..._e,[s.id]:$??!s.getIsVisible()}))},s.getIsVisible=()=>{var $,_e;const et=s.columns;return($=et.length?et.some(tt=>tt.getIsVisible()):(_e=j.getState().columnVisibility)==null?void 0:_e[s.id])!=null?$:!0},s.getCanHide=()=>{var $,_e;return(($=s.columnDef.enableHiding)!=null?$:!0)&&((_e=j.options.enableHiding)!=null?_e:!0)},s.getToggleVisibilityHandler=()=>$=>{s.toggleVisibility==null||s.toggleVisibility($.target.checked)}},createRow:(s,j)=>{s._getAllVisibleCells=memo(()=>[s.getAllCells(),j.getState().columnVisibility],$=>$.filter(_e=>_e.column.getIsVisible()),getMemoOptions(j.options,"debugRows")),s.getVisibleCells=memo(()=>[s.getLeftVisibleCells(),s.getCenterVisibleCells(),s.getRightVisibleCells()],($,_e,et)=>[...$,..._e,...et],getMemoOptions(j.options,"debugRows"))},createTable:s=>{const j=($,_e)=>memo(()=>[_e(),_e().filter(et=>et.getIsVisible()).map(et=>et.id).join("_")],et=>et.filter(tt=>tt.getIsVisible==null?void 0:tt.getIsVisible()),getMemoOptions(s.options,"debugColumns"));s.getVisibleFlatColumns=j("getVisibleFlatColumns",()=>s.getAllFlatColumns()),s.getVisibleLeafColumns=j("getVisibleLeafColumns",()=>s.getAllLeafColumns()),s.getLeftVisibleLeafColumns=j("getLeftVisibleLeafColumns",()=>s.getLeftLeafColumns()),s.getRightVisibleLeafColumns=j("getRightVisibleLeafColumns",()=>s.getRightLeafColumns()),s.getCenterVisibleLeafColumns=j("getCenterVisibleLeafColumns",()=>s.getCenterLeafColumns()),s.setColumnVisibility=$=>s.options.onColumnVisibilityChange==null?void 0:s.options.onColumnVisibilityChange($),s.resetColumnVisibility=$=>{var _e;s.setColumnVisibility($?{}:(_e=s.initialState.columnVisibility)!=null?_e:{})},s.toggleAllColumnsVisible=$=>{var _e;$=(_e=$)!=null?_e:!s.getIsAllColumnsVisible(),s.setColumnVisibility(s.getAllLeafColumns().reduce((et,tt)=>({...et,[tt.id]:$||!(tt.getCanHide!=null&&tt.getCanHide())}),{}))},s.getIsAllColumnsVisible=()=>!s.getAllLeafColumns().some($=>!($.getIsVisible!=null&&$.getIsVisible())),s.getIsSomeColumnsVisible=()=>s.getAllLeafColumns().some($=>$.getIsVisible==null?void 0:$.getIsVisible()),s.getToggleAllColumnsVisibilityHandler=()=>$=>{var _e;s.toggleAllColumnsVisible((_e=$.target)==null?void 0:_e.checked)}}};function _getVisibleLeafColumns(s,j){return j?j==="center"?s.getCenterVisibleLeafColumns():j==="left"?s.getLeftVisibleLeafColumns():s.getRightVisibleLeafColumns():s.getVisibleLeafColumns()}const GlobalFaceting={createTable:s=>{s._getGlobalFacetedRowModel=s.options.getFacetedRowModel&&s.options.getFacetedRowModel(s,"__global__"),s.getGlobalFacetedRowModel=()=>s.options.manualFiltering||!s._getGlobalFacetedRowModel?s.getPreFilteredRowModel():s._getGlobalFacetedRowModel(),s._getGlobalFacetedUniqueValues=s.options.getFacetedUniqueValues&&s.options.getFacetedUniqueValues(s,"__global__"),s.getGlobalFacetedUniqueValues=()=>s._getGlobalFacetedUniqueValues?s._getGlobalFacetedUniqueValues():new Map,s._getGlobalFacetedMinMaxValues=s.options.getFacetedMinMaxValues&&s.options.getFacetedMinMaxValues(s,"__global__"),s.getGlobalFacetedMinMaxValues=()=>{if(s._getGlobalFacetedMinMaxValues)return s._getGlobalFacetedMinMaxValues()}}},GlobalFiltering={getInitialState:s=>({globalFilter:void 0,...s}),getDefaultOptions:s=>({onGlobalFilterChange:makeStateUpdater("globalFilter",s),globalFilterFn:"auto",getColumnCanGlobalFilter:j=>{var $;const _e=($=s.getCoreRowModel().flatRows[0])==null||($=$._getAllCellsByColumnId()[j.id])==null?void 0:$.getValue();return typeof _e=="string"||typeof _e=="number"}}),createColumn:(s,j)=>{s.getCanGlobalFilter=()=>{var $,_e,et,tt;return(($=s.columnDef.enableGlobalFilter)!=null?$:!0)&&((_e=j.options.enableGlobalFilter)!=null?_e:!0)&&((et=j.options.enableFilters)!=null?et:!0)&&((tt=j.options.getColumnCanGlobalFilter==null?void 0:j.options.getColumnCanGlobalFilter(s))!=null?tt:!0)&&!!s.accessorFn}},createTable:s=>{s.getGlobalAutoFilterFn=()=>filterFns.includesString,s.getGlobalFilterFn=()=>{var j,$;const{globalFilterFn:_e}=s.options;return isFunction(_e)?_e:_e==="auto"?s.getGlobalAutoFilterFn():(j=($=s.options.filterFns)==null?void 0:$[_e])!=null?j:filterFns[_e]},s.setGlobalFilter=j=>{s.options.onGlobalFilterChange==null||s.options.onGlobalFilterChange(j)},s.resetGlobalFilter=j=>{s.setGlobalFilter(j?void 0:s.initialState.globalFilter)}}},RowExpanding={getInitialState:s=>({expanded:{},...s}),getDefaultOptions:s=>({onExpandedChange:makeStateUpdater("expanded",s),paginateExpandedRows:!0}),createTable:s=>{let j=!1,$=!1;s._autoResetExpanded=()=>{var _e,et;if(!j){s._queue(()=>{j=!0});return}if((_e=(et=s.options.autoResetAll)!=null?et:s.options.autoResetExpanded)!=null?_e:!s.options.manualExpanding){if($)return;$=!0,s._queue(()=>{s.resetExpanded(),$=!1})}},s.setExpanded=_e=>s.options.onExpandedChange==null?void 0:s.options.onExpandedChange(_e),s.toggleAllRowsExpanded=_e=>{_e??!s.getIsAllRowsExpanded()?s.setExpanded(!0):s.setExpanded({})},s.resetExpanded=_e=>{var et,tt;s.setExpanded(_e?{}:(et=(tt=s.initialState)==null?void 0:tt.expanded)!=null?et:{})},s.getCanSomeRowsExpand=()=>s.getPrePaginationRowModel().flatRows.some(_e=>_e.getCanExpand()),s.getToggleAllRowsExpandedHandler=()=>_e=>{_e.persist==null||_e.persist(),s.toggleAllRowsExpanded()},s.getIsSomeRowsExpanded=()=>{const _e=s.getState().expanded;return _e===!0||Object.values(_e).some(Boolean)},s.getIsAllRowsExpanded=()=>{const _e=s.getState().expanded;return typeof _e=="boolean"?_e===!0:!(!Object.keys(_e).length||s.getRowModel().flatRows.some(et=>!et.getIsExpanded()))},s.getExpandedDepth=()=>{let _e=0;return(s.getState().expanded===!0?Object.keys(s.getRowModel().rowsById):Object.keys(s.getState().expanded)).forEach(tt=>{const nt=tt.split(".");_e=Math.max(_e,nt.length)}),_e},s.getPreExpandedRowModel=()=>s.getSortedRowModel(),s.getExpandedRowModel=()=>(!s._getExpandedRowModel&&s.options.getExpandedRowModel&&(s._getExpandedRowModel=s.options.getExpandedRowModel(s)),s.options.manualExpanding||!s._getExpandedRowModel?s.getPreExpandedRowModel():s._getExpandedRowModel())},createRow:(s,j)=>{s.toggleExpanded=$=>{j.setExpanded(_e=>{var et;const tt=_e===!0?!0:!!(_e!=null&&_e[s.id]);let nt={};if(_e===!0?Object.keys(j.getRowModel().rowsById).forEach(rt=>{nt[rt]=!0}):nt=_e,$=(et=$)!=null?et:!tt,!tt&&$)return{...nt,[s.id]:!0};if(tt&&!$){const{[s.id]:rt,...ot}=nt;return ot}return _e})},s.getIsExpanded=()=>{var $;const _e=j.getState().expanded;return!!(($=j.options.getIsRowExpanded==null?void 0:j.options.getIsRowExpanded(s))!=null?$:_e===!0||_e!=null&&_e[s.id])},s.getCanExpand=()=>{var $,_e,et;return($=j.options.getRowCanExpand==null?void 0:j.options.getRowCanExpand(s))!=null?$:((_e=j.options.enableExpanding)!=null?_e:!0)&&!!((et=s.subRows)!=null&&et.length)},s.getIsAllParentsExpanded=()=>{let $=!0,_e=s;for(;$&&_e.parentId;)_e=j.getRow(_e.parentId,!0),$=_e.getIsExpanded();return $},s.getToggleExpandedHandler=()=>{const $=s.getCanExpand();return()=>{$&&s.toggleExpanded()}}}},defaultPageIndex=0,defaultPageSize=10,getDefaultPaginationState=()=>({pageIndex:defaultPageIndex,pageSize:defaultPageSize}),RowPagination={getInitialState:s=>({...s,pagination:{...getDefaultPaginationState(),...s==null?void 0:s.pagination}}),getDefaultOptions:s=>({onPaginationChange:makeStateUpdater("pagination",s)}),createTable:s=>{let j=!1,$=!1;s._autoResetPageIndex=()=>{var _e,et;if(!j){s._queue(()=>{j=!0});return}if((_e=(et=s.options.autoResetAll)!=null?et:s.options.autoResetPageIndex)!=null?_e:!s.options.manualPagination){if($)return;$=!0,s._queue(()=>{s.resetPageIndex(),$=!1})}},s.setPagination=_e=>{const et=tt=>functionalUpdate(_e,tt);return s.options.onPaginationChange==null?void 0:s.options.onPaginationChange(et)},s.resetPagination=_e=>{var et;s.setPagination(_e?getDefaultPaginationState():(et=s.initialState.pagination)!=null?et:getDefaultPaginationState())},s.setPageIndex=_e=>{s.setPagination(et=>{let tt=functionalUpdate(_e,et.pageIndex);const nt=typeof s.options.pageCount>"u"||s.options.pageCount===-1?Number.MAX_SAFE_INTEGER:s.options.pageCount-1;return tt=Math.max(0,Math.min(tt,nt)),{...et,pageIndex:tt}})},s.resetPageIndex=_e=>{var et,tt;s.setPageIndex(_e?defaultPageIndex:(et=(tt=s.initialState)==null||(tt=tt.pagination)==null?void 0:tt.pageIndex)!=null?et:defaultPageIndex)},s.resetPageSize=_e=>{var et,tt;s.setPageSize(_e?defaultPageSize:(et=(tt=s.initialState)==null||(tt=tt.pagination)==null?void 0:tt.pageSize)!=null?et:defaultPageSize)},s.setPageSize=_e=>{s.setPagination(et=>{const tt=Math.max(1,functionalUpdate(_e,et.pageSize)),nt=et.pageSize*et.pageIndex,rt=Math.floor(nt/tt);return{...et,pageIndex:rt,pageSize:tt}})},s.setPageCount=_e=>s.setPagination(et=>{var tt;let nt=functionalUpdate(_e,(tt=s.options.pageCount)!=null?tt:-1);return typeof nt=="number"&&(nt=Math.max(-1,nt)),{...et,pageCount:nt}}),s.getPageOptions=memo(()=>[s.getPageCount()],_e=>{let et=[];return _e&&_e>0&&(et=[...new Array(_e)].fill(null).map((tt,nt)=>nt)),et},getMemoOptions(s.options,"debugTable")),s.getCanPreviousPage=()=>s.getState().pagination.pageIndex>0,s.getCanNextPage=()=>{const{pageIndex:_e}=s.getState().pagination,et=s.getPageCount();return et===-1?!0:et===0?!1:_es.setPageIndex(_e=>_e-1),s.nextPage=()=>s.setPageIndex(_e=>_e+1),s.firstPage=()=>s.setPageIndex(0),s.lastPage=()=>s.setPageIndex(s.getPageCount()-1),s.getPrePaginationRowModel=()=>s.getExpandedRowModel(),s.getPaginationRowModel=()=>(!s._getPaginationRowModel&&s.options.getPaginationRowModel&&(s._getPaginationRowModel=s.options.getPaginationRowModel(s)),s.options.manualPagination||!s._getPaginationRowModel?s.getPrePaginationRowModel():s._getPaginationRowModel()),s.getPageCount=()=>{var _e;return(_e=s.options.pageCount)!=null?_e:Math.ceil(s.getRowCount()/s.getState().pagination.pageSize)},s.getRowCount=()=>{var _e;return(_e=s.options.rowCount)!=null?_e:s.getPrePaginationRowModel().rows.length}}},getDefaultRowPinningState=()=>({top:[],bottom:[]}),RowPinning={getInitialState:s=>({rowPinning:getDefaultRowPinningState(),...s}),getDefaultOptions:s=>({onRowPinningChange:makeStateUpdater("rowPinning",s)}),createRow:(s,j)=>{s.pin=($,_e,et)=>{const tt=_e?s.getLeafRows().map(ot=>{let{id:it}=ot;return it}):[],nt=et?s.getParentRows().map(ot=>{let{id:it}=ot;return it}):[],rt=new Set([...nt,s.id,...tt]);j.setRowPinning(ot=>{var it,st;if($==="bottom"){var at,ct;return{top:((at=ot==null?void 0:ot.top)!=null?at:[]).filter(pt=>!(rt!=null&&rt.has(pt))),bottom:[...((ct=ot==null?void 0:ot.bottom)!=null?ct:[]).filter(pt=>!(rt!=null&&rt.has(pt))),...Array.from(rt)]}}if($==="top"){var lt,dt;return{top:[...((lt=ot==null?void 0:ot.top)!=null?lt:[]).filter(pt=>!(rt!=null&&rt.has(pt))),...Array.from(rt)],bottom:((dt=ot==null?void 0:ot.bottom)!=null?dt:[]).filter(pt=>!(rt!=null&&rt.has(pt)))}}return{top:((it=ot==null?void 0:ot.top)!=null?it:[]).filter(pt=>!(rt!=null&&rt.has(pt))),bottom:((st=ot==null?void 0:ot.bottom)!=null?st:[]).filter(pt=>!(rt!=null&&rt.has(pt)))}})},s.getCanPin=()=>{var $;const{enableRowPinning:_e,enablePinning:et}=j.options;return typeof _e=="function"?_e(s):($=_e??et)!=null?$:!0},s.getIsPinned=()=>{const $=[s.id],{top:_e,bottom:et}=j.getState().rowPinning,tt=$.some(rt=>_e==null?void 0:_e.includes(rt)),nt=$.some(rt=>et==null?void 0:et.includes(rt));return tt?"top":nt?"bottom":!1},s.getPinnedIndex=()=>{var $,_e;const et=s.getIsPinned();if(!et)return-1;const tt=($=j._getPinnedRows(et))==null?void 0:$.map(nt=>{let{id:rt}=nt;return rt});return(_e=tt==null?void 0:tt.indexOf(s.id))!=null?_e:-1}},createTable:s=>{s.setRowPinning=j=>s.options.onRowPinningChange==null?void 0:s.options.onRowPinningChange(j),s.resetRowPinning=j=>{var $,_e;return s.setRowPinning(j?getDefaultRowPinningState():($=(_e=s.initialState)==null?void 0:_e.rowPinning)!=null?$:getDefaultRowPinningState())},s.getIsSomeRowsPinned=j=>{var $;const _e=s.getState().rowPinning;if(!j){var et,tt;return!!((et=_e.top)!=null&&et.length||(tt=_e.bottom)!=null&&tt.length)}return!!(($=_e[j])!=null&&$.length)},s._getPinnedRows=memo(j=>[s.getRowModel().rows,s.getState().rowPinning[j],j],(j,$,_e)=>{var et;return((et=s.options.keepPinnedRows)==null||et?($??[]).map(nt=>{const rt=s.getRow(nt,!0);return rt.getIsAllParentsExpanded()?rt:null}):($??[]).map(nt=>j.find(rt=>rt.id===nt))).filter(Boolean).map(nt=>({...nt,position:_e}))},getMemoOptions(s.options,"debugRows")),s.getTopRows=()=>s._getPinnedRows("top"),s.getBottomRows=()=>s._getPinnedRows("bottom"),s.getCenterRows=memo(()=>[s.getRowModel().rows,s.getState().rowPinning.top,s.getState().rowPinning.bottom],(j,$,_e)=>{const et=new Set([...$??[],..._e??[]]);return j.filter(tt=>!et.has(tt.id))},getMemoOptions(s.options,"debugRows"))}},RowSelection={getInitialState:s=>({rowSelection:{},...s}),getDefaultOptions:s=>({onRowSelectionChange:makeStateUpdater("rowSelection",s),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:s=>{s.setRowSelection=j=>s.options.onRowSelectionChange==null?void 0:s.options.onRowSelectionChange(j),s.resetRowSelection=j=>{var $;return s.setRowSelection(j?{}:($=s.initialState.rowSelection)!=null?$:{})},s.toggleAllRowsSelected=j=>{s.setRowSelection($=>{j=typeof j<"u"?j:!s.getIsAllRowsSelected();const _e={...$},et=s.getPreGroupedRowModel().flatRows;return j?et.forEach(tt=>{tt.getCanSelect()&&(_e[tt.id]=!0)}):et.forEach(tt=>{delete _e[tt.id]}),_e})},s.toggleAllPageRowsSelected=j=>s.setRowSelection($=>{const _e=typeof j<"u"?j:!s.getIsAllPageRowsSelected(),et={...$};return s.getRowModel().rows.forEach(tt=>{mutateRowIsSelected(et,tt.id,_e,!0,s)}),et}),s.getPreSelectedRowModel=()=>s.getCoreRowModel(),s.getSelectedRowModel=memo(()=>[s.getState().rowSelection,s.getCoreRowModel()],(j,$)=>Object.keys(j).length?selectRowsFn(s,$):{rows:[],flatRows:[],rowsById:{}},getMemoOptions(s.options,"debugTable")),s.getFilteredSelectedRowModel=memo(()=>[s.getState().rowSelection,s.getFilteredRowModel()],(j,$)=>Object.keys(j).length?selectRowsFn(s,$):{rows:[],flatRows:[],rowsById:{}},getMemoOptions(s.options,"debugTable")),s.getGroupedSelectedRowModel=memo(()=>[s.getState().rowSelection,s.getSortedRowModel()],(j,$)=>Object.keys(j).length?selectRowsFn(s,$):{rows:[],flatRows:[],rowsById:{}},getMemoOptions(s.options,"debugTable")),s.getIsAllRowsSelected=()=>{const j=s.getFilteredRowModel().flatRows,{rowSelection:$}=s.getState();let _e=!!(j.length&&Object.keys($).length);return _e&&j.some(et=>et.getCanSelect()&&!$[et.id])&&(_e=!1),_e},s.getIsAllPageRowsSelected=()=>{const j=s.getPaginationRowModel().flatRows.filter(et=>et.getCanSelect()),{rowSelection:$}=s.getState();let _e=!!j.length;return _e&&j.some(et=>!$[et.id])&&(_e=!1),_e},s.getIsSomeRowsSelected=()=>{var j;const $=Object.keys((j=s.getState().rowSelection)!=null?j:{}).length;return $>0&&${const j=s.getPaginationRowModel().flatRows;return s.getIsAllPageRowsSelected()?!1:j.filter($=>$.getCanSelect()).some($=>$.getIsSelected()||$.getIsSomeSelected())},s.getToggleAllRowsSelectedHandler=()=>j=>{s.toggleAllRowsSelected(j.target.checked)},s.getToggleAllPageRowsSelectedHandler=()=>j=>{s.toggleAllPageRowsSelected(j.target.checked)}},createRow:(s,j)=>{s.toggleSelected=($,_e)=>{const et=s.getIsSelected();j.setRowSelection(tt=>{var nt;if($=typeof $<"u"?$:!et,s.getCanSelect()&&et===$)return tt;const rt={...tt};return mutateRowIsSelected(rt,s.id,$,(nt=_e==null?void 0:_e.selectChildren)!=null?nt:!0,j),rt})},s.getIsSelected=()=>{const{rowSelection:$}=j.getState();return isRowSelected(s,$)},s.getIsSomeSelected=()=>{const{rowSelection:$}=j.getState();return isSubRowSelected(s,$)==="some"},s.getIsAllSubRowsSelected=()=>{const{rowSelection:$}=j.getState();return isSubRowSelected(s,$)==="all"},s.getCanSelect=()=>{var $;return typeof j.options.enableRowSelection=="function"?j.options.enableRowSelection(s):($=j.options.enableRowSelection)!=null?$:!0},s.getCanSelectSubRows=()=>{var $;return typeof j.options.enableSubRowSelection=="function"?j.options.enableSubRowSelection(s):($=j.options.enableSubRowSelection)!=null?$:!0},s.getCanMultiSelect=()=>{var $;return typeof j.options.enableMultiRowSelection=="function"?j.options.enableMultiRowSelection(s):($=j.options.enableMultiRowSelection)!=null?$:!0},s.getToggleSelectedHandler=()=>{const $=s.getCanSelect();return _e=>{var et;$&&s.toggleSelected((et=_e.target)==null?void 0:et.checked)}}}},mutateRowIsSelected=(s,j,$,_e,et)=>{var tt;const nt=et.getRow(j,!0);$?(nt.getCanMultiSelect()||Object.keys(s).forEach(rt=>delete s[rt]),nt.getCanSelect()&&(s[j]=!0)):delete s[j],_e&&(tt=nt.subRows)!=null&&tt.length&&nt.getCanSelectSubRows()&&nt.subRows.forEach(rt=>mutateRowIsSelected(s,rt.id,$,_e,et))};function selectRowsFn(s,j){const $=s.getState().rowSelection,_e=[],et={},tt=function(nt,rt){return nt.map(ot=>{var it;const st=isRowSelected(ot,$);if(st&&(_e.push(ot),et[ot.id]=ot),(it=ot.subRows)!=null&&it.length&&(ot={...ot,subRows:tt(ot.subRows)}),st)return ot}).filter(Boolean)};return{rows:tt(j.rows),flatRows:_e,rowsById:et}}function isRowSelected(s,j){var $;return($=j[s.id])!=null?$:!1}function isSubRowSelected(s,j,$){var _e;if(!((_e=s.subRows)!=null&&_e.length))return!1;let et=!0,tt=!1;return s.subRows.forEach(nt=>{if(!(tt&&!et)&&(nt.getCanSelect()&&(isRowSelected(nt,j)?tt=!0:et=!1),nt.subRows&&nt.subRows.length)){const rt=isSubRowSelected(nt,j);rt==="all"?tt=!0:(rt==="some"&&(tt=!0),et=!1)}}),et?"all":tt?"some":!1}const reSplitAlphaNumeric=/([0-9]+)/gm,alphanumeric=(s,j,$)=>compareAlphanumeric(toString(s.getValue($)).toLowerCase(),toString(j.getValue($)).toLowerCase()),alphanumericCaseSensitive=(s,j,$)=>compareAlphanumeric(toString(s.getValue($)),toString(j.getValue($))),text=(s,j,$)=>compareBasic(toString(s.getValue($)).toLowerCase(),toString(j.getValue($)).toLowerCase()),textCaseSensitive=(s,j,$)=>compareBasic(toString(s.getValue($)),toString(j.getValue($))),datetime=(s,j,$)=>{const _e=s.getValue($),et=j.getValue($);return _e>et?1:_ecompareBasic(s.getValue($),j.getValue($));function compareBasic(s,j){return s===j?0:s>j?1:-1}function toString(s){return typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?"":String(s):typeof s=="string"?s:""}function compareAlphanumeric(s,j){const $=s.split(reSplitAlphaNumeric).filter(Boolean),_e=j.split(reSplitAlphaNumeric).filter(Boolean);for(;$.length&&_e.length;){const et=$.shift(),tt=_e.shift(),nt=parseInt(et,10),rt=parseInt(tt,10),ot=[nt,rt].sort();if(isNaN(ot[0])){if(et>tt)return 1;if(tt>et)return-1;continue}if(isNaN(ot[1]))return isNaN(nt)?-1:1;if(nt>rt)return 1;if(rt>nt)return-1}return $.length-_e.length}const sortingFns={alphanumeric,alphanumericCaseSensitive,text,textCaseSensitive,datetime,basic},RowSorting={getInitialState:s=>({sorting:[],...s}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:s=>({onSortingChange:makeStateUpdater("sorting",s),isMultiSortEvent:j=>j.shiftKey}),createColumn:(s,j)=>{s.getAutoSortingFn=()=>{const $=j.getFilteredRowModel().flatRows.slice(10);let _e=!1;for(const et of $){const tt=et==null?void 0:et.getValue(s.id);if(Object.prototype.toString.call(tt)==="[object Date]")return sortingFns.datetime;if(typeof tt=="string"&&(_e=!0,tt.split(reSplitAlphaNumeric).length>1))return sortingFns.alphanumeric}return _e?sortingFns.text:sortingFns.basic},s.getAutoSortDir=()=>{const $=j.getFilteredRowModel().flatRows[0];return typeof($==null?void 0:$.getValue(s.id))=="string"?"asc":"desc"},s.getSortingFn=()=>{var $,_e;if(!s)throw new Error;return isFunction(s.columnDef.sortingFn)?s.columnDef.sortingFn:s.columnDef.sortingFn==="auto"?s.getAutoSortingFn():($=(_e=j.options.sortingFns)==null?void 0:_e[s.columnDef.sortingFn])!=null?$:sortingFns[s.columnDef.sortingFn]},s.toggleSorting=($,_e)=>{const et=s.getNextSortingOrder(),tt=typeof $<"u"&&$!==null;j.setSorting(nt=>{const rt=nt==null?void 0:nt.find(lt=>lt.id===s.id),ot=nt==null?void 0:nt.findIndex(lt=>lt.id===s.id);let it=[],st,at=tt?$:et==="desc";if(nt!=null&&nt.length&&s.getCanMultiSort()&&_e?rt?st="toggle":st="add":nt!=null&&nt.length&&ot!==nt.length-1?st="replace":rt?st="toggle":st="replace",st==="toggle"&&(tt||et||(st="remove")),st==="add"){var ct;it=[...nt,{id:s.id,desc:at}],it.splice(0,it.length-((ct=j.options.maxMultiSortColCount)!=null?ct:Number.MAX_SAFE_INTEGER))}else st==="toggle"?it=nt.map(lt=>lt.id===s.id?{...lt,desc:at}:lt):st==="remove"?it=nt.filter(lt=>lt.id!==s.id):it=[{id:s.id,desc:at}];return it})},s.getFirstSortDir=()=>{var $,_e;return(($=(_e=s.columnDef.sortDescFirst)!=null?_e:j.options.sortDescFirst)!=null?$:s.getAutoSortDir()==="desc")?"desc":"asc"},s.getNextSortingOrder=$=>{var _e,et;const tt=s.getFirstSortDir(),nt=s.getIsSorted();return nt?nt!==tt&&((_e=j.options.enableSortingRemoval)==null||_e)&&(!($&&(et=j.options.enableMultiRemove)!=null)||et)?!1:nt==="desc"?"asc":"desc":tt},s.getCanSort=()=>{var $,_e;return(($=s.columnDef.enableSorting)!=null?$:!0)&&((_e=j.options.enableSorting)!=null?_e:!0)&&!!s.accessorFn},s.getCanMultiSort=()=>{var $,_e;return($=(_e=s.columnDef.enableMultiSort)!=null?_e:j.options.enableMultiSort)!=null?$:!!s.accessorFn},s.getIsSorted=()=>{var $;const _e=($=j.getState().sorting)==null?void 0:$.find(et=>et.id===s.id);return _e?_e.desc?"desc":"asc":!1},s.getSortIndex=()=>{var $,_e;return($=(_e=j.getState().sorting)==null?void 0:_e.findIndex(et=>et.id===s.id))!=null?$:-1},s.clearSorting=()=>{j.setSorting($=>$!=null&&$.length?$.filter(_e=>_e.id!==s.id):[])},s.getToggleSortingHandler=()=>{const $=s.getCanSort();return _e=>{$&&(_e.persist==null||_e.persist(),s.toggleSorting==null||s.toggleSorting(void 0,s.getCanMultiSort()?j.options.isMultiSortEvent==null?void 0:j.options.isMultiSortEvent(_e):!1))}}},createTable:s=>{s.setSorting=j=>s.options.onSortingChange==null?void 0:s.options.onSortingChange(j),s.resetSorting=j=>{var $,_e;s.setSorting(j?[]:($=(_e=s.initialState)==null?void 0:_e.sorting)!=null?$:[])},s.getPreSortedRowModel=()=>s.getGroupedRowModel(),s.getSortedRowModel=()=>(!s._getSortedRowModel&&s.options.getSortedRowModel&&(s._getSortedRowModel=s.options.getSortedRowModel(s)),s.options.manualSorting||!s._getSortedRowModel?s.getPreSortedRowModel():s._getSortedRowModel())}},builtInFeatures=[Headers$1,ColumnVisibility,ColumnOrdering,ColumnPinning,ColumnFaceting,ColumnFiltering,GlobalFaceting,GlobalFiltering,RowSorting,ColumnGrouping,RowExpanding,RowPagination,RowPinning,RowSelection,ColumnSizing];function createTable(s){var j,$;const _e=[...builtInFeatures,...(j=s._features)!=null?j:[]];let et={_features:_e};const tt=et._features.reduce((ct,lt)=>Object.assign(ct,lt.getDefaultOptions==null?void 0:lt.getDefaultOptions(et)),{}),nt=ct=>et.options.mergeOptions?et.options.mergeOptions(tt,ct):{...tt,...ct};let ot={...{},...($=s.initialState)!=null?$:{}};et._features.forEach(ct=>{var lt;ot=(lt=ct.getInitialState==null?void 0:ct.getInitialState(ot))!=null?lt:ot});const it=[];let st=!1;const at={_features:_e,options:{...tt,...s},initialState:ot,_queue:ct=>{it.push(ct),st||(st=!0,Promise.resolve().then(()=>{for(;it.length;)it.shift()();st=!1}).catch(lt=>setTimeout(()=>{throw lt})))},reset:()=>{et.setState(et.initialState)},setOptions:ct=>{const lt=functionalUpdate(ct,et.options);et.options=nt(lt)},getState:()=>et.options.state,setState:ct=>{et.options.onStateChange==null||et.options.onStateChange(ct)},_getRowId:(ct,lt,dt)=>{var pt;return(pt=et.options.getRowId==null?void 0:et.options.getRowId(ct,lt,dt))!=null?pt:`${dt?[dt.id,lt].join("."):lt}`},getCoreRowModel:()=>(et._getCoreRowModel||(et._getCoreRowModel=et.options.getCoreRowModel(et)),et._getCoreRowModel()),getRowModel:()=>et.getPaginationRowModel(),getRow:(ct,lt)=>{let dt=(lt?et.getPrePaginationRowModel():et.getRowModel()).rowsById[ct];if(!dt&&(dt=et.getCoreRowModel().rowsById[ct],!dt))throw new Error;return dt},_getDefaultColumnDef:memo(()=>[et.options.defaultColumn],ct=>{var lt;return ct=(lt=ct)!=null?lt:{},{header:dt=>{const pt=dt.header.column.columnDef;return pt.accessorKey?pt.accessorKey:pt.accessorFn?pt.id:null},cell:dt=>{var pt,ht;return(pt=(ht=dt.renderValue())==null||ht.toString==null?void 0:ht.toString())!=null?pt:null},...et._features.reduce((dt,pt)=>Object.assign(dt,pt.getDefaultColumnDef==null?void 0:pt.getDefaultColumnDef()),{}),...ct}},getMemoOptions(s,"debugColumns")),_getColumnDefs:()=>et.options.columns,getAllColumns:memo(()=>[et._getColumnDefs()],ct=>{const lt=function(dt,pt,ht){return ht===void 0&&(ht=0),dt.map(yt=>{const gt=createColumn(et,yt,ht,pt),ft=yt;return gt.columns=ft.columns?lt(ft.columns,gt,ht+1):[],gt})};return lt(ct)},getMemoOptions(s,"debugColumns")),getAllFlatColumns:memo(()=>[et.getAllColumns()],ct=>ct.flatMap(lt=>lt.getFlatColumns()),getMemoOptions(s,"debugColumns")),_getAllFlatColumnsById:memo(()=>[et.getAllFlatColumns()],ct=>ct.reduce((lt,dt)=>(lt[dt.id]=dt,lt),{}),getMemoOptions(s,"debugColumns")),getAllLeafColumns:memo(()=>[et.getAllColumns(),et._getOrderColumnsFn()],(ct,lt)=>{let dt=ct.flatMap(pt=>pt.getLeafColumns());return lt(dt)},getMemoOptions(s,"debugColumns")),getColumn:ct=>et._getAllFlatColumnsById()[ct]};Object.assign(et,at);for(let ct=0;ctmemo(()=>[s.options.data],j=>{const $={rows:[],flatRows:[],rowsById:{}},_e=function(et,tt,nt){tt===void 0&&(tt=0);const rt=[];for(let it=0;its._autoResetPageIndex()))}function getExpandedRowModel(){return s=>memo(()=>[s.getState().expanded,s.getPreExpandedRowModel(),s.options.paginateExpandedRows],(j,$,_e)=>!$.rows.length||j!==!0&&!Object.keys(j??{}).length||!_e?$:expandRows($),getMemoOptions(s.options,"debugTable"))}function expandRows(s){const j=[],$=_e=>{var et;j.push(_e),(et=_e.subRows)!=null&&et.length&&_e.getIsExpanded()&&_e.subRows.forEach($)};return s.rows.forEach($),{rows:j,flatRows:s.flatRows,rowsById:s.rowsById}}function filterRows(s,j,$){return $.options.filterFromLeafRows?filterRowModelFromLeafs(s,j,$):filterRowModelFromRoot(s,j,$)}function filterRowModelFromLeafs(s,j,$){var _e;const et=[],tt={},nt=(_e=$.options.maxLeafRowFilterDepth)!=null?_e:100,rt=function(ot,it){it===void 0&&(it=0);const st=[];for(let ct=0;ctmemo(()=>[s.getPreFilteredRowModel(),s.getState().columnFilters,s.getState().globalFilter],(j,$,_e)=>{if(!j.rows.length||!($!=null&&$.length)&&!_e){for(let ct=0;ct{var lt;const dt=s.getColumn(ct.id);if(!dt)return;const pt=dt.getFilterFn();pt&&et.push({id:ct.id,filterFn:pt,resolvedValue:(lt=pt.resolveFilterValue==null?void 0:pt.resolveFilterValue(ct.value))!=null?lt:ct.value})});const nt=($??[]).map(ct=>ct.id),rt=s.getGlobalFilterFn(),ot=s.getAllLeafColumns().filter(ct=>ct.getCanGlobalFilter());_e&&rt&&ot.length&&(nt.push("__global__"),ot.forEach(ct=>{var lt;tt.push({id:ct.id,filterFn:rt,resolvedValue:(lt=rt.resolveFilterValue==null?void 0:rt.resolveFilterValue(_e))!=null?lt:_e})}));let it,st;for(let ct=0;ct{lt.columnFiltersMeta[pt]=ht})}if(tt.length){for(let dt=0;dt{lt.columnFiltersMeta[pt]=ht})){lt.columnFilters.__global__=!0;break}}lt.columnFilters.__global__!==!0&&(lt.columnFilters.__global__=!1)}}const at=ct=>{for(let lt=0;lts._autoResetPageIndex()))}function getPaginationRowModel(s){return j=>memo(()=>[j.getState().pagination,j.getPrePaginationRowModel(),j.options.paginateExpandedRows?void 0:j.getState().expanded],($,_e)=>{if(!_e.rows.length)return _e;const{pageSize:et,pageIndex:tt}=$;let{rows:nt,flatRows:rt,rowsById:ot}=_e;const it=et*tt,st=it+et;nt=nt.slice(it,st);let at;j.options.paginateExpandedRows?at={rows:nt,flatRows:rt,rowsById:ot}:at=expandRows({rows:nt,flatRows:rt,rowsById:ot}),at.flatRows=[];const ct=lt=>{at.flatRows.push(lt),lt.subRows.length&<.subRows.forEach(ct)};return at.rows.forEach(ct),at},getMemoOptions(j.options,"debugTable"))}function getSortedRowModel(){return s=>memo(()=>[s.getState().sorting,s.getPreSortedRowModel()],(j,$)=>{if(!$.rows.length||!(j!=null&&j.length))return $;const _e=s.getState().sorting,et=[],tt=_e.filter(ot=>{var it;return(it=s.getColumn(ot.id))==null?void 0:it.getCanSort()}),nt={};tt.forEach(ot=>{const it=s.getColumn(ot.id);it&&(nt[ot.id]={sortUndefined:it.columnDef.sortUndefined,invertSorting:it.columnDef.invertSorting,sortingFn:it.getSortingFn()})});const rt=ot=>{const it=ot.map(st=>({...st}));return it.sort((st,at)=>{for(let lt=0;lt{var at;et.push(st),(at=st.subRows)!=null&&at.length&&(st.subRows=rt(st.subRows))}),it};return{rows:rt($.rows),flatRows:et,rowsById:$.rowsById}},getMemoOptions(s.options,"debugTable","getSortedRowModel",()=>s._autoResetPageIndex()))}/** + color: hsl(${Math.max(0,Math.min(120-120*ct,120))}deg 100% 31%);`,$==null?void 0:$.key)}return et}}function getMemoOptions(s,j,$,_e){return{debug:()=>{var et;return(et=s==null?void 0:s.debugAll)!=null?et:s[j]},key:!1,onChange:_e}}function createCell(s,j,$,_e){const et=()=>{var nt;return(nt=tt.getValue())!=null?nt:s.options.renderFallbackValue},tt={id:`${j.id}_${$.id}`,row:j,column:$,getValue:()=>j.getValue(_e),renderValue:et,getContext:memo(()=>[s,$,j,tt],(nt,rt,ot,it)=>({table:nt,column:rt,row:ot,cell:it,getValue:it.getValue,renderValue:it.renderValue}),getMemoOptions(s.options,"debugCells"))};return s._features.forEach(nt=>{nt.createCell==null||nt.createCell(tt,$,j,s)},{}),tt}function createColumn(s,j,$,_e){var et,tt;const rt={...s._getDefaultColumnDef(),...j},ot=rt.accessorKey;let it=(et=(tt=rt.id)!=null?tt:ot?ot.replace(".","_"):void 0)!=null?et:typeof rt.header=="string"?rt.header:void 0,st;if(rt.accessorFn?st=rt.accessorFn:ot&&(ot.includes(".")?st=ct=>{let lt=ct;for(const ft of ot.split(".")){var dt;lt=(dt=lt)==null?void 0:dt[ft]}return lt}:st=ct=>ct[rt.accessorKey]),!it)throw new Error;let at={id:`${String(it)}`,accessorFn:st,parent:_e,depth:$,columnDef:rt,columns:[],getFlatColumns:memo(()=>[!0],()=>{var ct;return[at,...(ct=at.columns)==null?void 0:ct.flatMap(lt=>lt.getFlatColumns())]},getMemoOptions(s.options,"debugColumns")),getLeafColumns:memo(()=>[s._getOrderColumnsFn()],ct=>{var lt;if((lt=at.columns)!=null&<.length){let dt=at.columns.flatMap(ft=>ft.getLeafColumns());return ct(dt)}return[at]},getMemoOptions(s.options,"debugColumns"))};for(const ct of s._features)ct.createColumn==null||ct.createColumn(at,s);return at}const debug="debugHeaders";function createHeader(s,j,$){var _e;let tt={id:(_e=$.id)!=null?_e:j.id,column:j,index:$.index,isPlaceholder:!!$.isPlaceholder,placeholderId:$.placeholderId,depth:$.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const nt=[],rt=ot=>{ot.subHeaders&&ot.subHeaders.length&&ot.subHeaders.map(rt),nt.push(ot)};return rt(tt),nt},getContext:()=>({table:s,header:tt,column:j})};return s._features.forEach(nt=>{nt.createHeader==null||nt.createHeader(tt,s)}),tt}const Headers$1={createTable:s=>{s.getHeaderGroups=memo(()=>[s.getAllColumns(),s.getVisibleLeafColumns(),s.getState().columnPinning.left,s.getState().columnPinning.right],(j,$,_e,et)=>{var tt,nt;const rt=(tt=_e==null?void 0:_e.map(at=>$.find(ct=>ct.id===at)).filter(Boolean))!=null?tt:[],ot=(nt=et==null?void 0:et.map(at=>$.find(ct=>ct.id===at)).filter(Boolean))!=null?nt:[],it=$.filter(at=>!(_e!=null&&_e.includes(at.id))&&!(et!=null&&et.includes(at.id)));return buildHeaderGroups(j,[...rt,...it,...ot],s)},getMemoOptions(s.options,debug)),s.getCenterHeaderGroups=memo(()=>[s.getAllColumns(),s.getVisibleLeafColumns(),s.getState().columnPinning.left,s.getState().columnPinning.right],(j,$,_e,et)=>($=$.filter(tt=>!(_e!=null&&_e.includes(tt.id))&&!(et!=null&&et.includes(tt.id))),buildHeaderGroups(j,$,s,"center")),getMemoOptions(s.options,debug)),s.getLeftHeaderGroups=memo(()=>[s.getAllColumns(),s.getVisibleLeafColumns(),s.getState().columnPinning.left],(j,$,_e)=>{var et;const tt=(et=_e==null?void 0:_e.map(nt=>$.find(rt=>rt.id===nt)).filter(Boolean))!=null?et:[];return buildHeaderGroups(j,tt,s,"left")},getMemoOptions(s.options,debug)),s.getRightHeaderGroups=memo(()=>[s.getAllColumns(),s.getVisibleLeafColumns(),s.getState().columnPinning.right],(j,$,_e)=>{var et;const tt=(et=_e==null?void 0:_e.map(nt=>$.find(rt=>rt.id===nt)).filter(Boolean))!=null?et:[];return buildHeaderGroups(j,tt,s,"right")},getMemoOptions(s.options,debug)),s.getFooterGroups=memo(()=>[s.getHeaderGroups()],j=>[...j].reverse(),getMemoOptions(s.options,debug)),s.getLeftFooterGroups=memo(()=>[s.getLeftHeaderGroups()],j=>[...j].reverse(),getMemoOptions(s.options,debug)),s.getCenterFooterGroups=memo(()=>[s.getCenterHeaderGroups()],j=>[...j].reverse(),getMemoOptions(s.options,debug)),s.getRightFooterGroups=memo(()=>[s.getRightHeaderGroups()],j=>[...j].reverse(),getMemoOptions(s.options,debug)),s.getFlatHeaders=memo(()=>[s.getHeaderGroups()],j=>j.map($=>$.headers).flat(),getMemoOptions(s.options,debug)),s.getLeftFlatHeaders=memo(()=>[s.getLeftHeaderGroups()],j=>j.map($=>$.headers).flat(),getMemoOptions(s.options,debug)),s.getCenterFlatHeaders=memo(()=>[s.getCenterHeaderGroups()],j=>j.map($=>$.headers).flat(),getMemoOptions(s.options,debug)),s.getRightFlatHeaders=memo(()=>[s.getRightHeaderGroups()],j=>j.map($=>$.headers).flat(),getMemoOptions(s.options,debug)),s.getCenterLeafHeaders=memo(()=>[s.getCenterFlatHeaders()],j=>j.filter($=>{var _e;return!((_e=$.subHeaders)!=null&&_e.length)}),getMemoOptions(s.options,debug)),s.getLeftLeafHeaders=memo(()=>[s.getLeftFlatHeaders()],j=>j.filter($=>{var _e;return!((_e=$.subHeaders)!=null&&_e.length)}),getMemoOptions(s.options,debug)),s.getRightLeafHeaders=memo(()=>[s.getRightFlatHeaders()],j=>j.filter($=>{var _e;return!((_e=$.subHeaders)!=null&&_e.length)}),getMemoOptions(s.options,debug)),s.getLeafHeaders=memo(()=>[s.getLeftHeaderGroups(),s.getCenterHeaderGroups(),s.getRightHeaderGroups()],(j,$,_e)=>{var et,tt,nt,rt,ot,it;return[...(et=(tt=j[0])==null?void 0:tt.headers)!=null?et:[],...(nt=(rt=$[0])==null?void 0:rt.headers)!=null?nt:[],...(ot=(it=_e[0])==null?void 0:it.headers)!=null?ot:[]].map(st=>st.getLeafHeaders()).flat()},getMemoOptions(s.options,debug))}};function buildHeaderGroups(s,j,$,_e){var et,tt;let nt=0;const rt=function(ct,lt){lt===void 0&&(lt=1),nt=Math.max(nt,lt),ct.filter(dt=>dt.getIsVisible()).forEach(dt=>{var ft;(ft=dt.columns)!=null&&ft.length&&rt(dt.columns,lt+1)},0)};rt(s);let ot=[];const it=(ct,lt)=>{const dt={depth:lt,id:[_e,`${lt}`].filter(Boolean).join("_"),headers:[]},ft=[];ct.forEach(gt=>{const yt=[...ft].reverse()[0],mt=gt.column.depth===dt.depth;let pt,xt=!1;if(mt&>.column.parent?pt=gt.column.parent:(pt=gt.column,xt=!0),yt&&(yt==null?void 0:yt.column)===pt)yt.subHeaders.push(gt);else{const Ct=createHeader($,pt,{id:[_e,lt,pt.id,gt==null?void 0:gt.id].filter(Boolean).join("_"),isPlaceholder:xt,placeholderId:xt?`${ft.filter(Dt=>Dt.column===pt).length}`:void 0,depth:lt,index:ft.length});Ct.subHeaders.push(gt),ft.push(Ct)}dt.headers.push(gt),gt.headerGroup=dt}),ot.push(dt),lt>0&&it(ft,lt-1)},st=j.map((ct,lt)=>createHeader($,ct,{depth:nt,index:lt}));it(st,nt-1),ot.reverse();const at=ct=>ct.filter(dt=>dt.column.getIsVisible()).map(dt=>{let ft=0,gt=0,yt=[0];dt.subHeaders&&dt.subHeaders.length?(yt=[],at(dt.subHeaders).forEach(pt=>{let{colSpan:xt,rowSpan:Ct}=pt;ft+=xt,yt.push(Ct)})):ft=1;const mt=Math.min(...yt);return gt=gt+mt,dt.colSpan=ft,dt.rowSpan=gt,{colSpan:ft,rowSpan:gt}});return at((et=(tt=ot[0])==null?void 0:tt.headers)!=null?et:[]),ot}const createRow=(s,j,$,_e,et,tt,nt)=>{let rt={id:j,index:_e,original:$,depth:et,parentId:nt,_valuesCache:{},_uniqueValuesCache:{},getValue:ot=>{if(rt._valuesCache.hasOwnProperty(ot))return rt._valuesCache[ot];const it=s.getColumn(ot);if(it!=null&&it.accessorFn)return rt._valuesCache[ot]=it.accessorFn(rt.original,_e),rt._valuesCache[ot]},getUniqueValues:ot=>{if(rt._uniqueValuesCache.hasOwnProperty(ot))return rt._uniqueValuesCache[ot];const it=s.getColumn(ot);if(it!=null&&it.accessorFn)return it.columnDef.getUniqueValues?(rt._uniqueValuesCache[ot]=it.columnDef.getUniqueValues(rt.original,_e),rt._uniqueValuesCache[ot]):(rt._uniqueValuesCache[ot]=[rt.getValue(ot)],rt._uniqueValuesCache[ot])},renderValue:ot=>{var it;return(it=rt.getValue(ot))!=null?it:s.options.renderFallbackValue},subRows:[],getLeafRows:()=>flattenBy(rt.subRows,ot=>ot.subRows),getParentRow:()=>rt.parentId?s.getRow(rt.parentId,!0):void 0,getParentRows:()=>{let ot=[],it=rt;for(;;){const st=it.getParentRow();if(!st)break;ot.push(st),it=st}return ot.reverse()},getAllCells:memo(()=>[s.getAllLeafColumns()],ot=>ot.map(it=>createCell(s,rt,it,it.id)),getMemoOptions(s.options,"debugRows")),_getAllCellsByColumnId:memo(()=>[rt.getAllCells()],ot=>ot.reduce((it,st)=>(it[st.column.id]=st,it),{}),getMemoOptions(s.options,"debugRows"))};for(let ot=0;ot{s._getFacetedRowModel=j.options.getFacetedRowModel&&j.options.getFacetedRowModel(j,s.id),s.getFacetedRowModel=()=>s._getFacetedRowModel?s._getFacetedRowModel():j.getPreFilteredRowModel(),s._getFacetedUniqueValues=j.options.getFacetedUniqueValues&&j.options.getFacetedUniqueValues(j,s.id),s.getFacetedUniqueValues=()=>s._getFacetedUniqueValues?s._getFacetedUniqueValues():new Map,s._getFacetedMinMaxValues=j.options.getFacetedMinMaxValues&&j.options.getFacetedMinMaxValues(j,s.id),s.getFacetedMinMaxValues=()=>{if(s._getFacetedMinMaxValues)return s._getFacetedMinMaxValues()}}},includesString=(s,j,$)=>{var _e;const et=$.toLowerCase();return!!(!((_e=s.getValue(j))==null||(_e=_e.toString())==null||(_e=_e.toLowerCase())==null)&&_e.includes(et))};includesString.autoRemove=s=>testFalsey(s);const includesStringSensitive=(s,j,$)=>{var _e;return!!(!((_e=s.getValue(j))==null||(_e=_e.toString())==null)&&_e.includes($))};includesStringSensitive.autoRemove=s=>testFalsey(s);const equalsString=(s,j,$)=>{var _e;return((_e=s.getValue(j))==null||(_e=_e.toString())==null?void 0:_e.toLowerCase())===($==null?void 0:$.toLowerCase())};equalsString.autoRemove=s=>testFalsey(s);const arrIncludes=(s,j,$)=>{var _e;return(_e=s.getValue(j))==null?void 0:_e.includes($)};arrIncludes.autoRemove=s=>testFalsey(s)||!(s!=null&&s.length);const arrIncludesAll=(s,j,$)=>!$.some(_e=>{var et;return!((et=s.getValue(j))!=null&&et.includes(_e))});arrIncludesAll.autoRemove=s=>testFalsey(s)||!(s!=null&&s.length);const arrIncludesSome=(s,j,$)=>$.some(_e=>{var et;return(et=s.getValue(j))==null?void 0:et.includes(_e)});arrIncludesSome.autoRemove=s=>testFalsey(s)||!(s!=null&&s.length);const equals=(s,j,$)=>s.getValue(j)===$;equals.autoRemove=s=>testFalsey(s);const weakEquals=(s,j,$)=>s.getValue(j)==$;weakEquals.autoRemove=s=>testFalsey(s);const inNumberRange=(s,j,$)=>{let[_e,et]=$;const tt=s.getValue(j);return tt>=_e&&tt<=et};inNumberRange.resolveFilterValue=s=>{let[j,$]=s,_e=typeof j!="number"?parseFloat(j):j,et=typeof $!="number"?parseFloat($):$,tt=j===null||Number.isNaN(_e)?-1/0:_e,nt=$===null||Number.isNaN(et)?1/0:et;if(tt>nt){const rt=tt;tt=nt,nt=rt}return[tt,nt]};inNumberRange.autoRemove=s=>testFalsey(s)||testFalsey(s[0])&&testFalsey(s[1]);const filterFns={includesString,includesStringSensitive,equalsString,arrIncludes,arrIncludesAll,arrIncludesSome,equals,weakEquals,inNumberRange};function testFalsey(s){return s==null||s===""}const ColumnFiltering={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:s=>({columnFilters:[],...s}),getDefaultOptions:s=>({onColumnFiltersChange:makeStateUpdater("columnFilters",s),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(s,j)=>{s.getAutoFilterFn=()=>{const $=j.getCoreRowModel().flatRows[0],_e=$==null?void 0:$.getValue(s.id);return typeof _e=="string"?filterFns.includesString:typeof _e=="number"?filterFns.inNumberRange:typeof _e=="boolean"||_e!==null&&typeof _e=="object"?filterFns.equals:Array.isArray(_e)?filterFns.arrIncludes:filterFns.weakEquals},s.getFilterFn=()=>{var $,_e;return isFunction(s.columnDef.filterFn)?s.columnDef.filterFn:s.columnDef.filterFn==="auto"?s.getAutoFilterFn():($=(_e=j.options.filterFns)==null?void 0:_e[s.columnDef.filterFn])!=null?$:filterFns[s.columnDef.filterFn]},s.getCanFilter=()=>{var $,_e,et;return(($=s.columnDef.enableColumnFilter)!=null?$:!0)&&((_e=j.options.enableColumnFilters)!=null?_e:!0)&&((et=j.options.enableFilters)!=null?et:!0)&&!!s.accessorFn},s.getIsFiltered=()=>s.getFilterIndex()>-1,s.getFilterValue=()=>{var $;return($=j.getState().columnFilters)==null||($=$.find(_e=>_e.id===s.id))==null?void 0:$.value},s.getFilterIndex=()=>{var $,_e;return($=(_e=j.getState().columnFilters)==null?void 0:_e.findIndex(et=>et.id===s.id))!=null?$:-1},s.setFilterValue=$=>{j.setColumnFilters(_e=>{const et=s.getFilterFn(),tt=_e==null?void 0:_e.find(st=>st.id===s.id),nt=functionalUpdate($,tt?tt.value:void 0);if(shouldAutoRemoveFilter(et,nt,s)){var rt;return(rt=_e==null?void 0:_e.filter(st=>st.id!==s.id))!=null?rt:[]}const ot={id:s.id,value:nt};if(tt){var it;return(it=_e==null?void 0:_e.map(st=>st.id===s.id?ot:st))!=null?it:[]}return _e!=null&&_e.length?[..._e,ot]:[ot]})}},createRow:(s,j)=>{s.columnFilters={},s.columnFiltersMeta={}},createTable:s=>{s.setColumnFilters=j=>{const $=s.getAllLeafColumns(),_e=et=>{var tt;return(tt=functionalUpdate(j,et))==null?void 0:tt.filter(nt=>{const rt=$.find(ot=>ot.id===nt.id);if(rt){const ot=rt.getFilterFn();if(shouldAutoRemoveFilter(ot,nt.value,rt))return!1}return!0})};s.options.onColumnFiltersChange==null||s.options.onColumnFiltersChange(_e)},s.resetColumnFilters=j=>{var $,_e;s.setColumnFilters(j?[]:($=(_e=s.initialState)==null?void 0:_e.columnFilters)!=null?$:[])},s.getPreFilteredRowModel=()=>s.getCoreRowModel(),s.getFilteredRowModel=()=>(!s._getFilteredRowModel&&s.options.getFilteredRowModel&&(s._getFilteredRowModel=s.options.getFilteredRowModel(s)),s.options.manualFiltering||!s._getFilteredRowModel?s.getPreFilteredRowModel():s._getFilteredRowModel())}};function shouldAutoRemoveFilter(s,j,$){return(s&&s.autoRemove?s.autoRemove(j,$):!1)||typeof j>"u"||typeof j=="string"&&!j}const sum=(s,j,$)=>$.reduce((_e,et)=>{const tt=et.getValue(s);return _e+(typeof tt=="number"?tt:0)},0),min=(s,j,$)=>{let _e;return $.forEach(et=>{const tt=et.getValue(s);tt!=null&&(_e>tt||_e===void 0&&tt>=tt)&&(_e=tt)}),_e},max=(s,j,$)=>{let _e;return $.forEach(et=>{const tt=et.getValue(s);tt!=null&&(_e=tt)&&(_e=tt)}),_e},extent=(s,j,$)=>{let _e,et;return $.forEach(tt=>{const nt=tt.getValue(s);nt!=null&&(_e===void 0?nt>=nt&&(_e=et=nt):(_e>nt&&(_e=nt),et{let $=0,_e=0;if(j.forEach(et=>{let tt=et.getValue(s);tt!=null&&(tt=+tt)>=tt&&(++$,_e+=tt)}),$)return _e/$},median=(s,j)=>{if(!j.length)return;const $=j.map(tt=>tt.getValue(s));if(!isNumberArray($))return;if($.length===1)return $[0];const _e=Math.floor($.length/2),et=$.sort((tt,nt)=>tt-nt);return $.length%2!==0?et[_e]:(et[_e-1]+et[_e])/2},unique=(s,j)=>Array.from(new Set(j.map($=>$.getValue(s))).values()),uniqueCount=(s,j)=>new Set(j.map($=>$.getValue(s))).size,count=(s,j)=>j.length,aggregationFns={sum,min,max,extent,mean,median,unique,uniqueCount,count},ColumnGrouping={getDefaultColumnDef:()=>({aggregatedCell:s=>{var j,$;return(j=($=s.getValue())==null||$.toString==null?void 0:$.toString())!=null?j:null},aggregationFn:"auto"}),getInitialState:s=>({grouping:[],...s}),getDefaultOptions:s=>({onGroupingChange:makeStateUpdater("grouping",s),groupedColumnMode:"reorder"}),createColumn:(s,j)=>{s.toggleGrouping=()=>{j.setGrouping($=>$!=null&&$.includes(s.id)?$.filter(_e=>_e!==s.id):[...$??[],s.id])},s.getCanGroup=()=>{var $,_e;return(($=s.columnDef.enableGrouping)!=null?$:!0)&&((_e=j.options.enableGrouping)!=null?_e:!0)&&(!!s.accessorFn||!!s.columnDef.getGroupingValue)},s.getIsGrouped=()=>{var $;return($=j.getState().grouping)==null?void 0:$.includes(s.id)},s.getGroupedIndex=()=>{var $;return($=j.getState().grouping)==null?void 0:$.indexOf(s.id)},s.getToggleGroupingHandler=()=>{const $=s.getCanGroup();return()=>{$&&s.toggleGrouping()}},s.getAutoAggregationFn=()=>{const $=j.getCoreRowModel().flatRows[0],_e=$==null?void 0:$.getValue(s.id);if(typeof _e=="number")return aggregationFns.sum;if(Object.prototype.toString.call(_e)==="[object Date]")return aggregationFns.extent},s.getAggregationFn=()=>{var $,_e;if(!s)throw new Error;return isFunction(s.columnDef.aggregationFn)?s.columnDef.aggregationFn:s.columnDef.aggregationFn==="auto"?s.getAutoAggregationFn():($=(_e=j.options.aggregationFns)==null?void 0:_e[s.columnDef.aggregationFn])!=null?$:aggregationFns[s.columnDef.aggregationFn]}},createTable:s=>{s.setGrouping=j=>s.options.onGroupingChange==null?void 0:s.options.onGroupingChange(j),s.resetGrouping=j=>{var $,_e;s.setGrouping(j?[]:($=(_e=s.initialState)==null?void 0:_e.grouping)!=null?$:[])},s.getPreGroupedRowModel=()=>s.getFilteredRowModel(),s.getGroupedRowModel=()=>(!s._getGroupedRowModel&&s.options.getGroupedRowModel&&(s._getGroupedRowModel=s.options.getGroupedRowModel(s)),s.options.manualGrouping||!s._getGroupedRowModel?s.getPreGroupedRowModel():s._getGroupedRowModel())},createRow:(s,j)=>{s.getIsGrouped=()=>!!s.groupingColumnId,s.getGroupingValue=$=>{if(s._groupingValuesCache.hasOwnProperty($))return s._groupingValuesCache[$];const _e=j.getColumn($);return _e!=null&&_e.columnDef.getGroupingValue?(s._groupingValuesCache[$]=_e.columnDef.getGroupingValue(s.original),s._groupingValuesCache[$]):s.getValue($)},s._groupingValuesCache={}},createCell:(s,j,$,_e)=>{s.getIsGrouped=()=>j.getIsGrouped()&&j.id===$.groupingColumnId,s.getIsPlaceholder=()=>!s.getIsGrouped()&&j.getIsGrouped(),s.getIsAggregated=()=>{var et;return!s.getIsGrouped()&&!s.getIsPlaceholder()&&!!((et=$.subRows)!=null&&et.length)}}};function orderColumns(s,j,$){if(!(j!=null&&j.length)||!$)return s;const _e=s.filter(tt=>!j.includes(tt.id));return $==="remove"?_e:[...j.map(tt=>s.find(nt=>nt.id===tt)).filter(Boolean),..._e]}const ColumnOrdering={getInitialState:s=>({columnOrder:[],...s}),getDefaultOptions:s=>({onColumnOrderChange:makeStateUpdater("columnOrder",s)}),createColumn:(s,j)=>{s.getIndex=memo($=>[_getVisibleLeafColumns(j,$)],$=>$.findIndex(_e=>_e.id===s.id),getMemoOptions(j.options,"debugColumns")),s.getIsFirstColumn=$=>{var _e;return((_e=_getVisibleLeafColumns(j,$)[0])==null?void 0:_e.id)===s.id},s.getIsLastColumn=$=>{var _e;const et=_getVisibleLeafColumns(j,$);return((_e=et[et.length-1])==null?void 0:_e.id)===s.id}},createTable:s=>{s.setColumnOrder=j=>s.options.onColumnOrderChange==null?void 0:s.options.onColumnOrderChange(j),s.resetColumnOrder=j=>{var $;s.setColumnOrder(j?[]:($=s.initialState.columnOrder)!=null?$:[])},s._getOrderColumnsFn=memo(()=>[s.getState().columnOrder,s.getState().grouping,s.options.groupedColumnMode],(j,$,_e)=>et=>{let tt=[];if(!(j!=null&&j.length))tt=et;else{const nt=[...j],rt=[...et];for(;rt.length&&nt.length;){const ot=nt.shift(),it=rt.findIndex(st=>st.id===ot);it>-1&&tt.push(rt.splice(it,1)[0])}tt=[...tt,...rt]}return orderColumns(tt,$,_e)},getMemoOptions(s.options,"debugTable"))}},getDefaultColumnPinningState=()=>({left:[],right:[]}),ColumnPinning={getInitialState:s=>({columnPinning:getDefaultColumnPinningState(),...s}),getDefaultOptions:s=>({onColumnPinningChange:makeStateUpdater("columnPinning",s)}),createColumn:(s,j)=>{s.pin=$=>{const _e=s.getLeafColumns().map(et=>et.id).filter(Boolean);j.setColumnPinning(et=>{var tt,nt;if($==="right"){var rt,ot;return{left:((rt=et==null?void 0:et.left)!=null?rt:[]).filter(at=>!(_e!=null&&_e.includes(at))),right:[...((ot=et==null?void 0:et.right)!=null?ot:[]).filter(at=>!(_e!=null&&_e.includes(at))),..._e]}}if($==="left"){var it,st;return{left:[...((it=et==null?void 0:et.left)!=null?it:[]).filter(at=>!(_e!=null&&_e.includes(at))),..._e],right:((st=et==null?void 0:et.right)!=null?st:[]).filter(at=>!(_e!=null&&_e.includes(at)))}}return{left:((tt=et==null?void 0:et.left)!=null?tt:[]).filter(at=>!(_e!=null&&_e.includes(at))),right:((nt=et==null?void 0:et.right)!=null?nt:[]).filter(at=>!(_e!=null&&_e.includes(at)))}})},s.getCanPin=()=>s.getLeafColumns().some(_e=>{var et,tt,nt;return((et=_e.columnDef.enablePinning)!=null?et:!0)&&((tt=(nt=j.options.enableColumnPinning)!=null?nt:j.options.enablePinning)!=null?tt:!0)}),s.getIsPinned=()=>{const $=s.getLeafColumns().map(rt=>rt.id),{left:_e,right:et}=j.getState().columnPinning,tt=$.some(rt=>_e==null?void 0:_e.includes(rt)),nt=$.some(rt=>et==null?void 0:et.includes(rt));return tt?"left":nt?"right":!1},s.getPinnedIndex=()=>{var $,_e;const et=s.getIsPinned();return et?($=(_e=j.getState().columnPinning)==null||(_e=_e[et])==null?void 0:_e.indexOf(s.id))!=null?$:-1:0}},createRow:(s,j)=>{s.getCenterVisibleCells=memo(()=>[s._getAllVisibleCells(),j.getState().columnPinning.left,j.getState().columnPinning.right],($,_e,et)=>{const tt=[..._e??[],...et??[]];return $.filter(nt=>!tt.includes(nt.column.id))},getMemoOptions(j.options,"debugRows")),s.getLeftVisibleCells=memo(()=>[s._getAllVisibleCells(),j.getState().columnPinning.left],($,_e)=>(_e??[]).map(tt=>$.find(nt=>nt.column.id===tt)).filter(Boolean).map(tt=>({...tt,position:"left"})),getMemoOptions(j.options,"debugRows")),s.getRightVisibleCells=memo(()=>[s._getAllVisibleCells(),j.getState().columnPinning.right],($,_e)=>(_e??[]).map(tt=>$.find(nt=>nt.column.id===tt)).filter(Boolean).map(tt=>({...tt,position:"right"})),getMemoOptions(j.options,"debugRows"))},createTable:s=>{s.setColumnPinning=j=>s.options.onColumnPinningChange==null?void 0:s.options.onColumnPinningChange(j),s.resetColumnPinning=j=>{var $,_e;return s.setColumnPinning(j?getDefaultColumnPinningState():($=(_e=s.initialState)==null?void 0:_e.columnPinning)!=null?$:getDefaultColumnPinningState())},s.getIsSomeColumnsPinned=j=>{var $;const _e=s.getState().columnPinning;if(!j){var et,tt;return!!((et=_e.left)!=null&&et.length||(tt=_e.right)!=null&&tt.length)}return!!(($=_e[j])!=null&&$.length)},s.getLeftLeafColumns=memo(()=>[s.getAllLeafColumns(),s.getState().columnPinning.left],(j,$)=>($??[]).map(_e=>j.find(et=>et.id===_e)).filter(Boolean),getMemoOptions(s.options,"debugColumns")),s.getRightLeafColumns=memo(()=>[s.getAllLeafColumns(),s.getState().columnPinning.right],(j,$)=>($??[]).map(_e=>j.find(et=>et.id===_e)).filter(Boolean),getMemoOptions(s.options,"debugColumns")),s.getCenterLeafColumns=memo(()=>[s.getAllLeafColumns(),s.getState().columnPinning.left,s.getState().columnPinning.right],(j,$,_e)=>{const et=[...$??[],..._e??[]];return j.filter(tt=>!et.includes(tt.id))},getMemoOptions(s.options,"debugColumns"))}},defaultColumnSizing={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},getDefaultColumnSizingInfoState=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),ColumnSizing={getDefaultColumnDef:()=>defaultColumnSizing,getInitialState:s=>({columnSizing:{},columnSizingInfo:getDefaultColumnSizingInfoState(),...s}),getDefaultOptions:s=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:makeStateUpdater("columnSizing",s),onColumnSizingInfoChange:makeStateUpdater("columnSizingInfo",s)}),createColumn:(s,j)=>{s.getSize=()=>{var $,_e,et;const tt=j.getState().columnSizing[s.id];return Math.min(Math.max(($=s.columnDef.minSize)!=null?$:defaultColumnSizing.minSize,(_e=tt??s.columnDef.size)!=null?_e:defaultColumnSizing.size),(et=s.columnDef.maxSize)!=null?et:defaultColumnSizing.maxSize)},s.getStart=memo($=>[$,_getVisibleLeafColumns(j,$),j.getState().columnSizing],($,_e)=>_e.slice(0,s.getIndex($)).reduce((et,tt)=>et+tt.getSize(),0),getMemoOptions(j.options,"debugColumns")),s.getAfter=memo($=>[$,_getVisibleLeafColumns(j,$),j.getState().columnSizing],($,_e)=>_e.slice(s.getIndex($)+1).reduce((et,tt)=>et+tt.getSize(),0),getMemoOptions(j.options,"debugColumns")),s.resetSize=()=>{j.setColumnSizing($=>{let{[s.id]:_e,...et}=$;return et})},s.getCanResize=()=>{var $,_e;return(($=s.columnDef.enableResizing)!=null?$:!0)&&((_e=j.options.enableColumnResizing)!=null?_e:!0)},s.getIsResizing=()=>j.getState().columnSizingInfo.isResizingColumn===s.id},createHeader:(s,j)=>{s.getSize=()=>{let $=0;const _e=et=>{if(et.subHeaders.length)et.subHeaders.forEach(_e);else{var tt;$+=(tt=et.column.getSize())!=null?tt:0}};return _e(s),$},s.getStart=()=>{if(s.index>0){const $=s.headerGroup.headers[s.index-1];return $.getStart()+$.getSize()}return 0},s.getResizeHandler=$=>{const _e=j.getColumn(s.column.id),et=_e==null?void 0:_e.getCanResize();return tt=>{if(!_e||!et||(tt.persist==null||tt.persist(),isTouchStartEvent(tt)&&tt.touches&&tt.touches.length>1))return;const nt=s.getSize(),rt=s?s.getLeafHeaders().map(yt=>[yt.column.id,yt.column.getSize()]):[[_e.id,_e.getSize()]],ot=isTouchStartEvent(tt)?Math.round(tt.touches[0].clientX):tt.clientX,it={},st=(yt,mt)=>{typeof mt=="number"&&(j.setColumnSizingInfo(pt=>{var xt,Ct;const Dt=j.options.columnResizeDirection==="rtl"?-1:1,wt=(mt-((xt=pt==null?void 0:pt.startOffset)!=null?xt:0))*Dt,kt=Math.max(wt/((Ct=pt==null?void 0:pt.startSize)!=null?Ct:0),-.999999);return pt.columnSizingStart.forEach(zt=>{let[Ot,Ft]=zt;it[Ot]=Math.round(Math.max(Ft+Ft*kt,0)*100)/100}),{...pt,deltaOffset:wt,deltaPercentage:kt}}),(j.options.columnResizeMode==="onChange"||yt==="end")&&j.setColumnSizing(pt=>({...pt,...it})))},at=yt=>st("move",yt),ct=yt=>{st("end",yt),j.setColumnSizingInfo(mt=>({...mt,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},lt=$||typeof document<"u"?document:null,dt={moveHandler:yt=>at(yt.clientX),upHandler:yt=>{lt==null||lt.removeEventListener("mousemove",dt.moveHandler),lt==null||lt.removeEventListener("mouseup",dt.upHandler),ct(yt.clientX)}},ft={moveHandler:yt=>(yt.cancelable&&(yt.preventDefault(),yt.stopPropagation()),at(yt.touches[0].clientX),!1),upHandler:yt=>{var mt;lt==null||lt.removeEventListener("touchmove",ft.moveHandler),lt==null||lt.removeEventListener("touchend",ft.upHandler),yt.cancelable&&(yt.preventDefault(),yt.stopPropagation()),ct((mt=yt.touches[0])==null?void 0:mt.clientX)}},gt=passiveEventSupported()?{passive:!1}:!1;isTouchStartEvent(tt)?(lt==null||lt.addEventListener("touchmove",ft.moveHandler,gt),lt==null||lt.addEventListener("touchend",ft.upHandler,gt)):(lt==null||lt.addEventListener("mousemove",dt.moveHandler,gt),lt==null||lt.addEventListener("mouseup",dt.upHandler,gt)),j.setColumnSizingInfo(yt=>({...yt,startOffset:ot,startSize:nt,deltaOffset:0,deltaPercentage:0,columnSizingStart:rt,isResizingColumn:_e.id}))}}},createTable:s=>{s.setColumnSizing=j=>s.options.onColumnSizingChange==null?void 0:s.options.onColumnSizingChange(j),s.setColumnSizingInfo=j=>s.options.onColumnSizingInfoChange==null?void 0:s.options.onColumnSizingInfoChange(j),s.resetColumnSizing=j=>{var $;s.setColumnSizing(j?{}:($=s.initialState.columnSizing)!=null?$:{})},s.resetHeaderSizeInfo=j=>{var $;s.setColumnSizingInfo(j?getDefaultColumnSizingInfoState():($=s.initialState.columnSizingInfo)!=null?$:getDefaultColumnSizingInfoState())},s.getTotalSize=()=>{var j,$;return(j=($=s.getHeaderGroups()[0])==null?void 0:$.headers.reduce((_e,et)=>_e+et.getSize(),0))!=null?j:0},s.getLeftTotalSize=()=>{var j,$;return(j=($=s.getLeftHeaderGroups()[0])==null?void 0:$.headers.reduce((_e,et)=>_e+et.getSize(),0))!=null?j:0},s.getCenterTotalSize=()=>{var j,$;return(j=($=s.getCenterHeaderGroups()[0])==null?void 0:$.headers.reduce((_e,et)=>_e+et.getSize(),0))!=null?j:0},s.getRightTotalSize=()=>{var j,$;return(j=($=s.getRightHeaderGroups()[0])==null?void 0:$.headers.reduce((_e,et)=>_e+et.getSize(),0))!=null?j:0}}};let passiveSupported=null;function passiveEventSupported(){if(typeof passiveSupported=="boolean")return passiveSupported;let s=!1;try{const j={get passive(){return s=!0,!1}},$=()=>{};window.addEventListener("test",$,j),window.removeEventListener("test",$)}catch{s=!1}return passiveSupported=s,passiveSupported}function isTouchStartEvent(s){return s.type==="touchstart"}const ColumnVisibility={getInitialState:s=>({columnVisibility:{},...s}),getDefaultOptions:s=>({onColumnVisibilityChange:makeStateUpdater("columnVisibility",s)}),createColumn:(s,j)=>{s.toggleVisibility=$=>{s.getCanHide()&&j.setColumnVisibility(_e=>({..._e,[s.id]:$??!s.getIsVisible()}))},s.getIsVisible=()=>{var $,_e;const et=s.columns;return($=et.length?et.some(tt=>tt.getIsVisible()):(_e=j.getState().columnVisibility)==null?void 0:_e[s.id])!=null?$:!0},s.getCanHide=()=>{var $,_e;return(($=s.columnDef.enableHiding)!=null?$:!0)&&((_e=j.options.enableHiding)!=null?_e:!0)},s.getToggleVisibilityHandler=()=>$=>{s.toggleVisibility==null||s.toggleVisibility($.target.checked)}},createRow:(s,j)=>{s._getAllVisibleCells=memo(()=>[s.getAllCells(),j.getState().columnVisibility],$=>$.filter(_e=>_e.column.getIsVisible()),getMemoOptions(j.options,"debugRows")),s.getVisibleCells=memo(()=>[s.getLeftVisibleCells(),s.getCenterVisibleCells(),s.getRightVisibleCells()],($,_e,et)=>[...$,..._e,...et],getMemoOptions(j.options,"debugRows"))},createTable:s=>{const j=($,_e)=>memo(()=>[_e(),_e().filter(et=>et.getIsVisible()).map(et=>et.id).join("_")],et=>et.filter(tt=>tt.getIsVisible==null?void 0:tt.getIsVisible()),getMemoOptions(s.options,"debugColumns"));s.getVisibleFlatColumns=j("getVisibleFlatColumns",()=>s.getAllFlatColumns()),s.getVisibleLeafColumns=j("getVisibleLeafColumns",()=>s.getAllLeafColumns()),s.getLeftVisibleLeafColumns=j("getLeftVisibleLeafColumns",()=>s.getLeftLeafColumns()),s.getRightVisibleLeafColumns=j("getRightVisibleLeafColumns",()=>s.getRightLeafColumns()),s.getCenterVisibleLeafColumns=j("getCenterVisibleLeafColumns",()=>s.getCenterLeafColumns()),s.setColumnVisibility=$=>s.options.onColumnVisibilityChange==null?void 0:s.options.onColumnVisibilityChange($),s.resetColumnVisibility=$=>{var _e;s.setColumnVisibility($?{}:(_e=s.initialState.columnVisibility)!=null?_e:{})},s.toggleAllColumnsVisible=$=>{var _e;$=(_e=$)!=null?_e:!s.getIsAllColumnsVisible(),s.setColumnVisibility(s.getAllLeafColumns().reduce((et,tt)=>({...et,[tt.id]:$||!(tt.getCanHide!=null&&tt.getCanHide())}),{}))},s.getIsAllColumnsVisible=()=>!s.getAllLeafColumns().some($=>!($.getIsVisible!=null&&$.getIsVisible())),s.getIsSomeColumnsVisible=()=>s.getAllLeafColumns().some($=>$.getIsVisible==null?void 0:$.getIsVisible()),s.getToggleAllColumnsVisibilityHandler=()=>$=>{var _e;s.toggleAllColumnsVisible((_e=$.target)==null?void 0:_e.checked)}}};function _getVisibleLeafColumns(s,j){return j?j==="center"?s.getCenterVisibleLeafColumns():j==="left"?s.getLeftVisibleLeafColumns():s.getRightVisibleLeafColumns():s.getVisibleLeafColumns()}const GlobalFaceting={createTable:s=>{s._getGlobalFacetedRowModel=s.options.getFacetedRowModel&&s.options.getFacetedRowModel(s,"__global__"),s.getGlobalFacetedRowModel=()=>s.options.manualFiltering||!s._getGlobalFacetedRowModel?s.getPreFilteredRowModel():s._getGlobalFacetedRowModel(),s._getGlobalFacetedUniqueValues=s.options.getFacetedUniqueValues&&s.options.getFacetedUniqueValues(s,"__global__"),s.getGlobalFacetedUniqueValues=()=>s._getGlobalFacetedUniqueValues?s._getGlobalFacetedUniqueValues():new Map,s._getGlobalFacetedMinMaxValues=s.options.getFacetedMinMaxValues&&s.options.getFacetedMinMaxValues(s,"__global__"),s.getGlobalFacetedMinMaxValues=()=>{if(s._getGlobalFacetedMinMaxValues)return s._getGlobalFacetedMinMaxValues()}}},GlobalFiltering={getInitialState:s=>({globalFilter:void 0,...s}),getDefaultOptions:s=>({onGlobalFilterChange:makeStateUpdater("globalFilter",s),globalFilterFn:"auto",getColumnCanGlobalFilter:j=>{var $;const _e=($=s.getCoreRowModel().flatRows[0])==null||($=$._getAllCellsByColumnId()[j.id])==null?void 0:$.getValue();return typeof _e=="string"||typeof _e=="number"}}),createColumn:(s,j)=>{s.getCanGlobalFilter=()=>{var $,_e,et,tt;return(($=s.columnDef.enableGlobalFilter)!=null?$:!0)&&((_e=j.options.enableGlobalFilter)!=null?_e:!0)&&((et=j.options.enableFilters)!=null?et:!0)&&((tt=j.options.getColumnCanGlobalFilter==null?void 0:j.options.getColumnCanGlobalFilter(s))!=null?tt:!0)&&!!s.accessorFn}},createTable:s=>{s.getGlobalAutoFilterFn=()=>filterFns.includesString,s.getGlobalFilterFn=()=>{var j,$;const{globalFilterFn:_e}=s.options;return isFunction(_e)?_e:_e==="auto"?s.getGlobalAutoFilterFn():(j=($=s.options.filterFns)==null?void 0:$[_e])!=null?j:filterFns[_e]},s.setGlobalFilter=j=>{s.options.onGlobalFilterChange==null||s.options.onGlobalFilterChange(j)},s.resetGlobalFilter=j=>{s.setGlobalFilter(j?void 0:s.initialState.globalFilter)}}},RowExpanding={getInitialState:s=>({expanded:{},...s}),getDefaultOptions:s=>({onExpandedChange:makeStateUpdater("expanded",s),paginateExpandedRows:!0}),createTable:s=>{let j=!1,$=!1;s._autoResetExpanded=()=>{var _e,et;if(!j){s._queue(()=>{j=!0});return}if((_e=(et=s.options.autoResetAll)!=null?et:s.options.autoResetExpanded)!=null?_e:!s.options.manualExpanding){if($)return;$=!0,s._queue(()=>{s.resetExpanded(),$=!1})}},s.setExpanded=_e=>s.options.onExpandedChange==null?void 0:s.options.onExpandedChange(_e),s.toggleAllRowsExpanded=_e=>{_e??!s.getIsAllRowsExpanded()?s.setExpanded(!0):s.setExpanded({})},s.resetExpanded=_e=>{var et,tt;s.setExpanded(_e?{}:(et=(tt=s.initialState)==null?void 0:tt.expanded)!=null?et:{})},s.getCanSomeRowsExpand=()=>s.getPrePaginationRowModel().flatRows.some(_e=>_e.getCanExpand()),s.getToggleAllRowsExpandedHandler=()=>_e=>{_e.persist==null||_e.persist(),s.toggleAllRowsExpanded()},s.getIsSomeRowsExpanded=()=>{const _e=s.getState().expanded;return _e===!0||Object.values(_e).some(Boolean)},s.getIsAllRowsExpanded=()=>{const _e=s.getState().expanded;return typeof _e=="boolean"?_e===!0:!(!Object.keys(_e).length||s.getRowModel().flatRows.some(et=>!et.getIsExpanded()))},s.getExpandedDepth=()=>{let _e=0;return(s.getState().expanded===!0?Object.keys(s.getRowModel().rowsById):Object.keys(s.getState().expanded)).forEach(tt=>{const nt=tt.split(".");_e=Math.max(_e,nt.length)}),_e},s.getPreExpandedRowModel=()=>s.getSortedRowModel(),s.getExpandedRowModel=()=>(!s._getExpandedRowModel&&s.options.getExpandedRowModel&&(s._getExpandedRowModel=s.options.getExpandedRowModel(s)),s.options.manualExpanding||!s._getExpandedRowModel?s.getPreExpandedRowModel():s._getExpandedRowModel())},createRow:(s,j)=>{s.toggleExpanded=$=>{j.setExpanded(_e=>{var et;const tt=_e===!0?!0:!!(_e!=null&&_e[s.id]);let nt={};if(_e===!0?Object.keys(j.getRowModel().rowsById).forEach(rt=>{nt[rt]=!0}):nt=_e,$=(et=$)!=null?et:!tt,!tt&&$)return{...nt,[s.id]:!0};if(tt&&!$){const{[s.id]:rt,...ot}=nt;return ot}return _e})},s.getIsExpanded=()=>{var $;const _e=j.getState().expanded;return!!(($=j.options.getIsRowExpanded==null?void 0:j.options.getIsRowExpanded(s))!=null?$:_e===!0||_e!=null&&_e[s.id])},s.getCanExpand=()=>{var $,_e,et;return($=j.options.getRowCanExpand==null?void 0:j.options.getRowCanExpand(s))!=null?$:((_e=j.options.enableExpanding)!=null?_e:!0)&&!!((et=s.subRows)!=null&&et.length)},s.getIsAllParentsExpanded=()=>{let $=!0,_e=s;for(;$&&_e.parentId;)_e=j.getRow(_e.parentId,!0),$=_e.getIsExpanded();return $},s.getToggleExpandedHandler=()=>{const $=s.getCanExpand();return()=>{$&&s.toggleExpanded()}}}},defaultPageIndex=0,defaultPageSize=10,getDefaultPaginationState=()=>({pageIndex:defaultPageIndex,pageSize:defaultPageSize}),RowPagination={getInitialState:s=>({...s,pagination:{...getDefaultPaginationState(),...s==null?void 0:s.pagination}}),getDefaultOptions:s=>({onPaginationChange:makeStateUpdater("pagination",s)}),createTable:s=>{let j=!1,$=!1;s._autoResetPageIndex=()=>{var _e,et;if(!j){s._queue(()=>{j=!0});return}if((_e=(et=s.options.autoResetAll)!=null?et:s.options.autoResetPageIndex)!=null?_e:!s.options.manualPagination){if($)return;$=!0,s._queue(()=>{s.resetPageIndex(),$=!1})}},s.setPagination=_e=>{const et=tt=>functionalUpdate(_e,tt);return s.options.onPaginationChange==null?void 0:s.options.onPaginationChange(et)},s.resetPagination=_e=>{var et;s.setPagination(_e?getDefaultPaginationState():(et=s.initialState.pagination)!=null?et:getDefaultPaginationState())},s.setPageIndex=_e=>{s.setPagination(et=>{let tt=functionalUpdate(_e,et.pageIndex);const nt=typeof s.options.pageCount>"u"||s.options.pageCount===-1?Number.MAX_SAFE_INTEGER:s.options.pageCount-1;return tt=Math.max(0,Math.min(tt,nt)),{...et,pageIndex:tt}})},s.resetPageIndex=_e=>{var et,tt;s.setPageIndex(_e?defaultPageIndex:(et=(tt=s.initialState)==null||(tt=tt.pagination)==null?void 0:tt.pageIndex)!=null?et:defaultPageIndex)},s.resetPageSize=_e=>{var et,tt;s.setPageSize(_e?defaultPageSize:(et=(tt=s.initialState)==null||(tt=tt.pagination)==null?void 0:tt.pageSize)!=null?et:defaultPageSize)},s.setPageSize=_e=>{s.setPagination(et=>{const tt=Math.max(1,functionalUpdate(_e,et.pageSize)),nt=et.pageSize*et.pageIndex,rt=Math.floor(nt/tt);return{...et,pageIndex:rt,pageSize:tt}})},s.setPageCount=_e=>s.setPagination(et=>{var tt;let nt=functionalUpdate(_e,(tt=s.options.pageCount)!=null?tt:-1);return typeof nt=="number"&&(nt=Math.max(-1,nt)),{...et,pageCount:nt}}),s.getPageOptions=memo(()=>[s.getPageCount()],_e=>{let et=[];return _e&&_e>0&&(et=[...new Array(_e)].fill(null).map((tt,nt)=>nt)),et},getMemoOptions(s.options,"debugTable")),s.getCanPreviousPage=()=>s.getState().pagination.pageIndex>0,s.getCanNextPage=()=>{const{pageIndex:_e}=s.getState().pagination,et=s.getPageCount();return et===-1?!0:et===0?!1:_es.setPageIndex(_e=>_e-1),s.nextPage=()=>s.setPageIndex(_e=>_e+1),s.firstPage=()=>s.setPageIndex(0),s.lastPage=()=>s.setPageIndex(s.getPageCount()-1),s.getPrePaginationRowModel=()=>s.getExpandedRowModel(),s.getPaginationRowModel=()=>(!s._getPaginationRowModel&&s.options.getPaginationRowModel&&(s._getPaginationRowModel=s.options.getPaginationRowModel(s)),s.options.manualPagination||!s._getPaginationRowModel?s.getPrePaginationRowModel():s._getPaginationRowModel()),s.getPageCount=()=>{var _e;return(_e=s.options.pageCount)!=null?_e:Math.ceil(s.getRowCount()/s.getState().pagination.pageSize)},s.getRowCount=()=>{var _e;return(_e=s.options.rowCount)!=null?_e:s.getPrePaginationRowModel().rows.length}}},getDefaultRowPinningState=()=>({top:[],bottom:[]}),RowPinning={getInitialState:s=>({rowPinning:getDefaultRowPinningState(),...s}),getDefaultOptions:s=>({onRowPinningChange:makeStateUpdater("rowPinning",s)}),createRow:(s,j)=>{s.pin=($,_e,et)=>{const tt=_e?s.getLeafRows().map(ot=>{let{id:it}=ot;return it}):[],nt=et?s.getParentRows().map(ot=>{let{id:it}=ot;return it}):[],rt=new Set([...nt,s.id,...tt]);j.setRowPinning(ot=>{var it,st;if($==="bottom"){var at,ct;return{top:((at=ot==null?void 0:ot.top)!=null?at:[]).filter(ft=>!(rt!=null&&rt.has(ft))),bottom:[...((ct=ot==null?void 0:ot.bottom)!=null?ct:[]).filter(ft=>!(rt!=null&&rt.has(ft))),...Array.from(rt)]}}if($==="top"){var lt,dt;return{top:[...((lt=ot==null?void 0:ot.top)!=null?lt:[]).filter(ft=>!(rt!=null&&rt.has(ft))),...Array.from(rt)],bottom:((dt=ot==null?void 0:ot.bottom)!=null?dt:[]).filter(ft=>!(rt!=null&&rt.has(ft)))}}return{top:((it=ot==null?void 0:ot.top)!=null?it:[]).filter(ft=>!(rt!=null&&rt.has(ft))),bottom:((st=ot==null?void 0:ot.bottom)!=null?st:[]).filter(ft=>!(rt!=null&&rt.has(ft)))}})},s.getCanPin=()=>{var $;const{enableRowPinning:_e,enablePinning:et}=j.options;return typeof _e=="function"?_e(s):($=_e??et)!=null?$:!0},s.getIsPinned=()=>{const $=[s.id],{top:_e,bottom:et}=j.getState().rowPinning,tt=$.some(rt=>_e==null?void 0:_e.includes(rt)),nt=$.some(rt=>et==null?void 0:et.includes(rt));return tt?"top":nt?"bottom":!1},s.getPinnedIndex=()=>{var $,_e;const et=s.getIsPinned();if(!et)return-1;const tt=($=j._getPinnedRows(et))==null?void 0:$.map(nt=>{let{id:rt}=nt;return rt});return(_e=tt==null?void 0:tt.indexOf(s.id))!=null?_e:-1}},createTable:s=>{s.setRowPinning=j=>s.options.onRowPinningChange==null?void 0:s.options.onRowPinningChange(j),s.resetRowPinning=j=>{var $,_e;return s.setRowPinning(j?getDefaultRowPinningState():($=(_e=s.initialState)==null?void 0:_e.rowPinning)!=null?$:getDefaultRowPinningState())},s.getIsSomeRowsPinned=j=>{var $;const _e=s.getState().rowPinning;if(!j){var et,tt;return!!((et=_e.top)!=null&&et.length||(tt=_e.bottom)!=null&&tt.length)}return!!(($=_e[j])!=null&&$.length)},s._getPinnedRows=memo(j=>[s.getRowModel().rows,s.getState().rowPinning[j],j],(j,$,_e)=>{var et;return((et=s.options.keepPinnedRows)==null||et?($??[]).map(nt=>{const rt=s.getRow(nt,!0);return rt.getIsAllParentsExpanded()?rt:null}):($??[]).map(nt=>j.find(rt=>rt.id===nt))).filter(Boolean).map(nt=>({...nt,position:_e}))},getMemoOptions(s.options,"debugRows")),s.getTopRows=()=>s._getPinnedRows("top"),s.getBottomRows=()=>s._getPinnedRows("bottom"),s.getCenterRows=memo(()=>[s.getRowModel().rows,s.getState().rowPinning.top,s.getState().rowPinning.bottom],(j,$,_e)=>{const et=new Set([...$??[],..._e??[]]);return j.filter(tt=>!et.has(tt.id))},getMemoOptions(s.options,"debugRows"))}},RowSelection={getInitialState:s=>({rowSelection:{},...s}),getDefaultOptions:s=>({onRowSelectionChange:makeStateUpdater("rowSelection",s),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:s=>{s.setRowSelection=j=>s.options.onRowSelectionChange==null?void 0:s.options.onRowSelectionChange(j),s.resetRowSelection=j=>{var $;return s.setRowSelection(j?{}:($=s.initialState.rowSelection)!=null?$:{})},s.toggleAllRowsSelected=j=>{s.setRowSelection($=>{j=typeof j<"u"?j:!s.getIsAllRowsSelected();const _e={...$},et=s.getPreGroupedRowModel().flatRows;return j?et.forEach(tt=>{tt.getCanSelect()&&(_e[tt.id]=!0)}):et.forEach(tt=>{delete _e[tt.id]}),_e})},s.toggleAllPageRowsSelected=j=>s.setRowSelection($=>{const _e=typeof j<"u"?j:!s.getIsAllPageRowsSelected(),et={...$};return s.getRowModel().rows.forEach(tt=>{mutateRowIsSelected(et,tt.id,_e,!0,s)}),et}),s.getPreSelectedRowModel=()=>s.getCoreRowModel(),s.getSelectedRowModel=memo(()=>[s.getState().rowSelection,s.getCoreRowModel()],(j,$)=>Object.keys(j).length?selectRowsFn(s,$):{rows:[],flatRows:[],rowsById:{}},getMemoOptions(s.options,"debugTable")),s.getFilteredSelectedRowModel=memo(()=>[s.getState().rowSelection,s.getFilteredRowModel()],(j,$)=>Object.keys(j).length?selectRowsFn(s,$):{rows:[],flatRows:[],rowsById:{}},getMemoOptions(s.options,"debugTable")),s.getGroupedSelectedRowModel=memo(()=>[s.getState().rowSelection,s.getSortedRowModel()],(j,$)=>Object.keys(j).length?selectRowsFn(s,$):{rows:[],flatRows:[],rowsById:{}},getMemoOptions(s.options,"debugTable")),s.getIsAllRowsSelected=()=>{const j=s.getFilteredRowModel().flatRows,{rowSelection:$}=s.getState();let _e=!!(j.length&&Object.keys($).length);return _e&&j.some(et=>et.getCanSelect()&&!$[et.id])&&(_e=!1),_e},s.getIsAllPageRowsSelected=()=>{const j=s.getPaginationRowModel().flatRows.filter(et=>et.getCanSelect()),{rowSelection:$}=s.getState();let _e=!!j.length;return _e&&j.some(et=>!$[et.id])&&(_e=!1),_e},s.getIsSomeRowsSelected=()=>{var j;const $=Object.keys((j=s.getState().rowSelection)!=null?j:{}).length;return $>0&&${const j=s.getPaginationRowModel().flatRows;return s.getIsAllPageRowsSelected()?!1:j.filter($=>$.getCanSelect()).some($=>$.getIsSelected()||$.getIsSomeSelected())},s.getToggleAllRowsSelectedHandler=()=>j=>{s.toggleAllRowsSelected(j.target.checked)},s.getToggleAllPageRowsSelectedHandler=()=>j=>{s.toggleAllPageRowsSelected(j.target.checked)}},createRow:(s,j)=>{s.toggleSelected=($,_e)=>{const et=s.getIsSelected();j.setRowSelection(tt=>{var nt;if($=typeof $<"u"?$:!et,s.getCanSelect()&&et===$)return tt;const rt={...tt};return mutateRowIsSelected(rt,s.id,$,(nt=_e==null?void 0:_e.selectChildren)!=null?nt:!0,j),rt})},s.getIsSelected=()=>{const{rowSelection:$}=j.getState();return isRowSelected(s,$)},s.getIsSomeSelected=()=>{const{rowSelection:$}=j.getState();return isSubRowSelected(s,$)==="some"},s.getIsAllSubRowsSelected=()=>{const{rowSelection:$}=j.getState();return isSubRowSelected(s,$)==="all"},s.getCanSelect=()=>{var $;return typeof j.options.enableRowSelection=="function"?j.options.enableRowSelection(s):($=j.options.enableRowSelection)!=null?$:!0},s.getCanSelectSubRows=()=>{var $;return typeof j.options.enableSubRowSelection=="function"?j.options.enableSubRowSelection(s):($=j.options.enableSubRowSelection)!=null?$:!0},s.getCanMultiSelect=()=>{var $;return typeof j.options.enableMultiRowSelection=="function"?j.options.enableMultiRowSelection(s):($=j.options.enableMultiRowSelection)!=null?$:!0},s.getToggleSelectedHandler=()=>{const $=s.getCanSelect();return _e=>{var et;$&&s.toggleSelected((et=_e.target)==null?void 0:et.checked)}}}},mutateRowIsSelected=(s,j,$,_e,et)=>{var tt;const nt=et.getRow(j,!0);$?(nt.getCanMultiSelect()||Object.keys(s).forEach(rt=>delete s[rt]),nt.getCanSelect()&&(s[j]=!0)):delete s[j],_e&&(tt=nt.subRows)!=null&&tt.length&&nt.getCanSelectSubRows()&&nt.subRows.forEach(rt=>mutateRowIsSelected(s,rt.id,$,_e,et))};function selectRowsFn(s,j){const $=s.getState().rowSelection,_e=[],et={},tt=function(nt,rt){return nt.map(ot=>{var it;const st=isRowSelected(ot,$);if(st&&(_e.push(ot),et[ot.id]=ot),(it=ot.subRows)!=null&&it.length&&(ot={...ot,subRows:tt(ot.subRows)}),st)return ot}).filter(Boolean)};return{rows:tt(j.rows),flatRows:_e,rowsById:et}}function isRowSelected(s,j){var $;return($=j[s.id])!=null?$:!1}function isSubRowSelected(s,j,$){var _e;if(!((_e=s.subRows)!=null&&_e.length))return!1;let et=!0,tt=!1;return s.subRows.forEach(nt=>{if(!(tt&&!et)&&(nt.getCanSelect()&&(isRowSelected(nt,j)?tt=!0:et=!1),nt.subRows&&nt.subRows.length)){const rt=isSubRowSelected(nt,j);rt==="all"?tt=!0:(rt==="some"&&(tt=!0),et=!1)}}),et?"all":tt?"some":!1}const reSplitAlphaNumeric=/([0-9]+)/gm,alphanumeric=(s,j,$)=>compareAlphanumeric(toString(s.getValue($)).toLowerCase(),toString(j.getValue($)).toLowerCase()),alphanumericCaseSensitive=(s,j,$)=>compareAlphanumeric(toString(s.getValue($)),toString(j.getValue($))),text=(s,j,$)=>compareBasic(toString(s.getValue($)).toLowerCase(),toString(j.getValue($)).toLowerCase()),textCaseSensitive=(s,j,$)=>compareBasic(toString(s.getValue($)),toString(j.getValue($))),datetime=(s,j,$)=>{const _e=s.getValue($),et=j.getValue($);return _e>et?1:_ecompareBasic(s.getValue($),j.getValue($));function compareBasic(s,j){return s===j?0:s>j?1:-1}function toString(s){return typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?"":String(s):typeof s=="string"?s:""}function compareAlphanumeric(s,j){const $=s.split(reSplitAlphaNumeric).filter(Boolean),_e=j.split(reSplitAlphaNumeric).filter(Boolean);for(;$.length&&_e.length;){const et=$.shift(),tt=_e.shift(),nt=parseInt(et,10),rt=parseInt(tt,10),ot=[nt,rt].sort();if(isNaN(ot[0])){if(et>tt)return 1;if(tt>et)return-1;continue}if(isNaN(ot[1]))return isNaN(nt)?-1:1;if(nt>rt)return 1;if(rt>nt)return-1}return $.length-_e.length}const sortingFns={alphanumeric,alphanumericCaseSensitive,text,textCaseSensitive,datetime,basic},RowSorting={getInitialState:s=>({sorting:[],...s}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:s=>({onSortingChange:makeStateUpdater("sorting",s),isMultiSortEvent:j=>j.shiftKey}),createColumn:(s,j)=>{s.getAutoSortingFn=()=>{const $=j.getFilteredRowModel().flatRows.slice(10);let _e=!1;for(const et of $){const tt=et==null?void 0:et.getValue(s.id);if(Object.prototype.toString.call(tt)==="[object Date]")return sortingFns.datetime;if(typeof tt=="string"&&(_e=!0,tt.split(reSplitAlphaNumeric).length>1))return sortingFns.alphanumeric}return _e?sortingFns.text:sortingFns.basic},s.getAutoSortDir=()=>{const $=j.getFilteredRowModel().flatRows[0];return typeof($==null?void 0:$.getValue(s.id))=="string"?"asc":"desc"},s.getSortingFn=()=>{var $,_e;if(!s)throw new Error;return isFunction(s.columnDef.sortingFn)?s.columnDef.sortingFn:s.columnDef.sortingFn==="auto"?s.getAutoSortingFn():($=(_e=j.options.sortingFns)==null?void 0:_e[s.columnDef.sortingFn])!=null?$:sortingFns[s.columnDef.sortingFn]},s.toggleSorting=($,_e)=>{const et=s.getNextSortingOrder(),tt=typeof $<"u"&&$!==null;j.setSorting(nt=>{const rt=nt==null?void 0:nt.find(lt=>lt.id===s.id),ot=nt==null?void 0:nt.findIndex(lt=>lt.id===s.id);let it=[],st,at=tt?$:et==="desc";if(nt!=null&&nt.length&&s.getCanMultiSort()&&_e?rt?st="toggle":st="add":nt!=null&&nt.length&&ot!==nt.length-1?st="replace":rt?st="toggle":st="replace",st==="toggle"&&(tt||et||(st="remove")),st==="add"){var ct;it=[...nt,{id:s.id,desc:at}],it.splice(0,it.length-((ct=j.options.maxMultiSortColCount)!=null?ct:Number.MAX_SAFE_INTEGER))}else st==="toggle"?it=nt.map(lt=>lt.id===s.id?{...lt,desc:at}:lt):st==="remove"?it=nt.filter(lt=>lt.id!==s.id):it=[{id:s.id,desc:at}];return it})},s.getFirstSortDir=()=>{var $,_e;return(($=(_e=s.columnDef.sortDescFirst)!=null?_e:j.options.sortDescFirst)!=null?$:s.getAutoSortDir()==="desc")?"desc":"asc"},s.getNextSortingOrder=$=>{var _e,et;const tt=s.getFirstSortDir(),nt=s.getIsSorted();return nt?nt!==tt&&((_e=j.options.enableSortingRemoval)==null||_e)&&(!($&&(et=j.options.enableMultiRemove)!=null)||et)?!1:nt==="desc"?"asc":"desc":tt},s.getCanSort=()=>{var $,_e;return(($=s.columnDef.enableSorting)!=null?$:!0)&&((_e=j.options.enableSorting)!=null?_e:!0)&&!!s.accessorFn},s.getCanMultiSort=()=>{var $,_e;return($=(_e=s.columnDef.enableMultiSort)!=null?_e:j.options.enableMultiSort)!=null?$:!!s.accessorFn},s.getIsSorted=()=>{var $;const _e=($=j.getState().sorting)==null?void 0:$.find(et=>et.id===s.id);return _e?_e.desc?"desc":"asc":!1},s.getSortIndex=()=>{var $,_e;return($=(_e=j.getState().sorting)==null?void 0:_e.findIndex(et=>et.id===s.id))!=null?$:-1},s.clearSorting=()=>{j.setSorting($=>$!=null&&$.length?$.filter(_e=>_e.id!==s.id):[])},s.getToggleSortingHandler=()=>{const $=s.getCanSort();return _e=>{$&&(_e.persist==null||_e.persist(),s.toggleSorting==null||s.toggleSorting(void 0,s.getCanMultiSort()?j.options.isMultiSortEvent==null?void 0:j.options.isMultiSortEvent(_e):!1))}}},createTable:s=>{s.setSorting=j=>s.options.onSortingChange==null?void 0:s.options.onSortingChange(j),s.resetSorting=j=>{var $,_e;s.setSorting(j?[]:($=(_e=s.initialState)==null?void 0:_e.sorting)!=null?$:[])},s.getPreSortedRowModel=()=>s.getGroupedRowModel(),s.getSortedRowModel=()=>(!s._getSortedRowModel&&s.options.getSortedRowModel&&(s._getSortedRowModel=s.options.getSortedRowModel(s)),s.options.manualSorting||!s._getSortedRowModel?s.getPreSortedRowModel():s._getSortedRowModel())}},builtInFeatures=[Headers$1,ColumnVisibility,ColumnOrdering,ColumnPinning,ColumnFaceting,ColumnFiltering,GlobalFaceting,GlobalFiltering,RowSorting,ColumnGrouping,RowExpanding,RowPagination,RowPinning,RowSelection,ColumnSizing];function createTable(s){var j,$;const _e=[...builtInFeatures,...(j=s._features)!=null?j:[]];let et={_features:_e};const tt=et._features.reduce((ct,lt)=>Object.assign(ct,lt.getDefaultOptions==null?void 0:lt.getDefaultOptions(et)),{}),nt=ct=>et.options.mergeOptions?et.options.mergeOptions(tt,ct):{...tt,...ct};let ot={...{},...($=s.initialState)!=null?$:{}};et._features.forEach(ct=>{var lt;ot=(lt=ct.getInitialState==null?void 0:ct.getInitialState(ot))!=null?lt:ot});const it=[];let st=!1;const at={_features:_e,options:{...tt,...s},initialState:ot,_queue:ct=>{it.push(ct),st||(st=!0,Promise.resolve().then(()=>{for(;it.length;)it.shift()();st=!1}).catch(lt=>setTimeout(()=>{throw lt})))},reset:()=>{et.setState(et.initialState)},setOptions:ct=>{const lt=functionalUpdate(ct,et.options);et.options=nt(lt)},getState:()=>et.options.state,setState:ct=>{et.options.onStateChange==null||et.options.onStateChange(ct)},_getRowId:(ct,lt,dt)=>{var ft;return(ft=et.options.getRowId==null?void 0:et.options.getRowId(ct,lt,dt))!=null?ft:`${dt?[dt.id,lt].join("."):lt}`},getCoreRowModel:()=>(et._getCoreRowModel||(et._getCoreRowModel=et.options.getCoreRowModel(et)),et._getCoreRowModel()),getRowModel:()=>et.getPaginationRowModel(),getRow:(ct,lt)=>{let dt=(lt?et.getPrePaginationRowModel():et.getRowModel()).rowsById[ct];if(!dt&&(dt=et.getCoreRowModel().rowsById[ct],!dt))throw new Error;return dt},_getDefaultColumnDef:memo(()=>[et.options.defaultColumn],ct=>{var lt;return ct=(lt=ct)!=null?lt:{},{header:dt=>{const ft=dt.header.column.columnDef;return ft.accessorKey?ft.accessorKey:ft.accessorFn?ft.id:null},cell:dt=>{var ft,gt;return(ft=(gt=dt.renderValue())==null||gt.toString==null?void 0:gt.toString())!=null?ft:null},...et._features.reduce((dt,ft)=>Object.assign(dt,ft.getDefaultColumnDef==null?void 0:ft.getDefaultColumnDef()),{}),...ct}},getMemoOptions(s,"debugColumns")),_getColumnDefs:()=>et.options.columns,getAllColumns:memo(()=>[et._getColumnDefs()],ct=>{const lt=function(dt,ft,gt){return gt===void 0&&(gt=0),dt.map(yt=>{const mt=createColumn(et,yt,gt,ft),pt=yt;return mt.columns=pt.columns?lt(pt.columns,mt,gt+1):[],mt})};return lt(ct)},getMemoOptions(s,"debugColumns")),getAllFlatColumns:memo(()=>[et.getAllColumns()],ct=>ct.flatMap(lt=>lt.getFlatColumns()),getMemoOptions(s,"debugColumns")),_getAllFlatColumnsById:memo(()=>[et.getAllFlatColumns()],ct=>ct.reduce((lt,dt)=>(lt[dt.id]=dt,lt),{}),getMemoOptions(s,"debugColumns")),getAllLeafColumns:memo(()=>[et.getAllColumns(),et._getOrderColumnsFn()],(ct,lt)=>{let dt=ct.flatMap(ft=>ft.getLeafColumns());return lt(dt)},getMemoOptions(s,"debugColumns")),getColumn:ct=>et._getAllFlatColumnsById()[ct]};Object.assign(et,at);for(let ct=0;ctmemo(()=>[s.options.data],j=>{const $={rows:[],flatRows:[],rowsById:{}},_e=function(et,tt,nt){tt===void 0&&(tt=0);const rt=[];for(let it=0;its._autoResetPageIndex()))}function getExpandedRowModel(){return s=>memo(()=>[s.getState().expanded,s.getPreExpandedRowModel(),s.options.paginateExpandedRows],(j,$,_e)=>!$.rows.length||j!==!0&&!Object.keys(j??{}).length||!_e?$:expandRows($),getMemoOptions(s.options,"debugTable"))}function expandRows(s){const j=[],$=_e=>{var et;j.push(_e),(et=_e.subRows)!=null&&et.length&&_e.getIsExpanded()&&_e.subRows.forEach($)};return s.rows.forEach($),{rows:j,flatRows:s.flatRows,rowsById:s.rowsById}}function filterRows(s,j,$){return $.options.filterFromLeafRows?filterRowModelFromLeafs(s,j,$):filterRowModelFromRoot(s,j,$)}function filterRowModelFromLeafs(s,j,$){var _e;const et=[],tt={},nt=(_e=$.options.maxLeafRowFilterDepth)!=null?_e:100,rt=function(ot,it){it===void 0&&(it=0);const st=[];for(let ct=0;ctmemo(()=>[s.getPreFilteredRowModel(),s.getState().columnFilters,s.getState().globalFilter],(j,$,_e)=>{if(!j.rows.length||!($!=null&&$.length)&&!_e){for(let ct=0;ct{var lt;const dt=s.getColumn(ct.id);if(!dt)return;const ft=dt.getFilterFn();ft&&et.push({id:ct.id,filterFn:ft,resolvedValue:(lt=ft.resolveFilterValue==null?void 0:ft.resolveFilterValue(ct.value))!=null?lt:ct.value})});const nt=($??[]).map(ct=>ct.id),rt=s.getGlobalFilterFn(),ot=s.getAllLeafColumns().filter(ct=>ct.getCanGlobalFilter());_e&&rt&&ot.length&&(nt.push("__global__"),ot.forEach(ct=>{var lt;tt.push({id:ct.id,filterFn:rt,resolvedValue:(lt=rt.resolveFilterValue==null?void 0:rt.resolveFilterValue(_e))!=null?lt:_e})}));let it,st;for(let ct=0;ct{lt.columnFiltersMeta[ft]=gt})}if(tt.length){for(let dt=0;dt{lt.columnFiltersMeta[ft]=gt})){lt.columnFilters.__global__=!0;break}}lt.columnFilters.__global__!==!0&&(lt.columnFilters.__global__=!1)}}const at=ct=>{for(let lt=0;lts._autoResetPageIndex()))}function getPaginationRowModel(s){return j=>memo(()=>[j.getState().pagination,j.getPrePaginationRowModel(),j.options.paginateExpandedRows?void 0:j.getState().expanded],($,_e)=>{if(!_e.rows.length)return _e;const{pageSize:et,pageIndex:tt}=$;let{rows:nt,flatRows:rt,rowsById:ot}=_e;const it=et*tt,st=it+et;nt=nt.slice(it,st);let at;j.options.paginateExpandedRows?at={rows:nt,flatRows:rt,rowsById:ot}:at=expandRows({rows:nt,flatRows:rt,rowsById:ot}),at.flatRows=[];const ct=lt=>{at.flatRows.push(lt),lt.subRows.length&<.subRows.forEach(ct)};return at.rows.forEach(ct),at},getMemoOptions(j.options,"debugTable"))}function getSortedRowModel(){return s=>memo(()=>[s.getState().sorting,s.getPreSortedRowModel()],(j,$)=>{if(!$.rows.length||!(j!=null&&j.length))return $;const _e=s.getState().sorting,et=[],tt=_e.filter(ot=>{var it;return(it=s.getColumn(ot.id))==null?void 0:it.getCanSort()}),nt={};tt.forEach(ot=>{const it=s.getColumn(ot.id);it&&(nt[ot.id]={sortUndefined:it.columnDef.sortUndefined,invertSorting:it.columnDef.invertSorting,sortingFn:it.getSortingFn()})});const rt=ot=>{const it=ot.map(st=>({...st}));return it.sort((st,at)=>{for(let lt=0;lt{var at;et.push(st),(at=st.subRows)!=null&&at.length&&(st.subRows=rt(st.subRows))}),it};return{rows:rt($.rows),flatRows:et,rowsById:$.rowsById}},getMemoOptions(s.options,"debugTable","getSortedRowModel",()=>s._autoResetPageIndex()))}/** * react-table * * Copyright (c) TanStack @@ -277,10 +277,10 @@ Message: ${_e}. * author : Adam Draper * license : MIT * http://adamwdraper.github.com/Numeral-js/ - */(function(s){(function(j,$){s.exports?s.exports=$():j.numeral=$()})(commonjsGlobal$1,function(){var j,$,_e="2.0.6",et={},tt={},nt={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},rt={currentLocale:nt.currentLocale,zeroFormat:nt.zeroFormat,nullFormat:nt.nullFormat,defaultFormat:nt.defaultFormat,scalePercentBy100:nt.scalePercentBy100};function ot(it,st){this._input=it,this._value=st}return j=function(it){var st,at,ct,lt;if(j.isNumeral(it))st=it.value();else if(it===0||typeof it>"u")st=0;else if(it===null||$.isNaN(it))st=null;else if(typeof it=="string")if(rt.zeroFormat&&it===rt.zeroFormat)st=0;else if(rt.nullFormat&&it===rt.nullFormat||!it.replace(/[^0-9]+/g,"").length)st=null;else{for(at in et)if(lt=typeof et[at].regexps.unformat=="function"?et[at].regexps.unformat():et[at].regexps.unformat,lt&&it.match(lt)){ct=et[at].unformat;break}ct=ct||j._.stringToNumber,st=ct(it)}else st=Number(it)||null;return new ot(it,st)},j.version=_e,j.isNumeral=function(it){return it instanceof ot},j._=$={numberToFormat:function(it,st,at){var ct=tt[j.options.currentLocale],lt=!1,dt=!1,pt=0,ht="",yt=1e12,gt=1e9,ft=1e6,xt=1e3,Mt="",jt=!1,wt,$t,zt,Ot,Pt,Ft,Nt;if(it=it||0,$t=Math.abs(it),j._.includes(st,"(")?(lt=!0,st=st.replace(/[\(|\)]/g,"")):(j._.includes(st,"+")||j._.includes(st,"-"))&&(Pt=j._.includes(st,"+")?st.indexOf("+"):it<0?st.indexOf("-"):-1,st=st.replace(/[\+|\-]/g,"")),j._.includes(st,"a")&&(wt=st.match(/a(k|m|b|t)?/),wt=wt?wt[1]:!1,j._.includes(st," a")&&(ht=" "),st=st.replace(new RegExp(ht+"a[kmbt]?"),""),$t>=yt&&!wt||wt==="t"?(ht+=ct.abbreviations.trillion,it=it/yt):$t=gt&&!wt||wt==="b"?(ht+=ct.abbreviations.billion,it=it/gt):$t=ft&&!wt||wt==="m"?(ht+=ct.abbreviations.million,it=it/ft):($t=xt&&!wt||wt==="k")&&(ht+=ct.abbreviations.thousand,it=it/xt)),j._.includes(st,"[.]")&&(dt=!0,st=st.replace("[.]",".")),zt=it.toString().split(".")[0],Ot=st.split(".")[1],Ft=st.indexOf(","),pt=(st.split(".")[0].split(",")[0].match(/0/g)||[]).length,Ot?(j._.includes(Ot,"[")?(Ot=Ot.replace("]",""),Ot=Ot.split("["),Mt=j._.toFixed(it,Ot[0].length+Ot[1].length,at,Ot[1].length)):Mt=j._.toFixed(it,Ot.length,at),zt=Mt.split(".")[0],j._.includes(Mt,".")?Mt=ct.delimiters.decimal+Mt.split(".")[1]:Mt="",dt&&Number(Mt.slice(1))===0&&(Mt="")):zt=j._.toFixed(it,0,at),ht&&!wt&&Number(zt)>=1e3&&ht!==ct.abbreviations.trillion)switch(zt=String(Number(zt)/1e3),ht){case ct.abbreviations.thousand:ht=ct.abbreviations.million;break;case ct.abbreviations.million:ht=ct.abbreviations.billion;break;case ct.abbreviations.billion:ht=ct.abbreviations.trillion;break}if(j._.includes(zt,"-")&&(zt=zt.slice(1),jt=!0),zt.length0;mt--)zt="0"+zt;return Ft>-1&&(zt=zt.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+ct.delimiters.thousands)),st.indexOf(".")===0&&(zt=""),Nt=zt+Mt+(ht||""),lt?Nt=(lt&&jt?"(":"")+Nt+(lt&&jt?")":""):Pt>=0?Nt=Pt===0?(jt?"-":"+")+Nt:Nt+(jt?"-":"+"):jt&&(Nt="-"+Nt),Nt},stringToNumber:function(it){var st=tt[rt.currentLocale],at=it,ct={thousand:3,million:6,billion:9,trillion:12},lt,dt,pt;if(rt.zeroFormat&&it===rt.zeroFormat)dt=0;else if(rt.nullFormat&&it===rt.nullFormat||!it.replace(/[^0-9]+/g,"").length)dt=null;else{dt=1,st.delimiters.decimal!=="."&&(it=it.replace(/\./g,"").replace(st.delimiters.decimal,"."));for(lt in ct)if(pt=new RegExp("[^a-zA-Z]"+st.abbreviations[lt]+"(?:\\)|(\\"+st.currency.symbol+")?(?:\\))?)?$"),at.match(pt)){dt*=Math.pow(10,ct[lt]);break}dt*=(it.split("-").length+Math.min(it.split("(").length-1,it.split(")").length-1))%2?1:-1,it=it.replace(/[^0-9\.]+/g,""),dt*=Number(it)}return dt},isNaN:function(it){return typeof it=="number"&&isNaN(it)},includes:function(it,st){return it.indexOf(st)!==-1},insert:function(it,st,at){return it.slice(0,at)+st+it.slice(at)},reduce:function(it,st){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof st!="function")throw new TypeError(st+" is not a function");var at=Object(it),ct=at.length>>>0,lt=0,dt;if(arguments.length===3)dt=arguments[2];else{for(;lt=ct)throw new TypeError("Reduce of empty array with no initial value");dt=at[lt++]}for(;ltct?st:ct},1)},toFixed:function(it,st,at,ct){var lt=it.toString().split("."),dt=st-(ct||0),pt,ht,yt,gt;return lt.length===2?pt=Math.min(Math.max(lt[1].length,dt),st):pt=dt,yt=Math.pow(10,pt),gt=(at(it+"e+"+pt)/yt).toFixed(pt),ct>st-pt&&(ht=new RegExp("\\.?0{1,"+(ct-(st-pt))+"}$"),gt=gt.replace(ht,"")),gt}},j.options=rt,j.formats=et,j.locales=tt,j.locale=function(it){return it&&(rt.currentLocale=it.toLowerCase()),rt.currentLocale},j.localeData=function(it){if(!it)return tt[rt.currentLocale];if(it=it.toLowerCase(),!tt[it])throw new Error("Unknown locale : "+it);return tt[it]},j.reset=function(){for(var it in nt)rt[it]=nt[it]},j.zeroFormat=function(it){rt.zeroFormat=typeof it=="string"?it:null},j.nullFormat=function(it){rt.nullFormat=typeof it=="string"?it:null},j.defaultFormat=function(it){rt.defaultFormat=typeof it=="string"?it:"0.0"},j.register=function(it,st,at){if(st=st.toLowerCase(),this[it+"s"][st])throw new TypeError(st+" "+it+" already registered.");return this[it+"s"][st]=at,at},j.validate=function(it,st){var at,ct,lt,dt,pt,ht,yt,gt;if(typeof it!="string"&&(it+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",it)),it=it.trim(),it.match(/^\d+$/))return!0;if(it==="")return!1;try{yt=j.localeData(st)}catch{yt=j.localeData(j.locale())}return lt=yt.currency.symbol,pt=yt.abbreviations,at=yt.delimiters.decimal,yt.delimiters.thousands==="."?ct="\\.":ct=yt.delimiters.thousands,gt=it.match(/^[^\d]+/),gt!==null&&(it=it.substr(1),gt[0]!==lt)||(gt=it.match(/[^\d]+$/),gt!==null&&(it=it.slice(0,-1),gt[0]!==pt.thousand&>[0]!==pt.million&>[0]!==pt.billion&>[0]!==pt.trillion))?!1:(ht=new RegExp(ct+"{2}"),it.match(/[^\d.,]/g)?!1:(dt=it.split(at),dt.length>2?!1:dt.length<2?!!dt[0].match(/^\d+.*\d$/)&&!dt[0].match(ht):dt[0].length===1?!!dt[0].match(/^\d+$/)&&!dt[0].match(ht)&&!!dt[1].match(/^\d+$/):!!dt[0].match(/^\d+.*\d$/)&&!dt[0].match(ht)&&!!dt[1].match(/^\d+$/)))},j.fn=ot.prototype={clone:function(){return j(this)},format:function(it,st){var at=this._value,ct=it||rt.defaultFormat,lt,dt,pt;if(st=st||Math.round,at===0&&rt.zeroFormat!==null)dt=rt.zeroFormat;else if(at===null&&rt.nullFormat!==null)dt=rt.nullFormat;else{for(lt in et)if(ct.match(et[lt].regexps.format)){pt=et[lt].format;break}pt=pt||j._.numberToFormat,dt=pt(at,ct,st)}return dt},value:function(){return this._value},input:function(){return this._input},set:function(it){return this._value=Number(it),this},add:function(it){var st=$.correctionFactor.call(null,this._value,it);function at(ct,lt,dt,pt){return ct+Math.round(st*lt)}return this._value=$.reduce([this._value,it],at,0)/st,this},subtract:function(it){var st=$.correctionFactor.call(null,this._value,it);function at(ct,lt,dt,pt){return ct-Math.round(st*lt)}return this._value=$.reduce([it],at,Math.round(this._value*st))/st,this},multiply:function(it){function st(at,ct,lt,dt){var pt=$.correctionFactor(at,ct);return Math.round(at*pt)*Math.round(ct*pt)/Math.round(pt*pt)}return this._value=$.reduce([this._value,it],st,1),this},divide:function(it){function st(at,ct,lt,dt){var pt=$.correctionFactor(at,ct);return Math.round(at*pt)/Math.round(ct*pt)}return this._value=$.reduce([this._value,it],st),this},difference:function(it){return Math.abs(j(this._value).subtract(it).value())}},j.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(it){var st=it%10;return~~(it%100/10)===1?"th":st===1?"st":st===2?"nd":st===3?"rd":"th"},currency:{symbol:"$"}}),function(){j.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(it,st,at){var ct=j._.includes(st," BPS")?" ":"",lt;return it=it*1e4,st=st.replace(/\s?BPS/,""),lt=j._.numberToFormat(it,st,at),j._.includes(lt,")")?(lt=lt.split(""),lt.splice(-1,0,ct+"BPS"),lt=lt.join("")):lt=lt+ct+"BPS",lt},unformat:function(it){return+(j._.stringToNumber(it)*1e-4).toFixed(15)}})}(),function(){var it={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},st={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},at=it.suffixes.concat(st.suffixes.filter(function(lt){return it.suffixes.indexOf(lt)<0})),ct=at.join("|");ct="("+ct.replace("B","B(?!PS)")+")",j.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(ct)},format:function(lt,dt,pt){var ht,yt=j._.includes(dt,"ib")?st:it,gt=j._.includes(dt," b")||j._.includes(dt," ib")?" ":"",ft,xt,Mt;for(dt=dt.replace(/\s?i?b/,""),ft=0;ft<=yt.suffixes.length;ft++)if(xt=Math.pow(yt.base,ft),Mt=Math.pow(yt.base,ft+1),lt===null||lt===0||lt>=xt&<0&&(lt=lt/xt);break}return ht=j._.numberToFormat(lt,dt,pt),ht+gt},unformat:function(lt){var dt=j._.stringToNumber(lt),pt,ht;if(dt){for(pt=it.suffixes.length-1;pt>=0;pt--){if(j._.includes(lt,it.suffixes[pt])){ht=Math.pow(it.base,pt);break}if(j._.includes(lt,st.suffixes[pt])){ht=Math.pow(st.base,pt);break}}dt*=ht||1}return dt}})}(),function(){j.register("format","currency",{regexps:{format:/(\$)/},format:function(it,st,at){var ct=j.locales[j.options.currentLocale],lt={before:st.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:st.match(/([\+|\-|\)|\s|\$]*)$/)[0]},dt,pt,ht;for(st=st.replace(/\s?\$\s?/,""),dt=j._.numberToFormat(it,st,at),it>=0?(lt.before=lt.before.replace(/[\-\(]/,""),lt.after=lt.after.replace(/[\-\)]/,"")):it<0&&!j._.includes(lt.before,"-")&&!j._.includes(lt.before,"(")&&(lt.before="-"+lt.before),ht=0;ht=0;ht--)switch(pt=lt.after[ht],pt){case"$":dt=ht===lt.after.length-1?dt+ct.currency.symbol:j._.insert(dt,ct.currency.symbol,-(lt.after.length-(1+ht)));break;case" ":dt=ht===lt.after.length-1?dt+" ":j._.insert(dt," ",-(lt.after.length-(1+ht)+ct.currency.symbol.length-1));break}return dt}})}(),function(){j.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(it,st,at){var ct,lt=typeof it=="number"&&!j._.isNaN(it)?it.toExponential():"0e+0",dt=lt.split("e");return st=st.replace(/e[\+|\-]{1}0/,""),ct=j._.numberToFormat(Number(dt[0]),st,at),ct+"e"+dt[1]},unformat:function(it){var st=j._.includes(it,"e+")?it.split("e+"):it.split("e-"),at=Number(st[0]),ct=Number(st[1]);ct=j._.includes(it,"e-")?ct*=-1:ct;function lt(dt,pt,ht,yt){var gt=j._.correctionFactor(dt,pt),ft=dt*gt*(pt*gt)/(gt*gt);return ft}return j._.reduce([at,Math.pow(10,ct)],lt,1)}})}(),function(){j.register("format","ordinal",{regexps:{format:/(o)/},format:function(it,st,at){var ct=j.locales[j.options.currentLocale],lt,dt=j._.includes(st," o")?" ":"";return st=st.replace(/\s?o/,""),dt+=ct.ordinal(it),lt=j._.numberToFormat(it,st,at),lt+dt}})}(),function(){j.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(it,st,at){var ct=j._.includes(st," %")?" ":"",lt;return j.options.scalePercentBy100&&(it=it*100),st=st.replace(/\s?\%/,""),lt=j._.numberToFormat(it,st,at),j._.includes(lt,")")?(lt=lt.split(""),lt.splice(-1,0,ct+"%"),lt=lt.join("")):lt=lt+ct+"%",lt},unformat:function(it){var st=j._.stringToNumber(it);return j.options.scalePercentBy100?st*.01:st}})}(),function(){j.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(it,st,at){var ct=Math.floor(it/60/60),lt=Math.floor((it-ct*60*60)/60),dt=Math.round(it-ct*60*60-lt*60);return ct+":"+(lt<10?"0"+lt:lt)+":"+(dt<10?"0"+dt:dt)},unformat:function(it){var st=it.split(":"),at=0;return st.length===3?(at=at+Number(st[0])*60*60,at=at+Number(st[1])*60,at=at+Number(st[2])):st.length===2&&(at=at+Number(st[0])*60,at=at+Number(st[1])),Number(at)}})}(),j})})(numeral$1);var numeralExports=numeral$1.exports;const numeral=getDefaultExportFromCjs$1(numeralExports);function c(s,j,$){var _e=this,et=reactExports.useRef(null),tt=reactExports.useRef(0),nt=reactExports.useRef(null),rt=reactExports.useRef([]),ot=reactExports.useRef(),it=reactExports.useRef(),st=reactExports.useRef(s),at=reactExports.useRef(!0);st.current=s;var ct=typeof window<"u",lt=!j&&j!==0&&ct;if(typeof s!="function")throw new TypeError("Expected a function");j=+j||0;var dt=!!($=$||{}).leading,pt=!("trailing"in $)||!!$.trailing,ht="maxWait"in $,yt="debounceOnServer"in $&&!!$.debounceOnServer,gt=ht?Math.max(+$.maxWait||0,j):null;reactExports.useEffect(function(){return at.current=!0,function(){at.current=!1}},[]);var ft=reactExports.useMemo(function(){var xt=function(Ot){var Pt=rt.current,Ft=ot.current;return rt.current=ot.current=null,tt.current=Ot,it.current=st.current.apply(Ft,Pt)},Mt=function(Ot,Pt){lt&&cancelAnimationFrame(nt.current),nt.current=lt?requestAnimationFrame(Ot):setTimeout(Ot,Pt)},jt=function(Ot){if(!at.current)return!1;var Pt=Ot-et.current;return!et.current||Pt>=j||Pt<0||ht&&Ot-tt.current>=gt},wt=function(Ot){return nt.current=null,pt&&rt.current?xt(Ot):(rt.current=ot.current=null,it.current)},$t=function Ot(){var Pt=Date.now();if(jt(Pt))return wt(Pt);if(at.current){var Ft=j-(Pt-et.current),Nt=ht?Math.min(Ft,gt-(Pt-tt.current)):Ft;Mt(Ot,Nt)}},zt=function(){if(ct||yt){var Ot=Date.now(),Pt=jt(Ot);if(rt.current=[].slice.call(arguments),ot.current=_e,et.current=Ot,Pt){if(!nt.current&&at.current)return tt.current=et.current,Mt($t,j),dt?xt(et.current):it.current;if(ht)return Mt($t,j),xt(et.current)}return nt.current||Mt($t,j),it.current}};return zt.cancel=function(){nt.current&&(lt?cancelAnimationFrame(nt.current):clearTimeout(nt.current)),tt.current=0,rt.current=et.current=ot.current=nt.current=null},zt.isPending=function(){return!!nt.current},zt.flush=function(){return nt.current?wt(Date.now()):it.current},zt},[dt,ht,j,gt,pt,lt,ct,yt]);return ft}function i(s,j){return s===j}function a(s,j){return j}function o(s,j,$){var _e=i,et=reactExports.useReducer(a,s),tt=et[0],nt=et[1],rt=c(reactExports.useCallback(function(it){return nt(it)},[nt]),j,$),ot=reactExports.useRef(s);return _e(ot.current,s)||(rt(s),ot.current=s),[tt,rt]}const PREFIX="data:image/svg+xml;base64,";function chainToIcon(s){if(s==="Solana")return PREFIX+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5NiIgaGVpZ2h0PSI4NCIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSJ1cmwoI2IpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNy4zNjggNjQuMDUyQTMuMjE0IDMuMjE0IDAgMCAxIDE5Ljc0NCA2M2w3My4zMTIuMDZhMS42MTIgMS42MTIgMCAwIDEgMS4xODggMi42OThsLTE1LjYxMiAxNy4xOUEzLjIxMyAzLjIxMyAwIDAgMSA3Ni4yNTQgODRsLTczLjMxLS4wNmExLjYxMSAxLjYxMSAwIDAgMS0xLjE4OC0yLjY5OGwxNS42MTItM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0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTUuOTk5OSAwQzExLjM3OTUgMCAwIDExLjM3OTIgMCAxNS45OTk5QzAgMjAuNjIwNiAxMS4zNzk1IDMyIDE1Ljk5OTkgMzJDMjAuNjIwMyAzMiAzMiAyMC42MjA0IDMyIDE1Ljk5OTlDMzIgMTEuMzc5NCAyMC42MjA1IDAgMTUuOTk5OSAwWk0xMy41MDY2IDI1LjE0OTJDMTEuNTU4MiAyNC42MTgzIDYuMzE5ODEgMTUuNDU1IDYuODUwODMgMTMuNTA2NkM3LjM4MTg1IDExLjU1ODEgMTYuNTQ1IDYuMzE5NzkgMTguNDkzMyA2Ljg1MDhDMjAuNDQxOCA3LjM4MTczIDI1LjY4MDIgMTYuNTQ0OSAyNS4xNDkyIDE4LjQ5MzRDMjQuNjE4MiAyMC40NDE4IDE1LjQ1NSAyNS42ODAyIDEzLjUwNjYgMjUuMTQ5MloiIGZpbGw9IiM4MzZFRjkiLz48L3N2Zz4=";{const j=s;return""}}const WORMCHAIN_URL="https://gateway.mainnet.xlabs.xyz",TESTNET_WORMCHAIN_URL="https://gateway.testnet.xlabs.xyz",WORMHOLE_RPC_HOSTS=["https://wormhole-v2-mainnet-api.mcf.rocks","https://wormhole-v2-mainnet-api.chainlayer.network","https://wormhole-v2-mainnet-api.staking.fund","https://guardian.mainnet.xlabs.xyz"],CHAIN_ICON_MAP=chainIds.reduce((s,j)=>(s[j]=chainToIcon(chainIdToChain(j)),s),{});function uint32ToString(s){const j=s<128?1:s<16384?2:s<2097152?3:s<268435456?4:5,$=new Array(j);let _e=0;for(;s>127;)$[_e++]=s&127|128,s>>>=7;return $[_e]=s,buffer.Buffer.from($).toString("hex")}function indexOutOfRange(s,j){return RangeError("index out of range: "+s.pos+" + "+(j||1)+" > "+s.len)}class BinaryReader{constructor(j){Mn(this,"buf");Mn(this,"pos");Mn(this,"type");Mn(this,"len");this.buf=j,this.pos=0,this.type=0,this.len=this.buf.length}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}varint32read(){let j=this.buf[this.pos++],$=j&127;if(!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<7,!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<14,!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<21,!(j&128))return this.assertBounds(),$;j=this.buf[this.pos++],$|=(j&15)<<28;for(let _e=5;j&128&&_e<10;_e++)j=this.buf[this.pos++];if(j&128)throw new Error("invalid varint");return this.assertBounds(),$>>>0}skip(j){if(typeof j=="number"){if(this.pos+j>this.len)throw indexOutOfRange(this,j);this.pos+=j}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this}skipType(j){switch(j){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(j=this.uint32()&7)!==4;)this.skipType(j);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+j+" at offset "+this.pos)}return this}uint32(){return this.varint32read()}bytes(){const j=this.uint32(),$=this.pos;return this.pos+=j,this.assertBounds(),this.buf.subarray($,$+j)}}function createBaseQuerySmartContractStateResponse(){return{data:new Uint8Array}}const QuerySmartContractStateResponse={decode(s,j){const $=s instanceof BinaryReader?s:new BinaryReader(s);let _e=j===void 0?$.len:$.pos+j;const et=createBaseQuerySmartContractStateResponse();for(;$.pos<_e;){const tt=$.uint32();switch(tt>>>3){case 1:et.data=$.bytes();break;default:$.skipType(tt&7);break}}return et}};function fromUtf8(s,j=!1){const $=!j;return new TextDecoder("utf-8",{fatal:$}).decode(s)}async function queryContractSmart(s,j,$){const _e=buffer.Buffer.from(j).toString("hex"),et=uint32ToString(_e.length/2),tt=buffer.Buffer.from(JSON.stringify($)).toString("hex"),nt=uint32ToString(tt.length/2),rt=`0a${et}${_e}12${nt}${tt}`,ot=await axios$2.post(s,{jsonrpc:"2.0",id:Math.floor(Math.random()*Number.MAX_SAFE_INTEGER),method:"abci_query",params:{path:"/cosmwasm.wasm.v1.Query/SmartContractState",data:rt,prove:!1}});if(!ot.data.result.response.value)throw ot.data.result.response.code&&ot.data.result.response.log?new Error(`Query failed with (${ot.data.result.response.code}) ${ot.data.result.response.log}`):new Error("Query failed with unknown error");const{data:it}=QuerySmartContractStateResponse.decode(buffer.Buffer.from(ot.data.result.response.value,"base64"));let st;try{st=fromUtf8(it)}catch(at){throw new Error(`Could not UTF-8 decode smart query response from contract: ${at}`)}try{return JSON.parse(st)}catch(at){throw new Error(`Could not JSON parse smart query response from contract: ${at}`)}}const POLL_INTERVAL_MS$2=1*60*1e3,PAGE_LIMIT$1=2e3,useGetAccountantAccounts=s=>{const{currentNetwork:j}=useNetworkContext(),[$,_e]=reactExports.useState([]);return reactExports.useEffect(()=>{if(j.name!=="Mainnet"&&j.name!=="Testnet")return;let et=!1;return(async()=>{for(;!et;){try{let tt=[],nt,rt;do nt=await queryContractSmart(j.name==="Mainnet"?WORMCHAIN_URL:TESTNET_WORMCHAIN_URL,s,{all_accounts:{limit:PAGE_LIMIT$1,start_after:rt}}),tt=[...tt,...nt.accounts],rt=nt.accounts.length&&nt.accounts[nt.accounts.length-1].key;while(nt.accounts.length===PAGE_LIMIT$1);et||_e(tt)}catch(tt){et||_e([]),console.error(tt)}et||await new Promise(tt=>setTimeout(tt,POLL_INTERVAL_MS$2))}})(),()=>{et=!0}},[j,s]),$},POLL_INTERVAL_MS$1=10*1e3,PAGE_LIMIT=2e3,useGetAccountantPendingTransfers=s=>{const{currentNetwork:j}=useNetworkContext(),[$,_e]=reactExports.useState([]);return reactExports.useEffect(()=>{if(j.name!=="Mainnet"&&j.name!=="Testnet")return;let et=!1;return(async()=>{for(;!et;){try{let tt=[],nt,rt;do nt=await queryContractSmart(j.name==="Mainnet"?WORMCHAIN_URL:TESTNET_WORMCHAIN_URL,s,{all_pending_transfers:{limit:PAGE_LIMIT,start_after:rt}}),tt=[...tt,...nt.pending],rt=nt.pending.length&&nt.pending[nt.pending.length-1].key;while(nt.pending.length===PAGE_LIMIT);et||_e(tt)}catch(tt){et||_e([]),console.error(tt)}et||await new Promise(tt=>setTimeout(tt,POLL_INTERVAL_MS$1))}})(),()=>{et=!0}},[j,s]),$};function ExplorerTxHash({chainId:s,rawTxHash:j}){const $=useCurrentEnvironment(),_e=chainIdToChain.get(s);if(!_e)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:j});const et=dist.getExplorerTxHash($,chainToChainId(_e),j);return jsxRuntimeExports.jsx(Link$1,{href:dist.explorerTx($,chainToChainId(_e),et),target:"_blank",rel:"noopener noreferrer",children:et})}function Table({table:s,noWrap:j=!1,paginated:$=!1,showRowCount:_e=!1,conditionalRowStyle:et}){const tt=useTheme$1();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TableContainer,{children:jsxRuntimeExports.jsxs(Table$1,{size:"small",children:[jsxRuntimeExports.jsx(TableHead,{children:s.getHeaderGroups().map(nt=>jsxRuntimeExports.jsx(TableRow,{children:nt.headers.map(rt=>jsxRuntimeExports.jsx(TableCell,{sx:rt.column.getCanSort()?{cursor:"pointer",userSelect:"select-none",":hover":{background:tt.palette.mode==="dark"?grey[800]:grey[100]}}:{},onClick:rt.column.getToggleSortingHandler(),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignContent:"center",sx:j?{whiteSpace:"nowrap"}:void 0,children:[rt.isPlaceholder?null:flexRender(rt.column.columnDef.header,rt.getContext()),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{display:"flex",alignItems:"center",children:{asc:jsxRuntimeExports.jsx(ArrowUpward,{fontSize:"small",sx:{ml:.5}}),desc:jsxRuntimeExports.jsx(ArrowDownward,{fontSize:"small",sx:{ml:.5}})}[rt.column.getIsSorted()]??null})]})},rt.id))},nt.id))}),jsxRuntimeExports.jsx(TableBody,{children:s.getRowModel().rows.map(nt=>jsxRuntimeExports.jsx(TableRow,{sx:et?et(nt.original):{},children:nt.getVisibleCells().map(rt=>jsxRuntimeExports.jsx(TableCell,{sx:j?{whiteSpace:"nowrap"}:void 0,children:flexRender(rt.column.columnDef.cell,rt.getContext())},rt.id))},nt.id))})]})}),$||_e?jsxRuntimeExports.jsx(Table$1,{size:"small",children:jsxRuntimeExports.jsx(TableFooter,{children:jsxRuntimeExports.jsx(TableRow,{children:jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsxs(Box,{children:[s.getCoreRowModel().rows.length," Rows"]}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),$?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Select,{margin:"dense",size:"small",value:s.getState().pagination.pageSize,onChange:nt=>{s.setPageSize(Number(nt.target.value))},sx:{fontSize:"10px",mr:.5,"& > div":{py:"6px"}},children:[10,25,50,100].map(nt=>jsxRuntimeExports.jsxs(MenuItem,{value:nt,children:["Show ",nt]},nt))}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>s.setPageIndex(0),disabled:!s.getCanPreviousPage(),size:"small",children:jsxRuntimeExports.jsx(FirstPage,{fontSize:"small"})}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>s.previousPage(),disabled:!s.getCanPreviousPage(),size:"small",children:jsxRuntimeExports.jsx(NavigateBefore,{fontSize:"small"})}),jsxRuntimeExports.jsxs(Box,{children:["Page ",s.getState().pagination.pageIndex+1," of ",s.getPageCount()]}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>s.nextPage(),disabled:!s.getCanNextPage(),size:"small",children:jsxRuntimeExports.jsx(NavigateNext,{fontSize:"small"})}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>s.setPageIndex(s.getPageCount()-1),disabled:!s.getCanNextPage(),size:"small",children:jsxRuntimeExports.jsx(LastPage,{fontSize:"small"})})]}):null]})})})})}):null]})}const NTT_ACCOUNTANT_TOKEN_ADDRESS_OVERRIDE={1:{cf5f3614e2cd9b374558f35c7618b25f0d306d5e749b7d29cc030a1a15686238:"6927fdc01ea906f96d7137874cdd7adad00ca35764619310e54196c781d84d5b"}};function getNumSignatures(s){let j=Number(s),$=0;for(;j>0;)$+=1,j=j&j-1;return $}function getSignatureBits(s){return Number(s).toString(2).padStart(dist.GUARDIAN_SET_4.length,"0")}function getGuardiansFromSignatures(s){const j=[],$=getSignatureBits(s);for(let _e=0;_e<$.length;_e++)$[_e]==="1"&&j.push(dist.GUARDIAN_SET_4[$.length-1-_e].name);return j.reverse().join(", ")}function getMissingGuardiansFromSignatures(s){const j=[],$=getSignatureBits(s);for(let _e=0;_e<$.length;_e++)$[_e]==="0"&&j.push(dist.GUARDIAN_SET_4[$.length-1-_e].name);return j.reverse().join(", ")}const calculatePercent$2=s=>{try{return s.numSigned/s.outOf*100}catch{return 0}},guardianSigningColumnHelper=createColumnHelper(),guardianSigningColumns=[guardianSigningColumnHelper.accessor("name",{header:()=>"Guardian",sortingFn:"text"}),guardianSigningColumnHelper.accessor("numSigned",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Signed"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:[s.getValue()," / ",s.row.original.outOf]})}),guardianSigningColumnHelper.accessor(calculatePercent$2,{id:"progress",header:()=>"Progress",cell:s=>jsxRuntimeExports.jsx(Tooltip,{title:`${s.getValue().toFixed(2)}%`,arrow:!0,children:jsxRuntimeExports.jsx(LinearProgress,{variant:"determinate",value:s.getValue(),color:s.getValue()>90?"success":s.getValue()>50?"warning":"error"})})})],pendingTransferColumnHelper=createColumnHelper(),pendingTransferColumns=[pendingTransferColumnHelper.accessor("key.emitter_chain",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text"}),pendingTransferColumnHelper.accessor("key.emitter_address",{header:()=>"Emitter"}),pendingTransferColumnHelper.accessor("key.sequence",{header:()=>"Sequence"}),pendingTransferColumnHelper.accessor("data.0.tx_hash",{header:()=>"Tx",cell:s=>jsxRuntimeExports.jsx(ExplorerTxHash,{chainId:s.row.original.key.emitter_chain,rawTxHash:"0x"+buffer.Buffer.from(s.getValue(),"base64").toString("hex")})}),pendingTransferColumnHelper.accessor("data.0.signatures",{header:()=>"Signatures",cell:s=>jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Typography,{gutterBottom:!0,sx:{mb:.5},children:"Signed"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:getGuardiansFromSignatures(s.getValue())}),jsxRuntimeExports.jsx(Typography,{gutterBottom:!0,sx:{mt:1.5,mb:.5},children:"Missing"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:getMissingGuardiansFromSignatures(s.getValue())}),jsxRuntimeExports.jsx(Typography,{gutterBottom:!0,sx:{mt:1.5,mb:.5},children:"Bits"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:getSignatureBits(s.getValue())})]}),children:jsxRuntimeExports.jsx(Box,{children:getNumSignatures(s.getValue())})})}),pendingTransferColumnHelper.accessor("isEnqueuedInGov",{header:()=>"Governed",cell:s=>s.getValue()?jsxRuntimeExports.jsx("span",{role:"img",children:"✅"}):null})],accountsColumnHelper=createColumnHelper(),accountsColumns=[accountsColumnHelper.accessor("key.chain_id",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text",enableGlobalFilter:!1}),accountsColumnHelper.accessor("key.token_chain",{header:()=>"Token Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text",enableGlobalFilter:!1}),accountsColumnHelper.accessor("tokenData.native_address",{header:()=>"Native Address"}),accountsColumnHelper.accessor("tokenData.name",{header:()=>"Name"}),accountsColumnHelper.accessor("tokenData.symbol",{header:()=>"Symbol"}),accountsColumnHelper.accessor("tokenData.coin_gecko_coin_id",{header:()=>"Coin Gecko ID"}),accountsColumnHelper.accessor("tokenData.price_usd",{header:()=>"Price",cell:s=>s.getValue()?numeral(s.getValue()).format("$0,0.0000"):"",enableGlobalFilter:!1}),accountsColumnHelper.accessor("adjBalance",{header:()=>"Adjusted Balance",cell:s=>s.getValue()<1?s.getValue().toFixed(4):numeral(s.getValue()).format("0,0.0000"),enableGlobalFilter:!1}),accountsColumnHelper.accessor("tvlTvm",{header:()=>"TVL/TVM",cell:s=>s.getValue()<1?`$${s.getValue().toFixed(4)}`:numeral(s.getValue()).format("$0,0.0000"),enableGlobalFilter:!1}),accountsColumnHelper.accessor("tokenData.decimals",{header:()=>"Decimals",enableGlobalFilter:!1}),accountsColumnHelper.accessor("key.token_address",{header:()=>"Token Address"}),accountsColumnHelper.accessor("balance",{header:()=>"Raw Balance",enableGlobalFilter:!1})],overviewColumnHelper=createColumnHelper(),overviewColumns=[overviewColumnHelper.accessor("chainId",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text"}),overviewColumnHelper.accessor("tvl",{header:()=>"Total Value Locked",cell:s=>s.getValue()<1?`$${s.getValue().toFixed(4)}`:numeral(s.getValue()).format("$0,0.0000")}),overviewColumnHelper.accessor("tvm",{header:()=>"Total Value Minted",cell:s=>s.getValue()<1?`$${s.getValue().toFixed(4)}`:numeral(s.getValue()).format("$0,0.0000")})];function AccountantSearch(){const[s,j]=reactExports.useState(),[$,_e]=reactExports.useState(""),[et,tt]=reactExports.useState(),[nt,rt]=reactExports.useState(null),ot=reactExports.useCallback(dt=>{dt.target.value||j(void 0);try{const pt=parseInt(dt.target.value);isNaN(pt)||j(pt)}catch{}},[]),it=reactExports.useCallback(dt=>{_e(dt.target.value)},[]),st=reactExports.useCallback(dt=>{dt.target.value||tt(void 0);try{const pt=parseInt(dt.target.value);isNaN(pt)||tt(pt)}catch{}},[]),[at]=o(s,500),[ct]=o($,500),[lt]=o(et,500);return reactExports.useEffect(()=>{if(at&&ct&<){rt(null);let dt=!1;return(async()=>{try{const pt=await queryContractSmart(WORMCHAIN_URL,dist.ACCOUNTANT_CONTRACT_ADDRESS,{transfer_status:{emitter_chain:at,emitter_address:ct,sequence:lt}});dt||rt(pt)}catch(pt){dt||rt({}),console.error(pt)}})(),()=>{dt=!0}}},[at,ct,lt]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"Transfer Key"}),jsxRuntimeExports.jsx(TextField,{sx:{mt:1},label:"Chain",fullWidth:!0,onChange:ot,value:s,size:"small"}),jsxRuntimeExports.jsx(TextField,{sx:{mt:1},label:"Address",fullWidth:!0,onChange:it,value:$,size:"small"}),jsxRuntimeExports.jsx(TextField,{sx:{mt:1},label:"Sequence",fullWidth:!0,onChange:st,value:et,size:"small"}),at&&ct&<?nt?jsxRuntimeExports.jsx("pre",{children:JSON.stringify(nt,void 0,2)}):jsxRuntimeExports.jsx(CircularProgress,{sx:{mt:2}}):jsxRuntimeExports.jsx(Typography,{sx:{mt:2},children:"Enter a transfer key above"})]})}const MemoizedAccountantSearch=reactExports.memo(AccountantSearch);function Accountant({governorInfo:s,tokenData:j,accountantAddress:$,isNTT:_e}){const[et,tt]=reactExports.useState(!1),nt=reactExports.useCallback(bt=>{bt.stopPropagation(),tt(!0)},[]),rt=reactExports.useCallback(bt=>{tt(!1)},[]),ot=useGetAccountantPendingTransfers($),it=useGetAccountantAccounts($),st=!!s,at=reactExports.useMemo(()=>ot.map(bt=>({...bt,isEnqueuedInGov:st&&!!s.enqueuedVAAs.find(St=>St.emitterChain===bt.key.emitter_chain&&St.emitterAddress===bt.key.emitter_address&&St.sequence===bt.key.sequence.toString())})),[ot,st,s==null?void 0:s.enqueuedVAAs]),ct=reactExports.useMemo(()=>{const bt=dist.GUARDIAN_SET_4.map(St=>({name:St.name,numSigned:0,outOf:ot.length}));for(const St of ot){const vt=getSignatureBits(St.data[0].signatures);for(let At=0;Atit.map(bt=>{var Lt;let St=bt.key.token_chain,vt=bt.key.token_address;_e&&(vt=((Lt=NTT_ACCOUNTANT_TOKEN_ADDRESS_OVERRIDE[St])==null?void 0:Lt[vt])||vt);const At=j==null?void 0:j[`${St}/${vt}`];if(!At)return{...bt,adjBalance:0,tvlTvm:0,tokenData:{coin_gecko_coin_id:"",decimals:0,name:"",native_address:"",price_usd:"",symbol:"",token_address:"",token_chain:0}};const Tt=Number(bt.balance)/10**Math.min(At.decimals,8),Dt=Tt*Number(At.price_usd);return{...bt,tokenData:At,adjBalance:Tt,tvlTvm:Dt}}),[it,j,_e]),dt=reactExports.useMemo(()=>Object.values(lt.reduce((bt,St)=>(bt[St.key.chain_id]||(bt[St.key.chain_id]={chainId:St.key.chain_id,tvl:0,tvm:0}),bt[St.key.chain_id][St.key.chain_id===St.key.token_chain?"tvl":"tvm"]+=St.tvlTvm,bt),{})),[lt]),[pt,ht]=reactExports.useState([]),yt=useReactTable({columns:guardianSigningColumns,data:ct,state:{sorting:pt},getRowId:bt=>JSON.stringify(bt),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:ht}),[gt,ft]=reactExports.useState([]),xt=useReactTable({columns:pendingTransferColumns,data:at,state:{sorting:gt},getRowId:bt=>JSON.stringify(bt),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),getPaginationRowModel:getPaginationRowModel(),autoResetPageIndex:!1,onSortingChange:ft}),[Mt,jt]=reactExports.useState([]),wt=useReactTable({columns:overviewColumns,data:dt,state:{sorting:Mt},getRowId:bt=>JSON.stringify(bt),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:jt}),[$t,zt]=reactExports.useState(""),Ot=reactExports.useCallback(bt=>{zt(bt.target.value)},[]),[Pt,Ft]=reactExports.useState([]),Nt=useReactTable({columns:accountsColumns,data:lt,state:{globalFilter:$t,sorting:Pt},getRowId:bt=>JSON.stringify(bt.key),getCoreRowModel:getCoreRowModel(),getFilteredRowModel:getFilteredRowModel(),getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),autoResetPageIndex:!1,onGlobalFilterChange:zt,onSortingChange:Ft}),mt=reactExports.useMemo(()=>ot.reduce((bt,St)=>(bt[St.key.emitter_chain]=(bt[St.key.emitter_chain]||0)+1,bt),{}),[ot]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsxs(Box,{children:[_e?"NTT ":"","Accountant"]}),_e?null:jsxRuntimeExports.jsx(Box,{ml:1,children:jsxRuntimeExports.jsx(IconButton,{onClick:nt,size:"small",children:jsxRuntimeExports.jsx(Search,{fontSize:"inherit"})})}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap"},children:Object.keys(mt).sort().map(bt=>jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[bt]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[bt],alt:dist.chainIdToName(Number(bt)),width:24}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:bt})}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:mt[Number(bt)]})]},bt))})]}),children:[ot.length?jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:yt})})}):null,jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(Table,{table:xt,paginated:!!ot.length,showRowCount:!!ot.length}),ot.length===0?jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{py:1,textAlign:"center"},children:"No pending transfers"}):null]})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsx(Typography,{children:"Overview"})}),jsxRuntimeExports.jsx(AccordionDetails,{children:jsxRuntimeExports.jsx(Table,{table:wt})})]})})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Typography,{children:["Accounts (",it.length,")"]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[jsxRuntimeExports.jsx(TextField,{type:"search",value:$t,onChange:Ot,margin:"dense",size:"small",sx:{mb:1},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:jsxRuntimeExports.jsx(Search,{})})},placeholder:"Search Token"}),jsxRuntimeExports.jsx(Table,{table:Nt,paginated:!0,noWrap:!0})]})]})})})]}),jsxRuntimeExports.jsxs(Dialog,{open:et,onClose:rt,maxWidth:"md",fullWidth:!0,children:[jsxRuntimeExports.jsx(DialogTitle,{children:"Accountant Transfer Search"}),jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsx(MemoizedAccountantSearch,{})})]})]})}const columnHelper$1=createColumnHelper(),columns$1=[columnHelper$1.accessor("name",{header:()=>"Guardian",cell:s=>jsxRuntimeExports.jsx(Typography,{variant:"body2",noWrap:!0,children:s.getValue()}),sortingFn:"text"}),columnHelper$1.accessor("network.height",{header:()=>"Latest"}),columnHelper$1.accessor("network.safeHeight",{header:()=>"Safe"}),columnHelper$1.accessor("network.finalizedHeight",{header:()=>"Finalized"}),columnHelper$1.accessor("network.contractAddress",{header:()=>"Contract"})];function ChainDetails({heartbeats:s,conditionalRowStyle:j}){const[$,_e]=reactExports.useState([]),et=useReactTable({columns:columns$1,data:s,state:{sorting:$},getRowId:tt=>tt.guardian,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:_e});return jsxRuntimeExports.jsx(Table,{table:et,conditionalRowStyle:j})}const isHeartbeatUnhealthy=(s,j)=>s.network.height==="0"||j-BigInt(s.network.height)>getBehindDiffForChain(s.network.id);function Chain({chainId:s,heartbeats:j,healthyCount:$,conditionalRowStyle:_e,environment:et}){const[tt,nt]=reactExports.useMemo(()=>j.reduce(([lt,dt],pt)=>dist.STANDBY_GUARDIANS.find(ht=>ht.pubkey.toLowerCase()===pt.guardian.toLowerCase())?[lt,[...dt,pt]]:[[...lt,pt],dt],[[],[]]),[j]),rt=useMediaQuery(lt=>lt.breakpoints.up("sm")),{settings:{showChainName:ot}}=useSettingsContext(),[it,st]=reactExports.useState(!1),at=reactExports.useCallback(()=>{st(!0)},[]),ct=reactExports.useCallback(()=>{st(!1)},[]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{my:rt?2:.25,mx:1,textAlign:"center",children:jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(Box,{textAlign:"center",children:[jsxRuntimeExports.jsxs(Typography,{children:[dist.chainIdToName(Number(s))," (",s,")"]}),jsxRuntimeExports.jsxs(Typography,{children:[$," / ",tt.length]})]}),children:jsxRuntimeExports.jsxs(Button,{onClick:at,sx:{borderRadius:ot?void 0:"50%",flexDirection:"column",minWidth:ot?"102px":{xs:"59px",sm:"86px"},maxWidth:ot?"102px":{xs:"59px",sm:"86px"},textTransform:"none"},children:[jsxRuntimeExports.jsxs(Box,{sx:{position:"relative",display:"inline-flex"},children:[jsxRuntimeExports.jsx(CircularProgress,{variant:"determinate",value:$===0?100:$/tt.length*100,color:$ img":{width:{xs:20,sm:34},height:{xs:20,sm:34}}},children:jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[s],alt:s})}):s})})]}),ot?jsxRuntimeExports.jsx(Chip,{sx:{mt:1.5},label:dist.chainIdToName(Number(s)),size:"small"}):null]})})}),jsxRuntimeExports.jsxs(Dialog,{open:it,onClose:ct,maxWidth:"md",fullWidth:!0,children:[jsxRuntimeExports.jsxs(DialogTitle,{children:[dist.chainIdToName(Number(s))," (",s,")"]}),jsxRuntimeExports.jsxs(DialogContent,{children:[jsxRuntimeExports.jsx(ChainDetails,{heartbeats:tt,conditionalRowStyle:_e}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",sx:{mt:2,mb:1},children:"Standby Guardians"}),jsxRuntimeExports.jsx(ChainDetails,{heartbeats:nt,conditionalRowStyle:_e})]})]})]})}function Chains({chainIdsToHeartbeats:s}){const j=useCurrentEnvironment(),{helpers:$,numSuccess:_e,numWarnings:et,numErrors:tt}=reactExports.useMemo(()=>{let nt=0,rt=0,ot=0;return{helpers:Object.entries(s).reduce((st,[at,ct])=>{let lt=BigInt(0);const dt=ct.filter(yt=>!dist.STANDBY_GUARDIANS.find(gt=>gt.pubkey.toLowerCase()===yt.guardian.toLowerCase()));dt.forEach(yt=>{const gt=BigInt(yt.network.height);gt>lt&&(lt=gt)});const pt=yt=>isHeartbeatUnhealthy(yt,lt)?{backgroundColor:"rgba(100,0,0,.2)"}:{},ht=dt.reduce((yt,gt)=>yt+(isHeartbeatUnhealthy(gt,lt)?0:1),0);return Number(at)!==chainToChainId("Aurora")&&(ht"u")st=0;else if(it===null||$.isNaN(it))st=null;else if(typeof it=="string")if(rt.zeroFormat&&it===rt.zeroFormat)st=0;else if(rt.nullFormat&&it===rt.nullFormat||!it.replace(/[^0-9]+/g,"").length)st=null;else{for(at in et)if(lt=typeof et[at].regexps.unformat=="function"?et[at].regexps.unformat():et[at].regexps.unformat,lt&&it.match(lt)){ct=et[at].unformat;break}ct=ct||j._.stringToNumber,st=ct(it)}else st=Number(it)||null;return new ot(it,st)},j.version=_e,j.isNumeral=function(it){return it instanceof ot},j._=$={numberToFormat:function(it,st,at){var ct=tt[j.options.currentLocale],lt=!1,dt=!1,ft=0,gt="",yt=1e12,mt=1e9,pt=1e6,xt=1e3,Ct="",Dt=!1,wt,kt,zt,Ot,Ft,Pt,Nt;if(it=it||0,kt=Math.abs(it),j._.includes(st,"(")?(lt=!0,st=st.replace(/[\(|\)]/g,"")):(j._.includes(st,"+")||j._.includes(st,"-"))&&(Ft=j._.includes(st,"+")?st.indexOf("+"):it<0?st.indexOf("-"):-1,st=st.replace(/[\+|\-]/g,"")),j._.includes(st,"a")&&(wt=st.match(/a(k|m|b|t)?/),wt=wt?wt[1]:!1,j._.includes(st," a")&&(gt=" "),st=st.replace(new RegExp(gt+"a[kmbt]?"),""),kt>=yt&&!wt||wt==="t"?(gt+=ct.abbreviations.trillion,it=it/yt):kt=mt&&!wt||wt==="b"?(gt+=ct.abbreviations.billion,it=it/mt):kt=pt&&!wt||wt==="m"?(gt+=ct.abbreviations.million,it=it/pt):(kt=xt&&!wt||wt==="k")&&(gt+=ct.abbreviations.thousand,it=it/xt)),j._.includes(st,"[.]")&&(dt=!0,st=st.replace("[.]",".")),zt=it.toString().split(".")[0],Ot=st.split(".")[1],Pt=st.indexOf(","),ft=(st.split(".")[0].split(",")[0].match(/0/g)||[]).length,Ot?(j._.includes(Ot,"[")?(Ot=Ot.replace("]",""),Ot=Ot.split("["),Ct=j._.toFixed(it,Ot[0].length+Ot[1].length,at,Ot[1].length)):Ct=j._.toFixed(it,Ot.length,at),zt=Ct.split(".")[0],j._.includes(Ct,".")?Ct=ct.delimiters.decimal+Ct.split(".")[1]:Ct="",dt&&Number(Ct.slice(1))===0&&(Ct="")):zt=j._.toFixed(it,0,at),gt&&!wt&&Number(zt)>=1e3&>!==ct.abbreviations.trillion)switch(zt=String(Number(zt)/1e3),gt){case ct.abbreviations.thousand:gt=ct.abbreviations.million;break;case ct.abbreviations.million:gt=ct.abbreviations.billion;break;case ct.abbreviations.billion:gt=ct.abbreviations.trillion;break}if(j._.includes(zt,"-")&&(zt=zt.slice(1),Dt=!0),zt.length0;ht--)zt="0"+zt;return Pt>-1&&(zt=zt.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+ct.delimiters.thousands)),st.indexOf(".")===0&&(zt=""),Nt=zt+Ct+(gt||""),lt?Nt=(lt&&Dt?"(":"")+Nt+(lt&&Dt?")":""):Ft>=0?Nt=Ft===0?(Dt?"-":"+")+Nt:Nt+(Dt?"-":"+"):Dt&&(Nt="-"+Nt),Nt},stringToNumber:function(it){var st=tt[rt.currentLocale],at=it,ct={thousand:3,million:6,billion:9,trillion:12},lt,dt,ft;if(rt.zeroFormat&&it===rt.zeroFormat)dt=0;else if(rt.nullFormat&&it===rt.nullFormat||!it.replace(/[^0-9]+/g,"").length)dt=null;else{dt=1,st.delimiters.decimal!=="."&&(it=it.replace(/\./g,"").replace(st.delimiters.decimal,"."));for(lt in ct)if(ft=new RegExp("[^a-zA-Z]"+st.abbreviations[lt]+"(?:\\)|(\\"+st.currency.symbol+")?(?:\\))?)?$"),at.match(ft)){dt*=Math.pow(10,ct[lt]);break}dt*=(it.split("-").length+Math.min(it.split("(").length-1,it.split(")").length-1))%2?1:-1,it=it.replace(/[^0-9\.]+/g,""),dt*=Number(it)}return dt},isNaN:function(it){return typeof it=="number"&&isNaN(it)},includes:function(it,st){return it.indexOf(st)!==-1},insert:function(it,st,at){return it.slice(0,at)+st+it.slice(at)},reduce:function(it,st){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof st!="function")throw new TypeError(st+" is not a function");var at=Object(it),ct=at.length>>>0,lt=0,dt;if(arguments.length===3)dt=arguments[2];else{for(;lt=ct)throw new TypeError("Reduce of empty array with no initial value");dt=at[lt++]}for(;ltct?st:ct},1)},toFixed:function(it,st,at,ct){var lt=it.toString().split("."),dt=st-(ct||0),ft,gt,yt,mt;return lt.length===2?ft=Math.min(Math.max(lt[1].length,dt),st):ft=dt,yt=Math.pow(10,ft),mt=(at(it+"e+"+ft)/yt).toFixed(ft),ct>st-ft&&(gt=new RegExp("\\.?0{1,"+(ct-(st-ft))+"}$"),mt=mt.replace(gt,"")),mt}},j.options=rt,j.formats=et,j.locales=tt,j.locale=function(it){return it&&(rt.currentLocale=it.toLowerCase()),rt.currentLocale},j.localeData=function(it){if(!it)return tt[rt.currentLocale];if(it=it.toLowerCase(),!tt[it])throw new Error("Unknown locale : "+it);return tt[it]},j.reset=function(){for(var it in nt)rt[it]=nt[it]},j.zeroFormat=function(it){rt.zeroFormat=typeof it=="string"?it:null},j.nullFormat=function(it){rt.nullFormat=typeof it=="string"?it:null},j.defaultFormat=function(it){rt.defaultFormat=typeof it=="string"?it:"0.0"},j.register=function(it,st,at){if(st=st.toLowerCase(),this[it+"s"][st])throw new TypeError(st+" "+it+" already registered.");return this[it+"s"][st]=at,at},j.validate=function(it,st){var at,ct,lt,dt,ft,gt,yt,mt;if(typeof it!="string"&&(it+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",it)),it=it.trim(),it.match(/^\d+$/))return!0;if(it==="")return!1;try{yt=j.localeData(st)}catch{yt=j.localeData(j.locale())}return lt=yt.currency.symbol,ft=yt.abbreviations,at=yt.delimiters.decimal,yt.delimiters.thousands==="."?ct="\\.":ct=yt.delimiters.thousands,mt=it.match(/^[^\d]+/),mt!==null&&(it=it.substr(1),mt[0]!==lt)||(mt=it.match(/[^\d]+$/),mt!==null&&(it=it.slice(0,-1),mt[0]!==ft.thousand&&mt[0]!==ft.million&&mt[0]!==ft.billion&&mt[0]!==ft.trillion))?!1:(gt=new RegExp(ct+"{2}"),it.match(/[^\d.,]/g)?!1:(dt=it.split(at),dt.length>2?!1:dt.length<2?!!dt[0].match(/^\d+.*\d$/)&&!dt[0].match(gt):dt[0].length===1?!!dt[0].match(/^\d+$/)&&!dt[0].match(gt)&&!!dt[1].match(/^\d+$/):!!dt[0].match(/^\d+.*\d$/)&&!dt[0].match(gt)&&!!dt[1].match(/^\d+$/)))},j.fn=ot.prototype={clone:function(){return j(this)},format:function(it,st){var at=this._value,ct=it||rt.defaultFormat,lt,dt,ft;if(st=st||Math.round,at===0&&rt.zeroFormat!==null)dt=rt.zeroFormat;else if(at===null&&rt.nullFormat!==null)dt=rt.nullFormat;else{for(lt in et)if(ct.match(et[lt].regexps.format)){ft=et[lt].format;break}ft=ft||j._.numberToFormat,dt=ft(at,ct,st)}return dt},value:function(){return this._value},input:function(){return this._input},set:function(it){return this._value=Number(it),this},add:function(it){var st=$.correctionFactor.call(null,this._value,it);function at(ct,lt,dt,ft){return ct+Math.round(st*lt)}return this._value=$.reduce([this._value,it],at,0)/st,this},subtract:function(it){var st=$.correctionFactor.call(null,this._value,it);function at(ct,lt,dt,ft){return ct-Math.round(st*lt)}return this._value=$.reduce([it],at,Math.round(this._value*st))/st,this},multiply:function(it){function st(at,ct,lt,dt){var ft=$.correctionFactor(at,ct);return Math.round(at*ft)*Math.round(ct*ft)/Math.round(ft*ft)}return this._value=$.reduce([this._value,it],st,1),this},divide:function(it){function st(at,ct,lt,dt){var ft=$.correctionFactor(at,ct);return Math.round(at*ft)/Math.round(ct*ft)}return this._value=$.reduce([this._value,it],st),this},difference:function(it){return Math.abs(j(this._value).subtract(it).value())}},j.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(it){var st=it%10;return~~(it%100/10)===1?"th":st===1?"st":st===2?"nd":st===3?"rd":"th"},currency:{symbol:"$"}}),function(){j.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(it,st,at){var ct=j._.includes(st," BPS")?" ":"",lt;return it=it*1e4,st=st.replace(/\s?BPS/,""),lt=j._.numberToFormat(it,st,at),j._.includes(lt,")")?(lt=lt.split(""),lt.splice(-1,0,ct+"BPS"),lt=lt.join("")):lt=lt+ct+"BPS",lt},unformat:function(it){return+(j._.stringToNumber(it)*1e-4).toFixed(15)}})}(),function(){var it={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},st={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},at=it.suffixes.concat(st.suffixes.filter(function(lt){return it.suffixes.indexOf(lt)<0})),ct=at.join("|");ct="("+ct.replace("B","B(?!PS)")+")",j.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(ct)},format:function(lt,dt,ft){var gt,yt=j._.includes(dt,"ib")?st:it,mt=j._.includes(dt," b")||j._.includes(dt," ib")?" ":"",pt,xt,Ct;for(dt=dt.replace(/\s?i?b/,""),pt=0;pt<=yt.suffixes.length;pt++)if(xt=Math.pow(yt.base,pt),Ct=Math.pow(yt.base,pt+1),lt===null||lt===0||lt>=xt&<0&&(lt=lt/xt);break}return gt=j._.numberToFormat(lt,dt,ft),gt+mt},unformat:function(lt){var dt=j._.stringToNumber(lt),ft,gt;if(dt){for(ft=it.suffixes.length-1;ft>=0;ft--){if(j._.includes(lt,it.suffixes[ft])){gt=Math.pow(it.base,ft);break}if(j._.includes(lt,st.suffixes[ft])){gt=Math.pow(st.base,ft);break}}dt*=gt||1}return dt}})}(),function(){j.register("format","currency",{regexps:{format:/(\$)/},format:function(it,st,at){var ct=j.locales[j.options.currentLocale],lt={before:st.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:st.match(/([\+|\-|\)|\s|\$]*)$/)[0]},dt,ft,gt;for(st=st.replace(/\s?\$\s?/,""),dt=j._.numberToFormat(it,st,at),it>=0?(lt.before=lt.before.replace(/[\-\(]/,""),lt.after=lt.after.replace(/[\-\)]/,"")):it<0&&!j._.includes(lt.before,"-")&&!j._.includes(lt.before,"(")&&(lt.before="-"+lt.before),gt=0;gt=0;gt--)switch(ft=lt.after[gt],ft){case"$":dt=gt===lt.after.length-1?dt+ct.currency.symbol:j._.insert(dt,ct.currency.symbol,-(lt.after.length-(1+gt)));break;case" ":dt=gt===lt.after.length-1?dt+" ":j._.insert(dt," ",-(lt.after.length-(1+gt)+ct.currency.symbol.length-1));break}return dt}})}(),function(){j.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(it,st,at){var ct,lt=typeof it=="number"&&!j._.isNaN(it)?it.toExponential():"0e+0",dt=lt.split("e");return st=st.replace(/e[\+|\-]{1}0/,""),ct=j._.numberToFormat(Number(dt[0]),st,at),ct+"e"+dt[1]},unformat:function(it){var st=j._.includes(it,"e+")?it.split("e+"):it.split("e-"),at=Number(st[0]),ct=Number(st[1]);ct=j._.includes(it,"e-")?ct*=-1:ct;function lt(dt,ft,gt,yt){var mt=j._.correctionFactor(dt,ft),pt=dt*mt*(ft*mt)/(mt*mt);return pt}return j._.reduce([at,Math.pow(10,ct)],lt,1)}})}(),function(){j.register("format","ordinal",{regexps:{format:/(o)/},format:function(it,st,at){var ct=j.locales[j.options.currentLocale],lt,dt=j._.includes(st," o")?" ":"";return st=st.replace(/\s?o/,""),dt+=ct.ordinal(it),lt=j._.numberToFormat(it,st,at),lt+dt}})}(),function(){j.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(it,st,at){var ct=j._.includes(st," %")?" ":"",lt;return j.options.scalePercentBy100&&(it=it*100),st=st.replace(/\s?\%/,""),lt=j._.numberToFormat(it,st,at),j._.includes(lt,")")?(lt=lt.split(""),lt.splice(-1,0,ct+"%"),lt=lt.join("")):lt=lt+ct+"%",lt},unformat:function(it){var st=j._.stringToNumber(it);return j.options.scalePercentBy100?st*.01:st}})}(),function(){j.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(it,st,at){var ct=Math.floor(it/60/60),lt=Math.floor((it-ct*60*60)/60),dt=Math.round(it-ct*60*60-lt*60);return ct+":"+(lt<10?"0"+lt:lt)+":"+(dt<10?"0"+dt:dt)},unformat:function(it){var st=it.split(":"),at=0;return st.length===3?(at=at+Number(st[0])*60*60,at=at+Number(st[1])*60,at=at+Number(st[2])):st.length===2&&(at=at+Number(st[0])*60,at=at+Number(st[1])),Number(at)}})}(),j})})(numeral$1);var numeralExports=numeral$1.exports;const numeral=getDefaultExportFromCjs$1(numeralExports);function c(s,j,$){var _e=this,et=reactExports.useRef(null),tt=reactExports.useRef(0),nt=reactExports.useRef(null),rt=reactExports.useRef([]),ot=reactExports.useRef(),it=reactExports.useRef(),st=reactExports.useRef(s),at=reactExports.useRef(!0);st.current=s;var ct=typeof window<"u",lt=!j&&j!==0&&ct;if(typeof s!="function")throw new TypeError("Expected a function");j=+j||0;var dt=!!($=$||{}).leading,ft=!("trailing"in $)||!!$.trailing,gt="maxWait"in $,yt="debounceOnServer"in $&&!!$.debounceOnServer,mt=gt?Math.max(+$.maxWait||0,j):null;reactExports.useEffect(function(){return at.current=!0,function(){at.current=!1}},[]);var pt=reactExports.useMemo(function(){var xt=function(Ot){var Ft=rt.current,Pt=ot.current;return rt.current=ot.current=null,tt.current=Ot,it.current=st.current.apply(Pt,Ft)},Ct=function(Ot,Ft){lt&&cancelAnimationFrame(nt.current),nt.current=lt?requestAnimationFrame(Ot):setTimeout(Ot,Ft)},Dt=function(Ot){if(!at.current)return!1;var Ft=Ot-et.current;return!et.current||Ft>=j||Ft<0||gt&&Ot-tt.current>=mt},wt=function(Ot){return nt.current=null,ft&&rt.current?xt(Ot):(rt.current=ot.current=null,it.current)},kt=function Ot(){var Ft=Date.now();if(Dt(Ft))return wt(Ft);if(at.current){var Pt=j-(Ft-et.current),Nt=gt?Math.min(Pt,mt-(Ft-tt.current)):Pt;Ct(Ot,Nt)}},zt=function(){if(ct||yt){var Ot=Date.now(),Ft=Dt(Ot);if(rt.current=[].slice.call(arguments),ot.current=_e,et.current=Ot,Ft){if(!nt.current&&at.current)return tt.current=et.current,Ct(kt,j),dt?xt(et.current):it.current;if(gt)return Ct(kt,j),xt(et.current)}return nt.current||Ct(kt,j),it.current}};return zt.cancel=function(){nt.current&&(lt?cancelAnimationFrame(nt.current):clearTimeout(nt.current)),tt.current=0,rt.current=et.current=ot.current=nt.current=null},zt.isPending=function(){return!!nt.current},zt.flush=function(){return nt.current?wt(Date.now()):it.current},zt},[dt,gt,j,mt,ft,lt,ct,yt]);return pt}function i(s,j){return s===j}function a(s,j){return j}function o(s,j,$){var _e=i,et=reactExports.useReducer(a,s),tt=et[0],nt=et[1],rt=c(reactExports.useCallback(function(it){return nt(it)},[nt]),j,$),ot=reactExports.useRef(s);return _e(ot.current,s)||(rt(s),ot.current=s),[tt,rt]}const PREFIX="data:image/svg+xml;base64,";function chainToIcon(s){if(s==="Solana")return PREFIX+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5NiIgaGVpZ2h0PSI4NCIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSJ1cmwoI2IpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNy4zNjggNjQuMDUyQTMuMjE0IDMuMjE0IDAgMCAxIDE5Ljc0NCA2M2w3My4zMTIuMDZhMS42MTIgMS42MTIgMCAwIDEgMS4xODggMi42OThsLTE1LjYxMiAxNy4xOUEzLjIxMyAzLjIxMyAwIDAgMSA3Ni4yNTQgODRsLTczLjMxLS4wNmExLjYxMSAxLjYxMSAwIDAgMS0xLjE4OC0yLjY5OGwxNS42MTItMTcuMTlabTc2Ljg3Ni0xNC4zMWExLjYxMSAxLjYxMSAwIDAgMS0xLjE4OCAyLjY5OGwtNzMuMzEuMDZhMy4yMTMgMy4yMTMgMCAwIDEtMi4zNzgtMS4wNTJsLTE1LjYxMi0xNy4yYTEuNjEyIDEuNjEyIDAgMCAxIDEuMTg4LTIuNjk4bDczLjMxMi0uMDZhMy4yMTMgMy4yMTMgMCAwIDEgMi4zNzYgMS4wNTJsMTUuNjEyIDE3LjJaTTE3LjM2OCAxLjA1MkEzLjIxNSAzLjI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UwNjYgMjUuMTQ5MloiIGZpbGw9IiM4MzZFRjkiLz48L3N2Zz4=";{const j=s;return""}}const WORMCHAIN_URL="https://gateway.mainnet.xlabs.xyz",TESTNET_WORMCHAIN_URL="https://gateway.testnet.xlabs.xyz",WORMHOLE_RPC_HOSTS=["https://wormhole-v2-mainnet-api.mcf.rocks","https://wormhole-v2-mainnet-api.chainlayer.network","https://wormhole-v2-mainnet-api.staking.fund","https://guardian.mainnet.xlabs.xyz"],CHAIN_ICON_MAP=chainIds.reduce((s,j)=>(s[j]=chainToIcon(chainIdToChain(j)),s),{});function uint32ToString(s){const j=s<128?1:s<16384?2:s<2097152?3:s<268435456?4:5,$=new Array(j);let _e=0;for(;s>127;)$[_e++]=s&127|128,s>>>=7;return $[_e]=s,buffer.Buffer.from($).toString("hex")}function indexOutOfRange(s,j){return RangeError("index out of range: "+s.pos+" + "+(j||1)+" > "+s.len)}class BinaryReader{constructor(j){Mn(this,"buf");Mn(this,"pos");Mn(this,"type");Mn(this,"len");this.buf=j,this.pos=0,this.type=0,this.len=this.buf.length}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}varint32read(){let j=this.buf[this.pos++],$=j&127;if(!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<7,!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<14,!(j&128))return this.assertBounds(),$;if(j=this.buf[this.pos++],$|=(j&127)<<21,!(j&128))return this.assertBounds(),$;j=this.buf[this.pos++],$|=(j&15)<<28;for(let _e=5;j&128&&_e<10;_e++)j=this.buf[this.pos++];if(j&128)throw new Error("invalid varint");return this.assertBounds(),$>>>0}skip(j){if(typeof j=="number"){if(this.pos+j>this.len)throw indexOutOfRange(this,j);this.pos+=j}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this}skipType(j){switch(j){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(j=this.uint32()&7)!==4;)this.skipType(j);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+j+" at offset "+this.pos)}return this}uint32(){return this.varint32read()}bytes(){const j=this.uint32(),$=this.pos;return this.pos+=j,this.assertBounds(),this.buf.subarray($,$+j)}}function createBaseQuerySmartContractStateResponse(){return{data:new Uint8Array}}const QuerySmartContractStateResponse={decode(s,j){const $=s instanceof BinaryReader?s:new BinaryReader(s);let _e=j===void 0?$.len:$.pos+j;const et=createBaseQuerySmartContractStateResponse();for(;$.pos<_e;){const tt=$.uint32();switch(tt>>>3){case 1:et.data=$.bytes();break;default:$.skipType(tt&7);break}}return et}};function fromUtf8(s,j=!1){const $=!j;return new TextDecoder("utf-8",{fatal:$}).decode(s)}async function queryContractSmart(s,j,$){const _e=buffer.Buffer.from(j).toString("hex"),et=uint32ToString(_e.length/2),tt=buffer.Buffer.from(JSON.stringify($)).toString("hex"),nt=uint32ToString(tt.length/2),rt=`0a${et}${_e}12${nt}${tt}`,ot=await axios$2.post(s,{jsonrpc:"2.0",id:Math.floor(Math.random()*Number.MAX_SAFE_INTEGER),method:"abci_query",params:{path:"/cosmwasm.wasm.v1.Query/SmartContractState",data:rt,prove:!1}});if(!ot.data.result.response.value)throw ot.data.result.response.code&&ot.data.result.response.log?new Error(`Query failed with (${ot.data.result.response.code}) ${ot.data.result.response.log}`):new Error("Query failed with unknown error");const{data:it}=QuerySmartContractStateResponse.decode(buffer.Buffer.from(ot.data.result.response.value,"base64"));let st;try{st=fromUtf8(it)}catch(at){throw new Error(`Could not UTF-8 decode smart query response from contract: ${at}`)}try{return JSON.parse(st)}catch(at){throw new Error(`Could not JSON parse smart query response from contract: ${at}`)}}const POLL_INTERVAL_MS$2=1*60*1e3,PAGE_LIMIT$1=2e3,useGetAccountantAccounts=s=>{const{currentNetwork:j}=useNetworkContext(),[$,_e]=reactExports.useState([]);return reactExports.useEffect(()=>{if(j.name!=="Mainnet"&&j.name!=="Testnet")return;let et=!1;return(async()=>{for(;!et;){try{let tt=[],nt,rt;do nt=await queryContractSmart(j.name==="Mainnet"?WORMCHAIN_URL:TESTNET_WORMCHAIN_URL,s,{all_accounts:{limit:PAGE_LIMIT$1,start_after:rt}}),tt=[...tt,...nt.accounts],rt=nt.accounts.length&&nt.accounts[nt.accounts.length-1].key;while(nt.accounts.length===PAGE_LIMIT$1);et||_e(tt)}catch(tt){et||_e([]),console.error(tt)}et||await new Promise(tt=>setTimeout(tt,POLL_INTERVAL_MS$2))}})(),()=>{et=!0}},[j,s]),$},POLL_INTERVAL_MS$1=10*1e3,PAGE_LIMIT=2e3,useGetAccountantPendingTransfers=s=>{const{currentNetwork:j}=useNetworkContext(),[$,_e]=reactExports.useState([]);return reactExports.useEffect(()=>{if(j.name!=="Mainnet"&&j.name!=="Testnet")return;let et=!1;return(async()=>{for(;!et;){try{let tt=[],nt,rt;do nt=await queryContractSmart(j.name==="Mainnet"?WORMCHAIN_URL:TESTNET_WORMCHAIN_URL,s,{all_pending_transfers:{limit:PAGE_LIMIT,start_after:rt}}),tt=[...tt,...nt.pending],rt=nt.pending.length&&nt.pending[nt.pending.length-1].key;while(nt.pending.length===PAGE_LIMIT);et||_e(tt)}catch(tt){et||_e([]),console.error(tt)}et||await new Promise(tt=>setTimeout(tt,POLL_INTERVAL_MS$1))}})(),()=>{et=!0}},[j,s]),$};function ExplorerTxHash({chainId:s,rawTxHash:j}){const $=useCurrentEnvironment(),_e=chainIdToChain.get(s);if(!_e)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:j});const et=dist.getExplorerTxHash($,chainToChainId(_e),j);return jsxRuntimeExports.jsx(Link$1,{href:dist.explorerTx($,chainToChainId(_e),et),target:"_blank",rel:"noopener noreferrer",children:et})}function Table({table:s,noWrap:j=!1,paginated:$=!1,showRowCount:_e=!1,conditionalRowStyle:et}){const tt=useTheme$1();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TableContainer,{children:jsxRuntimeExports.jsxs(Table$1,{size:"small",children:[jsxRuntimeExports.jsx(TableHead,{children:s.getHeaderGroups().map(nt=>jsxRuntimeExports.jsx(TableRow,{children:nt.headers.map(rt=>jsxRuntimeExports.jsx(TableCell,{sx:rt.column.getCanSort()?{cursor:"pointer",userSelect:"select-none",":hover":{background:tt.palette.mode==="dark"?grey[800]:grey[100]}}:{},onClick:rt.column.getToggleSortingHandler(),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignContent:"center",sx:j?{whiteSpace:"nowrap"}:void 0,children:[rt.isPlaceholder?null:flexRender(rt.column.columnDef.header,rt.getContext()),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{display:"flex",alignItems:"center",children:{asc:jsxRuntimeExports.jsx(ArrowUpward,{fontSize:"small",sx:{ml:.5}}),desc:jsxRuntimeExports.jsx(ArrowDownward,{fontSize:"small",sx:{ml:.5}})}[rt.column.getIsSorted()]??null})]})},rt.id))},nt.id))}),jsxRuntimeExports.jsx(TableBody,{children:s.getRowModel().rows.map(nt=>jsxRuntimeExports.jsx(TableRow,{sx:et?et(nt.original):{},children:nt.getVisibleCells().map(rt=>jsxRuntimeExports.jsx(TableCell,{sx:j?{whiteSpace:"nowrap"}:void 0,children:flexRender(rt.column.columnDef.cell,rt.getContext())},rt.id))},nt.id))})]})}),$||_e?jsxRuntimeExports.jsx(Table$1,{size:"small",children:jsxRuntimeExports.jsx(TableFooter,{children:jsxRuntimeExports.jsx(TableRow,{children:jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsxs(Box,{children:[s.getCoreRowModel().rows.length," Rows"]}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),$?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Select,{margin:"dense",size:"small",value:s.getState().pagination.pageSize,onChange:nt=>{s.setPageSize(Number(nt.target.value))},sx:{fontSize:"10px",mr:.5,"& > div":{py:"6px"}},children:[10,25,50,100].map(nt=>jsxRuntimeExports.jsxs(MenuItem,{value:nt,children:["Show ",nt]},nt))}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>s.setPageIndex(0),disabled:!s.getCanPreviousPage(),size:"small",children:jsxRuntimeExports.jsx(FirstPage,{fontSize:"small"})}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>s.previousPage(),disabled:!s.getCanPreviousPage(),size:"small",children:jsxRuntimeExports.jsx(NavigateBefore,{fontSize:"small"})}),jsxRuntimeExports.jsxs(Box,{children:["Page ",s.getState().pagination.pageIndex+1," of ",s.getPageCount()]}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>s.nextPage(),disabled:!s.getCanNextPage(),size:"small",children:jsxRuntimeExports.jsx(NavigateNext,{fontSize:"small"})}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>s.setPageIndex(s.getPageCount()-1),disabled:!s.getCanNextPage(),size:"small",children:jsxRuntimeExports.jsx(LastPage,{fontSize:"small"})})]}):null]})})})})}):null]})}const NTT_ACCOUNTANT_TOKEN_ADDRESS_OVERRIDE={1:{cf5f3614e2cd9b374558f35c7618b25f0d306d5e749b7d29cc030a1a15686238:"6927fdc01ea906f96d7137874cdd7adad00ca35764619310e54196c781d84d5b"}};function getNumSignatures(s){let j=Number(s),$=0;for(;j>0;)$+=1,j=j&j-1;return $}function getSignatureBits(s){return Number(s).toString(2).padStart(dist.GUARDIAN_SET_4.length,"0")}function getGuardiansFromSignatures(s){const j=[],$=getSignatureBits(s);for(let _e=0;_e<$.length;_e++)$[_e]==="1"&&j.push(dist.GUARDIAN_SET_4[$.length-1-_e].name);return j.reverse().join(", ")}function getMissingGuardiansFromSignatures(s){const j=[],$=getSignatureBits(s);for(let _e=0;_e<$.length;_e++)$[_e]==="0"&&j.push(dist.GUARDIAN_SET_4[$.length-1-_e].name);return j.reverse().join(", ")}const calculatePercent$2=s=>{try{return s.numSigned/s.outOf*100}catch{return 0}},guardianSigningColumnHelper=createColumnHelper(),guardianSigningColumns=[guardianSigningColumnHelper.accessor("name",{header:()=>"Guardian",sortingFn:"text"}),guardianSigningColumnHelper.accessor("numSigned",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Signed"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:[s.getValue()," / ",s.row.original.outOf]})}),guardianSigningColumnHelper.accessor(calculatePercent$2,{id:"progress",header:()=>"Progress",cell:s=>jsxRuntimeExports.jsx(Tooltip,{title:`${s.getValue().toFixed(2)}%`,arrow:!0,children:jsxRuntimeExports.jsx(LinearProgress,{variant:"determinate",value:s.getValue(),color:s.getValue()>90?"success":s.getValue()>50?"warning":"error"})})})],pendingTransferColumnHelper=createColumnHelper(),pendingTransferColumns=[pendingTransferColumnHelper.accessor("key.emitter_chain",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text"}),pendingTransferColumnHelper.accessor("key.emitter_address",{header:()=>"Emitter"}),pendingTransferColumnHelper.accessor("key.sequence",{header:()=>"Sequence"}),pendingTransferColumnHelper.accessor("data.0.tx_hash",{header:()=>"Tx",cell:s=>jsxRuntimeExports.jsx(ExplorerTxHash,{chainId:s.row.original.key.emitter_chain,rawTxHash:"0x"+buffer.Buffer.from(s.getValue(),"base64").toString("hex")})}),pendingTransferColumnHelper.accessor("data.0.signatures",{header:()=>"Signatures",cell:s=>jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Typography,{gutterBottom:!0,sx:{mb:.5},children:"Signed"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:getGuardiansFromSignatures(s.getValue())}),jsxRuntimeExports.jsx(Typography,{gutterBottom:!0,sx:{mt:1.5,mb:.5},children:"Missing"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:getMissingGuardiansFromSignatures(s.getValue())}),jsxRuntimeExports.jsx(Typography,{gutterBottom:!0,sx:{mt:1.5,mb:.5},children:"Bits"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:getSignatureBits(s.getValue())})]}),children:jsxRuntimeExports.jsx(Box,{children:getNumSignatures(s.getValue())})})}),pendingTransferColumnHelper.accessor("isEnqueuedInGov",{header:()=>"Governed",cell:s=>s.getValue()?jsxRuntimeExports.jsx("span",{role:"img",children:"✅"}):null})],accountsColumnHelper=createColumnHelper(),accountsColumns=[accountsColumnHelper.accessor("key.chain_id",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text",enableGlobalFilter:!1}),accountsColumnHelper.accessor("key.token_chain",{header:()=>"Token Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text",enableGlobalFilter:!1}),accountsColumnHelper.accessor("tokenData.native_address",{header:()=>"Native Address"}),accountsColumnHelper.accessor("tokenData.name",{header:()=>"Name"}),accountsColumnHelper.accessor("tokenData.symbol",{header:()=>"Symbol"}),accountsColumnHelper.accessor("tokenData.coin_gecko_coin_id",{header:()=>"Coin Gecko ID"}),accountsColumnHelper.accessor("tokenData.price_usd",{header:()=>"Price",cell:s=>s.getValue()?numeral(s.getValue()).format("$0,0.0000"):"",enableGlobalFilter:!1}),accountsColumnHelper.accessor("adjBalance",{header:()=>"Adjusted Balance",cell:s=>s.getValue()<1?s.getValue().toFixed(4):numeral(s.getValue()).format("0,0.0000"),enableGlobalFilter:!1}),accountsColumnHelper.accessor("tvlTvm",{header:()=>"TVL/TVM",cell:s=>s.getValue()<1?`$${s.getValue().toFixed(4)}`:numeral(s.getValue()).format("$0,0.0000"),enableGlobalFilter:!1}),accountsColumnHelper.accessor("tokenData.decimals",{header:()=>"Decimals",enableGlobalFilter:!1}),accountsColumnHelper.accessor("key.token_address",{header:()=>"Token Address"}),accountsColumnHelper.accessor("balance",{header:()=>"Raw Balance",enableGlobalFilter:!1})],overviewColumnHelper=createColumnHelper(),overviewColumns=[overviewColumnHelper.accessor("chainId",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text"}),overviewColumnHelper.accessor("tvl",{header:()=>"Total Value Locked",cell:s=>s.getValue()<1?`$${s.getValue().toFixed(4)}`:numeral(s.getValue()).format("$0,0.0000")}),overviewColumnHelper.accessor("tvm",{header:()=>"Total Value Minted",cell:s=>s.getValue()<1?`$${s.getValue().toFixed(4)}`:numeral(s.getValue()).format("$0,0.0000")})];function AccountantSearch(){const[s,j]=reactExports.useState(),[$,_e]=reactExports.useState(""),[et,tt]=reactExports.useState(),[nt,rt]=reactExports.useState(null),ot=reactExports.useCallback(dt=>{dt.target.value||j(void 0);try{const ft=parseInt(dt.target.value);isNaN(ft)||j(ft)}catch{}},[]),it=reactExports.useCallback(dt=>{_e(dt.target.value)},[]),st=reactExports.useCallback(dt=>{dt.target.value||tt(void 0);try{const ft=parseInt(dt.target.value);isNaN(ft)||tt(ft)}catch{}},[]),[at]=o(s,500),[ct]=o($,500),[lt]=o(et,500);return reactExports.useEffect(()=>{if(at&&ct&<){rt(null);let dt=!1;return(async()=>{try{const ft=await queryContractSmart(WORMCHAIN_URL,dist.ACCOUNTANT_CONTRACT_ADDRESS,{transfer_status:{emitter_chain:at,emitter_address:ct,sequence:lt}});dt||rt(ft)}catch(ft){dt||rt({}),console.error(ft)}})(),()=>{dt=!0}}},[at,ct,lt]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"Transfer Key"}),jsxRuntimeExports.jsx(TextField,{sx:{mt:1},label:"Chain",fullWidth:!0,onChange:ot,value:s,size:"small"}),jsxRuntimeExports.jsx(TextField,{sx:{mt:1},label:"Address",fullWidth:!0,onChange:it,value:$,size:"small"}),jsxRuntimeExports.jsx(TextField,{sx:{mt:1},label:"Sequence",fullWidth:!0,onChange:st,value:et,size:"small"}),at&&ct&<?nt?jsxRuntimeExports.jsx("pre",{children:JSON.stringify(nt,void 0,2)}):jsxRuntimeExports.jsx(CircularProgress,{sx:{mt:2}}):jsxRuntimeExports.jsx(Typography,{sx:{mt:2},children:"Enter a transfer key above"})]})}const MemoizedAccountantSearch=reactExports.memo(AccountantSearch);function Accountant({governorInfo:s,tokenData:j,accountantAddress:$,isNTT:_e}){const[et,tt]=reactExports.useState(!1),nt=reactExports.useCallback(bt=>{bt.stopPropagation(),tt(!0)},[]),rt=reactExports.useCallback(bt=>{tt(!1)},[]),ot=useGetAccountantPendingTransfers($),it=useGetAccountantAccounts($),st=!!s,at=reactExports.useMemo(()=>ot.map(bt=>({...bt,isEnqueuedInGov:st&&!!s.enqueuedVAAs.find(St=>St.emitterChain===bt.key.emitter_chain&&St.emitterAddress===bt.key.emitter_address&&St.sequence===bt.key.sequence.toString())})),[ot,st,s==null?void 0:s.enqueuedVAAs]),ct=reactExports.useMemo(()=>{const bt=dist.GUARDIAN_SET_4.map(St=>({name:St.name,numSigned:0,outOf:ot.length}));for(const St of ot){const vt=getSignatureBits(St.data[0].signatures);for(let At=0;Atit.map(bt=>{var Lt;let St=bt.key.token_chain,vt=bt.key.token_address;_e&&(vt=((Lt=NTT_ACCOUNTANT_TOKEN_ADDRESS_OVERRIDE[St])==null?void 0:Lt[vt])||vt);const At=j==null?void 0:j[`${St}/${vt}`];if(!At)return{...bt,adjBalance:0,tvlTvm:0,tokenData:{coin_gecko_coin_id:"",decimals:0,name:"",native_address:"",price_usd:"",symbol:"",token_address:"",token_chain:0}};const Tt=Number(bt.balance)/10**Math.min(At.decimals,8),jt=Tt*Number(At.price_usd);return{...bt,tokenData:At,adjBalance:Tt,tvlTvm:jt}}),[it,j,_e]),dt=reactExports.useMemo(()=>Object.values(lt.reduce((bt,St)=>(bt[St.key.chain_id]||(bt[St.key.chain_id]={chainId:St.key.chain_id,tvl:0,tvm:0}),bt[St.key.chain_id][St.key.chain_id===St.key.token_chain?"tvl":"tvm"]+=St.tvlTvm,bt),{})),[lt]),[ft,gt]=reactExports.useState([]),yt=useReactTable({columns:guardianSigningColumns,data:ct,state:{sorting:ft},getRowId:bt=>JSON.stringify(bt),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:gt}),[mt,pt]=reactExports.useState([]),xt=useReactTable({columns:pendingTransferColumns,data:at,state:{sorting:mt},getRowId:bt=>JSON.stringify(bt),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),getPaginationRowModel:getPaginationRowModel(),autoResetPageIndex:!1,onSortingChange:pt}),[Ct,Dt]=reactExports.useState([]),wt=useReactTable({columns:overviewColumns,data:dt,state:{sorting:Ct},getRowId:bt=>JSON.stringify(bt),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:Dt}),[kt,zt]=reactExports.useState(""),Ot=reactExports.useCallback(bt=>{zt(bt.target.value)},[]),[Ft,Pt]=reactExports.useState([]),Nt=useReactTable({columns:accountsColumns,data:lt,state:{globalFilter:kt,sorting:Ft},getRowId:bt=>JSON.stringify(bt.key),getCoreRowModel:getCoreRowModel(),getFilteredRowModel:getFilteredRowModel(),getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),autoResetPageIndex:!1,onGlobalFilterChange:zt,onSortingChange:Pt}),ht=reactExports.useMemo(()=>ot.reduce((bt,St)=>(bt[St.key.emitter_chain]=(bt[St.key.emitter_chain]||0)+1,bt),{}),[ot]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsxs(Box,{children:[_e?"NTT ":"","Accountant"]}),_e?null:jsxRuntimeExports.jsx(Box,{ml:1,children:jsxRuntimeExports.jsx(IconButton,{onClick:nt,size:"small",children:jsxRuntimeExports.jsx(Search,{fontSize:"inherit"})})}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap"},children:Object.keys(ht).sort().map(bt=>jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[bt]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[bt],alt:dist.chainIdToName(Number(bt)),width:24}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:bt})}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:ht[Number(bt)]})]},bt))})]}),children:[ot.length?jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:yt})})}):null,jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(Table,{table:xt,paginated:!!ot.length,showRowCount:!!ot.length}),ot.length===0?jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{py:1,textAlign:"center"},children:"No pending transfers"}):null]})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsx(Typography,{children:"Overview"})}),jsxRuntimeExports.jsx(AccordionDetails,{children:jsxRuntimeExports.jsx(Table,{table:wt})})]})})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Typography,{children:["Accounts (",it.length,")"]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[jsxRuntimeExports.jsx(TextField,{type:"search",value:kt,onChange:Ot,margin:"dense",size:"small",sx:{mb:1},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:jsxRuntimeExports.jsx(Search,{})})},placeholder:"Search Token"}),jsxRuntimeExports.jsx(Table,{table:Nt,paginated:!0,noWrap:!0})]})]})})})]}),jsxRuntimeExports.jsxs(Dialog,{open:et,onClose:rt,maxWidth:"md",fullWidth:!0,children:[jsxRuntimeExports.jsx(DialogTitle,{children:"Accountant Transfer Search"}),jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsx(MemoizedAccountantSearch,{})})]})]})}const columnHelper$1=createColumnHelper(),columns$1=[columnHelper$1.accessor("name",{header:()=>"Guardian",cell:s=>jsxRuntimeExports.jsx(Typography,{variant:"body2",noWrap:!0,children:s.getValue()}),sortingFn:"text"}),columnHelper$1.accessor("network.height",{header:()=>"Latest"}),columnHelper$1.accessor("network.safeHeight",{header:()=>"Safe"}),columnHelper$1.accessor("network.finalizedHeight",{header:()=>"Finalized"}),columnHelper$1.accessor("network.contractAddress",{header:()=>"Contract"})];function ChainDetails({heartbeats:s,conditionalRowStyle:j}){const[$,_e]=reactExports.useState([]),et=useReactTable({columns:columns$1,data:s,state:{sorting:$},getRowId:tt=>tt.guardian,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:_e});return jsxRuntimeExports.jsx(Table,{table:et,conditionalRowStyle:j})}const isHeartbeatUnhealthy=(s,j)=>s.network.height==="0"||j-BigInt(s.network.height)>getBehindDiffForChain(s.network.id);function Chain({chainId:s,heartbeats:j,healthyCount:$,conditionalRowStyle:_e,environment:et}){const[tt,nt]=reactExports.useMemo(()=>j.reduce(([lt,dt],ft)=>dist.STANDBY_GUARDIANS.find(gt=>gt.pubkey.toLowerCase()===ft.guardian.toLowerCase())?[lt,[...dt,ft]]:[[...lt,ft],dt],[[],[]]),[j]),rt=useMediaQuery(lt=>lt.breakpoints.up("sm")),{settings:{showChainName:ot}}=useSettingsContext(),[it,st]=reactExports.useState(!1),at=reactExports.useCallback(()=>{st(!0)},[]),ct=reactExports.useCallback(()=>{st(!1)},[]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{my:rt?2:.25,mx:1,textAlign:"center",children:jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(Box,{textAlign:"center",children:[jsxRuntimeExports.jsxs(Typography,{children:[dist.chainIdToName(Number(s))," (",s,")"]}),jsxRuntimeExports.jsxs(Typography,{children:[$," / ",tt.length]})]}),children:jsxRuntimeExports.jsxs(Button,{onClick:at,sx:{borderRadius:ot?void 0:"50%",flexDirection:"column",minWidth:ot?"102px":{xs:"59px",sm:"86px"},maxWidth:ot?"102px":{xs:"59px",sm:"86px"},textTransform:"none"},children:[jsxRuntimeExports.jsxs(Box,{sx:{position:"relative",display:"inline-flex"},children:[jsxRuntimeExports.jsx(CircularProgress,{variant:"determinate",value:$===0?100:$/tt.length*100,color:$ img":{width:{xs:20,sm:34},height:{xs:20,sm:34}}},children:jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[s],alt:s})}):s})})]}),ot?jsxRuntimeExports.jsx(Chip,{sx:{mt:1.5},label:dist.chainIdToName(Number(s)),size:"small"}):null]})})}),jsxRuntimeExports.jsxs(Dialog,{open:it,onClose:ct,maxWidth:"md",fullWidth:!0,children:[jsxRuntimeExports.jsxs(DialogTitle,{children:[dist.chainIdToName(Number(s))," (",s,")"]}),jsxRuntimeExports.jsxs(DialogContent,{children:[jsxRuntimeExports.jsx(ChainDetails,{heartbeats:tt,conditionalRowStyle:_e}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",sx:{mt:2,mb:1},children:"Standby Guardians"}),jsxRuntimeExports.jsx(ChainDetails,{heartbeats:nt,conditionalRowStyle:_e})]})]})]})}function Chains({chainIdsToHeartbeats:s}){const j=useCurrentEnvironment(),{helpers:$,numSuccess:_e,numWarnings:et,numErrors:tt}=reactExports.useMemo(()=>{let nt=0,rt=0,ot=0;return{helpers:Object.entries(s).reduce((st,[at,ct])=>{let lt=BigInt(0);const dt=ct.filter(yt=>!dist.STANDBY_GUARDIANS.find(mt=>mt.pubkey.toLowerCase()===yt.guardian.toLowerCase()));dt.forEach(yt=>{const mt=BigInt(yt.network.height);mt>lt&&(lt=mt)});const ft=yt=>isHeartbeatUnhealthy(yt,lt)?{backgroundColor:"rgba(100,0,0,.2)"}:{},gt=dt.reduce((yt,mt)=>yt+(isHeartbeatUnhealthy(mt,lt)?0:1),0);return Number(at)!==chainToChainId("Aurora")&&(gt0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CheckCircleOutline,{color:"success",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:_e})]}):null,et>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(WarningAmberOutlined,{color:"warning",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:et})]}):null,tt>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ErrorOutline,{color:"error",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:tt})]}):null]}),children:jsxRuntimeExports.jsx(Box,{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",children:Object.keys(s).map(nt=>jsxRuntimeExports.jsx(Chain,{chainId:nt,heartbeats:s[Number(nt)],healthyCount:$[Number(nt)].healthyCount,conditionalRowStyle:$[Number(nt)].conditionalRowStyle,environment:j},nt))})})}const{GrpcWebImpl:GrpcWebImpl$3,PublicRPCServiceClientImpl:PublicRPCServiceClientImpl$3}=publicrpc;async function getGovernorAvailableNotionalByChain(s){const j=new GrpcWebImpl$3(s.endpoint,{});return await new PublicRPCServiceClientImpl$3(j).GovernorGetAvailableNotionalByChain({})}const{GrpcWebImpl:GrpcWebImpl$2,PublicRPCServiceClientImpl:PublicRPCServiceClientImpl$2}=publicrpc;async function getGovernorEnqueuedVAAs(s){const j=new GrpcWebImpl$2(s.endpoint,{});return await new PublicRPCServiceClientImpl$2(j).GovernorGetEnqueuedVAAs({})}const{GrpcWebImpl:GrpcWebImpl$1,PublicRPCServiceClientImpl:PublicRPCServiceClientImpl$1}=publicrpc;async function getGovernorTokenList(s){const j=new GrpcWebImpl$1(s.endpoint,{});return await new PublicRPCServiceClientImpl$1(j).GovernorGetTokenList({})}const createEmptyInfo=()=>({notionals:[],tokens:[],enqueued:[]}),TIMEOUT=10*1e3;function useGovernorInfo(){const{currentNetwork:s}=useNetworkContext(),[j,$]=reactExports.useState(createEmptyInfo());return reactExports.useEffect(()=>{$(createEmptyInfo())},[s]),reactExports.useEffect(()=>{let _e=!1;return(async()=>{for(;!_e&&s.type==="guardian";){const et=await getGovernorAvailableNotionalByChain(s);_e||($(tt=>({...tt,notionals:et.entries})),await new Promise(tt=>setTimeout(tt,TIMEOUT)))}})(),()=>{_e=!0}},[s]),reactExports.useEffect(()=>{let _e=!1;return(async()=>{for(;!_e&&s.type==="guardian";){const et=await getGovernorTokenList(s);_e||($(tt=>({...tt,tokens:et.entries.map(nt=>{try{return{...nt,originAddress:tryHexToNativeAssetString(nt.originAddress,nt.originChainId)}}catch{}return nt})})),await new Promise(tt=>setTimeout(tt,TIMEOUT)))}})(),()=>{_e=!0}},[s]),reactExports.useEffect(()=>{let _e=!1;return(async()=>{for(;!_e&&s.type==="guardian";){const et=await getGovernorEnqueuedVAAs(s);_e||($(tt=>({...tt,enqueued:et.entries})),await new Promise(tt=>setTimeout(tt,TIMEOUT)))}})(),()=>{_e=!0}},[s]),j}const{GrpcWebImpl,PublicRPCServiceClientImpl}=publicrpc;async function getSignedVAA(s,j,$,_e,et={}){const tt=new GrpcWebImpl(s,et);return await new PublicRPCServiceClientImpl(tt).GetSignedVAA({messageId:{emitterChain:toChainId(j),emitterAddress:$,sequence:_e}})}async function getSignedVAAWithRetry(s,j,$,_e,et={},tt=1e3,nt){let rt=-1;const ot=()=>++rt%s.length;let it,st=0;for(;!it;){st++,await new Promise(at=>setTimeout(at,tt));try{it=await getSignedVAA(s[ot()],j,$,_e,et)}catch(at){if(nt!==void 0&&st>nt)throw at}}return it}const VAA_CHECK_TIMEOUT=6e4;function EnqueuedVAAChecker({vaa:{emitterAddress:s,emitterChain:j,sequence:$}}){const{currentNetwork:{endpoint:_e,type:et}}=useNetworkContext(),[tt,nt]=reactExports.useState(null);return reactExports.useEffect(()=>{let rt=!1;return(async()=>{for(;!rt;){nt(null);let ot=!1;if(et==="cloudfunction")try{(await getSignedVAAWithRetry(WORMHOLE_RPC_HOSTS,j,s,$,{},1e3,WORMHOLE_RPC_HOSTS.length)).vaaBytes&&(ot=!0)}catch{}else try{(await getSignedVAA(_e,j,s,$)).vaaBytes&&(ot=!0)}catch{}if(!rt){if(nt(ot),ot){rt=!0;return}await new Promise(it=>setTimeout(it,VAA_CHECK_TIMEOUT))}}})(),()=>{rt=!0}},[_e,et,j,s,$]),jsxRuntimeExports.jsx("span",{role:"img",children:tt===null?"⏳":tt?"✅":"❌"})}const calculatePercent$1=s=>{try{return(Number(s.notionalLimit)-Number(s.remainingAvailableNotional))/Number(s.notionalLimit)*100}catch{return 0}},notionalColumnHelper$1=createColumnHelper(),notionalColumns$1=[notionalColumnHelper$1.accessor("chainId",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`}),notionalColumnHelper$1.accessor("notionalLimit",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Limit"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper$1.accessor("bigTransactionSize",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Big Transaction"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper$1.accessor("remainingAvailableNotional",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Remaining"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper$1.accessor("held",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Withheld"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper$1.accessor(calculatePercent$1,{id:"progress",header:()=>"Progress",cell:s=>jsxRuntimeExports.jsx(Tooltip,{title:`${s.getValue().toFixed(2)}%`,arrow:!0,children:jsxRuntimeExports.jsx(LinearProgress,{variant:"determinate",value:s.getValue(),color:s.getValue()>80?"error":s.getValue()>50?"warning":"success"})})})],enqueuedColumnHelper$1=createColumnHelper(),enqueuedColumns$1=[enqueuedColumnHelper$1.accessor("emitterChain",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text"}),enqueuedColumnHelper$1.accessor("emitterAddress",{header:()=>"Emitter"}),enqueuedColumnHelper$1.accessor("sequence",{header:()=>"Sequence",cell:s=>jsxRuntimeExports.jsx(Link$1,{href:`${WORMHOLE_RPC_HOSTS[0]}/v1/signed_vaa/${s.row.original.emitterChain}/${s.row.original.emitterAddress}/${s.row.original.sequence}`,target:"_blank",rel:"noopener noreferrer",children:s.getValue()})}),enqueuedColumnHelper$1.display({id:"hasQuorum",header:()=>"Has Quorum?",cell:s=>jsxRuntimeExports.jsx(EnqueuedVAAChecker,{vaa:s.row.original})}),enqueuedColumnHelper$1.accessor("txHash",{header:()=>"Transaction Hash",cell:s=>jsxRuntimeExports.jsx(ExplorerTxHash,{chainId:s.row.original.emitterChain,rawTxHash:s.getValue()})}),enqueuedColumnHelper$1.accessor("releaseTime",{header:()=>"Release Time",cell:s=>new Date(s.getValue()*1e3).toLocaleString()}),enqueuedColumnHelper$1.accessor("notionalValue",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Notional Value"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})})],tokenColumnHelper$1=createColumnHelper(),tokenColumns$1=[tokenColumnHelper$1.accessor("originChainId",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text",enableGlobalFilter:!1}),tokenColumnHelper$1.accessor("originAddress",{header:()=>"Token"}),tokenColumnHelper$1.accessor("price",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Price"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0.0000")]}),enableGlobalFilter:!1})];function Governor(){const s=useGovernorInfo(),j=reactExports.useMemo(()=>s.tokens.map(ht=>({...ht})),[s.tokens]),$=reactExports.useMemo(()=>s.enqueued.reduce((ht,yt)=>(ht[yt.emitterChain]?(ht[yt.emitterChain].count++,ht[yt.emitterChain].notional+=BigInt(yt.notionalValue)):ht[yt.emitterChain]={count:1,notional:BigInt(yt.notionalValue)},ht),{}),[s.enqueued]),_e=reactExports.useMemo(()=>s.notionals.map(ht=>{var yt;return{...ht,held:((yt=$[ht.chainId])==null?void 0:yt.notional)||BigInt(0)}}),[s.notionals,$]),[et,tt]=reactExports.useState([]),nt=useReactTable({columns:notionalColumns$1,data:_e,state:{sorting:et},getRowId:ht=>ht.chainId.toString(),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:tt}),[rt,ot]=reactExports.useState([]),it=useReactTable({columns:enqueuedColumns$1,data:s.enqueued,state:{sorting:rt},getRowId:ht=>JSON.stringify(ht),getCoreRowModel:getCoreRowModel(),getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:ot}),[st,at]=reactExports.useState(""),ct=reactExports.useCallback(ht=>{at(ht.target.value)},[]),[lt,dt]=reactExports.useState([]),pt=useReactTable({columns:tokenColumns$1,data:j,state:{globalFilter:st,sorting:lt},getRowId:ht=>`${ht.originChainId}_${ht.originAddress}`,getCoreRowModel:getCoreRowModel(),getFilteredRowModel:getFilteredRowModel(),getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),onGlobalFilterChange:at,onSortingChange:dt});return jsxRuntimeExports.jsxs(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsx(Box,{children:"Governor"}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap"},children:Object.keys($).sort().map(ht=>jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[ht]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[ht],alt:dist.chainIdToName(Number(ht)),width:24,height:24}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:ht})}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:$[Number(ht)].count})]},ht))})]}),children:[jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:nt})})}),jsxRuntimeExports.jsx(Box,{my:2,children:jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(Table,{table:it,paginated:!!s.enqueued.length,showRowCount:!!s.enqueued.length}),s.enqueued.length===0?jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{py:1,textAlign:"center"},children:"No enqueued VAAs"}):null]})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Typography,{children:["Tokens (",s.tokens.length,")"]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[jsxRuntimeExports.jsx(TextField,{type:"search",value:st,onChange:ct,margin:"dense",size:"small",sx:{mb:1,ml:1.5},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:jsxRuntimeExports.jsx(Search,{})})},placeholder:"Search Address"}),jsxRuntimeExports.jsx(Table,{table:pt,paginated:!0})]})]})})})]})}function dateParser(s){const j=new Date(s);if(!Number.isNaN(j.valueOf()))return j;const $=String(s).match(/\d+/g);if($==null||$.length<=2)return j;{const[_e,et,...tt]=$.map(ot=>parseInt(ot)),nt=[_e,et-1,...tt];return new Date(Date.UTC(...nt))}}function defaultFormatter(s,j,$){const _e=s!==1?j+"s":j;return s+" "+_e+" "+$}function _extends(){return _extends=Object.assign?Object.assign.bind():function(s){for(var j=1;jDate.now();function TimeAgo({date:s,formatter:j=defaultFormatter,component:$="time",live:_e=!0,minPeriod:et=0,maxPeriod:tt=WEEK,title:nt,now:rt=defaultNow,...ot}){const[it,st]=reactExports.useState(rt());reactExports.useEffect(()=>{if(!_e)return;const Mt=(()=>{const jt=dateParser(s).valueOf();if(!jt)return console.warn("[react-timeago] Invalid Date provided"),0;const wt=Math.round(Math.abs(it-jt)/1e3),$t=wt{st(rt())},zt):0})();return()=>{Mt&&clearTimeout(Mt)}},[s,_e,tt,et,rt,it]);const at=$,ct=dateParser(s).valueOf();if(!ct)return null;const lt=Math.round(Math.abs(it-ct)/1e3),dt=ct"u"?typeof s=="string"?s:dateParser(s).toISOString().substr(0,16).replace("T"," "):nt,gt=at==="time"?{...ot,dateTime:dateParser(s).toISOString()}:ot,ft=defaultFormatter.bind(null,pt,ht,dt);return reactExports.createElement(at,_extends({},gt,{title:yt}),j(pt,ht,dt,ct,ft,rt))}const columnHelper=createColumnHelper(),columns=[columnHelper.accessor("nodeName",{header:()=>"Guardian",sortingFn:"text"}),columnHelper.accessor("version",{header:()=>"Version"}),columnHelper.accessor("features",{header:()=>"Features",cell:s=>{var j;return((j=s.getValue())==null?void 0:j.length)>0?s.getValue().join(", "):"none"}}),columnHelper.accessor("counter",{header:()=>"Counter"}),columnHelper.accessor("bootTimestamp",{header:()=>"Boot",cell:s=>s.getValue()?new Date(Number(s.getValue())/1e6).toLocaleString():null}),columnHelper.accessor("timestamp",{header:()=>"Timestamp",cell:s=>s.getValue()?new Date(Number(s.getValue())/1e6).toLocaleString():null}),columnHelper.accessor("guardianAddr",{header:()=>"Address",cell:s=>jsxRuntimeExports.jsx("code",{children:s.getValue()})}),columnHelper.accessor("p2pNodeAddr",{header:()=>"P2P Address",cell:s=>jsxRuntimeExports.jsx("code",{children:s.getValue()})})],networkColumnHelper=createColumnHelper(),networkColumns=[networkColumnHelper.accessor("id",{header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(Typography,{variant:"body2",noWrap:!0,children:[dist.chainIdToName(s.getValue())," (",s.getValue(),")"]})}),networkColumnHelper.accessor("height",{header:()=>"Height"}),networkColumnHelper.accessor("contractAddress",{header:()=>"Contract"})];function GuardianDetails({heartbeat:s,highestByChain:j,conditionalRowStyle:$}){const[_e,et]=reactExports.useState([{id:"id",desc:!1}]);console.log(_e);const tt=useReactTable({columns:networkColumns,data:s.networks,state:{sorting:_e},getRowId:nt=>nt.id.toString(),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:et});return jsxRuntimeExports.jsx(Table,{table:tt,conditionalRowStyle:$})}function GuardianCard({heartbeat:s,highestByChain:j,latestRelease:$}){const[_e,et]=reactExports.useState(!1),tt=reactExports.useCallback(()=>{et(!0)},[]),nt=reactExports.useCallback(()=>{et(!1)},[]),rt=Object.keys(j).length,ot=reactExports.useMemo(()=>s.networks.reduce((ct,lt)=>isHeartbeatUnhealthy({guardian:s.guardianAddr,name:s.nodeName,network:lt},j[lt.id.toString()])?ct:ct+1,0),[s,j]),it=reactExports.useCallback(ct=>isHeartbeatUnhealthy({network:ct,guardian:"",name:""},j[ct.id])?{backgroundColor:"rgba(100,0,0,.2)"}:{},[j]),st=ot/rt*100,at=$&&s.version!==$;return jsxRuntimeExports.jsxs(Box,{m:1,height:"100%",sx:{width:{sm:232,xs:142}},children:[jsxRuntimeExports.jsx(Card,{sx:{height:"100%",position:"relative",overflow:"visible"},children:jsxRuntimeExports.jsxs(CardActionArea,{onClick:tt,sx:{display:"flex",p:1,height:"100%",alignItems:"center"},children:[jsxRuntimeExports.jsxs(Hidden,{smDown:!0,children:[jsxRuntimeExports.jsx(Box,{flexBasis:"72px",height:"100%",textAlign:"center",children:jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{flexGrow:1},children:s.nodeName.replace(/([a-w,y-z])([A-Z])/g,"$1 $2")})}),jsxRuntimeExports.jsx(Divider,{orientation:"vertical",flexItem:!0,sx:{mx:1}})]}),jsxRuntimeExports.jsxs(Box,{flexGrow:1,my:-.5,children:[jsxRuntimeExports.jsx(Hidden,{smUp:!0,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",sx:{flexGrow:1},children:s.nodeName.replace(/([a-w,y-z])([A-Z])/g,"$1 $2")})}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Last Heartbeat:"," ",s.timestamp?new Date(Number(s.timestamp)/1e6).toLocaleString():null]}),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",my:.25,children:[jsxRuntimeExports.jsx(MonitorHeartOutlined,{fontSize:"inherit",sx:{mr:.5}}),jsxRuntimeExports.jsx(Typography,{variant:"caption",children:s.timestamp?jsxRuntimeExports.jsx(TimeAgo,{date:Number(s.timestamp)/1e6}):null})]})}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Typography,{variant:"body2",gutterBottom:!0,children:["Boot Time:"," ",s.bootTimestamp?new Date(Number(s.bootTimestamp)/1e6).toLocaleString():null]}),at?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Typography,{variant:"body2",gutterBottom:!0,children:[s.nodeName," is not running the latest release."]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Theirs: ",s.version]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Latest: ",$]})]}):null]}),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",my:.25,children:[jsxRuntimeExports.jsx(PlayCircleOutline,{color:at?"primary":"inherit",fontSize:"inherit",sx:{mr:.5}}),jsxRuntimeExports.jsx(Typography,{variant:"caption",children:s.bootTimestamp?jsxRuntimeExports.jsx(TimeAgo,{date:Number(s.bootTimestamp)/1e6}):null})]})}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Healthy Chains: ",ot," / ",rt]}),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",my:.25,children:[jsxRuntimeExports.jsx(LinkIcon,{fontSize:"inherit",sx:{mr:.5}}),jsxRuntimeExports.jsx(LinearProgress,{variant:"determinate",value:st,sx:{flexGrow:1},color:st===100?"success":st>80?"warning":"error"})]})})]})]})}),jsxRuntimeExports.jsxs(Dialog,{open:_e,onClose:nt,maxWidth:"md",fullWidth:!0,children:[jsxRuntimeExports.jsx(DialogTitle,{children:s.nodeName}),jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsx(GuardianDetails,{heartbeat:s,highestByChain:j,conditionalRowStyle:it})})]})]})}function Guardians({heartbeats:s,chainIdsToHeartbeats:j,latestRelease:$}){const[_e,et]=reactExports.useMemo(()=>s.reduce(([ht,yt],gt)=>dist.STANDBY_GUARDIANS.find(ft=>ft.pubkey.toLowerCase()===gt.guardianAddr.toLowerCase())?[ht,[...yt,gt]]:[[...ht,gt],yt],[[],[]]),[s]),tt=reactExports.useMemo(()=>Object.entries(j).reduce((ht,[yt,gt])=>{let ft=BigInt(0);return gt.forEach(xt=>{const Mt=BigInt(xt.network.height);Mt>ft&&(ft=Mt)}),ht[yt]=ft,ht},{}),[j]),[nt,rt]=reactExports.useState([]),ot=useReactTable({columns,data:_e,state:{sorting:nt},getRowId:ht=>`${ht.guardianAddr}-${ht.nodeName}`,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:rt}),it=useReactTable({columns,data:et,state:{sorting:nt},getRowId:ht=>`${ht.guardianAddr}-${ht.nodeName}`,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:rt}),[st,at]=reactExports.useState("cards"),ct=reactExports.useCallback((ht,yt)=>{yt&&at(yt),ht.stopPropagation()},[]),{numSuccess:lt,numWarnings:dt,numErrors:pt}=reactExports.useMemo(()=>{let ht=0,yt=0,gt=0;const ft=Object.keys(tt).length;for(const xt of _e){const jt=xt.networks.reduce((wt,$t)=>isHeartbeatUnhealthy({guardian:xt.guardianAddr,name:xt.nodeName,network:$t},tt[$t.id.toString()])?wt:wt+1,0)/ft*100;jt===100?ht++:jt>80?yt++:gt++}return{numSuccess:ht,numWarnings:yt,numErrors:gt}},[_e,tt]);return jsxRuntimeExports.jsx(CollapsibleSection,{header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsx(Box,{children:"Guardians"}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"This section shows alerts for the following conditions:"}),jsxRuntimeExports.jsx(List,{dense:!0,children:jsxRuntimeExports.jsxs(ListItem,{children:[jsxRuntimeExports.jsx(ListItemIcon,{children:jsxRuntimeExports.jsx(InfoOutlined,{color:"info"})}),jsxRuntimeExports.jsx(ListItemText,{primary:"Guardians not running the latest release",secondary:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["The guardian version is compared to the latest release from"," ",jsxRuntimeExports.jsx(Link$1,{href:"https://github.com/wormhole-foundation/wormhole/releases",target:"_blank",rel:"noopener noreferrer",children:"https://github.com/wormhole-foundation/wormhole/releases"})]})})]})})]}),componentsProps:{tooltip:{sx:{maxWidth:"100%"}}},children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(InfoOutlined,{sx:{fontSize:".8em",ml:.5}})})}),jsxRuntimeExports.jsxs(ToggleButtonGroup,{value:st,exclusive:!0,onChange:ct,size:"small",sx:{my:-1,ml:1},children:[jsxRuntimeExports.jsx(ToggleButton,{value:"cards",children:jsxRuntimeExports.jsx(GridView,{fontSize:"small"})}),jsxRuntimeExports.jsx(ToggleButton,{value:"table",children:jsxRuntimeExports.jsx(ViewList,{fontSize:"small"})})]}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),lt>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CheckCircleOutline,{color:"success",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:lt})]}):null,dt>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(WarningAmberOutlined,{color:"warning",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:dt})]}):null,pt>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ErrorOutline,{color:"error",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:pt})]}):null]}),children:st==="cards"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",children:_e.map(ht=>jsxRuntimeExports.jsx(GuardianCard,{heartbeat:ht,highestByChain:tt,latestRelease:$},`${ht.guardianAddr}-${ht.nodeName}`))}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",sx:{mt:2,mb:1},children:"Standby Guardians"}),jsxRuntimeExports.jsx(Box,{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",children:et.map(ht=>jsxRuntimeExports.jsx(GuardianCard,{heartbeat:ht,highestByChain:tt,latestRelease:$},`${ht.guardianAddr}-${ht.nodeName}`))})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:ot,showRowCount:!0})}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",sx:{mt:2,mb:1},children:"Standby Guardians"}),jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:it,showRowCount:!0})})]})})}const calculatePercent=s=>{try{return(Number(s.notionalLimit)-Number(s.remainingAvailableNotional.quorum))/Number(s.notionalLimit)*100}catch{return 0}},notionalColumnHelper=createColumnHelper(),notionalColumns=[notionalColumnHelper.accessor("chainId",{header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s.row.getCanExpand()?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):null," ",s.row.original.guardianName?jsxRuntimeExports.jsx(Box,{sx:{pl:3},children:s.row.original.guardianName}):`${dist.chainIdToName(s.getValue())} (${s.getValue()})`]})}),notionalColumnHelper.accessor("notionalLimit",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Limit"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor("bigTransactionSize",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Big Transaction"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor("remainingAvailableNotional.min",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Min Remaining"}),cell:s=>s.row.original.guardianName?null:jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor("remainingAvailableNotional.quorum",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Quorum Remaining"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor("remainingAvailableNotional.max",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Max Remaining"}),cell:s=>s.row.original.guardianName?null:jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor(calculatePercent,{id:"progress",header:()=>"Percent",cell:s=>jsxRuntimeExports.jsx(Tooltip,{title:`${s.getValue().toFixed(2)}%`,arrow:!0,children:jsxRuntimeExports.jsx(LinearProgress,{variant:"determinate",value:s.getValue(),color:s.getValue()>80?"error":s.getValue()>50?"warning":"success"})})})],guardianHoldingColumnHelper=createColumnHelper(),guardianHoldingColumns=[guardianHoldingColumnHelper.accessor("name",{header:()=>"Guardian",sortingFn:"text"}),guardianHoldingColumnHelper.accessor("numHeld",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Total Held"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:s.getValue()})}),guardianHoldingColumnHelper.accessor("byChain",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"By Chain"}),cell:s=>jsxRuntimeExports.jsx(Box,{display:"flex",alignItems:"center",justifyContent:"flex-end",children:Object.entries(s.getValue()).filter(([j,$])=>$!==0).map(([j,$])=>jsxRuntimeExports.jsxs(React$1.Fragment,{children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[j]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[j],alt:dist.chainIdToName(Number(j)),width:12,height:12}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:j})}),jsxRuntimeExports.jsx(Box,{sx:{ml:.5},children:$})]},j))})})],enqueuedColumnHelper=createColumnHelper(),enqueuedColumns=[enqueuedColumnHelper.accessor("emitterChain",{header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(Typography,{variant:"body2",noWrap:!0,sx:{pl:s.row.original.byGuardian?0:3},children:[s.row.getCanExpand()?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):null," ",dist.chainIdToName(s.getValue())," (",s.getValue(),")"]}),sortingFn:"text"}),enqueuedColumnHelper.accessor("emitterAddress",{header:()=>"Emitter"}),enqueuedColumnHelper.accessor("sequence",{header:()=>"Sequence",cell:s=>jsxRuntimeExports.jsx(Link$1,{href:`${WORMHOLE_RPC_HOSTS[0]}/v1/signed_vaa/${s.row.original.emitterChain}/${s.row.original.emitterAddress}/${s.row.original.sequence}`,target:"_blank",rel:"noopener noreferrer",children:s.getValue()})}),enqueuedColumnHelper.display({id:"hasQuorum",header:()=>"Has Quorum?",cell:s=>s.row.original.byGuardian?jsxRuntimeExports.jsx(EnqueuedVAAChecker,{vaa:s.row.original}):null}),enqueuedColumnHelper.display({id:"numGuardians",header:()=>"Num Holding",cell:s=>{var j;return((j=s.row.original.byGuardian)==null?void 0:j.length)||s.row.original.guardianName||null}}),enqueuedColumnHelper.accessor("txHash",{header:()=>"Transaction Hash",cell:s=>jsxRuntimeExports.jsx(ExplorerTxHash,{chainId:s.row.original.emitterChain,rawTxHash:s.getValue()})}),enqueuedColumnHelper.accessor("releaseTime",{header:()=>"Estimated Release Time",cell:s=>{var tt;const j=(tt=s.row.original.byGuardian)==null?void 0:tt.map(nt=>nt.releaseTime).sort(),$=j&&j[Math.max(0,j.length-getQuorumLossCount("Mainnet"))],_e=$||s.getValue(),et=new Date(_e*1e3);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et.toLocaleString()," (",et.toISOString(),")"]})}}),enqueuedColumnHelper.accessor("notionalValue",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Notional Value"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})})],tokenColumnHelper=createColumnHelper(),tokenColumns=[tokenColumnHelper.accessor("originChainId",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text",enableGlobalFilter:!1}),tokenColumnHelper.accessor("originAddress",{header:()=>"Token"}),tokenColumnHelper.accessor("price",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Price"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0.0000")]}),enableGlobalFilter:!1})];function MainnetGovernor({governorInfo:s}){const j=reactExports.useMemo(()=>s.tokens.map(wt=>({...wt})),[s.tokens]),[$,_e]=reactExports.useState([]),[et,tt]=reactExports.useState({}),nt=useReactTable({columns:notionalColumns,data:s.notionals,state:{expanded:et,sorting:$},getRowId:wt=>`${wt.chainId.toString()}-${wt.guardianName||""}`,getSubRows:wt=>wt.byGuardian,getCoreRowModel:getCoreRowModel(),getExpandedRowModel:getExpandedRowModel(),onExpandedChange:tt,getSortedRowModel:getSortedRowModel(),onSortingChange:_e}),rt=reactExports.useMemo(()=>{const wt=dist.GUARDIAN_SET_4.map($t=>({name:$t.name,numHeld:0,byChain:{}}));for(const $t of Object.keys(s.totalEnqueuedVaas)){const zt=dist.GUARDIAN_SET_4.findIndex(Ot=>`0x${$t}`.toLowerCase()===Ot.pubkey.toLowerCase());zt!==-1&&(wt[zt].byChain=s.totalEnqueuedVaas[$t],wt[zt].numHeld+=Object.values(s.totalEnqueuedVaas[$t]).reduce((Ot,Pt)=>Ot+Pt,0))}return wt},[s.totalEnqueuedVaas]),[ot,it]=reactExports.useState([]),st=useReactTable({columns:guardianHoldingColumns,data:rt,state:{sorting:ot},getRowId:wt=>JSON.stringify(wt),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:it}),[at,ct]=reactExports.useState([]),[lt,dt]=reactExports.useState({}),pt=useReactTable({columns:enqueuedColumns,data:s.enqueuedVAAs,state:{expanded:lt,sorting:at},initialState:{pagination:{pageIndex:0,pageSize:50}},getRowId:wt=>JSON.stringify(wt),getSubRows:wt=>wt.byGuardian,getCoreRowModel:getCoreRowModel(),getExpandedRowModel:getExpandedRowModel(),onExpandedChange:dt,getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:ct}),[ht,yt]=reactExports.useState(""),gt=reactExports.useCallback(wt=>{yt(wt.target.value)},[]),[ft,xt]=reactExports.useState([]),Mt=useReactTable({columns:tokenColumns,data:j,state:{globalFilter:ht,sorting:ft},getRowId:wt=>`${wt.originChainId}_${wt.originAddress}`,getCoreRowModel:getCoreRowModel(),getFilteredRowModel:getFilteredRowModel(),getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),onGlobalFilterChange:yt,onSortingChange:xt}),jt=reactExports.useMemo(()=>s.enqueuedVAAs.reduce((wt,$t)=>(wt[$t.emitterChain]?wt[$t.emitterChain]++:wt[$t.emitterChain]=1,wt),{}),[s.enqueuedVAAs]);return jsxRuntimeExports.jsxs(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsx(Box,{children:"Governor"}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap"},children:Object.keys(jt).sort().map(wt=>jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[wt]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[wt],alt:dist.chainIdToName(Number(wt)),width:24,height:24}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:wt})}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:jt[Number(wt)]})]},wt))})]}),children:[jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:nt})})}),s.enqueuedVAAs.length?jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:st})})}):null,jsxRuntimeExports.jsx(Box,{my:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Typography,{display:"flex",alignItems:"center",children:["Transactions (",s.enqueuedVAAs.length,")"," ",jsxRuntimeExports.jsx(Tooltip,{title:"Please note: Each guardian only gossips 20 of its enqueued VAAs. If the numbers above are larger than that, only a subset of the held transactions may be shown",children:jsxRuntimeExports.jsx(WarningAmberOutlined,{sx:{fontSize:"1em",ml:.5}})})]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[jsxRuntimeExports.jsx(Table,{table:pt,paginated:!!s.enqueuedVAAs.length,showRowCount:!!s.enqueuedVAAs.length}),s.enqueuedVAAs.length===0?jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{py:1,textAlign:"center"},children:"No enqueued VAAs"}):null]})]})})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Typography,{children:["Tokens (",s.tokens.length,")"]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[jsxRuntimeExports.jsx(TextField,{type:"search",value:ht,onChange:gt,margin:"dense",size:"small",sx:{mb:1},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:jsxRuntimeExports.jsx(Search,{})})},placeholder:"Search Address"}),jsxRuntimeExports.jsx(Table,{table:Mt,paginated:!0})]})]})})})]})}function getEmptyDataWrapper(){return{data:null,error:null,isFetching:!1,receivedAt:null}}function receiveDataWrapper(s){return{data:s,error:null,isFetching:!1,receivedAt:new Date().toISOString()}}const POLL_INTERVAL_MS=60*1e3,useMonitorInfo=()=>{const{currentNetwork:s}=useNetworkContext(),[j,$]=reactExports.useState(getEmptyDataWrapper());reactExports.useEffect(()=>{let rt=!1;return(async()=>{for($(ot=>({...ot,isFetching:!0,error:null}));!rt;){try{const ot=`${s.endpoint}/latest-blocks`,it=await axios$2.get(ot);it.data&&!rt&&$(receiveDataWrapper(it.data))}catch(ot){rt||$(it=>({...it,isFetching:!1,error:(ot==null?void 0:ot.message)||"An error occurred while fetching the database"}))}rt||await new Promise(ot=>setTimeout(ot,POLL_INTERVAL_MS))}})(),()=>{rt=!0}},[s]);const[_e,et]=reactExports.useState(getEmptyDataWrapper());reactExports.useEffect(()=>{let rt=!1;return(async()=>{for(et(ot=>({...ot,isFetching:!0,error:null}));!rt;){try{const ot=`${s.endpoint}/message-counts`,it=await axios$2.get(ot);it.data&&!rt&&et(receiveDataWrapper(it.data))}catch(ot){rt||et(it=>({...it,isFetching:!1,error:(ot==null?void 0:ot.message)||"An error occurred while fetching the database"}))}rt||await new Promise(ot=>setTimeout(ot,POLL_INTERVAL_MS))}})(),()=>{rt=!0}},[s]);const[tt,nt]=reactExports.useState(getEmptyDataWrapper());return reactExports.useEffect(()=>{let rt=!1;return(async()=>{for(nt(ot=>({...ot,isFetching:!0,error:null}));!rt;){try{const ot=await axios$2.get(`${s.endpoint}/missing-vaas`);ot.data&&!rt&&nt(receiveDataWrapper(ot.data))}catch(ot){rt||nt(it=>({...it,isFetching:!1,error:(ot==null?void 0:ot.message)||"An error occurred while fetching the database"}))}rt||await new Promise(ot=>setTimeout(ot,POLL_INTERVAL_MS))}})(),()=>{rt=!0}},[s]),{lastBlockByChainWrapper:j,messageCountsWrapper:_e,missesWrapper:tt}},inlineIconButtonSx={fontSize:"1em",padding:0,mt:-.5},baseBlockSx={height:16,width:16,border:"1px solid black",fontSize:"10px",textAlign:"center",verticalAlign:"middle"},FOUND_COLOR="green",MISSING_COLOR="darkred",doneBlockSx={...baseBlockSx,backgroundColor:FOUND_COLOR},missingBlockSx={...baseBlockSx,backgroundColor:MISSING_COLOR};function BlockDetail({chain:s,message:j}){const $=useCurrentEnvironment(),_e=`${j.chain}/${j.emitter}/${j.seq}`;return jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Typography,{sx:{mt:2},gutterBottom:!0,children:"VAA"}),jsxRuntimeExports.jsxs(Box,{sx:{mb:1},children:[jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{fontFamily:"monospace",wordBreak:"break-all"},gutterBottom:!0,children:[jsxRuntimeExports.jsx(IconButton,{href:dist.explorerTx($,Number(s),j.txHash),target:"_blank",size:"small",sx:inlineIconButtonSx,children:jsxRuntimeExports.jsx(Launch,{fontSize:"inherit"})})," ",j.txHash]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{fontFamily:"monospace",ml:1,wordBreak:"break-all"},gutterBottom:!0,children:[jsxRuntimeExports.jsx(IconButton,{href:dist.explorerVaa($,_e),target:"_blank",size:"small",sx:inlineIconButtonSx,children:jsxRuntimeExports.jsx(Launch,{fontSize:"inherit"})})," ",_e]})]}),jsxRuntimeExports.jsxs(Typography,{gutterBottom:!0,children:["Block ",j.block," ",jsxRuntimeExports.jsx(IconButton,{href:dist.explorerBlock($,Number(s),j.block.toString()),target:"_blank",size:"small",sx:inlineIconButtonSx,children:jsxRuntimeExports.jsx(Launch,{fontSize:"inherit"})})]}),jsxRuntimeExports.jsx(Typography,{variant:"body2",gutterBottom:!0,children:new Date(j.timestamp).toLocaleString()})]})}function DetailBlocks({chain:s}){const{currentNetwork:j}=useNetworkContext(),{settings:{showMonitorDetails:$}}=useSettingsContext(),[_e,et]=reactExports.useState(getEmptyDataWrapper()),[tt,nt]=reactExports.useState(null);reactExports.useEffect(()=>{let ct=!1;const lt=async()=>{if(!ct){et(dt=>({...dt,isFetching:!0,error:null}));try{const dt=await axios$2.get(`${j.endpoint}/messages/${s}${tt?`?fromId=${tt}`:""}`);dt.data&&!ct&&(dt.data.reverse(),et(pt=>receiveDataWrapper([...dt.data,...pt.data||[]])))}catch(dt){et(pt=>({...pt,isFetching:!1,error:(dt==null?void 0:dt.message)||"An error occurred while fetching the database"}))}}};return(async()=>lt())(),()=>{ct=!0}},[s,tt,j]);let rt=_e.data;rt&&rt.length===0&&(rt=null);const ot=rt&&rt[0].id,it=reactExports.useCallback(()=>{ot&&nt(ot)},[ot]),st=reactExports.useMemo(()=>!rt||!$?rt:[...rt||[]].reverse(),[rt,$]),at=jsxRuntimeExports.jsx(Button,{onClick:it,endIcon:$?jsxRuntimeExports.jsx(ArrowDownward,{}):jsxRuntimeExports.jsx(ArrowUpward,{}),disabled:_e.isFetching,sx:{my:1},children:"Load More"});return jsxRuntimeExports.jsxs(Box,{textAlign:"center",maxWidth:$?void 0:16*20,mx:"auto",my:2,children:[" ",_e.isFetching&&!st?jsxRuntimeExports.jsx(CircularProgress,{}):rt&&rt.length&&st?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[$?null:at,$?st.map(ct=>jsxRuntimeExports.jsxs(Box,{textAlign:"left",borderLeft:"4px solid",borderColor:ct.hasSignedVaa?FOUND_COLOR:MISSING_COLOR,borderRadius:"2px",paddingLeft:1,children:[jsxRuntimeExports.jsx(BlockDetail,{chain:s,message:ct}),jsxRuntimeExports.jsx(Divider,{})]},ct.id)):jsxRuntimeExports.jsx(Box,{sx:{display:"flex",flexWrap:"wrap"},children:st.map(ct=>jsxRuntimeExports.jsx(Tooltip,{arrow:!0,enterDelay:500,enterNextDelay:100,TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},title:jsxRuntimeExports.jsx(BlockDetail,{chain:s,message:ct}),children:jsxRuntimeExports.jsx(Box,{sx:ct.hasSignedVaa?doneBlockSx:missingBlockSx})},ct.id))}),$?at:null]}):jsxRuntimeExports.jsx(Typography,{children:"No messages"})]})}function ReobserveCodeContent({misses:s}){const j=new Date,{settings:{showAllMisses:$}}=useSettingsContext();return jsxRuntimeExports.jsx("pre",{children:Object.entries(s).map(([_e,et])=>{const tt=$?et.messages:et.messages.filter(nt=>nt.timestamp`send-observation-request ${_e} ${nt.txHash.replace("0x","")}`).join(` + heartbeats`})]})]})]}),componentsProps:{tooltip:{sx:{maxWidth:"100%"}}},children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(InfoOutlined,{sx:{fontSize:".8em",ml:.5}})})}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),_e>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CheckCircleOutline,{color:"success",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:_e})]}):null,et>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(WarningAmberOutlined,{color:"warning",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:et})]}):null,tt>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ErrorOutline,{color:"error",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:tt})]}):null]}),children:jsxRuntimeExports.jsx(Box,{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",children:Object.keys(s).map(nt=>jsxRuntimeExports.jsx(Chain,{chainId:nt,heartbeats:s[Number(nt)],healthyCount:$[Number(nt)].healthyCount,conditionalRowStyle:$[Number(nt)].conditionalRowStyle,environment:j},nt))})})}const{GrpcWebImpl:GrpcWebImpl$3,PublicRPCServiceClientImpl:PublicRPCServiceClientImpl$3}=publicrpc;async function getGovernorAvailableNotionalByChain(s){const j=new GrpcWebImpl$3(s.endpoint,{});return await new PublicRPCServiceClientImpl$3(j).GovernorGetAvailableNotionalByChain({})}const{GrpcWebImpl:GrpcWebImpl$2,PublicRPCServiceClientImpl:PublicRPCServiceClientImpl$2}=publicrpc;async function getGovernorEnqueuedVAAs(s){const j=new GrpcWebImpl$2(s.endpoint,{});return await new PublicRPCServiceClientImpl$2(j).GovernorGetEnqueuedVAAs({})}const{GrpcWebImpl:GrpcWebImpl$1,PublicRPCServiceClientImpl:PublicRPCServiceClientImpl$1}=publicrpc;async function getGovernorTokenList(s){const j=new GrpcWebImpl$1(s.endpoint,{});return await new PublicRPCServiceClientImpl$1(j).GovernorGetTokenList({})}const createEmptyInfo=()=>({notionals:[],tokens:[],enqueued:[]}),TIMEOUT=10*1e3;function useGovernorInfo(){const{currentNetwork:s}=useNetworkContext(),[j,$]=reactExports.useState(createEmptyInfo());return reactExports.useEffect(()=>{$(createEmptyInfo())},[s]),reactExports.useEffect(()=>{let _e=!1;return(async()=>{for(;!_e&&s.type==="guardian";){const et=await getGovernorAvailableNotionalByChain(s);_e||($(tt=>({...tt,notionals:et.entries})),await new Promise(tt=>setTimeout(tt,TIMEOUT)))}})(),()=>{_e=!0}},[s]),reactExports.useEffect(()=>{let _e=!1;return(async()=>{for(;!_e&&s.type==="guardian";){const et=await getGovernorTokenList(s);_e||($(tt=>({...tt,tokens:et.entries.map(nt=>{try{return{...nt,originAddress:tryHexToNativeAssetString(nt.originAddress,nt.originChainId)}}catch{}return nt})})),await new Promise(tt=>setTimeout(tt,TIMEOUT)))}})(),()=>{_e=!0}},[s]),reactExports.useEffect(()=>{let _e=!1;return(async()=>{for(;!_e&&s.type==="guardian";){const et=await getGovernorEnqueuedVAAs(s);_e||($(tt=>({...tt,enqueued:et.entries})),await new Promise(tt=>setTimeout(tt,TIMEOUT)))}})(),()=>{_e=!0}},[s]),j}const{GrpcWebImpl,PublicRPCServiceClientImpl}=publicrpc;async function getSignedVAA(s,j,$,_e,et={}){const tt=new GrpcWebImpl(s,et);return await new PublicRPCServiceClientImpl(tt).GetSignedVAA({messageId:{emitterChain:toChainId(j),emitterAddress:$,sequence:_e}})}async function getSignedVAAWithRetry(s,j,$,_e,et={},tt=1e3,nt){let rt=-1;const ot=()=>++rt%s.length;let it,st=0;for(;!it;){st++,await new Promise(at=>setTimeout(at,tt));try{it=await getSignedVAA(s[ot()],j,$,_e,et)}catch(at){if(nt!==void 0&&st>nt)throw at}}return it}const VAA_CHECK_TIMEOUT=6e4;function EnqueuedVAAChecker({vaa:{emitterAddress:s,emitterChain:j,sequence:$}}){const{currentNetwork:{endpoint:_e,type:et}}=useNetworkContext(),[tt,nt]=reactExports.useState(null);return reactExports.useEffect(()=>{let rt=!1;return(async()=>{for(;!rt;){nt(null);let ot=!1;if(et==="cloudfunction")try{(await getSignedVAAWithRetry(WORMHOLE_RPC_HOSTS,j,s,$,{},1e3,WORMHOLE_RPC_HOSTS.length)).vaaBytes&&(ot=!0)}catch{}else try{(await getSignedVAA(_e,j,s,$)).vaaBytes&&(ot=!0)}catch{}if(!rt){if(nt(ot),ot){rt=!0;return}await new Promise(it=>setTimeout(it,VAA_CHECK_TIMEOUT))}}})(),()=>{rt=!0}},[_e,et,j,s,$]),jsxRuntimeExports.jsx("span",{role:"img",children:tt===null?"⏳":tt?"✅":"❌"})}const calculatePercent$1=s=>{try{return(Number(s.notionalLimit)-Number(s.remainingAvailableNotional))/Number(s.notionalLimit)*100}catch{return 0}},notionalColumnHelper$1=createColumnHelper(),notionalColumns$1=[notionalColumnHelper$1.accessor("chainId",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`}),notionalColumnHelper$1.accessor("notionalLimit",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Limit"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper$1.accessor("bigTransactionSize",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Big Transaction"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper$1.accessor("remainingAvailableNotional",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Remaining"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper$1.accessor("held",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Withheld"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper$1.accessor(calculatePercent$1,{id:"progress",header:()=>"Progress",cell:s=>jsxRuntimeExports.jsx(Tooltip,{title:`${s.getValue().toFixed(2)}%`,arrow:!0,children:jsxRuntimeExports.jsx(LinearProgress,{variant:"determinate",value:s.getValue(),color:s.getValue()>80?"error":s.getValue()>50?"warning":"success"})})})],enqueuedColumnHelper$1=createColumnHelper(),enqueuedColumns$1=[enqueuedColumnHelper$1.accessor("emitterChain",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text"}),enqueuedColumnHelper$1.accessor("emitterAddress",{header:()=>"Emitter"}),enqueuedColumnHelper$1.accessor("sequence",{header:()=>"Sequence",cell:s=>jsxRuntimeExports.jsx(Link$1,{href:`${WORMHOLE_RPC_HOSTS[0]}/v1/signed_vaa/${s.row.original.emitterChain}/${s.row.original.emitterAddress}/${s.row.original.sequence}`,target:"_blank",rel:"noopener noreferrer",children:s.getValue()})}),enqueuedColumnHelper$1.display({id:"hasQuorum",header:()=>"Has Quorum?",cell:s=>jsxRuntimeExports.jsx(EnqueuedVAAChecker,{vaa:s.row.original})}),enqueuedColumnHelper$1.accessor("txHash",{header:()=>"Transaction Hash",cell:s=>jsxRuntimeExports.jsx(ExplorerTxHash,{chainId:s.row.original.emitterChain,rawTxHash:s.getValue()})}),enqueuedColumnHelper$1.accessor("releaseTime",{header:()=>"Release Time",cell:s=>new Date(s.getValue()*1e3).toLocaleString()}),enqueuedColumnHelper$1.accessor("notionalValue",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Notional Value"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})})],tokenColumnHelper$1=createColumnHelper(),tokenColumns$1=[tokenColumnHelper$1.accessor("originChainId",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text",enableGlobalFilter:!1}),tokenColumnHelper$1.accessor("originAddress",{header:()=>"Token"}),tokenColumnHelper$1.accessor("price",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Price"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0.0000")]}),enableGlobalFilter:!1})];function Governor(){const s=useGovernorInfo(),j=reactExports.useMemo(()=>s.tokens.map(gt=>({...gt})),[s.tokens]),$=reactExports.useMemo(()=>s.enqueued.reduce((gt,yt)=>(gt[yt.emitterChain]?(gt[yt.emitterChain].count++,gt[yt.emitterChain].notional+=BigInt(yt.notionalValue)):gt[yt.emitterChain]={count:1,notional:BigInt(yt.notionalValue)},gt),{}),[s.enqueued]),_e=reactExports.useMemo(()=>s.notionals.map(gt=>{var yt;return{...gt,held:((yt=$[gt.chainId])==null?void 0:yt.notional)||BigInt(0)}}),[s.notionals,$]),[et,tt]=reactExports.useState([]),nt=useReactTable({columns:notionalColumns$1,data:_e,state:{sorting:et},getRowId:gt=>gt.chainId.toString(),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:tt}),[rt,ot]=reactExports.useState([]),it=useReactTable({columns:enqueuedColumns$1,data:s.enqueued,state:{sorting:rt},getRowId:gt=>JSON.stringify(gt),getCoreRowModel:getCoreRowModel(),getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:ot}),[st,at]=reactExports.useState(""),ct=reactExports.useCallback(gt=>{at(gt.target.value)},[]),[lt,dt]=reactExports.useState([]),ft=useReactTable({columns:tokenColumns$1,data:j,state:{globalFilter:st,sorting:lt},getRowId:gt=>`${gt.originChainId}_${gt.originAddress}`,getCoreRowModel:getCoreRowModel(),getFilteredRowModel:getFilteredRowModel(),getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),onGlobalFilterChange:at,onSortingChange:dt});return jsxRuntimeExports.jsxs(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsx(Box,{children:"Governor"}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap"},children:Object.keys($).sort().map(gt=>jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[gt]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[gt],alt:dist.chainIdToName(Number(gt)),width:24,height:24}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:gt})}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:$[Number(gt)].count})]},gt))})]}),children:[jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:nt})})}),jsxRuntimeExports.jsx(Box,{my:2,children:jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(Table,{table:it,paginated:!!s.enqueued.length,showRowCount:!!s.enqueued.length}),s.enqueued.length===0?jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{py:1,textAlign:"center"},children:"No enqueued VAAs"}):null]})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Typography,{children:["Tokens (",s.tokens.length,")"]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[jsxRuntimeExports.jsx(TextField,{type:"search",value:st,onChange:ct,margin:"dense",size:"small",sx:{mb:1,ml:1.5},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:jsxRuntimeExports.jsx(Search,{})})},placeholder:"Search Address"}),jsxRuntimeExports.jsx(Table,{table:ft,paginated:!0})]})]})})})]})}function dateParser(s){const j=new Date(s);if(!Number.isNaN(j.valueOf()))return j;const $=String(s).match(/\d+/g);if($==null||$.length<=2)return j;{const[_e,et,...tt]=$.map(ot=>parseInt(ot)),nt=[_e,et-1,...tt];return new Date(Date.UTC(...nt))}}function defaultFormatter(s,j,$){const _e=s!==1?j+"s":j;return s+" "+_e+" "+$}function _extends(){return _extends=Object.assign?Object.assign.bind():function(s){for(var j=1;jDate.now();function TimeAgo({date:s,formatter:j=defaultFormatter,component:$="time",live:_e=!0,minPeriod:et=0,maxPeriod:tt=WEEK,title:nt,now:rt=defaultNow,...ot}){const[it,st]=reactExports.useState(rt());reactExports.useEffect(()=>{if(!_e)return;const Ct=(()=>{const Dt=dateParser(s).valueOf();if(!Dt)return console.warn("[react-timeago] Invalid Date provided"),0;const wt=Math.round(Math.abs(it-Dt)/1e3),kt=wt{st(rt())},zt):0})();return()=>{Ct&&clearTimeout(Ct)}},[s,_e,tt,et,rt,it]);const at=$,ct=dateParser(s).valueOf();if(!ct)return null;const lt=Math.round(Math.abs(it-ct)/1e3),dt=ct"u"?typeof s=="string"?s:dateParser(s).toISOString().substr(0,16).replace("T"," "):nt,mt=at==="time"?{...ot,dateTime:dateParser(s).toISOString()}:ot,pt=defaultFormatter.bind(null,ft,gt,dt);return reactExports.createElement(at,_extends({},mt,{title:yt}),j(ft,gt,dt,ct,pt,rt))}const columnHelper=createColumnHelper(),columns=[columnHelper.accessor("nodeName",{header:()=>"Guardian",sortingFn:"text"}),columnHelper.accessor("version",{header:()=>"Version"}),columnHelper.accessor("features",{header:()=>"Features",cell:s=>{var j;return((j=s.getValue())==null?void 0:j.length)>0?s.getValue().join(", "):"none"}}),columnHelper.accessor("counter",{header:()=>"Counter"}),columnHelper.accessor("bootTimestamp",{header:()=>"Boot",cell:s=>s.getValue()?new Date(Number(s.getValue())/1e6).toLocaleString():null}),columnHelper.accessor("timestamp",{header:()=>"Timestamp",cell:s=>s.getValue()?new Date(Number(s.getValue())/1e6).toLocaleString():null}),columnHelper.accessor("guardianAddr",{header:()=>"Address",cell:s=>jsxRuntimeExports.jsx("code",{children:s.getValue()})}),columnHelper.accessor("p2pNodeAddr",{header:()=>"P2P Address",cell:s=>jsxRuntimeExports.jsx("code",{children:s.getValue()})})],networkColumnHelper=createColumnHelper(),networkColumns=[networkColumnHelper.accessor("id",{header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(Typography,{variant:"body2",noWrap:!0,children:[dist.chainIdToName(s.getValue())," (",s.getValue(),")"]})}),networkColumnHelper.accessor("height",{header:()=>"Height"}),networkColumnHelper.accessor("contractAddress",{header:()=>"Contract"})];function GuardianDetails({heartbeat:s,highestByChain:j,conditionalRowStyle:$}){const[_e,et]=reactExports.useState([{id:"id",desc:!1}]);console.log(_e);const tt=useReactTable({columns:networkColumns,data:s.networks,state:{sorting:_e},getRowId:nt=>nt.id.toString(),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:et});return jsxRuntimeExports.jsx(Table,{table:tt,conditionalRowStyle:$})}function GuardianCard({heartbeat:s,highestByChain:j,latestRelease:$}){const[_e,et]=reactExports.useState(!1),tt=reactExports.useCallback(()=>{et(!0)},[]),nt=reactExports.useCallback(()=>{et(!1)},[]),rt=Object.keys(j).length,ot=reactExports.useMemo(()=>s.networks.reduce((ct,lt)=>isHeartbeatUnhealthy({guardian:s.guardianAddr,name:s.nodeName,network:lt},j[lt.id.toString()])?ct:ct+1,0),[s,j]),it=reactExports.useCallback(ct=>isHeartbeatUnhealthy({network:ct,guardian:"",name:""},j[ct.id])?{backgroundColor:"rgba(100,0,0,.2)"}:{},[j]),st=ot/rt*100,at=$&&s.version!==$;return jsxRuntimeExports.jsxs(Box,{m:1,height:"100%",sx:{width:{sm:232,xs:142}},children:[jsxRuntimeExports.jsx(Card,{sx:{height:"100%",position:"relative",overflow:"visible"},children:jsxRuntimeExports.jsxs(CardActionArea,{onClick:tt,sx:{display:"flex",p:1,height:"100%",alignItems:"center"},children:[jsxRuntimeExports.jsxs(Hidden,{smDown:!0,children:[jsxRuntimeExports.jsx(Box,{flexBasis:"72px",height:"100%",textAlign:"center",children:jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{flexGrow:1},children:s.nodeName.replace(/([a-w,y-z])([A-Z])/g,"$1 $2")})}),jsxRuntimeExports.jsx(Divider,{orientation:"vertical",flexItem:!0,sx:{mx:1}})]}),jsxRuntimeExports.jsxs(Box,{flexGrow:1,my:-.5,children:[jsxRuntimeExports.jsx(Hidden,{smUp:!0,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",sx:{flexGrow:1},children:s.nodeName.replace(/([a-w,y-z])([A-Z])/g,"$1 $2")})}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Last Heartbeat:"," ",s.timestamp?new Date(Number(s.timestamp)/1e6).toLocaleString():null]}),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",my:.25,children:[jsxRuntimeExports.jsx(MonitorHeartOutlined,{fontSize:"inherit",sx:{mr:.5}}),jsxRuntimeExports.jsx(Typography,{variant:"caption",children:s.timestamp?jsxRuntimeExports.jsx(TimeAgo,{date:Number(s.timestamp)/1e6}):null})]})}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Typography,{variant:"body2",gutterBottom:!0,children:["Boot Time:"," ",s.bootTimestamp?new Date(Number(s.bootTimestamp)/1e6).toLocaleString():null]}),at?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Typography,{variant:"body2",gutterBottom:!0,children:[s.nodeName," is not running the latest release."]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Theirs: ",s.version]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Latest: ",$]})]}):null]}),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",my:.25,children:[jsxRuntimeExports.jsx(PlayCircleOutline,{color:at?"primary":"inherit",fontSize:"inherit",sx:{mr:.5}}),jsxRuntimeExports.jsx(Typography,{variant:"caption",children:s.bootTimestamp?jsxRuntimeExports.jsx(TimeAgo,{date:Number(s.bootTimestamp)/1e6}):null})]})}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Healthy Chains: ",ot," / ",rt]}),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",my:.25,children:[jsxRuntimeExports.jsx(LinkIcon,{fontSize:"inherit",sx:{mr:.5}}),jsxRuntimeExports.jsx(LinearProgress,{variant:"determinate",value:st,sx:{flexGrow:1},color:st===100?"success":st>80?"warning":"error"})]})})]})]})}),jsxRuntimeExports.jsxs(Dialog,{open:_e,onClose:nt,maxWidth:"md",fullWidth:!0,children:[jsxRuntimeExports.jsx(DialogTitle,{children:s.nodeName}),jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsx(GuardianDetails,{heartbeat:s,highestByChain:j,conditionalRowStyle:it})})]})]})}function Guardians({heartbeats:s,chainIdsToHeartbeats:j,latestRelease:$}){const[_e,et]=reactExports.useMemo(()=>s.reduce(([gt,yt],mt)=>dist.STANDBY_GUARDIANS.find(pt=>pt.pubkey.toLowerCase()===mt.guardianAddr.toLowerCase())?[gt,[...yt,mt]]:[[...gt,mt],yt],[[],[]]),[s]),tt=reactExports.useMemo(()=>Object.entries(j).reduce((gt,[yt,mt])=>{let pt=BigInt(0);return mt.forEach(xt=>{const Ct=BigInt(xt.network.height);Ct>pt&&(pt=Ct)}),gt[yt]=pt,gt},{}),[j]),[nt,rt]=reactExports.useState([]),ot=useReactTable({columns,data:_e,state:{sorting:nt},getRowId:gt=>`${gt.guardianAddr}-${gt.nodeName}`,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:rt}),it=useReactTable({columns,data:et,state:{sorting:nt},getRowId:gt=>`${gt.guardianAddr}-${gt.nodeName}`,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:rt}),[st,at]=reactExports.useState("cards"),ct=reactExports.useCallback((gt,yt)=>{yt&&at(yt),gt.stopPropagation()},[]),{numSuccess:lt,numWarnings:dt,numErrors:ft}=reactExports.useMemo(()=>{let gt=0,yt=0,mt=0;const pt=Object.keys(tt).length;for(const xt of _e){const Dt=xt.networks.reduce((wt,kt)=>isHeartbeatUnhealthy({guardian:xt.guardianAddr,name:xt.nodeName,network:kt},tt[kt.id.toString()])?wt:wt+1,0)/pt*100;Dt===100?gt++:Dt>80?yt++:mt++}return{numSuccess:gt,numWarnings:yt,numErrors:mt}},[_e,tt]);return jsxRuntimeExports.jsx(CollapsibleSection,{header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsx(Box,{children:"Guardians"}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"This section shows alerts for the following conditions:"}),jsxRuntimeExports.jsx(List,{dense:!0,children:jsxRuntimeExports.jsxs(ListItem,{children:[jsxRuntimeExports.jsx(ListItemIcon,{children:jsxRuntimeExports.jsx(InfoOutlined,{color:"info"})}),jsxRuntimeExports.jsx(ListItemText,{primary:"Guardians not running the latest release",secondary:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["The guardian version is compared to the latest release from"," ",jsxRuntimeExports.jsx(Link$1,{href:"https://github.com/wormhole-foundation/wormhole/releases",target:"_blank",rel:"noopener noreferrer",children:"https://github.com/wormhole-foundation/wormhole/releases"})]})})]})})]}),componentsProps:{tooltip:{sx:{maxWidth:"100%"}}},children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(InfoOutlined,{sx:{fontSize:".8em",ml:.5}})})}),jsxRuntimeExports.jsxs(ToggleButtonGroup,{value:st,exclusive:!0,onChange:ct,size:"small",sx:{my:-1,ml:1},children:[jsxRuntimeExports.jsx(ToggleButton,{value:"cards",children:jsxRuntimeExports.jsx(GridView,{fontSize:"small"})}),jsxRuntimeExports.jsx(ToggleButton,{value:"table",children:jsxRuntimeExports.jsx(ViewList,{fontSize:"small"})})]}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),lt>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CheckCircleOutline,{color:"success",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:lt})]}):null,dt>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(WarningAmberOutlined,{color:"warning",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:dt})]}):null,ft>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ErrorOutline,{color:"error",sx:{ml:2}}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:ft})]}):null]}),children:st==="cards"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",children:_e.map(gt=>jsxRuntimeExports.jsx(GuardianCard,{heartbeat:gt,highestByChain:tt,latestRelease:$},`${gt.guardianAddr}-${gt.nodeName}`))}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",sx:{mt:2,mb:1},children:"Standby Guardians"}),jsxRuntimeExports.jsx(Box,{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",children:et.map(gt=>jsxRuntimeExports.jsx(GuardianCard,{heartbeat:gt,highestByChain:tt,latestRelease:$},`${gt.guardianAddr}-${gt.nodeName}`))})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:ot,showRowCount:!0})}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",sx:{mt:2,mb:1},children:"Standby Guardians"}),jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:it,showRowCount:!0})})]})})}const calculatePercent=s=>{try{return(Number(s.notionalLimit)-Number(s.remainingAvailableNotional.quorum))/Number(s.notionalLimit)*100}catch{return 0}},notionalColumnHelper=createColumnHelper(),notionalColumns=[notionalColumnHelper.accessor("chainId",{header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s.row.getCanExpand()?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):null," ",s.row.original.guardianName?jsxRuntimeExports.jsx(Box,{sx:{pl:3},children:s.row.original.guardianName}):`${dist.chainIdToName(s.getValue())} (${s.getValue()})`]})}),notionalColumnHelper.accessor("notionalLimit",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Limit"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor("bigTransactionSize",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Big Transaction"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor("remainingAvailableNotional.min",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Min Remaining"}),cell:s=>s.row.original.guardianName?null:jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor("remainingAvailableNotional.quorum",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Quorum Remaining"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor("remainingAvailableNotional.max",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Max Remaining"}),cell:s=>s.row.original.guardianName?null:jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})}),notionalColumnHelper.accessor(calculatePercent,{id:"progress",header:()=>"Percent",cell:s=>jsxRuntimeExports.jsx(Tooltip,{title:`${s.getValue().toFixed(2)}%`,arrow:!0,children:jsxRuntimeExports.jsx(LinearProgress,{variant:"determinate",value:s.getValue(),color:s.getValue()>80?"error":s.getValue()>50?"warning":"success"})})})],guardianHoldingColumnHelper=createColumnHelper(),guardianHoldingColumns=[guardianHoldingColumnHelper.accessor("name",{header:()=>"Guardian",sortingFn:"text"}),guardianHoldingColumnHelper.accessor("numHeld",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Total Held"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:s.getValue()})}),guardianHoldingColumnHelper.accessor("byChain",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"By Chain"}),cell:s=>jsxRuntimeExports.jsx(Box,{display:"flex",alignItems:"center",justifyContent:"flex-end",children:Object.entries(s.getValue()).filter(([j,$])=>$!==0).map(([j,$])=>jsxRuntimeExports.jsxs(React$1.Fragment,{children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[j]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[j],alt:dist.chainIdToName(Number(j)),width:12,height:12}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:j})}),jsxRuntimeExports.jsx(Box,{sx:{ml:.5},children:$})]},j))})})],enqueuedColumnHelper=createColumnHelper(),enqueuedColumns=[enqueuedColumnHelper.accessor("emitterChain",{header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(Typography,{variant:"body2",noWrap:!0,sx:{pl:s.row.original.byGuardian?0:3},children:[s.row.getCanExpand()?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):null," ",dist.chainIdToName(s.getValue())," (",s.getValue(),")"]}),sortingFn:"text"}),enqueuedColumnHelper.accessor("emitterAddress",{header:()=>"Emitter"}),enqueuedColumnHelper.accessor("sequence",{header:()=>"Sequence",cell:s=>jsxRuntimeExports.jsx(Link$1,{href:`${WORMHOLE_RPC_HOSTS[0]}/v1/signed_vaa/${s.row.original.emitterChain}/${s.row.original.emitterAddress}/${s.row.original.sequence}`,target:"_blank",rel:"noopener noreferrer",children:s.getValue()})}),enqueuedColumnHelper.display({id:"hasQuorum",header:()=>"Has Quorum?",cell:s=>s.row.original.byGuardian?jsxRuntimeExports.jsx(EnqueuedVAAChecker,{vaa:s.row.original}):null}),enqueuedColumnHelper.display({id:"numGuardians",header:()=>"Num Holding",cell:s=>{var j;return((j=s.row.original.byGuardian)==null?void 0:j.length)||s.row.original.guardianName||null}}),enqueuedColumnHelper.accessor("txHash",{header:()=>"Transaction Hash",cell:s=>jsxRuntimeExports.jsx(ExplorerTxHash,{chainId:s.row.original.emitterChain,rawTxHash:s.getValue()})}),enqueuedColumnHelper.accessor("releaseTime",{header:()=>"Estimated Release Time",cell:s=>{var tt;const j=(tt=s.row.original.byGuardian)==null?void 0:tt.map(nt=>nt.releaseTime).sort(),$=j&&j[Math.max(0,j.length-getQuorumLossCount("Mainnet"))],_e=$||s.getValue(),et=new Date(_e*1e3);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et.toLocaleString()," (",et.toISOString(),")"]})}}),enqueuedColumnHelper.accessor("notionalValue",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Notional Value"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0")]})})],tokenColumnHelper=createColumnHelper(),tokenColumns=[tokenColumnHelper.accessor("originChainId",{header:()=>"Chain",cell:s=>`${dist.chainIdToName(s.getValue())} (${s.getValue()})`,sortingFn:"text",enableGlobalFilter:!1}),tokenColumnHelper.accessor("originAddress",{header:()=>"Token"}),tokenColumnHelper.accessor("price",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Price"}),cell:s=>jsxRuntimeExports.jsxs(Box,{textAlign:"right",children:["$",numeral(s.getValue()).format("0,0.0000")]}),enableGlobalFilter:!1})];function MainnetGovernor({governorInfo:s}){const j=reactExports.useMemo(()=>s.tokens.map(wt=>({...wt})),[s.tokens]),[$,_e]=reactExports.useState([]),[et,tt]=reactExports.useState({}),nt=useReactTable({columns:notionalColumns,data:s.notionals,state:{expanded:et,sorting:$},getRowId:wt=>`${wt.chainId.toString()}-${wt.guardianName||""}`,getSubRows:wt=>wt.byGuardian,getCoreRowModel:getCoreRowModel(),getExpandedRowModel:getExpandedRowModel(),onExpandedChange:tt,getSortedRowModel:getSortedRowModel(),onSortingChange:_e}),rt=reactExports.useMemo(()=>{const wt=dist.GUARDIAN_SET_4.map(kt=>({name:kt.name,numHeld:0,byChain:{}}));for(const kt of Object.keys(s.totalEnqueuedVaas)){const zt=dist.GUARDIAN_SET_4.findIndex(Ot=>`0x${kt}`.toLowerCase()===Ot.pubkey.toLowerCase());zt!==-1&&(wt[zt].byChain=s.totalEnqueuedVaas[kt],wt[zt].numHeld+=Object.values(s.totalEnqueuedVaas[kt]).reduce((Ot,Ft)=>Ot+Ft,0))}return wt},[s.totalEnqueuedVaas]),[ot,it]=reactExports.useState([]),st=useReactTable({columns:guardianHoldingColumns,data:rt,state:{sorting:ot},getRowId:wt=>JSON.stringify(wt),getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:it}),[at,ct]=reactExports.useState([]),[lt,dt]=reactExports.useState({}),ft=useReactTable({columns:enqueuedColumns,data:s.enqueuedVAAs,state:{expanded:lt,sorting:at},initialState:{pagination:{pageIndex:0,pageSize:50}},getRowId:wt=>JSON.stringify(wt),getSubRows:wt=>wt.byGuardian,getCoreRowModel:getCoreRowModel(),getExpandedRowModel:getExpandedRowModel(),onExpandedChange:dt,getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),onSortingChange:ct}),[gt,yt]=reactExports.useState(""),mt=reactExports.useCallback(wt=>{yt(wt.target.value)},[]),[pt,xt]=reactExports.useState([]),Ct=useReactTable({columns:tokenColumns,data:j,state:{globalFilter:gt,sorting:pt},getRowId:wt=>`${wt.originChainId}_${wt.originAddress}`,getCoreRowModel:getCoreRowModel(),getFilteredRowModel:getFilteredRowModel(),getPaginationRowModel:getPaginationRowModel(),getSortedRowModel:getSortedRowModel(),onGlobalFilterChange:yt,onSortingChange:xt}),Dt=reactExports.useMemo(()=>s.enqueuedVAAs.reduce((wt,kt)=>(wt[kt.emitterChain]?wt[kt.emitterChain]++:wt[kt.emitterChain]=1,wt),{}),[s.enqueuedVAAs]);return jsxRuntimeExports.jsxs(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsx(Box,{children:"Governor"}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap"},children:Object.keys(Dt).sort().map(wt=>jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[wt]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[wt],alt:dist.chainIdToName(Number(wt)),width:24,height:24}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:wt})}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:Dt[Number(wt)]})]},wt))})]}),children:[jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:nt})})}),s.enqueuedVAAs.length?jsxRuntimeExports.jsx(Box,{mb:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:st})})}):null,jsxRuntimeExports.jsx(Box,{my:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Typography,{display:"flex",alignItems:"center",children:["Transactions (",s.enqueuedVAAs.length,")"," ",jsxRuntimeExports.jsx(Tooltip,{title:"Please note: Each guardian only gossips 20 of its enqueued VAAs. If the numbers above are larger than that, only a subset of the held transactions may be shown",children:jsxRuntimeExports.jsx(WarningAmberOutlined,{sx:{fontSize:"1em",ml:.5}})})]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[jsxRuntimeExports.jsx(Table,{table:ft,paginated:!!s.enqueuedVAAs.length,showRowCount:!!s.enqueuedVAAs.length}),s.enqueuedVAAs.length===0?jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{py:1,textAlign:"center"},children:"No enqueued VAAs"}):null]})]})})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Typography,{children:["Tokens (",s.tokens.length,")"]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[jsxRuntimeExports.jsx(TextField,{type:"search",value:gt,onChange:mt,margin:"dense",size:"small",sx:{mb:1},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:jsxRuntimeExports.jsx(Search,{})})},placeholder:"Search Address"}),jsxRuntimeExports.jsx(Table,{table:Ct,paginated:!0})]})]})})})]})}function getEmptyDataWrapper(){return{data:null,error:null,isFetching:!1,receivedAt:null}}function receiveDataWrapper(s){return{data:s,error:null,isFetching:!1,receivedAt:new Date().toISOString()}}const POLL_INTERVAL_MS=60*1e3,useMonitorInfo=()=>{const{currentNetwork:s}=useNetworkContext(),[j,$]=reactExports.useState(getEmptyDataWrapper());reactExports.useEffect(()=>{let rt=!1;return(async()=>{for($(ot=>({...ot,isFetching:!0,error:null}));!rt;){try{const ot=`${s.endpoint}/latest-blocks`,it=await axios$2.get(ot);it.data&&!rt&&$(receiveDataWrapper(it.data))}catch(ot){rt||$(it=>({...it,isFetching:!1,error:(ot==null?void 0:ot.message)||"An error occurred while fetching the database"}))}rt||await new Promise(ot=>setTimeout(ot,POLL_INTERVAL_MS))}})(),()=>{rt=!0}},[s]);const[_e,et]=reactExports.useState(getEmptyDataWrapper());reactExports.useEffect(()=>{let rt=!1;return(async()=>{for(et(ot=>({...ot,isFetching:!0,error:null}));!rt;){try{const ot=`${s.endpoint}/message-counts`,it=await axios$2.get(ot);it.data&&!rt&&et(receiveDataWrapper(it.data))}catch(ot){rt||et(it=>({...it,isFetching:!1,error:(ot==null?void 0:ot.message)||"An error occurred while fetching the database"}))}rt||await new Promise(ot=>setTimeout(ot,POLL_INTERVAL_MS))}})(),()=>{rt=!0}},[s]);const[tt,nt]=reactExports.useState(getEmptyDataWrapper());return reactExports.useEffect(()=>{let rt=!1;return(async()=>{for(nt(ot=>({...ot,isFetching:!0,error:null}));!rt;){try{const ot=await axios$2.get(`${s.endpoint}/missing-vaas`);ot.data&&!rt&&nt(receiveDataWrapper(ot.data))}catch(ot){rt||nt(it=>({...it,isFetching:!1,error:(ot==null?void 0:ot.message)||"An error occurred while fetching the database"}))}rt||await new Promise(ot=>setTimeout(ot,POLL_INTERVAL_MS))}})(),()=>{rt=!0}},[s]),{lastBlockByChainWrapper:j,messageCountsWrapper:_e,missesWrapper:tt}},inlineIconButtonSx={fontSize:"1em",padding:0,mt:-.5},baseBlockSx={height:16,width:16,border:"1px solid black",fontSize:"10px",textAlign:"center",verticalAlign:"middle"},FOUND_COLOR="green",MISSING_COLOR="darkred",doneBlockSx={...baseBlockSx,backgroundColor:FOUND_COLOR},missingBlockSx={...baseBlockSx,backgroundColor:MISSING_COLOR};function BlockDetail({chain:s,message:j}){const $=useCurrentEnvironment(),_e=`${j.chain}/${j.emitter}/${j.seq}`;return jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Typography,{sx:{mt:2},gutterBottom:!0,children:"VAA"}),jsxRuntimeExports.jsxs(Box,{sx:{mb:1},children:[jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{fontFamily:"monospace",wordBreak:"break-all"},gutterBottom:!0,children:[jsxRuntimeExports.jsx(IconButton,{href:dist.explorerTx($,Number(s),j.txHash),target:"_blank",size:"small",sx:inlineIconButtonSx,children:jsxRuntimeExports.jsx(Launch,{fontSize:"inherit"})})," ",j.txHash]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{fontFamily:"monospace",ml:1,wordBreak:"break-all"},gutterBottom:!0,children:[jsxRuntimeExports.jsx(IconButton,{href:dist.explorerVaa($,_e),target:"_blank",size:"small",sx:inlineIconButtonSx,children:jsxRuntimeExports.jsx(Launch,{fontSize:"inherit"})})," ",_e]})]}),jsxRuntimeExports.jsxs(Typography,{gutterBottom:!0,children:["Block ",j.block," ",jsxRuntimeExports.jsx(IconButton,{href:dist.explorerBlock($,Number(s),j.block.toString()),target:"_blank",size:"small",sx:inlineIconButtonSx,children:jsxRuntimeExports.jsx(Launch,{fontSize:"inherit"})})]}),jsxRuntimeExports.jsx(Typography,{variant:"body2",gutterBottom:!0,children:new Date(j.timestamp).toLocaleString()})]})}function DetailBlocks({chain:s}){const{currentNetwork:j}=useNetworkContext(),{settings:{showMonitorDetails:$}}=useSettingsContext(),[_e,et]=reactExports.useState(getEmptyDataWrapper()),[tt,nt]=reactExports.useState(null);reactExports.useEffect(()=>{let ct=!1;const lt=async()=>{if(!ct){et(dt=>({...dt,isFetching:!0,error:null}));try{const dt=await axios$2.get(`${j.endpoint}/messages/${s}${tt?`?fromId=${tt}`:""}`);dt.data&&!ct&&(dt.data.reverse(),et(ft=>receiveDataWrapper([...dt.data,...ft.data||[]])))}catch(dt){et(ft=>({...ft,isFetching:!1,error:(dt==null?void 0:dt.message)||"An error occurred while fetching the database"}))}}};return(async()=>lt())(),()=>{ct=!0}},[s,tt,j]);let rt=_e.data;rt&&rt.length===0&&(rt=null);const ot=rt&&rt[0].id,it=reactExports.useCallback(()=>{ot&&nt(ot)},[ot]),st=reactExports.useMemo(()=>!rt||!$?rt:[...rt||[]].reverse(),[rt,$]),at=jsxRuntimeExports.jsx(Button,{onClick:it,endIcon:$?jsxRuntimeExports.jsx(ArrowDownward,{}):jsxRuntimeExports.jsx(ArrowUpward,{}),disabled:_e.isFetching,sx:{my:1},children:"Load More"});return jsxRuntimeExports.jsxs(Box,{textAlign:"center",maxWidth:$?void 0:16*20,mx:"auto",my:2,children:[" ",_e.isFetching&&!st?jsxRuntimeExports.jsx(CircularProgress,{}):rt&&rt.length&&st?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[$?null:at,$?st.map(ct=>jsxRuntimeExports.jsxs(Box,{textAlign:"left",borderLeft:"4px solid",borderColor:ct.hasSignedVaa?FOUND_COLOR:MISSING_COLOR,borderRadius:"2px",paddingLeft:1,children:[jsxRuntimeExports.jsx(BlockDetail,{chain:s,message:ct}),jsxRuntimeExports.jsx(Divider,{})]},ct.id)):jsxRuntimeExports.jsx(Box,{sx:{display:"flex",flexWrap:"wrap"},children:st.map(ct=>jsxRuntimeExports.jsx(Tooltip,{arrow:!0,enterDelay:500,enterNextDelay:100,TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},title:jsxRuntimeExports.jsx(BlockDetail,{chain:s,message:ct}),children:jsxRuntimeExports.jsx(Box,{sx:ct.hasSignedVaa?doneBlockSx:missingBlockSx})},ct.id))}),$?at:null]}):jsxRuntimeExports.jsx(Typography,{children:"No messages"})]})}function ReobserveCodeContent({misses:s}){const j=new Date,{settings:{showAllMisses:$}}=useSettingsContext();return jsxRuntimeExports.jsx("pre",{children:Object.entries(s).map(([_e,et])=>{const tt=$?et.messages:et.messages.filter(nt=>nt.timestamp`send-observation-request ${_e} ${nt.txHash.replace("0x","")}`).join(` `)}).filter(_e=>!!_e).join(` -`)})}function ReobserveCode({misses:s}){const[j,$]=reactExports.useState(!1),_e=reactExports.useCallback(tt=>{tt.stopPropagation(),$(!0)},[]),et=reactExports.useCallback(tt=>{tt.stopPropagation(),$(!1)},[]);return s?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconButton,{onClick:_e,children:jsxRuntimeExports.jsx(Code,{})}),jsxRuntimeExports.jsx(Dialog,{open:j,onClose:et,maxWidth:"xl",children:jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsx(ReobserveCodeContent,{misses:s})})})]}):null}function Misses({governorInfo:s,missesWrapper:j}){const{settings:{showAllMisses:$}}=useSettingsContext(),_e=j.data,et=new Date,tt=_e?Object.entries(_e).map(([nt,rt])=>{const ot=$?rt.messages:rt.messages.filter(it=>it.timestamp!(s!=null&&s.enqueuedVAAs.some(st=>st.emitterChain===it.chain&&st.emitterAddress===it.emitter&&st.sequence===it.seq)));return ot.length===0?null:jsxRuntimeExports.jsx(CollapsibleSection,{defaultExpanded:!1,header:`${chainIdToChain.get(Number(nt))} (${nt}) - ${ot.length}`,children:ot.map(it=>jsxRuntimeExports.jsxs(Box,{textAlign:"left",borderLeft:"4px solid",borderColor:it.hasSignedVaa?FOUND_COLOR:MISSING_COLOR,borderRadius:"2px",paddingLeft:1,children:[jsxRuntimeExports.jsx(BlockDetail,{chain:nt,message:it}),jsxRuntimeExports.jsx(Divider,{})]},it.id))},nt)}).filter(nt=>!!nt):[];return jsxRuntimeExports.jsxs(Accordion,{defaultExpanded:!0,TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",flexGrow:"1",children:[jsxRuntimeExports.jsx(Typography,{children:"Misses"}),jsxRuntimeExports.jsx(Box,{flexGrow:"1"}),jsxRuntimeExports.jsx(ReobserveCode,{misses:_e})]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[j.receivedAt?jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Last retrieved misses at"," ",jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block"},children:new Date(j.receivedAt).toLocaleString()})," ",j.error?jsxRuntimeExports.jsx(Typography,{component:"span",color:"error",variant:"body2",children:j.error}):null]}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"Loading message counts by chain..."}),j.isFetching?jsxRuntimeExports.jsx(CircularProgress,{}):tt.length?tt:jsxRuntimeExports.jsxs(Typography,{pl:.5,children:["No misses",$?"":` > ${dist.MISS_THRESHOLD_LABEL}`,"!"]})]})]})}function Monitor({governorInfo:s}){const{settings:{showAllMisses:j}}=useSettingsContext(),{lastBlockByChainWrapper:$,messageCountsWrapper:_e,missesWrapper:et}=useMonitorInfo(),tt=$.data,nt=_e.data,rt=et.data,ot=reactExports.useMemo(()=>{const it=new Date;return rt?Object.entries(rt).reduce((st,[at,ct])=>{const lt=j?ct.messages:ct.messages.filter(dt=>dt.timestamp!(s!=null&&s.enqueuedVAAs.some(pt=>pt.emitterChain===dt.chain&&pt.emitterAddress===dt.emitter&&pt.sequence===dt.seq)));return lt.length===0?st:{...st,[Number(at)]:lt.length}},{}):{}},[s==null?void 0:s.enqueuedVAAs,rt,j]);return jsxRuntimeExports.jsxs(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsx(Box,{children:"Monitor"}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap"},children:Object.keys(ot).sort().map(it=>jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[it]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[it],alt:dist.chainIdToName(Number(it)),width:24,height:24}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:it})}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:ot[Number(it)]})]},it))})]}),children:[jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Misses,{governorInfo:s,missesWrapper:et})})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsx(Typography,{children:"Chains"})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[$.receivedAt?jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Last retrieved latest blocks at"," ",jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block"},children:new Date($.receivedAt).toLocaleString()})," ",$.error?jsxRuntimeExports.jsx(Typography,{component:"span",color:"error",variant:"body2",children:$.error}):null]}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"Loading last block by chain..."}),_e.receivedAt?jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Last retrieved message counts at"," ",jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block"},children:new Date(_e.receivedAt).toLocaleString()})," ",_e.error?jsxRuntimeExports.jsx(Typography,{component:"span",color:"error",variant:"body2",children:_e.error}):null]}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"Loading message counts by chain..."}),$.isFetching?jsxRuntimeExports.jsx(CircularProgress,{}):tt&&Object.entries(tt).map(([it,st])=>{var at,ct,lt;return jsxRuntimeExports.jsx(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(Typography,{variant:"h5",sx:{mb:.5},children:[chainIdToChain.get(Number(it))," (",it,")"]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{mb:.5},children:["Last Indexed Block - ",st.split("/")[0]," - ",new Date(st.split("/")[1]).toLocaleString()]}),nt!=null&&nt[Number(it)]?jsxRuntimeExports.jsxs(Typography,{component:"div",sx:{display:"flex",alignItems:"center"},children:[jsxRuntimeExports.jsx(Box,{sx:missingBlockSx})," ="," ",(at=nt==null?void 0:nt[Number(it)])==null?void 0:at.numMessagesWithoutVaas,"  ",jsxRuntimeExports.jsx(Box,{sx:doneBlockSx})," ="," ",(((ct=nt==null?void 0:nt[Number(it)])==null?void 0:ct.numTotalMessages)||0)-(((lt=nt==null?void 0:nt[Number(it)])==null?void 0:lt.numMessagesWithoutVaas)||0)]}):null]}),children:jsxRuntimeExports.jsx(DetailBlocks,{chain:it})},it)})]})]})})})]})}function useTokenData(){const{currentNetwork:s}=useNetworkContext(),j=s.type!=="cloudfunction",[$,_e]=reactExports.useState(null);return reactExports.useEffect(()=>{if(_e(null),j)return;let et=!1;return(async()=>{var tt;for(;!et;){const nt=await axios$2.get(`${s.endpoint}/latest-tokendata`);et||(_e(((tt=nt.data)==null?void 0:tt.data.reduce((rt,ot)=>(rt[`${ot.token_chain}/${ot.token_address}`]=ot,rt),{}))||null),await new Promise(rt=>setTimeout(rt,6e4)))}})(),()=>{et=!0}},[s,j]),$}function Home({heartbeats:s,chainIdsToHeartbeats:j,latestRelease:$}){const{currentNetwork:_e}=useNetworkContext(),et=useCloudGovernorInfo(),tt=useTokenData();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Chains,{chainIdsToHeartbeats:j}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Guardians,{heartbeats:s,chainIdsToHeartbeats:j,latestRelease:$}),jsxRuntimeExports.jsx(Divider,{}),_e.name==="Mainnet"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(MainnetGovernor,{governorInfo:et}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Accountant,{governorInfo:et,tokenData:tt,accountantAddress:dist.ACCOUNTANT_CONTRACT_ADDRESS}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Accountant,{governorInfo:et,tokenData:tt,accountantAddress:dist.NTT_ACCOUNTANT_CONTRACT_ADDRESS_MAINNET,isNTT:!0}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Monitor,{governorInfo:et})]}):_e.name==="Testnet"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Accountant,{governorInfo:et,tokenData:tt,accountantAddress:dist.NTT_ACCOUNTANT_CONTRACT_ADDRESS_TESTNET,isNTT:!0}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Monitor,{})]}):jsxRuntimeExports.jsx(Governor,{})]})}function RatioWrapper({children:s,ratio:j="56.25%",paddingTop:$=0}){return jsxRuntimeExports.jsx(Box,{display:"flex",alignItems:"center",justifyContent:"center",mt:2,mx:2,children:jsxRuntimeExports.jsx(Box,{maxWidth:1366,flexGrow:1,children:jsxRuntimeExports.jsx(Box,{style:{width:"100%",paddingTop:$,paddingBottom:j,position:"relative"},children:jsxRuntimeExports.jsx(Box,{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:s})})})})}function LookerDashboard({title:s,src:j,hasTabs:$=!1}){return jsxRuntimeExports.jsx(RatioWrapper,{paddingTop:$?65:0,children:jsxRuntimeExports.jsx("iframe",{title:s,src:j,style:{border:0,width:"100%",height:"100%"},allowFullScreen:!0,sandbox:"allow-storage-access-by-user-activation allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"})})}const REFRESH_INTERVAL$1=12e4;function useRateLimits(s){const[j,$]=reactExports.useState([]);return reactExports.useEffect(()=>{let _e=!1;const et=async()=>{if(_e)return;const nt=await axios$2.post(`${s.endpoint}/get-ntt-rate-limits`,{},{headers:{Accept:"application/json",Authorization:"Bearer bypass_grafana_gating"}});_e||!nt.data||$(nt.data)};return(async()=>{for(;!_e;)await et(),await new Promise(nt=>setTimeout(nt,REFRESH_INTERVAL$1))})(),()=>{_e=!0}},[s]),j}function normalizeBigNumber(s,j){if(!s)return"0";const $=BigInt(s.amount),_e=BigInt(10**s.decimals),et=$/_e,nt=($%_e).toString().padStart(s.decimals,"0");return`${et.toLocaleString()}.${nt.slice(0,j)}`}const rateLimitColumnHelper=createColumnHelper(),rateLimitColumns$1=[rateLimitColumnHelper.accessor("tokenName",{id:"tokenName",header:()=>"Token",cell:s=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s.row.getCanExpand()&&!s.row.original.srcChain?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):null," ",s.row.original.srcChain?(s.row.original.destChain,null):s.row.original.tokenName]})}),rateLimitColumnHelper.accessor(s=>s.srcChain,{id:"srcChain",header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s.row.getCanExpand()&&s.row.original.srcChain?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):jsxRuntimeExports.jsx(Box,{sx:{width:20,display:"inline-block"}})," ",s.row.original.srcChain?`${dist.chainIdToName(s.row.original.srcChain)}(${s.row.original.srcChain})`:null]})}),rateLimitColumnHelper.accessor("amount",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Outbound Capacity"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:s.row.original.srcChain?s.row.original.destChain?null:s.row.original.amount?`${normalizeBigNumber(s.row.original.amount,2)}`:null:null})}),rateLimitColumnHelper.accessor("totalInboundCapacity",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Inbound Capacity"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:s.row.original.srcChain?s.row.original.destChain?`${normalizeBigNumber(s.row.original.amount,2)}`:`${normalizeBigNumber(s.row.original.totalInboundCapacity,2)}`:null})})];function NTTRateLimits(){const s=useNetworkContext(),j=useRateLimits(s.currentNetwork),[$,_e]=reactExports.useState([]),[et,tt]=reactExports.useState({}),nt=useReactTable({columns:rateLimitColumns$1,data:j,state:{expanded:et,sorting:$},getSubRows:rt=>rt.inboundCapacity,getRowId:rt=>`${rt.tokenName}-${rt.srcChain||""}-${rt.destChain||""}`,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),getExpandedRowModel:getExpandedRowModel(),onExpandedChange:tt,onSortingChange:_e});return jsxRuntimeExports.jsx(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:jsxRuntimeExports.jsx(Box,{children:"Rate Limit Capacity"})}),children:jsxRuntimeExports.jsx(Box,{mt:2,mx:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:nt})})})})}const REFRESH_INTERVAL=12e4;function useTotalSupplyAndLocked(s){const[j,$]=reactExports.useState([]);return reactExports.useEffect(()=>{let _e=!1;const et=async()=>{if(_e)return;const nt=await axios$2.post(`${s.endpoint}/get-total-supply-and-locked`);!_e&&nt.data&&$(nt.data)};return(async()=>{for(;!_e;)await et(),await new Promise(nt=>setTimeout(nt,REFRESH_INTERVAL))})(),()=>{_e=!0}},[s]),j}const totalSupplyAndLockedColumnHelper=createColumnHelper(),rateLimitColumns=[totalSupplyAndLockedColumnHelper.accessor("tokenName",{id:"tokenName",header:()=>"Token",cell:s=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:s.row.original.evmTotalSupply?s.row.original.tokenName:null})}),totalSupplyAndLockedColumnHelper.accessor(s=>s.chain,{id:"srcChain",header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s.row.getCanExpand()&&s.row.original.evmTotalSupply?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):jsxRuntimeExports.jsx(Box,{sx:{width:"20px"},display:"inline-block"})," ",`${dist.chainIdToName(s.row.original.chain)}(${s.row.original.chain})`]})}),totalSupplyAndLockedColumnHelper.accessor("amountLocked",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Locked"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:s.row.original.evmTotalSupply?normalizeBigNumber(s.row.original.amountLocked,2):null})}),totalSupplyAndLockedColumnHelper.accessor("totalSupply",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Total EVM Supply"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:normalizeBigNumber(s.row.original.totalSupply,2)})})];function NTTTotalSupplyAndLocked(){const s=useNetworkContext(),j=useTotalSupplyAndLocked(s.currentNetwork),[$,_e]=reactExports.useState([]),[et,tt]=reactExports.useState({}),nt=useReactTable({columns:rateLimitColumns,data:j,state:{expanded:et,sorting:$},getSubRows:rt=>rt.evmTotalSupply,getRowId:rt=>`${rt.tokenName}-${rt.chain||""}`,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),getExpandedRowModel:getExpandedRowModel(),onExpandedChange:tt,onSortingChange:_e});return jsxRuntimeExports.jsx(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:jsxRuntimeExports.jsx(Box,{children:"Total Supply and Locked"})}),children:jsxRuntimeExports.jsx(Box,{mt:2,mx:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:nt})})})})}function NTTMetrics(){const{currentNetwork:s}=useNetworkContext();return s.name==="Mainnet"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LookerDashboard,{title:"Mainnet NTT Transfers Report",src:"https://lookerstudio.google.com/embed/reporting/0f20bce5-d442-4f39-8cc4-ced8bb73042a/page/kSKuD",hasTabs:!0}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(NTTRateLimits,{}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(NTTTotalSupplyAndLocked,{})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LookerDashboard,{title:"Testnet NTT Transfers Report",src:"https://lookerstudio.google.com/embed/reporting/a47057a8-15a0-4cc7-8086-eb00f5d09d2a/page/SPpuD"}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(NTTRateLimits,{}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(NTTTotalSupplyAndLocked,{})]})}function NetworkSelector(){const s=useTheme$1(),{currentNetwork:j,setCurrentNetwork:$}=useNetworkContext(),_e=reactExports.useCallback(et=>{$(networkOptions[Number(et.target.value)])},[$]);return jsxRuntimeExports.jsx(Select,{onChange:_e,value:(networkOptions.indexOf(j)||0).toString(),margin:"dense",size:"small",sx:{minWidth:130,"& img":{filter:"invert(0)!important"},"& .MuiOutlinedInput-notchedOutline":{borderColor:s.palette.mode==="light"?"rgba(255,255,255,.6)":null},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:s.palette.mode==="light"?"rgba(255,255,255,.8)":null},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:s.palette.mode==="light"?"rgba(255,255,255,.8)":null},"& .MuiSvgIcon-root":{fill:s.palette.mode==="light"?"white":null}},SelectDisplayProps:{style:{paddingTop:4,paddingBottom:4}},children:networkOptions.map((et,tt)=>jsxRuntimeExports.jsx(MenuItem,{value:tt,children:et.logo!==""?jsxRuntimeExports.jsx("img",{src:et.logo,alt:et.name,style:{height:20,maxHeight:20,verticalAlign:"middle",...s.palette.mode==="light"?{filter:"invert(1)"}:{}}}):et.name},et.endpoint))})}function SettingsContent(){const{settings:s,updateBackgroundOpacity:j,updateBackgroundUrl:$,updateTheme:_e,updateShowChainName:et,updateShowAllMisses:tt,updateShowMonitorDetails:nt}=useSettingsContext(),rt=reactExports.useCallback((lt,dt)=>{_e(dt)},[_e]),ot=reactExports.useCallback(lt=>{j(lt.target.value)},[j]),it=reactExports.useCallback(lt=>{$(lt.target.value)},[$]),st=reactExports.useCallback(lt=>{et(lt.target.checked)},[et]),at=reactExports.useCallback(lt=>{tt(lt.target.checked)},[tt]),ct=reactExports.useCallback(lt=>{nt(lt.target.checked)},[nt]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{mt:2,mx:2,textAlign:"center",children:jsxRuntimeExports.jsxs(ToggleButtonGroup,{value:s.theme,exclusive:!0,onChange:rt,children:[jsxRuntimeExports.jsx(ToggleButton,{value:"light",children:jsxRuntimeExports.jsx(LightModeOutlined,{})}),jsxRuntimeExports.jsx(ToggleButton,{value:"dark",children:jsxRuntimeExports.jsx(DarkModeOutlined,{})}),jsxRuntimeExports.jsx(ToggleButton,{value:"auto",children:jsxRuntimeExports.jsx(ContrastOutlined,{})})]})}),jsxRuntimeExports.jsx(Box,{m:2,children:jsxRuntimeExports.jsx(TextField,{value:s.backgroundUrl||"",onChange:it,label:"Background URL",margin:"dense",fullWidth:!0})}),jsxRuntimeExports.jsxs(Box,{m:2,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"Background Opacity"}),jsxRuntimeExports.jsx(Box,{pr:2,pt:2,children:jsxRuntimeExports.jsx(Slider,{min:.05,max:1,step:.05,value:s.backgroundOpacity||.1,onChange:ot})})]}),jsxRuntimeExports.jsx(Box,{m:2,children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Checkbox,{checked:!!s.showChainName,onChange:st}),label:"Show chain names"})}),jsxRuntimeExports.jsx(Box,{m:2,children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Checkbox,{checked:!!s.showAllMisses,onChange:at}),label:"Show all misses"})}),jsxRuntimeExports.jsx(Box,{m:2,children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Checkbox,{checked:!!s.showMonitorDetails,onChange:ct}),label:"Show monitor details"})})]})}function Settings(){const[s,j]=reactExports.useState(!1),$=reactExports.useCallback(()=>{j(!0)},[]),_e=reactExports.useCallback(()=>{j(!1)},[]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconButton,{color:"inherit",onClick:$,children:jsxRuntimeExports.jsx(SettingsOutlined,{})}),jsxRuntimeExports.jsx(Dialog,{open:s,onClose:_e,maxWidth:"xs",fullWidth:!0,children:jsxRuntimeExports.jsx(SettingsContent,{})})]})}function NavButton(s){const{navigate:j,...$}=s;return jsxRuntimeExports.jsx(Button,{...$})}function NavLinks(){const{search:s}=useLocation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(NavLink,{to:`/${s}`,exact:!0,component:NavButton,color:"inherit",activeStyle:{borderBottom:"2px solid",paddingBottom:4},style:{marginLeft:-8,textTransform:"none",borderRadius:0,minWidth:0},children:[jsxRuntimeExports.jsx(Box,{display:"flex",alignItems:"center",children:jsxRuntimeExports.jsx(WormholeStatsIcon,{})}),jsxRuntimeExports.jsx(Hidden,{mdDown:!0,children:jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{pl:.75},children:"Dashboard"})})]}),jsxRuntimeExports.jsxs(NavLink,{to:`/contracts${s}`,exact:!0,component:NavButton,color:"inherit",activeStyle:{borderBottom:"2px solid",paddingBottom:4},style:{paddingRight:8,marginLeft:8,textTransform:"none",borderRadius:0,minWidth:0},children:[jsxRuntimeExports.jsx(Hidden,{mdUp:!0,children:jsxRuntimeExports.jsx(ReceiptLongOutlined,{})}),jsxRuntimeExports.jsx(Hidden,{mdDown:!0,children:jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"Contracts"})})]}),jsxRuntimeExports.jsxs(NavLink,{to:`/ntt-metrics${s}`,exact:!0,component:NavButton,color:"inherit",activeStyle:{borderBottom:"2px solid",paddingBottom:4},style:{paddingRight:8,marginLeft:8,textTransform:"none",borderRadius:0,minWidth:0},children:[jsxRuntimeExports.jsx(Hidden,{mdUp:!0,children:jsxRuntimeExports.jsx(SyncAltOutlined,{})}),jsxRuntimeExports.jsx(Hidden,{mdDown:!0,children:jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"NTT"})})]})]})}function Main(){const s=useCurrentEnvironment(),[,j]=useGetGuardianSet("Ethereum",coreBridge(s,"Ethereum")),$=useHeartbeats(j),_e=useChainHeartbeats($),et=useLatestRelease();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AppBar,{position:"static",children:jsxRuntimeExports.jsxs(Toolbar,{variant:"dense",sx:{minHeight:40},children:[jsxRuntimeExports.jsx(NavLinks,{}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Hidden,{smDown:!0,children:jsxRuntimeExports.jsx(Alerts,{heartbeats:$,chainIdsToHeartbeats:_e,latestRelease:et})}),jsxRuntimeExports.jsx(NetworkSelector,{}),jsxRuntimeExports.jsx(IconButton,{sx:{ml:1},href:"https://github.com/wormhole-foundation/wormhole-dashboard",target:"_blank",rel:"noopener noreferrer",color:"inherit",children:jsxRuntimeExports.jsx(GitHub,{})}),jsxRuntimeExports.jsx(Settings,{})]})}),jsxRuntimeExports.jsxs(Switch,{children:[jsxRuntimeExports.jsx(Route,{path:"/ntt-metrics",children:jsxRuntimeExports.jsx(NTTMetrics,{})}),jsxRuntimeExports.jsx(Route,{path:"/contracts",children:jsxRuntimeExports.jsx(Contracts,{})}),jsxRuntimeExports.jsx(Route,{path:"/",children:jsxRuntimeExports.jsx(Home,{heartbeats:$,chainIdsToHeartbeats:_e,latestRelease:et})})]})]})}function App(){return jsxRuntimeExports.jsx(SettingsContextProvider,{children:jsxRuntimeExports.jsxs(CustomThemeProvider,{children:[jsxRuntimeExports.jsx(CssBaseline,{}),jsxRuntimeExports.jsx(HashRouter,{children:jsxRuntimeExports.jsx(NetworkContextProvider,{children:jsxRuntimeExports.jsx(Main,{})})})]})})}const root=client.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(React$1.StrictMode,{children:jsxRuntimeExports.jsx(App,{})})); +`)})}function ReobserveCode({misses:s}){const[j,$]=reactExports.useState(!1),_e=reactExports.useCallback(tt=>{tt.stopPropagation(),$(!0)},[]),et=reactExports.useCallback(tt=>{tt.stopPropagation(),$(!1)},[]);return s?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconButton,{onClick:_e,children:jsxRuntimeExports.jsx(Code,{})}),jsxRuntimeExports.jsx(Dialog,{open:j,onClose:et,maxWidth:"xl",children:jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsx(ReobserveCodeContent,{misses:s})})})]}):null}function Misses({governorInfo:s,missesWrapper:j}){const{settings:{showAllMisses:$}}=useSettingsContext(),_e=j.data,et=new Date,tt=_e?Object.entries(_e).map(([nt,rt])=>{const ot=$?rt.messages:rt.messages.filter(it=>it.timestamp!(s!=null&&s.enqueuedVAAs.some(st=>st.emitterChain===it.chain&&st.emitterAddress===it.emitter&&st.sequence===it.seq)));return ot.length===0?null:jsxRuntimeExports.jsx(CollapsibleSection,{defaultExpanded:!1,header:`${chainIdToChain.get(Number(nt))} (${nt}) - ${ot.length}`,children:ot.map(it=>jsxRuntimeExports.jsxs(Box,{textAlign:"left",borderLeft:"4px solid",borderColor:it.hasSignedVaa?FOUND_COLOR:MISSING_COLOR,borderRadius:"2px",paddingLeft:1,children:[jsxRuntimeExports.jsx(BlockDetail,{chain:nt,message:it}),jsxRuntimeExports.jsx(Divider,{})]},it.id))},nt)}).filter(nt=>!!nt):[];return jsxRuntimeExports.jsxs(Accordion,{defaultExpanded:!0,TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",flexGrow:"1",children:[jsxRuntimeExports.jsx(Typography,{children:"Misses"}),jsxRuntimeExports.jsx(Box,{flexGrow:"1"}),jsxRuntimeExports.jsx(ReobserveCode,{misses:_e})]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[j.receivedAt?jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Last retrieved misses at"," ",jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block"},children:new Date(j.receivedAt).toLocaleString()})," ",j.error?jsxRuntimeExports.jsx(Typography,{component:"span",color:"error",variant:"body2",children:j.error}):null]}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"Loading message counts by chain..."}),j.isFetching?jsxRuntimeExports.jsx(CircularProgress,{}):tt.length?tt:jsxRuntimeExports.jsxs(Typography,{pl:.5,children:["No misses",$?"":` > ${dist.MISS_THRESHOLD_LABEL}`,"!"]})]})]})}function Monitor({governorInfo:s}){const{settings:{showAllMisses:j}}=useSettingsContext(),{lastBlockByChainWrapper:$,messageCountsWrapper:_e,missesWrapper:et}=useMonitorInfo(),tt=$.data,nt=_e.data,rt=et.data,ot=reactExports.useMemo(()=>{const it=new Date;return rt?Object.entries(rt).reduce((st,[at,ct])=>{const lt=j?ct.messages:ct.messages.filter(dt=>dt.timestamp!(s!=null&&s.enqueuedVAAs.some(ft=>ft.emitterChain===dt.chain&&ft.emitterAddress===dt.emitter&&ft.sequence===dt.seq)));return lt.length===0?st:{...st,[Number(at)]:lt.length}},{}):{}},[s==null?void 0:s.enqueuedVAAs,rt,j]);return jsxRuntimeExports.jsxs(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:[jsxRuntimeExports.jsx(Box,{children:"Monitor"}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap"},children:Object.keys(ot).sort().map(it=>jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{ml:2,display:"flex",alignItems:"center",borderRadius:"50%",sx:{p:.5,backgroundColor:"rgba(0,0,0,0.5)"},children:CHAIN_ICON_MAP[it]?jsxRuntimeExports.jsx("img",{src:CHAIN_ICON_MAP[it],alt:dist.chainIdToName(Number(it)),width:24,height:24}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:it})}),jsxRuntimeExports.jsx(Typography,{variant:"h6",component:"strong",sx:{ml:.5},children:ot[Number(it)]})]},it))})]}),children:[jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Misses,{governorInfo:s,missesWrapper:et})})}),jsxRuntimeExports.jsx(Box,{mt:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Accordion,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},children:[jsxRuntimeExports.jsx(AccordionSummary,{expandIcon:jsxRuntimeExports.jsx(ExpandMore,{}),children:jsxRuntimeExports.jsx(Typography,{children:"Chains"})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[$.receivedAt?jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Last retrieved latest blocks at"," ",jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block"},children:new Date($.receivedAt).toLocaleString()})," ",$.error?jsxRuntimeExports.jsx(Typography,{component:"span",color:"error",variant:"body2",children:$.error}):null]}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"Loading last block by chain..."}),_e.receivedAt?jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Last retrieved message counts at"," ",jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block"},children:new Date(_e.receivedAt).toLocaleString()})," ",_e.error?jsxRuntimeExports.jsx(Typography,{component:"span",color:"error",variant:"body2",children:_e.error}):null]}):jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"Loading message counts by chain..."}),$.isFetching?jsxRuntimeExports.jsx(CircularProgress,{}):tt&&Object.entries(tt).map(([it,st])=>{var at,ct,lt;return jsxRuntimeExports.jsx(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(Typography,{variant:"h5",sx:{mb:.5},children:[chainIdToChain.get(Number(it))," (",it,")"]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{mb:.5},children:["Last Indexed Block - ",st.split("/")[0]," - ",new Date(st.split("/")[1]).toLocaleString()]}),nt!=null&&nt[Number(it)]?jsxRuntimeExports.jsxs(Typography,{component:"div",sx:{display:"flex",alignItems:"center"},children:[jsxRuntimeExports.jsx(Box,{sx:missingBlockSx})," ="," ",(at=nt==null?void 0:nt[Number(it)])==null?void 0:at.numMessagesWithoutVaas,"  ",jsxRuntimeExports.jsx(Box,{sx:doneBlockSx})," ="," ",(((ct=nt==null?void 0:nt[Number(it)])==null?void 0:ct.numTotalMessages)||0)-(((lt=nt==null?void 0:nt[Number(it)])==null?void 0:lt.numMessagesWithoutVaas)||0)]}):null]}),children:jsxRuntimeExports.jsx(DetailBlocks,{chain:it})},it)})]})]})})})]})}function useTokenData(){const{currentNetwork:s}=useNetworkContext(),j=s.type!=="cloudfunction",[$,_e]=reactExports.useState(null);return reactExports.useEffect(()=>{if(_e(null),j)return;let et=!1;return(async()=>{var tt;for(;!et;){const nt=await axios$2.get(`${s.endpoint}/latest-tokendata`);et||(_e(((tt=nt.data)==null?void 0:tt.data.reduce((rt,ot)=>(rt[`${ot.token_chain}/${ot.token_address}`]=ot,rt),{}))||null),await new Promise(rt=>setTimeout(rt,6e4)))}})(),()=>{et=!0}},[s,j]),$}function Home({heartbeats:s,chainIdsToHeartbeats:j,latestRelease:$}){const{currentNetwork:_e}=useNetworkContext(),et=useCloudGovernorInfo(),tt=useTokenData();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Chains,{chainIdsToHeartbeats:j}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Guardians,{heartbeats:s,chainIdsToHeartbeats:j,latestRelease:$}),jsxRuntimeExports.jsx(Divider,{}),_e.name==="Mainnet"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(MainnetGovernor,{governorInfo:et}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Accountant,{governorInfo:et,tokenData:tt,accountantAddress:dist.ACCOUNTANT_CONTRACT_ADDRESS}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Accountant,{governorInfo:et,tokenData:tt,accountantAddress:dist.NTT_ACCOUNTANT_CONTRACT_ADDRESS_MAINNET,isNTT:!0}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Monitor,{governorInfo:et})]}):_e.name==="Testnet"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Accountant,{governorInfo:et,tokenData:tt,accountantAddress:dist.NTT_ACCOUNTANT_CONTRACT_ADDRESS_TESTNET,isNTT:!0}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(Monitor,{})]}):jsxRuntimeExports.jsx(Governor,{})]})}function RatioWrapper({children:s,ratio:j="56.25%",paddingTop:$=0}){return jsxRuntimeExports.jsx(Box,{display:"flex",alignItems:"center",justifyContent:"center",mt:2,mx:2,children:jsxRuntimeExports.jsx(Box,{maxWidth:1366,flexGrow:1,children:jsxRuntimeExports.jsx(Box,{style:{width:"100%",paddingTop:$,paddingBottom:j,position:"relative"},children:jsxRuntimeExports.jsx(Box,{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:s})})})})}function LookerDashboard({title:s,src:j,hasTabs:$=!1}){return jsxRuntimeExports.jsx(RatioWrapper,{paddingTop:$?65:0,children:jsxRuntimeExports.jsx("iframe",{title:s,src:j,style:{border:0,width:"100%",height:"100%"},allowFullScreen:!0,sandbox:"allow-storage-access-by-user-activation allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"})})}const REFRESH_INTERVAL$1=12e4;function useRateLimits(s){const[j,$]=reactExports.useState([]);return reactExports.useEffect(()=>{let _e=!1;const et=async()=>{if(_e)return;const nt=await axios$2.post(`${s.endpoint}/get-ntt-rate-limits`,{},{headers:{Accept:"application/json",Authorization:"Bearer bypass_grafana_gating"}});_e||!nt.data||$(nt.data)};return(async()=>{for(;!_e;)await et(),await new Promise(nt=>setTimeout(nt,REFRESH_INTERVAL$1))})(),()=>{_e=!0}},[s]),j}function normalizeBigNumber(s,j){if(!s)return"0";const $=BigInt(s.amount),_e=BigInt(10**s.decimals),et=$/_e,nt=($%_e).toString().padStart(s.decimals,"0");return`${et.toLocaleString()}.${nt.slice(0,j)}`}const rateLimitColumnHelper=createColumnHelper(),rateLimitColumns$1=[rateLimitColumnHelper.accessor("tokenName",{id:"tokenName",header:()=>"Token",cell:s=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s.row.getCanExpand()&&!s.row.original.srcChain?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):null," ",s.row.original.srcChain?(s.row.original.destChain,null):s.row.original.tokenName]})}),rateLimitColumnHelper.accessor(s=>s.srcChain,{id:"srcChain",header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s.row.getCanExpand()&&s.row.original.srcChain?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):jsxRuntimeExports.jsx(Box,{sx:{width:20,display:"inline-block"}})," ",s.row.original.srcChain?`${dist.chainIdToName(s.row.original.srcChain)}(${s.row.original.srcChain})`:null]})}),rateLimitColumnHelper.accessor("amount",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Outbound Capacity"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:s.row.original.srcChain?s.row.original.destChain?null:s.row.original.amount?`${normalizeBigNumber(s.row.original.amount,2)}`:null:null})}),rateLimitColumnHelper.accessor("totalInboundCapacity",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Inbound Capacity"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:s.row.original.srcChain?s.row.original.destChain?`${normalizeBigNumber(s.row.original.amount,2)}`:`${normalizeBigNumber(s.row.original.totalInboundCapacity,2)}`:null})})];function NTTRateLimits(){const s=useNetworkContext(),j=useRateLimits(s.currentNetwork),[$,_e]=reactExports.useState([]),[et,tt]=reactExports.useState({}),nt=useReactTable({columns:rateLimitColumns$1,data:j,state:{expanded:et,sorting:$},getSubRows:rt=>rt.inboundCapacity,getRowId:rt=>`${rt.tokenName}-${rt.srcChain||""}-${rt.destChain||""}`,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),getExpandedRowModel:getExpandedRowModel(),onExpandedChange:tt,onSortingChange:_e});return jsxRuntimeExports.jsx(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:jsxRuntimeExports.jsx(Box,{children:"Rate Limit Capacity"})}),children:jsxRuntimeExports.jsx(Box,{mt:2,mx:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:nt})})})})}const REFRESH_INTERVAL=12e4;function useTotalSupplyAndLocked(s){const[j,$]=reactExports.useState([]);return reactExports.useEffect(()=>{let _e=!1;const et=async()=>{if(_e)return;const nt=await axios$2.post(`${s.endpoint}/get-total-supply-and-locked`);!_e&&nt.data&&$(nt.data)};return(async()=>{for(;!_e;)await et(),await new Promise(nt=>setTimeout(nt,REFRESH_INTERVAL))})(),()=>{_e=!0}},[s]),j}const totalSupplyAndLockedColumnHelper=createColumnHelper(),rateLimitColumns=[totalSupplyAndLockedColumnHelper.accessor("tokenName",{id:"tokenName",header:()=>"Token",cell:s=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:s.row.original.evmTotalSupply?s.row.original.tokenName:null})}),totalSupplyAndLockedColumnHelper.accessor(s=>s.chain,{id:"srcChain",header:()=>"Chain",cell:s=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s.row.getCanExpand()&&s.row.original.evmTotalSupply?jsxRuntimeExports.jsx(IconButton,{size:"small",sx:{ml:-1},onClick:s.row.getToggleExpandedHandler(),children:s.row.getIsExpanded()?jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"inherit"}):jsxRuntimeExports.jsx(KeyboardArrowRight,{fontSize:"inherit"})}):jsxRuntimeExports.jsx(Box,{sx:{width:"20px"},display:"inline-block"})," ",`${dist.chainIdToName(s.row.original.chain)}(${s.row.original.chain})`]})}),totalSupplyAndLockedColumnHelper.accessor("amountLocked",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Locked"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:s.row.original.evmTotalSupply?normalizeBigNumber(s.row.original.amountLocked,2):null})}),totalSupplyAndLockedColumnHelper.accessor("totalSupply",{header:()=>jsxRuntimeExports.jsx(Box,{order:"1",children:"Total EVM Supply"}),cell:s=>jsxRuntimeExports.jsx(Box,{textAlign:"right",children:normalizeBigNumber(s.row.original.totalSupply,2)})})];function NTTTotalSupplyAndLocked(){const s=useNetworkContext(),j=useTotalSupplyAndLocked(s.currentNetwork),[$,_e]=reactExports.useState([]),[et,tt]=reactExports.useState({}),nt=useReactTable({columns:rateLimitColumns,data:j,state:{expanded:et,sorting:$},getSubRows:rt=>rt.evmTotalSupply,getRowId:rt=>`${rt.tokenName}-${rt.chain||""}`,getCoreRowModel:getCoreRowModel(),getSortedRowModel:getSortedRowModel(),getExpandedRowModel:getExpandedRowModel(),onExpandedChange:tt,onSortingChange:_e});return jsxRuntimeExports.jsx(CollapsibleSection,{defaultExpanded:!1,header:jsxRuntimeExports.jsx(Box,{sx:{display:"flex",alignItems:"center",paddingRight:1},children:jsxRuntimeExports.jsx(Box,{children:"Total Supply and Locked"})}),children:jsxRuntimeExports.jsx(Box,{mt:2,mx:2,children:jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsx(Table,{table:nt})})})})}function NTTMetrics(){const{currentNetwork:s}=useNetworkContext();return s.name==="Mainnet"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LookerDashboard,{title:"Mainnet NTT Transfers Report",src:"https://lookerstudio.google.com/embed/reporting/0f20bce5-d442-4f39-8cc4-ced8bb73042a/page/kSKuD",hasTabs:!0}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(NTTRateLimits,{}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(NTTTotalSupplyAndLocked,{})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LookerDashboard,{title:"Testnet NTT Transfers Report",src:"https://lookerstudio.google.com/embed/reporting/a47057a8-15a0-4cc7-8086-eb00f5d09d2a/page/SPpuD"}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(NTTRateLimits,{}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(NTTTotalSupplyAndLocked,{})]})}function NetworkSelector(){const s=useTheme$1(),{currentNetwork:j,setCurrentNetwork:$}=useNetworkContext(),_e=reactExports.useCallback(et=>{$(networkOptions[Number(et.target.value)])},[$]);return jsxRuntimeExports.jsx(Select,{onChange:_e,value:(networkOptions.indexOf(j)||0).toString(),margin:"dense",size:"small",sx:{minWidth:130,"& img":{filter:"invert(0)!important"},"& .MuiOutlinedInput-notchedOutline":{borderColor:s.palette.mode==="light"?"rgba(255,255,255,.6)":null},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:s.palette.mode==="light"?"rgba(255,255,255,.8)":null},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:s.palette.mode==="light"?"rgba(255,255,255,.8)":null},"& .MuiSvgIcon-root":{fill:s.palette.mode==="light"?"white":null}},SelectDisplayProps:{style:{paddingTop:4,paddingBottom:4}},children:networkOptions.map((et,tt)=>jsxRuntimeExports.jsx(MenuItem,{value:tt,children:et.logo!==""?jsxRuntimeExports.jsx("img",{src:et.logo,alt:et.name,style:{height:20,maxHeight:20,verticalAlign:"middle",...s.palette.mode==="light"?{filter:"invert(1)"}:{}}}):et.name},et.endpoint))})}function SettingsContent(){const{settings:s,updateBackgroundOpacity:j,updateBackgroundUrl:$,updateTheme:_e,updateShowChainName:et,updateShowAllMisses:tt,updateShowMonitorDetails:nt}=useSettingsContext(),rt=reactExports.useCallback((lt,dt)=>{_e(dt)},[_e]),ot=reactExports.useCallback(lt=>{j(lt.target.value)},[j]),it=reactExports.useCallback(lt=>{$(lt.target.value)},[$]),st=reactExports.useCallback(lt=>{et(lt.target.checked)},[et]),at=reactExports.useCallback(lt=>{tt(lt.target.checked)},[tt]),ct=reactExports.useCallback(lt=>{nt(lt.target.checked)},[nt]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{mt:2,mx:2,textAlign:"center",children:jsxRuntimeExports.jsxs(ToggleButtonGroup,{value:s.theme,exclusive:!0,onChange:rt,children:[jsxRuntimeExports.jsx(ToggleButton,{value:"light",children:jsxRuntimeExports.jsx(LightModeOutlined,{})}),jsxRuntimeExports.jsx(ToggleButton,{value:"dark",children:jsxRuntimeExports.jsx(DarkModeOutlined,{})}),jsxRuntimeExports.jsx(ToggleButton,{value:"auto",children:jsxRuntimeExports.jsx(ContrastOutlined,{})})]})}),jsxRuntimeExports.jsx(Box,{m:2,children:jsxRuntimeExports.jsx(TextField,{value:s.backgroundUrl||"",onChange:it,label:"Background URL",margin:"dense",fullWidth:!0})}),jsxRuntimeExports.jsxs(Box,{m:2,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"Background Opacity"}),jsxRuntimeExports.jsx(Box,{pr:2,pt:2,children:jsxRuntimeExports.jsx(Slider,{min:.05,max:1,step:.05,value:s.backgroundOpacity||.1,onChange:ot})})]}),jsxRuntimeExports.jsx(Box,{m:2,children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Checkbox,{checked:!!s.showChainName,onChange:st}),label:"Show chain names"})}),jsxRuntimeExports.jsx(Box,{m:2,children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Checkbox,{checked:!!s.showAllMisses,onChange:at}),label:"Show all misses"})}),jsxRuntimeExports.jsx(Box,{m:2,children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Checkbox,{checked:!!s.showMonitorDetails,onChange:ct}),label:"Show monitor details"})})]})}function Settings(){const[s,j]=reactExports.useState(!1),$=reactExports.useCallback(()=>{j(!0)},[]),_e=reactExports.useCallback(()=>{j(!1)},[]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconButton,{color:"inherit",onClick:$,children:jsxRuntimeExports.jsx(SettingsOutlined,{})}),jsxRuntimeExports.jsx(Dialog,{open:s,onClose:_e,maxWidth:"xs",fullWidth:!0,children:jsxRuntimeExports.jsx(SettingsContent,{})})]})}function NavButton(s){const{navigate:j,...$}=s;return jsxRuntimeExports.jsx(Button,{...$})}function NavLinks(){const{search:s}=useLocation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(NavLink,{to:`/${s}`,exact:!0,component:NavButton,color:"inherit",activeStyle:{borderBottom:"2px solid",paddingBottom:4},style:{marginLeft:-8,textTransform:"none",borderRadius:0,minWidth:0},children:[jsxRuntimeExports.jsx(Box,{display:"flex",alignItems:"center",children:jsxRuntimeExports.jsx(WormholeStatsIcon,{})}),jsxRuntimeExports.jsx(Hidden,{mdDown:!0,children:jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{pl:.75},children:"Dashboard"})})]}),jsxRuntimeExports.jsxs(NavLink,{to:`/contracts${s}`,exact:!0,component:NavButton,color:"inherit",activeStyle:{borderBottom:"2px solid",paddingBottom:4},style:{paddingRight:8,marginLeft:8,textTransform:"none",borderRadius:0,minWidth:0},children:[jsxRuntimeExports.jsx(Hidden,{mdUp:!0,children:jsxRuntimeExports.jsx(ReceiptLongOutlined,{})}),jsxRuntimeExports.jsx(Hidden,{mdDown:!0,children:jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"Contracts"})})]}),jsxRuntimeExports.jsxs(NavLink,{to:`/ntt-metrics${s}`,exact:!0,component:NavButton,color:"inherit",activeStyle:{borderBottom:"2px solid",paddingBottom:4},style:{paddingRight:8,marginLeft:8,textTransform:"none",borderRadius:0,minWidth:0},children:[jsxRuntimeExports.jsx(Hidden,{mdUp:!0,children:jsxRuntimeExports.jsx(SyncAltOutlined,{})}),jsxRuntimeExports.jsx(Hidden,{mdDown:!0,children:jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"NTT"})})]})]})}function Main(){const s=useCurrentEnvironment(),[,j]=useGetGuardianSet("Ethereum",coreBridge(s,"Ethereum")),$=useHeartbeats(j),_e=useChainHeartbeats($),et=useLatestRelease();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AppBar,{position:"static",children:jsxRuntimeExports.jsxs(Toolbar,{variant:"dense",sx:{minHeight:40},children:[jsxRuntimeExports.jsx(NavLinks,{}),jsxRuntimeExports.jsx(Box,{flexGrow:1}),jsxRuntimeExports.jsx(Hidden,{smDown:!0,children:jsxRuntimeExports.jsx(Alerts,{heartbeats:$,chainIdsToHeartbeats:_e,latestRelease:et})}),jsxRuntimeExports.jsx(NetworkSelector,{}),jsxRuntimeExports.jsx(IconButton,{sx:{ml:1},href:"https://github.com/wormhole-foundation/wormhole-dashboard",target:"_blank",rel:"noopener noreferrer",color:"inherit",children:jsxRuntimeExports.jsx(GitHub,{})}),jsxRuntimeExports.jsx(Settings,{})]})}),jsxRuntimeExports.jsxs(Switch,{children:[jsxRuntimeExports.jsx(Route,{path:"/ntt-metrics",children:jsxRuntimeExports.jsx(NTTMetrics,{})}),jsxRuntimeExports.jsx(Route,{path:"/contracts",children:jsxRuntimeExports.jsx(Contracts,{})}),jsxRuntimeExports.jsx(Route,{path:"/",children:jsxRuntimeExports.jsx(Home,{heartbeats:$,chainIdsToHeartbeats:_e,latestRelease:et})})]})]})}function App(){return jsxRuntimeExports.jsx(SettingsContextProvider,{children:jsxRuntimeExports.jsxs(CustomThemeProvider,{children:[jsxRuntimeExports.jsx(CssBaseline,{}),jsxRuntimeExports.jsx(HashRouter,{children:jsxRuntimeExports.jsx(NetworkContextProvider,{children:jsxRuntimeExports.jsx(Main,{})})})]})})}const root=client.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(React$1.StrictMode,{children:jsxRuntimeExports.jsx(App,{})})); diff --git a/index.html b/index.html index b5fea7fb..56a0a615 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ Wormhole Dashboard - +