Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
tuitwallet.com
/
static
/
js
/
Filename :
main.232bdbfb.js
back
Copy
/*! For license information please see main.232bdbfb.js.LICENSE.txt */ (()=>{var e={5199:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ie});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function h(e){return e.length}function p(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,v=0,y=0,b=0,w="";function x(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m,column:g,length:a,return:""}}function C(e,t){return a(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function E(){return b=y>0?u(w,--y):0,g--,10===b&&(g=1,m--),b}function S(){return b=y<v?u(w,y++):0,g++,10===b&&(g=1,m++),b}function k(){return u(w,y)}function _(){return y}function P(e,t){return d(w,e,t)}function A(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(e){return m=g=1,v=h(w=e),y=0,[]}function O(e){return w="",e}function T(e){return s(P(y-1,$(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(b=k())&&b<33;)S();return A(e)>2||A(b)>3?"":" "}function N(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return P(e,_()+(t<6&&32==k()&&32==S()))}function $(e){for(;S();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&$(b);break;case 40:41===e&&$(e);break;case 92:S()}return y}function M(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==k()););return"/*"+P(t,y-1)+"*"+o(47===e?e:S())}function j(e){for(;!A(k());)S();return P(e,y)}var L="-ms-",D="-moz-",B="-webkit-",U="comm",F="rule",z="decl",W="@keyframes";function Z(e,t){for(var n="",r=p(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function H(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case z:return e.return=e.return||e.value;case U:return"";case W:return e.return=e.value+"{"+Z(e.children,r)+"}";case F:e.value=e.props.join(",")}return h(n=Z(e.children,r))?e.return=e.value+"{"+n+"}":""}function V(e){return O(q("",null,null,null,[""],e=R(e),0,[0],e))}function q(e,t,n,r,i,a,s,d,p){for(var m=0,g=0,v=s,y=0,b=0,w=0,x=1,C=1,P=1,A=0,R="",O=i,$=a,L=r,D=R;C;)switch(w=A,A=S()){case 40:if(108!=w&&58==u(D,v-1)){-1!=c(D+=l(T(A),"&","&\f"),"&\f")&&(P=-1);break}case 34:case 39:case 91:D+=T(A);break;case 9:case 10:case 13:case 32:D+=I(w);break;case 92:D+=N(_()-1,7);continue;case 47:switch(k()){case 42:case 47:f(K(M(S(),_()),t,n),p);break;default:D+="/"}break;case 123*x:d[m++]=h(D)*P;case 125*x:case 59:case 0:switch(A){case 0:case 125:C=0;case 59+g:-1==P&&(D=l(D,/\f/g,"")),b>0&&h(D)-v&&f(b>32?Y(D+";",r,n,v-1):Y(l(D," ","")+";",r,n,v-2),p);break;case 59:D+=";";default:if(f(L=G(D,t,n,m,g,i,d,R,O=[],$=[],v),a),123===A)if(0===g)q(D,t,L,L,O,a,v,d,$);else switch(99===y&&110===u(D,3)?100:y){case 100:case 108:case 109:case 115:q(e,L,L,r&&f(G(e,L,L,0,0,i,d,R,i,O=[],v),$),i,$,v,d,r?O:$);break;default:q(D,L,L,L,[""],$,0,d,$)}}m=g=b=0,x=P=1,R=D="",v=s;break;case 58:v=1+h(D),b=w;default:if(x<1)if(123==A)--x;else if(125==A&&0==x++&&125==E())continue;switch(D+=o(A),A*x){case 38:P=g>0?1:(D+="\f",-1);break;case 44:d[m++]=(h(D)-1)*P,P=1;break;case 64:45===k()&&(D+=T(S())),y=k(),g=v=h(R=D+=j(_())),A++;break;case 45:45===w&&2==h(D)&&(x=0)}}return a}function G(e,t,n,r,o,a,c,u,h,f,m){for(var g=o-1,v=0===o?a:[""],y=p(v),b=0,w=0,C=0;b<r;++b)for(var E=0,S=d(e,g+1,g=i(w=c[b])),k=e;E<y;++E)(k=s(w>0?v[E]+" "+S:l(S,/&\f/g,v[E])))&&(h[C++]=k);return x(e,t,n,0===o?F:u,h,f,m)}function K(e,t,n){return x(e,t,n,U,o(b),d(e,2,-2),0)}function Y(e,t,n,r){return x(e,t,n,z,d(e,0,r),d(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,i=0;r=i,i=k(),38===r&&12===i&&(t[n]=1),!A(i);)S();return P(e,y)},X=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=Q(y-1,t,n);break;case 2:e[n]+=T(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=S());return e}(R(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var i=[],o=X(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+D+e+L+e+e;case 6828:case 4268:return B+e+L+e+e;case 6165:return B+e+L+"flex-"+e+e;case 5187:return B+e+l(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return B+e+L+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return B+e+L+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+L+l(e,"shrink","negative")+e;case 5292:return B+e+L+l(e,"basis","preferred-size")+e;case 6060:return B+"box-"+l(e,"-grow","")+B+e+L+l(e,"grow","positive")+e;case 4554:return B+l(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(h(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+L+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case z:e.return=ne(e.value,e.length);break;case W:return Z([C(e,{value:l(e.value,"@","@"+B)})],r);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Z([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Z([C(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,L+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||re,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[H,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],h=function(e){var t=p(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([ee,te].concat(a,d));o=function(e,t,n,r){c=n,Z(V(e?e+"{"+t.styles+"}":t.styles),h),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return f.sheet.hydrate(l),f}},4848:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>r})},5808:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>l,w:()=>s});var r=n(1233),i=n(5199),o=(n(8386),n(3618),r.createContext("undefined"!==typeof HTMLElement?(0,i.Z)({key:"css"}):null)),a=o.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(o);return e(t,i,n)}))},l=r.createContext({})},1984:(e,t,n)=>{"use strict";n.d(t,{F4:()=>u,iv:()=>c,xB:()=>l});var r=n(5808),i=n(1233),o=n(5436),a=n(3618),s=n(8386),l=(n(5199),n(6213),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.O)([n],void 0,i.useContext(r.T)),c=i.useRef();return(0,a.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.j)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.My)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.O)(t)}var u=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},8386:(e,t,n)=>{"use strict";n.d(t,{O:()=>g});var r={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},i=n(4848),o=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,i.Z)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},h="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function p(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return f={name:i.name,styles:i.styles,next:f},i.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=p(e,t,n[i])+";";else for(var a in n){var s=n[a];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&o)throw new Error(h);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var f=p(e,t,s);switch(a){case"animation":case"animationName":r+=u(a)+":"+f+";";break;default:r+=a+"{"+f+"}"}}else for(var m=0;m<s.length;m++)c(s[m])&&(r+=u(a)+":"+d(a,s[m])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=f,m=n(e);return f=l,p(e,t,m)}}var g=n;if(null==t)return g;var v=t[g];return void 0!==v?v:g}var f,m=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function g(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";f=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=p(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=p(n,t,e[a]),r)i+=o[a]}m.lastIndex=0;for(var s,l="";null!==(s=m.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:f}}},3618:(e,t,n)=>{"use strict";var r;n.d(t,{L:()=>a,j:()=>s});var i=n(1233),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},5436:(e,t,n)=>{"use strict";n.d(t,{My:()=>o,fp:()=>r,hC:()=>i});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},6279:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case h:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},1932:(e,t,n)=>{"use strict";n(6279)},8607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(1233);var r=n(1984),i=n(9064);function o(e){const{styles:t,defaultTheme:n={}}=e,o="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.xB,{styles:o})}},7924:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>E.Z,StyledEngineProvider:()=>C,ThemeContext:()=>l.T,css:()=>y.iv,default:()=>S,internal_processStyles:()=>k,keyframes:()=>y.F4});var r=n(7462),i=n(1233),o=n(4848),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(5808),c=n(5436),u=n(8386),d=n(3618),h=s,p=function(e){return"theme"!==e},f=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?h:p},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.hC)(t,n,r),(0,d.L)((function(){return(0,c.My)(t,n,r)})),null},v=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var h=m(t,n,s),p=h||f(d),v=!p("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var w=y.length,x=1;x<w;x++)b.push(y[x],y[0][x])}var C=(0,l.w)((function(e,t,n){var r=v&&e.as||d,o="",s=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=i.useContext(l.T)}"string"===typeof e.className?o=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var w=(0,u.O)(b.concat(s),t.registered,m);o+=t.key+"-"+w.name,void 0!==a&&(o+=" "+a);var x=v&&void 0===h?f(r):p,C={};for(var E in e)v&&"as"===E||x(E)&&(C[E]=e[E]);return C.className=o,n&&(C.ref=n),i.createElement(i.Fragment,null,i.createElement(g,{cache:t,serialized:w,isStringTag:"string"===typeof r}),i.createElement(r,C))}));return C.displayName=void 0!==o?o:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=b,C.__emotion_forwardProp=h,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,i){return e(t,(0,r.Z)({},n,i,{shouldForwardProp:m(C,i,!0)})).apply(void 0,b)},C}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){v[e]=v(e)}));var y=n(1984),b=n(5199),w=n(9064);let x;function C(e){const{injectFirst:t,children:n}=e;return t&&x?(0,w.jsx)(l.C,{value:x,children:n}):n}"object"===typeof document&&(x=(0,b.Z)({key:"css",prepend:!0}));var E=n(8607);function S(e,t){return v(e,t)}const k=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},3254:(e,t,n)=>{"use strict";var r=n(4836);t.Fq=p,t._j=f,t._4=g,t.mi=function(e,t){const n=h(e),r=h(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.$n=m;var i=r(n(7991)),o=r(n(8448));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,o.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function h(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function f(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return h(e)>.5?f(e,t):m(e,t)}},8222:(e,t,n)=>{"use strict";var r=n(4836);t.ZP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:v((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:m,skipSx:w,overridesResolver:x=y(g(p))}=c,C=(0,o.default)(c,h),E=void 0!==m?m:p&&"Root"!==p&&"root"!==p||!1,S=w||!1;let k=f;"Root"===p||"root"===p?k=r:p?k=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const _=(0,a.default)(e,(0,i.default)({shouldForwardProp:k,label:undefined},C)),P=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,i.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,A=function(r){let o=P(r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const c=s?s.map(P):[];d&&x&&c.push((e=>{const r=v((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const o=r.components[d].styleOverrides,a={};return Object.entries(o).forEach((t=>{let[n,o]=t;a[n]=b(o,(0,i.default)({},e,{theme:r}))})),x(e,a)})),d&&!E&&c.push((e=>{var r;const o=v((0,i.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==o||null==(r=o.components)||null==(r=r[d])?void 0:r.variants},(0,i.default)({},e,{theme:o}))})),S||c.push(u);const h=c.length-s.length;if(Array.isArray(r)&&h>0){const e=new Array(h).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const p=_(o,...c);return e.muiName&&(p.muiName=e.muiName),p};return _.withConfig&&(A.withConfig=_.withConfig),A}};var i=r(n(434)),o=r(n(7071)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(7924)),s=n(6970),l=(r(n(1562)),r(n(6368)),r(n(1635))),c=r(n(7183));const u=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,o.default)(t,u);const a="function"===typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,i.default)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.default)(a,d);return e.forEach((e=>{let o=!0;"function"===typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return a}},7259:(e,t,n)=>{"use strict";n.d(t,{L7:()=>l,P$:()=>u,VO:()=>i,W8:()=>s,dt:()=>c,k9:()=>a});var r=n(1464);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"===typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const a=[t,...i].reduce(((e,t)=>(0,r.Z)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const i=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),o=Object.keys(i);if(0===o.length)return t;let a;return o.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}},6598:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}n.d(t,{Z:()=>r})},9547:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(3366),i=n(7462);const o=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.Z)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.Z)(e,o),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function h(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-s/100}${n})`}function p(e,r){const i=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:r)-s/100}${n})`}return(0,i.Z)({keys:u,values:c,up:d,down:h,between:p,only:function(e){return u.indexOf(e)+1<u.length?p(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?h(u[t]):p(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},2053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7462),i=n(3366),o=n(1464),a=n(9547);const s={borderRadius:4};var l=n(7857);var c=n(8127),u=n(5176),d=n(6598);const h=["breakpoints","palette","spacing","shape"];const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:p,shape:f={}}=e,m=(0,i.Z)(e,h),g=(0,a.Z)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(p);let y=(0,o.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},n),spacing:v,shape:(0,r.Z)({},s,f)},m);y.applyStyles=d.Z;for(var b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce(((e,t)=>(0,o.Z)(e,t)),y),y.unstable_sxConfig=(0,r.Z)({},u.Z,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},1635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.Z,private_createBreakpoints:()=>i.Z,unstable_applyStyles:()=>o.Z});var r=n(2053),i=n(9547),o=n(6598)},8422:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1464);const i=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},7857:(e,t,n)=>{"use strict";n.d(t,{hB:()=>f,eI:()=>p,NA:()=>m,e6:()=>y,o3:()=>b});var r=n(7259),i=n(9203),o=n(8422);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(e,t,n,r){var o;const a=null!=(o=(0,i.DW)(e,t,!1))?o:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function f(e){return p(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function g(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),i),a=e[n];return(0,r.k9)(e,a,o)}function v(e,t){const n=f(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(o.Z,{})}function y(e){return v(e,u)}function b(e){return v(e,d)}function w(e){return v(e,h)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=h},9203:(e,t,n)=>{"use strict";n.d(t,{DW:()=>o,Jq:()=>a,ZP:()=>s});var r=n(8274),i=n(7259);function o(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:o(e,n)||i,t&&(r=t(r,i,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,s)||{};return(0,i.k9)(e,c,(e=>{let i=a(u,l,e);return e===i&&"string"===typeof e&&(i=a(u,l,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},5176:(e,t,n)=>{"use strict";n.d(t,{Z:()=>$});var r=n(7857),i=n(9203),o=n(8422);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,o.Z)(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i};var s=n(7259);function l(e){return"number"!==typeof e?e:`${e}px solid`}function c(e,t){return(0,i.ZP)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),h=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};C.propTypes={},C.filterProps=["borderRadius"];a(u,d,h,p,f,m,g,v,y,b,C,w,x);const E=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};E.propTypes={},E.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};S.propTypes={},S.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];a(E,S,k,(0,i.ZP)({prop:"gridColumn"}),(0,i.ZP)({prop:"gridRow"}),(0,i.ZP)({prop:"gridAutoFlow"}),(0,i.ZP)({prop:"gridAutoColumns"}),(0,i.ZP)({prop:"gridAutoRows"}),(0,i.ZP)({prop:"gridTemplateColumns"}),(0,i.ZP)({prop:"gridTemplateRows"}),(0,i.ZP)({prop:"gridTemplateAreas"}),(0,i.ZP)({prop:"gridArea"}));function _(e,t){return"grey"===t?t:e}a((0,i.ZP)({prop:"color",themeKey:"palette",transform:_}),(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_}),(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:_}));function P(e){return e<=1&&0!==e?100*e+"%":e}const A=(0,i.ZP)({prop:"width",transform:P}),R=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.VO[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:P(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};R.filterProps=["maxWidth"];const O=(0,i.ZP)({prop:"minWidth",transform:P}),T=(0,i.ZP)({prop:"height",transform:P}),I=(0,i.ZP)({prop:"maxHeight",transform:P}),N=(0,i.ZP)({prop:"minHeight",transform:P}),$=((0,i.ZP)({prop:"size",cssProperty:"width",transform:P}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:P}),a(A,R,O,T,I,N,(0,i.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_},backgroundColor:{themeKey:"palette",transform:_},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:E},rowGap:{style:k},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:P},maxWidth:{style:R},minWidth:{transform:P},height:{transform:P},maxHeight:{transform:P},minHeight:{transform:P},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},3027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(7462),i=n(3366),o=n(1464),a=n(5176);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.Z)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,o.P)(e)?(0,r.Z)({},a,e):a}:(0,r.Z)({},a,t),(0,r.Z)({},c,{sx:u})}},7183:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.Z,extendSxProp:()=>i.Z,unstable_createStyleFunctionSx:()=>r.n,unstable_defaultSxConfig:()=>o.Z});var r=n(8127),i=n(3027),o=n(5176)},8127:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,n:()=>l});var r=n(8274),i=n(8422),o=n(9203),a=n(7259),s=n(5176);function l(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,o.DW)(n,u)||{};if(h)return h(s);return(0,a.k9)(s,t,(t=>{let n=(0,o.Jq)(p,d,t);return t===n&&"string"===typeof t&&(n=(0,o.Jq)(p,d,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.Z;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const o=(0,a.W8)(l.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==o&&void 0!==o)if("object"===typeof o)if(c[n])u=(0,i.Z)(u,e(n,o,l,c));else{const e=(0,a.k9)({theme:l},o,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(r);return t.every((e=>i.size===Object.keys(e).length))}(e,o)?u=(0,i.Z)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.Z)(u,e(n,o,l,c))})),(0,a.L7)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}const c=l();c.filterProps=["sx"];const u=c},8274:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1453);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},1562:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.Z});var r=n(8274)},8448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},1464:(e,t,n)=>{"use strict";n.d(t,{P:()=>i,Z:()=>a});var r=n(7462);function i(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{i(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r]})),s}},6970:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.Z,isPlainObject:()=>r.P});var r=n(1464)},1453:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:()=>r})},7991:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.Z});var r=n(1453)},6368:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>o});var r=n(9419);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){const t=`${e}`.match(i);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||o(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},2795:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case h:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=f},9419:(e,t,n)=>{"use strict";e.exports=n(2795)},1400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1726);function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function o(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function l(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function h(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),u(e/4294967296>>>0,t,n),u(e>>>0,t,n+4),t}function p(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=l,t.readUint32LE=c,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=a(e,t),r=a(e,t+4);return 4294967296*n+r-4294967296*(r>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=l(e,t);return 4294967296*l(e,t+4)+n-4294967296*(n>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=p,t.writeInt64LE=p,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,o=e/8+n-1;o>=n;o--)r+=t[o]*i,i*=256;return r},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,o=n;o<n+e/8;o++)r+=t[o]*i,i*=256;return r},t.writeUintBE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var o=1,a=e/8+i-1;a>=i;a--)n[a]=t/o&255,o*=256;return n},t.writeUintLE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a<i+e/8;a++)n[a]=t/o&255,o*=256;return n},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e),t},t.writeFloat32LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e,!0),t},t.writeFloat64BE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e),t},t.writeFloat64LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e,!0),t}},2423:(e,t,n)=>{"use strict";var r=n(8429),i=n(1374),o=n(2700),a=n(1400),s=n(1831);t.Cv=32,t.WH=12,t.pg=16;var l=new Uint8Array(16),c=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var a=new Uint8Array(16);a.set(e,a.length-e.length);var s=new Uint8Array(32);r.stream(this._key,a,s,4);var l,c=t.length+this.tagLength;if(i){if(i.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(c);return r.streamXOR(this._key,a,t,l,4),this._authenticate(l.subarray(l.length-this.tagLength,l.length),s,l.subarray(0,l.length-this.tagLength),n),o.wipe(a),l},e.prototype.open=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var a=new Uint8Array(16);a.set(e,a.length-e.length);var l=new Uint8Array(32);r.stream(this._key,a,l,4);var c=new Uint8Array(this.tagLength);if(this._authenticate(c,l,t.subarray(0,t.length-this.tagLength),n),!s.equal(c,t.subarray(t.length-this.tagLength,t.length)))return null;var u,d=t.length-this.tagLength;if(i){if(i.length!==d)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(d);return r.streamXOR(this._key,a,t.subarray(0,t.length-this.tagLength),u,4),o.wipe(a),u},e.prototype.clean=function(){return o.wipe(this._key),this},e.prototype._authenticate=function(e,t,n,r){var s=new i.Poly1305(t);r&&(s.update(r),r.length%16>0&&s.update(l.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(l.subarray(n.length%16));var c=new Uint8Array(8);r&&a.writeUint64LE(r.length,c),s.update(c),a.writeUint64LE(n.length,c),s.update(c);for(var u=s.digest(),d=0;d<u.length;d++)e[d]=u[d];s.clean(),o.wipe(u),o.wipe(c)},e}();t.OK=c},8429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1400),i=n(2700),o=20;function a(e,t,n){for(var i=1634760805,a=857760878,s=2036477234,l=1797285236,c=n[3]<<24|n[2]<<16|n[1]<<8|n[0],u=n[7]<<24|n[6]<<16|n[5]<<8|n[4],d=n[11]<<24|n[10]<<16|n[9]<<8|n[8],h=n[15]<<24|n[14]<<16|n[13]<<8|n[12],p=n[19]<<24|n[18]<<16|n[17]<<8|n[16],f=n[23]<<24|n[22]<<16|n[21]<<8|n[20],m=n[27]<<24|n[26]<<16|n[25]<<8|n[24],g=n[31]<<24|n[30]<<16|n[29]<<8|n[28],v=t[3]<<24|t[2]<<16|t[1]<<8|t[0],y=t[7]<<24|t[6]<<16|t[5]<<8|t[4],b=t[11]<<24|t[10]<<16|t[9]<<8|t[8],w=t[15]<<24|t[14]<<16|t[13]<<8|t[12],x=i,C=a,E=s,S=l,k=c,_=u,P=d,A=h,R=p,O=f,T=m,I=g,N=v,$=y,M=b,j=w,L=0;L<o;L+=2)k=(k^=R=R+(N=(N^=x=x+k|0)>>>16|N<<16)|0)>>>20|k<<12,_=(_^=O=O+($=($^=C=C+_|0)>>>16|$<<16)|0)>>>20|_<<12,P=(P^=T=T+(M=(M^=E=E+P|0)>>>16|M<<16)|0)>>>20|P<<12,A=(A^=I=I+(j=(j^=S=S+A|0)>>>16|j<<16)|0)>>>20|A<<12,P=(P^=T=T+(M=(M^=E=E+P|0)>>>24|M<<8)|0)>>>25|P<<7,A=(A^=I=I+(j=(j^=S=S+A|0)>>>24|j<<8)|0)>>>25|A<<7,_=(_^=O=O+($=($^=C=C+_|0)>>>24|$<<8)|0)>>>25|_<<7,k=(k^=R=R+(N=(N^=x=x+k|0)>>>24|N<<8)|0)>>>25|k<<7,_=(_^=T=T+(j=(j^=x=x+_|0)>>>16|j<<16)|0)>>>20|_<<12,P=(P^=I=I+(N=(N^=C=C+P|0)>>>16|N<<16)|0)>>>20|P<<12,A=(A^=R=R+($=($^=E=E+A|0)>>>16|$<<16)|0)>>>20|A<<12,k=(k^=O=O+(M=(M^=S=S+k|0)>>>16|M<<16)|0)>>>20|k<<12,A=(A^=R=R+($=($^=E=E+A|0)>>>24|$<<8)|0)>>>25|A<<7,k=(k^=O=O+(M=(M^=S=S+k|0)>>>24|M<<8)|0)>>>25|k<<7,P=(P^=I=I+(N=(N^=C=C+P|0)>>>24|N<<8)|0)>>>25|P<<7,_=(_^=T=T+(j=(j^=x=x+_|0)>>>24|j<<8)|0)>>>25|_<<7;r.writeUint32LE(x+i|0,e,0),r.writeUint32LE(C+a|0,e,4),r.writeUint32LE(E+s|0,e,8),r.writeUint32LE(S+l|0,e,12),r.writeUint32LE(k+c|0,e,16),r.writeUint32LE(_+u|0,e,20),r.writeUint32LE(P+d|0,e,24),r.writeUint32LE(A+h|0,e,28),r.writeUint32LE(R+p|0,e,32),r.writeUint32LE(O+f|0,e,36),r.writeUint32LE(T+m|0,e,40),r.writeUint32LE(I+g|0,e,44),r.writeUint32LE(N+v|0,e,48),r.writeUint32LE($+y|0,e,52),r.writeUint32LE(M+b|0,e,56),r.writeUint32LE(j+w|0,e,60)}function s(e,t,n,r,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(r.length<n.length)throw new Error("ChaCha: destination is shorter than source");var s,c;if(0===o){if(8!==t.length&&12!==t.length)throw new Error("ChaCha nonce must be 8 or 12 bytes");c=(s=new Uint8Array(16)).length-t.length,s.set(t,c)}else{if(16!==t.length)throw new Error("ChaCha nonce with counter must be 16 bytes");s=t,c=o}for(var u=new Uint8Array(64),d=0;d<n.length;d+=64){a(u,s,e);for(var h=d;h<d+64&&h<n.length;h++)r[h]=n[h]^u[h-d];l(s,0,c)}return i.wipe(u),0===o&&i.wipe(s),r}function l(e,t,n){for(var r=1;n--;)r=r+(255&e[t])|0,e[t]=255&r,r>>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=s,t.stream=function(e,t,n,r){return void 0===r&&(r=0),i.wipe(n),s(e,t,n,n,r)}},1831:(e,t)=>{"use strict";function n(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r<e.length;r++)n|=e[r]^t[r];return 1&n-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=n,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}},1272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return"undefined"!==typeof e.saveState&&"undefined"!==typeof e.restoreState&&"undefined"!==typeof e.cleanSavedState}},3124:(e,t,n)=>{"use strict";var r=n(9046),i=n(2700),o=function(){function e(e,t,n,i){void 0===n&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var o=r.hmac(this._hash,n,t);this._hmac=new r.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n<t.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[n]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),i.wipe(this._buffer),i.wipe(this._counter),this._bufpos=0},e}();t.t=o},9046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1272),i=n(1831),o=n(2700),a=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),r.isSerializableHash(this._inner)&&r.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),o.wipe(n)}return e.prototype.reset=function(){if(!r.isSerializableHash(this._inner)||!r.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){r.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),r.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?(this._outer.finish(e),this):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0,this)},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!r.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!r.isSerializableHash(this._inner)||!r.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!r.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=a,t.hmac=function(e,t,n){var r=new a(e,t);r.update(n);var i=r.digest();return r.clean(),i},t.equal=i.equal},1726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16&65535)*r+n*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},1374:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1831),i=n(2700);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var n=e[0]|e[1]<<8;this._r[0]=8191&n;var r=e[2]|e[3]<<8;this._r[1]=8191&(n>>>13|r<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(r>>>10|i<<6);var o=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=e[8]|e[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var l=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|l<<5);var c=e[14]|e[15]<<8;this._r[8]=8191&(l>>>8|c<<8),this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,n){for(var r=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],l=this._h[4],c=this._h[5],u=this._h[6],d=this._h[7],h=this._h[8],p=this._h[9],f=this._r[0],m=this._r[1],g=this._r[2],v=this._r[3],y=this._r[4],b=this._r[5],w=this._r[6],x=this._r[7],C=this._r[8],E=this._r[9];n>=16;){var S=e[t+0]|e[t+1]<<8;i+=8191&S;var k=e[t+2]|e[t+3]<<8;o+=8191&(S>>>13|k<<3);var _=e[t+4]|e[t+5]<<8;a+=8191&(k>>>10|_<<6);var P=e[t+6]|e[t+7]<<8;s+=8191&(_>>>7|P<<9);var A=e[t+8]|e[t+9]<<8;l+=8191&(P>>>4|A<<12),c+=A>>>1&8191;var R=e[t+10]|e[t+11]<<8;u+=8191&(A>>>14|R<<2);var O=e[t+12]|e[t+13]<<8;d+=8191&(R>>>11|O<<5);var T=e[t+14]|e[t+15]<<8,I=0,N=I;N+=i*f,N+=o*(5*E),N+=a*(5*C),N+=s*(5*x),I=(N+=l*(5*w))>>>13,N&=8191,N+=c*(5*b),N+=u*(5*y),N+=d*(5*v),N+=(h+=8191&(O>>>8|T<<8))*(5*g);var $=I+=(N+=(p+=T>>>5|r)*(5*m))>>>13;$+=i*m,$+=o*f,$+=a*(5*E),$+=s*(5*C),I=($+=l*(5*x))>>>13,$&=8191,$+=c*(5*w),$+=u*(5*b),$+=d*(5*y),$+=h*(5*v),I+=($+=p*(5*g))>>>13,$&=8191;var M=I;M+=i*g,M+=o*m,M+=a*f,M+=s*(5*E),I=(M+=l*(5*C))>>>13,M&=8191,M+=c*(5*x),M+=u*(5*w),M+=d*(5*b),M+=h*(5*y);var j=I+=(M+=p*(5*v))>>>13;j+=i*v,j+=o*g,j+=a*m,j+=s*f,I=(j+=l*(5*E))>>>13,j&=8191,j+=c*(5*C),j+=u*(5*x),j+=d*(5*w),j+=h*(5*b);var L=I+=(j+=p*(5*y))>>>13;L+=i*y,L+=o*v,L+=a*g,L+=s*m,I=(L+=l*f)>>>13,L&=8191,L+=c*(5*E),L+=u*(5*C),L+=d*(5*x),L+=h*(5*w);var D=I+=(L+=p*(5*b))>>>13;D+=i*b,D+=o*y,D+=a*v,D+=s*g,I=(D+=l*m)>>>13,D&=8191,D+=c*f,D+=u*(5*E),D+=d*(5*C),D+=h*(5*x);var B=I+=(D+=p*(5*w))>>>13;B+=i*w,B+=o*b,B+=a*y,B+=s*v,I=(B+=l*g)>>>13,B&=8191,B+=c*m,B+=u*f,B+=d*(5*E),B+=h*(5*C);var U=I+=(B+=p*(5*x))>>>13;U+=i*x,U+=o*w,U+=a*b,U+=s*y,I=(U+=l*v)>>>13,U&=8191,U+=c*g,U+=u*m,U+=d*f,U+=h*(5*E);var F=I+=(U+=p*(5*C))>>>13;F+=i*C,F+=o*x,F+=a*w,F+=s*b,I=(F+=l*y)>>>13,F&=8191,F+=c*v,F+=u*g,F+=d*m,F+=h*f;var z=I+=(F+=p*(5*E))>>>13;z+=i*E,z+=o*C,z+=a*x,z+=s*w,I=(z+=l*b)>>>13,z&=8191,z+=c*y,z+=u*v,z+=d*g,z+=h*m,i=N=8191&(I=(I=((I+=(z+=p*f)>>>13)<<2)+I|0)+(N&=8191)|0),o=$+=I>>>=13,a=M&=8191,s=j&=8191,l=L&=8191,c=D&=8191,u=B&=8191,d=U&=8191,h=F&=8191,p=z&=8191,t+=16,n-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=l,this._h[5]=c,this._h[6]=u,this._h[7]=d,this._h[8]=h,this._h[9]=p},e.prototype.finish=function(e,t){void 0===t&&(t=0);var n,r,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=n,n=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,a[0]=this._h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this._h[o]=this._h[o]&r|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,n=0,r=e.length;if(this._leftover){(t=16-this._leftover)>r&&(t=r);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[n+i];if(r-=t,n+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(r>=16&&(t=r-r%16,this._blocks(e,n,t),n+=t,r-=t),r){for(i=0;i<r;i++)this._buffer[this._leftover+i]=e[n+i];this._leftover+=r}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return i.wipe(this._buffer),i.wipe(this._r),i.wipe(this._h),i.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=o,t.oneTimeAuth=function(e,t){var n=new o(e);n.update(t);var r=n.digest();return n.clean(),r},t.equal=function(e,n){return e.length===t.DIGEST_LENGTH&&n.length===t.DIGEST_LENGTH&&r.equal(e,n)}},8002:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const r=n(4739),i=n(1400),o=n(2700);function a(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.defaultRandomSource).randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(){const e=a(4,arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultRandomSource),n=(0,i.readUint32LE)(e);return(0,o.wipe)(e),n};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function l(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let i="";const l=n.length,c=256-256%l;for(;e>0;){const t=a(Math.ceil(256*e/c),r);for(let r=0;r<t.length&&e>0;r++){const o=t[r];o<c&&(i+=n.charAt(o%l),e--)}(0,o.wipe)(t)}return i}t.randomString=l,t.randomStringForEntropy=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;return l(Math.ceil(e/(Math.log(n.length)/Math.LN2)),n,r)}},8593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!==typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let n=0;n<t.length;n+=65536)this._crypto.getRandomValues(t.subarray(n,n+Math.min(t.length-n,65536)));return t}}},4783:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const r=n(2700);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=n(5883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const n=new Uint8Array(e);for(let r=0;r<n.length;r++)n[r]=t[r];return(0,r.wipe)(t),n}}},4739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const r=n(8593),i=n(4783);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new r.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},8166:(e,t,n)=>{"use strict";var r=n(1400),i=n(2700);t.k=32,t.cn=64;var o=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=s(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%64<56?64:128;this._buffer[n]=128;for(var l=n+1;l<a-8;l++)this._buffer[l]=0;r.writeUint32BE(i,this._buffer,a-8),r.writeUint32BE(o,this._buffer,a-4),s(this._temp,this._state,this._buffer,0,a),this._finished=!0}for(l=0;l<this.digestLength/4;l++)r.writeUint32BE(this._state[l],e,4*l);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(e,t,n,i,o){for(;o>=64;){for(var s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],h=t[5],p=t[6],f=t[7],m=0;m<16;m++){var g=i+4*m;e[m]=r.readUint32BE(n,g)}for(m=16;m<64;m++){var v=e[m-2],y=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,b=((v=e[m-15])>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;e[m]=(y+e[m-7]|0)+(b+e[m-16]|0)}for(m=0;m<64;m++){y=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&p)|0)+(f+(a[m]+e[m]|0)|0)|0,b=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&l^s&c^l&c)|0;f=p,p=h,h=d,d=u+y|0,u=c,c=l,l=s,s=y+b|0}t[0]+=s,t[1]+=l,t[2]+=c,t[3]+=u,t[4]+=d,t[5]+=h,t[6]+=p,t[7]+=f,i+=64,o-=64}return i}t.vp=function(e){var t=new o;t.update(e);var n=t.digest();return t.clean(),n}},2700:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},2531:(e,t,n)=>{"use strict";t.gi=t.Au=t.KS=t.kz=void 0;const r=n(8002),i=n(2700);function o(e){const t=new Float64Array(16);if(e)for(let n=0;n<e.length;n++)t[n]=e[n];return t}t.kz=32,t.KS=32;const a=new Uint8Array(32);a[0]=9;const s=o([56129,1]);function l(e){let t=1;for(let n=0;n<16;n++){let r=e[n]+t+65535;t=Math.floor(r/65536),e[n]=r-65536*t}e[0]+=t-1+37*(t-1)}function c(e,t,n){const r=~(n-1);for(let i=0;i<16;i++){const n=r&(e[i]^t[i]);e[i]^=n,t[i]^=n}}function u(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]+n[r]}function d(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]-n[r]}function h(e,t,n){let r,i,o=0,a=0,s=0,l=0,c=0,u=0,d=0,h=0,p=0,f=0,m=0,g=0,v=0,y=0,b=0,w=0,x=0,C=0,E=0,S=0,k=0,_=0,P=0,A=0,R=0,O=0,T=0,I=0,N=0,$=0,M=0,j=n[0],L=n[1],D=n[2],B=n[3],U=n[4],F=n[5],z=n[6],W=n[7],Z=n[8],H=n[9],V=n[10],q=n[11],G=n[12],K=n[13],Y=n[14],Q=n[15];r=t[0],o+=r*j,a+=r*L,s+=r*D,l+=r*B,c+=r*U,u+=r*F,d+=r*z,h+=r*W,p+=r*Z,f+=r*H,m+=r*V,g+=r*q,v+=r*G,y+=r*K,b+=r*Y,w+=r*Q,r=t[1],a+=r*j,s+=r*L,l+=r*D,c+=r*B,u+=r*U,d+=r*F,h+=r*z,p+=r*W,f+=r*Z,m+=r*H,g+=r*V,v+=r*q,y+=r*G,b+=r*K,w+=r*Y,x+=r*Q,r=t[2],s+=r*j,l+=r*L,c+=r*D,u+=r*B,d+=r*U,h+=r*F,p+=r*z,f+=r*W,m+=r*Z,g+=r*H,v+=r*V,y+=r*q,b+=r*G,w+=r*K,x+=r*Y,C+=r*Q,r=t[3],l+=r*j,c+=r*L,u+=r*D,d+=r*B,h+=r*U,p+=r*F,f+=r*z,m+=r*W,g+=r*Z,v+=r*H,y+=r*V,b+=r*q,w+=r*G,x+=r*K,C+=r*Y,E+=r*Q,r=t[4],c+=r*j,u+=r*L,d+=r*D,h+=r*B,p+=r*U,f+=r*F,m+=r*z,g+=r*W,v+=r*Z,y+=r*H,b+=r*V,w+=r*q,x+=r*G,C+=r*K,E+=r*Y,S+=r*Q,r=t[5],u+=r*j,d+=r*L,h+=r*D,p+=r*B,f+=r*U,m+=r*F,g+=r*z,v+=r*W,y+=r*Z,b+=r*H,w+=r*V,x+=r*q,C+=r*G,E+=r*K,S+=r*Y,k+=r*Q,r=t[6],d+=r*j,h+=r*L,p+=r*D,f+=r*B,m+=r*U,g+=r*F,v+=r*z,y+=r*W,b+=r*Z,w+=r*H,x+=r*V,C+=r*q,E+=r*G,S+=r*K,k+=r*Y,_+=r*Q,r=t[7],h+=r*j,p+=r*L,f+=r*D,m+=r*B,g+=r*U,v+=r*F,y+=r*z,b+=r*W,w+=r*Z,x+=r*H,C+=r*V,E+=r*q,S+=r*G,k+=r*K,_+=r*Y,P+=r*Q,r=t[8],p+=r*j,f+=r*L,m+=r*D,g+=r*B,v+=r*U,y+=r*F,b+=r*z,w+=r*W,x+=r*Z,C+=r*H,E+=r*V,S+=r*q,k+=r*G,_+=r*K,P+=r*Y,A+=r*Q,r=t[9],f+=r*j,m+=r*L,g+=r*D,v+=r*B,y+=r*U,b+=r*F,w+=r*z,x+=r*W,C+=r*Z,E+=r*H,S+=r*V,k+=r*q,_+=r*G,P+=r*K,A+=r*Y,R+=r*Q,r=t[10],m+=r*j,g+=r*L,v+=r*D,y+=r*B,b+=r*U,w+=r*F,x+=r*z,C+=r*W,E+=r*Z,S+=r*H,k+=r*V,_+=r*q,P+=r*G,A+=r*K,R+=r*Y,O+=r*Q,r=t[11],g+=r*j,v+=r*L,y+=r*D,b+=r*B,w+=r*U,x+=r*F,C+=r*z,E+=r*W,S+=r*Z,k+=r*H,_+=r*V,P+=r*q,A+=r*G,R+=r*K,O+=r*Y,T+=r*Q,r=t[12],v+=r*j,y+=r*L,b+=r*D,w+=r*B,x+=r*U,C+=r*F,E+=r*z,S+=r*W,k+=r*Z,_+=r*H,P+=r*V,A+=r*q,R+=r*G,O+=r*K,T+=r*Y,I+=r*Q,r=t[13],y+=r*j,b+=r*L,w+=r*D,x+=r*B,C+=r*U,E+=r*F,S+=r*z,k+=r*W,_+=r*Z,P+=r*H,A+=r*V,R+=r*q,O+=r*G,T+=r*K,I+=r*Y,N+=r*Q,r=t[14],b+=r*j,w+=r*L,x+=r*D,C+=r*B,E+=r*U,S+=r*F,k+=r*z,_+=r*W,P+=r*Z,A+=r*H,R+=r*V,O+=r*q,T+=r*G,I+=r*K,N+=r*Y,$+=r*Q,r=t[15],w+=r*j,x+=r*L,C+=r*D,E+=r*B,S+=r*U,k+=r*F,_+=r*z,P+=r*W,A+=r*Z,R+=r*H,O+=r*V,T+=r*q,I+=r*G,N+=r*K,$+=r*Y,M+=r*Q,o+=38*x,a+=38*C,s+=38*E,l+=38*S,c+=38*k,u+=38*_,d+=38*P,h+=38*A,p+=38*R,f+=38*O,m+=38*T,g+=38*I,v+=38*N,y+=38*$,b+=38*M,i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=h,e[8]=p,e[9]=f,e[10]=m,e[11]=g,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function p(e,t){h(e,t,t)}function f(e,t){const n=new Uint8Array(32),r=new Float64Array(80),i=o(),a=o(),f=o(),m=o(),g=o(),v=o();for(let o=0;o<31;o++)n[o]=e[o];n[31]=127&e[31]|64,n[0]&=248,function(e,t){for(let n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}(r,t);for(let o=0;o<16;o++)a[o]=r[o];i[0]=m[0]=1;for(let o=254;o>=0;--o){const e=n[o>>>3]>>>(7&o)&1;c(i,a,e),c(f,m,e),u(g,i,f),d(i,i,f),u(f,a,m),d(a,a,m),p(m,g),p(v,i),h(i,f,i),h(f,a,g),u(g,i,f),d(i,i,f),p(a,i),d(f,m,v),h(i,f,s),u(i,i,m),h(f,f,i),h(i,m,v),h(m,a,r),p(a,g),c(i,a,e),c(f,m,e)}for(let o=0;o<16;o++)r[o+16]=i[o],r[o+32]=f[o],r[o+48]=a[o],r[o+64]=m[o];const y=r.subarray(32),b=r.subarray(16);!function(e,t){const n=o();for(let r=0;r<16;r++)n[r]=t[r];for(let r=253;r>=0;r--)p(n,n),2!==r&&4!==r&&h(n,n,t);for(let r=0;r<16;r++)e[r]=n[r]}(y,y),h(b,b,y);const w=new Uint8Array(32);return function(e,t){const n=o(),r=o();for(let i=0;i<16;i++)r[i]=t[i];l(r),l(r),l(r);for(let i=0;i<2;i++){n[0]=r[0]-65517;for(let t=1;t<15;t++)n[t]=r[t]-65535-(n[t-1]>>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,c(r,n,1-e)}for(let i=0;i<16;i++)e[2*i]=255&r[i],e[2*i+1]=r[i]>>8}(w,b),w}function m(e){return f(e,a)}function g(e){if(e.length!==t.KS)throw new Error(`x25519: seed must be ${t.KS} bytes`);const n=new Uint8Array(e);return{publicKey:m(n),secretKey:n}}t.Au=function(e){const t=(0,r.randomBytes)(32,e),n=g(t);return(0,i.wipe)(t),n},t.gi=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.length!==t.kz)throw new Error("X25519: incorrect secret key length");if(n.length!==t.kz)throw new Error("X25519: incorrect public key length");const i=f(e,n);if(r){let e=0;for(let t=0;t<i.length;t++)e|=i[t];if(0===e)throw new Error("X25519: invalid shared key")}return i}},1752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3097);r.__exportStar(n(262),t),r.__exportStar(n(7264),t)},262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},7264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},9486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3097);r.__exportStar(n(8604),t),r.__exportStar(n(273),t),r.__exportStar(n(2276),t),r.__exportStar(n(1752),t)},2276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(3097).__exportStar(n(5129),t)},5129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;t.IWatch=class{}},8501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const r=n(1752);t.toMiliseconds=function(e){return e*r.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/r.ONE_THOUSAND)}},2227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},8604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3097);r.__exportStar(n(2227),t),r.__exportStar(n(8501),t)},273:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class n{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if("undefined"!==typeof t.elapsed)throw new Error(`Watch already stopped for label: ${e}`);const n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){const t=this.timestamps.get(e);if("undefined"===typeof t)throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=n,t.default=n},3097:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>b,__asyncValues:()=>x,__await:()=>y,__awaiter:()=>u,__classPrivateFieldGet:()=>k,__classPrivateFieldSet:()=>_,__createBinding:()=>h,__decorate:()=>s,__exportStar:()=>p,__extends:()=>i,__generator:()=>d,__importDefault:()=>S,__importStar:()=>E,__makeTemplateObject:()=>C,__metadata:()=>c,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>g,__spreadArrays:()=>v,__values:()=>f});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function p(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(r){u(o[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function _(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},5974:(e,t,n)=>{"use strict";n.d(t,{AW:()=>$,O6:()=>Zt,rV:()=>D,gn:()=>Pe,H1:()=>xe,hF:()=>Ce,WG:()=>G,pe:()=>Y,m$:()=>H,vB:()=>Q,HI:()=>K,E0:()=>Re,Gq:()=>ke,$0:()=>ve,Z4:()=>Se,Bv:()=>He,Au:()=>W,jd:()=>Z,gu:()=>T,D:()=>me,X_:()=>fe,bW:()=>Ie,Z7:()=>lt,cO:()=>Me,_H:()=>$e,fc:()=>nt,D6:()=>ct,Hh:()=>Te,Ym:()=>V,rj:()=>q,jU:()=>he,gp:()=>rt,rF:()=>Dt,Bw:()=>Ae,UG:()=>ue,Gg:()=>Ft,xW:()=>yt,b$:()=>de,Ih:()=>mt,h1:()=>bt,Q8:()=>ee,o8:()=>ht,qt:()=>ut,Dd:()=>wt,$t:()=>Tt,nf:()=>$t,Q0:()=>Rt,in:()=>_t,p8:()=>Mt,sI:()=>Lt,al:()=>jt,L5:()=>dt,EJ:()=>Ot,Z2:()=>Pt,PM:()=>At,hH:()=>It,ON:()=>Ut,n:()=>kt,JT:()=>Nt,M_:()=>pt,jv:()=>vt,KC:()=>be,eG:()=>Oe,fK:()=>ot,IP:()=>we,DQ:()=>O,iP:()=>_e,M:()=>it,he:()=>We,uw:()=>zt,Ll:()=>X,EN:()=>J});var r=n(2423),i=n(3124),o=n(8002),a=n(8166),s=n(2531),l=n(8954),c=n(1839),u=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},d=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},h=function(e){this.version=e,this.type="node",this.name="node",this.os=c.platform},p=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},f=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},m=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},g=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,v=3,y=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],b=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function w(e){return e?C(e):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new m:"undefined"!==typeof navigator?C(navigator.userAgent):"undefined"!==typeof c&&c.version?new h(c.version.slice(1)):null}function x(e){return""!==e&&y.reduce((function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]}),!1)}function C(e){var t=x(e);if(!t)return null;var n=t[0],r=t[1];if("searchbot"===n)return new f;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length<v&&(i=u(u([],i,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(v-i.length),!0)):i=[];var o=i.join("."),a=function(e){for(var t=0,n=b.length;t<n;t++){var r=b[t],i=r[0];if(r[1].exec(e))return i}return null}(e),s=g.exec(e);return s&&s[1]?new p(n,o,a,s[1]):new d(n,o,a)}var E=n(9486),S=n(5530),k=n(9819),_=n(2882);const P={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}};var A=n(1839);const R=":";function O(e){const[t,n]=e.split(R);return{namespace:t,reference:n}}function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];return Object.keys(e).forEach((r=>{if(t.length&&!t.includes(r))return;const i=e[r];n.push(...i.accounts)})),n}function I(e,t){return e.includes(":")?[e]:t.chains||[]}const N="base10",$="base16",M="base64pad",j="utf8",L=0,D=1,B=0,U=1,F=12,z=32;function W(){const e=s.Au();return{privateKey:(0,l.BB)(e.secretKey,$),publicKey:(0,l.BB)(e.publicKey,$)}}function Z(){const e=(0,o.randomBytes)(z);return(0,l.BB)(e,$)}function H(e,t){const n=s.gi((0,l.mL)(e,$),(0,l.mL)(t,$),!0),r=new i.t(a.mE,n).expand(z);return(0,l.BB)(r,$)}function V(e){const t=(0,a.vp)((0,l.mL)(e,$));return(0,l.BB)(t,$)}function q(e){const t=(0,a.vp)((0,l.mL)(e,j));return(0,l.BB)(t,$)}function G(e){return Number((0,l.BB)(e,N))}function K(e){const t=function(e){return(0,l.mL)(`${e}`,N)}(typeof e.type<"u"?e.type:L);if(G(t)===D&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?(0,l.mL)(e.senderPublicKey,$):void 0,i=typeof e.iv<"u"?(0,l.mL)(e.iv,$):(0,o.randomBytes)(F);return function(e){if(G(e.type)===D){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return(0,l.BB)((0,l.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),M)}return(0,l.BB)((0,l.zo)([e.type,e.iv,e.sealed]),M)}({type:t,sealed:new r.OK((0,l.mL)(e.symKey,$)).seal(i,(0,l.mL)(e.message,j)),iv:i,senderPublicKey:n})}function Y(e){const t=new r.OK((0,l.mL)(e.symKey,$)),{sealed:n,iv:i}=Q(e.encoded),o=t.open(i,n);if(null===o)throw new Error("Failed to decrypt");return(0,l.BB)(o,j)}function Q(e){const t=(0,l.mL)(e,M),n=t.slice(B,U),r=U;if(G(n)===D){const e=r+z,i=e+F,o=t.slice(r,e),a=t.slice(e,i);return{type:n,sealed:t.slice(i),iv:a,senderPublicKey:o}}const i=r+F,o=t.slice(r,i);return{type:n,sealed:t.slice(i),iv:o}}function X(e,t){const n=Q(e);return J({type:G(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?(0,l.BB)(n.senderPublicKey,$):void 0,receiverPublicKey:null===t||void 0===t?void 0:t.receiverPublicKey})}function J(e){const t=(null===e||void 0===e?void 0:e.type)||L;if(t===D){if(typeof(null===e||void 0===e?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(null===e||void 0===e?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:null===e||void 0===e?void 0:e.senderPublicKey,receiverPublicKey:null===e||void 0===e?void 0:e.receiverPublicKey}}function ee(e){return e.type===D&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var te=Object.defineProperty,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,oe=(e,t,n)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ae=(e,t)=>{for(var n in t||(t={}))re.call(t,n)&&oe(e,n,t[n]);if(ne)for(var n of ne(t))ie.call(t,n)&&oe(e,n,t[n]);return e};const se="ReactNative",le={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},ce="js";function ue(){return typeof A<"u"&&typeof A.versions<"u"&&typeof A.versions.node<"u"}function de(){return!(0,S.getDocument)()&&!!(0,S.getNavigator)()&&navigator.product===se}function he(){return!ue()&&!!(0,S.getNavigator)()&&!!(0,S.getDocument)()}function pe(){return de()?le.reactNative:ue()?le.node:he()?le.browser:le.unknown}function fe(){var e;try{return de()&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Application)<"u"?null==(e=n.g.Application)?void 0:e.applicationId:void 0}catch{return}}function me(){return(0,k.D)()||{name:"",description:"",url:"",icons:[""]}}function ge(e,t,r){const i=function(){if(pe()===le.reactNative&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Platform)<"u"){const{OS:e,Version:t}=n.g.Platform;return[e,t].join("-")}const e=w();if(null===e)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),o=function(){var e;const t=pe();return t===le.browser?[t,(null==(e=(0,S.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[ce,r].join("-"),i,o].join("/")}function ve(e){let{protocol:t,version:n,relayUrl:r,sdkVersion:i,auth:o,projectId:a,useOnCloseEvent:s,bundleId:l}=e;const c=r.split("?"),u={auth:o,ua:ge(t,n,i),projectId:a,useOnCloseEvent:s||void 0,origin:l||void 0},d=function(e,t){let n=_.parse(e);return n=ae(ae({},n),t),_.stringify(n)}(c[1]||"",u);return c[0]+"?"+d}function ye(e,t){return e.filter((e=>t.includes(e))).length===e.length}function be(e){return Object.fromEntries(e.entries())}function we(e){return new Map(Object.entries(e))}function xe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E.FIVE_MINUTES,t=arguments.length>1?arguments[1]:void 0;const n=(0,E.toMiliseconds)(e||E.FIVE_MINUTES);let r,i,o;return{resolve:e=>{o&&r&&(clearTimeout(o),r(e))},reject:e=>{o&&i&&(clearTimeout(o),i(e))},done:()=>new Promise(((e,a)=>{o=setTimeout((()=>{a(new Error(t))}),n),r=e,i=a}))}}function Ce(e,t,n){return new Promise((async(r,i)=>{const o=setTimeout((()=>i(new Error(n))),t);try{r(await e)}catch(a){i(a)}clearTimeout(o)}))}function Ee(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function Se(e){return Ee("topic",e)}function ke(e){return Ee("id",e)}function _e(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof n)r.topic=n;else{if("id"!==t||!Number.isInteger(Number(n)))throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${n}`);r.id=Number(n)}return r}function Pe(e,t){return(0,E.fromMiliseconds)((t||Date.now())+(0,E.toMiliseconds)(e))}function Ae(e){return Date.now()>=(0,E.toMiliseconds)(e)}function Re(e,t){return`${e}${t?`:${t}`:""}`}function Oe(){return[...new Set([...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]])]}async function Te(e){let{id:t,topic:r,wcDeepLink:i}=e;try{if(!i)return;const e="string"==typeof i?JSON.parse(i):i;let o=null===e||void 0===e?void 0:e.href;if("string"!=typeof o)return;o.endsWith("/")&&(o=o.slice(0,-1));const a=`${o}/wc?requestId=${t}&sessionTopic=${r}`,s=pe();s===le.browser?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):s===le.reactNative&&typeof(null==n.g?void 0:n.g.Linking)<"u"&&await n.g.Linking.openURL(a)}catch(o){console.error(o)}}async function Ie(e,t){try{return await e.getItem(t)||(he()?localStorage.getItem(t):void 0)}catch(n){console.error(n)}}const Ne="irn";function $e(e){return(null===e||void 0===e?void 0:e.relay)||{protocol:Ne}}function Me(e){const t=P[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var je=Object.defineProperty,Le=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ue=(e,t,n)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fe=(e,t)=>{for(var n in t||(t={}))De.call(t,n)&&Ue(e,n,t[n]);if(Le)for(var n of Le(t))Be.call(t,n)&&Ue(e,n,t[n]);return e};function ze(e){const t={},n="relay"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-");return Object.keys(e).forEach((r=>{if(r.startsWith(n)){const i=r.replace(n,""),o=e[r];t[i]=o}})),t}function We(e){const t=(e=(e=e.includes("wc://")?e.replace("wc://",""):e).includes("wc:")?e.replace("wc:",""):e).indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),i=e.substring(t+1,n).split("@"),o=typeof n<"u"?e.substring(n):"",a=_.parse(o);return{protocol:r,topic:Ze(i[0]),version:parseInt(i[1],10),symKey:a.symKey,relay:ze(a)}}function Ze(e){return e.startsWith("//")?e.substring(2):e}function He(e){return`${e.protocol}:${e.topic}@${e.version}?`+_.stringify(Fe({symKey:e.symKey},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";const n={};return Object.keys(e).forEach((r=>{const i="relay"+t+r;e[r]&&(n[i]=e[r])})),n}(e.relay)))}var Ve=Object.defineProperty,qe=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Xe=(e,t,n)=>t in e?Ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Je=(e,t)=>{for(var n in t||(t={}))Ye.call(t,n)&&Xe(e,n,t[n]);if(Ke)for(var n of Ke(t))Qe.call(t,n)&&Xe(e,n,t[n]);return e},et=(e,t)=>qe(e,Ge(t));function tt(e){const t=[];return e.forEach((e=>{const[n,r]=e.split(":");t.push(`${n}:${r}`)})),t}function nt(e,t){const n=_t(e,t);if(n)throw new Error(n.message);const r={};for(const[i,o]of Object.entries(e))r[i]={methods:o.methods,events:o.events,chains:o.accounts.map((e=>`${e.split(":")[0]}:${e.split(":")[1]}`))};return r}function rt(e){return e.includes(":")}function it(e){return rt(e)?e.split(":")[0]:e}function ot(e){var t,n,r;const i={};if(!dt(e))return i;for(const[o,a]of Object.entries(e)){const e=rt(o)?[o]:a.chains,s=a.methods||[],l=a.events||[],c=it(o);i[c]=et(Je({},i[c]),{chains:Oe(e,null==(t=i[c])?void 0:t.chains),methods:Oe(s,null==(n=i[c])?void 0:n.methods),events:Oe(l,null==(r=i[c])?void 0:r.events)})}return i}const at={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},st={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function lt(e,t){const{message:n,code:r}=st[e];return{message:t?`${n} ${t}`:n,code:r}}function ct(e,t){const{message:n,code:r}=at[e];return{message:t?`${n} ${t}`:n,code:r}}function ut(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function dt(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function ht(e){return typeof e>"u"}function pt(e,t){return!(!t||!ht(e))||"string"==typeof e&&!!e.trim().length}function ft(e,t){return!(!t||!ht(e))||"number"==typeof e&&!isNaN(e)}function mt(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),i=Object.keys(n);let o=!0;return!!ye(i,r)&&(r.forEach((t=>{const{accounts:r,methods:i,events:a}=e.namespaces[t],s=tt(r),l=n[t];(!ye(I(t,l),s)||!ye(l.methods,i)||!ye(l.events,a))&&(o=!1)})),o)}function gt(e){return!(!pt(e,!1)||!e.includes(":"))&&2===e.split(":").length}function vt(e){if(pt(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}function yt(e){var t;return null==(t=null===e||void 0===e?void 0:e.proposer)?void 0:t.publicKey}function bt(e){return null===e||void 0===e?void 0:e.topic}function wt(e,t){let n=null;return pt(null===e||void 0===e?void 0:e.publicKey,!1)||(n=lt("MISSING_OR_INVALID",`${t} controller public key should be a string`)),n}function xt(e){let t=!0;return ut(e)?e.length&&(t=e.every((e=>pt(e,!1)))):t=!1,t}function Ct(e,t,n){let r=null;return Object.entries(e).forEach((e=>{let[i,o]=e;if(r)return;const a=function(e,t,n){let r=null;return ut(t)&&t.length?t.forEach((e=>{r||gt(e)||(r=ct("UNSUPPORTED_CHAINS",`${n}, chain ${e} should be a string and conform to "namespace:chainId" format`))})):gt(e)||(r=ct("UNSUPPORTED_CHAINS",`${n}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),r}(i,I(i,o),`${t} ${n}`);a&&(r=a)})),r}function Et(e,t){let n=null;return ut(e)?e.forEach((e=>{n||function(e){if(pt(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&>(e)}}return!1}(e)||(n=ct("UNSUPPORTED_ACCOUNTS",`${t}, account ${e} should be a string and conform to "namespace:chainId:address" format`))})):n=ct("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),n}function St(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=function(e,t){let n=null;return xt(null===e||void 0===e?void 0:e.methods)?xt(null===e||void 0===e?void 0:e.events)||(n=ct("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):n=ct("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),n}(e,`${t}, namespace`);r&&(n=r)})),n}function kt(e,t,n){let r=null;if(e&&dt(e)){const i=St(e,t);i&&(r=i);const o=Ct(e,t,n);o&&(r=o)}else r=lt("MISSING_OR_INVALID",`${t}, ${n} should be an object with data`);return r}function _t(e,t){let n=null;if(e&&dt(e)){const r=St(e,t);r&&(n=r);const i=function(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=Et(null===e||void 0===e?void 0:e.accounts,`${t} namespace`);r&&(n=r)})),n}(e,t);i&&(n=i)}else n=lt("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return n}function Pt(e){return pt(e.protocol,!0)}function At(e,t){let n=!1;return t&&!e?n=!0:e&&ut(e)&&e.length&&e.forEach((e=>{n=Pt(e)})),n}function Rt(e){return"number"==typeof e}function Ot(e){return typeof e<"u"&&null!==typeof e}function Tt(e){return!(!e||"object"!=typeof e||!e.code||!ft(e.code,!1)||!e.message||!pt(e.message,!1))}function It(e){return!(ht(e)||!pt(e.method,!1))}function Nt(e){return!(ht(e)||ht(e.result)&&ht(e.error)||!ft(e.id,!1)||!pt(e.jsonrpc,!1))}function $t(e){return!(ht(e)||!pt(e.name,!1))}function Mt(e,t){return!(!gt(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...tt(e.accounts))})),t}(e).includes(t))}function jt(e,t,n){return!!pt(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{tt(e.accounts).includes(t)&&n.push(...e.methods)})),n}(e,t).includes(n)}function Lt(e,t,n){return!!pt(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{tt(e.accounts).includes(t)&&n.push(...e.events)})),n}(e,t).includes(n)}function Dt(e,t,n){let r=null;const i=function(e){const t={};return Object.keys(e).forEach((n=>{var r;n.includes(":")?t[n]=e[n]:null==(r=e[n].chains)||r.forEach((r=>{t[r]={methods:e[n].methods,events:e[n].events}}))})),t}(e),o=function(e){const t={};return Object.keys(e).forEach((n=>{if(n.includes(":"))t[n]=e[n];else{const r=tt(e[n].accounts);null===r||void 0===r||r.forEach((r=>{t[r]={accounts:e[n].accounts.filter((e=>e.includes(`${r}:`))),methods:e[n].methods,events:e[n].events}}))}})),t}(t),a=Object.keys(i),s=Object.keys(o),l=Bt(Object.keys(e)),c=Bt(Object.keys(t)),u=l.filter((e=>!c.includes(e)));return u.length&&(r=lt("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces.\n Required: ${u.toString()}\n Received: ${Object.keys(t).toString()}`)),ye(a,s)||(r=lt("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces.\n Required: ${a.toString()}\n Approved: ${s.toString()}`)),Object.keys(t).forEach((e=>{if(!e.includes(":")||r)return;const i=tt(t[e].accounts);i.includes(e)||(r=lt("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${e}\n Required: ${e}\n Approved: ${i.toString()}`))})),a.forEach((e=>{r||(ye(i[e].methods,o[e].methods)?ye(i[e].events,o[e].events)||(r=lt("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${e}`)):r=lt("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${e}`))})),r}function Bt(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function Ut(e,t){return ft(e,!1)&&e<=t.max&&e>=t.min}function Ft(){const e=pe();return new Promise((t=>{switch(e){case le.browser:t(function(){var e;return he()&&(null===(e=navigator)||void 0===e?void 0:e.onLine)}());break;case le.reactNative:t(async function(){if(de()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo){const e=await(null==n.g?void 0:n.g.NetInfo.fetch());return null===e||void 0===e?void 0:e.isConnected}return!0}());break;case le.node:default:t(!0)}}))}function zt(e){switch(pe()){case le.browser:!function(e){!de()&&he()&&(window.addEventListener("online",(()=>e(!0))),window.addEventListener("offline",(()=>e(!1))))}(e);break;case le.reactNative:!function(e){var t;de()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo&&(null===(t=n.g)||void 0===t||t.NetInfo.addEventListener((t=>e(null===t||void 0===t?void 0:t.isConnected))))}(e);case le.node:}}const Wt={};class Zt{static get(e){return Wt[e]}static set(e,t){Wt[e]=t}static delete(e){delete Wt[e]}}},2882:(e,t,n)=>{"use strict";const r=n(436),i=n(2138),o=n(6356),a=n(5169),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function h(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"===typeof n&&n.includes(e.arrayFormatSeparator),o="string"===typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const i of Object.keys(r)){const e=r[i];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=f(e[n],t);else r[i]=f(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const a of Object.keys(e))n(a)||(i[a]=e[a]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=h(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let l=t.stringify(a,n);l&&(l=`?${l}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${l}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},5530:(e,t)=>{"use strict";function n(e){let t;return"undefined"!==typeof window&&"undefined"!==typeof window[e]&&(t=window[e]),t}function r(e){const t=n(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=n,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},9819:(e,t,n)=>{"use strict";t.D=void 0;const r=n(5530);t.D=function(){let e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(o){return null}function n(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=e.getElementsByTagName("meta");for(let e=0;e<i.length;e++){const t=i[e],r=["itemprop","property","name"].map((e=>t.getAttribute(e))).filter((e=>!!e&&n.includes(e)));if(r.length&&r){const e=t.getAttribute("content");if(e)return e}}return""}const i=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e<n.length;e++){const i=n[e],o=i.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop();n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:i}}},7254:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(l(e,s,s+a>c?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6303:(e,t,n)=>{"use strict";const r=n(7254),i=n(7881),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Y(e.length)?s(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function h(e){const t=e.length<0?0:0|f(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(i)return r?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(c(e,o+r)!==c(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Y(r))return a;e[n+a]=r}return a}function x(e,t,n,r){return G(V(t,e.length-n),e,n,r)}function C(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return G(q(t),e,n,r)}function S(e,t,n,r){return G(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}t.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||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."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?_(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let l=0;l<s;++l)if(c[l]!==u[l]){o=c[l],a=u[l];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function A(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function R(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=Q[e[o]];return i}function T(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function $(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=X((function(e){return $(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=X((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=X((function(e){return $(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=X((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const B={};function U(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function F(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function z(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Z(t,e.length-(n+1))}(r,i,o)}function W(e,t){if("number"!==typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function Z(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=F(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!==e}const Q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function X(e){return"undefined"===typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},3638:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var x="$isDayjsObject",C=function(e){return e instanceof _||!(!e||!e[x])},E=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},S=function(e,t){if(C(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},k=y;k.l=E,k.i=C,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!k.u(t)||t,u=k.p(e),p=function(e,t){var i=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},f=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case h:return f(y+"Hours",0);case a:return f(y+"Minutes",1);case o:return f(y+"Seconds",2);case i:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=k.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(r,u){var h,p=this;r=Number(r);var f=k.p(u),m=function(e){var t=S(p);return k.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===s)return m(1);if(f===l)return m(7);var g=(h={},h[o]=t,h[a]=n,h[i]=e,h)[f]||1,v=this.$d.getTime()+r*g;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},h=function(e){return k.s(o%12||12,e,"0")},f=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return k.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(o,a,!0);case"A":return f(o,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,p){var f,m=this,g=k.p(h),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return k.m(m,v)};switch(g){case d:f=w()/12;break;case c:f=w();break;case u:f=w()/3;break;case l:f=(b-y)/6048e5;break;case s:f=(b-y)/864e5;break;case a:f=b/n;break;case o:f=b/t;break;case i:f=b/e;break;default:f=b}return p?f:k.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),P=_.prototype;return S.prototype=P,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",h]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,_,S),e.$i=!0),S},S.locale=E,S.isDayjs=C,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},5279:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,o,a,s){for(var l,c,u,d=o.$locale().relativeTime||i,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,f=0;f<p;f+=1){var m=h[f];m.d&&(l=a?n(t).diff(o,m.d,!0):o.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,g<=m.r||!m.r){g<=1&&f>0&&(m=h[f-1]);var v=d[m.l];s&&(g=s(""+g)),c="string"==typeof v?v.replace("%d",g):v(g,r,m.l,u);break}}if(r)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}}()},3101:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},2138:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var n={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},i=r.exec(e);i;){try{n[i[0]]=decodeURIComponent(i[0])}catch(t){var a=o(i[0]);a!==i[0]&&(n[i[0]]=a)}i=r.exec(e)}n["%C2"]="\ufffd";for(var s=Object.keys(n),l=0;l<s.length;l++){var c=s[l];e=e.replace(new RegExp(c,"g"),n[c])}return e}(e)}}},7133:e=>{"use strict";var t={single_source_shortest_paths:function(e,n,r){var i={},o={};o[n]=0;var a,s,l,c,u,d,h,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=o[l],("undefined"===typeof o[l]||h>d)&&(o[l]=d,p.push(l,d),i[l]=s));if("undefined"!==typeof r&&"undefined"===typeof o[r]){var f=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},5361:e=>{"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319&&n>r+1){var o=e.charCodeAt(r+1);o>=56320&&o<=57343&&(i=1024*(i-55296)+o-56320+65536,r+=1)}i<128?t.push(i):i<2048?(t.push(i>>6|192),t.push(63&i|128)):i<55296||i>=57344&&i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i>=65536&&i<=1114111?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},1060:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},5169:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},6213:(e,t,n)=>{"use strict";var r=n(4582),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=h(n,v);try{c(t,v,y)}catch(b){}}}}return t}},4593:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function C(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||x(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===p||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},4582:(e,t,n)=>{"use strict";e.exports=n(4593)},7881:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*m}},1839:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},3789:(e,t,n)=>{const r=n(8417),i=n(5094),o=n(9518),a=n(3667);function s(e,t,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=o=void 0):2!==l||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,a){try{const a=i.create(n,o);r(e(a,t,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=t,t=o=void 0):3===l&&(t.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{const r=i.create(n,o);a(null,e(r,t,o))}catch(u){a(u)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},8417:e=>{e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},34:(e,t,n)=>{const r=n(8007).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let r=1;r<t-1;r++)o[r]=o[r-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),i=r.length;for(let t=0;t<i;t++)for(let e=0;e<i;e++)0===t&&0===e||0===t&&e===i-1||t===i-1&&0===e||n.push([r[t],r[e]]);return n}},5237:(e,t,n)=>{const r=n(6552),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},1938:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1===(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},2179:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},8400:(e,t,n)=>{const r=n(5361),i=n(6552);function o(e){this.mode=i.BYTE,"string"===typeof e&&(e=r(e)),this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},8276:(e,t,n)=>{const r=n(9752),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},9752:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},5161:(e,t,n)=>{const r=n(8007).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},9132:(e,t,n)=>{const r=n(8007),i=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let o=n<<10;for(;r.getBCHDigit(o)-i>=0;)o^=1335<<r.getBCHDigit(o)-i;return 21522^(n<<10|o)}},238:(e,t)=>{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},9943:(e,t,n)=>{const r=n(6552),i=n(8007);function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},3739:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,r=3,i=40,o=10;function a(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let r=0,i=0,o=0,a=null,s=null;for(let l=0;l<t;l++){i=o=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===a?i++:(i>=5&&(r+=n+(i-5)),a=t,i=1),t=e.get(c,l),t===s?o++:(o>=5&&(r+=n+(o-5)),s=t,o=1)}i>=5&&(r+=n+(i-5)),o>=5&&(r+=n+(o-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){const t=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);4!==t&&0!==t||n++}return n*r},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let i=0;i<t;i++){r=o=0;for(let a=0;a<t;a++)r=r<<1&2047|e.get(i,a),a>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(a,i),a>=10&&(1488===o||93===o)&&n++}return n*i},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*o},t.applyMask=function(e,t){const n=t.size;for(let r=0;r<n;r++)for(let i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,a(e,i,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let i=0,o=1/0;for(let a=0;a<r;a++){n(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<o&&(o=r,i=a)}return i}},6552:(e,t,n)=>{const r=n(7166),i=n(6804);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},5029:(e,t,n)=>{const r=n(6552);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=i},585:(e,t,n)=>{const r=n(238);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)n[i+o]^=r.mul(e[i],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let i=0;for(;i<n.length&&0===n[i];)i++;n=n.slice(i)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let i=0;i<e;i++)n=t.mul(n,new Uint8Array([1,r.exp(i)]));return n}},5094:(e,t,n)=>{const r=n(8007),i=n(9752),o=n(1938),a=n(2179),s=n(34),l=n(5161),c=n(3739),u=n(8276),d=n(5493),h=n(8444),p=n(9132),f=n(6552),m=n(1372);function g(e,t,n){const r=e.size,i=p.getEncodedBits(t,n);let o,a;for(o=0;o<15;o++)a=1===(i>>o&1),o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(r-15+o,8,a,!0),o<8?e.set(8,r-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(r-8,8,1,!0)}function v(e,t,n){const i=new o;n.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(i)}));const a=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const s=(a-i.getLengthInBits())/8;for(let r=0;r<s;r++)i.put(r%2?17:236,8);return function(e,t,n){const i=r.getSymbolTotalCodewords(t),o=u.getTotalCodewordsCount(t,n),a=i-o,s=u.getBlocksCount(t,n),l=i%s,c=s-l,h=Math.floor(i/s),p=Math.floor(a/s),f=p+1,m=h-p,g=new d(m);let v=0;const y=new Array(s),b=new Array(s);let w=0;const x=new Uint8Array(e.buffer);for(let r=0;r<s;r++){const e=r<c?p:f;y[r]=x.slice(v,v+e),b[r]=g.encode(y[r]),v+=e,w=Math.max(w,e)}const C=new Uint8Array(i);let E,S,k=0;for(E=0;E<w;E++)for(S=0;S<s;S++)E<y[S].length&&(C[k++]=y[S][E]);for(E=0;E<m;E++)for(S=0;S<s;S++)C[k++]=b[S][E];return C}(i,e,t)}function y(e,t,n,i){let o;if(Array.isArray(e))o=m.fromArray(e);else{if("string"!==typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=h.getBestVersionForData(t,n)}o=m.fromString(e,r||40)}}const u=h.getBestVersionForData(o,n);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const d=v(t,n,o),p=r.getSymbolSize(t),f=new a(p);return function(e,t){const n=e.size,r=l.getPositions(t);for(let i=0;i<r.length;i++){const t=r[i][0],o=r[i][1];for(let r=-1;r<=7;r++)if(!(t+r<=-1||n<=t+r))for(let i=-1;i<=7;i++)o+i<=-1||n<=o+i||(r>=0&&r<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===r||6===r)||r>=2&&r<=4&&i>=2&&i<=4?e.set(t+r,o+i,!0,!0):e.set(t+r,o+i,!1,!0))}}(f,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2===0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(f),function(e,t){const n=s.getPositions(t);for(let r=0;r<n.length;r++){const t=n[r][0],i=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(t+n,i+r,!0,!0):e.set(t+n,i+r,!1,!0)}}(f,t),g(f,n,0),t>=7&&function(e,t){const n=e.size,r=h.getEncodedBits(t);let i,o,a;for(let s=0;s<18;s++)i=Math.floor(s/3),o=s%3+n-8-3,a=1===(r>>s&1),e.set(i,o,a,!0),e.set(o,i,a,!0)}(f,t),function(e,t){const n=e.size;let r=-1,i=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;a<t.length&&(r=1===(t[a]>>>o&1)),e.set(i,s-n,r),o--,-1===o&&(a++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}(f,d),isNaN(i)&&(i=c.getBestMask(f,g.bind(null,f,n))),c.applyMask(i,f),g(f,n,i),{modules:f,version:t,errorCorrectionLevel:n,maskPattern:i,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,o,a=i.M;return"undefined"!==typeof t&&(a=i.from(t.errorCorrectionLevel,i.M),n=h.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,a,o)}},5493:(e,t,n)=>{const r=n(585);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},6804:(e,t)=>{const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+r+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},1372:(e,t,n)=>{const r=n(6552),i=n(5029),o=n(5237),a=n(8400),s=n(9943),l=n(6804),c=n(8007),u=n(7133);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const r=[];let i;for(;null!==(i=e.exec(n));)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function p(e){const t=h(l.NUMERIC,r.NUMERIC,e),n=h(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let i,o;c.isKanjiModeEnabled()?(i=h(l.BYTE,r.BYTE,e),o=h(l.KANJI,r.KANJI,e)):(i=h(l.BYTE_KANJI,r.BYTE,e),o=[]);return t.concat(n,i,o).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function f(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new i(e);case r.ALPHANUMERIC:return new o(e);case r.KANJI:return new s(e);case r.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"===typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const i=function(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];switch(i.mode){case r.NUMERIC:t.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:t.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:t.push([i,{data:i.data,mode:r.BYTE,length:d(i.data)}]);break;case r.BYTE:t.push([{data:i.data,mode:r.BYTE,length:d(i.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),o=function(e,t){const n={},i={start:{}};let o=["start"];for(let a=0;a<e.length;a++){const s=e[a],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+a+e;l.push(u),n[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){const a=o[e];n[a]&&n[a].node.mode===c.mode?(i[a][u]=f(n[a].lastCount+c.length,c.mode)-f(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),i[a][u]=f(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}o=l}for(let r=0;r<o.length;r++)i[o[r]].end=0;return{map:i,table:n}}(i,n),a=u.find_path(o.map,"start","end"),s=[];for(let t=1;t<a.length-1;t++)s.push(o.table[a[t]].node);return t.fromArray(function(e){return e.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},8007:(e,t)=>{let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},7166:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},8444:(e,t,n)=>{const r=n(8007),i=n(8276),o=n(9752),a=n(6552),s=n(7166),l=r.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach((function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=8*(r.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(n===a.MIXED)return o;const l=o-c(n,e);switch(n){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const i=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},9518:(e,t,n)=>{const r=n(3026);t.render=function(e,t,n){let i=n,o=t;"undefined"!==typeof i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=r.getOptions(i);const a=r.getImageWidth(e.modules.size,i),s=o.getContext("2d"),l=s.createImageData(a,a);return r.qrToImageData(l.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,n,r){let i=r;"undefined"!==typeof i||n&&n.getContext||(i=n,n=void 0),i||(i={});const o=t.render(e,n,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},3667:(e,t,n)=>{const r=n(3026);function i(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){let r=e+t;return"undefined"!==typeof n&&(r+=" "+n),r}t.render=function(e,t,n){const a=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,n){let r="",i=0,a=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=a?o("M",c+n,.5+u+n):o("m",i,0),i=0,a=!1),c+1<t&&e[l+1]||(r+=o("h",s),s=0)):i++}return r}(l,s,a.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,p),p}},3026:(e,t)=>{function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;if(t>=l&&n>=l&&t<s-l&&n<s-l){d=c[o[Math.floor((t-l)/a)*i+Math.floor((n-l)/a)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},8459:(e,t,n)=>{"use strict";var r=n(1233),i=n(1674);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(f,e)||!d.call(p,e)&&(h.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),C=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var $=Symbol.iterator;function M(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=$&&e[$]||e["@@iterator"])?e:null}var j,L=Object.assign;function D(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function F(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case C:return"Portal";case k:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return z(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===S?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function Z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Q(e,t);var n=Z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,Z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Z(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Z(n)}}function oe(e,t){var n=Z(t.value),r=Z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){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 we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Ee=null,Se=null;function ke(e){if(e=bi(e)){if("function"!==typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),Ce(e.stateNode,e.type,t))}}function _e(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Pe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ae(e,t){return e(t)}function Re(){}var Oe=!1;function Te(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Ae(e,t,n)}finally{Oe=!1,(null!==Ee||null!==Se)&&(Re(),Pe())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(u)try{var $e={};Object.defineProperty($e,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",$e,$e),window.removeEventListener("test",$e,$e)}catch(ue){Ne=!1}function Me(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var je=!1,Le=null,De=!1,Be=null,Ue={onError:function(e){je=!0,Le=e}};function Fe(e,t,n,r,i,o,a,s,l){je=!1,Le=null,Me.apply(Ue,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(ze(e)!==e)throw Error(o(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ze(i),e;if(a===r)return Ze(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Qe=i.unstable_now,Xe=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,Ct,Et,St,kt,_t=!1,Pt=[],At=null,Rt=null,Ot=null,Tt=new Map,It=new Map,Nt=[],$t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function jt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void kt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Dt(e)&&n.delete(t)}function Ut(){_t=!1,null!==At&&Dt(At)&&(At=null),null!==Rt&&Dt(Rt)&&(Rt=null),null!==Ot&&Dt(Ot)&&(Ot=null),Tt.forEach(Bt),It.forEach(Bt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function zt(e){function t(t){return Ft(t,e)}if(0<Pt.length){Ft(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ft(At,e),null!==Rt&&Ft(Rt,e),null!==Ot&&Ft(Ot,e),Tt.forEach(t),It.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Nt.shift()}var Wt=w.ReactCurrentBatchConfig,Zt=!0;function Ht(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function Vt(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function qt(e,t,n,r){if(Zt){var i=Kt(e,t,n,r);if(null===i)Zr(e,t,r,Gt,n),Mt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return At=jt(At,e,t,n,r,i),!0;case"dragenter":return Rt=jt(Rt,e,t,n,r,i),!0;case"mouseover":return Ot=jt(Ot,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Tt.set(o,jt(Tt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,It.set(o,jt(It.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<$t.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Kt(e,t,n,r))&&Zr(e,t,r,Gt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Zr(e,t,r,null,n)}}var Gt=null;function Kt(e,t,n,r){if(Gt=null,null!==(e=yi(e=xe(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),hn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function kn(){return Sn}var _n=L({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(_n),An=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),On=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Tn),Nn=[9,13,27,32],$n=u&&"CompositionEvent"in window,Mn=null;u&&"documentMode"in document&&(Mn=document.documentMode);var jn=u&&"TextEvent"in window&&!Mn,Ln=u&&(!$n||Mn&&8<Mn&&11>=Mn),Dn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){_e(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Gn(e){Dr(e,0)}function Kn(e){if(q(wi(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Qn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),qn=Vn=null)}function nr(e){if("value"===e.propertyName&&Kn(qn)){var t=[];Hn(t,qn,e,xe(e)),Te(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function or(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Vr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Er={},Sr={};function kr(e){if(Er[e])return Er[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var _r=kr("animationend"),Pr=kr("animationiteration"),Ar=kr("animationstart"),Rr=kr("transitionend"),Or=new Map,Tr="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 Ir(e,t){Or.set(e,t),l(t,[e])}for(var Nr=0;Nr<Tr.length;Nr++){var $r=Tr[Nr];Ir($r.toLowerCase(),"on"+($r[0].toUpperCase()+$r.slice(1)))}Ir(_r,"onAnimationEnd"),Ir(Pr,"onAnimationIteration"),Ir(Ar,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Rr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(Fe.apply(this,arguments),je){if(!je)throw Error(o(198));var u=Le;je=!1,Le=null,De||(De=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}}}if(De)throw e=Be,De=!1,Be=null,e}function Br(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Fr]){e[Fr]=!0,a.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Ur("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Yt(t)){case 1:var i=Ht;break;case 4:i=Vt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Zr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Te((function(){var r=o,i=xe(n),a=[];e:{var s=Or.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case _r:case Pr:case Ar:l=vn;break;case Rr:l=On;break;case"scroll":l=hn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var p,f=r;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&(null!=(m=Ie(f,h))&&u.push(Hr(f,m,p)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(d=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:wi(l),p=null==c?s:wi(c),(s=new u(m,f+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,yi(i)===r&&((u=new u(h,f+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,f=0,p=u=l;p;p=qr(p))f++;for(p=0,m=h;m;m=qr(m))p++;for(;0<f-p;)u=qr(u),f--;for(;0<p-f;)h=qr(h),p--;for(;f--;){if(u===h||null!==h&&u===h.alternate)break e;u=qr(u),h=qr(h)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if(Zn(s))if(Qn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Hn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wi(r):window,e){case"focusin":(Zn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if($n)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=en()):(Xt="value"in(Qt=i)?Qt.value:Qt.textContent,zn=!0)),0<(v=Vr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Fn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!$n&&Un(e,t)?(e=en(),Jt=Xt=Qt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Dr(a,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ie(e,n))&&r.unshift(Hr(e,o,i)),null!=(o=Ie(e,t))&&r.push(Hr(e,o,i))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ie(n,o))&&a.unshift(Hr(n,l,s)):i||null!=(l=Ie(n,o))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);zt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,pi="__reactProps$"+di,fi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[hi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[hi]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var Ci=[],Ei=-1;function Si(e){return{current:e}}function ki(e){0>Ei||(e.current=Ci[Ei],Ci[Ei]=null,Ei--)}function _i(e,t){Ei++,Ci[Ei]=e.current,e.current=t}var Pi={},Ai=Si(Pi),Ri=Si(!1),Oi=Pi;function Ti(e,t){var n=e.type.contextTypes;if(!n)return Pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ni(){ki(Ri),ki(Ai)}function $i(e,t,n){if(Ai.current!==Pi)throw Error(o(168));_i(Ai,t),_i(Ri,n)}function Mi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,W(e)||"Unknown",i));return L({},n,r)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,Oi=Ai.current,_i(Ai,e),_i(Ri,Ri.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Mi(e,t,Oi),r.__reactInternalMemoizedMergedChildContext=e,ki(Ri),ki(Ai),_i(Ai,e)):ki(Ri),_i(Ri,n)}var Di=null,Bi=!1,Ui=!1;function Fi(e){null===Di?Di=[e]:Di.push(e)}function zi(){if(!Ui&&null!==Di){Ui=!0;var e=0,t=bt;try{var n=Di;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Di=null,Bi=!1}catch(i){throw null!==Di&&(Di=Di.slice(e+1)),qe(Je,zi),i}finally{bt=t,Ui=!1}}return null}var Wi=[],Zi=0,Hi=null,Vi=0,qi=[],Gi=0,Ki=null,Yi=1,Qi="";function Xi(e,t){Wi[Zi++]=Vi,Wi[Zi++]=Hi,Hi=e,Vi=t}function Ji(e,t,n){qi[Gi++]=Yi,qi[Gi++]=Qi,qi[Gi++]=Ki,Ki=e;var r=Yi;e=Qi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Yi=1<<32-at(t)+i|n<<i|r,Qi=o+e}else Yi=1<<o|n<<i|r,Qi=e}function eo(e){null!==e.return&&(Xi(e,1),Ji(e,1,0))}function to(e){for(;e===Hi;)Hi=Wi[--Zi],Wi[Zi]=null,Vi=Wi[--Zi],Wi[Zi]=null;for(;e===Ki;)Ki=qi[--Gi],qi[Gi]=null,Qi=qi[--Gi],qi[Gi]=null,Yi=qi[--Gi],qi[Gi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Yi,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function fo(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function vo(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Si(null),bo=null,wo=null,xo=null;function Co(){xo=wo=bo=null}function Eo(e){var t=yo.current;ki(yo),e._currentValue=t}function So(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ko(e,t){bo=e,xo=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function _o(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Po=null;function Ao(e){null===Po?Po=[e]:Po.push(e)}function Ro(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ao(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oo(e,r)}function Oo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var To=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function No(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $o(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Rl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oo(e,n)}return null===(i=r.interleaved)?(t.next=t,Ao(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oo(e,n)}function jo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Do(e,t,n,r){var i=e.updateQueue;To=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var h=s.lane,p=s.eventTime;if((r&h)===h){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(h=t,p=n,m.tag){case 1:if("function"===typeof(f=m.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(h="function"===typeof(f=m.payload)?f.call(p,d,h):f)||void 0===h)break e;d=L({},d,h);break e;case 2:To=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ll|=a,e.lanes=a,e.memoizedState=d}}function Bo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Uo=(new r.Component).refs;function Fo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var zo={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=$o(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Mo(e,o,i))&&(rc(t,e,i,r),jo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=$o(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Mo(e,o,i))&&(rc(t,e,i,r),jo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=$o(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Mo(e,i,r))&&(rc(t,e,r,n),jo(t,e,r))}};function Wo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function Zo(e,t,n){var r=!1,i=Pi,o=t.contextType;return"object"===typeof o&&null!==o?o=_o(o):(i=Ii(t)?Oi:Ai.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ti(e,i):Pi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ho(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zo.enqueueReplaceState(t,t.state,null)}function Vo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Uo,Io(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=_o(o):(o=Ii(t)?Oi:Ai.current,i.context=Ti(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(Fo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&zo.enqueueReplaceState(i,i.state,null),Do(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function qo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Uo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Go(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ko(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=$c(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Dc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===I&&Ko(o)===t.type)?((r=i(t,n.props)).ref=qo(e,t,n),r.return=e,r):((r=Mc(n.type,n.key,n.props,null,e.mode,r)).ref=qo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=jc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Dc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Mc(t.type,t.key,t.props,null,e.mode,n)).ref=qo(e,null,t),n.return=e,n;case C:return(t=Bc(t,e.mode,n)).return=e,t;case I:return h(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=jc(t,e.mode,n,null)).return=e,t;Go(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?c(e,t,n,r):null;case C:return n.key===i?u(e,t,n,r):null;case I:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||M(n))return null!==i?null:d(e,t,n,r,null);Go(e,n)}return null}function f(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return f(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,i,null);Go(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),io&&Xi(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Xi(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Xi(i,m),c}function g(i,s,l,c){var u=M(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Xi(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Xi(i,g),u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=f(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Xi(i,g),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===I&&Ko(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=qo(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((o=jc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Mc(a.type,a.key,a.props,null,r.mode,l)).ref=qo(r,o,a),l.return=r,r=l)}return s(r);case C:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Bc(a,r.mode,l)).return=r,r=o}return s(r);case I:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(M(a))return g(r,o,a,l);Go(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Dc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Qo=Yo(!0),Xo=Yo(!1),Jo={},ea=Si(Jo),ta=Si(Jo),na=Si(Jo);function ra(e){if(e===Jo)throw Error(o(174));return e}function ia(e,t){switch(_i(na,t),_i(ta,e),_i(ea,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ki(ea),_i(ea,t)}function oa(){ki(ea),ki(ta),ki(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(_i(ta,e),_i(ea,n))}function sa(e){ta.current===e&&(ki(ea),ki(ta))}var la=Si(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var ha=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,fa=0,ma=null,ga=null,va=null,ya=!1,ba=!1,wa=0,xa=0;function Ca(){throw Error(o(321))}function Ea(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Sa(e,t,n,r,i,a){if(fa=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ha.current=null===e||null===e.memoizedState?ss:ls,e=n(r,i),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(o(301));a+=1,va=ga=null,t.updateQueue=null,ha.current=cs,e=n(r,i)}while(ba)}if(ha.current=as,t=null!==ga&&null!==ga.next,fa=0,va=ga=ma=null,ya=!1,t)throw Error(o(300));return e}function ka(){var e=0!==wa;return wa=0,e}function _a(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function Pa(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Aa(e,t){return"function"===typeof t?t(e):t}function Ra(e){var t=Pa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((fa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=r):c=c.next=h,ma.lanes|=d,Ll|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,ma.lanes|=a,Ll|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Oa(e){var t=Pa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ta(){}function Ia(e,t){var n=ma,r=Pa(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,ws=!0),r=r.queue,Za(Ma.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,Ba(9,$a.bind(null,n,r,i,t),void 0,null),null===Ol)throw Error(o(349));0!==(30&fa)||Na(n,t,i)}return i}function Na(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function $a(e,t,n,r){t.value=n,t.getSnapshot=r,ja(t)&&La(e)}function Ma(e,t,n){return n((function(){ja(t)&&La(e)}))}function ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function La(e){var t=Oo(e,1);null!==t&&rc(t,e,1,-1)}function Da(e){var t=_a();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function Ba(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ua(){return Pa().memoizedState}function Fa(e,t,n,r){var i=_a();ma.flags|=e,i.memoizedState=Ba(1|t,n,void 0,void 0===r?null:r)}function za(e,t,n,r){var i=Pa();r=void 0===r?null:r;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==r&&Ea(r,a.deps))return void(i.memoizedState=Ba(t,n,o,r))}ma.flags|=e,i.memoizedState=Ba(1|t,n,o,r)}function Wa(e,t){return Fa(8390656,8,e,t)}function Za(e,t){return za(2048,8,e,t)}function Ha(e,t){return za(4,2,e,t)}function Va(e,t){return za(4,4,e,t)}function qa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ga(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,za(4,4,qa.bind(null,t,e),n)}function Ka(){}function Ya(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ea(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xa(e,t,n){return 0===(21&fa)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),ma.lanes|=n,Ll|=n,e.baseState=!0),t)}function Ja(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function es(){return Pa().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))is(t,n);else if(null!==(n=Ro(e,t,n,r))){rc(n,e,r,tc()),os(n,t,r)}}function ns(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Ao(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Ro(e,t,i,r))&&(rc(n,e,r,i=tc()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:_o,useCallback:Ca,useContext:Ca,useEffect:Ca,useImperativeHandle:Ca,useInsertionEffect:Ca,useLayoutEffect:Ca,useMemo:Ca,useReducer:Ca,useRef:Ca,useState:Ca,useDebugValue:Ca,useDeferredValue:Ca,useTransition:Ca,useMutableSource:Ca,useSyncExternalStore:Ca,useId:Ca,unstable_isNewReconciler:!1},ss={readContext:_o,useCallback:function(e,t){return _a().memoizedState=[e,void 0===t?null:t],e},useContext:_o,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Fa(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fa(4,2,e,t)},useMemo:function(e,t){var n=_a();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_a();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_a().memoizedState=e},useState:Da,useDebugValue:Ka,useDeferredValue:function(e){return _a().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Ja.bind(null,e[1]),_a().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,i=_a();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ol)throw Error(o(349));0!==(30&fa)||Na(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Wa(Ma.bind(null,r,a,e),[e]),r.flags|=2048,Ba(9,$a.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=_a(),t=Ol.identifierPrefix;if(io){var n=Qi;t=":"+t+"R"+(n=(Yi&~(1<<32-at(Yi)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:_o,useCallback:Ya,useContext:_o,useEffect:Za,useImperativeHandle:Ga,useInsertionEffect:Ha,useLayoutEffect:Va,useMemo:Qa,useReducer:Ra,useRef:Ua,useState:function(){return Ra(Aa)},useDebugValue:Ka,useDeferredValue:function(e){return Xa(Pa(),ga.memoizedState,e)},useTransition:function(){return[Ra(Aa)[0],Pa().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1},cs={readContext:_o,useCallback:Ya,useContext:_o,useEffect:Za,useImperativeHandle:Ga,useInsertionEffect:Ha,useLayoutEffect:Va,useMemo:Qa,useReducer:Oa,useRef:Ua,useState:function(){return Oa(Aa)},useDebugValue:Ka,useDeferredValue:function(e){var t=Pa();return null===ga?t.memoizedState=e:Xa(t,ga.memoizedState,e)},useTransition:function(){return[Oa(Aa)[0],Pa().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=$o(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),hs(0,t)},n}function ms(e,t,n){(n=$o(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){hs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){hs(0,t),"function"!==typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=$o(-1,1)).tag=2,Mo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=w.ReactCurrentOwner,ws=!1;function xs(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Qo(t,e.child,n,r)}function Cs(e,t,n,r,i){n=n.render;var o=t.ref;return ko(t,i),r=Sa(e,t,n,r,o,i),n=ka(),null===e||ws?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Es(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Nc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ss(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=$c(o,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(ws=!0)}}return Ps(e,t,n,r,i)}function ks(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_i($l,Nl),Nl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_i($l,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,_i($l,Nl),Nl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_i($l,Nl),Nl|=r;return xs(e,t,i,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,i){var o=Ii(n)?Oi:Ai.current;return o=Ti(t,o),ko(t,i),n=Sa(e,t,n,r,o,i),r=ka(),null===e||ws?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function As(e,t,n,r,i){if(Ii(n)){var o=!0;ji(t)}else o=!1;if(ko(t,i),null===t.stateNode)Zs(e,t),Zo(t,n,r),Vo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=_o(c):c=Ti(t,c=Ii(n)?Oi:Ai.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Ho(t,a,r,c),To=!1;var h=t.memoizedState;a.state=h,Do(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Ri.current||To?("function"===typeof u&&(Fo(t,n,u,r),l=t.memoizedState),(s=To||Wo(t,n,s,r,h,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,No(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:vo(t.type,s),a.props=c,d=t.pendingProps,h=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=_o(l):l=Ti(t,l=Ii(n)?Oi:Ai.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||h!==l)&&Ho(t,a,r,l),To=!1,h=t.memoizedState,a.state=h,Do(t,r,a,i);var f=t.memoizedState;s!==d||h!==f||Ri.current||To?("function"===typeof p&&(Fo(t,n,p,r),f=t.memoizedState),(c=To||Wo(t,n,c,r,h,f,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,o,i)}function Rs(e,t,n,r,i,o){_s(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Hs(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Qo(t,e.child,null,o),t.child=Qo(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Os(e){var t=e.stateNode;t.pendingContext?$i(0,t.pendingContext,t.pendingContext!==t.context):t.context&&$i(0,t.context,!1),ia(e,t.containerInfo)}function Ts(e,t,n,r,i){return fo(),mo(i),t.flags|=256,xs(e,t,n,r),t.child}var Is,Ns,$s,Ms,js={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,n){var r,i=t.pendingProps,a=la.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_i(la,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Lc(l,i,0,null),e=jc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=js,e):Bs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Us(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Lc({mode:"visible",children:r.children},i,0,null),(a=jc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Qo(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=js,a);if(0===(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Us(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),ws||l){if(null!==(r=Ol)){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Oo(e,i),rc(r,e,i,-1))}return gc(),Us(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(qi[Gi++]=Yi,qi[Gi++]=Qi,qi[Gi++]=Ki,Yi=e.id,Qi=e.overflow,Ki=t),t=Bs(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=$c(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=$c(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,i}return e=(s=e.child).sibling,i=$c(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Bs(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&mo(r),Qo(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),So(e.return,t,n)}function zs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ws(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,n,t);else if(19===e.tag)Fs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_i(la,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ca(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=$c(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$c(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Ii(t.type)&&Ni(),qs(t),null;case 3:return r=t.stateNode,oa(),ki(Ri),ki(Ai),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(sc(oo),oo=null))),Ns(e,t),qs(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)$s(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return qs(t),null}if(e=ra(ea.current),ho(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[hi]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Mr.length;i++)Br(Mr[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Y(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":ie(r,a),Br("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":V(r),J(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[pi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mr.length;i++)Br(Mr[i],e);i=r;break;case"source":Br("error",e),i=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),i=r;break;case"details":Br("toggle",e),i=r;break;case"input":Y(e,r),i=K(e,r),Br("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Br("invalid",e)}for(a in ye(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"===typeof u&&he(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":V(e),J(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Ms(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return qs(t),null;case 13:if(ki(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),fo(),t.flags|=98560,a=!1;else if(a=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hi]=t}else fo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),a=!1}else null!==oo&&(sc(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&la.current)?0===Ml&&(Ml=3):gc())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return oa(),Ns(e,t),null===e&&zr(t.stateNode.containerInfo),qs(t),null;case 10:return Eo(t.type._context),qs(t),null;case 19:if(ki(la),null===(a=t.memoizedState))return qs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Ml||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ca(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _i(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Wl&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return qs(t),null}else 2*Qe()-a.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=la.current,_i(la,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return hc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Nl)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ks(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&Ni(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),ki(Ri),ki(Ai),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(ki(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ki(la),null;case 4:return oa(),null;case 10:return Eo(t.type._context),null;case 22:case 23:return hc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},$s=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=K(e,i),r=K(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ms=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Qs=!1,Xs="function"===typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){kc(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){kc(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[pi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,hl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Qs||el(n,t);case 6:var r=dl,i=hl;dl=null,pl(e,t,n),hl=i,null!==(dl=r)&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),zt(e)):li(dl,n.stateNode));break;case 4:r=dl,i=hl,dl=n.stateNode.containerInfo,hl=!0,pl(e,t,n),dl=r,hl=i;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&tl(n,t,a),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Qs&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){kc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,pl(e,t,n),Qs=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Rc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,hl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,hl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));fl(a,s,i),dl=null,hl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){kc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&r){try{rl(3,e,e.return),il(3,e)}catch(g){kc(e,e.return,g)}try{rl(5,e,e.return)}catch(g){kc(e,e.return,g)}}break;case 1:gl(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(g){kc(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(i,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],h=c[s+1];"style"===d?ge(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):b(i,d,h,u)}switch(l){case"input":X(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?ne(i,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(g){kc(e,e.return,g)}}break;case 6:if(gl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){kc(e,e.return,g)}}break;case 3:if(gl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(g){kc(e,e.return,g)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(zl=Qe())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(u=Qs)||d,gl(t,e),Qs=u):gl(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(f=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){kc(r,n,g)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){Cl(h);continue}}null!==f?(f.return=p,Js=f):Cl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){kc(e,e.return,g)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){kc(e,e.return,g)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gl(t,e),yl(e),4&r&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),ul(e,ll(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;cl(e,ll(e),a);break;default:throw Error(o(161))}}catch(s){kc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Js=e,wl(e,t,n)}function wl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ys;var c=Qs;if(Ys=a,(Qs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?El(i):null!==l?(l.return=a,Js=l):El(i);for(;null!==o;)Js=o,wl(o,t,n),o=o.sibling;Js=i,Ys=s,Qs=c}xl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Js=o):xl(e)}}function xl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qs||il(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:vo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&zt(h)}}}break;default:throw Error(o(163))}Qs||512&t.flags&&ol(t)}catch(p){kc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function Cl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function El(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){kc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){kc(t,i,l)}}var o=t.return;try{ol(t)}catch(l){kc(t,o,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){kc(t,a,l)}}}catch(l){kc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Sl,kl=Math.ceil,_l=w.ReactCurrentDispatcher,Pl=w.ReactCurrentOwner,Al=w.ReactCurrentBatchConfig,Rl=0,Ol=null,Tl=null,Il=0,Nl=0,$l=Si(0),Ml=0,jl=null,Ll=0,Dl=0,Bl=0,Ul=null,Fl=null,zl=0,Wl=1/0,Zl=null,Hl=!1,Vl=null,ql=null,Gl=!1,Kl=null,Yl=0,Ql=0,Xl=null,Jl=-1,ec=0;function tc(){return 0!==(6&Rl)?Qe():-1!==Jl?Jl:Jl=Qe()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Rl)&&0!==Il?Il&-Il:null!==go.transition?(0===ec&&(ec=mt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Ql)throw Ql=0,Xl=null,Error(o(185));vt(e,n,r),0!==(2&Rl)&&e===Ol||(e===Ol&&(0===(2&Rl)&&(Dl|=n),4===Ml&&lc(e,Il)),ic(e,r),1===n&&0===Rl&&0===(1&t.mode)&&(Wl=Qe()+500,Bi&&zi()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ht(e,e===Ol?Il:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Bi=!0,Fi(e)}(cc.bind(null,e)):Fi(cc.bind(null,e)),ai((function(){0===(6&Rl)&&zi()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Oc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,ec=0,0!==(6&Rl))throw Error(o(327));var n=e.callbackNode;if(Ec()&&e.callbackNode!==n)return null;var r=ht(e,e===Ol?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vc(e,r);else{t=r;var i=Rl;Rl|=2;var a=mc();for(Ol===e&&Il===t||(Zl=null,Wl=Qe()+500,pc(e,t));;)try{bc();break}catch(l){fc(e,l)}Co(),_l.current=a,Rl=i,null!==Tl?t=0:(Ol=null,Il=0,t=Ml)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(r=i,t=ac(e,i))),1===t)throw n=jl,pc(e,0),lc(e,r),ic(e,Qe()),n;if(6===t)lc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=vc(e,r))&&(0!==(a=ft(e))&&(r=a,t=ac(e,a))),1===t))throw n=jl,pc(e,0),lc(e,r),ic(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Cc(e,Fl,Zl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=zl+500-Qe())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(Cc.bind(null,e,Fl,Zl),t);break}Cc(e,Fl,Zl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kl(r/1960))-r)){e.timeoutHandle=ri(Cc.bind(null,e,Fl,Zl),r);break}Cc(e,Fl,Zl);break;default:throw Error(o(329))}}}return ic(e,Qe()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Fl,Fl=n,null!==t&&sc(t)),e}function sc(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function lc(e,t){for(t&=~Bl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Rl))throw Error(o(327));Ec();var t=ht(e,0);if(0===(1&t))return ic(e,Qe()),null;var n=vc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=jl,pc(e,0),lc(e,t),ic(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cc(e,Fl,Zl),ic(e,Qe()),null}function uc(e,t){var n=Rl;Rl|=1;try{return e(t)}finally{0===(Rl=n)&&(Wl=Qe()+500,Bi&&zi())}}function dc(e){null!==Kl&&0===Kl.tag&&0===(6&Rl)&&Ec();var t=Rl;Rl|=1;var n=Al.transition,r=bt;try{if(Al.transition=null,bt=1,e)return e()}finally{bt=r,Al.transition=n,0===(6&(Rl=t))&&zi()}}function hc(){Nl=$l.current,ki($l)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ni();break;case 3:oa(),ki(Ri),ki(Ai),da();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:ki(la);break;case 10:Eo(r.type._context);break;case 22:case 23:hc()}n=n.return}if(Ol=e,Tl=e=$c(e.current,null),Il=Nl=t,Ml=0,jl=null,Bl=Dl=Ll=0,Fl=Ul=null,null!==Po){for(t=0;t<Po.length;t++)if(null!==(r=(n=Po[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Po=null}return e}function fc(e,t){for(;;){var n=Tl;try{if(Co(),ha.current=as,ya){for(var r=ma.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ya=!1}if(fa=0,va=ga=ma=null,ba=!1,wa=0,Pl.current=null,null===n||null===n.return){Ml=1,jl=t,Tl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,h=d.tag;if(0===(1&d.mode)&&(0===h||11===h||15===h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=vs(s);if(null!==f){f.flags&=-257,ys(f,s,l,0,t),1&f.mode&&gs(a,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){gs(a,u,t),gc();break e}c=Error(o(426))}else if(io&&1&l.mode){var v=vs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),ys(v,s,l,0,t),mo(us(c,l));break e}}a=c=us(c,l),4!==Ml&&(Ml=2),null===Ul?Ul=[a]:Ul.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,fs(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===ql||!ql.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}xc(n)}catch(w){t=w,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function mc(){var e=_l.current;return _l.current=as,null===e?as:e}function gc(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Ol||0===(268435455&Ll)&&0===(268435455&Dl)||lc(Ol,Il)}function vc(e,t){var n=Rl;Rl|=2;var r=mc();for(Ol===e&&Il===t||(Zl=null,pc(e,t));;)try{yc();break}catch(i){fc(e,i)}if(Co(),Rl=n,_l.current=r,null!==Tl)throw Error(o(261));return Ol=null,Il=0,Ml}function yc(){for(;null!==Tl;)wc(Tl)}function bc(){for(;null!==Tl&&!Ke();)wc(Tl)}function wc(e){var t=Sl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?xc(e):Tl=t,Pl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Gs(n,t,Nl)))return void(Tl=n)}else{if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Ml=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Ml&&(Ml=5)}function Cc(e,t,n){var r=bt,i=Al.transition;try{Al.transition=null,bt=1,function(e,t,n,r){do{Ec()}while(null!==Kl);if(0!==(6&Rl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Ol&&(Tl=Ol=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Gl||(Gl=!0,Oc(tt,(function(){return Ec(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var s=bt;bt=1;var l=Rl;Rl|=4,Pl.current=null,function(e,t){if(ei=Zt,pr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==i&&3!==h.nodeType||(l=s+i),h!==a||0!==r&&3!==h.nodeType||(c=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===r&&(c=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Zt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:vo(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(x){kc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=nl,nl=!1}(e,n),vl(n,e),fr(ti),Zt=!!ei,ti=ei=null,e.current=n,bl(n,e,i),Ye(),Rl=l,bt=s,Al.transition=a}else e.current=n;if(Gl&&(Gl=!1,Kl=e,Yl=i),a=e.pendingLanes,0===a&&(ql=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!==(1&Yl)&&0!==e.tag&&Ec(),a=e.pendingLanes,0!==(1&a)?e===Xl?Ql++:(Ql=0,Xl=e):Ql=0,zi()}(e,t,n,r)}finally{Al.transition=i,bt=r}return null}function Ec(){if(null!==Kl){var e=wt(Yl),t=Al.transition,n=bt;try{if(Al.transition=null,bt=16>e?16:e,null===Kl)var r=!1;else{if(e=Kl,Kl=null,Yl=0,0!==(6&Rl))throw Error(o(331));var i=Rl;for(Rl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var p=(d=Js).sibling,f=d.return;if(al(d),d===u){Js=null;break}if(null!==p){p.return=f,Js=p;break}Js=f}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(C){kc(l,l.return,C)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Rl=i,zi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(C){}r=!0}return r}finally{bt=n,Al.transition=t}}return!1}function Sc(e,t,n){e=Mo(e,t=fs(0,t=us(n,t),1),1),t=tc(),null!==e&&(vt(e,1,t),ic(e,t))}function kc(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Mo(t,e=ms(t,e=us(n,e),1),1),e=tc(),null!==t&&(vt(t,1,e),ic(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Ol===e&&(Il&n)===n&&(4===Ml||3===Ml&&(130023424&Il)===Il&&500>Qe()-zl?pc(e,0):Bl|=n),ic(e,t)}function Pc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Oo(e,t))&&(vt(e,t,n),ic(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pc(e,n)}function Rc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Pc(e,n)}function Oc(e,t){return qe(e,t)}function Tc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Tc(e,t,n,r)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $c(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Nc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return jc(n.children,i,a,t);case S:s=8,i|=8;break;case k:return(e=Ic(12,n,t,2|i)).elementType=k,e.lanes=a,e;case R:return(e=Ic(13,n,t,i)).elementType=R,e.lanes=a,e;case O:return(e=Ic(19,n,t,i)).elementType=O,e.lanes=a,e;case N:return Lc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case P:s=9;break e;case A:s=11;break e;case T:s=14;break e;case I:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Lc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,i,o,a,s,l){return e=new Uc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(o),e}function zc(e){if(!e)return Pi;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Mi(e,n,t)}return t}function Wc(e,t,n,r,i,o,a,s,l){return(e=Fc(n,r,!0,e,0,o,0,s,l)).context=zc(null),n=e.current,(o=$o(r=tc(),i=nc(n))).callback=void 0!==t&&null!==t?t:null,Mo(n,o,i),e.current.lanes=i,vt(e,i,r),ic(e,r),e}function Zc(e,t,n,r){var i=t.current,o=tc(),a=nc(i);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=$o(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Mo(i,t,a))&&(rc(e,i,a,o),jo(e,i,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ri.current)ws=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Os(t),fo();break;case 5:aa(t);break;case 1:Ii(t.type)&&ji(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_i(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_i(la,1&la.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ds(e,t,n):(_i(la,1&la.current),null!==(e=Hs(e,t,n))?e.sibling:null);_i(la,1&la.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),_i(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Hs(e,t,n)}(e,t,n);ws=0!==(131072&e.flags)}else ws=!1,io&&0!==(1048576&t.flags)&&Ji(t,Vi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zs(e,t),e=t.pendingProps;var i=Ti(t,Ai.current);ko(t,n),i=Sa(null,t,r,e,i,n);var a=ka();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(a=!0,ji(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Io(t),i.updater=zo,t.stateNode=i,i._reactInternals=t,Vo(t,r,e,n),t=Rs(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Nc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===A)return 11;if(e===T)return 14}return 2}(r),e=vo(r,e),i){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=Cs(null,t,r,e,n);break e;case 14:t=Es(null,t,r,vo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ps(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 1:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 3:e:{if(Os(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,No(e,t),Do(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ts(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fo(),r===i){t=Hs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),_s(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ds(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qo(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,_i(yo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ri.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=$o(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),So(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),So(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ko(t,n),r=r(i=_o(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=vo(r=t.type,t.pendingProps),Es(e,t,r,i=vo(r.type,i),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vo(r,i),Zs(e,t),t.tag=1,Ii(r)?(e=!0,ji(t)):e=!1,ko(t,n),Zo(t,r,i),Vo(t,r,i,n),Rs(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return ks(e,t,n)}throw Error(o(156,t.tag))};var Gc="function"===typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}Zc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hc(a);o.call(e)}}var a=Wc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[fi]=a.current,zr(8===e.nodeType?e.parentNode:e),dc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Fc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[fi]=l.current,zr(8===e.nodeType?e.parentNode:e),dc((function(){Zc(t,l,n,r)})),l}(n,t,e,i,r);return Hc(a)}Yc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Zc(e,t,null,null)},Yc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Zc(null,e,null,null)})),t[fi]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ic(t,Qe()),0===(6&Rl)&&(Wl=Qe()+500,zi()))}break;case 13:dc((function(){var t=Oo(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),qc(e,1)}},Ct=function(e){if(13===e.tag){var t=Oo(e,134217728);if(null!==t)rc(t,e,134217728,tc());qc(e,134217728)}},Et=function(e){if(13===e.tag){var t=nc(e),n=Oo(e,t);if(null!==n)rc(n,e,t,tc());qc(e,t)}},St=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ce=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));q(r),X(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=uc,Re=dc;var tu={usingClientEntryPoint:!1,Events:[bi,wi,xi,_e,Pe,uc]},nu={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{it=iu.inject(ru),ot=iu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(o(299));var n=!1,r="",i=Gc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Fc(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,zr(8===e.nodeType?e.parentNode:e),new Kc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Gc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,i,0,a,s),e[fi]=t.current,zr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[fi]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},575:(e,t,n)=>{"use strict";var r=n(456);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},456:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(8459)},2858:(e,t,n)=>{"use strict";var r=n(1233),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},3458:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:E.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function A(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+A(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(P,"$&/")+"/"),R(a,t,i,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var c=0;c<e.length;c++){var u=o+A(s=e[c],c);l+=R(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=R(s=s.value,t,i,u=o+A(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return R(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},N={transition:null},$={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:N,ReactCurrentOwner:E};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)C.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},1233:(e,t,n)=>{"use strict";e.exports=n(3458)},9064:(e,t,n)=>{"use strict";e.exports=n(2858)},5427:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,N(C);else{var t=r(u);null!==t&&$(x,t.startTime-e)}}function C(e,n){m=!1,g&&(g=!1,y(_),_=-1),f=!0;var o=p;try{for(w(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!R());){var a=h.callback;if("function"===typeof a){h.callback=null,p=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?h.callback=s:h===r(c)&&i(c),w(n)}else i(c);h=r(c)}if(null!==h)var l=!0;else{var d=r(u);null!==d&&$(x,d.startTime-n),l=!1}return l}finally{h=null,p=o,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,k=null,_=-1,P=5,A=-1;function R(){return!(t.unstable_now()-A<P)}function O(){if(null!==k){var e=t.unstable_now();A=e;var n=!0;try{n=k(!0,e)}finally{n?E():(S=!1,k=null)}}else S=!1}if("function"===typeof b)E=function(){b(O)};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,I=T.port2;T.port1.onmessage=O,E=function(){I.postMessage(null)}}else E=function(){v(O,0)};function N(e){k=e,S||(S=!0,E())}function $(e,n){_=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,N(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(y(_),_=-1):g=!0,$(x,o-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,N(C))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},1674:(e,t,n)=>{"use strict";e.exports=n(5427)},6356:e=>{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},436:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},1714:(e,t,n)=>{"use strict";var r=n(1233);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),a((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},6291:(e,t,n)=>{"use strict";var r=n(1233),i=n(8159);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,i]);var p=a(e,d[0],d[1]);return l((function(){h.hasValue=!0,h.value=p}),[p]),u(p),p}},8159:(e,t,n)=>{"use strict";e.exports=n(1714)},23:(e,t,n)=>{"use strict";e.exports=n(6291)},5883:()=>{},434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},7071:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{Z:()=>r})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{Z:()=>r})},9611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},1002:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},4414:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1002),i=n(9611);function o(){o=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=RegExp(e,r);return t.set(a,o||t.get(e)),(0,i.Z)(a,n.prototype)}function a(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,i.Z)(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=a(n,this);var r=n.indices;r&&(r.groups=a(r,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,r.Z)(e[e.length-1])&&(e=[].slice.call(e)).push(a(e,s)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},o.apply(this,arguments)}},2274:(e,t,n)=>{"use strict";n.d(t,{fl:()=>R,iv:()=>c,Ts:()=>_,Qu:()=>P,$m:()=>l});const r=globalThis,i=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),a=new WeakMap;class s{constructor(e,t,n){if(this._$cssResult$=!0,n!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(i&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=a.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&a.set(t,e))}return e}toString(){return this.cssText}}const l=e=>new s("string"==typeof e?e:e+"",void 0,o),c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=1===e.length?e[0]:n.reduce(((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1]),e[0]);return new s(i,e,o)},u=(e,t)=>{if(i)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const n of t){const t=document.createElement("style"),i=r.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=n.cssText,e.appendChild(t)}},d=i?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return l(t)})(e):e;var h,p,f;const{is:m,defineProperty:g,getOwnPropertyDescriptor:v,getOwnPropertyNames:y,getOwnPropertySymbols:b,getPrototypeOf:w}=Object,x=globalThis,C=x.trustedTypes,E=C?C.emptyScript:"",S=x.reactiveElementPolyfillSupport,k=(e,t)=>e,_={toAttribute(e,t){switch(t){case Boolean:e=e?E:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},P=(e,t)=>!m(e,t),A={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:P};null!==(h=Symbol.metadata)&&void 0!==h||(Symbol.metadata=Symbol("metadata")),null!==(p=x.litPropertyMetadata)&&void 0!==p||(x.litPropertyMetadata=new WeakMap);class R extends HTMLElement{static addInitializer(e){var t;this._$Ei(),(null!==(t=this.l)&&void 0!==t?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(e,n,t);void 0!==r&&g(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){var r;const{get:i,set:o}=null!==(r=v(this.prototype,e))&&void 0!==r?r:{get(){return this[t]},set(e){this[t]=e}};return{get(){return null===i||void 0===i?void 0:i.call(this)},set(t){const r=null===i||void 0===i?void 0:i.call(this);o.call(this,t),this.requestUpdate(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return null!==(t=this.elementProperties.get(e))&&void 0!==t?t:A}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;const e=w(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){const e=this.properties,t=[...y(e),...b(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const e=this._$Eu(t,n);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(d(e))}else void 0!==e&&t.push(d(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$EO)&&void 0!==t?t:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$EO)||void 0===t||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return u(t,this.constructor.elementStyles),t}connectedCallback(){var e,t;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$EO)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$EO)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EC(e,t){const n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(void 0!==r&&!0===n.reflect){var i;const o=(void 0!==(null===(i=n.converter)||void 0===i?void 0:i.toAttribute)?n.converter:_).toAttribute(t,n.type);this._$Em=e,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(e,t){const n=this.constructor,r=n._$Eh.get(e);if(void 0!==r&&this._$Em!==r){var i;const e=n.getPropertyOptions(r),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:_;this._$Em=r,this[r]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){var r,i;if(null!==(r=n)&&void 0!==r||(n=this.constructor.getPropertyOptions(e)),!(null!==(i=n.hasChanged)&&void 0!==i?i:P)(this[e],t))return;this.P(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,n){var r;this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Em!==e&&(null!==(r=this._$Ej)&&void 0!==r?r:this._$Ej=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var e;if(null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t)!0!==n.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],n)}let t=!1;const n=this._$AL;try{var r;t=this.shouldUpdate(n),t?(this.willUpdate(n),null!==(r=this._$EO)&&void 0!==r&&r.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(n)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null!==(t=this._$EO)&&void 0!==t&&t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach((e=>this._$EC(e,this[e])))),this._$EU()}updated(e){}firstUpdated(e){}}R.elementStyles=[],R.shadowRootOptions={mode:"open"},R[k("elementProperties")]=new Map,R[k("finalized")]=new Map,null!==S&&void 0!==S&&S({ReactiveElement:R}),(null!==(f=x.reactiveElementVersions)&&void 0!==f?f:x.reactiveElementVersions=[]).push("2.0.4")},3452:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var r=n(3638),i=n(3101),o=n(5279);r.extend(o),r.extend(i),r.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"%s sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}});const a={getYear(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).toISOString();return r(e).year()},getRelativeDateFromNow:e=>r(e).fromNow(!0)}},617:(e,t,n)=>{"use strict";n.d(t,{AccountController:()=>c,ApiController:()=>A,fz:()=>K,Lr:()=>D,ConnectionController:()=>Z,ConnectorController:()=>x,bq:()=>a,j1:()=>s,Xs:()=>I,IN:()=>j,NetworkController:()=>k,OptionsController:()=>b,Ie:()=>E,RouterController:()=>$,_4:()=>Y,yD:()=>V,SnackController:()=>U,MO:()=>m,ThemeController:()=>G,sl:()=>z});var r=n(1735);function i(e,t,n,i){let o=e[t];return(0,r.Ld)(e,(()=>{const r=e[t];Object.is(o,r)||n(o=r)}),i)}Symbol();const o="https://secure.web3modal.com",a={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,ONE_SEC_MS:1e3,SECURE_SITE:o,SECURE_SITE_DASHBOARD:`${o}/dashboard`,SECURE_SITE_FAVICON:`${o}/images/favicon.png`,RESTRICTED_TIMEZONES:["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet"}},s={isMobile:()=>"undefined"!==typeof window&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid(){const e=window.navigator.userAgent.toLowerCase();return s.isMobile()&&e.includes("android")},isIos(){const e=window.navigator.userAgent.toLowerCase();return s.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isClient:()=>"undefined"!==typeof window,isPairingExpired:e=>!e||e-Date.now()<=a.TEN_SEC_MS,isAllowedRetry:e=>Date.now()-e>=a.ONE_SEC_MS,copyToClopboard(e){navigator.clipboard.writeText(e)},getPairingExpiry:()=>Date.now()+a.FOUR_MINUTES_MS,getPlainAddress:e=>e.split(":")[2],wait:async e=>new Promise((t=>{setTimeout(t,e)})),debounce(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t&&clearTimeout(t),t=setTimeout((function(){e(...i)}),n)}},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),formatNativeUrl(e,t){if(s.isHttpUrl(e))return this.formatUniversalUrl(e,t);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`);return{redirect:`${n}wc?uri=${encodeURIComponent(t)}`,href:n}},formatUniversalUrl(e,t){if(!s.isHttpUrl(e))return this.formatNativeUrl(e,t);let n=e;n.endsWith("/")||(n=`${n}/`);return{redirect:`${n}wc?uri=${encodeURIComponent(t)}`,href:n}},openHref(e,t){window.open(e,t,"noreferrer noopener")},async preloadImage(e){const t=new Promise(((t,n)=>{const r=new Image;r.onload=t,r.onerror=n,r.crossOrigin="anonymous",r.src=e}));return Promise.race([t,s.wait(2e3)])},formatBalance(e,t){let n;if("0"===e)n="0.000";else if("string"===typeof e){const t=Number(e);var r;if(t)n=null===(r=t.toString().match(/^-?\d+(?:\.\d{0,3})?/u))||void 0===r?void 0:r[0]}return n?`${n} ${t}`:`0.000 ${t}`},isRestrictedRegion(){try{const{timeZone:e}=(new Intl.DateTimeFormat).resolvedOptions(),t=e.toUpperCase();return a.RESTRICTED_TIMEZONES.includes(t)}catch{return!1}},getApiUrl:()=>s.isRestrictedRegion()?"https://api.web3modal.org":"https://api.web3modal.com",getBlockchainApiUrl:()=>s.isRestrictedRegion()?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com",getAnalyticsUrl:()=>s.isRestrictedRegion()?"https://pulse.walletconnect.org":"https://pulse.walletconnect.com",getUUID(){var e;return null!==(e=crypto)&&void 0!==e&&e.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},parseError(e){var t,n;return"string"===typeof e?e:"string"===typeof(null===e||void 0===e||null===(t=e.issues)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.message)?e.issues[0].message:e instanceof Error?e.message:"Unknown error"}},l=(0,r.sj)({isConnected:!1}),c={state:l,subscribe:e=>(0,r.Ld)(l,(()=>e(l))),subscribeKey:(e,t)=>i(l,e,t),setIsConnected(e){l.isConnected=e},setCaipAddress(e){l.caipAddress=e,l.address=e?s.getPlainAddress(e):void 0},setBalance(e,t){l.balance=e,l.balanceSymbol=t},setProfileName(e){l.profileName=e},setProfileImage(e){l.profileImage=e},setAddressExplorerUrl(e){l.addressExplorerUrl=e},resetAccount(){l.isConnected=!1,l.caipAddress=void 0,l.address=void 0,l.balance=void 0,l.balanceSymbol=void 0,l.profileName=void 0,l.profileImage=void 0,l.addressExplorerUrl=void 0}};class u{constructor(e){let{baseUrl:t}=e;this.baseUrl=t}async get(e){let{headers:t,...n}=e;const r=this.createUrl(n);return(await fetch(r,{method:"GET",headers:t})).json()}async getBlob(e){let{headers:t,...n}=e;const r=this.createUrl(n);return(await fetch(r,{method:"GET",headers:t})).blob()}async post(e){let{body:t,headers:n,...r}=e;const i=this.createUrl(r);return(await fetch(i,{method:"POST",headers:n,body:t?JSON.stringify(t):void 0})).json()}async put(e){let{body:t,headers:n,...r}=e;const i=this.createUrl(r);return(await fetch(i,{method:"PUT",headers:n,body:t?JSON.stringify(t):void 0})).json()}async delete(e){let{body:t,headers:n,...r}=e;const i=this.createUrl(r);return(await fetch(i,{method:"DELETE",headers:n,body:t?JSON.stringify(t):void 0})).json()}createUrl(e){let{path:t,params:n}=e;const r=new URL(t,this.baseUrl);return n&&Object.entries(n).forEach((e=>{let[t,n]=e;n&&r.searchParams.append(t,n)})),r}}const d="WALLETCONNECT_DEEPLINK_CHOICE",h="@w3m/recent",p="@w3m/connected_wallet_image_url",f="@w3m/connected_connector",m={setWalletConnectDeepLink(e){let{href:t,name:n}=e;try{localStorage.setItem(d,JSON.stringify({href:t,name:n}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{const e=localStorage.getItem(d);if(e)return JSON.parse(e)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{localStorage.removeItem(d)}catch{console.info("Unable to delete WalletConnect deep link")}},setWeb3ModalRecent(e){try{const t=m.getRecentWallets();t.find((t=>t.id===e.id))||(t.unshift(e),t.length>2&&t.pop(),localStorage.setItem(h,JSON.stringify(t)))}catch{console.info("Unable to set Web3Modal recent")}},getRecentWallets(){try{const e=localStorage.getItem(h);return e?JSON.parse(e):[]}catch{console.info("Unable to get Web3Modal recent")}return[]},setConnectedWalletImageUrl(e){try{localStorage.setItem(p,e)}catch{console.info("Unable to set Connected Wallet Image Url")}},getConnectedWalletImageUrl(){try{return localStorage.getItem(p)}catch{console.info("Unable to set Connected Wallet Image Url")}},setConnectedConnector(e){try{localStorage.setItem(f,e)}catch{console.info("Unable to set Connected Connector")}},getConnectedConnector(){try{return localStorage.getItem(f)}catch{console.info("Unable to get Connected Connector")}}},g=(0,r.sj)({walletImages:{},networkImages:{},connectorImages:{},tokenImages:{}}),v={state:g,subscribeNetworkImages:e=>(0,r.Ld)(g.networkImages,(()=>e(g.networkImages))),subscribeKey:(e,t)=>i(g,e,t),setWalletImage(e,t){g.walletImages[e]=t},setNetworkImage(e,t){g.networkImages[e]=t},setConnectorImage(e,t){g.connectorImages[e]=t},setTokenImage(e,t){g.tokenImages[e]=t}},y=(0,r.sj)({projectId:"",sdkType:"w3m",sdkVersion:"html-wagmi-undefined"}),b={state:y,subscribeKey:(e,t)=>i(y,e,t),setProjectId(e){y.projectId=e},setIncludeWalletIds(e){y.includeWalletIds=e},setExcludeWalletIds(e){y.excludeWalletIds=e},setFeaturedWalletIds(e){y.featuredWalletIds=e},setTokens(e){y.tokens=e},setTermsConditionsUrl(e){y.termsConditionsUrl=e},setPrivacyPolicyUrl(e){y.privacyPolicyUrl=e},setCustomWallets(e){y.customWallets=e},setEnableAnalytics(e){y.enableAnalytics=e},setSdkVersion(e){y.sdkVersion=e},setMetadata(e){y.metadata=e}},w=(0,r.sj)({connectors:[]}),x={state:w,subscribeKey:(e,t)=>i(w,e,t),setConnectors(e){w.connectors=e.map((e=>(0,r.iH)(e)))},addConnector(e){if(w.connectors.push((0,r.iH)(e)),"w3mEmail"===e.id){var t,n;const i=e,o=(0,r.CO)(b.state);null===i||void 0===i||null===(t=i.provider)||void 0===t||null===(n=t.syncDappData)||void 0===n||n.call(t,{metadata:o.metadata,sdkVersion:o.sdkVersion,projectId:o.projectId})}},getEmailConnector:()=>w.connectors.find((e=>"EMAIL"===e.type)),getAnnouncedConnectorRdns:()=>w.connectors.filter((e=>"ANNOUNCED"===e.type)).map((e=>{var t;return null===(t=e.info)||void 0===t?void 0:t.rdns})),getConnectors:()=>w.connectors},C=(0,r.sj)({open:!1,selectedNetworkId:void 0}),E={state:C,subscribe:e=>(0,r.Ld)(C,(()=>e(C))),set(e){Object.assign(C,{...C,...e})}},S=(0,r.sj)({supportsAllNetworks:!0,isDefaultCaipNetwork:!1}),k={state:S,subscribeKey:(e,t)=>i(S,e,t),_getClient(){if(!S._client)throw new Error("NetworkController client not set");return S._client},setClient(e){S._client=(0,r.iH)(e)},setCaipNetwork(e){S.caipNetwork=e,E.set({selectedNetworkId:null===e||void 0===e?void 0:e.id})},setDefaultCaipNetwork(e){S.caipNetwork=e,E.set({selectedNetworkId:null===e||void 0===e?void 0:e.id}),S.isDefaultCaipNetwork=!0},setRequestedCaipNetworks(e){S.requestedCaipNetworks=e},async getApprovedCaipNetworksData(){const e=await this._getClient().getApprovedCaipNetworksData();S.supportsAllNetworks=e.supportsAllNetworks,S.approvedCaipNetworkIds=e.approvedCaipNetworkIds},async switchActiveNetwork(e){await this._getClient().switchCaipNetwork(e),S.caipNetwork=e},resetNetwork(){S.isDefaultCaipNetwork||(S.caipNetwork=void 0),S.approvedCaipNetworkIds=void 0,S.supportsAllNetworks=!0}},_=new u({baseUrl:s.getApiUrl()}),P=(0,r.sj)({page:1,count:0,featured:[],recommended:[],wallets:[],search:[]}),A={state:P,subscribeKey:(e,t)=>i(P,e,t),_getApiHeaders(){const{projectId:e,sdkType:t,sdkVersion:n}=b.state;return{"x-project-id":e,"x-sdk-type":t,"x-sdk-version":n}},async _fetchWalletImage(e){const t=`${_.baseUrl}/getWalletImage/${e}`,n=await _.getBlob({path:t,headers:A._getApiHeaders()});v.setWalletImage(e,URL.createObjectURL(n))},async _fetchNetworkImage(e){const t=`${_.baseUrl}/public/getAssetImage/${e}`,n=await _.getBlob({path:t,headers:A._getApiHeaders()});v.setNetworkImage(e,URL.createObjectURL(n))},async _fetchConnectorImage(e){const t=`${_.baseUrl}/public/getAssetImage/${e}`,n=await _.getBlob({path:t,headers:A._getApiHeaders()});v.setConnectorImage(e,URL.createObjectURL(n))},async fetchNetworkImages(){const{requestedCaipNetworks:e}=k.state,t=null===e||void 0===e?void 0:e.map((e=>{let{imageId:t}=e;return t})).filter(Boolean);t&&await Promise.allSettled(t.map((e=>A._fetchNetworkImage(e))))},async fetchConnectorImages(){const{connectors:e}=x.state,t=e.map((e=>{let{imageId:t}=e;return t})).filter(Boolean);await Promise.allSettled(t.map((e=>A._fetchConnectorImage(e))))},async fetchFeaturedWallets(){const{featuredWalletIds:e}=b.state;if(null!==e&&void 0!==e&&e.length){const{data:t}=await _.get({path:"/getWallets",headers:A._getApiHeaders(),params:{page:"1",entries:null!==e&&void 0!==e&&e.length?String(e.length):"4",include:null===e||void 0===e?void 0:e.join(",")}});t.sort(((t,n)=>e.indexOf(t.id)-e.indexOf(n.id)));const n=t.map((e=>e.image_id)).filter(Boolean);await Promise.allSettled(n.map((e=>A._fetchWalletImage(e)))),P.featured=t}},async fetchRecommendedWallets(){const{includeWalletIds:e,excludeWalletIds:t,featuredWalletIds:n}=b.state,r=[...null!==t&&void 0!==t?t:[],...null!==n&&void 0!==n?n:[]].filter(Boolean),{data:i,count:o}=await _.get({path:"/getWallets",headers:A._getApiHeaders(),params:{page:"1",entries:"4",include:null===e||void 0===e?void 0:e.join(","),exclude:null===r||void 0===r?void 0:r.join(",")}}),a=m.getRecentWallets(),s=i.map((e=>e.image_id)).filter(Boolean),l=a.map((e=>e.image_id)).filter(Boolean);await Promise.allSettled([...s,...l].map((e=>A._fetchWalletImage(e)))),P.recommended=i,P.count=null!==o&&void 0!==o?o:0},async fetchWallets(e){let{page:t}=e;const{includeWalletIds:n,excludeWalletIds:r,featuredWalletIds:i}=b.state,o=[...P.recommended.map((e=>{let{id:t}=e;return t})),...null!==r&&void 0!==r?r:[],...null!==i&&void 0!==i?i:[]].filter(Boolean),{data:a,count:l}=await _.get({path:"/getWallets",headers:A._getApiHeaders(),params:{page:String(t),entries:"40",include:null===n||void 0===n?void 0:n.join(","),exclude:o.join(",")}}),c=a.map((e=>e.image_id)).filter(Boolean);await Promise.allSettled([...c.map((e=>A._fetchWalletImage(e))),s.wait(300)]),P.wallets=[...P.wallets,...a],P.count=l>P.count?l:P.count,P.page=t},async searchWallet(e){let{search:t}=e;const{includeWalletIds:n,excludeWalletIds:r}=b.state;P.search=[];const{data:i}=await _.get({path:"/getWallets",headers:A._getApiHeaders(),params:{page:"1",entries:"100",search:t,include:null===n||void 0===n?void 0:n.join(","),exclude:null===r||void 0===r?void 0:r.join(",")}}),o=i.map((e=>e.image_id)).filter(Boolean);await Promise.allSettled([...o.map((e=>A._fetchWalletImage(e))),s.wait(300)]),P.search=i},prefetch(){P.prefetchPromise=Promise.race([Promise.allSettled([A.fetchFeaturedWallets(),A.fetchRecommendedWallets(),A.fetchNetworkImages(),A.fetchConnectorImages()]),s.wait(3e3)])}},R=new u({baseUrl:s.getAnalyticsUrl()}),O=["MODAL_CREATED"],T=(0,r.sj)({timestamp:Date.now(),data:{type:"track",event:"MODAL_CREATED"}}),I={state:T,subscribe:e=>(0,r.Ld)(T,(()=>e(T))),_getApiHeaders(){const{projectId:e,sdkType:t,sdkVersion:n}=b.state;return{"x-project-id":e,"x-sdk-type":t,"x-sdk-version":n}},async _sendAnalyticsEvent(e){try{if(O.includes(e.data.event)||"undefined"===typeof window)return;await R.post({path:"/e",headers:I._getApiHeaders(),body:{eventId:s.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:e.timestamp,props:e.data}})}catch{}},sendEvent(e){T.timestamp=Date.now(),T.data=e,b.state.enableAnalytics&&I._sendAnalyticsEvent(T)}},N=(0,r.sj)({view:"Connect",history:["Connect"]}),$={state:N,subscribeKey:(e,t)=>i(N,e,t),push(e,t){e!==N.view&&(N.view=e,N.history.push(e),N.data=t)},reset(e){N.view=e,N.history=[e]},replace(e,t){N.history.length>1&&N.history.at(-1)!==e&&(N.view=e,N.history[N.history.length-1]=e,N.data=t)},goBack(){if(N.history.length>1){N.history.pop();const[e]=N.history.slice(-1);e&&(N.view=e)}},goBackToIndex(e){if(N.history.length>1){N.history=N.history.slice(0,e+1);const[t]=N.history.slice(-1);t&&(N.view=t)}}},M=(0,r.sj)({loading:!1,open:!1}),j={state:M,subscribe:e=>(0,r.Ld)(M,(()=>e(M))),subscribeKey:(e,t)=>i(M,e,t),async open(e){await A.state.prefetchPromise,null!==e&&void 0!==e&&e.view?$.reset(e.view):c.state.isConnected?$.reset("Account"):$.reset("Connect"),M.open=!0,E.set({open:!0}),I.sendEvent({type:"track",event:"MODAL_OPEN"})},close(){M.open=!1,E.set({open:!1}),I.sendEvent({type:"track",event:"MODAL_CLOSE"})},setLoading(e){M.loading=e}},L=new u({baseUrl:s.getBlockchainApiUrl()}),D={fetchIdentity(e){let{caipChainId:t,address:n}=e;return L.get({path:`/v1/identity/${n}`,params:{chainId:t,projectId:b.state.projectId}})},fetchTransactions(e){let{account:t,projectId:n,cursor:r}=e;const i=r?{cursor:r}:{};return L.get({path:`/v1/account/${t}/history?projectId=${n}`,params:i})}},B=(0,r.sj)({message:"",variant:"success",open:!1}),U={state:B,subscribeKey:(e,t)=>i(B,e,t),showSuccess(e){B.message=e,B.variant="success",B.open=!0},showError(e){const t=s.parseError(e);B.message=t,B.variant="error",B.open=!0},hide(){B.open=!1}},F=(0,r.sj)({transactions:[],transactionsByYear:{},loading:!1,empty:!1,next:void 0}),z={state:F,subscribe:e=>(0,r.Ld)(F,(()=>e(F))),async fetchTransactions(e){const{projectId:t}=b.state;if(!t||!e)throw new Error("Transactions can't be fetched without a projectId and an accountAddress");F.loading=!0;try{const n=await D.fetchTransactions({account:e,projectId:t,cursor:F.next}),r=this.filterSpamTransactions(n.data),i=[...F.transactions,...r];F.loading=!1,F.transactions=i,F.transactionsByYear=this.groupTransactionsByYear(F.transactionsByYear,r),F.empty=0===i.length,F.next=n.next?n.next:void 0}catch(n){I.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:e,projectId:t,cursor:F.next}}),U.showError("Failed to fetch transactions"),F.loading=!1,F.empty=!0}},groupTransactionsByYear(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((t=>{var n;const r=new Date(t.metadata.minedAt).getFullYear();e[r]||(e[r]=[]),null===(n=e[r])||void 0===n||n.push(t)})),e},filterSpamTransactions:e=>e.filter((e=>!e.transfers.every((e=>{var t;return!0===(null===(t=e.nft_info)||void 0===t?void 0:t.flags.is_spam)})))),resetTransactions(){F.transactions=[],F.transactionsByYear={},F.loading=!1,F.empty=!1,F.next=void 0}},W=(0,r.sj)({wcError:!1,buffering:!1}),Z={state:W,subscribeKey:(e,t)=>i(W,e,t),_getClient(){if(!W._client)throw new Error("ConnectionController client not set");return W._client},setClient(e){W._client=(0,r.iH)(e)},connectWalletConnect(){W.wcPromise=this._getClient().connectWalletConnect((e=>{W.wcUri=e,W.wcPairingExpiry=s.getPairingExpiry()}))},async connectExternal(e){var t,n;await(null===(t=(n=this._getClient()).connectExternal)||void 0===t?void 0:t.call(n,e)),m.setConnectedConnector(e.type)},async signMessage(e){return this._getClient().signMessage(e)},checkInstalled(e){var t,n;return null===(t=(n=this._getClient()).checkInstalled)||void 0===t?void 0:t.call(n,e)},resetWcConnection(){W.wcUri=void 0,W.wcPairingExpiry=void 0,W.wcPromise=void 0,W.wcLinking=void 0,W.recentWallet=void 0,z.resetTransactions(),m.deleteWalletConnectDeepLink()},setWcLinking(e){W.wcLinking=e},setWcError(e){W.wcError=e,W.buffering=!1},setRecentWallet(e){W.recentWallet=e},setBuffering(e){W.buffering=e},async disconnect(){await this._getClient().disconnect(),this.resetWcConnection()}},H=(0,r.sj)({status:"uninitialized",isSiweEnabled:!1}),V={state:H,subscribeKey:(e,t)=>i(H,e,t),subscribe:e=>(0,r.Ld)(H,(()=>e(H))),_getClient(){if(!H._client)throw new Error("SIWEController client not set");return H._client},async getNonce(){const e=this._getClient(),t=await e.getNonce();return this.setNonce(t),t},async getSession(){const e=this._getClient(),t=await e.getSession();return t&&(this.setSession(t),this.setStatus("success")),t},createMessage(e){const t=this._getClient().createMessage(e);return this.setMessage(t),t},async verifyMessage(e){const t=this._getClient();return await t.verifyMessage(e)},async signIn(){const e=this._getClient();return await e.signIn()},async signOut(){var e;const t=this._getClient();await t.signOut(),this.setStatus("ready"),null===(e=t.onSignOut)||void 0===e||e.call(t)},onSignIn(e){var t;const n=this._getClient();null===(t=n.onSignIn)||void 0===t||t.call(n,e)},onSignOut(){var e;const t=this._getClient();null===(e=t.onSignOut)||void 0===e||e.call(t)},setSIWEClient(e){H._client=(0,r.iH)(e),H.status="ready",H.isSiweEnabled=e.options.enabled},setNonce(e){H.nonce=e},setStatus(e){H.status=e},setMessage(e){H.message=e},setSession(e){H.session=e}},q=(0,r.sj)({themeMode:"dark",themeVariables:{}}),G={state:q,subscribe:e=>(0,r.Ld)(q,(()=>e(q))),setThemeMode(e){q.themeMode=e},setThemeVariables(e){q.themeVariables={...q.themeVariables,...e}},getSnapshot:()=>(0,r.CO)(q)},K={getWalletImage:e=>null!==e&&void 0!==e&&e.image_url?null===e||void 0===e?void 0:e.image_url:null!==e&&void 0!==e&&e.image_id?v.state.walletImages[e.image_id]:void 0,getNetworkImage:e=>null!==e&&void 0!==e&&e.imageUrl?null===e||void 0===e?void 0:e.imageUrl:null!==e&&void 0!==e&&e.imageId?v.state.networkImages[e.imageId]:void 0,getConnectorImage:e=>null!==e&&void 0!==e&&e.imageUrl?e.imageUrl:null!==e&&void 0!==e&&e.imageId?v.state.connectorImages[e.imageId]:void 0},Y={goBackOrCloseModal(){$.state.history.length>1?$.goBack():j.close()},navigateAfterNetworkSwitch(){const{history:e}=$.state,t=e.findIndex((e=>"Networks"===e));t>=1?$.goBackToIndex(t-1):j.close()}}},4578:(e,t,n)=>{"use strict";n.r(t),n.d(t,{W3mModal:()=>u});var r=n(617),i=n(1838),o=n(5523),a=n(1444);const s=o.iv` :host { z-index: var(--w3m-z-index); display: block; backface-visibility: hidden; will-change: opacity; position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; opacity: 0; background-color: var(--wui-cover); } @keyframes zoom-in { 0% { transform: scale(0.95) translateY(0); } 100% { transform: scale(1) translateY(0); } } @keyframes slide-in { 0% { transform: scale(1) translateY(50px); } 100% { transform: scale(1) translateY(0); } } wui-card { max-width: 360px; width: 100%; position: relative; animation-delay: 0.3s; animation-duration: 0.2s; animation-name: zoom-in; animation-fill-mode: backwards; animation-timing-function: var(--wui-ease-out-power-2); outline: none; } wui-flex { overflow-x: hidden; overflow-y: auto; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; } @media (max-height: 700px) and (min-width: 431px) { wui-flex { align-items: flex-start; } wui-card { margin: var(--wui-spacing-xxl) 0px; } } @media (max-width: 430px) { wui-flex { align-items: flex-end; } wui-card { max-width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; animation-name: slide-in; } } `;var l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const c="scroll-lock";let u=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.open=r.IN.state.open,this.caipAddress=r.AccountController.state.address,this.isSiweEnabled=r.yD.state.isSiweEnabled,this.initializeTheming(),r.ApiController.prefetch(),this.unsubscribe.push(r.IN.subscribeKey("open",(e=>e?this.onOpen():this.onClose())),r.yD.subscribeKey("isSiweEnabled",(e=>{this.isSiweEnabled=e})),r.AccountController.subscribe((e=>this.onNewAccountState(e)))),r.Xs.sendEvent({type:"track",event:"MODAL_LOADED"})}disconnectedCallback(){this.unsubscribe.forEach((e=>e())),this.onRemoveKeyboardListener()}render(){return this.open?o.dy` <wui-flex @click=${this.onOverlayClick.bind(this)}> <wui-card role="alertdialog" aria-modal="true" tabindex="0"> <w3m-header></w3m-header> <w3m-router></w3m-router> <w3m-snackbar></w3m-snackbar> </wui-card> </wui-flex> `:null}async onOverlayClick(e){e.target===e.currentTarget&&await this.handleClose()}async handleClose(){this.isSiweEnabled&&"success"!==r.yD.state.status&&await r.ConnectionController.disconnect(),r.IN.close()}initializeTheming(){const{themeVariables:e,themeMode:t}=r.ThemeController.state,n=i.UiHelperUtil.getColorTheme(t);(0,i.initializeTheming)(e,n)}async onClose(){this.onScrollUnlock(),await this.animate([{opacity:1},{opacity:0}],{duration:200,easing:"ease",fill:"forwards"}).finished,r.SnackController.hide(),this.open=!1,this.onRemoveKeyboardListener()}async onOpen(){this.onScrollLock(),this.open=!0,await this.animate([{opacity:0},{opacity:1}],{duration:200,easing:"ease",fill:"forwards",delay:300}).finished,this.onAddKeyboardListener()}onScrollLock(){const e=document.createElement("style");e.dataset.w3m=c,e.textContent="\n html, body {\n touch-action: none;\n overflow: hidden;\n overscroll-behavior: contain;\n }\n w3m-modal {\n pointer-events: auto;\n }\n ",document.head.appendChild(e)}onScrollUnlock(){const e=document.head.querySelector(`style[data-w3m="${c}"]`);e&&e.remove()}onAddKeyboardListener(){var e;this.abortController=new AbortController;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("wui-card");null===t||void 0===t||t.focus(),window.addEventListener("keydown",(e=>{if("Escape"===e.key)this.handleClose();else if("Tab"===e.key){const{tagName:n}=e.target;!n||n.includes("W3M-")||n.includes("WUI-")||null===t||void 0===t||t.focus()}}),this.abortController)}onRemoveKeyboardListener(){var e;null===(e=this.abortController)||void 0===e||e.abort(),this.abortController=void 0}async onNewAccountState(e){const{isConnected:t,caipAddress:n}=e;if(this.isSiweEnabled){t&&!this.caipAddress&&(this.caipAddress=n),t&&n&&this.caipAddress!==n&&(await r.yD.signOut(),this.onSiweNavigation(),this.caipAddress=n);try{const e=await r.yD.getSession();e&&!t?await r.yD.signOut():t&&!e&&this.onSiweNavigation()}catch(i){t&&this.onSiweNavigation()}}}onSiweNavigation(){this.open?r.RouterController.push("ConnectingSiwe"):r.IN.open({view:"ConnectingSiwe"})}};u.styles=s,l([(0,a.SB)()],u.prototype,"open",void 0),l([(0,a.SB)()],u.prototype,"caipAddress",void 0),l([(0,a.SB)()],u.prototype,"isSiweEnabled",void 0),u=l([(0,i.customElement)("w3m-modal")],u)},1838:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TransactionUtil:()=>Mr,UiHelperUtil:()=>lt,WuiAccountButton:()=>wt,WuiAllWalletsImage:()=>_t,WuiAvatar:()=>ft,WuiButton:()=>Rt,WuiCard:()=>v,WuiCardSelect:()=>Ut,WuiCardSelectLoader:()=>Nt,WuiChip:()=>Wt,WuiConnectButton:()=>Vt,WuiCtaButton:()=>Kt,WuiEmailInput:()=>nn,WuiFlex:()=>dt,WuiGrid:()=>Ar,WuiIcon:()=>Ce,WuiIconBox:()=>vt,WuiIconLink:()=>an,WuiImage:()=>ke,WuiInputElement:()=>cn,WuiInputNumeric:()=>hn,WuiInputText:()=>Jt,WuiLink:()=>mn,WuiListAccordion:()=>br,WuiListContent:()=>Cr,WuiListItem:()=>yn,WuiListWallet:()=>$n,WuiListWalletTransaction:()=>kr,WuiLoadingHexagon:()=>Ae,WuiLoadingSpinner:()=>Te,WuiLoadingThumbnail:()=>$e,WuiLogo:()=>Ln,WuiLogoSelect:()=>Un,WuiNetworkButton:()=>Wn,WuiNetworkImage:()=>Lt,WuiNoticeCard:()=>gr,WuiOtp:()=>Vn,WuiQrCode:()=>Xn,WuiSearchBar:()=>tr,WuiSeparator:()=>Tr,WuiShimmer:()=>Le,WuiSnackbar:()=>ir,WuiTabs:()=>sr,WuiTag:()=>Tn,WuiText:()=>We,WuiTooltip:()=>ur,WuiTransactionListItem:()=>kn,WuiTransactionListItemLoader:()=>An,WuiTransactionVisual:()=>Cn,WuiVisual:()=>at,WuiVisualThumbnail:()=>pr,WuiWalletImage:()=>Et,customElement:()=>f,initializeTheming:()=>s,setColorTheme:()=>l,setThemeVariables:()=>c});var r=n(5523);let i,o,a;function s(e,t){i=document.createElement("style"),o=document.createElement("style"),a=document.createElement("style"),i.textContent=u(e).core.cssText,o.textContent=u(e).dark.cssText,a.textContent=u(e).light.cssText,document.head.appendChild(i),document.head.appendChild(o),document.head.appendChild(a),l(t)}function l(e){o&&a&&("light"===e?(o.removeAttribute("media"),a.media="enabled"):(a.removeAttribute("media"),o.media="enabled"))}function c(e){i&&o&&a&&(i.textContent=u(e).core.cssText,o.textContent=u(e).dark.cssText,a.textContent=u(e).light.cssText)}function u(e){return{core:r.iv` @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); :root { --w3m-color-mix-strength: ${(0,r.$m)(null!==e&&void 0!==e&&e["--w3m-color-mix-strength"]?`${e["--w3m-color-mix-strength"]}%`:"0%")}; --w3m-font-family: ${(0,r.$m)((null===e||void 0===e?void 0:e["--w3m-font-family"])||"Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")}; --w3m-font-size-master: ${(0,r.$m)((null===e||void 0===e?void 0:e["--w3m-font-size-master"])||"10px")}; --w3m-border-radius-master: ${(0,r.$m)((null===e||void 0===e?void 0:e["--w3m-border-radius-master"])||"4px")}; --w3m-z-index: ${(0,r.$m)((null===e||void 0===e?void 0:e["--w3m-z-index"])||100)}; --wui-font-family: var(--w3m-font-family); --wui-font-size-micro: var(--w3m-font-size-master); --wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2); --wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4); --wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6); --wui-font-size-large: calc(var(--w3m-font-size-master) * 2); --wui-border-radius-5xs: var(--w3m-border-radius-master); --wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5); --wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2); --wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3); --wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4); --wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5); --wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7); --wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9); --wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20); --wui-font-weight-light: 400; --wui-font-weight-regular: 500; --wui-font-weight-medium: 600; --wui-font-weight-bold: 700; --wui-letter-spacing-large: -0.8px; --wui-letter-spacing-paragraph: -0.64px; --wui-letter-spacing-small: -0.56px; --wui-letter-spacing-tiny: -0.48px; --wui-letter-spacing-micro: -0.2px; --wui-spacing-0: 0px; --wui-spacing-4xs: 2px; --wui-spacing-3xs: 4px; --wui-spacing-xxs: 6px; --wui-spacing-2xs: 7px; --wui-spacing-xs: 8px; --wui-spacing-1xs: 10px; --wui-spacing-s: 12px; --wui-spacing-m: 14px; --wui-spacing-l: 16px; --wui-spacing-2l: 18px; --wui-spacing-xl: 20px; --wui-spacing-xxl: 24px; --wui-spacing-2xl: 32px; --wui-spacing-3xl: 40px; --wui-spacing-4xl: 90px; --wui-icon-box-size-xxs: 14px; --wui-icon-box-size-xs: 20px; --wui-icon-box-size-sm: 24px; --wui-icon-box-size-md: 32px; --wui-icon-box-size-lg: 40px; --wui-icon-box-size-xl: 64px; --wui-icon-size-inherit: inherit; --wui-icon-size-xxs: 10px; --wui-icon-size-xs: 12px; --wui-icon-size-sm: 14px; --wui-icon-size-md: 16px; --wui-icon-size-mdl: 18px; --wui-icon-size-lg: 20px; --wui-icon-size-xl: 24px; --wui-wallet-image-size-inherit: inherit; --wui-wallet-image-size-sm: 40px; --wui-wallet-image-size-md: 56px; --wui-wallet-image-size-lg: 80px; --wui-box-size-md: 100px; --wui-box-size-lg: 120px; --wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1); --wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1); --wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1); --wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1); --wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1); --wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1); --wui-duration-lg: 200ms; --wui-duration-md: 125ms; --wui-duration-sm: 75ms; --wui-path-network: path( 'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z' ); --wui-path-network-lg: path( 'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z' ); --wui-color-inherit: inherit; --wui-color-inverse-100: #fff; --wui-color-inverse-000: #000; --wui-cover: rgba(20, 20, 20, 0.8); --wui-color-modal-bg: var(--wui-color-modal-bg-base); --wui-color-blue-100: var(--wui-color-blue-base-100); --wui-color-accent-100: var(--wui-color-accent-base-100); --wui-color-accent-090: var(--wui-color-accent-base-090); --wui-color-accent-080: var(--wui-color-accent-base-080); --wui-accent-glass-090: var(--wui-accent-glass-base-090); --wui-accent-glass-080: var(--wui-accent-glass-base-080); --wui-accent-glass-020: var(--wui-accent-glass-base-020); --wui-accent-glass-015: var(--wui-accent-glass-base-015); --wui-accent-glass-010: var(--wui-accent-glass-base-010); --wui-accent-glass-005: var(--wui-accent-glass-base-005); --wui-accent-glass-002: var(--wui-accent-glass-base-002); --wui-color-fg-100: var(--wui-color-fg-base-100); --wui-color-fg-125: var(--wui-color-fg-base-125); --wui-color-fg-150: var(--wui-color-fg-base-150); --wui-color-fg-175: var(--wui-color-fg-base-175); --wui-color-fg-200: var(--wui-color-fg-base-200); --wui-color-fg-225: var(--wui-color-fg-base-225); --wui-color-fg-250: var(--wui-color-fg-base-250); --wui-color-fg-275: var(--wui-color-fg-base-275); --wui-color-fg-300: var(--wui-color-fg-base-300); --wui-color-bg-100: var(--wui-color-bg-base-100); --wui-color-bg-125: var(--wui-color-bg-base-125); --wui-color-bg-150: var(--wui-color-bg-base-150); --wui-color-bg-175: var(--wui-color-bg-base-175); --wui-color-bg-200: var(--wui-color-bg-base-200); --wui-color-bg-225: var(--wui-color-bg-base-225); --wui-color-bg-250: var(--wui-color-bg-base-250); --wui-color-bg-275: var(--wui-color-bg-base-275); --wui-color-bg-300: var(--wui-color-bg-base-300); --wui-color-success-100: var(--wui-color-success-base-100); --wui-color-error-100: var(--wui-color-error-base-100); --wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100); --wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100); --wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100); --wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100); --wui-all-wallets-bg-100: var(--wui-all-wallets-bg-base-100); --wui-avatar-border: var(--wui-avatar-border-base); --wui-thumbnail-border: var(--wui-thumbnail-border-base); --wui-box-shadow-blue: rgba(71, 161, 255, 0.16); } @supports (background: color-mix(in srgb, white 50%, black)) { :root { --wui-color-modal-bg: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-modal-bg-base) ); --wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 16%, transparent); --wui-color-accent-090: color-mix( in srgb, var(--wui-color-accent-base-100) 90%, var(--w3m-default) ); --wui-color-accent-080: color-mix( in srgb, var(--wui-color-accent-base-100) 80%, var(--w3m-default) ); --wui-color-accent-090: color-mix( in srgb, var(--wui-color-accent-base-100) 90%, transparent ); --wui-color-accent-080: color-mix( in srgb, var(--wui-color-accent-base-100) 80%, transparent ); --wui-accent-glass-090: color-mix( in srgb, var(--wui-color-accent-base-100) 90%, transparent ); --wui-accent-glass-080: color-mix( in srgb, var(--wui-color-accent-base-100) 80%, transparent ); --wui-accent-glass-020: color-mix( in srgb, var(--wui-color-accent-base-100) 20%, transparent ); --wui-accent-glass-015: color-mix( in srgb, var(--wui-color-accent-base-100) 15%, transparent ); --wui-accent-glass-010: color-mix( in srgb, var(--wui-color-accent-base-100) 10%, transparent ); --wui-accent-glass-005: color-mix( in srgb, var(--wui-color-accent-base-100) 5%, transparent ); --wui-color-accent-002: color-mix( in srgb, var(--wui-color-accent-base-100) 2%, transparent ); --wui-color-fg-100: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-fg-base-100) ); --wui-color-fg-125: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-fg-base-125) ); --wui-color-fg-150: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-fg-base-150) ); --wui-color-fg-175: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-fg-base-175) ); --wui-color-fg-200: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-fg-base-200) ); --wui-color-fg-225: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-fg-base-225) ); --wui-color-fg-250: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-fg-base-250) ); --wui-color-fg-275: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-fg-base-275) ); --wui-color-fg-300: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-fg-base-300) ); --wui-color-bg-100: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-bg-base-100) ); --wui-color-bg-125: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-bg-base-125) ); --wui-color-bg-150: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-bg-base-150) ); --wui-color-bg-175: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-bg-base-175) ); --wui-color-bg-200: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-bg-base-200) ); --wui-color-bg-225: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-bg-base-225) ); --wui-color-bg-250: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-bg-base-250) ); --wui-color-bg-275: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-bg-base-275) ); --wui-color-bg-300: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-bg-base-300) ); --wui-color-success-100: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-success-base-100) ); --wui-color-error-100: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-color-error-base-100) ); --wui-icon-box-bg-error-100: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-icon-box-bg-error-base-100) ); --wui-icon-box-bg-accent-100: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-icon-box-bg-blue-base-100) ); --wui-icon-box-bg-success-100: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-icon-box-bg-success-base-100) ); --wui-icon-box-bg-inverse-100: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-icon-box-bg-inverse-base-100) ); --wui-all-wallets-bg-100: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-all-wallets-bg-base-100) ); --wui-avatar-border: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-avatar-border-base) ); --wui-thumbnail-border: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--wui-thumbnail-border-base) ); } } `,light:r.iv` :root { --w3m-color-mix: ${(0,r.$m)((null===e||void 0===e?void 0:e["--w3m-color-mix"])||"#fff")}; --w3m-accent: ${(0,r.$m)((null===e||void 0===e?void 0:e["--w3m-accent"])||"#47a1ff")}; --w3m-default: #fff; --wui-color-modal-bg-base: #191a1a; --wui-color-blue-base-100: #47a1ff; --wui-color-accent-base-100: var(--w3m-accent); --wui-color-accent-base-090: #59aaff; --wui-color-accent-base-080: #6cb4ff; --wui-accent-glass-base-090: rgba(71, 161, 255, 0.9); --wui-accent-glass-base-080: rgba(71, 161, 255, 0.8); --wui-accent-glass-base-020: rgba(71, 161, 255, 0.2); --wui-accent-glass-base-015: rgba(71, 161, 255, 0.15); --wui-accent-glass-base-010: rgba(71, 161, 255, 0.1); --wui-accent-glass-base-005: rgba(71, 161, 255, 0.05); --wui-accent-glass-base-002: rgba(71, 161, 255, 0.02); --wui-color-fg-base-100: #e4e7e7; --wui-color-fg-base-125: #d0d5d5; --wui-color-fg-base-150: #a8b1b1; --wui-color-fg-base-175: #a8b0b0; --wui-color-fg-base-200: #949e9e; --wui-color-fg-base-225: #868f8f; --wui-color-fg-base-250: #788080; --wui-color-fg-base-275: #788181; --wui-color-fg-base-300: #6e7777; --wui-color-bg-base-100: #141414; --wui-color-bg-base-125: #191a1a; --wui-color-bg-base-150: #1e1f1f; --wui-color-bg-base-175: #222525; --wui-color-bg-base-200: #272a2a; --wui-color-bg-base-225: #2c3030; --wui-color-bg-base-250: #313535; --wui-color-bg-base-275: #363b3b; --wui-color-bg-base-300: #3b4040; --wui-color-success-base-100: #26d962; --wui-color-error-base-100: #f25a67; --wui-success-glass-001: rgba(38, 217, 98, 0.01); --wui-success-glass-002: rgba(38, 217, 98, 0.02); --wui-success-glass-005: rgba(38, 217, 98, 0.05); --wui-success-glass-010: rgba(38, 217, 98, 0.1); --wui-success-glass-015: rgba(38, 217, 98, 0.15); --wui-success-glass-020: rgba(38, 217, 98, 0.2); --wui-success-glass-025: rgba(38, 217, 98, 0.25); --wui-success-glass-030: rgba(38, 217, 98, 0.3); --wui-success-glass-060: rgba(38, 217, 98, 0.6); --wui-success-glass-080: rgba(38, 217, 98, 0.8); --wui-icon-box-bg-error-base-100: #3c2426; --wui-icon-box-bg-blue-base-100: #20303f; --wui-icon-box-bg-success-base-100: var(--wui-success-glass-015); --wui-icon-box-bg-inverse-base-100: #243240; --wui-all-wallets-bg-base-100: #222b35; --wui-avatar-border-base: #252525; --wui-thumbnail-border-base: #252525; --wui-gray-glass-001: rgba(255, 255, 255, 0.01); --wui-gray-glass-002: rgba(255, 255, 255, 0.02); --wui-gray-glass-005: rgba(255, 255, 255, 0.05); --wui-gray-glass-010: rgba(255, 255, 255, 0.1); --wui-gray-glass-015: rgba(255, 255, 255, 0.15); --wui-gray-glass-020: rgba(255, 255, 255, 0.2); --wui-gray-glass-025: rgba(255, 255, 255, 0.25); --wui-gray-glass-030: rgba(255, 255, 255, 0.3); --wui-gray-glass-060: rgba(255, 255, 255, 0.6); --wui-gray-glass-080: rgba(255, 255, 255, 0.8); } `,dark:r.iv` :root { --w3m-color-mix: ${(0,r.$m)((null===e||void 0===e?void 0:e["--w3m-color-mix"])||"#000")}; --w3m-accent: ${(0,r.$m)((null===e||void 0===e?void 0:e["--w3m-accent"])||"#3396ff")}; --w3m-default: #000; --wui-color-modal-bg-base: #fff; --wui-color-blue-base-100: #3396ff; --wui-color-accent-base-100: var(--w3m-accent); --wui-color-accent-base-090: #2d7dd2; --wui-color-accent-base-080: #2978cc; --wui-accent-glass-base-090: rgba(51, 150, 255, 0.9); --wui-accent-glass-base-080: rgba(51, 150, 255, 0.8); --wui-accent-glass-base-020: rgba(51, 150, 255, 0.2); --wui-accent-glass-base-015: rgba(51, 150, 255, 0.15); --wui-accent-glass-base-010: rgba(51, 150, 255, 0.1); --wui-accent-glass-base-005: rgba(51, 150, 255, 0.05); --wui-accent-glass-base-002: rgba(51, 150, 255, 0.02); --wui-color-fg-base-100: #141414; --wui-color-fg-base-125: #2d3131; --wui-color-fg-base-150: #474d4d; --wui-color-fg-base-175: #636d6d; --wui-color-fg-base-200: #798686; --wui-color-fg-base-225: #828f8f; --wui-color-fg-base-250: #8b9797; --wui-color-fg-base-275: #95a0a0; --wui-color-fg-base-300: #9ea9a9; --wui-color-bg-base-100: #ffffff; --wui-color-bg-base-125: #f5fafa; --wui-color-bg-base-150: #f3f8f8; --wui-color-bg-base-175: #eef4f4; --wui-color-bg-base-200: #eaf1f1; --wui-color-bg-base-225: #e5eded; --wui-color-bg-base-250: #e1e9e9; --wui-color-bg-base-275: #dce7e7; --wui-color-bg-base-300: #d8e3e3; --wui-color-success-base-100: #26b562; --wui-color-error-base-100: #f05142; --wui-success-glass-001: rgba(38, 181, 98, 0.01); --wui-success-glass-002: rgba(38, 181, 98, 0.02); --wui-success-glass-005: rgba(38, 181, 98, 0.05); --wui-success-glass-010: rgba(38, 181, 98, 0.1); --wui-success-glass-015: rgba(38, 181, 98, 0.15); --wui-success-glass-020: rgba(38, 181, 98, 0.2); --wui-success-glass-025: rgba(38, 181, 98, 0.25); --wui-success-glass-030: rgba(38, 181, 98, 0.3); --wui-success-glass-060: rgba(38, 181, 98, 0.6); --wui-success-glass-080: rgba(38, 181, 98, 0.8); --wui-icon-box-bg-error-base-100: #f4dfdd; --wui-icon-box-bg-blue-base-100: #d9ecfb; --wui-icon-box-bg-success-base-100: #daf0e4; --wui-icon-box-bg-inverse-base-100: #dcecfc; --wui-all-wallets-bg-base-100: #e8f1fa; --wui-avatar-border-base: #f3f4f4; --wui-thumbnail-border-base: #eaefef; --wui-gray-glass-001: rgba(0, 0, 0, 0.01); --wui-gray-glass-002: rgba(0, 0, 0, 0.02); --wui-gray-glass-005: rgba(0, 0, 0, 0.05); --wui-gray-glass-010: rgba(0, 0, 0, 0.1); --wui-gray-glass-015: rgba(0, 0, 0, 0.15); --wui-gray-glass-020: rgba(0, 0, 0, 0.2); --wui-gray-glass-025: rgba(0, 0, 0, 0.25); --wui-gray-glass-030: rgba(0, 0, 0, 0.3); --wui-gray-glass-060: rgba(0, 0, 0, 0.6); --wui-gray-glass-080: rgba(0, 0, 0, 0.8); } `}}const d=r.iv` *, *::after, *::before, :host { margin: 0; padding: 0; box-sizing: border-box; font-style: normal; text-rendering: optimizeSpeed; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; font-family: var(--wui-font-family); backface-visibility: hidden; } `,h=r.iv` button, a { cursor: pointer; display: flex; justify-content: center; align-items: center; position: relative; transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg); outline: none; border: 1px solid transparent; column-gap: var(--wui-spacing-3xs); background-color: transparent; text-decoration: none; } @media (hover: hover) and (pointer: fine) { button:hover:enabled { background-color: var(--wui-gray-glass-005); } button:active:enabled { transition: all var(--wui-ease-out-power-2) var(--wui-duration-sm); background-color: var(--wui-gray-glass-010); } button[data-variant='fill']:hover:enabled { background-color: var(--wui-color-accent-090); } button[data-variant='accentBg']:hover:enabled { background: var(--wui-accent-glass-015); } button[data-variant='accentBg']:active:enabled { background: var(--wui-accent-glass-020); } } button:disabled { cursor: not-allowed; background-color: var(--wui-gray-glass-005); } button[data-variant='shade']:disabled, button[data-variant='accent']:disabled, button[data-variant='accentBg']:disabled { background-color: var(--wui-gray-glass-010); color: var(--wui-gray-glass-015); filter: grayscale(1); } button:disabled > wui-wallet-image, button:disabled > wui-all-wallets-image, button:disabled > wui-network-image, button:disabled > wui-image, button:disabled > wui-icon-box, button:disabled > wui-transaction-visual, button:disabled > wui-logo { filter: grayscale(1); } button:focus-visible, a:focus-visible { border: 1px solid var(--wui-color-accent-100); background-color: var(--wui-gray-glass-005); -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); } button[data-variant='fill']:focus-visible { background-color: var(--wui-color-accent-090); } button[data-variant='fill'] { color: var(--wui-color-inverse-100); background-color: var(--wui-color-accent-100); } button[data-variant='fill']:disabled { color: var(--wui-gray-glass-015); background-color: var(--wui-gray-glass-015); } button[data-variant='fill']:disabled > wui-icon { color: var(--wui-gray-glass-015); } button[data-variant='shade'] { color: var(--wui-color-fg-200); } button[data-variant='accent'], button[data-variant='accentBg'] { color: var(--wui-color-accent-100); } button[data-variant='accentBg'] { background: var(--wui-accent-glass-010); border: 1px solid var(--wui-accent-glass-010); } button[data-variant='fullWidth'] { width: 100%; border-radius: var(--wui-border-radius-xs); height: 56px; border: none; background-color: var(--wui-gray-glass-002); color: var(--wui-color-fg-200); gap: var(--wui-spacing-xs); } button:active:enabled { background-color: var(--wui-gray-glass-010); } button[data-variant='fill']:active:enabled { background-color: var(--wui-color-accent-080); border: 1px solid var(--wui-gray-glass-010); } input { border: none; outline: none; appearance: none; } `,p=r.iv` .wui-color-inherit { color: var(--wui-color-inherit); } .wui-color-accent-100 { color: var(--wui-color-accent-100); } .wui-color-error-100 { color: var(--wui-color-error-100); } .wui-color-success-100 { color: var(--wui-color-success-100); } .wui-color-inverse-100 { color: var(--wui-color-inverse-100); } .wui-color-inverse-000 { color: var(--wui-color-inverse-000); } .wui-color-fg-100 { color: var(--wui-color-fg-100); } .wui-color-fg-200 { color: var(--wui-color-fg-200); } .wui-color-fg-300 { color: var(--wui-color-fg-300); } .wui-bg-color-inherit { background-color: var(--wui-color-inherit); } .wui-bg-color-blue-100 { background-color: var(--wui-color-accent-100); } .wui-bg-color-error-100 { background-color: var(--wui-color-error-100); } .wui-bg-color-success-100 { background-color: var(--wui-color-success-100); } .wui-bg-color-inverse-100 { background-color: var(--wui-color-inverse-100); } .wui-bg-color-inverse-000 { background-color: var(--wui-color-inverse-000); } .wui-bg-color-fg-100 { background-color: var(--wui-color-fg-100); } .wui-bg-color-fg-200 { background-color: var(--wui-color-fg-200); } .wui-bg-color-fg-300 { background-color: var(--wui-color-fg-300); } `;function f(e){return function(t){return"function"===typeof t?function(e,t){return customElements.get(e)||customElements.define(e,t),t}(e,t):function(e,t){const{kind:n,elements:r}=t;return{kind:n,elements:r,finisher(t){customElements.get(e)||customElements.define(e,t)}}}(e,t)}}const m=r.iv` :host { display: block; border-radius: clamp(0px, var(--wui-border-radius-l), 44px); border: 1px solid var(--wui-gray-glass-005); background-color: var(--wui-color-modal-bg); overflow: hidden; } `;var g=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let v=class extends r.oi{render(){return r.dy`<slot></slot>`}};v.styles=[d,m],v=g([f("wui-card")],v);var y=n(1444);const b=r.iv` :host { display: flex; aspect-ratio: 1 / 1; color: var(--local-color); width: var(--local-width); } svg { width: inherit; height: inherit; object-fit: contain; object-position: center; } `,w=r.YP`<svg fill="none" viewBox="0 0 24 24"> <path style="fill: var(--wui-color-accent-100);" d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z" /> </svg>`,x=r.YP` <svg width="36" height="36"> <path d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z" fill="url(#a)" /> <path d="m17.845 8.271.729-1.26a1.64 1.64 0 1 1 2.843 1.638l-7.023 12.159h5.08c1.646 0 2.569 1.935 1.853 3.276H6.434a1.632 1.632 0 0 1-1.638-1.638c0-.909.73-1.638 1.638-1.638h4.176l5.345-9.265-1.67-2.898a1.642 1.642 0 0 1 2.844-1.638l.716 1.264Zm-6.317 17.5-1.575 2.732a1.64 1.64 0 1 1-2.844-1.638l1.17-2.025c1.323-.41 2.398-.095 3.249.931Zm13.56-4.954h4.262c.909 0 1.638.729 1.638 1.638 0 .909-.73 1.638-1.638 1.638h-2.367l1.597 2.772c.45.788.185 1.782-.602 2.241a1.642 1.642 0 0 1-2.241-.603c-2.69-4.666-4.711-8.159-6.052-10.485-1.372-2.367-.391-4.743.576-5.549 1.075 1.846 2.682 4.631 4.828 8.348Z" fill="#fff" /> <defs> <linearGradient id="a" x1="18" y1="0" x2="18" y2="36" gradientUnits="userSpaceOnUse"> <stop stop-color="#18BFFB" /> <stop offset="1" stop-color="#2072F3" /> </linearGradient> </defs> </svg>`,C=r.YP`<svg fill="none" viewBox="0 0 40 40"> <g clip-path="url(#a)"> <g clip-path="url(#b)"> <circle cx="20" cy="19.89" r="20" fill="#000" /> <g clip-path="url(#c)"> <path fill="#fff" d="M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z" /> </g> </g> </g> <defs> <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> </defs> </svg>`,E=r.YP`<svg fill="none" viewBox="0 0 14 15"> <path fill="currentColor" fill-rule="evenodd" d="M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z" clip-rule="evenodd" /> </svg>`,S=r.YP`<svg fill="none" viewBox="0 0 14 15"> <path fill="currentColor" fill-rule="evenodd" d="M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z" clip-rule="evenodd" /> </svg>`,k=r.YP`<svg fill="none" viewBox="0 0 14 15"> <path fill="currentColor" fill-rule="evenodd" d="M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z" clip-rule="evenodd" /> </svg>`,_=r.YP`<svg fill="none" viewBox="0 0 14 15"> <path fill="currentColor" fill-rule="evenodd" d="M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z" clip-rule="evenodd" /> </svg>`,P=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" fill-rule="evenodd" d="M4 6.4a1 1 0 0 1-.46.89 6.98 6.98 0 0 0 .38 6.18A7 7 0 0 0 16.46 7.3a1 1 0 0 1-.47-.92 7 7 0 0 0-12 .03Zm-2.02-.5a9 9 0 1 1 16.03 8.2A9 9 0 0 1 1.98 5.9Z" clip-rule="evenodd" /> <path fill="currentColor" fill-rule="evenodd" d="M6.03 8.63c-1.46-.3-2.72-.75-3.6-1.35l-.02-.01-.14-.11a1 1 0 0 1 1.2-1.6l.1.08c.6.4 1.52.74 2.69 1 .16-.99.39-1.88.67-2.65.3-.79.68-1.5 1.15-2.02A2.58 2.58 0 0 1 9.99 1c.8 0 1.45.44 1.92.97.47.52.84 1.23 1.14 2.02.29.77.52 1.66.68 2.64a8 8 0 0 0 2.7-1l.26-.18h.48a1 1 0 0 1 .12 2c-.86.51-2.01.91-3.34 1.18a22.24 22.24 0 0 1-.03 3.19c1.45.29 2.7.73 3.58 1.31a1 1 0 0 1-1.1 1.68c-.6-.4-1.56-.76-2.75-1-.15.8-.36 1.55-.6 2.2-.3.79-.67 1.5-1.14 2.02-.47.53-1.12.97-1.92.97-.8 0-1.45-.44-1.91-.97a6.51 6.51 0 0 1-1.15-2.02c-.24-.65-.44-1.4-.6-2.2-1.18.24-2.13.6-2.73.99a1 1 0 1 1-1.1-1.67c.88-.58 2.12-1.03 3.57-1.31a22.03 22.03 0 0 1-.04-3.2Zm2.2-1.7c.15-.86.34-1.61.58-2.24.24-.65.51-1.12.76-1.4.25-.28.4-.29.42-.29.03 0 .17.01.42.3.25.27.52.74.77 1.4.23.62.43 1.37.57 2.22a19.96 19.96 0 0 1-3.52 0Zm-.18 4.6a20.1 20.1 0 0 1-.03-2.62 21.95 21.95 0 0 0 3.94 0 20.4 20.4 0 0 1-.03 2.63 21.97 21.97 0 0 0-3.88 0Zm.27 2c.13.66.3 1.26.49 1.78.24.65.51 1.12.76 1.4.25.28.4.29.42.29.03 0 .17-.01.42-.3.25-.27.52-.74.77-1.4.19-.5.36-1.1.49-1.78a20.03 20.03 0 0 0-3.35 0Z" clip-rule="evenodd" /> </svg>`,A=r.YP`<svg fill="none" viewBox="0 0 14 15"> <path fill="currentColor" fill-rule="evenodd" d="M12.04 2.65c.47.3.6.91.3 1.38l-5.78 9a1 1 0 0 1-1.61.1L1.73 9.27A1 1 0 1 1 3.27 8L5.6 10.8l5.05-7.85a1 1 0 0 1 1.38-.3Z" clip-rule="evenodd" /> </svg>`,R=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M1.46 4.96a1 1 0 0 1 1.41 0L8 10.09l5.13-5.13a1 1 0 1 1 1.41 1.41l-5.83 5.84a1 1 0 0 1-1.42 0L1.46 6.37a1 1 0 0 1 0-1.41Z" clip-rule="evenodd" /> </svg>`,O=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M11.04 1.46a1 1 0 0 1 0 1.41L5.91 8l5.13 5.13a1 1 0 1 1-1.41 1.41L3.79 8.71a1 1 0 0 1 0-1.42l5.84-5.83a1 1 0 0 1 1.41 0Z" clip-rule="evenodd" /> </svg>`,T=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M4.96 14.54a1 1 0 0 1 0-1.41L10.09 8 4.96 2.87a1 1 0 0 1 1.41-1.41l5.84 5.83a1 1 0 0 1 0 1.42l-5.84 5.83a1 1 0 0 1-1.41 0Z" clip-rule="evenodd" /> </svg>`,I=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M14.54 11.04a1 1 0 0 1-1.41 0L8 5.92l-5.13 5.12a1 1 0 1 1-1.41-1.41l5.83-5.84a1 1 0 0 1 1.42 0l5.83 5.84a1 1 0 0 1 0 1.41Z" clip-rule="evenodd" /> </svg>`,N=r.YP`<svg width="36" height="36" fill="none"> <path fill="#fff" fill-opacity=".05" d="M0 14.94c0-5.55 0-8.326 1.182-10.4a9 9 0 0 1 3.359-3.358C6.614 0 9.389 0 14.94 0h6.12c5.55 0 8.326 0 10.4 1.182a9 9 0 0 1 3.358 3.359C36 6.614 36 9.389 36 14.94v6.12c0 5.55 0 8.326-1.182 10.4a9 9 0 0 1-3.359 3.358C29.386 36 26.611 36 21.06 36h-6.12c-5.55 0-8.326 0-10.4-1.182a9 9 0 0 1-3.358-3.359C0 29.386 0 26.611 0 21.06v-6.12Z" /> <path stroke="#fff" stroke-opacity=".05" d="M14.94.5h6.12c2.785 0 4.84 0 6.46.146 1.612.144 2.743.43 3.691.97a8.5 8.5 0 0 1 3.172 3.173c.541.948.826 2.08.971 3.692.145 1.62.146 3.675.146 6.459v6.12c0 2.785 0 4.84-.146 6.46-.145 1.612-.43 2.743-.97 3.691a8.5 8.5 0 0 1-3.173 3.172c-.948.541-2.08.826-3.692.971-1.62.145-3.674.146-6.459.146h-6.12c-2.784 0-4.84 0-6.46-.146-1.612-.145-2.743-.43-3.691-.97a8.5 8.5 0 0 1-3.172-3.173c-.541-.948-.827-2.08-.971-3.692C.5 25.9.5 23.845.5 21.06v-6.12c0-2.784 0-4.84.146-6.46.144-1.612.43-2.743.97-3.691A8.5 8.5 0 0 1 4.79 1.617C5.737 1.076 6.869.79 8.48.646 10.1.5 12.156.5 14.94.5Z" /> <path fill="url(#a)" d="M17.998 10.8h12.469a14.397 14.397 0 0 0-24.938.001l6.234 10.798.006-.001a7.19 7.19 0 0 1 6.23-10.799Z" /> <path fill="url(#b)" d="m24.237 21.598-6.234 10.798A14.397 14.397 0 0 0 30.47 10.798H18.002l-.002.006a7.191 7.191 0 0 1 6.237 10.794Z" /> <path fill="url(#c)" d="M11.765 21.601 5.531 10.803A14.396 14.396 0 0 0 18.001 32.4l6.235-10.798-.004-.004a7.19 7.19 0 0 1-12.466.004Z" /> <path fill="#fff" d="M18 25.2a7.2 7.2 0 1 0 0-14.4 7.2 7.2 0 0 0 0 14.4Z" /> <path fill="#1A73E8" d="M18 23.7a5.7 5.7 0 1 0 0-11.4 5.7 5.7 0 0 0 0 11.4Z" /> <defs> <linearGradient id="a" x1="6.294" x2="41.1" y1="5.995" y2="5.995" gradientUnits="userSpaceOnUse" > <stop stop-color="#D93025" /> <stop offset="1" stop-color="#EA4335" /> </linearGradient> <linearGradient id="b" x1="20.953" x2="37.194" y1="32.143" y2="2.701" gradientUnits="userSpaceOnUse" > <stop stop-color="#FCC934" /> <stop offset="1" stop-color="#FBBC04" /> </linearGradient> <linearGradient id="c" x1="25.873" x2="9.632" y1="31.2" y2="1.759" gradientUnits="userSpaceOnUse" > <stop stop-color="#1E8E3E" /> <stop offset="1" stop-color="#34A853" /> </linearGradient> </defs> </svg>`,$=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M7 2.99a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm-7 5a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-4a1 1 0 0 1 1 1v2.58l1.85 1.85a1 1 0 0 1-1.41 1.42L6.29 8.69A1 1 0 0 1 6 8v-3a1 1 0 0 1 1-1Z" clip-rule="evenodd" /> </svg>`,M=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M2.54 2.54a1 1 0 0 1 1.42 0L8 6.6l4.04-4.05a1 1 0 1 1 1.42 1.42L9.4 8l4.05 4.04a1 1 0 0 1-1.42 1.42L8 9.4l-4.04 4.05a1 1 0 0 1-1.42-1.42L6.6 8 2.54 3.96a1 1 0 0 1 0-1.42Z" clip-rule="evenodd" /> </svg>`,j=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" fill-rule="evenodd" d="M10 3a7 7 0 0 0-6.85 8.44l8.29-8.3C10.97 3.06 10.49 3 10 3Zm3.49.93-9.56 9.56c.32.55.71 1.06 1.16 1.5L15 5.1a7.03 7.03 0 0 0-1.5-1.16Zm2.7 2.8-9.46 9.46a7 7 0 0 0 9.46-9.46ZM1.99 5.9A9 9 0 1 1 18 14.09 9 9 0 0 1 1.98 5.91Z" clip-rule="evenodd" /> </svg>`,L=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm10.66-2.65a1 1 0 0 1 .23 1.06L9.83 9.24a1 1 0 0 1-.59.58l-2.83 1.06A1 1 0 0 1 5.13 9.6l1.06-2.82a1 1 0 0 1 .58-.59L9.6 5.12a1 1 0 0 1 1.06.23ZM7.9 7.89l-.13.35.35-.13.12-.35-.34.13Z" clip-rule="evenodd" /> </svg>`,D=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M9.5 0h1.67c.68 0 1.26 0 1.73.04.5.05.97.14 1.42.4.52.3.95.72 1.24 1.24.26.45.35.92.4 1.42.04.47.04 1.05.04 1.73V6.5c0 .69 0 1.26-.04 1.74-.05.5-.14.97-.4 1.41-.3.52-.72.95-1.24 1.25-.45.25-.92.35-1.42.4-.43.03-.95.03-1.57.03 0 .62 0 1.14-.04 1.57-.04.5-.14.97-.4 1.42-.29.52-.72.95-1.24 1.24-.44.26-.92.35-1.41.4-.48.04-1.05.04-1.74.04H4.83c-.68 0-1.26 0-1.73-.04-.5-.05-.97-.14-1.42-.4-.52-.3-.95-.72-1.24-1.24a3.39 3.39 0 0 1-.4-1.42A20.9 20.9 0 0 1 0 11.17V9.5c0-.69 0-1.26.04-1.74.05-.5.14-.97.4-1.41.3-.52.72-.95 1.24-1.25.45-.25.92-.35 1.42-.4.43-.03.95-.03 1.57-.03 0-.62 0-1.14.04-1.57.04-.5.14-.97.4-1.42.29-.52.72-.95 1.24-1.24.44-.26.92-.35 1.41-.4A20.9 20.9 0 0 1 9.5 0ZM4.67 6.67c-.63 0-1.06 0-1.4.03-.35.03-.5.09-.6.14-.2.12-.38.3-.5.5-.05.1-.1.24-.14.6C2 8.32 2 8.8 2 9.54v1.59c0 .73 0 1.22.03 1.6.04.35.1.5.15.6.11.2.29.38.5.5.09.05.24.1.6.14.37.03.86.03 1.6.03h1.58c.74 0 1.22 0 1.6-.03.36-.04.5-.1.6-.15.2-.11.38-.29.5-.5.05-.09.1-.24.14-.6.03-.33.03-.76.03-1.39-.6 0-1.13 0-1.57-.04-.5-.04-.97-.14-1.41-.4-.52-.29-.95-.72-1.25-1.24a3.39 3.39 0 0 1-.4-1.41c-.03-.44-.03-.96-.03-1.57Zm3.27-4.64c-.36.04-.5.1-.6.15-.2.11-.38.29-.5.5-.05.09-.1.24-.14.6-.03.37-.03.86-.03 1.6v1.58c0 .74 0 1.22.03 1.6.03.36.09.5.14.6.12.2.3.38.5.5.1.05.24.1.6.14.38.03.86.03 1.6.03h1.59c.73 0 1.22 0 1.6-.03.35-.03.5-.09.6-.14.2-.12.38-.3.5-.5.05-.1.1-.24.14-.6.03-.38.03-.86.03-1.6V4.87c0-.73 0-1.22-.03-1.6a1.46 1.46 0 0 0-.15-.6c-.11-.2-.29-.38-.5-.5-.09-.05-.24-.1-.6-.14-.37-.03-.86-.03-1.6-.03H9.55c-.74 0-1.22 0-1.6.03Z" clip-rule="evenodd" /> </svg>`,B=r.YP` <svg fill="none" viewBox="0 0 13 4"> <path fill="currentColor" d="M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z" /> </svg>`,U=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" fill-rule="evenodd" d="M13.66 2H6.34c-1.07 0-1.96 0-2.68.08-.74.08-1.42.25-2.01.68a4 4 0 0 0-.89.89c-.43.6-.6 1.27-.68 2.01C0 6.38 0 7.26 0 8.34v.89c0 1.07 0 1.96.08 2.68.08.74.25 1.42.68 2.01a4 4 0 0 0 .89.89c.6.43 1.27.6 2.01.68a27 27 0 0 0 2.68.08h7.32a27 27 0 0 0 2.68-.08 4.03 4.03 0 0 0 2.01-.68 4 4 0 0 0 .89-.89c.43-.6.6-1.27.68-2.01.08-.72.08-1.6.08-2.68v-.89c0-1.07 0-1.96-.08-2.68a4.04 4.04 0 0 0-.68-2.01 4 4 0 0 0-.89-.89c-.6-.43-1.27-.6-2.01-.68C15.62 2 14.74 2 13.66 2ZM2.82 4.38c.2-.14.48-.25 1.06-.31C4.48 4 5.25 4 6.4 4h7.2c1.15 0 1.93 0 2.52.07.58.06.86.17 1.06.31a2 2 0 0 1 .44.44c.14.2.25.48.31 1.06.07.6.07 1.37.07 2.52v.77c0 1.15 0 1.93-.07 2.52-.06.58-.17.86-.31 1.06a2 2 0 0 1-.44.44c-.2.14-.48.25-1.06.32-.6.06-1.37.06-2.52.06H6.4c-1.15 0-1.93 0-2.52-.06-.58-.07-.86-.18-1.06-.32a2 2 0 0 1-.44-.44c-.14-.2-.25-.48-.31-1.06C2 11.1 2 10.32 2 9.17V8.4c0-1.15 0-1.93.07-2.52.06-.58.17-.86.31-1.06a2 2 0 0 1 .44-.44Z" clip-rule="evenodd" /> <path fill="currentColor" d="M6.14 17.57a1 1 0 1 0 0 2h7.72a1 1 0 1 0 0-2H6.14Z" /> </svg>`,F=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M6.07 1h.57a1 1 0 0 1 0 2h-.52c-.98 0-1.64 0-2.14.06-.48.05-.7.14-.84.24-.13.1-.25.22-.34.35-.1.14-.2.35-.25.83-.05.5-.05 1.16-.05 2.15v2.74c0 .99 0 1.65.05 2.15.05.48.14.7.25.83.1.14.2.25.34.35.14.1.36.2.84.25.5.05 1.16.05 2.14.05h.52a1 1 0 0 1 0 2h-.57c-.92 0-1.69 0-2.3-.07a3.6 3.6 0 0 1-1.8-.61c-.3-.22-.57-.49-.8-.8a3.6 3.6 0 0 1-.6-1.79C.5 11.11.5 10.35.5 9.43V6.58c0-.92 0-1.7.06-2.31a3.6 3.6 0 0 1 .62-1.8c.22-.3.48-.57.79-.79a3.6 3.6 0 0 1 1.8-.61C4.37 1 5.14 1 6.06 1ZM9.5 3a1 1 0 0 1 1.42 0l4.28 4.3a1 1 0 0 1 0 1.4L10.93 13a1 1 0 0 1-1.42-1.42L12.1 9H6.8a1 1 0 1 1 0-2h5.3L9.51 4.42a1 1 0 0 1 0-1.41Z" clip-rule="evenodd" /> </svg>`,z=r.YP`<svg fill="none" viewBox="0 0 40 40"> <g clip-path="url(#a)"> <g clip-path="url(#b)"> <circle cx="20" cy="19.89" r="20" fill="#5865F2" /> <path fill="#fff" fill-rule="evenodd" d="M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z" clip-rule="evenodd" /> </g> </g> <defs> <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> </defs> </svg>`,W=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z" /> </svg>`,Z=r.YP`<svg fill="none" viewBox="0 0 14 15"> <path fill="currentColor" fill-rule="evenodd" d="M6.71 2.99a.57.57 0 0 0-.57.57 1 1 0 0 1-1 1c-.58 0-.96 0-1.24.03-.27.03-.37.07-.42.1a.97.97 0 0 0-.36.35c-.04.08-.09.21-.11.67a2.57 2.57 0 0 1 0 5.13c.02.45.07.6.11.66.09.15.21.28.36.36.07.04.21.1.67.12a2.57 2.57 0 0 1 5.12 0c.46-.03.6-.08.67-.12a.97.97 0 0 0 .36-.36c.03-.04.07-.14.1-.41.02-.29.03-.66.03-1.24a1 1 0 0 1 1-1 .57.57 0 0 0 0-1.15 1 1 0 0 1-1-1c0-.58 0-.95-.03-1.24a1.04 1.04 0 0 0-.1-.42.97.97 0 0 0-.36-.36 1.04 1.04 0 0 0-.42-.1c-.28-.02-.65-.02-1.24-.02a1 1 0 0 1-1-1 .57.57 0 0 0-.57-.57ZM5.15 13.98a1 1 0 0 0 .99-1v-.78a.57.57 0 0 1 1.14 0v.78a1 1 0 0 0 .99 1H8.36a66.26 66.26 0 0 0 .73 0 3.78 3.78 0 0 0 1.84-.38c.46-.26.85-.64 1.1-1.1.23-.4.32-.8.36-1.22.02-.2.03-.4.03-.63a2.57 2.57 0 0 0 0-4.75c0-.23-.01-.44-.03-.63a2.96 2.96 0 0 0-.35-1.22 2.97 2.97 0 0 0-1.1-1.1c-.4-.22-.8-.31-1.22-.35a8.7 8.7 0 0 0-.64-.04 2.57 2.57 0 0 0-4.74 0c-.23 0-.44.02-.63.04-.42.04-.83.13-1.22.35-.46.26-.84.64-1.1 1.1-.33.57-.37 1.2-.39 1.84a21.39 21.39 0 0 0 0 .72v.1a1 1 0 0 0 1 .99h.78a.57.57 0 0 1 0 1.15h-.77a1 1 0 0 0-1 .98v.1a63.87 63.87 0 0 0 0 .73c0 .64.05 1.27.38 1.83.26.47.64.85 1.1 1.11.56.32 1.2.37 1.84.38a20.93 20.93 0 0 0 .72 0h.1Z" clip-rule="evenodd" /> </svg>`,H=r.YP`<svg fill="none" viewBox="0 0 14 15"> <path fill="currentColor" fill-rule="evenodd" d="M3.74 3.99a1 1 0 0 1 1-1H11a1 1 0 0 1 1 1v6.26a1 1 0 0 1-2 0V6.4l-6.3 6.3a1 1 0 0 1-1.4-1.42l6.29-6.3H4.74a1 1 0 0 1-1-1Z" clip-rule="evenodd" /> </svg>`,V=r.YP`<svg fill="none" viewBox="0 0 40 40"> <g clip-path="url(#a)"> <g clip-path="url(#b)"> <circle cx="20" cy="19.89" r="20" fill="#1877F2" /> <g clip-path="url(#c)"> <path fill="#fff" d="M26 12.38h-2.89c-.92 0-1.61.38-1.61 1.34v1.66H26l-.36 4.5H21.5v12H17v-12h-3v-4.5h3V12.5c0-3.03 1.6-4.62 5.2-4.62H26v4.5Z" /> </g> </g> <path fill="#1877F2" d="M40 20a20 20 0 1 0-23.13 19.76V25.78H11.8V20h5.07v-4.4c0-5.02 3-7.79 7.56-7.79 2.19 0 4.48.4 4.48.4v4.91h-2.53c-2.48 0-3.25 1.55-3.25 3.13V20h5.54l-.88 5.78h-4.66v13.98A20 20 0 0 0 40 20Z" /> <path fill="#fff" d="m27.79 25.78.88-5.78h-5.55v-3.75c0-1.58.78-3.13 3.26-3.13h2.53V8.2s-2.3-.39-4.48-.39c-4.57 0-7.55 2.77-7.55 7.78V20H11.8v5.78h5.07v13.98a20.15 20.15 0 0 0 6.25 0V25.78h4.67Z" /> </g> <defs> <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> </defs> </svg>`,q=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M0 3a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm2.63 5.25a1 1 0 0 1 1-1h8.75a1 1 0 1 1 0 2H3.63a1 1 0 0 1-1-1Zm2.62 5.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 0 2h-3.5a1 1 0 0 1-1-1Z" clip-rule="evenodd" /> </svg>`,G=r.YP`<svg fill="none" viewBox="0 0 40 40"> <g clip-path="url(#a)"> <g clip-path="url(#b)"> <circle cx="20" cy="19.89" r="20" fill="#1B1F23" /> <g clip-path="url(#c)"> <path fill="#fff" d="M8 19.89a12 12 0 1 1 15.8 11.38c-.6.12-.8-.26-.8-.57v-3.3c0-1.12-.4-1.85-.82-2.22 2.67-.3 5.48-1.31 5.48-5.92 0-1.31-.47-2.38-1.24-3.22.13-.3.54-1.52-.12-3.18 0 0-1-.32-3.3 1.23a11.54 11.54 0 0 0-6 0c-2.3-1.55-3.3-1.23-3.3-1.23a4.32 4.32 0 0 0-.12 3.18 4.64 4.64 0 0 0-1.24 3.22c0 4.6 2.8 5.63 5.47 5.93-.34.3-.65.83-.76 1.6-.69.31-2.42.84-3.5-1 0 0-.63-1.15-1.83-1.23 0 0-1.18-.02-.09.73 0 0 .8.37 1.34 1.76 0 0 .7 2.14 4.03 1.41v2.24c0 .31-.2.68-.8.57A12 12 0 0 1 8 19.9Z" /> </g> </g> </g> <defs> <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> </defs> </svg>`,K=r.YP`<svg fill="none" viewBox="0 0 40 40"> <g clip-path="url(#a)"> <g clip-path="url(#b)"> <circle cx="20" cy="19.89" r="20" fill="#fff" fill-opacity=".05" /> <g clip-path="url(#c)"> <path fill="#4285F4" d="M20 17.7v4.65h6.46a5.53 5.53 0 0 1-2.41 3.61l3.9 3.02c2.26-2.09 3.57-5.17 3.57-8.82 0-.85-.08-1.67-.22-2.46H20Z" /> <path fill="#34A853" d="m13.27 22.17-.87.67-3.11 2.42A12 12 0 0 0 20 31.9c3.24 0 5.96-1.07 7.94-2.9l-3.9-3.03A7.15 7.15 0 0 1 20 27.12a7.16 7.16 0 0 1-6.72-4.94v-.01Z" /> <path fill="#FBBC05" d="M9.29 14.5a11.85 11.85 0 0 0 0 10.76l3.99-3.1a7.19 7.19 0 0 1 0-4.55l-4-3.1Z" /> <path fill="#EA4335" d="M20 12.66c1.77 0 3.34.61 4.6 1.8l3.43-3.44A11.51 11.51 0 0 0 20 7.89c-4.7 0-8.74 2.69-10.71 6.62l3.99 3.1A7.16 7.16 0 0 1 20 12.66Z" /> </g> </g> </g> <defs> <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> </defs> </svg>`,Y=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" d="M8.51 5.66a.83.83 0 0 0-.57-.2.83.83 0 0 0-.52.28.8.8 0 0 0-.25.52 1 1 0 0 1-2 0c0-.75.34-1.43.81-1.91a2.75 2.75 0 0 1 4.78 1.92c0 1.24-.8 1.86-1.25 2.2l-.04.03c-.47.36-.5.43-.5.65a1 1 0 1 1-2 0c0-1.25.8-1.86 1.24-2.2l.04-.04c.47-.36.5-.43.5-.65 0-.3-.1-.49-.24-.6ZM9.12 11.87a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0Z" /> <path fill="currentColor" fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z" clip-rule="evenodd" /> </svg>`,Q=r.YP`<svg fill="none" viewBox="0 0 14 15"> <path fill="currentColor" d="M6 10.49a1 1 0 1 0 2 0v-2a1 1 0 0 0-2 0v2ZM7 4.49a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z" /> <path fill="currentColor" fill-rule="evenodd" d="M7 14.99a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm5-7a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" clip-rule="evenodd" /> </svg>`,X=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M4.83 1.34h6.34c.68 0 1.26 0 1.73.04.5.05.97.15 1.42.4.52.3.95.72 1.24 1.24.26.45.35.92.4 1.42.04.47.04 1.05.04 1.73v3.71c0 .69 0 1.26-.04 1.74-.05.5-.14.97-.4 1.41-.3.52-.72.95-1.24 1.25-.45.25-.92.35-1.42.4-.47.03-1.05.03-1.73.03H4.83c-.68 0-1.26 0-1.73-.04-.5-.04-.97-.14-1.42-.4-.52-.29-.95-.72-1.24-1.24a3.39 3.39 0 0 1-.4-1.41A20.9 20.9 0 0 1 0 9.88v-3.7c0-.7 0-1.27.04-1.74.05-.5.14-.97.4-1.42.3-.52.72-.95 1.24-1.24.45-.25.92-.35 1.42-.4.47-.04 1.05-.04 1.73-.04ZM3.28 3.38c-.36.03-.51.08-.6.14-.21.11-.39.29-.5.5a.8.8 0 0 0-.08.19l5.16 3.44c.45.3 1.03.3 1.48 0L13.9 4.2a.79.79 0 0 0-.08-.2c-.11-.2-.29-.38-.5-.5-.09-.05-.24-.1-.6-.13-.37-.04-.86-.04-1.6-.04H4.88c-.73 0-1.22 0-1.6.04ZM14 6.54 9.85 9.31a3.33 3.33 0 0 1-3.7 0L2 6.54v3.3c0 .74 0 1.22.03 1.6.04.36.1.5.15.6.11.2.29.38.5.5.09.05.24.1.6.14.37.03.86.03 1.6.03h6.25c.73 0 1.22 0 1.6-.03.35-.03.5-.09.6-.14.2-.12.38-.3.5-.5.05-.1.1-.24.14-.6.03-.38.03-.86.03-1.6v-3.3Z" clip-rule="evenodd" /> </svg>`,J=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" d="M10.81 5.81a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" /> <path fill="currentColor" fill-rule="evenodd" d="M3 4.75A4.75 4.75 0 0 1 7.75 0h4.5A4.75 4.75 0 0 1 17 4.75v10.5A4.75 4.75 0 0 1 12.25 20h-4.5A4.75 4.75 0 0 1 3 15.25V4.75ZM7.75 2A2.75 2.75 0 0 0 5 4.75v10.5A2.75 2.75 0 0 0 7.75 18h4.5A2.75 2.75 0 0 0 15 15.25V4.75A2.75 2.75 0 0 0 12.25 2h-4.5Z" clip-rule="evenodd" /> </svg>`,ee=r.YP`<svg fill="none" viewBox="0 0 22 20"> <path fill="currentColor" fill-rule="evenodd" d="M16.32 13.62a3.14 3.14 0 1 1-.99 1.72l-1.6-.93a3.83 3.83 0 0 1-3.71 1 3.66 3.66 0 0 1-1.74-1l-1.6.94a3.14 3.14 0 1 1-1-1.73l1.6-.94a3.7 3.7 0 0 1 0-2 3.81 3.81 0 0 1 1.8-2.33c.29-.17.6-.3.92-.38V6.1a3.14 3.14 0 1 1 2 0l-.01.02v1.85H12a3.82 3.82 0 0 1 2.33 1.8 3.7 3.7 0 0 1 .39 2.91l1.6.93ZM2.6 16.54a1.14 1.14 0 0 0 1.98-1.14 1.14 1.14 0 0 0-1.98 1.14ZM11 2.01a1.14 1.14 0 1 0 0 2.28 1.14 1.14 0 0 0 0-2.28Zm1.68 10.45c.08-.19.14-.38.16-.58v-.05l.02-.13v-.13a1.92 1.92 0 0 0-.24-.8l-.11-.15a1.89 1.89 0 0 0-.74-.6 1.86 1.86 0 0 0-.77-.17h-.19a1.97 1.97 0 0 0-.89.34 1.98 1.98 0 0 0-.61.74 1.99 1.99 0 0 0-.16.9v.05a1.87 1.87 0 0 0 .24.74l.1.15c.12.16.26.3.42.42l.16.1.13.07.04.02a1.84 1.84 0 0 0 .76.17h.17a2 2 0 0 0 .91-.35 1.78 1.78 0 0 0 .52-.58l.03-.05a.84.84 0 0 0 .05-.11Zm5.15 4.5a1.14 1.14 0 0 0 1.14-1.97 1.13 1.13 0 0 0-1.55.41c-.32.55-.13 1.25.41 1.56Z" clip-rule="evenodd" /> <path fill="currentColor" fill-rule="evenodd" d="M4.63 9.43a1.5 1.5 0 1 0 1.5-2.6 1.5 1.5 0 0 0-1.5 2.6Zm.32-1.55a.5.5 0 0 1 .68-.19.5.5 0 0 1 .18.68.5.5 0 0 1-.68.19.5.5 0 0 1-.18-.68ZM17.94 8.88a1.5 1.5 0 1 1-2.6-1.5 1.5 1.5 0 1 1 2.6 1.5ZM16.9 7.69a.5.5 0 0 0-.68.19.5.5 0 0 0 .18.68.5.5 0 0 0 .68-.19.5.5 0 0 0-.18-.68ZM9.75 17.75a1.5 1.5 0 1 1 2.6 1.5 1.5 1.5 0 1 1-2.6-1.5Zm1.05 1.18a.5.5 0 0 0 .68-.18.5.5 0 0 0-.18-.68.5.5 0 0 0-.68.18.5.5 0 0 0 .18.68Z" clip-rule="evenodd" /> </svg>`,te=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" fill-rule="evenodd" d="M9.13 1h1.71c1.46 0 2.63 0 3.56.1.97.1 1.8.33 2.53.85a5 5 0 0 1 1.1 1.11c.53.73.75 1.56.86 2.53.1.93.1 2.1.1 3.55v1.72c0 1.45 0 2.62-.1 3.55-.1.97-.33 1.8-.86 2.53a5 5 0 0 1-1.1 1.1c-.73.53-1.56.75-2.53.86-.93.1-2.1.1-3.55.1H9.13c-1.45 0-2.62 0-3.56-.1-.96-.1-1.8-.33-2.52-.85a5 5 0 0 1-1.1-1.11 5.05 5.05 0 0 1-.86-2.53c-.1-.93-.1-2.1-.1-3.55V9.14c0-1.45 0-2.62.1-3.55.1-.97.33-1.8.85-2.53a5 5 0 0 1 1.1-1.1 5.05 5.05 0 0 1 2.53-.86C6.51 1 7.67 1 9.13 1ZM5.79 3.09a3.1 3.1 0 0 0-1.57.48 3 3 0 0 0-.66.67c-.24.32-.4.77-.48 1.56-.1.82-.1 1.88-.1 3.4v1.6c0 1.15 0 2.04.05 2.76l.41-.42c.5-.5.93-.92 1.32-1.24.41-.33.86-.6 1.43-.7a3 3 0 0 1 .94 0c.35.06.66.2.95.37a17.11 17.11 0 0 0 .8.45c.1-.08.2-.2.41-.4l.04-.03a27 27 0 0 1 1.95-1.84 4.03 4.03 0 0 1 1.91-.94 4 4 0 0 1 1.25 0c.73.11 1.33.46 1.91.94l.64.55V9.2c0-1.52 0-2.58-.1-3.4a3.1 3.1 0 0 0-.48-1.56 3 3 0 0 0-.66-.67 3.1 3.1 0 0 0-1.56-.48C13.37 3 12.3 3 10.79 3h-1.6c-1.52 0-2.59 0-3.4.09Zm11.18 10-.04-.05a26.24 26.24 0 0 0-1.83-1.74c-.45-.36-.73-.48-.97-.52a2 2 0 0 0-.63 0c-.24.04-.51.16-.97.52-.46.38-1.01.93-1.83 1.74l-.02.02c-.17.18-.34.34-.49.47a2.04 2.04 0 0 1-1.08.5 1.97 1.97 0 0 1-1.25-.27l-.79-.46-.02-.02a.65.65 0 0 0-.24-.1 1 1 0 0 0-.31 0c-.08.02-.21.06-.49.28-.3.24-.65.59-1.2 1.14l-.56.56-.65.66a3 3 0 0 0 .62.6c.33.24.77.4 1.57.49.81.09 1.88.09 3.4.09h1.6c1.52 0 2.58 0 3.4-.09a3.1 3.1 0 0 0 1.56-.48 3 3 0 0 0 .66-.67c.24-.32.4-.77.49-1.56l.07-1.12Zm-8.02-1.03ZM4.99 7a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z" clip-rule="evenodd" /> </svg>`,ne=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M8 0a1 1 0 0 1 1 1v5.38a1 1 0 0 1-2 0V1a1 1 0 0 1 1-1ZM5.26 2.6a1 1 0 0 1-.28 1.39 5.46 5.46 0 1 0 6.04 0 1 1 0 1 1 1.1-1.67 7.46 7.46 0 1 1-8.25 0 1 1 0 0 1 1.4.28Z" clip-rule="evenodd" /> </svg>`,re=r.YP` <svg width="36" height="36" fill="none" > <path d="M0 8a8 8 0 0 1 8-8h20a8 8 0 0 1 8 8v20a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8Z" fill="#fff" fill-opacity=".05" /> <path d="m18.262 17.513-8.944 9.49v.01a2.417 2.417 0 0 0 3.56 1.452l.026-.017 10.061-5.803-4.703-5.132Z" fill="#EA4335" /> <path d="m27.307 15.9-.008-.008-4.342-2.52-4.896 4.36 4.913 4.912 4.325-2.494a2.42 2.42 0 0 0 .008-4.25Z" fill="#FBBC04" /> <path d="M9.318 8.997c-.05.202-.084.403-.084.622V26.39c0 .218.025.42.084.621l9.246-9.247-9.246-8.768Z" fill="#4285F4" /> <path d="m18.33 18 4.627-4.628-10.053-5.828a2.427 2.427 0 0 0-3.586 1.444L18.329 18Z" fill="#34A853" /> <path d="M8 .5h20A7.5 7.5 0 0 1 35.5 8v20a7.5 7.5 0 0 1-7.5 7.5H8A7.5 7.5 0 0 1 .5 28V8A7.5 7.5 0 0 1 8 .5Z" stroke="#fff" stroke-opacity=".05" /> </svg>`,ie=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" d="M3 6a3 3 0 0 1 3-3h1a1 1 0 1 0 0-2H6a5 5 0 0 0-5 5v1a1 1 0 0 0 2 0V6ZM13 1a1 1 0 1 0 0 2h1a3 3 0 0 1 3 3v1a1 1 0 1 0 2 0V6a5 5 0 0 0-5-5h-1ZM3 13a1 1 0 1 0-2 0v1a5 5 0 0 0 5 5h1a1 1 0 1 0 0-2H6a3 3 0 0 1-3-3v-1ZM19 13a1 1 0 1 0-2 0v1a3 3 0 0 1-3 3h-1a1 1 0 1 0 0 2h1.01a5 5 0 0 0 5-5v-1ZM5.3 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05A1.5 1.5 0 0 0 9.2 8.14c.06-.2.06-.43.06-.89s0-.7-.06-.89A1.5 1.5 0 0 0 8.14 5.3c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM10.8 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM5.26 12.75c0-.46 0-.7.05-.89a1.5 1.5 0 0 1 1.06-1.06c.19-.05.42-.05.89-.05.46 0 .7 0 .88.05.52.14.93.54 1.06 1.06.06.2.06.43.06.89s0 .7-.06.89a1.5 1.5 0 0 1-1.06 1.06c-.19.05-.42.05-.88.05-.47 0-.7 0-.9-.05a1.5 1.5 0 0 1-1.05-1.06c-.05-.2-.05-.43-.05-.89ZM10.8 11.86c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06Z" /> </svg>`,oe=r.YP`<svg fill="none" viewBox="0 0 14 16"> <path fill="currentColor" fill-rule="evenodd" d="M3.94 1.04a1 1 0 0 1 .7 1.23l-.48 1.68a5.85 5.85 0 0 1 8.53 4.32 5.86 5.86 0 0 1-11.4 2.56 1 1 0 0 1 1.9-.57 3.86 3.86 0 1 0 1.83-4.5l1.87.53a1 1 0 0 1-.55 1.92l-4.1-1.15a1 1 0 0 1-.69-1.23l1.16-4.1a1 1 0 0 1 1.23-.7Z" clip-rule="evenodd" /> </svg>`,ae=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" fill-rule="evenodd" d="M9.36 4.21a5.14 5.14 0 1 0 0 10.29 5.14 5.14 0 0 0 0-10.29ZM1.64 9.36a7.71 7.71 0 1 1 14 4.47l2.52 2.5a1.29 1.29 0 1 1-1.82 1.83l-2.51-2.51A7.71 7.71 0 0 1 1.65 9.36Z" clip-rule="evenodd" /> </svg>`,se=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" fill-rule="evenodd" d="M6.76.3a1 1 0 0 1 0 1.4L4.07 4.4h9a1 1 0 1 1 0 2h-9l2.69 2.68a1 1 0 1 1-1.42 1.42L.95 6.09a1 1 0 0 1 0-1.4l4.4-4.4a1 1 0 0 1 1.4 0Zm6.49 9.21a1 1 0 0 1 1.41 0l4.39 4.4a1 1 0 0 1 0 1.4l-4.39 4.4a1 1 0 0 1-1.41-1.42l2.68-2.68h-9a1 1 0 0 1 0-2h9l-2.68-2.68a1 1 0 0 1 0-1.42Z" clip-rule="evenodd" /> </svg>`,le=r.YP`<svg width="10" height="10" viewBox="0 0 10 10"> <path fill="currentColor" fill-rule="evenodd" d="M3.77986 0.566631C4.0589 0.845577 4.0589 1.29784 3.77986 1.57678L3.08261 2.2738H6.34184C6.73647 2.2738 7.05637 2.5936 7.05637 2.98808C7.05637 3.38257 6.73647 3.70237 6.34184 3.70237H3.08261L3.77986 4.39938C4.0589 4.67833 4.0589 5.13059 3.77986 5.40954C3.50082 5.68848 3.04841 5.68848 2.76937 5.40954L0.852346 3.49316C0.573306 3.21421 0.573306 2.76195 0.852346 2.48301L2.76937 0.566631C3.04841 0.287685 3.50082 0.287685 3.77986 0.566631ZM6.22 4.59102C6.49904 4.31208 6.95145 4.31208 7.23049 4.59102L9.14751 6.5074C9.42655 6.78634 9.42655 7.23861 9.14751 7.51755L7.23049 9.43393C6.95145 9.71287 6.49904 9.71287 6.22 9.43393C5.94096 9.15498 5.94096 8.70272 6.22 8.42377L6.91725 7.72676L3.65802 7.72676C3.26339 7.72676 2.94349 7.40696 2.94349 7.01247C2.94349 6.61798 3.26339 6.29819 3.65802 6.29819L6.91725 6.29819L6.22 5.60117C5.94096 5.32223 5.94096 4.86997 6.22 4.59102Z" clip-rule="evenodd" /> </svg>`,ce=r.YP`<svg fill="none" viewBox="0 0 14 14"> <path fill="currentColor" fill-rule="evenodd" d="M3.48 2.18a1 1 0 0 1 1.41 0l2.68 2.68a1 1 0 1 1-1.41 1.42l-.98-.98v4.56a1 1 0 0 1-2 0V5.3l-.97.98A1 1 0 0 1 .79 4.86l2.69-2.68Zm6.34 2.93a1 1 0 0 1 1 1v4.56l.97-.98a1 1 0 1 1 1.42 1.42l-2.69 2.68a1 1 0 0 1-1.41 0l-2.68-2.68a1 1 0 0 1 1.41-1.42l.98.98V6.1a1 1 0 0 1 1-1Z" clip-rule="evenodd" /> </svg>`,ue=r.YP`<svg fill="none" viewBox="0 0 40 40"> <g clip-path="url(#a)"> <g clip-path="url(#b)"> <circle cx="20" cy="19.89" r="20" fill="#5865F2" /> <path fill="#fff" fill-rule="evenodd" d="M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z" clip-rule="evenodd" /> </g> </g> <defs> <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> </defs> </svg> `,de=r.YP`<svg fill="none" viewBox="0 0 40 40"> <g clip-path="url(#a)"> <g clip-path="url(#b)"> <circle cx="20" cy="19.89" r="20" fill="#5A3E85" /> <g clip-path="url(#c)"> <path fill="#fff" d="M18.22 25.7 20 23.91h3.34l2.1-2.1v-6.68H15.4v8.78h2.82v1.77Zm3.87-8.16h1.25v3.66H22.1v-3.66Zm-3.34 0H20v3.66h-1.25v-3.66ZM20 7.9a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.69 14.56-3.66 3.66h-2.72l-1.77 1.78h-1.88V26.1H13.3v-9.82l.94-2.4H26.7v8.56Z" /> </g> </g> </g> <defs> <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> </defs> </svg>`,he=r.YP`<svg fill="none" viewBox="0 0 40 40"> <g clip-path="url(#a)"> <g clip-path="url(#b)"> <circle cx="20" cy="19.89" r="20" fill="#1D9BF0" /> <path fill="#fff" d="M30 13.81c-.74.33-1.53.55-2.36.65.85-.51 1.5-1.32 1.8-2.27-.79.47-1.66.8-2.6 1a4.1 4.1 0 0 0-7 3.73c-3.4-.17-6.42-1.8-8.45-4.28a4.1 4.1 0 0 0 1.27 5.47c-.67-.02-1.3-.2-1.86-.5a4.1 4.1 0 0 0 3.3 4.07c-.58.15-1.21.19-1.86.07a4.1 4.1 0 0 0 3.83 2.85A8.25 8.25 0 0 1 10 26.3a11.62 11.62 0 0 0 6.29 1.84c7.62 0 11.92-6.44 11.66-12.2.8-.59 1.5-1.3 2.05-2.13Z" /> </g> </g> <defs> <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> </defs> </svg>`,pe=r.YP`<svg fill="none" viewBox="0 0 16 16"> <path fill="currentColor" d="m14.36 4.74.01.42c0 4.34-3.3 9.34-9.34 9.34A9.3 9.3 0 0 1 0 13.03a6.6 6.6 0 0 0 4.86-1.36 3.29 3.29 0 0 1-3.07-2.28c.5.1 1 .07 1.48-.06A3.28 3.28 0 0 1 .64 6.11v-.04c.46.26.97.4 1.49.41A3.29 3.29 0 0 1 1.11 2.1a9.32 9.32 0 0 0 6.77 3.43 3.28 3.28 0 0 1 5.6-3 6.59 6.59 0 0 0 2.08-.8 3.3 3.3 0 0 1-1.45 1.82A6.53 6.53 0 0 0 16 3.04c-.44.66-1 1.23-1.64 1.7Z" /> </svg>`,fe=r.YP`<svg fill="none" viewBox="0 0 28 28"> <path fill="currentColor" fill-rule="evenodd" d="M18.1 4.76c-.42-.73-1.33-1.01-2.09-.66l-1.42.66c-.37.18-.8.18-1.18 0l-1.4-.65a1.63 1.63 0 0 0-2.1.66l-.84 1.45c-.2.34-.53.59-.92.67l-1.7.35c-.83.17-1.39.94-1.3 1.78l.19 1.56c.04.39-.08.78-.33 1.07l-1.12 1.3c-.52.6-.52 1.5 0 2.11L5 16.38c.25.3.37.68.33 1.06l-.18 1.57c-.1.83.46 1.6 1.28 1.78l1.7.35c.4.08.73.32.93.66l.84 1.43a1.63 1.63 0 0 0 2.09.66l1.41-.66c.37-.17.8-.17 1.18 0l1.43.67c.76.35 1.66.07 2.08-.65l.86-1.45c.2-.34.54-.58.92-.66l1.68-.35A1.63 1.63 0 0 0 22.84 19l-.18-1.57a1.4 1.4 0 0 1 .33-1.06l1.12-1.32c.52-.6.52-1.5 0-2.11l-1.12-1.3a1.4 1.4 0 0 1-.33-1.07l.18-1.57c.1-.83-.46-1.6-1.28-1.77l-1.68-.35a1.4 1.4 0 0 1-.92-.66l-.86-1.47Zm-3.27-3.2a4.43 4.43 0 0 1 5.69 1.78l.54.93 1.07.22a4.43 4.43 0 0 1 3.5 4.84l-.11.96.7.83a4.43 4.43 0 0 1 .02 5.76l-.72.85.1.96a4.43 4.43 0 0 1-3.5 4.84l-1.06.22-.54.92a4.43 4.43 0 0 1-5.68 1.77l-.84-.4-.82.39a4.43 4.43 0 0 1-5.7-1.79l-.51-.89-1.09-.22a4.43 4.43 0 0 1-3.5-4.84l.1-.96-.72-.85a4.43 4.43 0 0 1 .01-5.76l.71-.83-.1-.95a4.43 4.43 0 0 1 3.5-4.84l1.08-.23.53-.9a4.43 4.43 0 0 1 5.7-1.8l.81.38.83-.39ZM18.2 9.4c.65.42.84 1.28.42 1.93l-4.4 6.87a1.4 1.4 0 0 1-2.26.14L9.5 15.39a1.4 1.4 0 0 1 2.15-1.8l1.23 1.48 3.38-5.26a1.4 1.4 0 0 1 1.93-.42Z" clip-rule="evenodd" /> </svg>`,me=r.YP`<svg fill="none" viewBox="0 0 14 14"> <path fill="currentColor" fill-rule="evenodd" d="m4.1 12.43-.45-.78-.93-.2a1.65 1.65 0 0 1-1.31-1.8l.1-.86-.61-.71a1.65 1.65 0 0 1 0-2.16l.6-.7-.09-.85c-.1-.86.47-1.64 1.3-1.81l.94-.2.45-.78A1.65 1.65 0 0 1 6.23.9l.77.36.78-.36c.77-.36 1.69-.07 2.12.66l.47.8.91.2c.84.17 1.4.95 1.31 1.8l-.1.86.6.7c.54.62.54 1.54.01 2.16l-.6.71.09.86c.1.85-.47 1.63-1.3 1.8l-.92.2-.47.79a1.65 1.65 0 0 1-2.12.66L7 12.74l-.77.36c-.78.35-1.7.07-2.13-.67Zm5.74-6.9a1 1 0 1 0-1.68-1.07L6.32 7.3l-.55-.66a1 1 0 0 0-1.54 1.28l1.43 1.71a1 1 0 0 0 1.61-.1l2.57-4Z" clip-rule="evenodd" /> </svg>`,ge=r.YP` <svg fill="none" viewBox="0 0 48 44"> <path style="fill: var(--wui-color-bg-300);" d="M4.56 8.64c-1.23 1.68-1.23 4.08-1.23 8.88v8.96c0 4.8 0 7.2 1.23 8.88.39.55.87 1.02 1.41 1.42C7.65 38 10.05 38 14.85 38h14.3c4.8 0 7.2 0 8.88-1.22a6.4 6.4 0 0 0 1.41-1.42c.83-1.14 1.1-2.6 1.19-4.92a6.4 6.4 0 0 0 5.16-4.65c.21-.81.21-1.8.21-3.79 0-1.98 0-2.98-.22-3.79a6.4 6.4 0 0 0-5.15-4.65c-.1-2.32-.36-3.78-1.19-4.92a6.4 6.4 0 0 0-1.41-1.42C36.35 6 33.95 6 29.15 6h-14.3c-4.8 0-7.2 0-8.88 1.22a6.4 6.4 0 0 0-1.41 1.42Z" /> <path style="fill: var(--wui-color-fg-200);" fill-rule="evenodd" d="M2.27 11.33a6.4 6.4 0 0 1 6.4-6.4h26.66a6.4 6.4 0 0 1 6.4 6.4v1.7a6.4 6.4 0 0 1 5.34 6.3v5.34a6.4 6.4 0 0 1-5.34 6.3v1.7a6.4 6.4 0 0 1-6.4 6.4H8.67a6.4 6.4 0 0 1-6.4-6.4V11.33ZM39.6 31.07h-6.93a9.07 9.07 0 1 1 0-18.14h6.93v-1.6a4.27 4.27 0 0 0-4.27-4.26H8.67a4.27 4.27 0 0 0-4.27 4.26v21.34a4.27 4.27 0 0 0 4.27 4.26h26.66a4.27 4.27 0 0 0 4.27-4.26v-1.6Zm-6.93-16a6.93 6.93 0 0 0 0 13.86h8a4.27 4.27 0 0 0 4.26-4.26v-5.34a4.27 4.27 0 0 0-4.26-4.26h-8Z" clip-rule="evenodd" /> </svg> `,ve=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" fill-rule="evenodd" d="M0 5.5c0-1.8 1.46-3.25 3.25-3.25H14.5c1.8 0 3.25 1.46 3.25 3.25v.28A3.25 3.25 0 0 1 20 8.88v2.24c0 1.45-.94 2.68-2.25 3.1v.28c0 1.8-1.46 3.25-3.25 3.25H3.25A3.25 3.25 0 0 1 0 14.5v-9Zm15.75 8.88h-2.38a4.38 4.38 0 0 1 0-8.76h2.38V5.5c0-.69-.56-1.25-1.25-1.25H3.25C2.56 4.25 2 4.81 2 5.5v9c0 .69.56 1.25 1.25 1.25H14.5c.69 0 1.25-.56 1.25-1.25v-.13Zm-2.38-6.76a2.37 2.37 0 1 0 0 4.75h3.38c.69 0 1.25-.55 1.25-1.24V8.87c0-.69-.56-1.24-1.25-1.24h-3.38Z" clip-rule="evenodd" /> </svg>`,ye=r.YP`<svg fill="none" viewBox="0 0 96 67"> <path fill="currentColor" d="M25.32 18.8a32.56 32.56 0 0 1 45.36 0l1.5 1.47c.63.62.63 1.61 0 2.22l-5.15 5.05c-.31.3-.82.3-1.14 0l-2.07-2.03a22.71 22.71 0 0 0-31.64 0l-2.22 2.18c-.31.3-.82.3-1.14 0l-5.15-5.05a1.55 1.55 0 0 1 0-2.22l1.65-1.62Zm56.02 10.44 4.59 4.5c.63.6.63 1.6 0 2.21l-20.7 20.26c-.62.61-1.63.61-2.26 0L48.28 41.83a.4.4 0 0 0-.56 0L33.03 56.21c-.63.61-1.64.61-2.27 0L10.07 35.95a1.55 1.55 0 0 1 0-2.22l4.59-4.5a1.63 1.63 0 0 1 2.27 0L31.6 43.63a.4.4 0 0 0 .57 0l14.69-14.38a1.63 1.63 0 0 1 2.26 0l14.69 14.38a.4.4 0 0 0 .57 0l14.68-14.38a1.63 1.63 0 0 1 2.27 0Z" /> <path stroke="#000" stroke-opacity=".1" d="M25.67 19.15a32.06 32.06 0 0 1 44.66 0l1.5 1.48c.43.42.43 1.09 0 1.5l-5.15 5.05a.31.31 0 0 1-.44 0l-2.07-2.03a23.21 23.21 0 0 0-32.34 0l-2.22 2.18a.31.31 0 0 1-.44 0l-5.15-5.05a1.05 1.05 0 0 1 0-1.5l1.65-1.63ZM81 29.6l4.6 4.5c.42.41.42 1.09 0 1.5l-20.7 20.26c-.43.43-1.14.43-1.57 0L48.63 41.47a.9.9 0 0 0-1.26 0L32.68 55.85c-.43.43-1.14.43-1.57 0L10.42 35.6a1.05 1.05 0 0 1 0-1.5l4.59-4.5a1.13 1.13 0 0 1 1.57 0l14.68 14.38a.9.9 0 0 0 1.27 0l-.35-.35.35.35L47.22 29.6a1.13 1.13 0 0 1 1.56 0l14.7 14.38a.9.9 0 0 0 1.26 0L79.42 29.6a1.13 1.13 0 0 1 1.57 0Z" /> </svg>`,be=r.YP`<svg fill="none" viewBox="0 0 20 20"> <path fill="currentColor" d="M11 6.67a1 1 0 1 0-2 0v2.66a1 1 0 0 0 2 0V6.67ZM10 14.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" /> <path fill="currentColor" fill-rule="evenodd" d="M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-7 9a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z" clip-rule="evenodd" /> </svg>`;var we=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const xe={allWallets:w,alpha:r.YP`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10.687 0.557043C11.1462 0.671832 11.4254 1.13706 11.3106 1.59615C11.2044 2.02082 11.0975 2.51184 10.9822 3.04102C10.7176 4.25623 10.4091 5.6727 9.96482 6.94907C10.1435 7.58939 10.3065 8.16905 10.4935 8.68429C10.6447 9.10072 10.7858 9.39487 10.9179 9.58289C11.0055 9.70747 11.0597 9.74443 11.0748 9.75277C11.096 9.75724 11.1075 9.75764 11.1531 9.71916C11.2342 9.65067 11.3386 9.50891 11.4426 9.28357C11.5416 9.06892 11.614 8.8366 11.662 8.6497C11.6854 8.55831 11.7019 8.48242 11.7122 8.43111C11.7174 8.40555 11.7209 8.38638 11.723 8.37476L11.725 8.36363C11.8 7.89659 12.2395 7.57864 12.7068 7.65342C13.1742 7.72822 13.4925 8.16766 13.4177 8.63494C13.4153 8.64924 13.42 8.62063 13.4177 8.63494L13.4175 8.63596L13.4173 8.63721L13.4168 8.64037L13.4153 8.64924L13.4105 8.67692C13.4064 8.69961 13.4006 8.73069 13.3929 8.76891C13.3776 8.84516 13.3545 8.95091 13.3224 9.07586C13.2593 9.32166 13.1564 9.66085 12.9992 10.0015C12.8469 10.3315 12.6139 10.7288 12.2595 11.0282C11.8757 11.3523 11.35 11.5553 10.7293 11.4312C10.1645 11.3183 9.77597 10.939 9.51527 10.5681C9.2535 10.1957 9.05129 9.7349 8.88212 9.26898C8.87877 9.25975 8.87542 9.25049 8.87208 9.2412C8.03954 10.4941 6.83375 11.4479 5.03926 11.4479C3.48049 11.4479 2.31021 10.7159 1.56788 9.63945C0.846767 8.5938 0.544023 7.25403 0.573206 5.9702C0.60242 4.68505 0.966023 3.36073 1.69055 2.33272C2.42915 1.28475 3.5614 0.531453 5.03927 0.531453C6.44937 0.531453 7.4408 1.29593 8.1276 2.27567C8.48261 2.7821 8.77248 3.36668 9.0177 3.97383C9.1059 3.59106 9.18901 3.20908 9.27086 2.83294C9.39492 2.26277 9.51606 1.70605 9.64752 1.18046C9.76235 0.721369 10.2277 0.442254 10.687 0.557043ZM8.16354 6.87693C8.08689 6.60534 8.01003 6.33741 7.93241 6.08076C7.59522 4.96581 7.22132 3.969 6.72371 3.25914C6.24674 2.57873 5.72135 2.24516 5.03927 2.24516C4.21565 2.24516 3.56947 2.6422 3.09195 3.31975C2.60035 4.01725 2.31013 4.99361 2.28705 6.00913C2.26393 7.02599 2.51041 7.9869 2.97927 8.66676C3.42691 9.31586 4.08734 9.73417 5.03926 9.73417C6.48097 9.73417 7.4216 8.72164 8.14437 6.9249C8.15079 6.90893 8.15718 6.89294 8.16354 6.87693Z" fill="#47A1FF"/> </svg>`,appStore:x,chromeStore:N,apple:C,arrowBottom:E,arrowLeft:S,arrowRight:k,arrowTop:_,browser:P,checkmark:A,chevronBottom:R,chevronLeft:O,chevronRight:T,chevronTop:I,clock:$,close:M,compass:L,coinPlaceholder:j,copy:D,cursor:B,desktop:U,disconnect:F,discord:z,etherscan:W,extension:Z,externalLink:H,facebook:V,filters:q,github:G,google:K,helpCircle:Y,infoCircle:Q,mail:X,mobile:J,networkPlaceholder:ee,nftPlaceholder:te,off:ne,playStore:re,qrCode:ie,refresh:oe,search:ae,swapHorizontal:se,swapHorizontalBold:le,swapVertical:ce,telegram:ue,twitch:de,twitter:he,twitterIcon:pe,verify:fe,verifyFilled:me,wallet:ve,walletConnect:ye,walletPlaceholder:ge,warningCircle:be};let Ce=class extends r.oi{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300"}render(){return this.style.cssText=`\n --local-color: var(--wui-color-${this.color});\n --local-width: var(--wui-icon-size-${this.size});\n `,r.dy`${xe[this.name]}`}};Ce.styles=[d,p,b],we([(0,y.Cb)()],Ce.prototype,"size",void 0),we([(0,y.Cb)()],Ce.prototype,"name",void 0),we([(0,y.Cb)()],Ce.prototype,"color",void 0),Ce=we([f("wui-icon")],Ce);const Ee=r.iv` :host { display: block; width: 100%; height: 100%; } img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; border-radius: inherit; } `;var Se=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ke=class extends r.oi{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image"}render(){return r.dy`<img src=${this.src} alt=${this.alt} />`}};ke.styles=[d,p,Ee],Se([(0,y.Cb)()],ke.prototype,"src",void 0),Se([(0,y.Cb)()],ke.prototype,"alt",void 0),ke=Se([f("wui-image")],ke);const _e=r.iv` :host { display: block; width: var(--wui-box-size-lg); height: var(--wui-box-size-lg); } svg { width: var(--wui-box-size-lg); height: var(--wui-box-size-lg); fill: none; stroke: transparent; stroke-linecap: round; transition: all var(--wui-ease-in-power-3) var(--wui-duration-lg); } use { stroke: var(--wui-color-accent-100); stroke-width: 2px; stroke-dasharray: 54, 118; stroke-dashoffset: 172; animation: dash 1s linear infinite; } @keyframes dash { to { stroke-dashoffset: 0px; } } `;var Pe=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ae=class extends r.oi{render(){return r.dy` <svg viewBox="0 0 54 59"> <path id="wui-loader-path" d="M17.22 5.295c3.877-2.277 5.737-3.363 7.72-3.726a11.44 11.44 0 0 1 4.12 0c1.983.363 3.844 1.45 7.72 3.726l6.065 3.562c3.876 2.276 5.731 3.372 7.032 4.938a11.896 11.896 0 0 1 2.06 3.63c.683 1.928.688 4.11.688 8.663v7.124c0 4.553-.005 6.735-.688 8.664a11.896 11.896 0 0 1-2.06 3.63c-1.3 1.565-3.156 2.66-7.032 4.937l-6.065 3.563c-3.877 2.276-5.737 3.362-7.72 3.725a11.46 11.46 0 0 1-4.12 0c-1.983-.363-3.844-1.449-7.72-3.726l-6.065-3.562c-3.876-2.276-5.731-3.372-7.032-4.938a11.885 11.885 0 0 1-2.06-3.63c-.682-1.928-.688-4.11-.688-8.663v-7.124c0-4.553.006-6.735.688-8.664a11.885 11.885 0 0 1 2.06-3.63c1.3-1.565 3.156-2.66 7.032-4.937l6.065-3.562Z" /> <use xlink:href="#wui-loader-path"></use> </svg> `}};Ae.styles=[d,_e],Ae=Pe([f("wui-loading-hexagon")],Ae);const Re=r.iv` :host { display: flex; } :host([data-size='sm']) > svg { width: 12px; height: 12px; } :host([data-size='md']) > svg { width: 16px; height: 16px; } :host([data-size='lg']) > svg { width: 24px; height: 24px; } :host([data-size='xl']) > svg { width: 32px; height: 32px; } svg { animation: rotate 2s linear infinite; transition: all var(--wui-ease-in-power-3) var(--wui-duration-lg); } circle { fill: none; stroke: var(--local-color); stroke-width: 4px; stroke-dasharray: 1, 124; stroke-dashoffset: 0; stroke-linecap: round; animation: dash 1.5s ease-in-out infinite; } :host([data-size='md']) > svg > circle { stroke-width: 6px; } :host([data-size='sm']) > svg > circle { stroke-width: 8px; } @keyframes rotate { 100% { transform: rotate(360deg); } } @keyframes dash { 0% { stroke-dasharray: 1, 124; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 124; stroke-dashoffset: -35; } 100% { stroke-dashoffset: -125; } } `;var Oe=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Te=class extends r.oi{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: var(--wui-color-${this.color});`,this.dataset.size=this.size,r.dy`<svg viewBox="25 25 50 50"> <circle r="20" cy="50" cx="50"></circle> </svg>`}};Te.styles=[d,Re],Oe([(0,y.Cb)()],Te.prototype,"color",void 0),Oe([(0,y.Cb)()],Te.prototype,"size",void 0),Te=Oe([f("wui-loading-spinner")],Te);const Ie=r.iv` :host { display: block; width: var(--wui-box-size-md); height: var(--wui-box-size-md); } svg { width: var(--wui-box-size-md); height: var(--wui-box-size-md); transition: all var(--wui-ease-in-power-3) var(--wui-duration-lg); } rect { fill: none; stroke: var(--wui-color-accent-100); stroke-width: 4px; stroke-linecap: round; animation: dash 1s linear infinite; } @keyframes dash { to { stroke-dashoffset: 0px; } } `;var Ne=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let $e=class extends r.oi{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const e=this.radius>50?50:this.radius,t=36-e,n=116+t,i=245+t,o=360+1.75*t;return r.dy` <svg viewBox="0 0 110 110" width="110" height="110"> <rect x="2" y="2" width="106" height="106" rx=${e} stroke-dasharray="${n} ${i}" stroke-dashoffset=${o} /> </svg> `}};$e.styles=[d,Ie],Ne([(0,y.Cb)({type:Number})],$e.prototype,"radius",void 0),$e=Ne([f("wui-loading-thumbnail")],$e);const Me=r.iv` :host { display: block; box-shadow: inset 0 0 0 1px var(--wui-gray-glass-005); background: linear-gradient( 120deg, var(--wui-color-bg-200) 5%, var(--wui-color-bg-200) 48%, var(--wui-color-bg-300) 55%, var(--wui-color-bg-300) 60%, var(--wui-color-bg-300) calc(60% + 10px), var(--wui-color-bg-200) calc(60% + 12px), var(--wui-color-bg-200) 100% ); background-size: 250%; animation: shimmer 3s linear infinite reverse; } @keyframes shimmer { from { background-position: -250% 0; } to { background-position: 250% 0; } } `;var je=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Le=class extends r.oi{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m"}render(){return this.style.cssText=`\n width: ${this.width};\n height: ${this.height};\n border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px);\n `,r.dy`<slot></slot>`}};Le.styles=[Me],je([(0,y.Cb)()],Le.prototype,"width",void 0),je([(0,y.Cb)()],Le.prototype,"height",void 0),je([(0,y.Cb)()],Le.prototype,"borderRadius",void 0),Le=je([f("wui-shimmer")],Le);var De=n(2889),Be=n(5023);const Ue=(0,Be.XM)(class extends Be.Xe{constructor(e){var t;if(super(e),e.type!==Be.pX.ATTRIBUTE||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,t){let[n]=t;if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in n){var r;n[e]&&(null===(r=this.nt)||void 0===r||!r.has(e))&&this.st.add(e)}return this.render(n)}const i=e.element.classList;for(const a of this.st)a in n||(i.remove(a),this.st.delete(a));for(const a in n){var o;const e=!!n[a];e===this.st.has(a)||(null===(o=this.nt)||void 0===o?void 0:o.has(a))||(e?(i.add(a),this.st.add(a)):(i.remove(a),this.st.delete(a)))}return De.Jb}}),Fe=r.iv` :host { display: flex !important; } slot { display: inline-block; font-style: normal; font-family: var(--wui-font-family); font-feature-settings: 'tnum' on, 'lnum' on, 'case' on; line-height: 130%; font-weight: var(--wui-font-weight-regular); overflow: inherit; text-overflow: inherit; text-align: var(--local-align); color: var(--local-color); } .wui-font-large-500, .wui-font-large-600, .wui-font-large-700 { font-size: var(--wui-font-size-large); letter-spacing: var(--wui-letter-spacing-large); } .wui-font-paragraph-500, .wui-font-paragraph-600, .wui-font-paragraph-700 { font-size: var(--wui-font-size-paragraph); letter-spacing: var(--wui-letter-spacing-paragraph); } .wui-font-small-400, .wui-font-small-500, .wui-font-small-600 { font-size: var(--wui-font-size-small); letter-spacing: var(--wui-letter-spacing-small); } .wui-font-tiny-500, .wui-font-tiny-600 { font-size: var(--wui-font-size-tiny); letter-spacing: var(--wui-letter-spacing-tiny); } .wui-font-micro-700, .wui-font-micro-600 { font-size: var(--wui-font-size-micro); letter-spacing: var(--wui-letter-spacing-micro); text-transform: uppercase; } .wui-font-small-400, .wui-font-paragraph-400 { font-weight: var(--wui-font-weight-light); } .wui-font-large-700, .wui-font-paragraph-700, .wui-font-micro-700 { font-weight: var(--wui-font-weight-bold); } .wui-font-large-600, .wui-font-paragraph-600, .wui-font-small-600, .wui-font-tiny-600, .wui-font-micro-600 { font-weight: var(--wui-font-weight-medium); } `;var ze=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let We=class extends r.oi{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left"}render(){const e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0};return this.style.cssText=`\n --local-align: ${this.align};\n --local-color: var(--wui-color-${this.color});\n `,r.dy`<slot class=${Ue(e)}></slot>`}};We.styles=[d,Fe],ze([(0,y.Cb)()],We.prototype,"variant",void 0),ze([(0,y.Cb)()],We.prototype,"color",void 0),ze([(0,y.Cb)()],We.prototype,"align",void 0),We=ze([f("wui-text")],We);const Ze=r.YP`<svg fill="none" viewBox="0 0 60 60"> <rect width="60" height="60" fill="#1DC956" rx="30" /> <circle cx="30" cy="30" r="3" fill="#fff" /> <path fill="#2BEE6C" stroke="#fff" stroke-width="2" d="m45.32 17.9-.88-.42.88.42.02-.05c.1-.2.21-.44.26-.7l-.82-.15.82.16a2 2 0 0 0-.24-1.4c-.13-.23-.32-.42-.47-.57a8.42 8.42 0 0 1-.04-.04l-.04-.04a2.9 2.9 0 0 0-.56-.47l-.51.86.5-.86a2 2 0 0 0-1.4-.24c-.26.05-.5.16-.69.26l-.05.02-15.05 7.25-.1.05c-1.14.55-1.85.89-2.46 1.37a7 7 0 0 0-1.13 1.14c-.5.6-.83 1.32-1.38 2.45l-.05.11-7.25 15.05-.02.05c-.1.2-.21.43-.26.69a2 2 0 0 0 .24 1.4l.85-.5-.85.5c.13.23.32.42.47.57l.04.04.04.04c.15.15.34.34.56.47a2 2 0 0 0 1.41.24l-.2-.98.2.98c.25-.05.5-.17.69-.26l.05-.02-.42-.87.42.87 15.05-7.25.1-.05c1.14-.55 1.85-.89 2.46-1.38a7 7 0 0 0 1.13-1.13 12.87 12.87 0 0 0 1.43-2.56l7.25-15.05Z" /> <path fill="#1DC956" d="M33.38 32.72 30.7 29.3 15.86 44.14l.2.2a1 1 0 0 0 1.14.2l15.1-7.27a3 3 0 0 0 1.08-4.55Z" /> <path fill="#86F999" d="m26.62 27.28 2.67 3.43 14.85-14.85-.2-.2a1 1 0 0 0-1.14-.2l-15.1 7.27a3 3 0 0 0-1.08 4.55Z" /> <circle cx="30" cy="30" r="3" fill="#fff" transform="rotate(45 30 30)" /> <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" /> </svg> `,He=r.YP`<svg viewBox="0 0 60 60" fill="none"> <g clip-path="url(#clip0_7734_50402)"> <path d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.6985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z" fill="#EB8B47" /> <path d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z" stroke="#062B2B" stroke-opacity="0.1" /> <path d="M19 52C24.5228 52 29 47.5228 29 42C29 36.4772 24.5228 32 19 32C13.4772 32 9 36.4772 9 42C9 47.5228 13.4772 52 19 52Z" fill="#FF974C" stroke="white" stroke-width="2" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M42.8437 8.3264C42.4507 7.70891 41.5493 7.70891 41.1564 8.32641L28.978 27.4638C28.5544 28.1295 29.0326 29.0007 29.8217 29.0007H54.1783C54.9674 29.0007 55.4456 28.1295 55.022 27.4638L42.8437 8.3264Z" fill="white" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M42.3348 11.6456C42.659 11.7608 42.9061 12.1492 43.4005 12.926L50.7332 24.4488C51.2952 25.332 51.5763 25.7737 51.5254 26.1382C51.4915 26.3808 51.3698 26.6026 51.1833 26.7614C50.9031 27 50.3796 27 49.3327 27H34.6673C33.6204 27 33.0969 27 32.8167 26.7614C32.6302 26.6026 32.5085 26.3808 32.4746 26.1382C32.4237 25.7737 32.7048 25.332 33.2669 24.4488L40.5995 12.926C41.0939 12.1492 41.341 11.7608 41.6652 11.6456C41.8818 11.5687 42.1182 11.5687 42.3348 11.6456ZM35.0001 26.999C38.8661 26.999 42.0001 23.865 42.0001 19.999C42.0001 23.865 45.1341 26.999 49.0001 26.999H35.0001Z" fill="#FF974C" /> <path d="M10.1061 9.35712C9.9973 9.67775 9.99867 10.0388 9.99978 10.3323C9.99989 10.3611 10 10.3893 10 10.4167V25.5833C10 25.6107 9.99989 25.6389 9.99978 25.6677C9.99867 25.9612 9.9973 26.3222 10.1061 26.6429C10.306 27.2317 10.7683 27.694 11.3571 27.8939C11.6777 28.0027 12.0388 28.0013 12.3323 28.0002C12.3611 28.0001 12.3893 28 12.4167 28H19C24.5228 28 29 23.5228 29 18C29 12.4772 24.5228 8 19 8H12.4167C12.3893 8 12.3611 7.99989 12.3323 7.99978C12.0388 7.99867 11.6778 7.9973 11.3571 8.10614C10.7683 8.306 10.306 8.76834 10.1061 9.35712Z" fill="#FF974C" stroke="white" stroke-width="2" /> <circle cx="19" cy="18" r="4" fill="#EB8B47" stroke="white" stroke-width="2" /> <circle cx="19" cy="42" r="4" fill="#EB8B47" stroke="white" stroke-width="2" /> </g> <defs> <clipPath id="clip0_7734_50402"> <rect width="60" height="60" fill="white" /> </clipPath> </defs> </svg> `,Ve=r.YP`<svg fill="none" viewBox="0 0 60 60"> <g clip-path="url(#a)"> <path fill="#1DC956" d="M0 25.01c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02.11 15.65.11 24.9.11h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.13 60 15.76 60 25v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-3.45 1.97-8.08 1.97-17.33 1.97H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 49.1 0 44.46 0 35.21v-10.2Z" /> <path fill="#2BEE6C" d="M16.1 60c-3.82-.18-6.4-.64-8.53-1.86a15 15 0 0 1-5.6-5.6C.55 50.06.16 46.97.04 41.98L4.2 40.6a4 4 0 0 0 2.48-2.39l4.65-12.4a2 2 0 0 1 2.5-1.2l2.53.84a2 2 0 0 0 2.43-1l2.96-5.94a2 2 0 0 1 3.7.32l3.78 12.58a2 2 0 0 0 3.03 1.09l3.34-2.23a2 2 0 0 0 .65-.7l5.3-9.72a2 2 0 0 1 1.42-1.01l4.14-.69a2 2 0 0 1 1.6.44l3.9 3.24a2 2 0 0 0 2.7-.12l4.62-4.63c.08 2.2.08 4.8.08 7.93v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-2.13 1.22-4.7 1.68-8.54 1.86H16.11Z" /> <path fill="#fff" d="m.07 43.03-.05-2.1 3.85-1.28a3 3 0 0 0 1.86-1.79l4.66-12.4a3 3 0 0 1 3.75-1.8l2.53.84a1 1 0 0 0 1.21-.5l2.97-5.94a3 3 0 0 1 5.56.48l3.77 12.58a1 1 0 0 0 1.51.55l3.34-2.23a1 1 0 0 0 .33-.35l5.3-9.71a3 3 0 0 1 2.14-1.53l4.13-.69a3 3 0 0 1 2.41.66l3.9 3.24a1 1 0 0 0 1.34-.06l5.28-5.28c.05.85.08 1.75.1 2.73L56 22.41a3 3 0 0 1-4.04.19l-3.9-3.25a1 1 0 0 0-.8-.21l-4.13.69a1 1 0 0 0-.72.5l-5.3 9.72a3 3 0 0 1-.97 1.05l-3.34 2.23a3 3 0 0 1-4.53-1.63l-3.78-12.58a1 1 0 0 0-1.85-.16l-2.97 5.94a3 3 0 0 1-3.63 1.5l-2.53-.84a1 1 0 0 0-1.25.6l-4.65 12.4a5 5 0 0 1-3.1 3L.07 43.02Z" /> <path fill="#fff" fill-rule="evenodd" d="M49.5 19a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" clip-rule="evenodd" /> <path fill="#fff" d="M45 .28v59.66l-2 .1V.19c.7.02 1.37.05 2 .1Z" /> <path fill="#2BEE6C" d="M47.5 19a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" /> <path stroke="#fff" stroke-opacity=".1" d="M.5 25.01c0-4.63 0-8.08.24-10.8.25-2.7.73-4.64 1.66-6.28a14.5 14.5 0 0 1 5.42-5.41C9.46 1.58 11.39 1.1 14.1.85A133 133 0 0 1 24.9.61h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.67a14.5 14.5 0 0 1 5.42 5.4c.93 1.65 1.41 3.58 1.66 6.3.24 2.71.24 6.16.24 10.79v10.2c0 4.64 0 8.08-.24 10.8-.25 2.7-.73 4.65-1.66 6.28a14.5 14.5 0 0 1-5.42 5.42c-1.63.93-3.57 1.41-6.28 1.66-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.66a14.5 14.5 0 0 1-5.42-5.42C1.47 50.66 1 48.72.74 46.01A133 133 0 0 1 .5 35.2v-10.2Z" /> </g> <defs> <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath> </defs> </svg>`,qe=r.YP`<svg fill="none" viewBox="0 0 60 60"> <g clip-path="url(#a)"> <rect width="60" height="60" fill="#C653C6" rx="30" /> <path fill="#E87DE8" d="M57.98.01v19.5a4.09 4.09 0 0 0-2.63 2.29L50.7 34.2a2 2 0 0 1-2.5 1.2l-2.53-.84a2 2 0 0 0-2.42 1l-2.97 5.94a2 2 0 0 1-3.7-.32L32.8 28.6a2 2 0 0 0-3.02-1.09l-3.35 2.23a2 2 0 0 0-.64.7l-5.3 9.72a2 2 0 0 1-1.43 1.01l-4.13.69a2 2 0 0 1-1.61-.44l-3.9-3.24a2 2 0 0 0-2.69.12L2.1 42.93.02 43V.01h57.96Z" /> <path fill="#fff" d="m61.95 16.94.05 2.1-3.85 1.28a3 3 0 0 0-1.86 1.79l-4.65 12.4a3 3 0 0 1-3.76 1.8l-2.53-.84a1 1 0 0 0-1.2.5l-2.98 5.94a3 3 0 0 1-5.55-.48l-3.78-12.58a1 1 0 0 0-1.5-.55l-3.35 2.23a1 1 0 0 0-.32.35l-5.3 9.72a3 3 0 0 1-2.14 1.52l-4.14.69a3 3 0 0 1-2.41-.66l-3.9-3.24a1 1 0 0 0-1.34.06l-5.28 5.28c-.05-.84-.08-1.75-.1-2.73l3.97-3.96a3 3 0 0 1 4.04-.19l3.89 3.25a1 1 0 0 0 .8.21l4.14-.68a1 1 0 0 0 .71-.51l5.3-9.71a3 3 0 0 1 .97-1.06l3.34-2.23a3 3 0 0 1 4.54 1.63l3.77 12.58a1 1 0 0 0 1.86.16l2.96-5.93a3 3 0 0 1 3.64-1.5l2.52.83a1 1 0 0 0 1.25-.6l4.66-12.4a5 5 0 0 1 3.1-2.99l4.43-1.48Z" /> <path fill="#fff" fill-rule="evenodd" d="M35.5 27a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" clip-rule="evenodd" /> <path fill="#fff" d="M31 0v60h-2V0h2Z" /> <path fill="#E87DE8" d="M33.5 27a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" /> </g> <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" /> <defs> <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> </defs> </svg> `,Ge=r.YP`<svg fill="none" viewBox="0 0 60 60"> <g clip-path="url(#a)"> <rect width="60" height="60" fill="#987DE8" rx="30" /> <path fill="#fff" fill-rule="evenodd" d="m15.48 28.37 11.97-19.3a3 3 0 0 1 5.1 0l11.97 19.3a6 6 0 0 1 .9 3.14v.03a6 6 0 0 1-1.16 3.56L33.23 50.2a4 4 0 0 1-6.46 0L15.73 35.1a6 6 0 0 1-1.15-3.54v-.03a6 6 0 0 1 .9-3.16Z" clip-rule="evenodd" /> <path fill="#643CDD" d="M30.84 10.11a1 1 0 0 0-.84-.46V24.5l12.6 5.53a2 2 0 0 0-.28-1.4L30.84 10.11Z" /> <path fill="#BDADEB" d="M30 9.65a1 1 0 0 0-.85.46L17.66 28.64a2 2 0 0 0-.26 1.39L30 24.5V9.65Z" /> <path fill="#643CDD" d="M30 50.54a1 1 0 0 0 .8-.4l11.24-15.38c.3-.44-.2-1-.66-.73l-9.89 5.68a3 3 0 0 1-1.5.4v10.43Z" /> <path fill="#BDADEB" d="m17.97 34.76 11.22 15.37c.2.28.5.41.8.41V40.11a3 3 0 0 1-1.49-.4l-9.88-5.68c-.47-.27-.97.3-.65.73Z" /> <path fill="#401AB3" d="M42.6 30.03 30 24.5v13.14a3 3 0 0 0 1.5-.4l10.14-5.83a2 2 0 0 0 .95-1.38Z" /> <path fill="#7C5AE2" d="M30 37.64V24.46l-12.6 5.57a2 2 0 0 0 .97 1.39l10.13 5.82a3 3 0 0 0 1.5.4Z" /> </g> <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" /> <defs> <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> </defs> </svg> `,Ke=r.YP`<svg fill="none" viewBox="0 0 60 60"> <rect width="60" height="60" fill="#1DC956" rx="3" /> <path fill="#1FAD7E" stroke="#fff" stroke-width="2" d="m30.49 29.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z" /> <path fill="#2BEE6C" stroke="#fff" stroke-width="2" d="m30.49 19.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z" /> <path fill="#86F999" stroke="#fff" stroke-width="2" d="m46.69 21.06-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-6.32-3.51-.18-.1c-2.33-1.3-3.72-2.06-5.22-2.33a9 9 0 0 0-3.08 0c-1.5.27-2.9 1.04-5.22 2.33l-.17.1-6.33 3.51-.05.03c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45Z" /> <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> </svg>`,Ye=r.YP`<svg fill="none" viewBox="0 0 60 60"> <rect width="60" height="60" fill="#C653C6" rx="3" /> <path fill="#fff" d="M20.03 15.22C20 15.6 20 16.07 20 17v2.8c0 1.14 0 1.7-.2 2.12-.15.31-.3.5-.58.71-.37.28-1.06.42-2.43.7-.59.12-1.11.29-1.6.51a9 9 0 0 0-4.35 4.36C10 30 10 32.34 10 37c0 4.66 0 7 .84 8.8a9 9 0 0 0 4.36 4.36C17 51 19.34 51 24 51h12c4.66 0 7 0 8.8-.84a9 9 0 0 0 4.36-4.36C50 44 50 41.66 50 37c0-4.66 0-7-.84-8.8a9 9 0 0 0-4.36-4.36c-.48-.22-1-.39-1.6-.5-1.36-.29-2.05-.43-2.42-.7-.27-.22-.43-.4-.58-.72-.2-.42-.2-.98-.2-2.11V17c0-.93 0-1.4-.03-1.78a9 9 0 0 0-8.19-8.19C31.4 7 30.93 7 30 7s-1.4 0-1.78.03a9 9 0 0 0-8.19 8.19Z" /> <path fill="#E87DE8" d="M22 17c0-.93 0-1.4.04-1.78a7 7 0 0 1 6.18-6.18C28.6 9 29.07 9 30 9s1.4 0 1.78.04a7 7 0 0 1 6.18 6.18c.04.39.04.85.04 1.78v4.5a1.5 1.5 0 0 1-3 0V17c0-.93 0-1.4-.08-1.78a4 4 0 0 0-3.14-3.14C31.39 12 30.93 12 30 12s-1.4 0-1.78.08a4 4 0 0 0-3.14 3.14c-.08.39-.08.85-.08 1.78v4.5a1.5 1.5 0 0 1-3 0V17Z" /> <path fill="#E87DE8" fill-rule="evenodd" d="M12 36.62c0-4.32 0-6.48.92-8.09a7 7 0 0 1 2.61-2.61C17.14 25 19.3 25 23.62 25h6.86c.46 0 .7 0 .9.02 2.73.22 4.37 2.43 4.62 4.98.27-2.7 2.11-5 5.02-5A6.98 6.98 0 0 1 48 31.98v5.4c0 4.32 0 6.48-.92 8.09a7 7 0 0 1-2.61 2.61c-1.61.92-3.77.92-8.09.92h-5.86c-.46 0-.7 0-.9-.02-2.73-.22-4.37-2.43-4.62-4.98-.26 2.58-1.94 4.82-4.71 4.99l-.7.01c-.55 0-.82 0-1.05-.02a7 7 0 0 1-6.52-6.52c-.02-.23-.02-.5-.02-1.05v-4.79Zm21.24-.27a4 4 0 1 0-6.48 0 31.28 31.28 0 0 1 1.57 2.23c.17.4.17.81.17 1.24V42.5a1.5 1.5 0 0 0 3 0V39.82c0-.43 0-.85.17-1.24.09-.2.58-.87 1.57-2.23Z" clip-rule="evenodd" /> <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> </svg>`,Qe=r.YP`<svg fill="none" viewBox="0 0 60 60"> <g clip-path="url(#a)"> <path fill="#EB8B47" d="M0 24.9c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02 0 15.65 0 24.9 0h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.02 60 15.65 60 24.9v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6C48.98 60 44.35 60 35.1 60H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 48.98 0 44.35 0 35.1V24.9Z" /> <path stroke="#062B2B" stroke-opacity=".1" d="M.5 24.9c0-4.64 0-8.08.24-10.8.25-2.7.73-4.65 1.66-6.28A14.5 14.5 0 0 1 7.82 2.4C9.46 1.47 11.39 1 14.1.74A133 133 0 0 1 24.9.5h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.66a14.5 14.5 0 0 1 5.42 5.42c.93 1.63 1.41 3.57 1.66 6.28.24 2.72.24 6.16.24 10.8v10.2c0 4.63 0 8.08-.24 10.8-.25 2.7-.73 4.64-1.66 6.28a14.5 14.5 0 0 1-5.42 5.41c-1.63.94-3.57 1.42-6.28 1.67-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.67a14.5 14.5 0 0 1-5.42-5.4C1.47 50.53 1 48.6.74 45.88A133 133 0 0 1 .5 35.1V24.9Z" /> <path fill="#FF974C" stroke="#fff" stroke-width="2" d="M39.2 29.2a13 13 0 1 0-18.4 0l1.3 1.28a12.82 12.82 0 0 1 2.1 2.39 6 6 0 0 1 .6 1.47c.2.76.2 1.56.2 3.17v11.24c0 1.08 0 1.61.13 2.12a4 4 0 0 0 .41.98c.26.45.64.83 1.4 1.6l.3.29c.65.65.98.98 1.36 1.09.26.07.54.07.8 0 .38-.11.7-.44 1.36-1.1l3.48-3.47c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.47-.48c-.65-.65-.98-.98-1.09-1.36a1.5 1.5 0 0 1 0-.8c.1-.38.44-.7 1.1-1.36l.47-.48c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.48-.5c-.65-.64-.98-.97-1.08-1.35a1.5 1.5 0 0 1 0-.79c.1-.38.42-.7 1.06-1.36l5.46-5.55Z" /> <circle cx="30" cy="17" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2" /> </g> <defs> <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath> </defs> </svg> `,Xe=r.YP`<svg fill="none" viewBox="0 0 60 60"> <g clip-path="url(#a)"> <rect width="60" height="60" fill="#00ACE6" rx="30" /> <circle cx="64" cy="39" r="50" fill="#1AC6FF" stroke="#fff" stroke-width="2" /> <circle cx="78" cy="30" r="50" fill="#4DD2FF" stroke="#fff" stroke-width="2" /> <circle cx="72" cy="15" r="35" fill="#80DFFF" stroke="#fff" stroke-width="2" /> <circle cx="34" cy="-17" r="45" stroke="#fff" stroke-width="2" /> <circle cx="34" cy="-5" r="50" stroke="#fff" stroke-width="2" /> <circle cx="30" cy="45" r="4" fill="#4DD2FF" stroke="#fff" stroke-width="2" /> <circle cx="39.5" cy="27.5" r="4" fill="#80DFFF" stroke="#fff" stroke-width="2" /> <circle cx="16" cy="24" r="4" fill="#19C6FF" stroke="#fff" stroke-width="2" /> </g> <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" /> <defs> <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> </defs> </svg>`,Je=r.YP`<svg fill="none" viewBox="0 0 60 60"> <g clip-path="url(#a)"> <rect width="60" height="60" fill="#C653C6" rx="3" /> <path fill="#E87DE8" stroke="#fff" stroke-width="2" d="M52.1 47.34c0-4.24-1.44-9.55-5.9-12.4a2.86 2.86 0 0 0-1.6-3.89v-.82c0-1.19-.52-2.26-1.35-3a4.74 4.74 0 0 0-2.4-6.26v-5.5a11.31 11.31 0 1 0-22.63 0v2.15a3.34 3.34 0 0 0-1.18 5.05 4.74 4.74 0 0 0-.68 6.44A5.22 5.22 0 0 0 14 35.92c-3.06 4.13-6.1 8.3-6.1 15.64 0 2.67.37 4.86.74 6.39a20.3 20.3 0 0 0 .73 2.39l.02.04v.01l.92-.39-.92.4.26.6h38.26l.3-.49-.87-.51.86.5.02-.01.03-.07a16.32 16.32 0 0 0 .57-1.05c.36-.72.85-1.74 1.33-2.96a25.51 25.51 0 0 0 1.94-9.07Z" /> <path fill="#fff" fill-rule="evenodd" d="M26.5 29.5c-3-.5-5.5-3-5.5-7v-7c0-.47 0-.7.03-.9a3 3 0 0 1 2.58-2.57c.2-.03.42-.03.89-.03 2 0 2.5-2.5 2.5-2.5s0 2.5 2.5 2.5c1.4 0 2.1 0 2.65.23a3 3 0 0 1 1.62 1.62c.23.55.23 1.25.23 2.65v6c0 4-3 7-6.5 7 1.35.23 4 0 6.5-2v9.53C34 38.5 31.5 40 28 40s-6-1.5-6-2.97L24 34l2.5 1.5v-6ZM26 47h4.5c2.5 0 3 4 3 5.5h-3l-1-1.5H26v-4Zm-6.25 5.5H24V57h-8c0-1 1-4.5 3.75-4.5Z" clip-rule="evenodd" /> </g> <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> <defs> <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="3" /></clipPath> </defs> </svg> `,et=r.YP`<svg fill="none" viewBox="0 0 60 60"> <rect width="60" height="60" fill="#794CFF" rx="3" /> <path fill="#987DE8" stroke="#fff" stroke-width="2" d="M33 22.5v-1H16v5H8.5V36H13v-5h3v7.5h17V31h1v7.5h17v-17H34v5h-1v-4Z" /> <path fill="#fff" d="M37.5 25h10v10h-10z" /> <path fill="#4019B2" d="M42.5 25h5v10h-5z" /> <path fill="#fff" d="M19.5 25h10v10h-10z" /> <path fill="#4019B2" d="M24.5 25h5v10h-5z" /> <path fill="#fff" d="M12 30.5h4V37h-4v-6.5Z" /> <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> </svg>`,tt=r.YP`<svg viewBox="0 0 60 60" fill="none" > <g clip-path="url(#1)"> <rect width="60" height="60" rx="30" fill="#00ACE6" /> <path d="M59 73C59 89.0163 46.0163 102 30 102C13.9837 102 1 89.0163 1 73C1 56.9837 12 44 30 44C48 44 59 56.9837 59 73Z" fill="#1AC6FF" stroke="white" stroke-width="2" /> <path d="M18.6904 19.9015C19.6264 15.3286 23.3466 11.8445 27.9708 11.2096C29.3231 11.024 30.6751 11.0238 32.0289 11.2096C36.6532 11.8445 40.3733 15.3286 41.3094 19.9015C41.4868 20.7681 41.6309 21.6509 41.7492 22.5271C41.8811 23.5041 41.8811 24.4944 41.7492 25.4715C41.6309 26.3476 41.4868 27.2304 41.3094 28.097C40.3733 32.6699 36.6532 36.154 32.0289 36.7889C30.6772 36.9744 29.3216 36.9743 27.9708 36.7889C23.3466 36.154 19.6264 32.6699 18.6904 28.097C18.513 27.2304 18.3689 26.3476 18.2506 25.4715C18.1186 24.4944 18.1186 23.5041 18.2506 22.5271C18.3689 21.6509 18.513 20.7681 18.6904 19.9015Z" fill="#1AC6FF" stroke="white" stroke-width="2" /> <circle cx="24.5" cy="23.5" r="1.5" fill="white" /> <circle cx="35.5" cy="23.5" r="1.5" fill="white" /> <path d="M31 20L28 28H32" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </g> <rect x="0.5" y="0.5" width="59" height="59" rx="29.5" stroke="white" stroke-opacity="0.1" /> <defs> <clipPath id="1"> <rect width="60" height="60" rx="30" fill="white" /> </clipPath> </defs> </svg> `,nt=r.YP`<svg viewBox="0 0 60 60" fill="none"> <g clip-path="url(#1)"> <path d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.6985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z" fill="#794CFF" /> <path d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z" stroke="#062B2B" stroke-opacity="0.1" /> <path d="M35.1403 31.5016C35.1193 30.9637 35.388 30.4558 35.8446 30.1707C36.1207 29.9982 36.4761 29.8473 36.7921 29.7685C37.3143 29.6382 37.8664 29.7977 38.2386 30.1864C38.8507 30.8257 39.3004 31.6836 39.8033 32.408C40.2796 33.0942 41.4695 33.2512 41.9687 32.5047C42.4839 31.7341 42.9405 30.8229 43.572 30.1399C43.9375 29.7447 44.4866 29.5756 45.0111 29.6967C45.3283 29.7701 45.6863 29.9147 45.9655 30.0823C46.4269 30.3595 46.7045 30.8626 46.6928 31.4008C46.6731 32.3083 46.3764 33.2571 46.2158 34.1473C46.061 35.0048 46.9045 35.8337 47.7592 35.664C48.6464 35.4878 49.5899 35.1747 50.497 35.1391C51.0348 35.1181 51.5427 35.3868 51.8279 35.8433C52.0004 36.1195 52.1513 36.4749 52.2301 36.7908C52.3604 37.3131 52.2009 37.8651 51.8121 38.2374C51.1729 38.8495 50.3151 39.2991 49.5908 39.8019C48.9046 40.2782 48.7473 41.4683 49.4939 41.9675C50.2644 42.4827 51.1757 42.9393 51.8587 43.5708C52.2539 43.9362 52.423 44.4854 52.3018 45.0099C52.2285 45.3271 52.0839 45.6851 51.9162 45.9642C51.6391 46.4257 51.1359 46.7032 50.5978 46.6916C49.6903 46.6719 48.7417 46.3753 47.8516 46.2146C46.9939 46.0598 46.1648 46.9035 46.3346 47.7583C46.5108 48.6454 46.8239 49.5888 46.8594 50.4958C46.8805 51.0336 46.6117 51.5415 46.1552 51.8267C45.879 51.9992 45.5236 52.15 45.2077 52.2289C44.6854 52.3592 44.1334 52.1997 43.7611 51.8109C43.1491 51.1718 42.6996 50.314 42.1968 49.5897C41.7203 48.9034 40.5301 48.7463 40.0309 49.493C39.5157 50.2634 39.0592 51.1746 38.4278 51.8574C38.0623 52.2527 37.5132 52.4218 36.9887 52.3006C36.6715 52.2273 36.3135 52.0826 36.0343 51.915C35.5729 51.6379 35.2953 51.1347 35.307 50.5966C35.3267 49.6891 35.6233 48.7405 35.7839 47.8505C35.9388 46.9928 35.0951 46.1636 34.2402 46.3334C33.3531 46.5096 32.4098 46.8227 31.5028 46.8582C30.9649 46.8793 30.457 46.6105 30.1719 46.154C29.9994 45.8778 29.8485 45.5224 29.7697 45.2065C29.6394 44.6842 29.7989 44.1322 30.1877 43.7599C30.8269 43.1479 31.6847 42.6982 32.4091 42.1954C33.0954 41.7189 33.2522 40.5289 32.5056 40.0297C31.7351 39.5145 30.824 39.058 30.1411 38.4265C29.7459 38.0611 29.5768 37.5119 29.698 36.9875C29.7713 36.6702 29.9159 36.3122 30.0836 36.0331C30.3607 35.5717 30.8638 35.2941 31.402 35.3058C32.3095 35.3255 33.2583 35.6221 34.1485 35.7828C35.006 35.9376 35.8349 35.094 35.6652 34.2393C35.489 33.3521 35.1759 32.4087 35.1403 31.5016Z" fill="#906EF7" stroke="white" stroke-width="2" /> <path d="M20.7706 8.22357C20.9036 7.51411 21.5231 7 22.2449 7H23.7551C24.4769 7 25.0964 7.51411 25.2294 8.22357C25.5051 9.69403 25.4829 11.6321 27.1202 12.2606C27.3092 12.3331 27.4958 12.4105 27.6798 12.4926C29.2818 13.2072 30.6374 11.8199 31.8721 10.9752C32.4678 10.5676 33.2694 10.6421 33.7798 11.1525L34.8477 12.2204C35.3581 12.7308 35.4326 13.5323 35.025 14.128C34.1802 15.3627 32.7931 16.7183 33.5077 18.3202C33.5898 18.5043 33.6672 18.6909 33.7398 18.88C34.3683 20.5171 36.3061 20.4949 37.7764 20.7706C38.4859 20.9036 39 21.5231 39 22.2449V23.7551C39 24.4769 38.4859 25.0964 37.7764 25.2294C36.3061 25.5051 34.3685 25.483 33.7401 27.1201C33.6675 27.3093 33.59 27.4961 33.5079 27.6803C32.7934 29.282 34.1803 30.6374 35.025 31.8719C35.4326 32.4677 35.3581 33.2692 34.8477 33.7796L33.7798 34.8475C33.2694 35.3579 32.4678 35.4324 31.8721 35.0248C30.6376 34.1801 29.2823 32.7934 27.6806 33.508C27.4962 33.5903 27.3093 33.6678 27.12 33.7405C25.483 34.3688 25.5051 36.3062 25.2294 37.7764C25.0964 38.4859 24.4769 39 23.7551 39H22.2449C21.5231 39 20.9036 38.4859 20.7706 37.7764C20.4949 36.3062 20.517 34.3688 18.88 33.7405C18.6908 33.6678 18.5039 33.5903 18.3196 33.5081C16.7179 32.7936 15.3625 34.1804 14.1279 35.0251C13.5322 35.4327 12.7307 35.3582 12.2203 34.8478L11.1524 33.7799C10.642 33.2695 10.5675 32.4679 10.9751 31.8722C11.8198 30.6376 13.2067 29.2822 12.4922 27.6804C12.41 27.4962 12.3325 27.3093 12.2599 27.1201C11.6315 25.483 9.69392 25.5051 8.22357 25.2294C7.51411 25.0964 7 24.4769 7 23.7551V22.2449C7 21.5231 7.51411 20.9036 8.22357 20.7706C9.69394 20.4949 11.6317 20.5171 12.2602 18.88C12.3328 18.6909 12.4103 18.5042 12.4924 18.3201C13.207 16.7181 11.8198 15.3625 10.975 14.1278C10.5674 13.5321 10.6419 12.7305 11.1523 12.2201L12.2202 11.1522C12.7306 10.6418 13.5322 10.5673 14.1279 10.9749C15.3626 11.8197 16.7184 13.2071 18.3204 12.4925C18.5044 12.4105 18.6909 12.3331 18.8799 12.2606C20.5171 11.6321 20.4949 9.69403 20.7706 8.22357Z" fill="#906EF7" stroke="white" stroke-width="2" /> <circle cx="23" cy="23" r="6" fill="#794CFF" stroke="white" stroke-width="2" /> <circle cx="41" cy="41" r="4" fill="#794CFF" stroke="white" stroke-width="2" /> </g> <defs> <clipPath id="1"> <rect width="60" height="60" fill="white" /> </clipPath> </defs> </svg> `,rt=r.iv` :host { display: block; width: 55px; height: 55px; } `;var it=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const ot={browser:Ze,dao:He,defi:Ve,defiAlt:qe,eth:Ge,layers:Ke,lock:Ye,login:Qe,network:Xe,nft:Je,noun:et,profile:tt,system:nt};let at=class extends r.oi{constructor(){super(...arguments),this.name="browser"}render(){return r.dy`${ot[this.name]}`}};at.styles=[d,rt],it([(0,y.Cb)()],at.prototype,"name",void 0),at=it([f("wui-visual")],at);var st=n(910);const lt={getSpacingStyles:(e,t)=>Array.isArray(e)?e[t]?`var(--wui-spacing-${e[t]})`:void 0:"string"===typeof e?`var(--wui-spacing-${e})`:void 0,getFormattedDate:e=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(e),getHostName:e=>new URL(e).hostname,getTruncateString(e){let{string:t,charsStart:n,charsEnd:r,truncate:i}=e;return t.length<=n+r?t:"end"===i?`${t.substring(0,n)}...`:"start"===i?`...${t.substring(t.length-r)}`:`${t.substring(0,Math.floor(n))}...${t.substring(t.length-Math.floor(r))}`},generateAvatarColors(e){const t=e.toLowerCase().replace(/^0x/iu,"").substring(0,6),n=this.hexToRgb(t),r=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),i=100-3*Number(null===r||void 0===r?void 0:r.replace("px","")),o=`${i}% ${i}% at 65% 40%`,a=[];for(let s=0;s<5;s+=1){const e=this.tintColor(n,.15*s);a.push(`rgb(${e[0]}, ${e[1]}, ${e[2]})`)}return`\n --local-color-1: ${a[0]};\n --local-color-2: ${a[1]};\n --local-color-3: ${a[2]};\n --local-color-4: ${a[3]};\n --local-color-5: ${a[4]};\n --local-radial-circle: ${o}\n `},hexToRgb(e){const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},tintColor(e,t){const[n,r,i]=e;return[Math.round(n+(255-n)*t),Math.round(r+(255-r)*t),Math.round(i+(255-i)*t)]},isNumber:e=>/^[0-9]+$/u.test(e),getColorTheme:e=>e||("undefined"!==typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"dark")},ct=r.iv` :host { display: flex; width: inherit; height: inherit; } `;var ut=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let dt=class extends r.oi{render(){return this.style.cssText=`\n flex-direction: ${this.flexDirection};\n flex-wrap: ${this.flexWrap};\n flex-basis: ${this.flexBasis};\n flex-grow: ${this.flexGrow};\n flex-shrink: ${this.flexShrink};\n align-items: ${this.alignItems};\n justify-content: ${this.justifyContent};\n column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\n row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\n gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\n padding-top: ${this.padding&<.getSpacingStyles(this.padding,0)};\n padding-right: ${this.padding&<.getSpacingStyles(this.padding,1)};\n padding-bottom: ${this.padding&<.getSpacingStyles(this.padding,2)};\n padding-left: ${this.padding&<.getSpacingStyles(this.padding,3)};\n margin-top: ${this.margin&<.getSpacingStyles(this.margin,0)};\n margin-right: ${this.margin&<.getSpacingStyles(this.margin,1)};\n margin-bottom: ${this.margin&<.getSpacingStyles(this.margin,2)};\n margin-left: ${this.margin&<.getSpacingStyles(this.margin,3)};\n `,r.dy`<slot></slot>`}};dt.styles=[d,ct],ut([(0,y.Cb)()],dt.prototype,"flexDirection",void 0),ut([(0,y.Cb)()],dt.prototype,"flexWrap",void 0),ut([(0,y.Cb)()],dt.prototype,"flexBasis",void 0),ut([(0,y.Cb)()],dt.prototype,"flexGrow",void 0),ut([(0,y.Cb)()],dt.prototype,"flexShrink",void 0),ut([(0,y.Cb)()],dt.prototype,"alignItems",void 0),ut([(0,y.Cb)()],dt.prototype,"justifyContent",void 0),ut([(0,y.Cb)()],dt.prototype,"columnGap",void 0),ut([(0,y.Cb)()],dt.prototype,"rowGap",void 0),ut([(0,y.Cb)()],dt.prototype,"gap",void 0),ut([(0,y.Cb)()],dt.prototype,"padding",void 0),ut([(0,y.Cb)()],dt.prototype,"margin",void 0),dt=ut([f("wui-flex")],dt);const ht=r.iv` :host { display: block; width: var(--wui-icon-box-size-xl); height: var(--wui-icon-box-size-xl); border-radius: var(--wui-border-radius-3xl); box-shadow: 0 0 0 8px var(--wui-gray-glass-005); overflow: hidden; position: relative; } :host([data-variant='generated']) { --mixed-local-color-1: var(--local-color-1); --mixed-local-color-2: var(--local-color-2); --mixed-local-color-3: var(--local-color-3); --mixed-local-color-4: var(--local-color-4); --mixed-local-color-5: var(--local-color-5); } @supports (background: color-mix(in srgb, white 50%, black)) { :host([data-variant='generated']) { --mixed-local-color-1: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--local-color-1) ); --mixed-local-color-2: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--local-color-2) ); --mixed-local-color-3: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--local-color-3) ); --mixed-local-color-4: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--local-color-4) ); --mixed-local-color-5: color-mix( in srgb, var(--w3m-color-mix) var(--w3m-color-mix-strength), var(--local-color-5) ); } } :host([data-variant='generated']) { box-shadow: 0 0 0 8px var(--wui-gray-glass-005); background: radial-gradient( var(--local-radial-circle), #fff 0.52%, var(--mixed-local-color-5) 31.25%, var(--mixed-local-color-3) 51.56%, var(--mixed-local-color-2) 65.63%, var(--mixed-local-color-1) 82.29%, var(--mixed-local-color-4) 100% ); } :host([data-variant='default']) { box-shadow: 0 0 0 8px var(--wui-gray-glass-005); background: radial-gradient( 75.29% 75.29% at 64.96% 24.36%, #fff 0.52%, #f5ccfc 31.25%, #dba4f5 51.56%, #9a8ee8 65.63%, #6493da 82.29%, #6ebdea 100% ); } `;var pt=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ft=class extends r.oi{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0}render(){return r.dy`${this.visualTemplate()}`}visualTemplate(){var e;if(this.imageSrc)return this.dataset.variant="image",r.dy`<wui-image src=${this.imageSrc} alt=${null!==(e=this.alt)&&void 0!==e?e:"avatar"}></wui-image>`;if(this.address){this.dataset.variant="generated";const e=lt.generateAvatarColors(this.address);return this.style.cssText=e,null}return this.dataset.variant="default",null}};ft.styles=[d,ht],pt([(0,y.Cb)()],ft.prototype,"imageSrc",void 0),pt([(0,y.Cb)()],ft.prototype,"alt",void 0),pt([(0,y.Cb)()],ft.prototype,"address",void 0),ft=pt([f("wui-avatar")],ft);const mt=r.iv` :host { display: inline-flex; justify-content: center; align-items: center; position: relative; overflow: hidden; background-color: var(--wui-gray-glass-020); border-radius: var(--local-border-radius); box-shadow: 0 0 0 1px var(--local-border); width: var(--local-size); height: var(--local-size); min-height: var(--local-size); min-width: var(--local-size); } @supports (background: color-mix(in srgb, white 50%, black)) { :host { background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent); } } `;var gt=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let vt=class extends r.oi{constructor(){super(...arguments),this.size="md",this.backgroundColor="accent-100",this.iconColor="accent-100",this.background="transparent",this.border=!1,this.borderColor="wui-color-bg-125",this.icon="copy"}render(){const e=this.iconSize||this.size,t="lg"===this.size,n="xl"===this.size,i=t?"12%":"16%",o=t?"xxs":n?"s":"3xl",a="gray"===this.background,s="opaque"===this.background,l="accent-100"===this.backgroundColor&&s||"success-100"===this.backgroundColor&&s||"error-100"===this.backgroundColor&&s||"inverse-100"===this.backgroundColor&&s;let c=`var(--wui-color-${this.backgroundColor})`;return l?c=`var(--wui-icon-box-bg-${this.backgroundColor})`:a&&(c=`var(--wui-gray-${this.backgroundColor})`),this.style.cssText=`\n --local-bg-value: ${c};\n --local-bg-mix: ${l||a?"100%":i};\n --local-border-radius: var(--wui-border-radius-${o});\n --local-size: var(--wui-icon-box-size-${this.size});\n --local-border: ${"wui-color-bg-125"===this.borderColor?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"}\n `,r.dy` <wui-icon color=${this.iconColor} size=${e} name=${this.icon}></wui-icon> `}};vt.styles=[d,h,mt],gt([(0,y.Cb)()],vt.prototype,"size",void 0),gt([(0,y.Cb)()],vt.prototype,"backgroundColor",void 0),gt([(0,y.Cb)()],vt.prototype,"iconColor",void 0),gt([(0,y.Cb)()],vt.prototype,"iconSize",void 0),gt([(0,y.Cb)()],vt.prototype,"background",void 0),gt([(0,y.Cb)({type:Boolean})],vt.prototype,"border",void 0),gt([(0,y.Cb)()],vt.prototype,"borderColor",void 0),gt([(0,y.Cb)()],vt.prototype,"icon",void 0),vt=gt([f("wui-icon-box")],vt);const yt=r.iv` :host { display: block; } button { border-radius: var(--wui-border-radius-3xl); background: var(--wui-gray-glass-002); display: flex; gap: var(--wui-spacing-xs); padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) var(--wui-spacing-3xs) var(--wui-spacing-xs); border: 1px solid var(--wui-gray-glass-005); } button:disabled { background: var(--wui-gray-glass-015); } button:disabled > wui-text { color: var(--wui-gray-glass-015); } button:disabled > wui-flex > wui-text { color: var(--wui-gray-glass-015); } button:disabled > wui-image, button:disabled > wui-icon-box, button:disabled > wui-flex > wui-avatar { filter: grayscale(1); } button:has(wui-image) { padding: var(--wui-spacing-3xs) var(--wui-spacing-3xs) var(--wui-spacing-3xs) var(--wui-spacing-xs); } wui-text { color: var(--wui-color-fg-100); } wui-flex > wui-text { color: var(--wui-color-fg-200); transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg); } wui-image, wui-icon-box { border-radius: var(--wui-border-radius-3xl); width: 24px; height: 24px; box-shadow: 0 0 0 2px var(--wui-gray-glass-005); } wui-flex { border-radius: var(--wui-border-radius-3xl); border: 1px solid var(--wui-gray-glass-005); background: var(--wui-gray-glass-005); padding: 4px var(--wui-spacing-m) 4px var(--wui-spacing-xxs); } button.local-no-balance { border-radius: 0px; border: none; background: transparent; } wui-avatar { width: 20px; height: 20px; box-shadow: 0 0 0 2px var(--wui-accent-glass-010); } @media (max-width: 500px) { button { gap: 0px; padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) !important; height: 32px; } wui-image, wui-icon-box, button > wui-text { visibility: hidden; width: 0px; height: 0px; } button { border-radius: 0px; border: none; background: transparent; padding: 0px; } } @media (hover: hover) and (pointer: fine) { button:hover:enabled > wui-flex > wui-text { color: var(--wui-color-fg-175); } button:active:enabled > wui-flex > wui-text { color: var(--wui-color-fg-175); } } `;var bt=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let wt=class extends r.oi{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.disabled=!1,this.isProfileName=!1,this.address="",this.charsStart=4,this.charsEnd=6}render(){return r.dy` <button ?disabled=${this.disabled} class=${(0,st.o)(this.balance?void 0:"local-no-balance")} > ${this.balanceTemplate()} <wui-flex gap="xxs" alignItems="center"> <wui-avatar .imageSrc=${this.avatarSrc} alt=${this.address} address=${this.address} ></wui-avatar> <wui-text variant="paragraph-600" color="inherit"> ${lt.getTruncateString({string:this.address,charsStart:this.isProfileName?18:this.charsStart,charsEnd:this.isProfileName?0:this.charsEnd,truncate:this.isProfileName?"end":"middle"})} </wui-text> </wui-flex> </button> `}balanceTemplate(){if(this.balance){const e=this.networkSrc?r.dy`<wui-image src=${this.networkSrc}></wui-image>`:r.dy` <wui-icon-box size="sm" iconColor="fg-200" backgroundColor="fg-300" icon="networkPlaceholder" ></wui-icon-box> `;return r.dy` ${e} <wui-text variant="paragraph-600" color="inherit"> ${this.balance} </wui-text> `}return null}};wt.styles=[d,h,yt],bt([(0,y.Cb)()],wt.prototype,"networkSrc",void 0),bt([(0,y.Cb)()],wt.prototype,"avatarSrc",void 0),bt([(0,y.Cb)()],wt.prototype,"balance",void 0),bt([(0,y.Cb)({type:Boolean})],wt.prototype,"disabled",void 0),bt([(0,y.Cb)({type:Boolean})],wt.prototype,"isProfileName",void 0),bt([(0,y.Cb)()],wt.prototype,"address",void 0),bt([(0,y.Cb)()],wt.prototype,"charsStart",void 0),bt([(0,y.Cb)()],wt.prototype,"charsEnd",void 0),wt=bt([f("wui-account-button")],wt);const xt=r.iv` :host { position: relative; background-color: var(--wui-gray-glass-002); display: flex; justify-content: center; align-items: center; width: var(--local-size); height: var(--local-size); border-radius: inherit; border-radius: var(--local-border-radius); } :host > wui-flex { overflow: hidden; border-radius: inherit; border-radius: var(--local-border-radius); } :host::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: inherit; border: 1px solid var(--wui-gray-glass-010); pointer-events: none; } :host([name='Extension'])::after { border: 1px solid var(--wui-accent-glass-010); } :host([data-wallet-icon='allWallets']) { background-color: var(--wui-all-wallets-bg-100); } :host([data-wallet-icon='allWallets'])::after { border: 1px solid var(--wui-accent-glass-010); } wui-icon[data-parent-size='inherit'] { width: 75%; height: 75%; align-items: center; } wui-icon[data-parent-size='sm'] { width: 18px; height: 18px; } wui-icon[data-parent-size='md'] { width: 24px; height: 24px; } wui-icon[data-parent-size='lg'] { width: 42px; height: 42px; } wui-icon[data-parent-size='full'] { width: 100%; height: 100%; } :host > wui-icon-box { position: absolute; overflow: hidden; right: -1px; bottom: -2px; z-index: 1; border: 2px solid var(--wui-color-bg-base-150, #1e1f1f); padding: 1px; } `;var Ct=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Et=class extends r.oi{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let e="xxs";return e="lg"===this.size?"m":"md"===this.size?"xs":"xxs",this.style.cssText=`\n --local-border-radius: var(--wui-border-radius-${e});\n --local-size: var(--wui-wallet-image-size-${this.size});\n `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),r.dy` <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex> `}templateVisual(){return this.imageSrc?r.dy`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?r.dy`<wui-icon data-parent-size="md" size="md" color="inherit" name=${this.walletIcon} ></wui-icon>`:r.dy`<wui-icon data-parent-size=${this.size} size="inherit" color="inherit" name="walletPlaceholder" ></wui-icon>`}};Et.styles=[d,xt],Ct([(0,y.Cb)()],Et.prototype,"size",void 0),Ct([(0,y.Cb)()],Et.prototype,"name",void 0),Ct([(0,y.Cb)()],Et.prototype,"imageSrc",void 0),Ct([(0,y.Cb)()],Et.prototype,"walletIcon",void 0),Ct([(0,y.Cb)({type:Boolean})],Et.prototype,"installed",void 0),Ct([(0,y.Cb)()],Et.prototype,"badgeSize",void 0),Et=Ct([f("wui-wallet-image")],Et);const St=r.iv` :host { position: relative; border-radius: var(--wui-border-radius-xxs); width: 40px; height: 40px; overflow: hidden; background: var(--wui-gray-glass-002); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--wui-spacing-4xs); padding: 3.75px !important; } :host::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: inherit; border: 1px solid var(--wui-gray-glass-010); pointer-events: none; } :host > wui-wallet-image { width: 14px; height: 14px; border-radius: var(--wui-border-radius-5xs); } :host > wui-flex { padding: 2px; position: fixed; overflow: hidden; left: 34px; bottom: 8px; background: var(--dark-background-150, #1e1f1f); border-radius: 50%; z-index: 2; display: flex; } `;var kt=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let _t=class extends r.oi{constructor(){super(...arguments),this.walletImages=[]}render(){const e=this.walletImages.length<4;return r.dy`${this.walletImages.slice(0,4).map((e=>{let{src:t,walletName:n}=e;return r.dy` <wui-wallet-image size="inherit" imageSrc=${t} name=${(0,st.o)(n)} ></wui-wallet-image> `}))} ${e?[...Array(4-this.walletImages.length)].map((()=>r.dy` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`)):null} <wui-flex> <wui-icon-box size="xxs" iconSize="xxs" iconcolor="success-100" backgroundcolor="success-100" icon="checkmark" background="opaque" ></wui-icon-box> </wui-flex>`}};_t.styles=[d,St],kt([(0,y.Cb)({type:Array})],_t.prototype,"walletImages",void 0),_t=kt([f("wui-all-wallets-image")],_t);const Pt=r.iv` :host { width: var(--local-width); position: relative; } button { border: 1px solid var(--wui-gray-glass-010); border-radius: var(--wui-border-radius-m); width: var(--local-width); } button:disabled { border: 1px solid var(--wui-gray-glass-010); } button[data-size='sm'] { padding: var(--wui-spacing-xxs) var(--wui-spacing-s); } button[data-size='sm'][data-icon-left='true'] { padding: var(--wui-spacing-xxs) var(--wui-spacing-s) var(--wui-spacing-xxs) var(--wui-spacing-xs); } button[data-size='sm'][data-icon-right='true'] { padding: var(--wui-spacing-xxs) var(--wui-spacing-xs) var(--wui-spacing-xxs) var(--wui-spacing-s); } ::slotted(*) { transition: opacity 200ms ease-in-out; opacity: var(--local-opacity-100); } button > wui-text { transition: opacity 200ms ease-in-out; opacity: var(--local-opacity-100); } button[data-size='md'] { padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l); } button[data-size='md'][data-icon-left='true'] { padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s); } button[data-size='md'][data-icon-right='true'] { padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l); } wui-loading-spinner { position: absolute; left: 50%; top: 50%; transition: all 200ms ease-in-out; transform: translate(-50%, -50%); opacity: var(--local-opacity-000); } `;var At=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Rt=class extends r.oi{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="fill",this.hasIconLeft=!1,this.hasIconRight=!1}render(){this.style.cssText=`\n --local-width: ${this.fullWidth?"100%":"auto"};\n --local-opacity-100: ${this.loading?0:1};\n --local-opacity-000: ${this.loading?1:0};`;const e="md"===this.size?"paragraph-600":"small-600";return r.dy` <button data-variant=${this.variant} data-icon-left=${this.hasIconLeft} data-icon-right=${this.hasIconRight} data-size=${this.size} ?disabled=${this.disabled||this.loading} ontouchstart > ${this.loadingTemplate()} <slot name="iconLeft" @slotchange=${()=>this.handleSlotLeftChange()}></slot> <wui-text variant=${e} color="inherit"> <slot></slot> </wui-text> <slot name="iconRight" @slotchange=${()=>this.handleSlotRightChange()}></slot> </button> `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){return this.loading?r.dy`<wui-loading-spinner color="fg-300"></wui-loading-spinner>`:r.dy``}};Rt.styles=[d,h,Pt],At([(0,y.Cb)()],Rt.prototype,"size",void 0),At([(0,y.Cb)({type:Boolean})],Rt.prototype,"disabled",void 0),At([(0,y.Cb)({type:Boolean})],Rt.prototype,"fullWidth",void 0),At([(0,y.Cb)({type:Boolean})],Rt.prototype,"loading",void 0),At([(0,y.Cb)()],Rt.prototype,"variant",void 0),At([(0,y.Cb)({type:Boolean})],Rt.prototype,"hasIconLeft",void 0),At([(0,y.Cb)({type:Boolean})],Rt.prototype,"hasIconRight",void 0),Rt=At([f("wui-button")],Rt);const Ot=r.YP`<svg viewBox="0 0 48 54" fill="none"> <path d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z" /> </svg>`,Tt=r.iv` :host { display: flex; flex-direction: column; align-items: center; width: 76px; row-gap: var(--wui-spacing-xs); padding: var(--wui-spacing-xs) 10px; background-color: var(--wui-gray-glass-002); border-radius: clamp(0px, var(--wui-border-radius-xs), 20px); position: relative; } wui-shimmer[data-type='network'] { border: none; -webkit-clip-path: var(--wui-path-network); clip-path: var(--wui-path-network); } svg { position: absolute; width: 48px; height: 54px; z-index: 1; } svg > path { stroke: var(--wui-gray-glass-010); stroke-width: 1px; } `;var It=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Nt=class extends r.oi{constructor(){super(...arguments),this.type="wallet"}render(){return r.dy` ${this.shimmerTemplate()} <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer> `}shimmerTemplate(){return"network"===this.type?r.dy` <wui-shimmer data-type=${this.type} width="48px" height="54px" borderRadius="xs" ></wui-shimmer> ${Ot}`:r.dy`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};Nt.styles=[d,h,Tt],It([(0,y.Cb)()],Nt.prototype,"type",void 0),Nt=It([f("wui-card-select-loader")],Nt);const $t=r.YP`<svg width="86" height="96" fill="none"> <path d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z" /> </svg>`,Mt=r.iv` :host { position: relative; border-radius: inherit; display: flex; justify-content: center; align-items: center; width: var(--local-width); height: var(--local-height); } svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; fill: var(--wui-gray-glass-002); } svg > path { stroke: var(--local-stroke); transition: stroke var(--wui-ease-out-power-1) var(--wui-duration-lg); } wui-image { width: 100%; height: 100%; -webkit-clip-path: var(--local-path); clip-path: var(--local-path); background: var(--wui-gray-glass-002); } wui-icon { transform: translateY(-5%); width: var(--local-icon-size); height: var(--local-icon-size); } `;var jt=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Lt=class extends r.oi{constructor(){super(...arguments),this.size="md",this.name="uknown",this.selected=!1}render(){const e="lg"===this.size;return this.style.cssText=`\n --local-stroke: ${this.selected?"var(--wui-color-accent-100)":"var(--wui-gray-glass-010)"};\n --local-path: ${e?"var(--wui-path-network-lg)":"var(--wui-path-network)"};\n --local-width: ${e?"86px":"48px"};\n --local-height: ${e?"96px":"54px"};\n --local-icon-size: ${e?"42px":"24px"};\n `,r.dy`${this.templateVisual()} ${e?$t:Ot}`}templateVisual(){return this.imageSrc?r.dy`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:r.dy`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};Lt.styles=[d,Mt],jt([(0,y.Cb)()],Lt.prototype,"size",void 0),jt([(0,y.Cb)()],Lt.prototype,"name",void 0),jt([(0,y.Cb)()],Lt.prototype,"imageSrc",void 0),jt([(0,y.Cb)({type:Boolean})],Lt.prototype,"selected",void 0),Lt=jt([f("wui-network-image")],Lt);const Dt=r.iv` button { flex-direction: column; width: 76px; row-gap: var(--wui-spacing-xs); padding: var(--wui-spacing-xs) var(--wui-spacing-0); background-color: var(--wui-gray-glass-002); border-radius: clamp(0px, var(--wui-border-radius-xs), 20px); } button > wui-text { color: var(--wui-color-fg-100); max-width: var(--wui-icon-box-size-xl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-content: center; } button:disabled > wui-text { color: var(--wui-gray-glass-015); } [data-selected='true'] { background-color: var(--wui-accent-glass-020); } @media (hover: hover) and (pointer: fine) { [data-selected='true']:hover:enabled { background-color: var(--wui-accent-glass-015); } } [data-selected='true']:active:enabled { background-color: var(--wui-accent-glass-010); } `;var Bt=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ut=class extends r.oi{constructor(){super(...arguments),this.name="Unknown",this.type="wallet",this.imageSrc=void 0,this.disabled=!1,this.selected=!1,this.installed=!1}render(){return r.dy` <button data-selected=${(0,st.o)(this.selected)} ?disabled=${this.disabled} ontouchstart> ${this.imageTemplate()} <wui-text variant="tiny-500" color=${this.selected?"accent-100":"inherit"}> ${this.name} </wui-text> </button> `}imageTemplate(){return"network"===this.type?r.dy` <wui-network-image .selected=${this.selected} imageSrc=${(0,st.o)(this.imageSrc)} name=${this.name} > </wui-network-image> `:r.dy` <wui-wallet-image size="md" imageSrc=${(0,st.o)(this.imageSrc)} name=${this.name} .installed=${this.installed} badgeSize="sm" > </wui-wallet-image> `}};Ut.styles=[d,h,Dt],Bt([(0,y.Cb)()],Ut.prototype,"name",void 0),Bt([(0,y.Cb)()],Ut.prototype,"type",void 0),Bt([(0,y.Cb)()],Ut.prototype,"imageSrc",void 0),Bt([(0,y.Cb)({type:Boolean})],Ut.prototype,"disabled",void 0),Bt([(0,y.Cb)({type:Boolean})],Ut.prototype,"selected",void 0),Bt([(0,y.Cb)({type:Boolean})],Ut.prototype,"installed",void 0),Ut=Bt([f("wui-card-select")],Ut);const Ft=r.iv` a { border: 1px solid var(--wui-gray-glass-010); border-radius: var(--wui-border-radius-3xl); } wui-image { border-radius: var(--wui-border-radius-3xl); overflow: hidden; } a.disabled > wui-icon, a.disabled > wui-image { filter: grayscale(1); } a[data-variant='fill'] { color: var(--wui-color-inverse-100); background-color: var(--wui-color-accent-100); } a[data-variant='shade'], a[data-variant='shadeSmall'] { background-color: transparent; background-color: var(--wui-gray-glass-010); color: var(--wui-color-fg-200); } a[data-variant='success'] { column-gap: var(--wui-spacing-xxs); border: 1px solid var(--wui-success-glass-010); background-color: var(--wui-success-glass-010); color: var(--wui-color-success-100); } a[data-variant='transparent'] { column-gap: var(--wui-spacing-xxs); background-color: transparent; color: var(--wui-color-fg-150); } a[data-variant='transparent'], a[data-variant='success'], a[data-variant='shadeSmall'] { padding: 7px var(--wui-spacing-s) 7px 10px; } a[data-variant='transparent']:has(wui-text:first-child), a[data-variant='success']:has(wui-text:first-child), a[data-variant='shadeSmall']:has(wui-text:first-child) { padding: 7px var(--wui-spacing-s); } a[data-variant='fill'], a[data-variant='shade'] { column-gap: var(--wui-spacing-xs); padding: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-xxs) var(--wui-spacing-xs); } a[data-variant='fill']:has(wui-text:first-child), a[data-variant='shade']:has(wui-text:first-child) { padding: 9px var(--wui-spacing-m) 9px var(--wui-spacing-m); } a[data-variant='fill'] > wui-image, a[data-variant='shade'] > wui-image { width: 24px; height: 24px; } a[data-variant='fill'] > wui-image { box-shadow: inset 0 0 0 1px var(--wui-color-accent-090); } a[data-variant='shade'] > wui-image, a[data-variant='shadeSmall'] > wui-image { box-shadow: inset 0 0 0 1px var(--wui-gray-glass-010); } a[data-variant='fill'] > wui-icon, a[data-variant='shade'] > wui-icon { width: 14px; height: 14px; } a[data-variant='transparent'] > wui-image, a[data-variant='success'] > wui-image, a[data-variant='shadeSmall'] > wui-image { width: 14px; height: 14px; } a[data-variant='transparent'] > wui-icon, a[data-variant='success'] > wui-icon, a[data-variant='shadeSmall'] > wui-icon { width: 12px; height: 12px; } a[data-variant='fill']:focus-visible { background-color: var(--wui-color-accent-090); } a[data-variant='shade']:focus-visible, a[data-variant='shadeSmall']:focus-visible { background-color: var(--wui-gray-glass-015); } a[data-variant='transparent']:focus-visible { background-color: var(--wui-gray-glass-005); } a[data-variant='success']:focus-visible { background-color: var(--wui-success-glass-015); } a.disabled { color: var(--wui-gray-glass-015); background-color: var(--wui-gray-glass-015); pointer-events: none; } @media (hover: hover) and (pointer: fine) { a[data-variant='fill']:hover { background-color: var(--wui-color-accent-090); } a[data-variant='shade']:hover, a[data-variant='shadeSmall']:hover { background-color: var(--wui-gray-glass-015); } a[data-variant='transparent']:hover { background-color: var(--wui-gray-glass-005); } a[data-variant='success']:hover { background-color: var(--wui-success-glass-015); } } a[data-variant='fill']:active { background-color: var(--wui-color-accent-080); } a[data-variant='shade']:active, a[data-variant='shadeSmall']:active { background-color: var(--wui-gray-glass-020); } a[data-variant='transparent']:active { background-color: var(--wui-gray-glass-010); } a[data-variant='success']:active { background-color: var(--wui-success-glass-020); } `;var zt=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Wt=class extends r.oi{constructor(){super(...arguments),this.variant="fill",this.imageSrc=void 0,this.disabled=!1,this.icon="externalLink",this.href="",this.text=void 0}render(){const e="success"===this.variant||"transparent"===this.variant||"shadeSmall"===this.variant?"small-600":"paragraph-600";return r.dy` <a rel="noreferrer" target="_blank" href=${this.href} class=${this.disabled?"disabled":""} data-variant=${this.variant} > ${this.imageTemplate()} <wui-text variant=${e} color="inherit"> ${this.title?this.title:lt.getHostName(this.href)} </wui-text> <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon> </a> `}imageTemplate(){return this.imageSrc?r.dy`<wui-image src=${this.imageSrc}></wui-image>`:null}};Wt.styles=[d,h,Ft],zt([(0,y.Cb)()],Wt.prototype,"variant",void 0),zt([(0,y.Cb)()],Wt.prototype,"imageSrc",void 0),zt([(0,y.Cb)({type:Boolean})],Wt.prototype,"disabled",void 0),zt([(0,y.Cb)()],Wt.prototype,"icon",void 0),zt([(0,y.Cb)()],Wt.prototype,"href",void 0),zt([(0,y.Cb)()],Wt.prototype,"text",void 0),Wt=zt([f("wui-chip")],Wt);const Zt=r.iv` :host { position: relative; display: block; } button { background: var(--wui-color-accent-100); border: 1px solid var(--wui-gray-glass-010); border-radius: var(--wui-border-radius-m); gap: var(--wui-spacing-xs); } button.loading { background: var(--wui-gray-glass-010); border: 1px solid var(--wui-gray-glass-010); pointer-events: none; } button:disabled { background-color: var(--wui-gray-glass-015); border: 1px solid var(--wui-gray-glass-010); } button:disabled > wui-text { color: var(--wui-gray-glass-015); } @media (hover: hover) and (pointer: fine) { button:hover:enabled { background-color: var(--wui-color-accent-090); } button:active:enabled { background-color: var(--wui-color-accent-080); } } button:focus-visible { border: 1px solid var(--wui-gray-glass-010); background-color: var(--wui-color-accent-090); -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); } button[data-size='sm'] { padding: 6.75px 10px 7.25px; } ::slotted(*) { transition: opacity 200ms ease-in-out; opacity: var(--local-opacity-100); } button > wui-text { transition: opacity 200ms ease-in-out; opacity: var(--local-opacity-100); color: var(--wui-color-inverse-100); } button[data-size='md'] { padding: 9px var(--wui-spacing-l) 9px var(--wui-spacing-l); } button[data-size='md'] + wui-text { padding-left: var(--wui-spacing-3xs); } @media (max-width: 500px) { button[data-size='md'] { height: 32px; padding: 5px 12px; } button[data-size='md'] > wui-text > slot { font-size: 14px !important; } } wui-loading-spinner { width: 14px; height: 14px; } wui-loading-spinner::slotted(svg) { width: 10px !important; height: 10px !important; } button[data-size='sm'] > wui-loading-spinner { width: 12px; height: 12px; } `;var Ht=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Vt=class extends r.oi{constructor(){super(...arguments),this.size="md",this.loading=!1}render(){const e="md"===this.size?"paragraph-600":"small-600";return r.dy` <button data-size=${this.size} ?disabled=${this.loading} ontouchstart> ${this.loadingTemplate()} <wui-text variant=${e} color=${this.loading?"accent-100":"inherit"}> <slot></slot> </wui-text> </button> `}loadingTemplate(){return this.loading?r.dy`<wui-loading-spinner size=${this.size} color="accent-100"></wui-loading-spinner>`:null}};Vt.styles=[d,h,Zt],Ht([(0,y.Cb)()],Vt.prototype,"size",void 0),Ht([(0,y.Cb)({type:Boolean})],Vt.prototype,"loading",void 0),Vt=Ht([f("wui-connect-button")],Vt);const qt=r.iv` wui-flex { width: 100%; background-color: var(--wui-gray-glass-002); border-radius: var(--wui-border-radius-xs); } `;var Gt=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Kt=class extends r.oi{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return r.dy` <wui-flex justifyContent="space-between" alignItems="center" .padding=${["1xs","2l","1xs","2l"]} > <wui-text variant="paragraph-500" color="fg-200">${this.label}</wui-text> <wui-button size="sm" variant="accent"> ${this.buttonLabel} <wui-icon size="xs" color="inherit" slot="iconRight" name="chevronRight"></wui-icon> </wui-button> </wui-flex> `}};Kt.styles=[d,h,qt],Gt([(0,y.Cb)({type:Boolean})],Kt.prototype,"disabled",void 0),Gt([(0,y.Cb)()],Kt.prototype,"label",void 0),Gt([(0,y.Cb)()],Kt.prototype,"buttonLabel",void 0),Kt=Gt([f("wui-cta-button")],Kt);var Yt=n(4135);const Qt=r.iv` :host { position: relative; width: 100%; display: inline-block; color: var(--wui-color-fg-275); } input { width: 100%; border-radius: var(--wui-border-radius-xs); border: 1px solid var(--wui-gray-glass-005); background: var(--wui-gray-glass-005); font-size: var(--wui-font-size-paragraph); font-weight: var(--wui-font-weight-light); letter-spacing: var(--wui-letter-spacing-paragraph); color: var(--wui-color-fg-100); transition: all var(--wui-ease-inout-power-1) var(--wui-duration-lg); caret-color: var(--wui-color-accent-100); } input:disabled { cursor: not-allowed; border: 1px solid var(--wui-gray-glass-010); } input:disabled::placeholder, input:disabled + wui-icon { color: var(--wui-color-fg-300); } input::placeholder { color: var(--wui-color-fg-275); } input:focus:enabled { transition: all var(--wui-ease-out-power-2) var(--wui-duration-sm); background-color: var(--wui-gray-glass-010); border: 1px solid var(--wui-color-accent-100); -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); } input:hover:enabled { background-color: var(--wui-gray-glass-010); } wui-icon { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; } .wui-size-sm { padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s); } wui-icon + .wui-size-sm { padding: 9px var(--wui-spacing-m) 10px 36px; } wui-icon[data-input='sm'] { left: var(--wui-spacing-s); } .wui-size-md { padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m); } wui-icon + .wui-size-md, wui-loading-spinner + .wui-size-md { padding: 10.5px var(--wui-spacing-3xl) 10.5px 40px; } wui-icon[data-input='md'] { left: var(--wui-spacing-l); } input:placeholder-shown ~ ::slotted(wui-input-element), input:placeholder-shown ~ ::slotted(wui-icon) { opacity: 0; pointer-events: none; } ::slotted(wui-input-element), ::slotted(wui-icon) { position: absolute; top: 50%; transform: translateY(-50%); transition: all var(--wui-ease-in-power-2) var(--wui-duration-md); } ::slotted(wui-input-element) { right: var(--wui-spacing-m); } ::slotted(wui-icon) { right: 0px; } `;var Xt=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Jt=class extends r.oi{constructor(){super(...arguments),this.inputElementRef=(0,Yt.V)(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text"}render(){const e=`wui-size-${this.size}`;return r.dy` ${this.templateIcon()} <input ${(0,Yt.i)(this.inputElementRef)} class=${e} type=${this.type} enterkeyhint=${(0,st.o)(this.enterKeyHint)} ?disabled=${this.disabled} placeholder=${this.placeholder} @input=${this.dispatchInputChangeEvent.bind(this)} value=${(0,st.o)(this.value)} /> <slot></slot>`}templateIcon(){return this.icon?r.dy`<wui-icon data-input=${this.size} size="sm" color="inherit" name=${this.icon} ></wui-icon>`:null}dispatchInputChangeEvent(){var e;this.dispatchEvent(new CustomEvent("inputChange",{detail:null===(e=this.inputElementRef.value)||void 0===e?void 0:e.value,bubbles:!0,composed:!0}))}};Jt.styles=[d,h,Qt],Xt([(0,y.Cb)()],Jt.prototype,"size",void 0),Xt([(0,y.Cb)()],Jt.prototype,"icon",void 0),Xt([(0,y.Cb)({type:Boolean})],Jt.prototype,"disabled",void 0),Xt([(0,y.Cb)()],Jt.prototype,"placeholder",void 0),Xt([(0,y.Cb)()],Jt.prototype,"type",void 0),Xt([(0,y.Cb)()],Jt.prototype,"keyHint",void 0),Xt([(0,y.Cb)()],Jt.prototype,"value",void 0),Jt=Xt([f("wui-input-text")],Jt);const en=r.iv` :host { position: relative; display: inline-block; } wui-text { margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m); } `;var tn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let nn=class extends r.oi{constructor(){super(...arguments),this.disabled=!1}render(){return r.dy` <wui-input-text placeholder="Email" icon="mail" size="md" .disabled=${this.disabled} .value=${this.value} data-testid="wui-email-input" ></wui-input-text> ${this.templateError()} `}templateError(){return this.errorMessage?r.dy`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`:null}};nn.styles=[d,en],tn([(0,y.Cb)()],nn.prototype,"errorMessage",void 0),tn([(0,y.Cb)({type:Boolean})],nn.prototype,"disabled",void 0),tn([(0,y.Cb)()],nn.prototype,"value",void 0),nn=tn([f("wui-email-input")],nn);const rn=r.iv` button { border-radius: var(--wui-border-radius-xxs); color: var(--wui-color-fg-100); padding: var(--wui-spacing-2xs); } @media (max-width: 700px) { button { padding: var(--wui-spacing-s); } } button > wui-icon { pointer-events: none; } button:disabled > wui-icon { color: var(--wui-color-bg-300) !important; } button:disabled { background-color: transparent; } `;var on=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let an=class extends r.oi{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}render(){return r.dy` <button ?disabled=${this.disabled} ontouchstart> <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon> </button> `}};an.styles=[d,h,p,rn],on([(0,y.Cb)()],an.prototype,"size",void 0),on([(0,y.Cb)({type:Boolean})],an.prototype,"disabled",void 0),on([(0,y.Cb)()],an.prototype,"icon",void 0),on([(0,y.Cb)()],an.prototype,"iconColor",void 0),an=on([f("wui-icon-link")],an);const sn=r.iv` button { background-color: var(--wui-color-fg-300); border-radius: var(--wui-border-radius-4xs); width: 16px; height: 16px; } button:disabled { background-color: var(--wui-color-bg-300); } wui-icon { color: var(--wui-color-bg-200) !important; } button:focus-visible { background-color: var(--wui-color-fg-250); border: 1px solid var(--wui-color-accent-100); } button:active:enabled { background-color: var(--wui-color-fg-225); } @media (hover: hover) and (pointer: fine) { button:hover:enabled { background-color: var(--wui-color-fg-250); } } `;var ln=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let cn=class extends r.oi{constructor(){super(...arguments),this.icon="copy"}render(){return r.dy` <button> <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon> </button> `}};cn.styles=[d,h,sn],ln([(0,y.Cb)()],cn.prototype,"icon",void 0),cn=ln([f("wui-input-element")],cn);const un=r.iv` :host { position: relative; display: inline-block; } input { width: 50px; height: 50px; background: var(--wui-gray-glass-010); border-radius: var(--wui-border-radius-xs); border: 1px solid var(--wui-gray-glass-005); font-family: var(--wui-font-family); font-size: var(--wui-font-size-large); font-weight: var(--wui-font-weight-regular); letter-spacing: var(--wui-letter-spacing-large); text-align: center; color: var(--wui-color-fg-100); caret-color: var(--wui-color-accent-100); transition: all var(--wui-ease-inout-power-1) var(--wui-duration-lg); box-sizing: border-box; -webkit-appearance: none; -moz-appearance: textfield; padding: 0px; } input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } input[type='number'] { -moz-appearance: textfield; } input:disabled { cursor: not-allowed; border: 1px solid var(--wui-gray-glass-010); background: var(--wui-gray-glass-005); } input:focus:enabled { transition: all var(--wui-ease-out-power-2) var(--wui-duration-sm); background-color: var(--wui-gray-glass-015); border: 1px solid var(--wui-color-accent-100); -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); } @media (hover: hover) and (pointer: fine) { input:hover:enabled { background-color: var(--wui-gray-glass-015); } } `;var dn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let hn=class extends r.oi{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return r.dy`<input type="number" maxlength="1" inputmode="numeric" autofocus ?disabled=${this.disabled} value=${this.value} /> `}};hn.styles=[d,h,un],dn([(0,y.Cb)({type:Boolean})],hn.prototype,"disabled",void 0),dn([(0,y.Cb)({type:String})],hn.prototype,"value",void 0),hn=dn([f("wui-input-numeric")],hn);const pn=r.iv` button { padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs); border-radius: var(--wui-border-radius-3xs); background-color: transparent; color: var(--wui-color-accent-100); } button:disabled { background-color: transparent; color: var(--wui-gray-glass-015); } `;var fn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let mn=class extends r.oi{constructor(){super(...arguments),this.disabled=!1,this.color="inherit"}render(){return r.dy` <button ?disabled=${this.disabled} ontouchstart> <slot name="iconLeft"></slot> <wui-text variant="small-600" color=${this.color}> <slot></slot> </wui-text> <slot name="iconRight"></slot> </button> `}};mn.styles=[d,h,pn],fn([(0,y.Cb)({type:Boolean})],mn.prototype,"disabled",void 0),fn([(0,y.Cb)()],mn.prototype,"color",void 0),mn=fn([f("wui-link")],mn);const gn=r.iv` button { column-gap: var(--wui-spacing-s); padding: 11px 18px 11px var(--wui-spacing-s); width: 100%; background-color: var(--wui-gray-glass-002); border-radius: var(--wui-border-radius-xs); color: var(--wui-color-fg-250); } button[data-iconvariant='square'], button[data-iconvariant='square-blue'] { padding: 6px 18px 6px 9px; } button > wui-flex { flex: 1; } button > wui-image { width: 32px; height: 32px; box-shadow: 0 0 0 2px var(--wui-gray-glass-005); border-radius: var(--wui-border-radius-3xl); } button > wui-icon { width: 36px; height: 36px; } button > wui-icon-box[data-variant='blue'] { box-shadow: 0 0 0 2px var(--wui-accent-glass-005); } button > wui-icon-box[data-variant='overlay'] { box-shadow: 0 0 0 2px var(--wui-gray-glass-005); } button > wui-icon-box[data-variant='square-blue'] { border-radius: var(--wui-border-radius-3xs); position: relative; border: none; width: 36px; height: 36px; } button > wui-icon-box[data-variant='square-blue']::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: inherit; border: 1px solid var(--wui-accent-glass-010); pointer-events: none; } button > wui-icon:last-child { width: 14px; height: 14px; } button:disabled { background-color: var(--wui-gray-glass-015); color: var(--wui-gray-glass-015); } button[data-loading='true'] > wui-icon { transition: opacity 200ms ease-in-out; opacity: 0; } wui-loading-spinner { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); } `;var vn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let yn=class extends r.oi{constructor(){super(...arguments),this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return r.dy` <button ?disabled=${!!this.loading||Boolean(this.disabled)} data-loading=${this.loading} data-iconvariant=${(0,st.o)(this.iconVariant)} ontouchstart > ${this.loadingTemplate()} ${this.visualTemplate()} <wui-flex gap="3xs"> <slot></slot> </wui-flex> ${this.chevronTemplate()} </button> `}visualTemplate(){var e;if("image"===this.variant&&this.imageSrc)return r.dy`<wui-image src=${this.imageSrc} alt=${null!==(e=this.alt)&&void 0!==e?e:"list item"}></wui-image>`;if("square"===this.iconVariant&&this.icon&&"icon"===this.variant)return r.dy`<wui-icon name=${this.icon}></wui-icon>`;if("icon"===this.variant&&this.icon&&this.iconVariant){const e=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",t="square-blue"===this.iconVariant?"mdl":"md",n=this.iconSize?this.iconSize:t;return r.dy` <wui-icon-box data-variant=${this.iconVariant} icon=${this.icon} iconSize=${n} background="transparent" iconColor=${e} backgroundColor=${e} size=${t} ></wui-icon-box> `}return null}loadingTemplate(){return this.loading?r.dy`<wui-loading-spinner color="fg-300"></wui-loading-spinner>`:r.dy``}chevronTemplate(){return this.chevron?r.dy`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};var bn;yn.styles=[d,h,gn],vn([(0,y.Cb)()],yn.prototype,"icon",void 0),vn([(0,y.Cb)()],yn.prototype,"iconSize",void 0),vn([(0,y.Cb)()],yn.prototype,"variant",void 0),vn([(0,y.Cb)()],yn.prototype,"iconVariant",void 0),vn([(0,y.Cb)({type:Boolean})],yn.prototype,"disabled",void 0),vn([(0,y.Cb)()],yn.prototype,"imageSrc",void 0),vn([(0,y.Cb)()],yn.prototype,"alt",void 0),vn([(0,y.Cb)({type:Boolean})],yn.prototype,"chevron",void 0),vn([(0,y.Cb)({type:Boolean})],yn.prototype,"loading",void 0),yn=vn([f("wui-list-item")],yn),function(e){e.approve="approved",e.bought="bought",e.borrow="borrowed",e.burn="burnt",e.cancel="canceled",e.claim="claimed",e.deploy="deployed",e.deposit="deposited",e.execute="executed",e.mint="minted",e.receive="received",e.repay="repaid",e.send="sent",e.sell="sold",e.stake="staked",e.trade="swapped",e.unstake="unstaked",e.withdraw="withdrawn"}(bn||(bn={}));const wn=r.iv` :host > wui-flex { display: flex; justify-content: center; align-items: center; position: relative; width: 40px; height: 40px; box-shadow: inset 0 0 0 1px var(--wui-gray-glass-005); background-color: var(--wui-gray-glass-005); } :host > wui-flex wui-image { display: block; z-index: -1; } :host > wui-flex, :host > wui-flex wui-image, .swap-images-container, .swap-images-container.nft, wui-image.nft { border-top-left-radius: var(--local-left-border-radius); border-top-right-radius: var(--local-right-border-radius); border-bottom-left-radius: var(--local-left-border-radius); border-bottom-right-radius: var(--local-right-border-radius); } wui-icon { width: 20px; height: 20px; } wui-icon-box { position: absolute; right: 0; bottom: 0; transform: translate(20%, 20%); } .swap-images-container { position: relative; width: 40px; height: 40px; overflow: hidden; } .swap-images-container wui-image:first-child { position: absolute; width: 40px; height: 40px; top: 0; left: 0%; clip-path: inset(0px calc(50% + 2px) 0px 0%); } .swap-images-container wui-image:last-child { clip-path: inset(0px 0px 0px calc(50% + 2px)); } `;var xn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Cn=class extends r.oi{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""}}render(){const[e,t]=this.images,n="NFT"===(null===e||void 0===e?void 0:e.type),i=n?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)",o=(null!==t&&void 0!==t&&t.url?"NFT"===t.type:n)?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)";return this.style.cssText=`\n --local-left-border-radius: ${i};\n --local-right-border-radius: ${o};\n `,r.dy`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`}templateVisual(){const[e,t]=this.images,n=null===e||void 0===e?void 0:e.type;return 2===this.images.length&&(null!==e&&void 0!==e&&e.url||null!==t&&void 0!==t&&t.url)?r.dy`<div class="swap-images-container"> ${null!==e&&void 0!==e&&e.url?r.dy`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:null} ${null!==t&&void 0!==t&&t.url?r.dy`<wui-image src=${t.url} alt="Transaction image"></wui-image>`:null} </div>`:null!==e&&void 0!==e&&e.url?r.dy`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:"NFT"===n?r.dy`<wui-icon size="inherit" color="fg-200" name="nftPlaceholder"></wui-icon>`:r.dy`<wui-icon size="inherit" color="fg-200" name="coinPlaceholder"></wui-icon>`}templateIcon(){let e,t="accent-100";return e=this.getIcon(),this.status&&(t=this.getStatusColor()),e?r.dy` <wui-icon-box size="xxs" iconColor=${t} backgroundColor=${t} background="opaque" icon=${e} ?border=${!0} borderColor="wui-color-bg-125" ></wui-icon-box> `:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():"trade"===this.type?"swapHorizontalBold":"approve"===this.type?"checkmark":"cancel"===this.type?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success-100";case"failed":return"error-100";case"pending":return"inverse-100";default:return"accent-100"}}};Cn.styles=[wn],xn([(0,y.Cb)()],Cn.prototype,"type",void 0),xn([(0,y.Cb)()],Cn.prototype,"status",void 0),xn([(0,y.Cb)()],Cn.prototype,"direction",void 0),xn([(0,y.Cb)({type:Boolean})],Cn.prototype,"onlyDirectionIcon",void 0),xn([(0,y.Cb)({type:Array})],Cn.prototype,"images",void 0),xn([(0,y.Cb)({type:Object})],Cn.prototype,"secondImage",void 0),Cn=xn([f("wui-transaction-visual")],Cn);const En=r.iv` :host > wui-flex:first-child { align-items: center; column-gap: var(--wui-spacing-s); padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs); width: 100%; } :host > wui-flex:first-child wui-text:nth-child(1) { text-transform: capitalize; } wui-transaction-visual { width: 40px; height: 40px; } wui-flex { flex: 1; } :host wui-flex wui-flex { overflow: hidden; } :host .description-container wui-text span { word-break: break-all; } :host .description-container wui-text { overflow: hidden; } :host .description-separator-icon { margin: 0px 6px; } :host wui-text > span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; } `;var Sn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let kn=class extends r.oi{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[]}render(){return r.dy` <wui-flex> <wui-transaction-visual .status=${this.status} direction=${(0,st.o)(this.direction)} type=${this.type} onlyDirectionIcon=${(0,st.o)(this.onlyDirectionIcon)} .images=${this.images} ></wui-transaction-visual> <wui-flex flexDirection="column" gap="3xs"> <wui-text variant="paragraph-600" color="fg-100"> ${bn[this.type]} </wui-text> <wui-flex class="description-container"> ${this.templateDescription()} ${this.templateSecondDescription()} </wui-flex> </wui-flex> <wui-text variant="micro-700" color="fg-300"><span>${this.date}</span></wui-text> </wui-flex> `}templateDescription(){var e;const t=null===(e=this.descriptions)||void 0===e?void 0:e[0];return t?r.dy` <wui-text variant="small-500" color="fg-200"> <span>${t}</span> </wui-text> `:null}templateSecondDescription(){var e;const t=null===(e=this.descriptions)||void 0===e?void 0:e[1];return t?r.dy` <wui-icon class="description-separator-icon" size="xxs" name="arrowRight"></wui-icon> <wui-text variant="small-400" color="fg-200"> <span>${t}</span> </wui-text> `:null}};kn.styles=[d,En],Sn([(0,y.Cb)()],kn.prototype,"type",void 0),Sn([(0,y.Cb)({type:Array})],kn.prototype,"descriptions",void 0),Sn([(0,y.Cb)()],kn.prototype,"date",void 0),Sn([(0,y.Cb)({type:Boolean})],kn.prototype,"onlyDirectionIcon",void 0),Sn([(0,y.Cb)()],kn.prototype,"status",void 0),Sn([(0,y.Cb)()],kn.prototype,"direction",void 0),Sn([(0,y.Cb)({type:Array})],kn.prototype,"images",void 0),kn=Sn([f("wui-transaction-list-item")],kn);const _n=r.iv` :host > wui-flex:first-child { column-gap: var(--wui-spacing-s); padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); width: 100%; } wui-flex { display: flex; flex: 1; } `;var Pn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let An=class extends r.oi{render(){return r.dy` <wui-flex alignItems="center"> <wui-shimmer width="40px" height="40px"></wui-shimmer> <wui-flex flexDirection="column" gap="2xs"> <wui-shimmer width="72px" height="16px" borderRadius="4xs"></wui-shimmer> <wui-shimmer width="148px" height="14px" borderRadius="4xs"></wui-shimmer> </wui-flex> <wui-shimmer width="24px" height="12px" borderRadius="5xs"></wui-shimmer> </wui-flex> `}};An.styles=[d,_n],An=Pn([f("wui-transaction-list-item-loader")],An);const Rn=r.iv` :host { display: block; padding: 3.5px 5px !important; border-radius: var(--wui-border-radius-5xs); } :host([data-variant='main']) { background-color: var(--wui-accent-glass-015); color: var(--wui-color-accent-100); } :host([data-variant='shade']) { background-color: var(--wui-gray-glass-010); color: var(--wui-color-fg-200); } :host([data-variant='success']) { background-color: var(--wui-icon-box-bg-success-100); color: var(--wui-color-success-100); } :host([data-variant='error']) { background-color: var(--wui-icon-box-bg-error-100); color: var(--wui-color-error-100); } `;var On=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Tn=class extends r.oi{constructor(){super(...arguments),this.variant="main"}render(){return this.dataset.variant=this.variant,r.dy` <wui-text data-variant=${this.variant} variant="micro-700" color="inherit"> <slot></slot> </wui-text> `}};Tn.styles=[d,Rn],On([(0,y.Cb)()],Tn.prototype,"variant",void 0),Tn=On([f("wui-tag")],Tn);const In=r.iv` button { column-gap: var(--wui-spacing-s); padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); width: 100%; background-color: var(--wui-gray-glass-002); border-radius: var(--wui-border-radius-xs); color: var(--wui-color-fg-100); } button > wui-text:nth-child(2) { display: flex; flex: 1; } wui-icon { color: var(--wui-color-fg-200) !important; } button:disabled { background-color: var(--wui-gray-glass-015); color: var(--wui-gray-glass-015); } button:disabled > wui-tag { background-color: var(--wui-gray-glass-010); color: var(--wui-color-fg-300); } `;var Nn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let $n=class extends r.oi{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.installed=!1,this.disabled=!1,this.showAllWallets=!1}render(){return r.dy` <button ?disabled=${this.disabled} ontouchstart> ${this.templateAllWallets()} ${this.templateWalletImage()} <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text> ${this.templateStatus()} </button> `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?r.dy` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?r.dy` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?r.dy`<wui-wallet-image size="sm" imageSrc=${this.imageSrc} name=${this.name} .installed=${this.installed} ></wui-wallet-image>`:this.showAllWallets||this.imageSrc?null:r.dy`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`}templateStatus(){return this.tagLabel&&this.tagVariant?r.dy`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?r.dy`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};$n.styles=[d,h,In],Nn([(0,y.Cb)({type:Array})],$n.prototype,"walletImages",void 0),Nn([(0,y.Cb)()],$n.prototype,"imageSrc",void 0),Nn([(0,y.Cb)()],$n.prototype,"name",void 0),Nn([(0,y.Cb)()],$n.prototype,"tagLabel",void 0),Nn([(0,y.Cb)()],$n.prototype,"tagVariant",void 0),Nn([(0,y.Cb)()],$n.prototype,"icon",void 0),Nn([(0,y.Cb)()],$n.prototype,"walletIcon",void 0),Nn([(0,y.Cb)({type:Boolean})],$n.prototype,"installed",void 0),Nn([(0,y.Cb)({type:Boolean})],$n.prototype,"disabled",void 0),Nn([(0,y.Cb)({type:Boolean})],$n.prototype,"showAllWallets",void 0),$n=Nn([f("wui-list-wallet")],$n);const Mn=r.iv` :host { display: block; width: 40px; height: 40px; border-radius: var(--wui-border-radius-3xl); border: 1px solid var(--wui-gray-glass-010); overflow: hidden; } wui-icon { width: 100%; height: 100%; } `;var jn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ln=class extends r.oi{constructor(){super(...arguments),this.logo="google"}render(){return r.dy`<wui-icon color="inherit" size="inherit" name=${this.logo}></wui-icon> `}};Ln.styles=[d,Mn],jn([(0,y.Cb)()],Ln.prototype,"logo",void 0),Ln=jn([f("wui-logo")],Ln);const Dn=r.iv` :host { display: block; } button { width: 50px; height: 50px; background: var(--wui-gray-glass-002); border-radius: var(--wui-border-radius-xs); } `;var Bn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Un=class extends r.oi{constructor(){super(...arguments),this.logo="google",this.disabled=!1}render(){return r.dy` <button ?disabled=${this.disabled} ontouchstart> <wui-logo logo=${this.logo}></wui-logo> </button> `}};Un.styles=[d,h,Dn],Bn([(0,y.Cb)()],Un.prototype,"logo",void 0),Bn([(0,y.Cb)({type:Boolean})],Un.prototype,"disabled",void 0),Un=Bn([f("wui-logo-select")],Un);const Fn=r.iv` :host { display: block; } button { border-radius: var(--wui-border-radius-3xl); display: flex; gap: var(--wui-spacing-xs); padding: var(--wui-spacing-2xs) var(--wui-spacing-s) var(--wui-spacing-2xs) var(--wui-spacing-xs); border: 1px solid var(--wui-gray-glass-010); background-color: var(--wui-gray-glass-005); color: var(--wui-color-fg-100); } button:disabled { border: 1px solid var(--wui-gray-glass-005); background-color: var(--wui-gray-glass-015); color: var(--wui-gray-glass-015); } @media (hover: hover) and (pointer: fine) { button:hover:enabled { background-color: var(--wui-gray-glass-010); } button:active:enabled { background-color: var(--wui-gray-glass-015); } } wui-image, wui-icon-box { border-radius: var(--wui-border-radius-3xl); width: 24px; height: 24px; box-shadow: 0 0 0 2px var(--wui-gray-glass-005); } `;var zn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Wn=class extends r.oi{constructor(){super(...arguments),this.imageSrc=void 0,this.disabled=!1}render(){return r.dy` <button ?disabled=${this.disabled}> ${this.visualTemplate()} <wui-text variant="paragraph-600" color="inherit"> <slot></slot> </wui-text> </button> `}visualTemplate(){return this.imageSrc?r.dy`<wui-image src=${this.imageSrc}></wui-image>`:r.dy` <wui-icon-box size="sm" iconColor="inverse-100" backgroundColor="fg-100" icon="networkPlaceholder" ></wui-icon-box> `}};Wn.styles=[d,h,Fn],zn([(0,y.Cb)()],Wn.prototype,"imageSrc",void 0),zn([(0,y.Cb)({type:Boolean})],Wn.prototype,"disabled",void 0),Wn=zn([f("wui-network-button")],Wn);const Zn=r.iv` :host { position: relative; display: block; } `;var Hn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Vn=class extends r.oi{constructor(){super(...arguments),this.length=6,this.otp="",this.values=Array.from({length:this.length}).map((()=>"")),this.numerics=[],this.shouldInputBeEnabled=e=>this.values.slice(0,e).every((e=>""!==e)),this.handleKeyDown=(e,t)=>{const n=e.target,r=this.getInputElement(n);if(!r)return;["ArrowLeft","ArrowRight","Shift","Delete"].includes(e.key)&&e.preventDefault();const i=r.selectionStart;switch(e.key){case"ArrowLeft":i&&r.setSelectionRange(i+1,i+1),this.focusInputField("prev",t);break;case"ArrowRight":case"Shift":this.focusInputField("next",t);break;case"Delete":case"Backspace":""===r.value?this.focusInputField("prev",t):this.updateInput(r,t,"")}},this.focusInputField=(e,t)=>{if("next"===e){const e=t+1;if(!this.shouldInputBeEnabled(e))return;const n=this.numerics[e<this.length?e:t],r=n?this.getInputElement(n):void 0;r&&(r.disabled=!1,r.focus())}if("prev"===e){const e=t-1,n=this.numerics[e>-1?e:t],r=n?this.getInputElement(n):void 0;r&&r.focus()}}}firstUpdated(){var e,t;this.otp&&(this.values=this.otp.split(""));const n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("wui-input-numeric");n&&(this.numerics=Array.from(n)),null===(t=this.numerics[0])||void 0===t||t.focus()}render(){return r.dy` <wui-flex gap="xxs" data-testid="wui-otp-input"> ${Array.from({length:this.length}).map(((e,t)=>r.dy` <wui-input-numeric @input=${e=>this.handleInput(e,t)} @keydown=${e=>this.handleKeyDown(e,t)} .disabled=${!this.shouldInputBeEnabled(t)} .value=${this.values[t]||""} > </wui-input-numeric> `))} </wui-flex> `}updateInput(e,t,n){const r=this.numerics[t],i=e||(r?this.getInputElement(r):void 0);i&&(i.value=n,this.values=this.values.map(((e,r)=>r===t?n:e)))}handleInput(e,t){const n=e.target,r=this.getInputElement(n);if(r){const n=r.value;if("insertFromPaste"===e.inputType)this.handlePaste(r,n,t);else{lt.isNumber(n)&&e.data?(this.updateInput(r,t,e.data),this.focusInputField("next",t)):this.updateInput(r,t,"")}}this.dispatchInputChangeEvent()}handlePaste(e,t,n){const r=t[0];if(r&<.isNumber(r)){this.updateInput(e,n,r);const i=t.substring(1);if(n+1<this.length&&i.length){const e=this.numerics[n+1],t=e?this.getInputElement(e):void 0;t&&this.handlePaste(t,i,n+1)}else this.focusInputField("next",n)}else this.updateInput(e,n,"")}getInputElement(e){var t;return null!==(t=e.shadowRoot)&&void 0!==t&&t.querySelector("input")?e.shadowRoot.querySelector("input"):null}dispatchInputChangeEvent(){const e=this.values.join("");this.dispatchEvent(new CustomEvent("inputChange",{detail:e,bubbles:!0,composed:!0}))}};Vn.styles=[d,Zn],Hn([(0,y.Cb)({type:Number})],Vn.prototype,"length",void 0),Hn([(0,y.Cb)({type:String})],Vn.prototype,"otp",void 0),Hn([(0,y.SB)()],Vn.prototype,"values",void 0),Vn=Hn([f("wui-otp")],Vn);var qn=n(3789);function Gn(e,t,n){if(e===t)return!1;return(e-t<0?t-e:e-t)<=n+.1}const Kn={generate(e,t,n){const i="#141414",o=[],a=function(e,t){const n=Array.prototype.slice.call(qn.create(e,{errorCorrectionLevel:t}).modules.data,0),r=Math.sqrt(n.length);return n.reduce(((e,t,n)=>(n%r===0?e.push([t]):e[e.length-1].push(t))&&e),[])}(e,"Q"),s=t/a.length,l=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];l.forEach((e=>{let{x:t,y:n}=e;const c=(a.length-7)*s*t,u=(a.length-7)*s*n,d=.45;for(let a=0;a<l.length;a+=1){const e=s*(7-2*a);o.push(r.YP` <rect fill=${2===a?i:"transparent"} width=${0===a?e-5:e} rx= ${0===a?(e-5)*d:e*d} ry= ${0===a?(e-5)*d:e*d} stroke=${i} stroke-width=${0===a?5:0} height=${0===a?e-5:e} x= ${0===a?u+s*a+2.5:u+s*a} y= ${0===a?c+s*a+2.5:c+s*a} /> `)}}));const c=Math.floor((n+25)/s),u=a.length/2-c/2,d=a.length/2+c/2-1,h=[];a.forEach(((e,t)=>{e.forEach(((e,n)=>{if(a[t][n]&&!(t<7&&n<7||t>a.length-8&&n<7||t<7&&n>a.length-8)&&!(t>u&&t<d&&n>u&&n<d)){const e=t*s+s/2,r=n*s+s/2;h.push([e,r])}}))}));const p={};return h.forEach((e=>{let[t,n]=e;var r;p[t]?null===(r=p[t])||void 0===r||r.push(n):p[t]=[n]})),Object.entries(p).map((e=>{let[t,n]=e;const r=n.filter((e=>n.every((t=>!Gn(e,t,s)))));return[Number(t),r]})).forEach((e=>{let[t,n]=e;n.forEach((e=>{o.push(r.YP`<circle cx=${t} cy=${e} fill=${i} r=${s/2.5} />`)}))})),Object.entries(p).filter((e=>{let[t,n]=e;return n.length>1})).map((e=>{let[t,n]=e;const r=n.filter((e=>n.some((t=>Gn(e,t,s)))));return[Number(t),r]})).map((e=>{let[t,n]=e;n.sort(((e,t)=>e<t?-1:1));const r=[];for(const i of n){const e=r.find((e=>e.some((e=>Gn(i,e,s)))));e?e.push(i):r.push([i])}return[t,r.map((e=>[e[0],e[e.length-1]]))]})).forEach((e=>{let[t,n]=e;n.forEach((e=>{let[n,a]=e;o.push(r.YP` <line x1=${t} x2=${t} y1=${n} y2=${a} stroke=${i} stroke-width=${s/1.25} stroke-linecap="round" /> `)}))})),o}},Yn=r.iv` :host { position: relative; user-select: none; display: block; overflow: hidden; aspect-ratio: 1 / 1; width: var(--local-size); } :host([data-theme='dark']) { border-radius: clamp(0px, var(--wui-border-radius-l), 40px); background-color: var(--wui-color-inverse-100); padding: var(--wui-spacing-l); } :host([data-theme='light']) { box-shadow: 0 0 0 1px var(--wui-color-bg-125); background-color: var(--wui-color-bg-125); } svg:first-child, wui-image, wui-icon { position: absolute; top: 50%; left: 50%; transform: translateY(-50%) translateX(-50%); } wui-image { width: 25%; height: 25%; border-radius: var(--wui-border-radius-xs); } wui-icon { width: 100%; height: 100%; color: #3396ff !important; transform: translateY(-50%) translateX(-50%) scale(0.25); } `;var Qn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Xn=class extends r.oi{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0}render(){return this.dataset.theme=this.theme,this.style.cssText=`--local-size: ${this.size}px`,r.dy`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){const e="light"===this.theme?this.size:this.size-32;return r.YP` <svg height=${e} width=${e}> ${Kn.generate(this.uri,e,e/4)} </svg> `}templateVisual(){var e;return this.imageSrc?r.dy`<wui-image src=${this.imageSrc} alt=${null!==(e=this.alt)&&void 0!==e?e:"logo"}></wui-image>`:r.dy`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};Xn.styles=[d,Yn],Qn([(0,y.Cb)()],Xn.prototype,"uri",void 0),Qn([(0,y.Cb)({type:Number})],Xn.prototype,"size",void 0),Qn([(0,y.Cb)()],Xn.prototype,"theme",void 0),Qn([(0,y.Cb)()],Xn.prototype,"imageSrc",void 0),Qn([(0,y.Cb)()],Xn.prototype,"alt",void 0),Xn=Qn([f("wui-qr-code")],Xn);const Jn=r.iv` :host { position: relative; display: inline-block; width: 100%; } `;var er=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let tr=class extends r.oi{constructor(){super(...arguments),this.inputComponentRef=(0,Yt.V)()}render(){return r.dy` <wui-input-text ${(0,Yt.i)(this.inputComponentRef)} placeholder="Search wallet" icon="search" type="search" enterKeyHint="search" size="sm" > <wui-input-element @click=${this.clearValue} icon="close"></wui-input-element> </wui-input-text> `}clearValue(){const e=this.inputComponentRef.value,t=null===e||void 0===e?void 0:e.inputElementRef.value;t&&(t.value="",t.focus(),t.dispatchEvent(new Event("input")))}};tr.styles=[d,Jn],tr=er([f("wui-search-bar")],tr);const nr=r.iv` :host { display: flex; column-gap: var(--wui-spacing-xs); align-items: center; padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs); border-radius: var(--wui-border-radius-3xl); border: 1px solid var(--wui-gray-glass-005); background-color: var(--wui-color-bg-175); box-shadow: 0px 14px 64px -4px rgba(0, 0, 0, 0.15), 0px 8px 22px -6px rgba(0, 0, 0, 0.15); } `;var rr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ir=class extends r.oi{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message=""}render(){return r.dy` <wui-icon-box size="sm" iconSize="xs" iconColor=${this.iconColor} backgroundColor=${this.backgroundColor} icon=${this.icon} background="opaque" ></wui-icon-box> <wui-text variant="paragraph-500" color="fg-100">${this.message}</wui-text> `}};ir.styles=[d,nr],rr([(0,y.Cb)()],ir.prototype,"backgroundColor",void 0),rr([(0,y.Cb)()],ir.prototype,"iconColor",void 0),rr([(0,y.Cb)()],ir.prototype,"icon",void 0),rr([(0,y.Cb)()],ir.prototype,"message",void 0),ir=rr([f("wui-snackbar")],ir);const or=r.iv` :host { display: inline-flex; background-color: var(--wui-gray-glass-002); border-radius: var(--wui-border-radius-3xl); padding: var(--wui-spacing-3xs); position: relative; height: 36px; overflow: hidden; } :host::before { content: ''; position: absolute; pointer-events: none; top: 4px; left: 4px; display: block; width: var(--local-tab-width); height: 28px; border-radius: var(--wui-border-radius-3xl); background-color: var(--wui-gray-glass-002); box-shadow: inset 0 0 0 1px var(--wui-gray-glass-002); transform: translateX(calc(var(--local-tab) * var(--local-tab-width))); transition: transform var(--wui-ease-out-power-2) var(--wui-duration-lg); } :host([data-type='flex'])::before { left: 3px; transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px))); } :host([data-type='flex']) { display: flex; padding: 0px 0px 0px 12px; gap: 4px; } :host([data-type='flex']) > button > wui-text { position: absolute; left: 18px; opacity: 0; } button[data-active='true'] > wui-icon, button[data-active='true'] > wui-text { color: var(--wui-color-fg-100); } button[data-active='false'] > wui-icon, button[data-active='false'] > wui-text { color: var(--wui-color-fg-200); } button[data-active='true']:disabled, button[data-active='false']:disabled { background-color: transparent; opacity: 0.5; cursor: not-allowed; } button[data-active='true']:disabled > wui-text { color: var(--wui-color-fg-200); } button[data-active='false']:disabled > wui-text { color: var(--wui-color-fg-300); } button > wui-icon, button > wui-text { pointer-events: none; transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg); } button { width: var(--local-tab-width); } :host([data-type='flex']) > button { width: 34px; position: relative; display: flex; justify-content: flex-start; } button:hover:enabled, button:active:enabled { background-color: transparent !important; } button:hover:enabled > wui-icon, button:active:enabled > wui-icon { color: var(--wui-color-fg-125); } button:hover:enabled > wui-text, button:active:enabled > wui-text { color: var(--wui-color-fg-125); } button { border-radius: var(--wui-border-radius-3xl); } `;var ar=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let sr=class extends r.oi{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.activeTab=0,this.localTabWidth="100px",this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`\n --local-tab: ${this.activeTab};\n --local-tab-width: ${this.localTabWidth};\n `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map(((e,t)=>{const n=t===this.activeTab;return r.dy` <button ?disabled=${this.disabled} @click=${()=>this.onTabClick(t)} data-active=${n} > <wui-icon size="xs" color="inherit" name=${e.icon}></wui-icon> <wui-text variant="small-600" color="inherit"> ${e.label} </wui-text> </button> `}))}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout((()=>{this.animateTabs(0,!0)}),0))}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,t){const n=this.buttons[this.activeTab],r=this.buttons[e],i=null===n||void 0===n?void 0:n.querySelector("wui-text"),o=null===r||void 0===r?void 0:r.querySelector("wui-text"),a=null===r||void 0===r?void 0:r.getBoundingClientRect(),s=null===o||void 0===o?void 0:o.getBoundingClientRect();n&&i&&!t&&e!==this.activeTab&&(i.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),n.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),r&&a&&s&&o&&(e!==this.activeTab||t)&&(this.localTabWidth=`${Math.round(a.width+s.width)+6}px`,r.animate([{width:`${a.width+s.width}px`}],{duration:t?0:500,fill:"forwards",easing:"ease"}),o.animate([{opacity:1}],{duration:t?0:125,delay:t?0:200,fill:"forwards",easing:"ease"}))}};sr.styles=[d,h,or],ar([(0,y.Cb)({type:Array})],sr.prototype,"tabs",void 0),ar([(0,y.Cb)()],sr.prototype,"onTabChange",void 0),ar([(0,y.Cb)({type:Array})],sr.prototype,"buttons",void 0),ar([(0,y.Cb)({type:Boolean})],sr.prototype,"disabled",void 0),ar([(0,y.SB)()],sr.prototype,"activeTab",void 0),ar([(0,y.SB)()],sr.prototype,"localTabWidth",void 0),ar([(0,y.SB)()],sr.prototype,"isDense",void 0),sr=ar([f("wui-tabs")],sr);const lr=r.iv` :host { display: block; padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s); border-radius: var(--wui-border-radius-xxs); background-color: var(--wui-color-fg-100); color: var(--wui-color-bg-100); position: relative; } wui-icon { position: absolute; width: 12px !important; height: 4px !important; } wui-icon[data-placement='top'] { bottom: 0; left: 50%; transform: translate(-50%, 95%); } wui-icon[data-placement='bottom'] { top: 0; left: 50%; transform: translate(-50%, -95%) rotate(180deg); } wui-icon[data-placement='right'] { top: 50%; left: 0; transform: translate(-65%, -50%) rotate(90deg); } wui-icon[data-placement='left'] { top: 50%; right: 0%; transform: translate(65%, -50%) rotate(270deg); } `;var cr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ur=class extends r.oi{constructor(){super(...arguments),this.placement="top",this.message=""}render(){return r.dy`<wui-icon data-placement=${this.placement} color="fg-100" size="inherit" name="cursor" ></wui-icon> <wui-text color="inherit" variant="small-500">${this.message}</wui-text>`}};ur.styles=[d,h,lr],cr([(0,y.Cb)()],ur.prototype,"placement",void 0),cr([(0,y.Cb)()],ur.prototype,"message",void 0),ur=cr([f("wui-tooltip")],ur);const dr=r.iv` :host { display: flex; justify-content: center; align-items: center; width: var(--wui-icon-box-size-xl); height: var(--wui-icon-box-size-xl); box-shadow: 0 0 0 8px var(--wui-thumbnail-border); border-radius: var(--local-border-radius); overflow: hidden; } wui-icon { width: 32px; height: 32px; } `;var hr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let pr=class extends r.oi{render(){return this.style.cssText=`--local-border-radius: ${this.borderRadiusFull?"1000px":"20px"};`,r.dy`${this.templateVisual()}`}templateVisual(){var e;return this.imageSrc?r.dy`<wui-image src=${this.imageSrc} alt=${null!==(e=this.alt)&&void 0!==e?e:""}></wui-image>`:r.dy`<wui-icon data-parent-size="md" size="inherit" color="inherit" name="walletPlaceholder" ></wui-icon>`}};pr.styles=[d,dr],hr([(0,y.Cb)()],pr.prototype,"imageSrc",void 0),hr([(0,y.Cb)()],pr.prototype,"alt",void 0),hr([(0,y.Cb)({type:Boolean})],pr.prototype,"borderRadiusFull",void 0),pr=hr([f("wui-visual-thumbnail")],pr);const fr=r.iv` :host { display: block; } button { width: 100%; display: block; padding-top: var(--wui-spacing-l); padding-bottom: var(--wui-spacing-l); padding-left: var(--wui-spacing-s); padding-right: var(--wui-spacing-2l); border-radius: var(--wui-border-radius-s); background-color: var(--wui-accent-glass-015); } button:hover { background-color: var(--wui-accent-glass-010) !important; } button:active { background-color: var(--wui-accent-glass-020) !important; } `;var mr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let gr=class extends r.oi{constructor(){super(...arguments),this.label="",this.description="",this.icon="wallet"}render(){return r.dy` <button> <wui-flex gap="m" alignItems="center" justifyContent="space-between"> <wui-icon-box size="lg" iconcolor="accent-100" backgroundcolor="accent-100" icon=${this.icon} background="transparent" ></wui-icon-box> <wui-flex flexDirection="column" gap="3xs"> <wui-text variant="paragraph-500" color="fg-100">${this.label}</wui-text> <wui-text variant="small-400" color="fg-200">${this.description}</wui-text> </wui-flex> <wui-icon size="md" color="fg-200" name="chevronRight"></wui-icon> </wui-flex> </button> `}};gr.styles=[d,h,fr],mr([(0,y.Cb)()],gr.prototype,"label",void 0),mr([(0,y.Cb)()],gr.prototype,"description",void 0),mr([(0,y.Cb)()],gr.prototype,"icon",void 0),gr=mr([f("wui-notice-card")],gr);const vr=r.iv` button { height: auto; position: relative; flex-direction: column; gap: var(--wui-spacing-s); padding: 17px 18px 17px var(--wui-spacing-m); width: 100%; background-color: var(--wui-gray-glass-002); border-radius: var(--wui-border-radius-xs); color: var(--wui-color-fg-250); } .overflowedContent { width: 100%; overflow: hidden; } .overflowedContent[data-active='false']:after { content: ''; position: absolute; top: 50%; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, var(--wui-color-bg-200), transparent); border-bottom-left-radius: var(--wui-border-radius-xs); border-bottom-right-radius: var(--wui-border-radius-xs); } .heightContent { max-height: 100px; } pre { text-align: left; white-space: pre-wrap; height: auto; overflow-x: auto; overflow-wrap: anywhere; } `;var yr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let br=class extends r.oi{constructor(){super(...arguments),this.textTitle="",this.overflowedContent="",this.toggled=!1,this.enableAccordion=!1,this.scrollElement=void 0,this.scrollHeightElement=0}firstUpdated(){setTimeout((()=>{var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".heightContent");if(t){this.scrollElement=t;const e=null===t||void 0===t?void 0:t.scrollHeight;e&&e>100&&(this.enableAccordion=!0,this.scrollHeightElement=e,this.requestUpdate())}}),0)}render(){return r.dy` <button ontouchstart @click=${()=>this.onClick()}> <wui-flex justifyContent="space-between" alignItems="center"> <wui-text variant="paragraph-500" color="fg-100">${this.textTitle}</wui-text> ${this.chevronTemplate()} </wui-flex> <div data-active=${!this.enableAccordion||Boolean(this.toggled)} class="overflowedContent" > <div class="heightContent"> <wui-text variant="paragraph-400" color="fg-200"> <pre>${this.overflowedContent}</pre> </wui-text> </div> </div> </button> `}onClick(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("wui-icon");this.enableAccordion&&(this.toggled=!this.toggled,this.requestUpdate(),this.scrollElement&&this.scrollElement.animate([{maxHeight:this.toggled?"100px":`${this.scrollHeightElement}px`},{maxHeight:this.toggled?`${this.scrollHeightElement}px`:"100px"}],{duration:300,fill:"forwards",easing:"ease"}),t&&t.animate([{transform:this.toggled?"rotate(0deg)":"rotate(180deg)"},{transform:this.toggled?"rotate(180deg)":"rotate(0deg)"}],{duration:300,fill:"forwards",easing:"ease"}))}chevronTemplate(){return this.enableAccordion?r.dy` <wui-icon color="fg-100" size="sm" name="chevronBottom"></wui-icon>`:null}};br.styles=[d,h,vr],yr([(0,y.Cb)()],br.prototype,"textTitle",void 0),yr([(0,y.Cb)()],br.prototype,"overflowedContent",void 0),br=yr([f("wui-list-accordion")],br);const wr=r.iv` :host { display: flex; column-gap: var(--wui-spacing-s); padding: 17px 18px 17px var(--wui-spacing-m); width: 100%; background-color: var(--wui-gray-glass-002); border-radius: var(--wui-border-radius-xs); color: var(--wui-color-fg-250); } wui-image { width: var(--wui-icon-size-lg); height: var(--wui-icon-size-lg); border-radius: var(--wui-border-radius-3xl); } wui-icon { width: var(--wui-icon-size-lg); height: var(--wui-icon-size-lg); } `;var xr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Cr=class extends r.oi{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return r.dy` <wui-flex justifyContent="space-between" alignItems="center"> <wui-text variant="paragraph-500" color=${this.textValue?"fg-200":"fg-100"}> ${this.textTitle} </wui-text> ${this.templateContent()} </wui-flex> `}templateContent(){return this.imageSrc?r.dy`<wui-image src=${this.imageSrc} alt=${this.textTitle}></wui-image>`:this.textValue?r.dy` <wui-text variant="paragraph-400" color="fg-100"> ${this.textValue} </wui-text>`:r.dy`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};Cr.styles=[d,h,wr],xr([(0,y.Cb)()],Cr.prototype,"imageSrc",void 0),xr([(0,y.Cb)()],Cr.prototype,"textTitle",void 0),xr([(0,y.Cb)()],Cr.prototype,"textValue",void 0),Cr=xr([f("wui-list-content")],Cr);const Er=r.iv` :host { display: flex; flex-direction: column; gap: var(--wui-spacing-l); padding: 17px 18px 17px var(--wui-spacing-m); width: 100%; background-color: var(--wui-gray-glass-002); border-radius: var(--wui-border-radius-xs); color: var(--wui-color-fg-250); } wui-image { width: var(--wui-icon-size-lg); height: var(--wui-icon-size-lg); border-radius: var(--wui-border-radius-3xl); } wui-icon { width: var(--wui-icon-size-lg); height: var(--wui-icon-size-lg); } `;var Sr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let kr=class extends r.oi{constructor(){super(...arguments),this.amount="",this.networkCurreny="",this.networkImageUrl="",this.receiverAddress=""}render(){return r.dy` <wui-flex justifyContent="space-between" alignItems="center"> <wui-text variant="paragraph-500" color="fg-200">Sending</wui-text> <wui-flex gap="xs" alignItems="center"> <wui-text variant="paragraph-400" color="fg-100"> ${this.amount} ${this.networkCurreny} </wui-text> ${this.templateNetworkVisual()} </wui-flex> </wui-flex> <wui-flex justifyContent="space-between" alignItems="center"> <wui-text variant="paragraph-500" color="fg-200">To</wui-text> <wui-chip icon="externalLink" variant="shadeSmall" href=${this.receiverAddress} title=${this.receiverAddress} ></wui-chip> </wui-flex> `}templateNetworkVisual(){return this.networkImageUrl?r.dy`<wui-image src=${this.networkImageUrl} alt="Network Image"></wui-image>`:r.dy`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};kr.styles=[d,h,Er],Sr([(0,y.Cb)()],kr.prototype,"amount",void 0),Sr([(0,y.Cb)()],kr.prototype,"networkCurreny",void 0),Sr([(0,y.Cb)()],kr.prototype,"networkImageUrl",void 0),Sr([(0,y.Cb)()],kr.prototype,"receiverAddress",void 0),kr=Sr([f("wui-list-wallet-transaction")],kr);const _r=r.iv` :host { display: grid; width: inherit; height: inherit; } `;var Pr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ar=class extends r.oi{render(){return this.style.cssText=`\n grid-template-rows: ${this.gridTemplateRows};\n grid-template-columns: ${this.gridTemplateColumns};\n justify-items: ${this.justifyItems};\n align-items: ${this.alignItems};\n justify-content: ${this.justifyContent};\n align-content: ${this.alignContent};\n column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\n row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\n gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\n padding-top: ${this.padding&<.getSpacingStyles(this.padding,0)};\n padding-right: ${this.padding&<.getSpacingStyles(this.padding,1)};\n padding-bottom: ${this.padding&<.getSpacingStyles(this.padding,2)};\n padding-left: ${this.padding&<.getSpacingStyles(this.padding,3)};\n margin-top: ${this.margin&<.getSpacingStyles(this.margin,0)};\n margin-right: ${this.margin&<.getSpacingStyles(this.margin,1)};\n margin-bottom: ${this.margin&<.getSpacingStyles(this.margin,2)};\n margin-left: ${this.margin&<.getSpacingStyles(this.margin,3)};\n `,r.dy`<slot></slot>`}};Ar.styles=[d,_r],Pr([(0,y.Cb)()],Ar.prototype,"gridTemplateRows",void 0),Pr([(0,y.Cb)()],Ar.prototype,"gridTemplateColumns",void 0),Pr([(0,y.Cb)()],Ar.prototype,"justifyItems",void 0),Pr([(0,y.Cb)()],Ar.prototype,"alignItems",void 0),Pr([(0,y.Cb)()],Ar.prototype,"justifyContent",void 0),Pr([(0,y.Cb)()],Ar.prototype,"alignContent",void 0),Pr([(0,y.Cb)()],Ar.prototype,"columnGap",void 0),Pr([(0,y.Cb)()],Ar.prototype,"rowGap",void 0),Pr([(0,y.Cb)()],Ar.prototype,"gap",void 0),Pr([(0,y.Cb)()],Ar.prototype,"padding",void 0),Pr([(0,y.Cb)()],Ar.prototype,"margin",void 0),Ar=Pr([f("wui-grid")],Ar);const Rr=r.iv` :host { position: relative; display: flex; width: 100%; height: 1px; background-color: var(--wui-gray-glass-005); justify-content: center; align-items: center; } :host > wui-text { position: absolute; padding: 0px 10px; background-color: var(--wui-color-modal-bg); } `;var Or=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Tr=class extends r.oi{constructor(){super(...arguments),this.text=""}render(){return r.dy`${this.template()}`}template(){return this.text?r.dy`<wui-text variant="small-500" color="fg-200">${this.text}</wui-text>`:null}};Tr.styles=[d,Rr],Or([(0,y.Cb)()],Tr.prototype,"text",void 0),Tr=Or([f("wui-separator")],Tr);var Ir=n(3452);const Nr=["receive","deposit","borrow","claim"],$r=["withdraw","repay","burn"],Mr={getTransactionGroupTitle:e=>e===Ir.E.getYear()?"This Year":e,getTransactionImages(e){const[t,n]=e,r=Boolean(t)&&(null===e||void 0===e?void 0:e.every((e=>Boolean(e.nft_info)))),i=(null===e||void 0===e?void 0:e.length)>1;return 2===(null===e||void 0===e?void 0:e.length)&&!r?[this.getTransactionImage(t),this.getTransactionImage(n)]:i?e.map((e=>this.getTransactionImage(e))):[this.getTransactionImage(t)]},getTransactionImage:e=>({type:Mr.getTransactionTransferTokenType(e),url:Mr.getTransactionImageURL(e)}),getTransactionImageURL(e){let t=null;const n=Boolean(null===e||void 0===e?void 0:e.nft_info),r=Boolean(null===e||void 0===e?void 0:e.fungible_info);var i,o,a;if(e&&n)t=null===e||void 0===e||null===(i=e.nft_info)||void 0===i||null===(o=i.content)||void 0===o||null===(a=o.preview)||void 0===a?void 0:a.url;else if(e&&r){var s,l;t=null===e||void 0===e||null===(s=e.fungible_info)||void 0===s||null===(l=s.icon)||void 0===l?void 0:l.url}return t},getTransactionTransferTokenType:e=>null!==e&&void 0!==e&&e.fungible_info?"FUNGIBLE":null!==e&&void 0!==e&&e.nft_info?"NFT":null,getTransactionDescriptions(e){var t,n,r;const i=null===(t=e.metadata)||void 0===t?void 0:t.operationType,o=e.transfers,a=(null===(n=e.transfers)||void 0===n?void 0:n.length)>0,s=(null===(r=e.transfers)||void 0===r?void 0:r.length)>1,l=a&&(null===o||void 0===o?void 0:o.every((e=>Boolean(e.fungible_info)))),[c,u]=o;let d=this.getTransferDescription(c),h=this.getTransferDescription(u);if(!a){return("send"===i||"receive"===i)&&l?(d=lt.getTruncateString({string:e.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),h=lt.getTruncateString({string:e.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[d,h]):[e.metadata.status]}if(s)return o.map((e=>this.getTransferDescription(e)));let p="";return Nr.includes(i)?p="+":$r.includes(i)&&(p="-"),d=p.concat(d),[d]},getTransferDescription(e){let t="";if(!e)return t;var n;null!==e&&void 0!==e&&e.nft_info?t=(null===e||void 0===e||null===(n=e.nft_info)||void 0===n?void 0:n.name)||"-":null!==e&&void 0!==e&&e.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-");return t},getFungibleTransferDescription(e){var t;if(!e)return null;return[this.getQuantityFixedValue(null===e||void 0===e?void 0:e.quantity.numeric),null===e||void 0===e||null===(t=e.fungible_info)||void 0===t?void 0:t.symbol].join(" ").trim()},getQuantityFixedValue(e){if(!e)return null;return parseFloat(e).toFixed(3)}}},5023:(e,t,n)=>{"use strict";n.d(t,{XM:()=>i,Xe:()=>o,pX:()=>r});const r={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},i=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{_$litDirective$:e,values:n}};class o{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}},2889:(e,t,n)=>{"use strict";var r;n.d(t,{Jb:()=>P,Ld:()=>A,YP:()=>_,_$LH:()=>z,dy:()=>k,sY:()=>Z});const i=globalThis,o=i.trustedTypes,a=o?o.createPolicy("lit-html",{createHTML:e=>e}):void 0,s="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+l,u=`<${c}>`,d=document,h=()=>d.createComment(""),p=e=>null===e||"object"!=typeof e&&"function"!=typeof e,f=Array.isArray,m=e=>f(e)||"function"==typeof(null===e||void 0===e?void 0:e[Symbol.iterator]),g="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,b=/>/g,w=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,C=/"/g,E=/^(?:script|style|textarea|title)$/i,S=e=>function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:e,strings:t,values:r}},k=S(1),_=S(2),P=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),R=new WeakMap,O=d.createTreeWalker(d,129);function T(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==a?a.createHTML(t):t}const I=(e,t)=>{const n=e.length-1,r=[];let i,o=2===t?"<svg>":"",a=v;for(let d=0;d<n;d++){const t=e[d];let n,h,p=-1,f=0;for(;f<t.length&&(a.lastIndex=f,h=a.exec(t),null!==h);){var c;f=a.lastIndex,a===v?"!--"===h[1]?a=y:void 0!==h[1]?a=b:void 0!==h[2]?(E.test(h[2])&&(i=RegExp("</"+h[2],"g")),a=w):void 0!==h[3]&&(a=w):a===w?">"===h[0]?(a=null!==(c=i)&&void 0!==c?c:v,p=-1):void 0===h[1]?p=-2:(p=a.lastIndex-h[2].length,n=h[1],a=void 0===h[3]?w:'"'===h[3]?C:x):a===C||a===x?a=w:a===y||a===b?a=v:(a=w,i=void 0)}const m=a===w&&e[d+1].startsWith("/>")?" ":"";o+=a===v?t+u:p>=0?(r.push(n),t.slice(0,p)+s+t.slice(p)+l+m):t+l+(-2===p?d:m)}return[T(e,o+(e[n]||"<?>")+(2===t?"</svg>":"")),r]};class N{constructor(e,t){let n,{strings:r,_$litType$:i}=e;this.parts=[];let a=0,u=0;const d=r.length-1,p=this.parts,[f,m]=I(r,i);if(this.el=N.createElement(f,t),O.currentNode=this.el.content,2===i){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=O.nextNode())&&p.length<d;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(s)){const t=m[u++],r=n.getAttribute(e).split(l),i=/([.?@])?(.*)/.exec(t);p.push({type:1,index:a,name:i[2],strings:r,ctor:"."===i[1]?D:"?"===i[1]?B:"@"===i[1]?U:L}),n.removeAttribute(e)}else e.startsWith(l)&&(p.push({type:6,index:a}),n.removeAttribute(e));if(E.test(n.tagName)){const e=n.textContent.split(l),t=e.length-1;if(t>0){n.textContent=o?o.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],h()),O.nextNode(),p.push({type:2,index:++a});n.append(e[t],h())}}}else if(8===n.nodeType)if(n.data===c)p.push({type:2,index:a});else{let e=-1;for(;-1!==(e=n.data.indexOf(l,e+1));)p.push({type:7,index:a}),e+=l.length-1}a++}}static createElement(e,t){const n=d.createElement("template");return n.innerHTML=e,n}}function $(e,t){var n,r,i,o,a;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,l=arguments.length>3?arguments[3]:void 0;if(t===P)return t;let c=void 0!==l?null===(n=s._$Co)||void 0===n?void 0:n[l]:s._$Cl;const u=p(t)?void 0:t._$litDirective$;return(null===(r=c)||void 0===r?void 0:r.constructor)!==u&&(null!==(i=c)&&void 0!==i&&null!==(o=i._$AO)&&void 0!==o&&o.call(i,!1),void 0===u?c=void 0:(c=new u(e),c._$AT(e,s,l)),void 0!==l?(null!==(a=s._$Co)&&void 0!==a?a:s._$Co=[])[l]=c:s._$Cl=c),void 0!==c&&(t=$(e,c._$AS(e,t.values),c,l)),t}class M{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,i=(null!==(t=null===e||void 0===e?void 0:e.creationScope)&&void 0!==t?t:d).importNode(n,!0);O.currentNode=i;let o=O.nextNode(),a=0,s=0,l=r[0];for(;void 0!==l;){var c;if(a===l.index){let t;2===l.type?t=new j(o,o.nextSibling,this,e):1===l.type?t=new l.ctor(o,l.name,l.strings,this,e):6===l.type&&(t=new F(o,this,e)),this._$AV.push(t),l=r[++s]}a!==(null===(c=l)||void 0===c?void 0:c.index)&&(o=O.nextNode(),a++)}return O.currentNode=d,i}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class j{get _$AU(){var e,t;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cv}constructor(e,t,n,r){var i;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=null===(i=null===r||void 0===r?void 0:r.isConnected)||void 0===i||i}get parentNode(){var e;let t=this._$AA.parentNode;const n=this._$AM;return void 0!==n&&11===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e){e=$(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),p(e)?e===A||null==e||""===e?(this._$AH!==A&&this._$AR(),this._$AH=A):e!==this._$AH&&e!==P&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):m(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==A&&p(this._$AH)?this._$AA.nextSibling.data=e:this.T(d.createTextNode(e)),this._$AH=e}$(e){var t;const{values:n,_$litType$:r}=e,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=N.createElement(T(r.h,r.h[0]),this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.p(n);else{const e=new M(i,this),t=e.u(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=R.get(e.strings);return void 0===t&&R.set(e.strings,t=new N(e)),t}k(e){f(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const i of e)r===t.length?t.push(n=new j(this.S(h()),this.S(h()),this,this.options)):n=t[r],n._$AI(i),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,t=arguments.length>1?arguments[1]:void 0;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){var n;const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cv=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class L{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=A,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=A}_$AI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=this.strings;let o=!1;if(void 0===i)e=$(this,e,t,0),o=!p(e)||e!==this._$AH&&e!==P,o&&(this._$AH=e);else{const r=e;let s,l;for(e=i[0],s=0;s<i.length-1;s++){var a;l=$(this,r[n+s],t,s),l===P&&(l=this._$AH[s]),o||(o=!p(l)||l!==this._$AH[s]),l===A?e=A:e!==A&&(e+=(null!==(a=l)&&void 0!==a?a:"")+i[s+1]),this._$AH[s]=l}}o&&!r&&this.j(e)}j(e){e===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!==e&&void 0!==e?e:"")}}class D extends L{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===A?void 0:e}}class B extends L{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==A)}}class U extends L{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e){var t;if((e=null!==(t=$(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:A)===P)return;const n=this._$AH,r=e===A&&n!==A||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==A&&(n===A||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(t=null===(n=this.options)||void 0===n?void 0:n.host)&&void 0!==t?t:this.element,e):this._$AH.handleEvent(e)}}class F{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){$(this,e)}}const z={P:s,A:l,C:c,M:1,L:I,R:M,D:m,V:$,I:j,H:L,N:B,U:U,B:D,F:F},W=i.litHtmlPolyfillSupport;null!==W&&void 0!==W&&W(N,j),(null!==(r=i.litHtmlVersions)&&void 0!==r?r:i.litHtmlVersions=[]).push("3.1.4");const Z=(e,t,n)=>{var r;const i=null!==(r=null===n||void 0===n?void 0:n.renderBefore)&&void 0!==r?r:t;let o=i._$litPart$;if(void 0===o){var a;const e=null!==(a=null===n||void 0===n?void 0:n.renderBefore)&&void 0!==a?a:null;i._$litPart$=o=new j(t.insertBefore(h(),e),e,void 0,null!==n&&void 0!==n?n:{})}return o._$AI(e),o}},1444:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>a,SB:()=>s});var r=n(2274);const i={attribute:!0,type:String,converter:r.Ts,reflect:!1,hasChanged:r.Qu},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const{kind:r,metadata:o}=n;let a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(n.name,e),"accessor"===r){const{name:r}=n;return{set(n){const i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e)},init(t){return void 0!==t&&this.P(r,void 0,e),t}}}if("setter"===r){const{name:r}=n;return function(n){const i=this[r];t.call(this,n),this.requestUpdate(r,i,e)}}throw Error("Unsupported decorator location: "+r)};function a(e){return(t,n)=>"object"==typeof n?o(e,t,n):((e,t,n)=>{const r=t.hasOwnProperty(n);return t.constructor.createProperty(n,r?{...e,wrapped:!0}:e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function s(e){return a({...e,state:!0,attribute:!1})}},910:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(2889);const i=e=>null!==e&&void 0!==e?e:r.Ld},4135:(e,t,n)=>{"use strict";n.d(t,{V:()=>p,i:()=>g});var r=n(2889);const{I:i}=r._$LH;var o=n(5023);const a=(e,t)=>{const n=e._$AN;if(void 0===n)return!1;for(const i of n){var r;null!==(r=i._$AO)&&void 0!==r&&r.call(i,t,!1),a(i,t)}return!0},s=e=>{let t,n;do{var r;if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null===(r=n)||void 0===r?void 0:r.size))},l=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),d(t)}};function c(e){void 0!==this._$AN?(s(this),this._$AM=e,l(this)):this._$AM=e}function u(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(r))for(let o=n;o<r.length;o++)a(r[o],!1),s(r[o]);else null!=r&&(a(r,!1),s(r));else a(this,e)}const d=e=>{var t,n;e.type==o.pX.CHILD&&(null!==(t=e._$AP)&&void 0!==t||(e._$AP=u),null!==(n=e._$AQ)&&void 0!==n||(e._$AQ=c))};class h extends o.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),l(this),this.isConnected=e._$AU}_$AO(e){var t,n;let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e!==this.isConnected&&(this.isConnected=e,e?null===(t=this.reconnected)||void 0===t||t.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),r&&(a(this,e),s(this))}setValue(e){if((e=>void 0===e.strings)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const p=()=>new f;class f{}const m=new WeakMap,g=(0,o.XM)(class extends h{render(e){return r.Ld}update(e,t){var n;let[i]=t;const o=i!==this.Y;return o&&void 0!==this.Y&&this.rt(void 0),(o||this.lt!==this.ct)&&(this.Y=i,this.ht=null===(n=e.options)||void 0===n?void 0:n.host,this.rt(this.ct=e.element)),r.Ld}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.Y){var t;const n=null!==(t=this.ht)&&void 0!==t?t:globalThis;let r=m.get(n);void 0===r&&(r=new WeakMap,m.set(n,r)),void 0!==r.get(this.Y)&&this.Y.call(this.ht,void 0),r.set(this.Y,e),void 0!==e&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){var e,t,n;return"function"==typeof this.Y?null===(e=m.get(null!==(t=this.ht)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.Y):null===(n=this.Y)||void 0===n?void 0:n.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},5523:(e,t,n)=>{"use strict";n.d(t,{oi:()=>s,iv:()=>o.iv,dy:()=>a.dy,YP:()=>a.YP,$m:()=>o.$m});var r,i,o=n(2274),a=n(2889);class s extends o.fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,a.sY)(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return a.Jb}}s._$litElement$=!0,s.finalized=!0,null===(r=globalThis.litElementHydrateSupport)||void 0===r||r.call(globalThis,{LitElement:s});const l=globalThis.litElementPolyfillSupport;null===l||void 0===l||l({LitElement:s});(null!==(i=globalThis.litElementVersions)&&void 0!==i?i:globalThis.litElementVersions=[]).push("4.0.6")},5108:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(6848);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,r.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},4064:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(5108),i=n(6848);function o(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const n=(0,r.E)(t);let o=0;for(const r of e)n.set(r,o),o+=r.length;return(0,i.P)(n)}},718:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(8164),i=n(6848);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";const n=r.Z[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode(`${n.prefix}${e}`):(0,i.P)(globalThis.Buffer.from(e,"utf-8"))}},8954:(e,t,n)=>{"use strict";n.d(t,{BB:()=>o.B,mL:()=>i.m,zo:()=>r.z});var r=n(4064),i=n(718),o=n(5112)},5112:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});var r=n(8164);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";const n=r.Z[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},6848:(e,t,n)=>{"use strict";function r(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}n.d(t,{P:()=>r})},8164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Ze});var r={};n.r(r),n.d(r,{identity:()=>A});var i={};n.r(i),n.d(i,{base2:()=>R});var o={};n.r(o),n.d(o,{base8:()=>O});var a={};n.r(a),n.d(a,{base10:()=>T});var s={};n.r(s),n.d(s,{base16:()=>I,base16upper:()=>N});var l={};n.r(l),n.d(l,{base32:()=>$,base32hex:()=>D,base32hexpad:()=>U,base32hexpadupper:()=>F,base32hexupper:()=>B,base32pad:()=>j,base32padupper:()=>L,base32upper:()=>M,base32z:()=>z});var c={};n.r(c),n.d(c,{base36:()=>W,base36upper:()=>Z});var u={};n.r(u),n.d(u,{base58btc:()=>H,base58flickr:()=>V});var d={};n.r(d),n.d(d,{base64:()=>q,base64pad:()=>G,base64url:()=>K,base64urlpad:()=>Y});var h={};n.r(h),n.d(h,{base256emoji:()=>ee});var p={};n.r(p),n.d(p,{sha256:()=>ke,sha512:()=>_e});var f={};n.r(f),n.d(f,{identity:()=>Ae});var m={};n.r(m),n.d(m,{code:()=>Oe,decode:()=>Ie,encode:()=>Te,name:()=>Re});var g={};n.r(g),n.d(g,{code:()=>je,decode:()=>De,encode:()=>Le,name:()=>Me});var v=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==n[a])throw new TypeError(o+" is ambiguous");n[a]=i}var s=e.length,l=e.charAt(0),c=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(e){if("string"!==typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var r=0,i=0;e[t]===l;)r++,t++;for(var o=(e.length-t)*c+1>>>0,a=new Uint8Array(o);e[t];){var u=n[e.charCodeAt(t)];if(255===u)return;for(var d=0,h=o-1;(0!==u||d<i)&&-1!==h;h--,d++)u+=s*a[h]>>>0,a[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var p=o-i;p!==o&&0===a[p];)p++;for(var f=new Uint8Array(r+(o-p)),m=r;p!==o;)f[m++]=a[p++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var a=(o-i)*u+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],h=0,p=a-1;(0!==d||h<r)&&-1!==p;p--,h++)d+=256*c[p]>>>0,c[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=a-r;f!==a&&0===c[f];)f++;for(var m=l.repeat(n);f<a;++f)m+=e.charAt(c[f]);return m},decodeUnsafe:d,decode:function(e){var n=d(e);if(n)return n;throw new Error(`Non-${t} character`)}}};const y=v,b=(new Uint8Array(0),e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")});class w{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class x{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"===typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return E(this,e)}}class C{constructor(e){this.decoders=e}or(e){return E(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const E=(e,t)=>new C({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class S{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new w(e,t,n),this.decoder=new x(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const k=e=>{let{name:t,prefix:n,encode:r,decode:i}=e;return new S(t,n,r,i)},_=e=>{let{prefix:t,name:n,alphabet:r}=e;const{encode:i,decode:o}=y(r,n);return k({prefix:t,name:n,encode:i,decode:e=>b(o(e))})},P=e=>{let{name:t,prefix:n,bitsPerChar:r,alphabet:i}=e;return k({prefix:n,name:t,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<<n)-1;let o="",a=0,s=0;for(let l=0;l<e.length;++l)for(s=s<<8|e[l],a+=8;a>n;)a-=n,o+=t[i&s>>a];if(a&&(o+=t[i&s<<n-a]),r)for(;o.length*n&7;)o+="=";return o})(e,i,r),decode:e=>((e,t,n,r)=>{const i={};for(let u=0;u<t.length;++u)i[t[u]]=u;let o=e.length;for(;"="===e[o-1];)--o;const a=new Uint8Array(o*n/8|0);let s=0,l=0,c=0;for(let u=0;u<o;++u){const t=i[e[u]];if(void 0===t)throw new SyntaxError(`Non-${r} character`);l=l<<n|t,s+=n,s>=8&&(s-=8,a[c++]=255&l>>s)}if(s>=n||255&l<<8-s)throw new SyntaxError("Unexpected end of data");return a})(e,i,r,t)})},A=k({prefix:"\0",name:"identity",encode:e=>{return t=e,(new TextDecoder).decode(t);var t},decode:e=>(e=>(new TextEncoder).encode(e))(e)}),R=P({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),O=P({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),T=_({prefix:"9",name:"base10",alphabet:"0123456789"}),I=P({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),N=P({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),$=P({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),M=P({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),j=P({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),L=P({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),D=P({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),B=P({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),U=P({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),F=P({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),z=P({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),W=_({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Z=_({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),H=_({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),V=_({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),q=P({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),G=P({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),K=P({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Y=P({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Q=Array.from("\ud83d\ude80\ud83e\ude90\u2604\ud83d\udef0\ud83c\udf0c\ud83c\udf11\ud83c\udf12\ud83c\udf13\ud83c\udf14\ud83c\udf15\ud83c\udf16\ud83c\udf17\ud83c\udf18\ud83c\udf0d\ud83c\udf0f\ud83c\udf0e\ud83d\udc09\u2600\ud83d\udcbb\ud83d\udda5\ud83d\udcbe\ud83d\udcbf\ud83d\ude02\u2764\ud83d\ude0d\ud83e\udd23\ud83d\ude0a\ud83d\ude4f\ud83d\udc95\ud83d\ude2d\ud83d\ude18\ud83d\udc4d\ud83d\ude05\ud83d\udc4f\ud83d\ude01\ud83d\udd25\ud83e\udd70\ud83d\udc94\ud83d\udc96\ud83d\udc99\ud83d\ude22\ud83e\udd14\ud83d\ude06\ud83d\ude44\ud83d\udcaa\ud83d\ude09\u263a\ud83d\udc4c\ud83e\udd17\ud83d\udc9c\ud83d\ude14\ud83d\ude0e\ud83d\ude07\ud83c\udf39\ud83e\udd26\ud83c\udf89\ud83d\udc9e\u270c\u2728\ud83e\udd37\ud83d\ude31\ud83d\ude0c\ud83c\udf38\ud83d\ude4c\ud83d\ude0b\ud83d\udc97\ud83d\udc9a\ud83d\ude0f\ud83d\udc9b\ud83d\ude42\ud83d\udc93\ud83e\udd29\ud83d\ude04\ud83d\ude00\ud83d\udda4\ud83d\ude03\ud83d\udcaf\ud83d\ude48\ud83d\udc47\ud83c\udfb6\ud83d\ude12\ud83e\udd2d\u2763\ud83d\ude1c\ud83d\udc8b\ud83d\udc40\ud83d\ude2a\ud83d\ude11\ud83d\udca5\ud83d\ude4b\ud83d\ude1e\ud83d\ude29\ud83d\ude21\ud83e\udd2a\ud83d\udc4a\ud83e\udd73\ud83d\ude25\ud83e\udd24\ud83d\udc49\ud83d\udc83\ud83d\ude33\u270b\ud83d\ude1a\ud83d\ude1d\ud83d\ude34\ud83c\udf1f\ud83d\ude2c\ud83d\ude43\ud83c\udf40\ud83c\udf37\ud83d\ude3b\ud83d\ude13\u2b50\u2705\ud83e\udd7a\ud83c\udf08\ud83d\ude08\ud83e\udd18\ud83d\udca6\u2714\ud83d\ude23\ud83c\udfc3\ud83d\udc90\u2639\ud83c\udf8a\ud83d\udc98\ud83d\ude20\u261d\ud83d\ude15\ud83c\udf3a\ud83c\udf82\ud83c\udf3b\ud83d\ude10\ud83d\udd95\ud83d\udc9d\ud83d\ude4a\ud83d\ude39\ud83d\udde3\ud83d\udcab\ud83d\udc80\ud83d\udc51\ud83c\udfb5\ud83e\udd1e\ud83d\ude1b\ud83d\udd34\ud83d\ude24\ud83c\udf3c\ud83d\ude2b\u26bd\ud83e\udd19\u2615\ud83c\udfc6\ud83e\udd2b\ud83d\udc48\ud83d\ude2e\ud83d\ude46\ud83c\udf7b\ud83c\udf43\ud83d\udc36\ud83d\udc81\ud83d\ude32\ud83c\udf3f\ud83e\udde1\ud83c\udf81\u26a1\ud83c\udf1e\ud83c\udf88\u274c\u270a\ud83d\udc4b\ud83d\ude30\ud83e\udd28\ud83d\ude36\ud83e\udd1d\ud83d\udeb6\ud83d\udcb0\ud83c\udf53\ud83d\udca2\ud83e\udd1f\ud83d\ude41\ud83d\udea8\ud83d\udca8\ud83e\udd2c\u2708\ud83c\udf80\ud83c\udf7a\ud83e\udd13\ud83d\ude19\ud83d\udc9f\ud83c\udf31\ud83d\ude16\ud83d\udc76\ud83e\udd74\u25b6\u27a1\u2753\ud83d\udc8e\ud83d\udcb8\u2b07\ud83d\ude28\ud83c\udf1a\ud83e\udd8b\ud83d\ude37\ud83d\udd7a\u26a0\ud83d\ude45\ud83d\ude1f\ud83d\ude35\ud83d\udc4e\ud83e\udd32\ud83e\udd20\ud83e\udd27\ud83d\udccc\ud83d\udd35\ud83d\udc85\ud83e\uddd0\ud83d\udc3e\ud83c\udf52\ud83d\ude17\ud83e\udd11\ud83c\udf0a\ud83e\udd2f\ud83d\udc37\u260e\ud83d\udca7\ud83d\ude2f\ud83d\udc86\ud83d\udc46\ud83c\udfa4\ud83d\ude47\ud83c\udf51\u2744\ud83c\udf34\ud83d\udca3\ud83d\udc38\ud83d\udc8c\ud83d\udccd\ud83e\udd40\ud83e\udd22\ud83d\udc45\ud83d\udca1\ud83d\udca9\ud83d\udc50\ud83d\udcf8\ud83d\udc7b\ud83e\udd10\ud83e\udd2e\ud83c\udfbc\ud83e\udd75\ud83d\udea9\ud83c\udf4e\ud83c\udf4a\ud83d\udc7c\ud83d\udc8d\ud83d\udce3\ud83e\udd42"),X=Q.reduce(((e,t,n)=>(e[n]=t,e)),[]),J=Q.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]);const ee=k({prefix:"\ud83d\ude80",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=X[t]),"")},decode:function(e){const t=[];for(const n of e){const e=J[n.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${n}`);t.push(e)}return new Uint8Array(t)}});var te=function e(t,n,r){n=n||[];var i=r=r||0;for(;t>=ie;)n[r++]=255&t|ne,t/=128;for(;t&re;)n[r++]=255&t|ne,t>>>=7;return n[r]=0|t,e.bytes=r-i+1,n},ne=128,re=-128,ie=Math.pow(2,31);var oe=function e(t,n){var r,i=0,o=0,a=n=n||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[a++],i+=o<28?(r&se)<<o:(r&se)*Math.pow(2,o),o+=7}while(r>=ae);return e.bytes=a-n,i},ae=128,se=127;var le=Math.pow(2,7),ce=Math.pow(2,14),ue=Math.pow(2,21),de=Math.pow(2,28),he=Math.pow(2,35),pe=Math.pow(2,42),fe=Math.pow(2,49),me=Math.pow(2,56),ge=Math.pow(2,63);const ve={encode:te,decode:oe,encodingLength:function(e){return e<le?1:e<ce?2:e<ue?3:e<de?4:e<he?5:e<pe?6:e<fe?7:e<me?8:e<ge?9:10}},ye=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ve.encode(e,t,n),t},be=e=>ve.encodingLength(e),we=(e,t)=>{const n=t.byteLength,r=be(e),i=r+be(n),o=new Uint8Array(i+n);return ye(e,o,0),ye(n,o,r),o.set(t,i),new xe(e,n,t,o)};class xe{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}const Ce=e=>{let{name:t,code:n,encode:r}=e;return new Ee(t,n,r)};class Ee{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?we(this.code,t):t.then((e=>we(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Se=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ke=Ce({name:"sha2-256",code:18,encode:Se("SHA-256")}),_e=Ce({name:"sha2-512",code:19,encode:Se("SHA-512")}),Pe=b,Ae={code:0,name:"identity",encode:Pe,digest:e=>we(0,Pe(e))},Re="raw",Oe=85,Te=e=>b(e),Ie=e=>b(e),Ne=new TextEncoder,$e=new TextDecoder,Me="json",je=512,Le=e=>Ne.encode(JSON.stringify(e)),De=e=>JSON.parse($e.decode(e));Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom");Symbol.for("@ipld/js-cid/CID");const Be={...r,...i,...o,...a,...s,...l,...c,...u,...d,...h};var Ue=n(5108);function Fe(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const ze=Fe("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),We=Fe("ascii","a",(e=>{let t="a";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}),(e=>{e=e.substring(1);const t=(0,Ue.E)(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t})),Ze={utf8:ze,"utf-8":ze,hex:Be.base16,latin1:We,ascii:We,binary:We,...Be}},1735:(e,t,n)=>{"use strict";n.d(t,{sj:()=>p,iH:()=>g,CO:()=>m,Ld:()=>f});Symbol();const r=Symbol();const i=Object.getPrototypeOf,o=new WeakMap,a=e=>e&&(o.has(e)?o.get(e):i(e)===Object.prototype||i(e)===Array.prototype),s=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];o.set(e,t)},l=e=>"object"===typeof e&&null!==e,c=new WeakMap,u=new WeakSet,d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.is,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e,t)=>new Proxy(e,t),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>l(e)&&!u.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new WeakMap,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;const r=o.get(e);if((null==r?void 0:r[0])===t)return r[1];const a=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return s(a,!0),o.set(e,[t,a]),Reflect.ownKeys(e).forEach((t=>{if(Object.getOwnPropertyDescriptor(a,t))return;const r=Reflect.get(e,t),i={value:r,enumerable:!0,configurable:!0};if(u.has(r))s(r,!1);else if(r instanceof Promise)delete i.value,i.get=()=>n(r);else if(c.has(r)){const[e,t]=c.get(r);i.value=d(e,t(),n)}Object.defineProperty(a,t,i)})),Object.preventExtensions(a)},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new WeakMap,p=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[1,1],f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:i=>{if(!l(i))throw new Error("object required");const o=h.get(i);if(o)return o;let s=p[0];const m=new Set,g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:++p[0];s!==t&&(s=t,m.forEach((n=>n(e,t))))};let v=p[1];const y=e=>(t,n)=>{const r=[...t];r[1]=[e,...r[1]],g(r,n)},b=new Map,w=e=>{var t;const n=b.get(e);n&&(b.delete(e),null==(t=n[1])||t.call(n))},x=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),C={deleteProperty(e,t){const n=Reflect.get(e,t);w(t);const r=Reflect.deleteProperty(e,t);return r&&g(["delete",[t],n]),r},set(t,i,o,s){const d=Reflect.has(t,i),p=Reflect.get(t,i,s);if(d&&(e(p,o)||h.has(o)&&e(p,h.get(o))))return!0;w(i),l(o)&&(o=(e=>a(e)&&e[r]||null)(o)||o);let v=o;if(o instanceof Promise)o.then((e=>{o.status="fulfilled",o.value=e,g(["resolve",[i],e])})).catch((e=>{o.status="rejected",o.reason=e,g(["reject",[i],e])}));else{!c.has(o)&&n(o)&&(v=f(o));const e=!u.has(v)&&c.get(v);e&&((e,t)=>{if(b.has(e))throw new Error("prop listener already exists");if(m.size){const n=t[3](y(e));b.set(e,[t,n])}else b.set(e,[t])})(i,e)}return Reflect.set(t,i,v,s),g(["set",[i],o,p]),!0}},E=t(x,C);h.set(i,E);const S=[x,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:++p[1];return v===e||m.size||(v=e,b.forEach((t=>{let[n]=t;const r=n[1](e);r>s&&(s=r)}))),s},d,e=>{m.add(e),1===m.size&&b.forEach(((e,t)=>{let[n,r]=e;if(r)throw new Error("remove already exists");const i=n[3](y(t));b.set(t,[n,i])}));return()=>{m.delete(e),0===m.size&&b.forEach(((e,t)=>{let[n,r]=e;r&&(r(),b.set(t,[n]))}))}}];return c.set(E,S),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);"value"in t&&(E[e]=i[e],delete t.value,delete t.writable),Object.defineProperty(x,e,t)})),E};return[f,c,u,e,t,n,i,o,d,h,p]},[h]=d();function p(){return h(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function f(e,t,n){const r=c.get(e);let i;r||console.warn("Please use proxy object");const o=[],a=r[3];let s=!1;const l=a((e=>{o.push(e),n?t(o.splice(0)):i||(i=Promise.resolve().then((()=>{i=void 0,s&&t(o.splice(0))})))}));return s=!0,()=>{s=!1,l()}}function m(e,t){const n=c.get(e);n||console.warn("Please use proxy object");const[r,i,o]=n;return o(r,i(),t)}function g(e){return u.add(e),e}},2213:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:()=>r})},8287:(e,t,n)=>{"use strict";n.d(t,{R:()=>b});var r=n(2213),i=n(1616);const o="0x82ad56cb";var a=n(3232),s=n(9866),l=n(4743),c=n(7367),u=n(3954),d=n(3162),h=n(9485),p=n(7151),f=n(1419);var m=n(9961),g=n(1963),v=n(4510),y=n(7129);async function b(e,t){var b;const{account:w=e.account,batch:x=Boolean(null===(b=e.batch)||void 0===b?void 0:b.multicall),blockNumber:C,blockTag:E="latest",accessList:S,data:k,gas:_,gasPrice:P,maxFeePerGas:A,maxPriorityFeePerGas:R,nonce:O,to:T,value:I,...N}=t,$=w?(0,r.T)(w):void 0;try{var M,j,L;(0,y.F)(t);const n=(C?(0,h.eC)(C):void 0)||E,r=null===(M=e.chain)||void 0===M||null===(j=M.formatters)||void 0===j||null===(L=j.transactionRequest)||void 0===L?void 0:L.format,a=(r||g.tG)({...(0,m.K)(N,{format:r}),from:null===$||void 0===$?void 0:$.address,accessList:S,data:k,gas:_,gasPrice:P,maxFeePerGas:A,maxPriorityFeePerGas:R,nonce:O,to:T,value:I});if(x&&function(e){let{request:t}=e;const{data:n,to:r,...i}=t;return!!n&&(!n.startsWith(o)&&(!!r&&!(Object.values(i).filter((e=>"undefined"!==typeof e)).length>0)))}({request:a}))try{return await async function(e,t){var n;const{batchSize:r=1024,wait:o=0}="object"===typeof(null===(n=e.batch)||void 0===n?void 0:n.multicall)?e.batch.multicall:{},{blockNumber:a,blockTag:p="latest",data:f,multicallAddress:m,to:g}=t;let y=m;if(!y){if(!e.chain)throw new s.pZ;y=(0,d.L)({blockNumber:a,chain:e.chain,contract:"multicall3"})}const b=a?(0,h.eC)(a):void 0,w=b||p,{schedule:x}=(0,v.S)({id:`${e.uid}.${w}`,wait:o,shouldSplitBatch(e){const t=e.reduce(((e,t)=>{let{data:n}=t;return e+(n.length-2)}),0);return t>2*r},fn:async t=>{const n=t.map((e=>({allowFailure:!0,callData:e.data,target:e.to}))),r=(0,u.R)({abi:i.F8,args:[n],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{data:r,to:y},w]});return(0,c.k)({abi:i.F8,args:[n],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:C,success:E}]=await x({data:f,to:g});if(!E)throw new l.VQ({data:C});return"0x"===C?{data:void 0}:{data:C}}(e,{...a,blockNumber:C,blockTag:E})}catch(D){if(!(D instanceof s.pZ)&&!(D instanceof s.mm))throw D}const p=await e.request({method:"eth_call",params:n?[a,n]:[a]});return"0x"===p?{data:void 0}:{data:p}}catch(D){const r=function(e){if(!(e instanceof a.G))return;const t=e.walk();return"object"===typeof t.data?t.data.data:t.data}(D),{offchainLookup:i,offchainLookupSignature:o}=await n.e(248).then(n.bind(n,1248));if((null===r||void 0===r?void 0:r.slice(0,10))===o&&T)return{data:await i(e,{data:r,to:T})};throw function(e,t){let{docsPath:n,...r}=t;const i=(()=>{const t=(0,f.k)(e,r);return t instanceof p.cj?e:t})();return new l.cg(i,{docsPath:n,...r})}(D,{...t,account:$,chain:e.chain})}}},1616:(e,t,n)=>{"use strict";n.d(t,{$o:()=>c,F8:()=>r,X$:()=>l,du:()=>a,k3:()=>o,nZ:()=>s});const r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],o=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],s=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],l=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],c=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},507:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,Up:()=>i,hZ:()=>o});const r={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},o={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},4602:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>o,Zn:()=>i,ez:()=>r});const r={gwei:9,wei:18},i={ether:-9,wei:9},o={ether:-18,gwei:-9}},3440:(e,t,n)=>{"use strict";n.d(t,{CI:()=>S,FM:()=>f,Gy:()=>C,KY:()=>w,M4:()=>d,MX:()=>y,S4:()=>b,SM:()=>x,cO:()=>s,dh:()=>E,fM:()=>a,fs:()=>h,gr:()=>u,hn:()=>k,lC:()=>m,mv:()=>g,wM:()=>_,wb:()=>c,xB:()=>l,xL:()=>v,yP:()=>p});var r=n(598),i=n(5308),o=n(3232);class a extends o.G{constructor(e){let{docsPath:t}=e;super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class s extends o.G{constructor(e){let{docsPath:t}=e;super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class l extends o.G{constructor(e){let{data:t,params:n,size:i}=e;super([`Data size of ${i} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,r.h)(n,{includeName:!0})})`,`Data: ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=i}}class c extends o.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class u extends o.G{constructor(e){let{expectedLength:t,givenLength:n,type:r}=e;super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class d extends o.G{constructor(e){let{expectedSize:t,value:n}=e;super(`Size of bytes "${n}" (bytes${(0,i.d)(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class h extends o.G{constructor(e){let{expectedLength:t,givenLength:n}=e;super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class p extends o.G{constructor(e,t){let{docsPath:n}=t;super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class f extends o.G{constructor(e){let{docsPath:t}=e;super("Cannot extract event signature from empty topics.",{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class m extends o.G{constructor(e,t){let{docsPath:n}=t;super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class g extends o.G{constructor(e){let{docsPath:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class v extends o.G{constructor(e){let{docsPath:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class y extends o.G{constructor(e,t){let{docsPath:n}=t;super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class b extends o.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.t)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItemAmbiguityError"})}}class w extends o.G{constructor(e){let{expectedSize:t,givenSize:n}=e;super(`Expected bytes${t}, got bytes${n}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class x extends o.G{constructor(e){let{abiItem:t,data:n,params:i,size:o}=e;super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,r.h)(i,{includeName:!0})})`,`Data: ${n} (${o} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=i,this.size=o}}class C extends o.G{constructor(e){let{abiItem:t,param:n}=e;super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${(0,r.t)(t,{includeName:!0})}".`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class E extends o.G{constructor(e,t){let{docsPath:n}=t;super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class S extends o.G{constructor(e,t){let{docsPath:n}=t;super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class k extends o.G{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class _ extends o.G{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},5718:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(3232);class i extends r.G{constructor(e){let{address:t}=e;super(`Address "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},3232:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var r=n(9623);class i extends Error{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,r.bo)()});const o=n.cause instanceof i?n.cause.details:null!==(t=n.cause)&&void 0!==t&&t.message?n.cause.message:n.details,a=n.cause instanceof i&&n.cause.docsPath||n.docsPath;this.message=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://viem.sh${a}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...o?[`Details: ${o}`]:[],`Version: ${this.version}`].join("\n"),n.cause&&(this.cause=n.cause),this.details=o,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=e}walk(e){return o(this,e)}}function o(e,t){return null!==t&&void 0!==t&&t(e)?e:e&&"object"===typeof e&&"cause"in e?o(e.cause,t):t?null:e}},9866:(e,t,n)=>{"use strict";n.d(t,{Bk:()=>a,Yl:()=>o,mm:()=>i,pZ:()=>s});var r=n(3232);class i extends r.G{constructor(e){let{blockNumber:t,chain:n,contract:r}=e;super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class o extends r.G{constructor(e){let{chain:t,currentChainId:n}=e;super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} \u2013 ${t.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t.id} \u2013 ${t.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class a extends r.G{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class s extends r.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}},4743:(e,t,n)=>{"use strict";n.d(t,{cg:()=>g,uq:()=>v,Lu:()=>y,Dk:()=>b,VQ:()=>w});var r=n(2213),i=n(507),o=n(9399),a=n(598),s=n(3691);function l(e){let{abiItem:t,args:n,includeFunctionName:r=!0,includeName:i=!1}=e;if("name"in t&&"inputs"in t&&t.inputs)return`${r?t.name:""}(${t.inputs.map(((e,t)=>`${i&&e.name?`${e.name}: `:""}${"object"===typeof n[t]?(0,s.P)(n[t]):n[t]}`)).join(", ")})`}var c=n(5118),u=n(2629),d=n(9870),h=n(3440),p=n(3232),f=n(5859),m=n(9623);class g extends p.G{constructor(e,t){var n;let{account:i,docsPath:o,chain:a,data:s,gas:l,gasPrice:c,maxFeePerGas:h,maxPriorityFeePerGas:p,nonce:m,to:g,value:v}=t;const y=i?(0,r.T)(i):void 0,b=(0,f.xr)({from:null===y||void 0===y?void 0:y.address,to:g,value:"undefined"!==typeof v&&`${(0,u.d)(v)} ${(null===a||void 0===a||null===(n=a.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"}`,data:s,gas:l,gasPrice:"undefined"!==typeof c&&`${(0,d.o)(c)} gwei`,maxFeePerGas:"undefined"!==typeof h&&`${(0,d.o)(h)} gwei`,maxPriorityFeePerGas:"undefined"!==typeof p&&`${(0,d.o)(p)} gwei`,nonce:m});super(e.shortMessage,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class v extends p.G{constructor(e,t){var n;let{abi:r,args:i,contractAddress:o,docsPath:s,functionName:u,sender:d}=t;const h=(0,c.mE)({abi:r,args:i,name:u}),p=h?l({abiItem:h,args:i,includeFunctionName:!1,includeName:!1}):void 0,g=h?(0,a.t)(h,{includeName:!0}):void 0,v=(0,f.xr)({address:o&&(0,m.CR)(o),function:g,args:p&&"()"!==p&&`${[...Array(null!==(n=null===u||void 0===u?void 0:u.length)&&void 0!==n?n:0).keys()].map((()=>" ")).join("")}${p}`,sender:d});super(e.shortMessage||`An unknown error occurred while executing the contract function "${u}".`,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",v].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=r,this.args=i,this.cause=e,this.contractAddress=o,this.functionName=u,this.sender=d}}class y extends p.G{constructor(e){let t,n,r,s,c,{abi:u,data:d,functionName:p,message:f}=e;if(d&&"0x"!==d)try{n=(0,o.p)({abi:u,data:d});const{abiItem:e,errorName:t,args:c}=n;if("Error"===t)s=c[0];else if("Panic"===t){const[e]=c;s=i.$[e]}else{var m;const n=e?(0,a.t)(e,{includeName:!0}):void 0,i=e&&c?l({abiItem:e,args:c,includeFunctionName:!1,includeName:!1}):void 0;r=[n?`Error: ${n}`:"",i&&"()"!==i?` ${[...Array(null!==(m=null===t||void 0===t?void 0:t.length)&&void 0!==m?m:0).keys()].map((()=>" ")).join("")}${i}`:""]}}catch(g){t=g}else f&&(s=f);t instanceof h.yP&&(c=t.signature,r=[`Unable to decode signature "${c}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${c}.`]),super(s&&"execution reverted"!==s||c?[`The contract function "${p}" reverted with the following ${c?"signature":"reason"}:`,s||c].join("\n"):`The contract function "${p}" reverted.`,{cause:t,metaMessages:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n,this.reason=s,this.signature=c}}class b extends p.G{constructor(e){let{functionName:t}=e;super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class w extends p.G{constructor(e){let{data:t,message:n}=e;super(n||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}},9313:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,m:()=>i});var r=n(3232);class i extends r.G{constructor(e){let{offset:t,position:n,size:r}=e;super(`Slice ${"start"===n?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class o extends r.G{constructor(e){let{size:t,targetSize:n,type:r}=e;super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},3587:(e,t,n)=>{"use strict";n.d(t,{Cd:()=>o,J5:()=>i,M6:()=>a});var r=n(3232);class i extends r.G{constructor(e){let{max:t,min:n,signed:r,size:i,value:o}=e;super(`Number "${o}" is not in safe ${i?`${8*i}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class o extends r.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class a extends r.G{constructor(e){let{givenSize:t,maxSize:n}=e;super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},7151:(e,t,n)=>{"use strict";n.d(t,{C_:()=>d,G$:()=>s,Hh:()=>a,M_:()=>o,WF:()=>h,ZI:()=>l,cj:()=>g,cs:()=>m,dR:()=>p,pZ:()=>f,se:()=>u,vU:()=>c});var r=n(9870),i=n(3232);class o extends i.G{constructor(){var e;let{cause:t,message:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=null===n||void 0===n||null===(e=n.replace("execution reverted: ",""))||void 0===e?void 0:e.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class a extends i.G{constructor(){let{cause:e,maxFeePerGas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class s extends i.G{constructor(){let{cause:e,maxFeePerGas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends i.G{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.G{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor(){let{cause:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class h extends i.G{constructor(){let{cause:e,gas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends i.G{constructor(){let{cause:e,gas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class f extends i.G{constructor(e){let{cause:t}=e;super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.G{constructor(){let{cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.o)(n)} gwei`:""}).`].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.G{constructor(e){let{cause:t}=e;super(`An error occurred while executing: ${null===t||void 0===t?void 0:t.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},3125:(e,t,n)=>{"use strict";n.d(t,{Gg:()=>a,W5:()=>c,bs:()=>l,c9:()=>s});var r=n(3691),i=n(3232),o=n(9623);class a extends i.G{constructor(e){let{body:t,details:n,headers:i,status:a,url:s}=e;super("HTTP request failed.",{details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${(0,o.Gr)(s)}`,t&&`Request body: ${(0,r.P)(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=i,this.status=a,this.url=s}}class s extends i.G{constructor(e){let{body:t,details:n,url:i}=e;super("WebSocket request failed.",{details:n,metaMessages:[`URL: ${(0,o.Gr)(i)}`,`Request body: ${(0,r.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class l extends i.G{constructor(e){let{body:t,error:n,url:i}=e;super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${(0,o.Gr)(i)}`,`Request body: ${(0,r.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code}}class c extends i.G{constructor(e){let{body:t,url:n}=e;super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.Gr)(n)}`,`Request body: ${(0,r.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},5859:(e,t,n)=>{"use strict";n.d(t,{Bh:()=>u,Yb:()=>d,j3:()=>l,mc:()=>h,mk:()=>c,xY:()=>s,xr:()=>a});var r=n(2629),i=n(9870),o=n(3232);function a(e){const t=Object.entries(e).map((e=>{let[t,n]=e;return void 0===n||!1===n?null:[t,n]})).filter(Boolean),n=t.reduce(((e,t)=>{let[n]=t;return Math.max(e,n.length)}),0);return t.map((e=>{let[t,r]=e;return` ${`${t}:`.padEnd(n+1)} ${r}`})).join("\n")}class s extends o.G{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class l extends o.G{constructor(e){let{transaction:t}=e;super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class c extends o.G{constructor(e,t){var n;let{account:o,docsPath:s,chain:l,data:c,gas:u,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:p,nonce:f,to:m,value:g}=t;const v=a({chain:l&&`${null===l||void 0===l?void 0:l.name} (id: ${null===l||void 0===l?void 0:l.id})`,from:null===o||void 0===o?void 0:o.address,to:m,value:"undefined"!==typeof g&&`${(0,r.d)(g)} ${(null===l||void 0===l||null===(n=l.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"}`,data:c,gas:u,gasPrice:"undefined"!==typeof d&&`${(0,i.o)(d)} gwei`,maxFeePerGas:"undefined"!==typeof h&&`${(0,i.o)(h)} gwei`,maxPriorityFeePerGas:"undefined"!==typeof p&&`${(0,i.o)(p)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",v].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class u extends o.G{constructor(e){let{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:o}=e,a="Transaction";r&&void 0!==o&&(a=`Transaction at block time "${r}" at index "${o}"`),t&&void 0!==o&&(a=`Transaction at block hash "${t}" at index "${o}"`),n&&void 0!==o&&(a=`Transaction at block number "${n}" at index "${o}"`),i&&(a=`Transaction with hash "${i}"`),super(`${a} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class d extends o.G{constructor(e){let{hash:t}=e;super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class h extends o.G{constructor(e){let{hash:t}=e;super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},9623:(e,t,n)=>{"use strict";n.d(t,{CR:()=>r,Gr:()=>i,bo:()=>o});const r=e=>e,i=e=>e,o=()=>"viem@1.21.3"},5566:(e,t,n)=>{"use strict";n.d(t,{r:()=>u});var r=n(3440),i=n(7044),o=n(5308),a=n(4652),s=n(9134),l=n(1951),c=n(6584);function u(e,t){if("0x"===t&&e.length>0)throw new r.wb;if((0,o.d)(t)&&(0,o.d)(t)<32)throw new r.xB({data:t,params:e,size:(0,o.d)(t)});return function(e){let{data:t,params:n}=e;const i=[];let a=0;for(let s=0;s<n.length;s++){if(a>=(0,o.d)(t))throw new r.xB({data:t,params:n,size:(0,o.d)(t)});const e=n[s],{consumed:l,value:c}=d({data:t,param:e,position:a});i.push(c),a+=l}return i}({data:t,params:e})}function d(e){let{data:t,param:n,position:o}=e;const u=(0,c.S)(n.type);if(u){const[e,r]=u;return function(e,t){let{param:n,length:r,position:i}=t;if(!r){const t=(0,l.ly)((0,a.tP)(e,i,i+32,{strict:!0})),r=(0,l.ly)((0,a.tP)(e,t,t+32,{strict:!0}));let o=0;const s=[];for(let i=0;i<r;++i){const r=d({data:(0,a.tP)(e,t+32),param:n,position:o});o+=r.consumed,s.push(r.value)}return{value:s,consumed:32}}if(h(n)){const t=(0,c.S)(n.type),o=!(null!==t&&void 0!==t&&t[0]);let s=0;const u=[];for(let c=0;c<r;++c){const t=(0,l.ly)((0,a.tP)(e,i,i+32,{strict:!0})),r=d({data:(0,a.tP)(e,t),param:n,position:o?s:32*c});s+=r.consumed,u.push(r.value)}return{value:u,consumed:32}}let o=0;const s=[];for(let a=0;a<r;++a){const t=d({data:e,param:n,position:i+o});o+=t.consumed,s.push(t.value)}return{value:s,consumed:o}}(t,{length:e,param:{...n,type:r},position:o})}if("tuple"===n.type)return function(e,t){let{param:n,position:r}=t;const i=0===n.components.length||n.components.some((e=>{let{name:t}=e;return!t})),o=i?[]:{};let s=0;if(h(n)){const t=(0,l.ly)((0,a.tP)(e,r,r+32,{strict:!0}));for(let r=0;r<n.components.length;++r){const l=n.components[r],c=d({data:(0,a.tP)(e,t),param:l,position:s});s+=c.consumed,o[i?r:null===l||void 0===l?void 0:l.name]=c.value}return{consumed:32,value:o}}for(let a=0;a<n.components.length;++a){const t=n.components[a],l=d({data:e,param:t,position:r+s});s+=l.consumed,o[i?a:null===t||void 0===t?void 0:t.name]=l.value}return{consumed:s,value:o}}(t,{param:n,position:o});if("string"===n.type)return function(e,t){let{position:n}=t;const r=(0,l.ly)((0,a.tP)(e,n,n+32,{strict:!0})),i=(0,l.ly)((0,a.tP)(e,r,r+32,{strict:!0}));if(0===i)return{consumed:32,value:""};const o=(0,l.rR)((0,s.f)((0,a.tP)(e,r+32,r+32+i,{strict:!0})));return{consumed:32,value:o}}(t,{position:o});if(n.type.startsWith("bytes"))return function(e,t){let{param:n,position:r}=t;const[i,o]=n.type.split("bytes");if(!o){const t=(0,l.ly)((0,a.tP)(e,r,r+32,{strict:!0})),n=(0,l.ly)((0,a.tP)(e,t,t+32,{strict:!0}));if(0===n)return{consumed:32,value:"0x"};return{consumed:32,value:(0,a.tP)(e,t+32,t+32+n,{strict:!0})}}const s=(0,a.tP)(e,r,r+parseInt(o),{strict:!0});return{consumed:32,value:s}}(t,{param:n,position:o});const p=(0,a.tP)(t,o,o+32,{strict:!0});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,t){let{param:n}=t;const r=n.type.startsWith("int"),i=parseInt(n.type.split("int")[1]||"256");return{consumed:32,value:i>48?(0,l.y_)(e,{signed:r}):(0,l.ly)(e,{signed:r})}}(p,{param:n});if("address"===n.type)return function(e){return{consumed:32,value:(0,i.x)((0,a.tP)(e,-20))}}(p);if("bool"===n.type)return function(e){return{consumed:32,value:(0,l.XA)(e)}}(p);throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function h(e){var t;const{type:n}=e;if("string"===n)return!0;if("bytes"===n)return!0;if(n.endsWith("[]"))return!0;if("tuple"===n)return null===(t=e.components)||void 0===t?void 0:t.some(h);const r=(0,c.S)(e.type);return!(!r||!h({...e,type:r[1]}))}},9399:(e,t,n)=>{"use strict";n.d(t,{p:()=>c});var r=n(507),i=n(3440),o=n(4652),a=n(1979),s=n(5566),l=n(598);function c(e){let{abi:t,data:n}=e;const c=(0,o.tP)(n,0,4);if("0x"===c)throw new i.wb;const u=[...t||[],r.Up,r.hZ].find((e=>"error"===e.type&&c===(0,a.o)((0,l.t)(e))));if(!u)throw new i.yP(c,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.r)(u.inputs,(0,o.tP)(n,4)):void 0,errorName:u.name}}},7367:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(3440),i=n(5566),o=n(5118);const a="/docs/contract/decodeFunctionResult";function s(e){let{abi:t,args:n,functionName:s,data:l}=e,c=t[0];if(s&&(c=(0,o.mE)({abi:t,args:n,name:s}),!c))throw new r.xL(s,{docsPath:a});if("function"!==c.type)throw new r.xL(void 0,{docsPath:a});if(!c.outputs)throw new r.MX(c.name,{docsPath:a});const u=(0,i.r)(c.outputs,l);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},6584:(e,t,n)=>{"use strict";n.d(t,{E:()=>d,S:()=>f});var r=n(3440),i=n(5718),o=n(2731),a=n(7783),s=n(4188),l=n(5308),c=n(4652),u=n(9485);function d(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});const n=function(e){let{params:t,values:n}=e;const r=[];for(let i=0;i<t.length;i++)r.push(h({param:t[i],value:n[i]}));return r}({params:e,values:t}),i=p(n);return 0===i.length?"0x":i}function h(e){let{param:t,value:n}=e;const d=f(t.type);if(d){const[e,i]=d;return function(e,t){let{length:n,param:i}=t;const o=null===n;if(!Array.isArray(e))throw new r.hn(e);if(!o&&e.length!==n)throw new r.gr({expectedLength:n,givenLength:e.length,type:`${i.type}[${n}]`});let s=!1;const l=[];for(let r=0;r<e.length;r++){const t=h({param:i,value:e[r]});t.dynamic&&(s=!0),l.push(t)}if(o||s){const e=p(l);if(o){const t=(0,u.eC)(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?(0,a.zo)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.zo)(l.map((e=>{let{encoded:t}=e;return t})))}}(n,{length:e,param:{...t,type:i}})}if("tuple"===t.type)return function(e,t){let{param:n}=t,r=!1;const i=[];for(let o=0;o<n.components.length;o++){const t=n.components[o],a=h({param:t,value:e[Array.isArray(e)?o:t.name]});i.push(a),a.dynamic&&(r=!0)}return{dynamic:r,encoded:r?p(i):(0,a.zo)(i.map((e=>{let{encoded:t}=e;return t})))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,o.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,s.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){return{dynamic:!1,encoded:(0,s.gc)((0,u.C4)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){return function(e,t){let{signed:n}=t;return{dynamic:!1,encoded:(0,u.eC)(e,{size:32,signed:n})}}(n,{signed:t.type.startsWith("int")})}if(t.type.startsWith("bytes"))return function(e,t){let{param:n}=t;const[,i]=n.type.split("bytes"),o=(0,l.d)(e);if(!i){let t=e;return o%32!==0&&(t=(0,s.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.zo)([(0,s.gc)((0,u.eC)(o,{size:32})),t])}}if(o!==parseInt(i))throw new r.M4({expectedSize:parseInt(i),value:e});return{dynamic:!1,encoded:(0,s.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){const t=(0,u.$G)(e),n=Math.ceil((0,l.d)(t)/32),r=[];for(let i=0;i<n;i++)r.push((0,s.gc)((0,c.tP)(t,32*i,32*(i+1)),{dir:"right"}));return{dynamic:!0,encoded:(0,a.zo)([(0,s.gc)((0,u.eC)((0,l.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function p(e){let t=0;for(let o=0;o<e.length;o++){const{dynamic:n,encoded:r}=e[o];t+=n?32:(0,l.d)(r)}const n=[],r=[];let i=0;for(let o=0;o<e.length;o++){const{dynamic:a,encoded:s}=e[o];a?(n.push((0,u.eC)(t+i,{size:32})),r.push(s),i+=(0,l.d)(s)):n.push(s)}return(0,a.zo)([...n,...r])}function f(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},3954:(e,t,n)=>{"use strict";n.d(t,{R:()=>c});var r=n(3440),i=n(7783),o=n(1979),a=n(6584),s=n(598),l=n(5118);function c(e){let{abi:t,args:n,functionName:c}=e,u=t[0];if(c&&(u=(0,l.mE)({abi:t,args:n,name:c}),!u))throw new r.xL(c,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==u.type)throw new r.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const d=(0,s.t)(u),h=(0,o.o)(d),p="inputs"in u&&u.inputs?(0,a.E)(u.inputs,null!==n&&void 0!==n?n:[]):void 0;return(0,i.SM)([h,null!==p&&void 0!==p?p:"0x"])}},598:(e,t,n)=>{"use strict";n.d(t,{h:()=>o,t:()=>i});var r=n(3440);function i(e){let{includeName:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.wM(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`}function o(e){let{includeName:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?e.map((e=>function(e,t){let{includeName:n}=t;if(e.type.startsWith("tuple"))return`(${o(e.components,{includeName:n})})${e.type.slice(5)}`;return e.type+(n&&e.name?` ${e.name}`:"")}(e,{includeName:t}))).join(t?", ":","):""}},5118:(e,t,n)=>{"use strict";n.d(t,{mE:()=>l});var r=n(3440),i=n(9796),o=n(5549),a=n(1979),s=n(2731);function l(e){let{abi:t,args:n=[],name:s}=e;const l=(0,i.v)(s,{strict:!1}),d=t.filter((e=>l?"function"===e.type?(0,a.o)(e)===s:"event"===e.type&&(0,o.e)(e)===s:"name"in e&&e.name===s));if(0===d.length)return;if(1===d.length)return d[0];let h;for(const i of d){if(!("inputs"in i))continue;if(!n||0===n.length){if(!i.inputs||0===i.inputs.length)return i;continue}if(!i.inputs)continue;if(0===i.inputs.length)continue;if(i.inputs.length!==n.length)continue;if(n.every(((e,t)=>{const n="inputs"in i&&i.inputs[t];return!!n&&c(e,n)}))){if(h&&"inputs"in h&&h.inputs){const e=u(i.inputs,h.inputs,n);if(e)throw new r.S4({abiItem:i,type:e[0]},{abiItem:h,type:e[1]})}h=i}}return h||d[0]}function c(e,t){const n=typeof e,r=t.type;switch(r){case"address":return(0,s.U)(e);case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in t?Object.values(t.components).every(((t,n)=>c(Object.values(e)[n],t))):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(e)&&e.every((e=>c(e,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")}))))}}function u(e,t,n){for(const r in e){const i=e[r],o=t[r];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return u(i.components,o.components,n[r]);const a=[i.type,o.type];if(!(!a.includes("address")||!a.includes("bytes20"))||(a.includes("address")&&a.includes("string")||!(!a.includes("address")||!a.includes("bytes")))&&(0,s.U)(n[r]))return a}}},7044:(e,t,n)=>{"use strict";n.d(t,{K:()=>l,x:()=>s});var r=n(5718),i=n(8883),o=n(6294),a=n(2731);function s(e,t){const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,o.w)((0,i.qX)(n),"bytes"),a=(t?n.substring(`${t}0x`.length):n).split("");for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&a[i]&&(a[i]=a[i].toUpperCase()),(15&r[i>>1])>=8&&a[i+1]&&(a[i+1]=a[i+1].toUpperCase());return`0x${a.join("")}`}function l(e,t){if(!(0,a.U)(e))throw new r.b({address:e});return s(e,t)}},2731:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});const r=/^0x[a-fA-F0-9]{40}$/;function i(e){return r.test(e)}},3162:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(9866);function i(e){var t;let{blockNumber:n,chain:i,contract:o}=e;const a=null===i||void 0===i||null===(t=i.contracts)||void 0===t?void 0:t[o];if(!a)throw new r.mm({chain:i,contract:{name:o}});if(n&&a.blockCreated&&a.blockCreated>n)throw new r.mm({blockNumber:n,chain:i,contract:{name:o,blockCreated:a.blockCreated}});return a.address}},7783:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e[0]?i(e):function(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(e)}function i(e){return`0x${e.reduce(((e,t)=>e+t.replace("0x","")),"")}`}n.d(t,{SM:()=>i,zo:()=>r})},9796:(e,t,n)=>{"use strict";function r(e){let{strict:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&("string"===typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}n.d(t,{v:()=>r})},4188:(e,t,n)=>{"use strict";n.d(t,{gc:()=>o,vk:()=>i});var r=n(9313);function i(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e?o(e,{dir:t,size:n}):function(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;if(e.length>n)throw new r.$({size:e.length,targetSize:n,type:"bytes"});const i=new Uint8Array(n);for(let r=0;r<n;r++){const o="right"===t;i[o?r:n-r-1]=e[o?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function o(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;const i=e.replace("0x","");if(i.length>2*n)throw new r.$({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},5308:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(9796);function i(e){return(0,r.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},4652:(e,t,n)=>{"use strict";n.d(t,{tP:()=>a});var r=n(9313),i=n(9796),o=n(5308);function a(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.v)(e,{strict:!1})?function(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(e,t);const i=`0x${e.replace("0x","").slice(2*(null!==t&&void 0!==t?t:0),2*(null!==n&&void 0!==n?n:e.length))}`;r&&l(i,t,n);return i}(e,t,n,{strict:r}):function(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(e,t);const i=e.slice(t,n);r&&l(i,t,n);return i}(e,t,n,{strict:r})}function s(e,t){if("number"===typeof t&&t>0&&t>(0,o.d)(e)-1)throw new r.m({offset:t,position:"start",size:(0,o.d)(e)})}function l(e,t,n){if("number"===typeof t&&"number"===typeof n&&(0,o.d)(e)!==n-t)throw new r.m({offset:n,position:"end",size:(0,o.d)(e)})}},9134:(e,t,n)=>{"use strict";function r(e){let{dir:t="left"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?e.replace("0x",""):e,r=0;for(let i=0;i<n.length-1&&"0"===n["left"===t?i:n.length-i-1].toString();i++)r++;return n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"===typeof e?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}n.d(t,{f:()=>r})},1951:(e,t,n)=>{"use strict";n.d(t,{XA:()=>c,Yf:()=>s,ly:()=>u,rR:()=>d,y_:()=>l});var r=n(3587),i=n(5308),o=n(9134),a=n(8883);function s(e,t){let{size:n}=t;if((0,i.d)(e)>n)throw new r.M6({givenSize:(0,i.d)(e),maxSize:n})}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n}=t;t.size&&s(e,{size:t.size});const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if(t.size&&(s(n,{size:t.size}),n=(0,o.f)(n)),"0x00"===(0,o.f)(n))return!1;if("0x01"===(0,o.f)(n))return!0;throw new r.Cd(n)}function u(e){return Number(l(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.nr)(e);return t.size&&(s(n,{size:t.size}),n=(0,o.f)(n,{dir:"right"})),(new TextDecoder).decode(n)}},8883:(e,t,n)=>{"use strict";n.d(t,{O0:()=>c,nr:()=>h,qX:()=>p});var r=n(3232),i=n(9796),o=n(4188),a=n(1951),s=n(9485);const l=new TextEncoder;function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?function(e,t){const n=(0,s.eC)(e,t);return h(n)}(e,t):"boolean"===typeof e?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Uint8Array(1);if(n[0]=Number(e),"number"===typeof t.size)return(0,a.Yf)(n,{size:t.size}),(0,o.vk)(n,{size:t.size});return n}(e,t):(0,i.v)(e)?h(e,t):p(e,t)}const u={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;t.size&&((0,a.Yf)(n,{size:t.size}),n=(0,o.vk)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,l=new Uint8Array(s);for(let o=0,a=0;o<s;o++){const e=d(i.charCodeAt(a++)),t=d(i.charCodeAt(a++));if(void 0===e||void 0===t)throw new r.G(`Invalid byte sequence ("${i[a-2]}${i[a-1]}" in "${i}").`);l[o]=16*e+t}return l}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=l.encode(e);return"number"===typeof t.size?((0,a.Yf)(n,{size:t.size}),(0,o.vk)(n,{dir:"right",size:t.size})):n}},9485:(e,t,n)=>{"use strict";n.d(t,{$G:()=>h,C4:()=>l,NC:()=>s,ci:()=>c,eC:()=>u});var r=n(3587),i=n(4188),o=n(1951);const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?u(e,t):"string"===typeof e?h(e,t):"boolean"===typeof e?l(e,t):c(e,t)}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=`0x${Number(e)}`;return"number"===typeof t.size?((0,o.Yf)(n,{size:t.size}),(0,i.vk)(n,{size:t.size})):n}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";for(let i=0;i<e.length;i++)n+=a[e[i]];const r=`0x${n}`;return"number"===typeof t.size?((0,o.Yf)(r,{size:t.size}),(0,i.vk)(r,{dir:"right",size:t.size})):r}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n,size:o}=t,a=BigInt(e);let s;o?s=n?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"===typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));const l="bigint"===typeof s&&n?-s-1n:0;if(s&&a>s||a<l){const t="bigint"===typeof e?"n":"";throw new r.J5({max:s?`${s}${t}`:void 0,min:`${l}${t}`,signed:n,size:o,value:`${e}${t}`})}const c=`0x${(n&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,i.vk)(c,{size:o}):c}const d=new TextEncoder;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(d.encode(e),t)}},1419:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(3232),i=n(7151);function o(e,t){const n=(e.details||"").toLowerCase(),o=e.walk((e=>e.code===i.M_.code));return o instanceof r.G?new i.M_({cause:e,message:o.details}):i.M_.nodeMessage.test(n)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(n)?new i.Hh({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas}):i.G$.nodeMessage.test(n)?new i.G$({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas}):i.ZI.nodeMessage.test(n)?new i.ZI({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):i.vU.nodeMessage.test(n)?new i.vU({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):i.se.nodeMessage.test(n)?new i.se({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):i.C_.nodeMessage.test(n)?new i.C_({cause:e}):i.WF.nodeMessage.test(n)?new i.WF({cause:e,gas:null===t||void 0===t?void 0:t.gas}):i.dR.nodeMessage.test(n)?new i.dR({cause:e,gas:null===t||void 0===t?void 0:t.gas}):i.pZ.nodeMessage.test(n)?new i.pZ({cause:e}):i.cs.nodeMessage.test(n)?new i.cs({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas,maxPriorityFeePerGas:null===t||void 0===t?void 0:t.maxPriorityFeePerGas}):new i.cj({cause:e})}},9961:(e,t,n)=>{"use strict";function r(e,t){let{format:n}=t;if(!n)return{};const r={};return function t(n){const i=Object.keys(n);for(const o of i)o in e&&(r[o]=e[o]),n[o]&&"object"===typeof n[o]&&!Array.isArray(n[o])&&t(n[o])}(n(e||{})),r}n.d(t,{K:()=>r})},1963:(e,t,n)=>{"use strict";n.d(t,{tG:()=>o});var r=n(9485);const i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function o(e){return{...e,gas:"undefined"!==typeof e.gas?(0,r.eC)(e.gas):void 0,gasPrice:"undefined"!==typeof e.gasPrice?(0,r.eC)(e.gasPrice):void 0,maxFeePerGas:"undefined"!==typeof e.maxFeePerGas?(0,r.eC)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:"undefined"!==typeof e.maxPriorityFeePerGas?(0,r.eC)(e.maxPriorityFeePerGas):void 0,nonce:"undefined"!==typeof e.nonce?(0,r.eC)(e.nonce):void 0,type:"undefined"!==typeof e.type?i[e.type]:void 0,value:"undefined"!==typeof e.value?(0,r.eC)(e.value):void 0}}},5549:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var r=n(8883),i=n(2167);var o=n(6294);const a=e=>{return t=(e=>(0,i.r)(e))(e),(0,o.w)((0,r.O0)(t));var t}},1979:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(4652),i=n(8883),o=n(2167),a=n(6294);const s=e=>{return(0,r.tP)((t=(0,o.r)(e),(0,a.w)((0,i.O0)(t))),0,4);var t}},2167:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});const r=(0,n(4414).Z)(/^tuple((\[(\d*)\])*)$/,{array:1});function i(e){let t=e.type;if(r.test(e.type)&&"components"in e){var n;t="(";const o=e.components.length;for(let n=0;n<o;n++){t+=i(e.components[n]),n<o-1&&(t+=", ")}const a=function(e,t){const n=e.exec(t);return null===n||void 0===n?void 0:n.groups}(r,e.type);return t+=`)${null!==(n=null===a||void 0===a?void 0:a.array)&&void 0!==n?n:""}`,i({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function o(e){let t="";const n=e.length;for(let r=0;r<n;r++){t+=i(e[r]),r!==n-1&&(t+=", ")}return t}var a=n(3232);const s=e=>function(e){let t=!0,n="",r=0,i="",o=!1;for(let a=0;a<e.length;a++){const s=e[a];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t)if(0!==r)" "!==s?(i+=s,n+=s):","!==e[a-1]&&","!==n&&",("!==n&&(n="",t=!1);else if(" "===s&&["event","function",""].includes(i))i="";else if(i+=s,")"===s){o=!0;break}}if(!o)throw new a.G("Unable to normalize signature.");return i}((()=>{return"string"===typeof e?e:"function"===(t=e).type?`function ${t.name}(${o(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs.length?` returns (${o(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${o(t.inputs)})`:"error"===t.type?`error ${t.name}(${o(t.inputs)})`:"constructor"===t.type?`constructor(${o(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback()":"receive() external payable";var t})())},6294:(e,t,n)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function i(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0&&!n.includes(e.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${e.length}`)}function o(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function a(e,t){i(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}n.d(t,{w:()=>L});const s=BigInt(2**32-1),l=BigInt(32);function c(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&s),l:Number(e>>l&s)}:{h:0|Number(e>>l&s),l:0|Number(e&s)}}function u(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:o,l:a}=c(e[i],t);[n[i],r[i]]=[o,a]}return[n,r]}const d=(e,t,n)=>e<<n|t>>>32-n,h=(e,t,n)=>t<<n|e>>>32-n,p=(e,t,n)=>t<<n-32|e>>>64-n,f=(e,t,n)=>e<<n-32|t>>>64-n;const m=e=>e instanceof Uint8Array;if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function g(e){if("string"===typeof e&&(e=function(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),!m(e))throw new Error("expected Uint8Array, got "+typeof e);return e}class v{clone(){return this._cloneInto()}}const[y,b,w]=[[],[],[]],x=BigInt(0),C=BigInt(1),E=BigInt(2),S=BigInt(7),k=BigInt(256),_=BigInt(113);for(let D=0,B=C,U=1,F=0;D<24;D++){[U,F]=[F,(2*U+3*F)%5],y.push(2*(5*F+U)),b.push((D+1)*(D+2)/2%64);let e=x;for(let t=0;t<7;t++)B=(B<<C^(B>>S)*_)%k,B&E&&(e^=C<<(C<<BigInt(t))-C);w.push(e)}const[P,A]=u(w,!0),R=(e,t,n)=>n>32?p(e,t,n):d(e,t,n),O=(e,t,n)=>n>32?f(e,t,n):h(e,t,n);class T extends v{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,r(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");var a;this.state=new Uint8Array(200),this.state32=(a=this.state,new Uint32Array(a.buffer,a.byteOffset,Math.floor(a.byteLength/4)))}keccak(){!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,i=(r+2)%10,o=n[i],a=n[i+1],s=R(o,a,1)^n[t],l=O(o,a,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=s,e[r+n+1]^=l}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=b[n],o=R(t,i,r),a=O(t,i,r),s=y[n];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=P[r],e[1]^=A[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){o(this);const{blockLen:t,state:n}=this,r=(e=g(e)).length;for(let i=0;i<r;){const o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,0!==(128&t)&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){o(this,!1),i(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return r(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(a(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new T(t,n,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}const I=(e,t,n)=>function(e){const t=t=>e().update(g(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}((()=>new T(t,e,n))),N=I(1,136,32);var $=n(9796),M=n(8883),j=n(9485);function L(e,t){const n=t||"hex",r=N((0,$.v)(e,{strict:!1})?(0,M.O0)(e):e);return"bytes"===n?r:(0,j.NC)(r)}},4510:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});const r=new Map;function i(e){let{fn:t,id:n,shouldSplitBatch:i,wait:o=0,sort:a}=e;const s=async()=>{const e=c();l();const n=e.map((e=>{let{args:t}=e;return t}));0!==n.length&&t(n).then((t=>{a&&Array.isArray(t)&&t.sort(a);for(let r=0;r<e.length;r++){var n;const{pendingPromise:i}=e[r];null===(n=i.resolve)||void 0===n||n.call(i,[t[r],t])}})).catch((t=>{for(let r=0;r<e.length;r++){var n;const{pendingPromise:i}=e[r];null===(n=i.reject)||void 0===n||n.call(i,t)}}))},l=()=>r.delete(n),c=()=>r.get(n)||[],u=e=>r.set(n,[...c(),e]);return{flush:l,async schedule(e){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));(null===i||void 0===i?void 0:i([...c().map((e=>{let{args:t}=e;return t})),e]))&&s();return c().length>0?(u({args:e,pendingPromise:t}),n):(u({args:e,pendingPromise:t}),setTimeout(s,o),n)}}}},3691:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});const r=(e,t,n)=>JSON.stringify(e,((e,n)=>{const r="bigint"===typeof n?n.toString():n;return"function"===typeof t?t(e,r):r}),n)},7129:(e,t,n)=>{"use strict";n.d(t,{F:()=>l});var r=n(2213),i=n(5718),o=n(7151),a=n(5859),s=n(2731);function l(e){const{account:t,gasPrice:n,maxFeePerGas:l,maxPriorityFeePerGas:c,to:u}=e,d=t?(0,r.T)(t):void 0;if(d&&!(0,s.U)(d.address))throw new i.b({address:d.address});if(u&&!(0,s.U)(u))throw new i.b({address:u});if("undefined"!==typeof n&&("undefined"!==typeof l||"undefined"!==typeof c))throw new a.xY;if(l&&l>2n**256n-1n)throw new o.Hh({maxFeePerGas:l});if(c&&l&&c>l)throw new o.cs({maxFeePerGas:l,maxPriorityFeePerGas:c})}},2629:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(4602),i=n(4127);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.b)(e,r.ez[t])}},9870:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(4602),i=n(4127);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.b)(e,r.Zn[t])}},4127:(e,t,n)=>{"use strict";function r(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[i,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${o?`.${o}`:""}`}n.d(t,{b:()=>r})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{107:"a0522c22",159:"5031134c",248:"59aa7cee",407:"c809a586",495:"956dd640",753:"da2aee3c",889:"6cd24ae3",902:"6d3af5c3"}[e]+".chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="wallet-connect:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{var e={179:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,o,[a,s,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkwallet_connect=self.webpackChunkwallet_connect||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(1233),t=n.t(e,2),r=n(575),i=n(7462),o=n(3366);function a(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=a(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const s=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=a(e))&&(r&&(r+=" "),r+=t);return r};var l=n(7924),c=n(8127),u=n(3027),d=n(2053),h=n(5808);const p=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const n=e.useContext(h.T);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r},f=(0,d.Z)();const m=function(){return p(arguments.length>0&&void 0!==arguments[0]?arguments[0]:f)};var g=n(9064);const v=["className","component"];const y=e=>e,b=(()=>{let e=y;return{configure(t){e=t},generate:t=>e(t),reset(){e=y}}})();var w=n(1453),x=n(1464),C=n(5176);function E(e,t){return(0,i.Z)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var S=n(3254);const k={black:"#000",white:"#fff"},_={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"},P={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"},A={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"},R={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"},O={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"},T={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"},I={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"},N=["mode","contrastThreshold","tonalOffset"],$={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:k.white,default:k.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}},M={text:{primary:k.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:k.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 j(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,S.$n)(e.main,i):"dark"===t&&(e.dark=(0,S._j)(e.main,o)))}function L(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,a=(0,o.Z)(e,N),s=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:O[200],light:O[50],dark:O[400]}:{main:O[700],light:O[400],dark:O[800]}}(t),l=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:P[200],light:P[50],dark:P[400]}:{main:P[500],light:P[300],dark:P[700]}}(t),c=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:A[500],light:A[300],dark:A[700]}:{main:A[700],light:A[400],dark:A[800]}}(t),u=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:T[400],light:T[300],dark:T[700]}:{main:T[700],light:T[500],dark:T[900]}}(t),d=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:I[400],light:I[300],dark:I[700]}:{main:I[800],light:I[500],dark:I[900]}}(t),h=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:R[400],light:R[300],dark:R[700]}:{main:"#ed6c02",light:R[500],dark:R[900]}}(t);function p(e){return(0,S.mi)(e,M.text.primary)>=n?M.text.primary:$.text.primary}const f=e=>{let{color:t,name:n,mainShade:o=500,lightShade:a=300,darkShade:s=700}=e;if(t=(0,i.Z)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,w.Z)(11,n?` (${n})`:"",o));if("string"!==typeof t.main)throw new Error((0,w.Z)(12,n?` (${n})`:"",JSON.stringify(t.main)));return j(t,"light",a,r),j(t,"dark",s,r),t.contrastText||(t.contrastText=p(t.main)),t},m={dark:M,light:$};return(0,x.Z)((0,i.Z)({common:(0,i.Z)({},k),mode:t,primary:f({color:s,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:c,name:"error"}),warning:f({color:h,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:d,name:"success"}),grey:_,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r},m[t]),a)}const D=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const B={textTransform:"uppercase"},U='"Roboto", "Helvetica", "Arial", sans-serif';function F(e,t){const n="function"===typeof t?t(e):t,{fontFamily:r=U,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:h,pxToRem:p}=n,f=(0,o.Z)(n,D);const m=a/14,g=p||(e=>e/d*m+"rem"),v=(e,t,n,o,a)=>{return(0,i.Z)({fontFamily:r,fontWeight:e,fontSize:g(t),lineHeight:n},r===U?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},a,h);var s},y={h1:v(s,96,1.167,-1.5),h2:v(s,60,1.2,-.5),h3:v(l,48,1.167,0),h4:v(l,34,1.235,.25),h5:v(l,24,1.334,0),h6:v(c,20,1.6,.15),subtitle1:v(l,16,1.75,.15),subtitle2:v(c,14,1.57,.1),body1:v(l,16,1.5,.15),body2:v(l,14,1.43,.15),button:v(c,14,1.75,.4,B),caption:v(l,12,1.66,.4),overline:v(l,12,2.66,1,B),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,x.Z)((0,i.Z)({htmlFontSize:d,pxToRem:g,fontFamily:r,fontSize:a,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:u},y),f,{clone:!1})}function z(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const W=["none",z(0,2,1,-1,0,1,1,0,0,1,3,0),z(0,3,1,-2,0,2,2,0,0,1,5,0),z(0,3,3,-2,0,3,4,0,0,1,8,0),z(0,2,4,-1,0,4,5,0,0,1,10,0),z(0,3,5,-1,0,5,8,0,0,1,14,0),z(0,3,5,-1,0,6,10,0,0,1,18,0),z(0,4,5,-2,0,7,10,1,0,2,16,1),z(0,5,5,-3,0,8,10,1,0,3,14,2),z(0,5,6,-3,0,9,12,1,0,3,16,2),z(0,6,6,-3,0,10,14,1,0,4,18,3),z(0,6,7,-4,0,11,15,1,0,4,20,3),z(0,7,8,-4,0,12,17,2,0,5,22,4),z(0,7,8,-4,0,13,19,2,0,5,24,4),z(0,7,9,-4,0,14,21,2,0,5,26,4),z(0,8,9,-5,0,15,22,2,0,6,28,5),z(0,8,10,-5,0,16,24,2,0,6,30,5),z(0,8,11,-5,0,17,26,2,0,6,32,5),z(0,9,11,-5,0,18,28,2,0,7,34,6),z(0,9,12,-6,0,19,29,2,0,7,36,6),z(0,10,13,-6,0,20,31,3,0,8,38,7),z(0,10,13,-6,0,21,33,3,0,8,40,7),z(0,10,14,-6,0,22,35,3,0,8,42,7),z(0,11,14,-7,0,23,36,3,0,9,44,8),z(0,11,15,-7,0,24,38,3,0,9,46,8)],Z=["duration","easing","delay"],H={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)"},V={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function q(e){return`${Math.round(e)}ms`}function G(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function K(e){const t=(0,i.Z)({},H,e.easing),n=(0,i.Z)({},V,e.duration);return(0,i.Z)({getAutoHeightDuration:G,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=r;(0,o.Z)(r,Z);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof i?i:q(i)} ${a} ${"string"===typeof s?s:q(s)}`)).join(",")}},e,{easing:t,duration:n})}const Y={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Q=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function X(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:r={},typography:a={}}=e,s=(0,o.Z)(e,Q);if(e.vars)throw new Error((0,w.Z)(18));const l=L(n),u=(0,d.Z)(e);let h=(0,x.Z)(u,{mixins:E(u.breakpoints,t),palette:l,shadows:W.slice(),typography:F(l,a),transitions:K(r),zIndex:(0,i.Z)({},Y)});h=(0,x.Z)(h,s);for(var p=arguments.length,f=new Array(p>1?p-1:0),m=1;m<p;m++)f[m-1]=arguments[m];return h=f.reduce(((e,t)=>(0,x.Z)(e,t)),h),h.unstable_sxConfig=(0,i.Z)({},C.Z,null==s?void 0:s.unstable_sxConfig),h.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},h}const J=X,ee="$$material",te={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 ne(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r=te[t];return r?`${n}-${r}`:`${b.generate(e)}-${t}`}function re(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r={};return t.forEach((t=>{r[t]=ne(e,t,n)})),r}const ie=re("MuiBox",["root"]),oe=J(),ae=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:n,defaultTheme:r,defaultClassName:a="MuiBox-root",generateClassName:d}=t,h=(0,l.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(c.Z),p=e.forwardRef((function(e,t){const l=m(r),c=(0,u.Z)(e),{className:p,component:f="div"}=c,y=(0,o.Z)(c,v);return(0,g.jsx)(h,(0,i.Z)({as:f,ref:t,className:s(p,d?d(a):a),theme:n&&l[n]||l},y))}));return p}({themeId:ee,defaultTheme:oe,defaultClassName:ie.root,generateClassName:b.generate}),se=ae;function le(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var ce=n(8274);function ue(e,t){const n=(0,i.Z)({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=(0,i.Z)({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=(0,i.Z)({},a),Object.keys(o).forEach((e=>{n[r][e]=ue(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function de(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,o=m(r);i&&(o=o[i]||o);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?ue(t.components[n].defaultProps,r):r}({theme:o,name:n,props:t});return a}const he=["ownerState"],pe=["variants"],fe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function me(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ge=(0,d.Z)(),ve=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ye(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function be(e){return e?(t,n)=>n[e]:null}function we(e,t){let{ownerState:n}=t,r=(0,o.Z)(t,he);const a="function"===typeof e?e((0,i.Z)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>we(e,(0,i.Z)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.Z)(a,pe);return e.forEach((e=>{let o=!0;"function"===typeof e.props?o=e.props((0,i.Z)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,i.Z)({ownerState:n},r,n)):e.style))})),t}return a}const xe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=ge,rootShouldForwardProp:r=me,slotShouldForwardProp:a=me}=e,s=e=>(0,c.Z)((0,i.Z)({},e,{theme:ye((0,i.Z)({},e,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,l.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:d,skipVariantsResolver:h,skipSx:p,overridesResolver:f=be(ve(d))}=c,m=(0,o.Z)(c,fe),g=void 0!==h?h:d&&"Root"!==d&&"root"!==d||!1,v=p||!1;let y=me;"Root"===d||"root"===d?y=r:d?y=a:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(y=void 0);const b=(0,l.default)(e,(0,i.Z)({shouldForwardProp:y,label:undefined},m)),w=e=>"function"===typeof e&&e.__emotion_real!==e||(0,x.P)(e)?r=>we(e,(0,i.Z)({},r,{theme:ye({theme:r.theme,defaultTheme:n,themeId:t})})):e,C=function(r){let o=w(r);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];const d=l?l.map(w):[];u&&f&&d.push((e=>{const r=ye((0,i.Z)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[u]||!r.components[u].styleOverrides)return null;const o=r.components[u].styleOverrides,a={};return Object.entries(o).forEach((t=>{let[n,o]=t;a[n]=we(o,(0,i.Z)({},e,{theme:r}))})),f(e,a)})),u&&!g&&d.push((e=>{var r;const o=ye((0,i.Z)({},e,{defaultTheme:n,themeId:t}));return we({variants:null==o||null==(r=o.components)||null==(r=r[u])?void 0:r.variants},(0,i.Z)({},e,{theme:o}))})),v||d.push(s);const h=d.length-l.length;if(Array.isArray(r)&&h>0){const e=new Array(h).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const p=b(o,...d);return e.muiName&&(p.muiName=e.muiName),p};return b.withConfig&&(C.withConfig=b.withConfig),C}}(),Ce=xe,Ee=["className","component","disableGutters","fixed","maxWidth","classes"],Se=(0,d.Z)(),ke=Ce("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,ce.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),_e=e=>de({props:e,name:"MuiContainer",defaultTheme:Se});const Pe=ce.Z;var Ae=n(8222);const Re=J();const Oe=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},Te=e=>Oe(e)&&"classes"!==e,Ie=(0,Ae.ZP)({themeId:ee,defaultTheme:Re,rootShouldForwardProp:Te}),Ne=e.createContext(void 0);function $e(t){let{props:n,name:r}=t;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?ue(i.defaultProps,r):i.styleOverrides||i.variants?r:ue(i,r)}({props:n,name:r,theme:{components:e.useContext(Ne)}})}function Me(e){return $e(e)}const je=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:n=ke,useThemeProps:r=_e,componentName:a="MuiContainer"}=t,l=n((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{let{theme:t,ownerState:n}=e;return n.fixed&&Object.keys(t.breakpoints.values).reduce(((e,n)=>{const r=n,i=t.breakpoints.values[r];return 0!==i&&(e[t.breakpoints.up(r)]={maxWidth:`${i}${t.breakpoints.unit}`}),e}),{})}),(e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({},"xs"===n.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},n.maxWidth&&"xs"!==n.maxWidth&&{[t.breakpoints.up(n.maxWidth)]:{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`}})})),c=e.forwardRef((function(e,t){const n=r(e),{className:c,component:u="div",disableGutters:d=!1,fixed:h=!1,maxWidth:p="lg"}=n,f=(0,o.Z)(n,Ee),m=(0,i.Z)({},n,{component:u,disableGutters:d,fixed:h,maxWidth:p}),v=((e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e;return le({root:["root",o&&`maxWidth${(0,ce.Z)(String(o))}`,r&&"fixed",i&&"disableGutters"]},(e=>ne(t,e)),n)})(m,a);return(0,g.jsx)(l,(0,i.Z)({as:u,ownerState:m,className:s(v.root,c),ref:t},f))}));return c}({createStyledComponent:Ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Pe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Me({props:e,name:"MuiContainer"})}),Le=je,De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAG3CAYAAADYVXDVAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nO3dT2yUV7rn8V/j3FhUxpVYqSiWbAoPM2lsJ1KDF2CEpWaDo1xpFEtxlOlsmn9paRadS0SkRhqJQFa5EghPeladAOlZcBsBus7mtmIWA5IRhoUhmgSbG13a2C4NUZfl4JouT/W0lVlUFTGO/9Sft+q8z3m/HykSDQl+WqqqXz3nPOe8P/n+++/lg/b9t7ZJeq7wzzbH5QCAFXckfSdpcvLcjknHtQTiJ9aCrX3/rXblg2ubpD2S2iVtdlcRAHjlS0mTygfeVUl3Js/t+M5lQeUKfbC177/1nKR+5UNsjwgxAKi3L5UPuauT53YMOa5lXaEMtiVh1i/pdcflAAB+8EjSkKShsIZcqIKtff+tPZL2Sfql20oAACUohtzxMO3PhSLY2vff2ifpuFhmBACrrikfcFddF+I02Ag0APDOA+UD7jNXBTgJNgINALznrIOra7AVzpoNSvp53X4oAMClzyUdruceXF2CrTDleFzSP9T8hwEAwuaR8t3bYD1+WM2DrTDp+JlYdgSAqLsmaV+tu7cNtfzL2/ffOi7pf4pQAwDkt6HuFOYsaqYmHVth6XFI7KUBAFb2+8lzO/bV4i8OPNgKAyJDoksDAKztS0l7gr6LMtClyPb9t/qVv0+MUAMArOdnkiYLDVFgAgu2wprpP0t6Nqi/EwDgvWclXQ0y3AIJtkKonQvi7wIARE4x3PYF8ZdVvcdGqAEAArS/2uu4qgo2Qg0AUAPbJ8/tuFPpf1zxUiShBgCokar23Crq2Ao/8HalPxQAgHU8krStkltKyu7Y2vffald+pB8AgFp5VtJQ4cKPspQVbEtuFGGkHwBQaz9T/okwZSm3Yxss/CAAAOrhl+37bx0u5z8oeY+tcKvIP1dSFQAAVSp5UrKkjq2wr/ZZFQUBAFCNz0r9F0tdivxM7KsBANz5WeFRaOtadymSJUgAQIisuyS5ZsdWmIL8LMiKAACowrpTkustRR4WS5AAgPD4+XqXJa8abIWBkQ8CLggAgGodX+sP1+rY1vwPAQBwZPNaZ9tWHB4pdGt/qmFRAABU45Gk9slzO75b/gerdWzHa1oOAADVeVZS/0p/8KNgK0xC/rLWFQEAUKXjK/3mSh1bWXdyAQDgyObCWesnrBRs+2pfCwAAgdi3/DeeCLZC8m2uVzUAAFTp9cLA42PLO7YVN+IAAAixJ7LrcbAxNAIAMGrf0v+xtGOjWwMAWPSzpcuRS4NtT91LAQAgGI+bMzo2AIAPngy29v23tolb/AEAdv28+Itix7bHTR0AAASjff+tPRLBBgDwxx7ph2Db5q4OAAACsU2SNhTOr3HbCADAunywiW4NAOCHzRLBBgDwSPv+W3s2SHrOdSEAAATkOTo2AIBPttGxAQC8stKDRgEAsGrbBi25hgQAAOOeo2MDAHiFYAMAeIVgAwB4hWADAHiFYAMAeIVgAwB4hWADAHiFYAMAeIVgAwB4hWADAHiFYAMAeIVgAwB4hWADAHiFYAMAeIVgAwB4hWADAHiFYAMAeIVgAwB45SnXBQBhF481qCv5jCSpp6Pp8e+9XPg9SWpLPK3W5xur+jnj01nNZxcf/+8bE/OSpPnsou5OZSVJo4XfA7A6gg2Q1JZoVFuiUV3JmNoST+vl5DOKxxrUuSlWtxqW/6ydW5tW/XeLIXhjYv5x8N2d+ssTwQhEFcGGyOlKxh7/83LyGXUlY2ra2OC6rLIUQ3B5+GUW8iF3Y2K+EHZZzaRzLkoEnCHY4LV4rEE9HXF1JWPa1RFfswvyQdPGBu3c2vTE/8+lYTc6kWE5E977yeZ9N793XQQQlGKQ9XQ0aVdHvK5LiZbcvJch6OCrawQbzOtKxtTX3axXu5sJsgpduT2nGxMZDY/NsXQJ6wg22FQMsp6OpqqnEfGk1GxOX4zN6dJI+vE0JmAIwQY7imHW191sbtjDKkIOBhFsCLeuZEwH+1oIsxAohtzZ4W9ZrkSYEWwIn7ZEo/q6m3Ww70WWGUNqfDqrM8MPNTw2x9k5hA3BhvDo627Wm70J7d3e7LoUlCizsKjhsTmdGX7IUiXCgmCDW/FYgwZ6X6A780Cxi7s0knZdCqKNYIMbbYlGvdffyt6ZhzILizoz/FBnhx+yTAkXCDbUV09HXAf7XmS5MSIuX0/r9FCKYRPUE8GG+ujpiOu9/lbvr7TCygg41BHBhtoi0LAUAYc6INhQGwQa1kLAoYYINgSrLdGoU4e2EGgoyeXraZ04/4AhEwSJYEMw4rEGffD2Zr2xO+G6FBjDFCUCRrCheof7W3Wwr4WxfVQlNZvT6aEU5+BQLYINlevpiOvUoX/PwWoE6ua9jE6cf8BNJqgUwYbytSUa9cHbSc6ioabOXnmowaEUy5MoF8GG8hzoa9F7/a0sO6IuUrM5nTg/peGxOdelwA6CDaXpSsZ06tAWnlANJ67cntORT+/TvaEU1za4rgDhd7i/Vf9y4hVCDc7s3d6s6ye3qa+b5W+sj44Nq6JLQxjRvWEddGxY2YG+Fl042kmoIXTo3rAegg1PiMca9Mm7L+nYL5IMiCC0mjY26He/fknH3k66LgUhRLDhsZ6OuK6f3MYYP8w4sLdFf/zwFXUlWVnADwg2SMoPiPzhNx10aTCnc1NMF452aqCX69yQR7BFXDzWoAtHO3X49VbXpQAVa9rYoJMHt+jUoS2uS0EIEGwR1pWM6Y8fvsJN/PDGG7sT+uOHrygeY+Uhygi2iBroTejC0U7ueYR3OjfFdP3kNvbdIoxgi6Bjbyd18uAW9tPgraaNDfqXE6+w7xZRBFuExGMNOnVoiw7sbXFdClAXJw9u4UhABD3lugDUR3FIhAPXiJoDe1v0bOwpntQdIXRsEVAcEiHUEFVv7M7vKTNUEg0Em+e6kjGGRAD9cN6tLcF7wXcEm8f6upt14WgnQyJAQeemGDeVRADB5qmB3oR+9+uXCDVgmaaN+f1mws1fBJuHBnoTOnmQGxiA1RBufiPYPEOoAaUh3PxFsHmEUAPKQ7j5iWDzBKEGVIZw8w/B5gFCrTrj01llFuwf3M0sLCo1m3NdhkmEm1+4ecQ4Qq18mYVFDY/N6cbEvIbH5jSfXdSFo53mn3Jwdyqrtz4aV1uiUT0dTXq1u1k9HXEmY0tUDLe3PhrX3ams63JQBYLNMEKtdKnZnL4Ym9OlkbT3H1oz6ZwujeR0aSQtKX+esRh0HNRfG+HmB4LNqK5kjFBbR5TCbC3DY3MaHpvTh+en1JWM6WBfi/q6m+nkVkG42UewGVS8Jgs/VlxmvDiS1ujEvOtyQufuVFZHPr0vKd/Jvdmb0N7tzY6rCp+mjfknYbz10TgXJxtEsBnTlmjkmqwVjE9ndWb44eM9M6yv2Mm1JRo10JvQm70JliqXKN4tSbjZQ7AZEo816JN3uSZrqSu353Rm+Fu6syrMpHMaHEppcChVCLgXzA/SBKVzU0ynDm3ROx9/47oUlIFgM+STd3/Ko2cKLl9P6/RQSjNpxtuDdGkkrUsjafV0xPVmb0Jv7OYJ1Hu3N+vUoS2Pl3ARfgSbEacObeFbtAi0ehmdmNfoxLxOD6X0Xn9r5APujd0J3ZiYfzxpinAj2Iy4OJLWxYi/qWbSOQKtzmbSOR359L5OD6Ui/xyz+ezfXJeAEhFsRrCHBJf4UgFLuFILAOAVgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4JWnXBfgu3isQddPblPTxgbXpVTtV7/9RsNjc67LQAQd6GvRsV8kXZdRtZv3Mnrro3HXZXiPjq3GDvS1eBFqH/7TFKEGZ84OP9Tl62nXZVRt59Ym9XTEXZfhPYKthuKxBh3sa3FdRtUuX0/r7PBD12Ug4k6cf6Dx6azrMqr2Xn+r6xK8R7DVkA/d2vh0VifOP3BdBqD57KLe+fgbZRYWXZdSFbq22iPYasSHbi2zkP8gmc/a/iCBP2bSOb3z8Teuy6gaXVttEWw1MtD7gvlu7cin9zWTzrkuA3jC6MS8Bj9PuS6jKnRttUWw1cjBvhddl1CVs1ceMiyC0BocSunmvYzrMqpC11Y7BFsNDPQm1Pp8o+syKjY+ndWH56dclwGs6Z2P/9X0ftvOrU3qSsZcl+Elgq0GLH8Tyyws6sin912XAaxrPmv/tWp9Hz6sCLaA9XTETXdrp4dSujtlf6Qa0TA8NqezV+weRXljd0JtCbufF2FFsAXM8t7azXsZzqvBnMGhlFKzdoecBnoTrkvwDsEWoLZEo/Zub3ZdRkVYgoRV+SXJP7kuo2IsRwaPYAvQAcPd2umhFKP9MGt0Yt7slVtNGxvo2gJGsAXozd4XXJdQkfHpLEuQMO/E+QdmpyStfnaEFcEWkIHehNkD2ScY7YcH5rOLZq9/27m1iSGSABFsAbH6jevy9bRGJ+ZdlwEE4tJI2uzBbctbGWFDsAWgLdGonVubXJdRtsyC3W+4wGpOD9m8bsvql+MwItgCYHXj98zwQy44hnesDpI0bWxQX7fNqeqwIdgC8KbBYEvN5jRo9JstsB67XZu9z5IwItiq1JWMmbxpxOobHyjFTDpn8kaSvdubFY/ZHEILE4KtShaXIVOzOV0asbdUA5RjcChlcvyf5cjqEWxVetXgi5BuDVEwn13UGYPnMy1+poQNwVYFixce060hSs4OPzTXtbEcWT2CrQp93c+5LqFsdGuIEqtdG8uR1SHYqmBtyYBuDVFk8TVv7bMlbAi2Clmchjwz/K3rEoC6m0nnzJ1rYzmyOgRbhawtFWQWFnVp5M+uywCcsLgc2dMRd12CWQRbhawtFVwc+TO3jCCy7k5lzd0hae0zJkwItgrEYw3q3BRzXUZZzrIMiYi7aGzFoqfD3v2zYUGwVcDaMuTNexkeIorIuzSSVmrWzvug9flGdSVtfYEOC4KtAruMrX1b+6YK1MoXY3OuSygL+2yVIdgqYGmJID80YmsiDKgVa0vyuwx91oQJwVamtkSjqTH/YWPfUIFamknnND6ddV1GyejYKkOwlclStybZHHMGasnSe6JpYwP7bBUg2MpkaX8tNZvT3Sk7306BerC2ikHXVj6CrUyWOjZrG+VAPcxnF3Xltp33Bvts5SPYyhCPNZjaX2NoBFiZpS99dGzlI9jKYOkFxjIksLrRCTu3kDRtbFBbws4X6jAg2MpgaRPX0hsXqDdr05GWPnvCgGArg6XBEUtLLYALlt4jBFt5CLYyWHpxjU7Muy4BCDVL05GWvlSHAcFWorZEo5o22ng+0s17GW7yB9ZxdyqrzIKN94mlL9VhQLCVyNLm7Q26NaAkVlY2GCApD8FWIkvn1xgcAUpzw9B7hWArHcFWok2GXlRWvoUCrll6r1j6cu0awVYiK9+WLI0wA65ZOusZj9nY4w8Dgq1EO7fa+LbE/hpQnpv3bCxHvpx8xnUJZhBsJbD0TcnSN1AgDL6e+ovrEkrCZGTpCLYSdBn6pkSwAeWx8p6xctwoDAi2EtCxAf6y9J6haysNwVYCKy8mK3sFQJhYCrZ47CnXJZhAsJXASsc2k865LgEwyco0sZUv2a4RbCWwMo00TbABFbHypdDKl2zXCDaPWFpSAcLkayPvHUsXRbhEsJXASvvPxcdAZax0bFYuinCNYCuBlTFbS9cDAWEyk/6r6xIQIIINQOTNZ//muoSSWFk9co1gW4eVF5KVqS4gjKzsT1tZPXKNYFuHlXMj7K8BQB7BBgBi1cMnBJsnuNUfqI6VVY+ejrjrEkKPYFuHlT02AEAewbYOTvoD0WBlMhLrI9gAQHZuH8H6CDZPjE5wsz8ASAQbAMAzBBsAwCsEGwDAKwQbAMArBBsAwCsEGwDAKwQbAMArBJsn2hJPuy4BAEKBYPMEj4wHgDyCDQAk7eLWfG8QbOuw8mRdAEAewbYOK89o4ikEQDTwFIL1EWyeeDn5jOsSANOsDGCxirQ+gg0AJLU+zwCWLwi2dcykc65LKImVb5sAUGsE2zqsBBvfNoHK9RiZiByfZhmyFASbRzjLBvjNyjCbawRbCVKzNro2gg2oTE9Hk+sSECCCrQQz6b+6LqEk7LMBfvt66i+uSzCBYPMIHRtQGSu3jrAUWRqCrQQ3JuZdl1ASK29OIGysrHZYGWZzjWDziJU3JxA2VqaKrWyLuEawlWB0IuO6hJJYeXMCYWJl1F+iYysVwVYCS3ezWXqTAmHQlYy5LqFkBFtpCLYSWLqbzdKbFAiDl428ZzicXTqCrURWzrJZeZMCYWHlyyATkaUj2EpkZdOWg6ZA6eKxBnVushFsVqazw4BgK5GVg5Gtzzdyng0oUZehxz2xv1Y6gq1EVjo2yc7SCuCapRUOS59BrhFsJbI0QGLpzQq4ZOlSg1GWIktGsJXI0ovq1e5m1yUAoRePNWjnVhtfAq0Mr4UFwVYGKy8u9tmA9Vk682lpxSgMCLYyWHpx9dG1AWuytLLxtaHPnjAg2Mpww8jVWpK0i302YE2W9qKtXOsXFgRbGSx1bHu3Nysea3BdBhBKXcmYqbtV7xo5bhQWBFsZLA2QSLb2EIB6GuhNuC6hZOPTWW4dKRPBViZL97VZ2kMA6snSe8PSSlFYEGxlsnStTV83y5HActaWIS195oQFwVYmS5u4TRsbmI4ElrG0DCnZ+swJC4KtTNb22SwtuQD1YOk9kZrNcUdkBQi2Ms1nF03ts+3d3sxhbaCgr7vZ1DIk3VplCLYKWFvzZjkSyLPUrUn2PmvCgmCrwPDYd65LKMvBvhddlwA4F4816I3dtvbXhsfmXJdgEsFWAWv7bK3PN9K1IfIGel9wXUJZOL9WOYKtQldu2/om9aaxSTAgaNZWLliGrBzBVqEvjC0RMESCKBvoTZgaGpGkSyNp1yWYRbBVyOK00nv9ra5LAJx409gyZGZhkRtHqkCwVWgmnTM19i9xEwmiqacjbuaBokUMjVSHYKvCRWNLBU0bG3Sgr8V1GUBdWVypsLbVETYEWxUsfqs62NdC14bIsNitZRYWTX62hAnBVgWLy5F0bYgSi90aoVY9gq1K1pYjJbo2RIPFbk1iGTIIBFuVLH67omtDFFjs1liGDAbBVqWZdE4379kb/T/8eivn2uAtq93axZE/uy7BCwRbAKy+GC1+owVK8cHbSdclVIRD2cEg2AIwPDanzIK9O93e2J1QT0fcdRlAoAZ6E+rcFHNdRtnGp7Mcyg4IwRaA+azddXGr32yBlcRjDfrg7c2uy6iIxUG0sCLYAnJm+KHrEirSuSnGIAm8cbi/VU0bbU78XjK6pRFGBFtA7k5lzZ1pK3qvv5Xxf5jX0xHXgb02v6Rdvp7mETUBItgCZLVra9rYoFOHtrguA6iK5WV1liGDRbAFyOoQiZR/rA0PI4VVh/tbTQ6MSPmhEWsPLw47gi1A89lFs6P/knTq0BaWJGFOVzKmw6/bPbpidaUnzAi2gJ0d/tZ1CRVjSRIWWX7NZhYWObtWAwRbwGbSOV2+bveFypIkLLG8BCnRrdUKwVYD1jeCTx3awnVbCL2ejrjpJcjMwqLOEmw1QbDVwOjEvMn7I4uaNjbok3dfcl0GsKp4zP5rdHhsjhH/GiHYauT0UMp1CVXp3BTTMcPj0/DbJ+/+1OxB7CLrnxFhRrDViPWuTZIO7G1hvw2hc7i/1eTN/Utdvp7WTDrnugxvEWw1ZHn0v+jUoS3qStrdnIdf+rqbTe+rFdGt1RbBVkOXRtJKzdr+VlY8AsD5NrjWlYyZHu0volurPYKtxo58+ifXJVStc1NMn7z7U9dlIMLisfwXLOv7ahLdWj0QbDXmw16bJO3c2uTFt2XYdOFop+nzakV0a/VBsNWBL9/Q3tid4BE3qLtTh7Z4EWqZhUVvPgvCjmCrA1+6Nkk69oukBnoTrstARJw6tEVv7Pbj9XZm+CHdWp0QbHVy5NP7rksIzMmDWwg31NxAb8KbUOOWkfp6ynUBUVG8Q9KXN+oHb2/W3ams7k7ZfLjqcm99NO66BCwx0JvQyYP+7OmeHkpxy0gd0bHV0YnzD8w+r225po0NunC0kzNuCJxvoZaazdGt1RnBVkfz2UWvbvMm3BA030JN8uPIjzUEW50NDqXMH9peinBDUHwMtSu353g6tgMEmwO+fYMrhhv3SqJSPoZaZmFRJ85PuS4jkgg2B0Yn5k0/jHQlTRsb9Ltfv8S0JMp27O2kd6EmMd7vEsHmiE+DJEtxFADlOHVoiw7s9e/Q//h0VoMcxnaGYHNkPruoE+cfuC6jJk4e3ML1W1hT8UGhvhx/Wc6nc6sWEWwOXRpJe3MjyXJv7E7ok3df4qkA+JG2RKMuHO3U3u1+7smevfLQm/OdVhFsjh359L6XS5KStHd7sy4c7VRbotF1KQiJrmRMf/zwFS/uflxJajbHEmQIEGyOzaRzXl+M2rkp/0HW0xF3XQocG+hN6F9OvOLFo2dWc+TTP3HDSAgQbCFwdviht0uSUn5i8g+/6dDhfvtPPkb5is9S83HycanBz1OcWQsJgi0k3vn4X71dkiw6/HqrLhztZN8tQrqSMV042untkEgRU5DhQrCFxHx2MRKTVDu3Nun6yW0sTUbAgb4Wbx4QupbMQjTeu5Y0PLftneOui0Dev/3v/6v4Mw3a/h/+netSaqrx7zZooDeh+DMNuv1v/0e5//e965IQoHisQf/9v/xHHdjbosa/8/+78z9emtHw2JzrMvCDB/6/6owZHEppfDoao8IH9rYwWOKZvu5mXT+5zdtR/uWu3J7j5v4QIthCprgk6ft+W1Hr8436w286dOztJHtvhhUPXP/u1y95PfW4VGo2xxJkSBFsIXR3KuvtrSSrKXZvXKRsz4G+lkh1aVJ+X+2dj79htD+k2GMLqbtT2Ujsty0Vjz2l/7Tzee3qjGt0IsOHRsj1dMT1ybsvaWB3IhJ7aUv91/8xqWv/65HrMrCyBz/ZvO8mO/ch5vMtDesZ/Dyls8MPCbiQaUs06r3+Vu9H+Fdz+XqaJchwu0awhVw81qA/fviKWp+P5rVUmYVFnR5KsUEfAvFYgw70tejw69E9aD8+ndVrx75yXQbWRrBZUDzkGpVN+ZWkZvNXj10a8es5dhYUA+1gX0vkX4OvHfuKFYTwI9is8PEJw5Ug4OqHQPtBZmFRb300zq39NhBslhzoa9GxXyRdlxEKqdmcLo6k2YOrgbZEowZ6EwTaEr/67TccwraDYLPm1KEtkd20X0lmYVEXR/6ss8Pfaiadc12OaT0dcb3Zm+D1tcz7Z+6zQmALwWbRJ+++FKkzQ6W6eS+jiyN/5kOoDPFYg/q6m3WwryWy07drYQLSJILNonisIRKXy1aq2MVdGkmzJ7KKvu5mvdrdrL7uZpYbV0GomUWwWUW4lSY1m9OZ4W81OjEf+ZDrSsY00JvQq93NkT0+Uqort+f0zsffuC4DlSHYLIv6GbdypWZz+mJsTsNj30XmgZDFzqyno4nXSYnGp7N666NxhpLsItis44xbZTILixqdmNeNiYxX3VxXMqaejrhe7W7Wzq1Nrssxh1DzAsHmA8KtesWg+3oqq9FC2IVdPNagruQz6ulo0q6OuLqSMV4DVSDUvEGw+YJwC974dFYz6Zy+nsrq7lT+1646u56OuNoST6st0ahdhV+ztBgcQs0rBJtPCLf6yCwsPg64G4XObiad00z6r4//nfns39YNweUPWO1Kxh4/k25X4c9YTqw9Qs07BJtvCDegdISal65F6yFKEXB3Kv9GjcoTuIFKEWr+Itg8dHcqq93v39H4tB+TfkDQCDW/EWyems/mbyMn3IAnXb6e5vEzniPYPFYMt5v3Mq5LAUKBa7KigWDzXDHcLl/nYmBE24f/NEWoRQTBFhFHPr2vwc9TrssAnHj/zH2dHX7ougzUyVOuC0D9DA6lNJPO8SRuRAZPvo4mOraIuTSS1t9/8BXHAeC98emsXjv2FaEWQQRbBHEcAL67cntOb300zlPVI4pgiyiGSuCrwc9TeufjbxjnjzCCLcLms4s68ul9vX+GSTHYl1lY1H/+xwkNDjEkFXUEGx7vu6VmWbaBTTfvZbT7/TsmHjeE2iPYICm/7/basa905fac61KAsgx+nuJ6LDyBYMNj89lFvfPxN3r/zH2mJhF6qdkcS49YEcGGH7k0kr9Lj6lJhNWV23N67dhXLD1iRQQbVjSTzum1Y19xWwlCJbOwqF/99humHrEmgg1rGhxK6e8/oHuDe1duz2n3+3c0PMY+MNbGE7RRssP9rTrY18LTuVFXmYX8sRQCDSXiCdoo3eBQSq8d+4rH4KBuLl9P06WhbHRsqEhfd7NOHdpC94aaGJ/O6sT5KYZDUIlrBBsqFo816HB/qw7sbXFdCjyRWVjU6aEUj5hBNQg2VK8t0ahTh7Zo59Ym16XAsMvX0zpx/gHTjqgWwYbg9HTE9cHbSXVuirkuBYbcvJfRifMPeLwMgkKwIXgDvQm919+q1ucbXZeCELt5L6PTQyn20RA0gg21Q8BhJanZnE4PpXRphEcmoSYINtRWPNaggd4XdLDvRQIu4gg01AnBhvqhg4um8emszgw/JNBQLwQb6m+gN6GDfS0MmXiOPTQ4QrDBnZ6OuA72vai925tdl4IAXb6e1umhlGbSPLgWTlx7ynUFiK7RiXmNTsyrLdGoA30v6s3eF7jJxKjUbE4XR9I6O/yQc2hwjo4NoTLQm9CbvS9w2NuIK7fndHEkzV2OCBOWIhFOxS7u1e5mhk1CJjWb05nhbzU8NsdyI8KIYEP49XU369XuZvV1N7NU6UhqNqcvxuZ0aSTNDSEIO4INthBy9UOYwSiCDXb1dTerp6OJ5coAjU9ndWNinjCDZQQb/NCVjLvHWfcAAAT2SURBVKmnI65dHU0cHyhDZmFRoxPz+mJsTqMTGfbM4AOCDX7q6Yirp6NJuzriTFguUQyyGxMZjU7M05XBRwQboqHY0b2cjKmnoykyS5fj01ndncovL96dyhJkiAIOaCMaVvpQ7+mIqysZ08vJmNoSjaY7u8zCou5OZfX11F90dyqrmfRfucoKkUWwIbKKN58sFY81qCv5jNoST6st0aiXkzHFY0+pLfG08y4vNZvTTPqvmknnNJ3OaSadI8CAFRBswBLz2cU1g6IYfD/8+smLnHd1xCv4mX/T18u6ydGJzJJfE1xAOdhjAwD45NoG1xUAABAkgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4BWCDQDgFYINAOAVgg0A4JUNkh64LgIAgKBskDTpuggAAAIyyVIkAMAnk3RsAACvEGwAAJ9c3SDpjusqAAAIyHd0bAAAb0ye23Fnw+S5HXRsAAAffCn9cED7S4eFAAAQhDvSD8F21V0dAAAE4olgYzkSAGDdVYmODQDgh0fFmZENkjR5bsek2GcDANg1VPzF0iu1rta/DgAAAnG1+IulwfZZ3csAACAYP+7YCmuTPMIGAGDN55PndnxX/B/Lb/cfEgAAtjyRXcuDbbCOhQAAUK1HWivYCtOR1+pYEAAA1Rhaugwp/bhjkxgiAQDYcXz5b/zk+++//9G/1b7/1qSkzbWvBwCAil2bPLdjz/LfXKljk+jaAADhd3yl31wt2AaV35ADACCMrk2e23F1pT9YMdgKG3FMSAIAwur4an+w4h5bEXttAIAQWnFvrWi1pcii44GWAgBA9Q6v9YdrBtvkuR2fiXNtAIDw+G/Fx9OsZr2OTZL2BVMLAABVeaQSVhLXDbbCbSQnqq8HAICq7Ft+y8hK1hweWap9/607kn5WbVUAAFTg95Pnduwr5V8sZSmyaJ842wYAqL8HWmdgZKmSg62wWVfyXwwAQED6S1mCLCqnYytOSf6+3IoAAKjQ/vWmIJcreY9tKfbbAAB1UPK+2lJldWxL7JH0ZYX/LQAA67lWSahJFQZbYa1znxgmAQAE70tJ/ZX+x5V2bMVhkj0i3AAAwflS0p5yhkWWqzjYJMINABCoqkNNqjLYJMINABCIQEJNCiDYpCfCjYESAEC5Ags1qcJx/9W077/1nKSr4igAAKA0FY30ryWQjq2okLZ7xCFuAMD6TgQdalLAHdtS7ftvHZZ0uiZ/OQDAskfK39Q/VIu/vGbBJknt+29tk/SZWJoEAORdUz7UJmv1A2oabNLjfbfjkv6hpj8IABBmjyQdnzy3Y7DWP6jmwVbUvv/WHkmDonsDgKipeZe2VN2Crah9/63jyj/+5tm6/mAAQL09kHS4Vntpq6l7sEksTwKA5x4pv0I3GNTZtHI4Cbai9v232pUPuH7RwQGAdU4DrchpsBUVOrjDyj8xYLPbagAAZXqgfJMy5DLQikIRbEu177/Vr3zAve64FADA6h5JGpL02eS5HVcd1/KE0AVbUaGL6y/8Q8gBgHvFMLs6eW7HZ45rWVVog225Qie3R9I2ST93Ww0ARMY15e8Avhq2zmw1ZoJtucK5uPbCP3sKv03gAUBlrkn6TtIdSZOS7hSe3GKO2WBbS2EZc5vrOgAgzKx0YOX6/1JXX9L/hALPAAAAAElFTkSuQmCC",Be=n.p+"static/media/error.350880db318c397b6557.png";let Ue;var Fe=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),this.name="ChainNotConfiguredForConnectorError"}},ze=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function We(e){return"string"===typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"===typeof e?Number(e):e}var Ze=n(1060);function He(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{fees:n=e.fees,formatters:r=e.formatters,serializers:i=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:i}}const Ve=He({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),qe=He({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0});var Ge=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Ke=(e,t,n)=>(Ge(e,t,"read from private field"),n?n.call(e):t.get(e)),Ye=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qe=(e,t,n,r)=>(Ge(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Xe=(e,t,n)=>(Ge(e,t,"access private method"),n),Je=class extends Ze{constructor(e){let{chains:t=[Ve,qe],options:n}=e;super(),this.chains=t,this.options=n}getBlockExplorerUrls(e){var t;const{default:n,...r}=null!==(t=e.blockExplorers)&&void 0!==t?t:{};if(n)return[n.url,...Object.values(r).map((e=>e.url))]}isChainUnsupported(e){return!this.chains.some((t=>t.id===e))}setStorage(e){this.storage=e}},et=n(7044),tt=n(3232),nt=n(3125);class rt extends tt.G{constructor(e,t){let{code:n,docsPath:r,metaMessages:i,shortMessage:o}=t;super(o,{cause:e,docsPath:r,metaMessages:i||(null===e||void 0===e?void 0:e.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof nt.bs?e.code:null!==n&&void 0!==n?n:-1}}class it extends rt{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class ot extends rt{constructor(e){super(e,{code:ot.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(ot,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class at extends rt{constructor(e){super(e,{code:at.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(at,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class st extends rt{constructor(e){super(e,{code:st.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(st,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class lt extends rt{constructor(e){super(e,{code:lt.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(lt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class ct extends rt{constructor(e){super(e,{code:ct.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(ct,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class ut extends rt{constructor(e){super(e,{code:ut.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(ut,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class dt extends rt{constructor(e){super(e,{code:dt.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(dt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class ht extends rt{constructor(e){super(e,{code:ht.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(ht,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class pt extends rt{constructor(e){super(e,{code:pt.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(pt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class ft extends rt{constructor(e){super(e,{code:ft.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(ft,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class mt extends rt{constructor(e){super(e,{code:mt.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(mt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class gt extends rt{constructor(e){super(e,{code:gt.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(gt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class vt extends it{constructor(e){super(e,{code:vt.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(vt,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class yt extends it{constructor(e){super(e,{code:yt.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(yt,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class bt extends it{constructor(e){super(e,{code:bt.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(bt,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class wt extends it{constructor(e){super(e,{code:wt.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(wt,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class xt extends it{constructor(e){super(e,{code:xt.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(xt,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Ct extends it{constructor(e){super(e,{code:Ct.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(Ct,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Et extends rt{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}var St=n(2213);const kt=256;let _t,Pt=kt;function At(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!_t||Pt+e>2*kt){_t="",Pt=0;for(let e=0;e<kt;e++)_t+=(256+256*Math.random()|0).toString(16).substring(1)}return _t.substring(Pt,Pt+++e)}function Rt(e){var t;const{batch:n,cacheTime:r=(null!==(t=e.pollingInterval)&&void 0!==t?t:4e3),key:i="base",name:o="Base Client",pollingInterval:a=4e3,type:s="base"}=e,l=e.chain,c=e.account?(0,St.T)(e.account):void 0,{config:u,request:d,value:h}=e.transport({chain:l,pollingInterval:a}),p={account:c,batch:n,cacheTime:r,chain:l,key:i,name:o,pollingInterval:a,request:d,transport:{...u,...h},type:s,uid:At()};return Object.assign(p,{extend:function e(t){return n=>{const r=n(t);for(const e in p)delete r[e];const i={...t,...r};return Object.assign(i,{extend:e(i)})}}(p)})}var Ot=n(1951);async function Tt(e){const t=await e.request({method:"eth_chainId"});return(0,Ot.ly)(t)}var It=n(9485);var Nt=n(3440),$t=n(7783),Mt=n(6584);const jt="/docs/contract/encodeDeployData";function Lt(e){let{abi:t,args:n,bytecode:r}=e;if(!n||0===n.length)return r;const i=t.find((e=>"type"in e&&"constructor"===e.type));if(!i)throw new Nt.fM({docsPath:jt});if(!("inputs"in i))throw new Nt.cO({docsPath:jt});if(!i.inputs||0===i.inputs.length)throw new Nt.cO({docsPath:jt});const o=(0,Mt.E)(i.inputs,n);return(0,$t.SM)([r,o])}class Dt extends tt.G{constructor(){let{docsPath:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join("\n"),{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}var Bt=n(9866);function Ut(e){let{chain:t,currentChainId:n}=e;if(!t)throw new Bt.Bk;if(n!==t.id)throw new Bt.Yl({chain:t,currentChainId:n})}var Ft=n(7151),zt=n(5859),Wt=n(1419);var Zt=n(9961),Ht=n(1963);function Vt(e,t,n){return r=>{var i,o;return null!==(i=null===(o=e[t.name||n])||void 0===o?void 0:o.call(e,r))&&void 0!==i?i:t(e,r)}}var qt=n(7129),Gt=n(9870);class Kt extends tt.G{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class Yt extends tt.G{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class Qt extends tt.G{constructor(e){let{maxPriorityFeePerGas:t}=e;super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,Gt.o)(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class Xt extends tt.G{constructor(e){let{blockHash:t,blockNumber:n}=e,r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}const Jt={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function en(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,Ot.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,Ot.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Jt[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"===typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}function tn(e){var t;const n=null===(t=e.transactions)||void 0===t?void 0:t.map((e=>"string"===typeof e?e:en(e)));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function nn(e){var t,n,r;let{blockHash:i,blockNumber:o,blockTag:a,includeTransactions:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=null!==a&&void 0!==a?a:"latest",c=null!==s&&void 0!==s&&s,u=void 0!==o?(0,It.eC)(o):void 0;let d=null;if(d=i?await e.request({method:"eth_getBlockByHash",params:[i,c]}):await e.request({method:"eth_getBlockByNumber",params:[u||l,c]}),!d)throw new Xt({blockHash:i,blockNumber:o});return((null===(t=e.chain)||void 0===t||null===(n=t.formatters)||void 0===n||null===(r=n.block)||void 0===r?void 0:r.format)||tn)(d)}async function rn(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function on(e,t){var n,r,i;const{block:o,chain:a=e.chain,request:s}=t||{};if("function"===typeof(null===a||void 0===a||null===(n=a.fees)||void 0===n?void 0:n.defaultPriorityFee)){const t=o||await Vt(e,nn,"getBlock")({});return a.fees.defaultPriorityFee({block:t,client:e,request:s})}if("undefined"!==typeof(null===a||void 0===a||null===(r=a.fees)||void 0===r?void 0:r.defaultPriorityFee))return null===a||void 0===a||null===(i=a.fees)||void 0===i?void 0:i.defaultPriorityFee;try{const t=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,Ot.y_)(t)}catch{const[t,n]=await Promise.all([o?Promise.resolve(o):Vt(e,nn,"getBlock")({}),Vt(e,rn,"getGasPrice")({})]);if("bigint"!==typeof t.baseFeePerGas)throw new Yt;const r=n-t.baseFeePerGas;return r<0n?0n:r}}async function an(e,t){var n,r,i,o;const{block:a,chain:s=e.chain,request:l,type:c="eip1559"}=t||{},u=await(async()=>{var t,n,r;return"function"===typeof(null===s||void 0===s||null===(t=s.fees)||void 0===t?void 0:t.baseFeeMultiplier)?s.fees.baseFeeMultiplier({block:a,client:e,request:l}):null!==(n=null===s||void 0===s||null===(r=s.fees)||void 0===r?void 0:r.baseFeeMultiplier)&&void 0!==n?n:1.2})();if(u<1)throw new Kt;const d=10**(null!==(n=null===(r=u.toString().split(".")[1])||void 0===r?void 0:r.length)&&void 0!==n?n:0),h=e=>e*BigInt(Math.ceil(u*d))/BigInt(d),p=a||await Vt(e,nn,"getBlock")({});if("function"===typeof(null===s||void 0===s||null===(i=s.fees)||void 0===i?void 0:i.estimateFeesPerGas))return s.fees.estimateFeesPerGas({block:a,client:e,multiply:h,request:l,type:c});if("eip1559"===c){var f;if("bigint"!==typeof p.baseFeePerGas)throw new Yt;const t=null!==l&&void 0!==l&&l.maxPriorityFeePerGas?l.maxPriorityFeePerGas:await on(e,{block:p,chain:s,request:l}),n=h(p.baseFeePerGas);return{maxFeePerGas:null!==(f=null===l||void 0===l?void 0:l.maxFeePerGas)&&void 0!==f?f:n+t,maxPriorityFeePerGas:t}}return{gasPrice:null!==(o=null===l||void 0===l?void 0:l.gasPrice)&&void 0!==o?o:h(await Vt(e,rn,"getGasPrice")({}))}}var sn=n(2629);class ln extends tt.G{constructor(e,t){var n;let{account:r,docsPath:i,chain:o,data:a,gas:s,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:h,value:p}=t;const f=(0,zt.xr)({from:null===r||void 0===r?void 0:r.address,to:h,value:"undefined"!==typeof p&&`${(0,sn.d)(p)} ${(null===o||void 0===o||null===(n=o.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"}`,data:a,gas:s,gasPrice:"undefined"!==typeof l&&`${(0,Gt.o)(l)} gwei`,maxFeePerGas:"undefined"!==typeof c&&`${(0,Gt.o)(c)} gwei`,maxPriorityFeePerGas:"undefined"!==typeof u&&`${(0,Gt.o)(u)} gwei`,nonce:d});super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",f].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}async function cn(e,t){var n;const r=null!==(n=t.account)&&void 0!==n?n:e.account;if(!r)throw new Dt({docsPath:"/docs/actions/public/estimateGas"});const i=(0,St.T)(r);try{var o,a,s;const{accessList:n,blockNumber:r,blockTag:l,data:c,gas:u,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:p,nonce:f,to:m,value:g,...v}="local"===i.type?await dn(e,t):t,y=(r?(0,It.eC)(r):void 0)||l;(0,qt.F)(t);const b=null===(o=e.chain)||void 0===o||null===(a=o.formatters)||void 0===a||null===(s=a.transactionRequest)||void 0===s?void 0:s.format,w=(b||Ht.tG)({...(0,Zt.K)(v,{format:b}),from:i.address,accessList:n,data:c,gas:u,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:p,nonce:f,to:m,value:g}),x=await e.request({method:"eth_estimateGas",params:y?[w,y]:[w]});return BigInt(x)}catch(l){throw function(e,t){let{docsPath:n,...r}=t;const i=(()=>{const t=(0,Wt.k)(e,r);return t instanceof Ft.cj?e:t})();return new ln(i,{docsPath:n,...r})}(l,{...t,account:i,chain:e.chain})}}async function un(e,t){let{address:n,blockTag:r="latest",blockNumber:i}=t;const o=await e.request({method:"eth_getTransactionCount",params:[n,i?(0,It.eC)(i):r]});return(0,Ot.ly)(o)}async function dn(e,t){const{account:n=e.account,chain:r,gas:i,nonce:o,type:a}=t;if(!n)throw new Dt;const s=(0,St.T)(n),l=await Vt(e,nn,"getBlock")({blockTag:"latest"}),c={...t,from:s.address};if("undefined"===typeof o&&(c.nonce=await Vt(e,un,"getTransactionCount")({address:s.address,blockTag:"pending"})),"undefined"===typeof a)try{c.type=function(e){if(e.type)return e.type;if("undefined"!==typeof e.maxFeePerGas||"undefined"!==typeof e.maxPriorityFeePerGas)return"eip1559";if("undefined"!==typeof e.gasPrice)return"undefined"!==typeof e.accessList?"eip2930":"legacy";throw new zt.j3({transaction:e})}(c)}catch{c.type="bigint"===typeof l.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===c.type){const{maxFeePerGas:n,maxPriorityFeePerGas:i}=await an(e,{block:l,chain:r,request:c});if("undefined"===typeof t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<i)throw new Qt({maxPriorityFeePerGas:i});c.maxPriorityFeePerGas=i,c.maxFeePerGas=n}else{if("undefined"!==typeof t.maxFeePerGas||"undefined"!==typeof t.maxPriorityFeePerGas)throw new Yt;const{gasPrice:n}=await an(e,{block:l,chain:r,request:c,type:"legacy"});c.gasPrice=n}return"undefined"===typeof i&&(c.gas=await Vt(e,cn,"estimateGas")({...c,account:{address:s.address,type:"json-rpc"}})),(0,qt.F)(c),c}async function hn(e,t){let{serializedTransaction:n}=t;return e.request({method:"eth_sendRawTransaction",params:[n]})}async function pn(e,t){const{account:n=e.account,chain:r=e.chain,accessList:i,data:o,gas:a,gasPrice:s,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:u,to:d,value:h,...p}=t;if(!n)throw new Dt({docsPath:"/docs/actions/wallet/sendTransaction"});const f=(0,St.T)(n);try{var m,g,v;let n;if((0,qt.F)(t),null!==r&&(n=await Vt(e,Tt,"getChainId")({}),Ut({currentChainId:n,chain:r})),"local"===f.type){var y;const t=await Vt(e,dn,"prepareTransactionRequest")({account:f,accessList:i,chain:r,data:o,gas:a,gasPrice:s,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:u,to:d,value:h,...p});n||(n=await Vt(e,Tt,"getChainId")({}));const m=null===r||void 0===r||null===(y=r.serializers)||void 0===y?void 0:y.transaction,g=await f.signTransaction({...t,chainId:n},{serializer:m});return await Vt(e,hn,"sendRawTransaction")({serializedTransaction:g})}const b=null===(m=e.chain)||void 0===m||null===(g=m.formatters)||void 0===g||null===(v=g.transactionRequest)||void 0===v?void 0:v.format,w=(b||Ht.tG)({...(0,Zt.K)(p,{format:b}),accessList:i,data:o,from:f.address,gas:a,gasPrice:s,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:u,to:d,value:h});return await e.request({method:"eth_sendTransaction",params:[w]})}catch(b){throw function(e,t){let{docsPath:n,...r}=t;const i=(()=>{const t=(0,Wt.k)(e,r);return t instanceof Ft.cj?e:t})();return new zt.mk(i,{docsPath:n,...r})}(b,{...t,account:f,chain:t.chain||void 0})}}var fn=n(9796),mn=n(3691),gn=n(5718),vn=n(2731),yn=n(5308);const bn=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,wn=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function xn(e){let{domain:t,message:n,primaryType:r,types:i}=e;const o=i,a=(e,t)=>{for(const n of e){const{name:e,type:r}=n,i=r,s=t[e],l=i.match(wn);if(l&&("number"===typeof s||"bigint"===typeof s)){const[e,t,n]=l;(0,It.eC)(s,{signed:"int"===t,size:parseInt(n)/8})}if("address"===i&&"string"===typeof s&&!(0,vn.U)(s))throw new gn.b({address:s});const c=i.match(bn);if(c){const[e,t]=c;if(t&&(0,yn.d)(s)!==parseInt(t))throw new Nt.KY({expectedSize:parseInt(t),givenSize:(0,yn.d)(s)})}const u=o[i];u&&a(u,s)}};if(o.EIP712Domain&&t&&a(o.EIP712Domain,t),"EIP712Domain"!==r){const e=o[r];a(e,n)}}function Cn(e){let{domain:t}=e;return["string"===typeof(null===t||void 0===t?void 0:t.name)&&{name:"name",type:"string"},(null===t||void 0===t?void 0:t.version)&&{name:"version",type:"string"},"number"===typeof(null===t||void 0===t?void 0:t.chainId)&&{name:"chainId",type:"uint256"},(null===t||void 0===t?void 0:t.verifyingContract)&&{name:"verifyingContract",type:"address"},(null===t||void 0===t?void 0:t.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}var En=n(3954);function Sn(e){return{addChain:t=>async function(e,t){let{chain:n}=t;const{id:r,name:i,nativeCurrency:o,rpcUrls:a,blockExplorers:s}=n;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,It.eC)(r),chainName:i,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:s?Object.values(s).map((e=>{let{url:t}=e;return t})):void 0}]})}(e,t),deployContract:t=>function(e,t){let{abi:n,args:r,bytecode:i,...o}=t;return pn(e,{...o,data:Lt({abi:n,args:r,bytecode:i})})}(e,t),getAddresses:()=>async function(e){var t;return"local"===(null===(t=e.account)||void 0===t?void 0:t.type)?[e.account.address]:(await e.request({method:"eth_accounts"})).map((e=>(0,et.x)(e)))}(e),getChainId:()=>Tt(e),getPermissions:()=>async function(e){return await e.request({method:"wallet_getPermissions"})}(e),prepareTransactionRequest:t=>dn(e,t),requestAddresses:()=>async function(e){return(await e.request({method:"eth_requestAccounts"})).map((e=>(0,et.K)(e)))}(e),requestPermissions:t=>async function(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}(e,t),sendRawTransaction:t=>hn(e,t),sendTransaction:t=>pn(e,t),signMessage:t=>async function(e,t){let{account:n=e.account,message:r}=t;if(!n)throw new Dt({docsPath:"/docs/actions/wallet/signMessage"});const i=(0,St.T)(n);if("local"===i.type)return i.signMessage({message:r});const o="string"===typeof r?(0,It.$G)(r):r.raw instanceof Uint8Array?(0,It.NC)(r.raw):r.raw;return e.request({method:"personal_sign",params:[o,i.address]})}(e,t),signTransaction:t=>async function(e,t){var n,r,i,o;const{account:a=e.account,chain:s=e.chain,...l}=t;if(!a)throw new Dt({docsPath:"/docs/actions/wallet/signTransaction"});const c=(0,St.T)(a);(0,qt.F)({account:c,...t});const u=await Vt(e,Tt,"getChainId")({});null!==s&&Ut({currentChainId:u,chain:s});const d=(null===s||void 0===s?void 0:s.formatters)||(null===(n=e.chain)||void 0===n?void 0:n.formatters),h=(null===d||void 0===d||null===(r=d.transactionRequest)||void 0===r?void 0:r.format)||Ht.tG;return"local"===c.type?c.signTransaction({...l,chainId:u},{serializer:null===(i=e.chain)||void 0===i||null===(o=i.serializers)||void 0===o?void 0:o.transaction}):await e.request({method:"eth_signTransaction",params:[{...h(l),chainId:(0,It.eC)(u),from:c.address}]})}(e,t),signTypedData:t=>async function(e,t){let{account:n=e.account,domain:r,message:i,primaryType:o,types:a}=t;if(!n)throw new Dt({docsPath:"/docs/actions/wallet/signTypedData"});const s=(0,St.T)(n),l={EIP712Domain:Cn({domain:r}),...a};if(xn({domain:r,message:i,primaryType:o,types:l}),"local"===s.type)return s.signTypedData({domain:r,primaryType:o,types:l,message:i});const c=(0,mn.P)({domain:null!==r&&void 0!==r?r:{},primaryType:o,types:l,message:i},((e,t)=>(0,fn.v)(t)?t.toLowerCase():t));return e.request({method:"eth_signTypedData_v4",params:[s.address,c]})}(e,t),switchChain:t=>async function(e,t){let{id:n}=t;await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,It.eC)(n)}]})}(e,t),watchAsset:t=>async function(e,t){return await e.request({method:"wallet_watchAsset",params:t})}(e,t),writeContract:t=>async function(e,t){let{abi:n,address:r,args:i,dataSuffix:o,functionName:a,...s}=t;const l=(0,En.R)({abi:n,args:i,functionName:a});return await Vt(e,pn,"sendTransaction")({data:`${l}${o?o.replace("0x",""):""}`,to:r,...s})}(e,t)}}function kn(e){const{key:t="wallet",name:n="Wallet Client",transport:r}=e;return Rt({...e,key:t,name:n,transport:e=>r({...e,retryCount:0}),type:"walletClient"}).extend(Sn)}async function _n(e){return new Promise((t=>setTimeout(t,e)))}function Pn(e){let{delay:t=100,retryCount:n=2,shouldRetry:r=(()=>!0)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,o)=>{const a=async function(){let{count:s=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const t=await e();i(t)}catch(l){if(s<n&&await r({count:s,error:l}))return(async e=>{let{error:n}=e;const r="function"===typeof t?t({count:s,error:n}):t;r&&await _n(r),a({count:s+1})})({error:l});o(l)}};a()}))}const An=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:!!(e instanceof nt.Gg&&e.status)&&(403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status);function Rn(e){let{retryDelay:t=150,retryCount:n=3}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async r=>Pn((async()=>{try{return await e(r)}catch(t){const e=t;switch(e.code){case ot.code:throw new ot(e);case at.code:throw new at(e);case st.code:throw new st(e);case lt.code:throw new lt(e);case ct.code:throw new ct(e);case ut.code:throw new ut(e);case dt.code:throw new dt(e);case ht.code:throw new ht(e);case pt.code:throw new pt(e);case ft.code:throw new ft(e);case mt.code:throw new mt(e);case gt.code:throw new gt(e);case vt.code:throw new vt(e);case yt.code:throw new yt(e);case bt.code:throw new bt(e);case wt.code:throw new wt(e);case xt.code:throw new xt(e);case Ct.code:throw new Ct(e);case 5e3:throw new vt(e);default:if(t instanceof tt.G)throw t;throw new Et(e)}}}),{delay:e=>{let{count:n,error:r}=e;if(r&&r instanceof nt.Gg){var i;const e=null===r||void 0===r||null===(i=r.headers)||void 0===i?void 0:i.get("Retry-After");if(null!==e&&void 0!==e&&e.match(/\d/))return 1e3*parseInt(e)}return~~(1<<n)*t},retryCount:n,shouldRetry:e=>{let{error:t}=e;return!An(t)}})}function On(e,t){let{key:n,name:r,request:i,retryCount:o=3,retryDelay:a=150,timeout:s,type:l}=e;return{config:{key:n,name:r,request:i,retryCount:o,retryDelay:a,timeout:s,type:l},request:Rn(i,{retryCount:o,retryDelay:a}),value:t}}function Tn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{key:n="custom",name:r="Custom Provider",retryDelay:i}=t;return o=>{var a;let{retryCount:s}=o;return On({key:n,name:r,request:e.request.bind(e),retryCount:null!==(a=t.retryCount)&&void 0!==a?a:s,retryDelay:i,type:"custom"})}}var In,Nn=class extends Je{constructor(){let{chains:e,options:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={shimDisconnect:!0,getProvider(){if("undefined"===typeof window)return;const e=window.ethereum;return null!==e&&void 0!==e&&e.providers&&e.providers.length>0?e.providers[0]:e},...t};super({chains:e,options:n}),this.id="injected",Ye(this,In,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,et.K)(e[0])})},this.onChainChanged=e=>{const t=We(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=async e=>{var t;if(1013===e.code){if(await this.getProvider()){if(await this.getAccount())return}}this.emit("disconnect"),this.options.shimDisconnect&&(null===(t=this.storage)||void 0===t||t.removeItem(this.shimDisconnectKey))};const r=n.getProvider();if("string"===typeof n.name)this.name=n.name;else if(r){const e=function(e){var t,n;if(!e)return"Injected";const r=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOktoWallet?"Okto Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOneKey?"OneKey Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isSafePal?"SafePal Wallet":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0;if(null!==(t=e.providers)&&void 0!==t&&t.length){var i;const t=new Set;let n=1;for(const i of e.providers){let e=r(i);e||(e=`Unknown Wallet #${n}`,n+=1),t.add(e)}const o=[...t];return o.length?o:null!==(i=o[0])&&void 0!==i?i:"Injected"}return null!==(n=r(e))&&void 0!==n?n:"Injected"}(r);n.name?this.name=n.name(e):this.name="string"===typeof e?e:e[0]}else this.name="Injected";this.ready=!!r}async connect(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var t;const n=await this.getProvider();if(!n)throw new ze;n.on&&(n.on("accountsChanged",this.onAccountsChanged),n.on("chainChanged",this.onChainChanged),n.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const r=await n.request({method:"eth_requestAccounts"}),i=(0,et.K)(r[0]);let o=await this.getChainId(),a=this.isChainUnsupported(o);if(e&&o!==e){o=(await this.switchChain(e)).id,a=this.isChainUnsupported(o)}return this.options.shimDisconnect&&(null===(t=this.storage)||void 0===t||t.setItem(this.shimDisconnectKey,!0)),{account:i,chain:{id:o,unsupported:a}}}catch(n){if(this.isUserRejectedRequestError(n))throw new vt(n);if(-32002===n.code)throw new ht(n);throw n}}async disconnect(){var e;const t=await this.getProvider();null!==t&&void 0!==t&&t.removeListener&&(t.removeListener("accountsChanged",this.onAccountsChanged),t.removeListener("chainChanged",this.onChainChanged),t.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&(null===(e=this.storage)||void 0===e||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const e=await this.getProvider();if(!e)throw new ze;const t=await e.request({method:"eth_accounts"});return(0,et.K)(t[0])}async getChainId(){const e=await this.getProvider();if(!e)throw new ze;return e.request({method:"eth_chainId"}).then(We)}async getProvider(){const e=this.options.getProvider();return e&&Qe(this,In,e),Ke(this,In)}async getWalletClient(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find((t=>t.id===e));if(!t)throw new Error("provider is required.");return kn({account:n,chain:r,transport:Tn(t)})}async isAuthorized(){try{var e;if(this.options.shimDisconnect&&(null===(e=this.storage)||void 0===e||!e.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new ze;return!!await this.getAccount()}catch{return!1}}async switchChain(e){const t=await this.getProvider();if(!t)throw new ze;const n=(0,It.eC)(e);try{var r;return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise((t=>this.on("change",(n=>{let{chain:r}=n;(null===r||void 0===r?void 0:r.id)===e&&t()}))))]),null!==(r=this.chains.find((t=>t.id===e)))&&void 0!==r?r:{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(l){var i,o;const r=this.chains.find((t=>t.id===e));if(!r)throw new Fe({chainId:e,connectorId:this.id});if(4902===l.code||4902===(null===l||void 0===l||null===(i=l.data)||void 0===i||null===(o=i.originalError)||void 0===o?void 0:o.code))try{var a,s;await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:r.name,nativeCurrency:r.nativeCurrency,rpcUrls:[null!==(a=null===(s=r.rpcUrls.public)||void 0===s?void 0:s.http[0])&&void 0!==a?a:""],blockExplorerUrls:this.getBlockExplorerUrls(r)}]});if(await this.getChainId()!==e)throw new vt(new Error("User rejected switch after adding network."));return r}catch(c){throw new vt(c)}if(this.isUserRejectedRequestError(l))throw new vt(l);throw new Ct(l)}}async watchAsset(e){let{address:t,decimals:n=18,image:r,symbol:i}=e;const o=await this.getProvider();if(!o)throw new ze;return o.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:r,symbol:i}}})}isUserRejectedRequestError(e){return 4001===e.code}};In=new WeakMap;var $n=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Mn=(e,t,n)=>($n(e,t,"read from private field"),n?n.call(e):t.get(e)),jn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ln=(e,t,n,r)=>($n(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Dn=n(1616),Bn=n(7367),Un=n(3162),Fn=n(9134),zn=n(507),Wn=n(4743);function Zn(e,t){var n,r,i;if(!(e instanceof tt.G))return!1;const o=e.walk((e=>e instanceof Wn.Lu));return o instanceof Wn.Lu&&("ResolverNotFound"===(null===(n=o.data)||void 0===n?void 0:n.errorName)||("ResolverWildcardNotSupported"===(null===(r=o.data)||void 0===r?void 0:r.errorName)||(!(null===(i=o.reason)||void 0===i||!i.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&o.reason===zn.$[50])))}var Hn=n(8883),Vn=n(6294);function qn(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return(0,fn.v)(t)?t:null}function Gn(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,It.ci)(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const e=qn(n[r]),i=e?(0,Hn.O0)(e):(0,Vn.w)((0,Hn.qX)(n[r]),"bytes");t=(0,Vn.w)((0,$t.zo)([t,i]),"bytes")}return(0,It.ci)(t)}function Kn(e){const t=new Uint8Array(32).fill(0);return e?qn(e)||(0,Vn.w)((0,Hn.qX)(e)):(0,It.ci)(t)}function Yn(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);const n=new Uint8Array((0,Hn.qX)(t).byteLength+2);let r=0;const i=t.split(".");for(let o=0;o<i.length;o++){let e=(0,Hn.qX)(i[o]);e.byteLength>255&&(e=(0,Hn.qX)(`[${Kn(i[o]).slice(2)}]`)),n[r]=e.length,n.set(e,r+1),r+=e.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}const Qn=3;function Xn(e,t){let{abi:n,address:r,args:i,docsPath:o,functionName:a,sender:s}=t;const{code:l,data:c,message:u,shortMessage:d}=e instanceof Wn.VQ?e:e instanceof tt.G?e.walk((e=>"data"in e))||e.walk():{},h=e instanceof Nt.wb?new Wn.Dk({functionName:a}):[Qn,ct.code].includes(l)&&(c||u||d)?new Wn.Lu({abi:n,data:"object"===typeof c?c.data:c,functionName:a,message:null!==d&&void 0!==d?d:u}):e;return new Wn.uq(h,{abi:n,args:i,contractAddress:r,docsPath:o,functionName:a,sender:s})}var Jn=n(8287);async function er(e,t){let{abi:n,address:r,args:i,functionName:o,...a}=t;const s=(0,En.R)({abi:n,args:i,functionName:o});try{const{data:t}=await Vt(e,Jn.R,"call")({data:s,to:r,...a});return(0,Bn.k)({abi:n,args:i,functionName:o,data:t||"0x"})}catch(l){throw Xn(l,{abi:n,address:r,args:i,docsPath:"/docs/contract/readContract",functionName:o})}}var tr=n(4414);class nr extends tt.G{constructor(e){let{data:t}=e;super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class rr extends tt.G{constructor(e){let{reason:t}=e;super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class ir extends tt.G{constructor(e){let{uri:t}=e;super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class or extends tt.G{constructor(e){let{namespace:t}=e;super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const ar=(0,tr.Z)(/(https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(\/)?(ipfs\/|ipns\/)?([\w\-.]+)(\/.*)?/,{protocol:1,root:2,subpath:3,target:4,subtarget:5}),sr=(0,tr.Z)(/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/([\w\-.]+))?(\/.*)?$/,{target:3,subtarget:4}),lr=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,cr=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function ur(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function dr(e){let{uri:t,gatewayUrls:n}=e;const r=lr.test(t);if(r)return{uri:t,isOnChain:!0,isEncoded:r};const i=ur(null===n||void 0===n?void 0:n.ipfs,"https://ipfs.io"),o=ur(null===n||void 0===n?void 0:n.arweave,"https://arweave.net"),a=t.match(ar),{protocol:s,subpath:l,target:c,subtarget:u=""}=(null===a||void 0===a?void 0:a.groups)||{},d="ipns:/"===s||"ipns/"===l,h="ipfs:/"===s||"ipfs/"===l||sr.test(t);if(t.startsWith("http")&&!d&&!h){let e=t;return null!==n&&void 0!==n&&n.arweave&&(e=t.replace(/https:\/\/arweave.net/g,null===n||void 0===n?void 0:n.arweave)),{uri:e,isOnChain:!1,isEncoded:!1}}if((d||h)&&c)return{uri:`${i}/${d?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&c)return{uri:`${o}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let p=t.replace(cr,"");if(p.startsWith("<svg")&&(p=`data:image/svg+xml;base64,${btoa(p)}`),p.startsWith("data:")||p.startsWith("{"))return{uri:p,isOnChain:!0,isEncoded:!1};throw new ir({uri:t})}function hr(e){if("object"!==typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new nr({data:e});return e.image||e.image_url||e.image_data}async function pr(e){let{gatewayUrls:t,uri:n}=e;const{uri:r,isOnChain:i}=dr({uri:n,gatewayUrls:t});if(i)return r;const o=await async function(e){try{const t=await fetch(e,{method:"HEAD"});if(200===t.status){const e=t.headers.get("content-type");return null===e||void 0===e?void 0:e.startsWith("image/")}return!1}catch(t){return("object"!==typeof t||"undefined"===typeof t.response)&&!!globalThis.hasOwnProperty("Image")&&new Promise((t=>{const n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e}))}}(r);if(o)return r;throw new ir({uri:n})}async function fr(e,t){let{gatewayUrls:n,record:r}=t;return/eip155:/i.test(r)?async function(e,t){let{gatewayUrls:n,record:r}=t;const i=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,i]=t.split("/"),[o,a]=n.split(":"),[s,l]=r.split(":");if(!o||"eip155"!==o.toLowerCase())throw new rr({reason:"Only EIP-155 supported"});if(!a)throw new rr({reason:"Chain ID not found"});if(!l)throw new rr({reason:"Contract address not found"});if(!i)throw new rr({reason:"Token ID not found"});if(!s)throw new rr({reason:"ERC namespace not found"});return{chainID:parseInt(a),namespace:s.toLowerCase(),contractAddress:l,tokenID:i}}(r),o=await async function(e,t){let{nft:n}=t;if("erc721"===n.namespace)return er(e,{address:n.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(n.tokenID)]});if("erc1155"===n.namespace)return er(e,{address:n.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(n.tokenID)]});throw new or({namespace:n.namespace})}(e,{nft:i}),{uri:a,isOnChain:s,isEncoded:l}=dr({uri:o,gatewayUrls:n});if(s&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const e=l?atob(a.replace("data:application/json;base64,","")):a;return pr({uri:hr(JSON.parse(e)),gatewayUrls:n})}let c=i.tokenID;"erc1155"===i.namespace&&(c=c.replace("0x","").padStart(64,"0"));return async function(e){let{gatewayUrls:t,uri:n}=e;try{const e=await fetch(n).then((e=>e.json()));return await pr({gatewayUrls:t,uri:hr(e)})}catch{throw new ir({uri:n})}}({gatewayUrls:n,uri:a.replace(/(?:0x)?{id}/,c)})}(e,{gatewayUrls:n,record:r}):pr({uri:r,gatewayUrls:n})}async function mr(e,t){let{blockNumber:n,blockTag:r,name:i,key:o,universalResolverAddress:a}=t,s=a;if(!s){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,Un.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}try{const t=await Vt(e,er,"readContract")({address:s,abi:Dn.k3,functionName:"resolve",args:[(0,It.NC)(Yn(i)),(0,En.R)({abi:Dn.nZ,functionName:"text",args:[Gn(i),o]})],blockNumber:n,blockTag:r});if("0x"===t[0])return null;const a=(0,Bn.k)({abi:Dn.nZ,functionName:"text",data:t[0]});return""===a?null:a}catch(l){if(Zn(l,"resolve"))return null;throw l}}function gr(e,t){var n,r;let{method:i}=t;const o={};return"fallback"===e.transport.type&&(null===(n=(r=e.transport).onResponse)||void 0===n||n.call(r,(e=>{let{method:t,response:n,status:r,transport:a}=e;"success"===r&&i===t&&(o[n]=a.request)}))),t=>o[t]||e.request}class vr extends tt.G{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var yr=n(5549),br=n(598),wr=n(5118);function xr(e){let{abi:t,eventName:n,args:r}=e,i=t[0];if(n&&(i=(0,wr.mE)({abi:t,args:r,name:n}),!i))throw new Nt.mv(n,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==i.type)throw new Nt.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const o=(0,br.t)(i),a=(0,yr.e)(o);let s=[];if(r&&"inputs"in i){var l,c;const e=null===(l=i.inputs)||void 0===l?void 0:l.filter((e=>"indexed"in e&&e.indexed)),t=Array.isArray(r)?r:Object.values(r).length>0&&null!==(c=null===e||void 0===e?void 0:e.map((e=>r[e.name])))&&void 0!==c?c:[];var u;if(t.length>0)s=null!==(u=null===e||void 0===e?void 0:e.map(((e,n)=>Array.isArray(t[n])?t[n].map(((r,i)=>Cr({param:e,value:t[n][i]}))):t[n]?Cr({param:e,value:t[n]}):null)))&&void 0!==u?u:[]}return[a,...s]}function Cr(e){let{param:t,value:n}=e;if("string"===t.type||"bytes"===t.type)return(0,Vn.w)((0,Hn.O0)(n));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new vr(t.type);return(0,Mt.E)([t],[n])}async function Er(e,t){let{address:n,abi:r,args:i,eventName:o,fromBlock:a,strict:s,toBlock:l}=t;const c=gr(e,{method:"eth_newFilter"}),u=o?xr({abi:r,args:i,eventName:o}):void 0,d=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"===typeof a?(0,It.eC)(a):a,toBlock:"bigint"===typeof l?(0,It.eC)(l):l,topics:u}]});return{abi:r,args:i,eventName:o,id:d,request:c(d),strict:s,type:"event"}}async function Sr(e){let{address:t,args:n,event:r,events:i,fromBlock:o,strict:a,toBlock:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=null!==i&&void 0!==i?i:r?[r]:void 0,c=gr(e,{method:"eth_newFilter"});let u=[];l&&(u=[l.flatMap((e=>xr({abi:[e],eventName:e.name,args:n})))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"===typeof o?(0,It.eC)(o):o,toBlock:"bigint"===typeof s?(0,It.eC)(s):s,...u.length?{topics:u}:{}}]});return{abi:l,args:n,eventName:r?r.name:void 0,fromBlock:o,id:d,request:c(d),strict:a,toBlock:s,type:"event"}}async function kr(e){const t=gr(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}const _r=new Map,Pr=new Map;async function Ar(e,t){let{cacheKey:n,cacheTime:r=1/0}=t;const i=function(e){const t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,_r),r=t(e,Pr);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(n),o=i.response.get();if(o&&r>0){if((new Date).getTime()-o.created.getTime()<r)return o.data}let a=i.promise.get();a||(a=e(),i.promise.set(a));try{const e=await a;return i.response.set({created:new Date,data:e}),e}finally{i.promise.clear()}}const Rr=e=>`blockNumber.${e}`;async function Or(e){let{cacheTime:t=e.cacheTime,maxAge:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=await Ar((()=>e.request({method:"eth_blockNumber"})),{cacheKey:Rr(e.uid),cacheTime:null!==n&&void 0!==n?n:t});return BigInt(r)}var Tr=n(5566);const Ir="/docs/contract/decodeEventLog";function Nr(e){let{abi:t,data:n,strict:r,topics:i}=e;const o=null===r||void 0===r||r,[a,...s]=i;if(!a)throw new Nt.FM({docsPath:Ir});const l=t.find((e=>"event"===e.type&&a===(0,yr.e)((0,br.t)(e))));if(!l||!("name"in l)||"event"!==l.type)throw new Nt.lC(a,{docsPath:Ir});const{name:c,inputs:u}=l,d=null===u||void 0===u?void 0:u.some((e=>!("name"in e&&e.name)));let h=d?[]:{};const p=u.filter((e=>"indexed"in e&&e.indexed));for(let g=0;g<p.length;g++){const e=p[g],t=s[g];if(!t)throw new Nt.Gy({abiItem:l,param:e});h[e.name||g]=$r({param:e,value:t})}const f=u.filter((e=>!("indexed"in e&&e.indexed)));if(f.length>0)if(n&&"0x"!==n)try{const e=(0,Tr.r)(f,n);if(e)if(d)h=[...h,...e];else for(let t=0;t<f.length;t++)h[f[t].name]=e[t]}catch(m){if(o){if(m instanceof Nt.xB)throw new Nt.SM({abiItem:l,data:m.data,params:m.params,size:m.size});throw m}}else if(o)throw new Nt.SM({abiItem:l,data:"0x",params:f,size:0});return{eventName:c,args:Object.values(h).length>0?h:void 0}}function $r(e){let{param:t,value:n}=e;if("string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))return n;return((0,Tr.r)([t],n)||[])[0]}function Mr(e){let{args:t,eventName:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}async function jr(e){let{address:t,blockHash:n,fromBlock:r,toBlock:i,event:o,events:a,args:s,strict:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=null!==l&&void 0!==l&&l,u=null!==a&&void 0!==a?a:o?[o]:void 0;let d,h=[];return u&&(h=[u.flatMap((e=>xr({abi:[e],eventName:e.name,args:s})))],o&&(h=h[0])),d=n?await e.request({method:"eth_getLogs",params:[{address:t,topics:h,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:h,fromBlock:"bigint"===typeof r?(0,It.eC)(r):r,toBlock:"bigint"===typeof i?(0,It.eC)(i):i}]}),d.map((e=>{try{const{eventName:t,args:n}=u?Nr({abi:u,data:e.data,topics:e.topics,strict:c}):{eventName:void 0,args:void 0};return Mr(e,{args:n,eventName:t})}catch(n){let r,i;if(n instanceof Nt.SM||n instanceof Nt.Gy){var t;if(c)return;r=n.abiItem.name,i=null===(t=n.abiItem.inputs)||void 0===t?void 0:t.some((e=>!("name"in e&&e.name)))}return Mr(e,{args:i?[]:{},eventName:r})}})).filter(Boolean)}async function Lr(e,t){let{abi:n,address:r,args:i,blockHash:o,eventName:a,fromBlock:s,toBlock:l,strict:c}=t;const u=a?(0,wr.mE)({abi:n,name:a}):void 0,d=u?void 0:n.filter((e=>"event"===e.type));return Vt(e,jr,"getLogs")({address:r,args:i,blockHash:o,event:u,events:d,fromBlock:s,toBlock:l,strict:c})}async function Dr(e,t){let{blockCount:n,blockNumber:r,blockTag:i="latest",rewardPercentiles:o}=t;const a=r?(0,It.eC)(r):void 0;return function(e){var t;return{baseFeePerGas:e.baseFeePerGas.map((e=>BigInt(e))),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:null===(t=e.reward)||void 0===t?void 0:t.map((e=>e.map((e=>BigInt(e)))))}}(await e.request({method:"eth_feeHistory",params:[(0,It.eC)(n),a||i,o]}))}async function Br(e,t){let{filter:n}=t;const r="strict"in n&&n.strict;return(await n.request({method:"eth_getFilterChanges",params:[n.id]})).map((e=>{if("string"===typeof e)return e;try{const{eventName:t,args:i}="abi"in n&&n.abi?Nr({abi:n.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return Mr(e,{args:i,eventName:t})}catch(i){let r,o;if(i instanceof Nt.SM||i instanceof Nt.Gy){var t;if("strict"in n&&n.strict)return;r=i.abiItem.name,o=null===(t=i.abiItem.inputs)||void 0===t?void 0:t.some((e=>!("name"in e&&e.name)))}return Mr(e,{args:o?[]:{},eventName:r})}})).filter(Boolean)}async function Ur(e,t){let{address:n,blockNumber:r,blockTag:i,storageKeys:o}=t;const a=null!==i&&void 0!==i?i:"latest",s=void 0!==r?(0,It.eC)(r):void 0;return function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,Ot.ly)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map((e=>({...e,value:BigInt(e.value)})))):void 0};var t}(await e.request({method:"eth_getProof",params:[n,o,s||a]}))}async function Fr(e,t){var n,r,i;let{blockHash:o,blockNumber:a,blockTag:s,hash:l,index:c}=t;const u=s||"latest",d=void 0!==a?(0,It.eC)(a):void 0;let h=null;if(l?h=await e.request({method:"eth_getTransactionByHash",params:[l]}):o?h=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[o,(0,It.eC)(c)]}):(d||u)&&(h=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[d||u,(0,It.eC)(c)]})),!h)throw new zt.Bh({blockHash:o,blockNumber:a,blockTag:u,hash:l,index:c});return((null===(n=e.chain)||void 0===n||null===(r=n.formatters)||void 0===r||null===(i=r.transaction)||void 0===i?void 0:i.format)||en)(h)}const zr={"0x0":"reverted","0x1":"success"};function Wr(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map((e=>Mr(e))):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,Ot.ly)(e.transactionIndex):null,status:e.status?zr[e.status]:null,type:e.type?Jt[e.type]||e.type:null}}async function Zr(e,t){var n,r,i;let{hash:o}=t;const a=await e.request({method:"eth_getTransactionReceipt",params:[o]});if(!a)throw new zt.Yb({hash:o});return((null===(n=e.chain)||void 0===n||null===(r=n.formatters)||void 0===r||null===(i=r.transactionReceipt)||void 0===i?void 0:i.format)||Wr)(a)}async function Hr(e,t){let{filter:n}=t;return n.request({method:"eth_uninstallFilter",params:[n.id]})}const Vr="\x19Ethereum Signed Message:\n";const qr="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";BigInt(0),BigInt(1),BigInt(2);async function Gr(e,t){let{address:n,hash:r,signature:i,...o}=t;const a=(0,fn.v)(i)?i:(0,It.NC)(i);try{const{data:t}=await Vt(e,Jn.R,"call")({data:Lt({abi:Dn.$o,args:[n,r,a],bytecode:qr}),...o});return s=null!==t&&void 0!==t?t:"0x0",l="0x1",function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}((0,fn.v)(s)?(0,Hn.O0)(s):s,(0,fn.v)(l)?(0,Hn.O0)(l):l)}catch(c){if(c instanceof Wn.cg)return!1;throw c}var s,l}async function Kr(e,t){let{address:n,message:r,signature:i,...o}=t;const a=function(e,t){const n="string"===typeof e?(0,Hn.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,Hn.O0)(e.raw),r=(0,Hn.qX)(`${Vr}${n.length}`);return(0,Vn.w)((0,$t.zo)([r,n]),t)}(r);return Gr(e,{address:n,hash:a,signature:i,...o})}function Yr(e){let{domain:t,message:n,primaryType:r,types:i}=e;const o="undefined"===typeof t?{}:t,a={EIP712Domain:Cn({domain:o}),...i};xn({domain:o,message:n,primaryType:r,types:a});const s=["0x1901"];return o&&s.push(function(e){let{domain:t,types:n}=e;return Qr({data:t,primaryType:"EIP712Domain",types:n})}({domain:o,types:a})),"EIP712Domain"!==r&&s.push(Qr({data:n,primaryType:r,types:a})),(0,Vn.w)((0,$t.zo)(s))}function Qr(e){let{data:t,primaryType:n,types:r}=e;const i=Xr({data:t,primaryType:n,types:r});return(0,Vn.w)(i)}function Xr(e){let{data:t,primaryType:n,types:r}=e;const i=[{type:"bytes32"}],o=[Jr({primaryType:n,types:r})];for(const a of r[n]){const[e,n]=ti({types:r,name:a.name,type:a.type,value:t[a.name]});i.push(e),o.push(n)}return(0,Mt.E)(i,o)}function Jr(e){let{primaryType:t,types:n}=e;const r=(0,It.NC)(function(e){let{primaryType:t,types:n}=e,r="";const i=ei({primaryType:t,types:n});i.delete(t);const o=[t,...Array.from(i).sort()];for(const a of o)r+=`${a}(${n[a].map((e=>{let{name:t,type:n}=e;return`${n} ${t}`})).join(",")})`;return r}({primaryType:t,types:n}));return(0,Vn.w)(r)}function ei(e){let{primaryType:t,types:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;const i=t.match(/^\w*/u),o=null===i||void 0===i?void 0:i[0];if(r.has(o)||void 0===n[o])return r;r.add(o);for(const a of n[o])ei({primaryType:a.type,types:n},r);return r}function ti(e){let{types:t,name:n,type:r,value:i}=e;if(void 0!==t[r])return[{type:"bytes32"},(0,Vn.w)(Xr({data:i,primaryType:r,types:t}))];if("bytes"===r){return i=`0x${(i.length%2?"0":"")+i.slice(2)}`,[{type:"bytes32"},(0,Vn.w)(i)]}if("string"===r)return[{type:"bytes32"},(0,Vn.w)((0,It.NC)(i))];if(r.lastIndexOf("]")===r.length-1){const e=r.slice(0,r.lastIndexOf("[")),o=i.map((r=>ti({name:n,type:e,types:t,value:r})));return[{type:"bytes32"},(0,Vn.w)((0,Mt.E)(o.map((e=>{let[t]=e;return t})),o.map((e=>{let[,t]=e;return t}))))]}return[{type:r},i]}const ni=new Map,ri=new Map;let ii=0;function oi(e,t,n){const r=++ii,i=()=>ni.get(e)||[],o=()=>{const t=ri.get(e);1===i().length&&t&&t(),(()=>{const t=i();ni.set(e,t.filter((e=>e.id!==r)))})()},a=i();if(ni.set(e,[...a,{id:r,fns:t}]),a&&a.length>0)return o;const s={};for(const c in t)s[c]=function(){const e=i();if(0!==e.length){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const t of e){var o,a;null===(o=(a=t.fns)[c])||void 0===o||o.call(a,...n)}}};const l=n(s);return"function"===typeof l&&ri.set(e,l),o}function ai(e,t){let{emitOnBegin:n,initialWaitTime:r,interval:i}=t,o=!0;const a=()=>o=!1;return(async()=>{var t;let s;n&&(s=await e({unpoll:a}));const l=null!==(t=await(null===r||void 0===r?void 0:r(s)))&&void 0!==t?t:i;await _n(l);const c=async()=>{o&&(await e({unpoll:a}),await _n(i),c())};c()})(),a}function si(e,t){let{emitOnBegin:n=!1,emitMissed:r=!1,onBlockNumber:i,onError:o,poll:a,pollingInterval:s=e.pollingInterval}=t;let l;return("undefined"!==typeof a?a:"webSocket"!==e.transport.type)?oi((0,mn.P)(["watchBlockNumber",e.uid,n,r,s]),{onBlockNumber:i,onError:o},(t=>ai((async()=>{try{const n=await Vt(e,Or,"getBlockNumber")({cacheTime:0});if(l){if(n===l)return;if(n-l>1&&r)for(let e=l+1n;e<n;e++)t.onBlockNumber(e,l),l=e}(!l||n>l)&&(t.onBlockNumber(n,l),l=n)}catch(i){var n;null===(n=t.onError)||void 0===n||n.call(t,i)}}),{emitOnBegin:n,interval:s}))):(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const{unsubscribe:r}=await e.transport.subscribe({params:["newHeads"],onData(e){var n;if(!t)return;const r=(0,Ot.y_)(null===(n=e.result)||void 0===n?void 0:n.number);i(r,l),l=r},onError(e){null===o||void 0===o||o(e)}});n=r,t||n()}catch(r){null===o||void 0===o||o(r)}})(),n})()}function li(e){return{call:t=>(0,Jn.R)(e,t),createBlockFilter:()=>async function(e){const t=gr(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}(e),createContractEventFilter:t=>Er(e,t),createEventFilter:t=>Sr(e,t),createPendingTransactionFilter:()=>kr(e),estimateContractGas:t=>async function(e,t){let{abi:n,address:r,args:i,functionName:o,...a}=t;const s=(0,En.R)({abi:n,args:i,functionName:o});try{return await Vt(e,cn,"estimateGas")({data:s,to:r,...a})}catch(l){const e=a.account?(0,St.T)(a.account):void 0;throw Xn(l,{abi:n,address:r,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:null===e||void 0===e?void 0:e.address})}}(e,t),estimateGas:t=>cn(e,t),getBalance:t=>async function(e,t){let{address:n,blockNumber:r,blockTag:i="latest"}=t;const o=r?(0,It.eC)(r):void 0,a=await e.request({method:"eth_getBalance",params:[n,o||i]});return BigInt(a)}(e,t),getBlock:t=>nn(e,t),getBlockNumber:t=>Or(e,t),getBlockTransactionCount:t=>async function(e){let{blockHash:t,blockNumber:n,blockTag:r="latest"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=void 0!==n?(0,It.eC)(n):void 0;let o;return o=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||r]}),(0,Ot.ly)(o)}(e,t),getBytecode:t=>async function(e,t){let{address:n,blockNumber:r,blockTag:i="latest"}=t;const o=void 0!==r?(0,It.eC)(r):void 0,a=await e.request({method:"eth_getCode",params:[n,o||i]});if("0x"!==a)return a}(e,t),getChainId:()=>Tt(e),getContractEvents:t=>Lr(e,t),getEnsAddress:t=>async function(e,t){let{blockNumber:n,blockTag:r,coinType:i,name:o,universalResolverAddress:a}=t,s=a;if(!s){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,Un.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}try{const t=(0,En.R)({abi:Dn.X$,functionName:"addr",...null!=i?{args:[Gn(o),BigInt(i)]}:{args:[Gn(o)]}}),a=await Vt(e,er,"readContract")({address:s,abi:Dn.k3,functionName:"resolve",args:[(0,It.NC)(Yn(o)),t],blockNumber:n,blockTag:r});if("0x"===a[0])return null;const l=(0,Bn.k)({abi:Dn.X$,args:null!=i?[Gn(o),BigInt(i)]:void 0,functionName:"addr",data:a[0]});return"0x"===l||"0x00"===(0,Fn.f)(l)?null:l}catch(l){if(Zn(l,"resolve"))return null;throw l}}(e,t),getEnsAvatar:t=>async function(e,t){let{blockNumber:n,blockTag:r,gatewayUrls:i,name:o,universalResolverAddress:a}=t;const s=await Vt(e,mr,"getEnsText")({blockNumber:n,blockTag:r,key:"avatar",name:o,universalResolverAddress:a});if(!s)return null;try{return await fr(e,{record:s,gatewayUrls:i})}catch{return null}}(e,t),getEnsName:t=>async function(e,t){let{address:n,blockNumber:r,blockTag:i,universalResolverAddress:o}=t,a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=(0,Un.L)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}const s=`${n.toLowerCase().substring(2)}.addr.reverse`;try{const[t,o]=await Vt(e,er,"readContract")({address:a,abi:Dn.du,functionName:"reverse",args:[(0,It.NC)(Yn(s))],blockNumber:r,blockTag:i});return n.toLowerCase()!==o.toLowerCase()?null:t}catch(l){if(Zn(l,"reverse"))return null;throw l}}(e,t),getEnsResolver:t=>async function(e,t){let{blockNumber:n,blockTag:r,name:i,universalResolverAddress:o}=t,a=o;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=(0,Un.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const[s]=await Vt(e,er,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,It.NC)(Yn(i))],blockNumber:n,blockTag:r});return s}(e,t),getEnsText:t=>mr(e,t),getFeeHistory:t=>Dr(e,t),estimateFeesPerGas:t=>async function(e,t){return an(e,t)}(e,t),getFilterChanges:e=>Br(0,e),getFilterLogs:e=>async function(e,t){var n;let{filter:r}=t;const i=null!==(n=r.strict)&&void 0!==n&&n;return(await r.request({method:"eth_getFilterLogs",params:[r.id]})).map((e=>{try{const{eventName:t,args:n}="abi"in r&&r.abi?Nr({abi:r.abi,data:e.data,topics:e.topics,strict:i}):{eventName:void 0,args:void 0};return Mr(e,{args:n,eventName:t})}catch(n){let i,o;if(n instanceof Nt.SM||n instanceof Nt.Gy){var t;if("strict"in r&&r.strict)return;i=n.abiItem.name,o=null===(t=n.abiItem.inputs)||void 0===t?void 0:t.some((e=>!("name"in e&&e.name)))}return Mr(e,{args:o?[]:{},eventName:i})}})).filter(Boolean)}(0,e),getGasPrice:()=>rn(e),getLogs:t=>jr(e,t),getProof:t=>Ur(e,t),estimateMaxPriorityFeePerGas:t=>async function(e,t){return on(e,t)}(e,t),getStorageAt:t=>async function(e,t){let{address:n,blockNumber:r,blockTag:i="latest",slot:o}=t;const a=void 0!==r?(0,It.eC)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[n,o,a||i]})}(e,t),getTransaction:t=>Fr(e,t),getTransactionConfirmations:t=>async function(e,t){let{hash:n,transactionReceipt:r}=t;const[i,o]=await Promise.all([Vt(e,Or,"getBlockNumber")({}),n?Vt(e,Fr,"getBlockNumber")({hash:n}):void 0]),a=(null===r||void 0===r?void 0:r.blockNumber)||(null===o||void 0===o?void 0:o.blockNumber);return a?i-a+1n:0n}(e,t),getTransactionCount:t=>un(e,t),getTransactionReceipt:t=>Zr(e,t),multicall:t=>async function(e,t){var n;const{allowFailure:r=!0,batchSize:i,blockNumber:o,blockTag:a,contracts:s,multicallAddress:l}=t,c=null!==i&&void 0!==i?i:"object"===typeof(null===(n=e.batch)||void 0===n?void 0:n.multicall)&&e.batch.multicall.batchSize||1024;let u=l;if(!u){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");u=(0,Un.L)({blockNumber:o,chain:e.chain,contract:"multicall3"})}const d=[[]];let h=0,p=0;for(let v=0;v<s.length;v++){const{abi:e,address:t,args:n,functionName:i}=s[v];try{const r=(0,En.R)({abi:e,args:n,functionName:i});p+=(r.length-2)/2,c>0&&p>c&&d[h].length>0&&(h++,p=(r.length-2)/2,d[h]=[]),d[h]=[...d[h],{allowFailure:!0,callData:r,target:t}]}catch(g){const o=Xn(g,{abi:e,address:t,args:n,docsPath:"/docs/contract/multicall",functionName:i});if(!r)throw o;d[h]=[...d[h],{allowFailure:!0,callData:"0x",target:t}]}}const f=await Promise.allSettled(d.map((t=>Vt(e,er,"readContract")({abi:Dn.F8,address:u,args:[t],blockNumber:o,blockTag:a,functionName:"aggregate3"})))),m=[];for(let v=0;v<f.length;v++){const e=f[v];if("rejected"===e.status){if(!r)throw e.reason;for(let t=0;t<d[v].length;t++)m.push({status:"failure",error:e.reason,result:void 0});continue}const t=e.value;for(let n=0;n<t.length;n++){const{returnData:e,success:i}=t[n],{callData:o}=d[v][n],{abi:a,address:l,functionName:c,args:u}=s[m.length];try{if("0x"===o)throw new Nt.wb;if(!i)throw new Wn.VQ({data:e});const t=(0,Bn.k)({abi:a,args:u,data:e,functionName:c});m.push(r?{result:t,status:"success"}:t)}catch(g){const e=Xn(g,{abi:a,address:l,args:u,docsPath:"/docs/contract/multicall",functionName:c});if(!r)throw e;m.push({error:e,result:void 0,status:"failure"})}}}if(m.length!==s.length)throw new tt.G("multicall results mismatch");return m}(e,t),prepareTransactionRequest:t=>dn(e,t),readContract:t=>er(e,t),sendRawTransaction:t=>hn(e,t),simulateContract:t=>async function(e,t){let{abi:n,address:r,args:i,dataSuffix:o,functionName:a,...s}=t;const l=s.account?(0,St.T)(s.account):void 0,c=(0,En.R)({abi:n,args:i,functionName:a});try{const{data:t}=await Vt(e,Jn.R,"call")({batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:r,...s});return{result:(0,Bn.k)({abi:n,args:i,functionName:a,data:t||"0x"}),request:{abi:n,address:r,args:i,dataSuffix:o,functionName:a,...s}}}catch(u){throw Xn(u,{abi:n,address:r,args:i,docsPath:"/docs/contract/simulateContract",functionName:a,sender:null===l||void 0===l?void 0:l.address})}}(e,t),verifyMessage:t=>Kr(e,t),verifyTypedData:t=>async function(e,t){let{address:n,signature:r,message:i,primaryType:o,types:a,domain:s,...l}=t;return Gr(e,{address:n,hash:Yr({message:i,primaryType:o,types:a,domain:s}),signature:r,...l})}(e,t),uninstallFilter:e=>Hr(0,e),waitForTransactionReceipt:t=>async function(e,t){let{confirmations:n=1,hash:r,onReplaced:i,pollingInterval:o=e.pollingInterval,timeout:a}=t;const s=(0,mn.P)(["waitForTransactionReceipt",e.uid,r]);let l,c,u,d=!1;return new Promise(((t,h)=>{a&&setTimeout((()=>h(new zt.mc({hash:r}))),a);const p=oi(s,{onReplaced:i,resolve:t,reject:h},(t=>{const i=Vt(e,si,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(o){if(d)return;let a=o;const s=e=>{i(),e(),p()};try{if(u){if(n>1&&(!u.blockNumber||a-u.blockNumber+1n<n))return;return void s((()=>t.resolve(u)))}if(l||(d=!0,await Pn((async()=>{l=await Vt(e,Fr,"getTransaction")({hash:r}),l.blockNumber&&(a=l.blockNumber)}),{delay:e=>{let{count:t}=e;return 200*~~(1<<t)},retryCount:6}),d=!1),u=await Vt(e,Zr,"getTransactionReceipt")({hash:r}),n>1&&(!u.blockNumber||a-u.blockNumber+1n<n))return;s((()=>t.resolve(u)))}catch(h){if(l&&(h instanceof zt.Bh||h instanceof zt.Yb))try{c=l,d=!0;const r=await Pn((()=>Vt(e,nn,"getBlock")({blockNumber:a,includeTransactions:!0})),{delay:e=>{let{count:t}=e;return 200*~~(1<<t)},retryCount:6,shouldRetry:e=>{let{error:t}=e;return t instanceof Xt}});d=!1;const i=r.transactions.find((e=>{let{from:t,nonce:n}=e;return t===c.from&&n===c.nonce}));if(!i)return;if(u=await Vt(e,Zr,"getTransactionReceipt")({hash:i.hash}),n>1&&(!u.blockNumber||a-u.blockNumber+1n<n))return;let o="replaced";i.to===c.to&&i.value===c.value?o="repriced":i.from===i.to&&0n===i.value&&(o="cancelled"),s((()=>{var e;null===(e=t.onReplaced)||void 0===e||e.call(t,{reason:o,replacedTransaction:c,transaction:i,transactionReceipt:u}),t.resolve(u)}))}catch(f){s((()=>t.reject(f)))}else s((()=>t.reject(h)))}}})}))}))}(e,t),watchBlocks:t=>function(e,t){let{blockTag:n="latest",emitMissed:r=!1,emitOnBegin:i=!1,onBlock:o,onError:a,includeTransactions:s,poll:l,pollingInterval:c=e.pollingInterval}=t;const u="undefined"!==typeof l?l:"webSocket"!==e.transport.type,d=null!==s&&void 0!==s&&s;let h;return u?oi((0,mn.P)(["watchBlocks",e.uid,r,i,d,c]),{onBlock:o,onError:a},(t=>ai((async()=>{try{var i,o;const s=await Vt(e,nn,"getBlock")({blockTag:n,includeTransactions:d});if(s.number&&null!==(i=h)&&void 0!==i&&i.number){if(s.number===h.number)return;if(s.number-h.number>1&&r)for(let n=(null===(a=h)||void 0===a?void 0:a.number)+1n;n<s.number;n++){var a;const r=await Vt(e,nn,"getBlock")({blockNumber:n,includeTransactions:d});t.onBlock(r,h),h=r}}(null===(o=h)||void 0===o||!o.number||"pending"===n&&(null===s||void 0===s||!s.number)||s.number&&s.number>h.number)&&(t.onBlock(s,h),h=s)}catch(l){var s;null===(s=t.onError)||void 0===s||s.call(t,l)}}),{emitOnBegin:i,interval:c}))):(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const{unsubscribe:r}=await e.transport.subscribe({params:["newHeads"],onData(n){var r,i,a;if(!t)return;const s=((null===(r=e.chain)||void 0===r||null===(i=r.formatters)||void 0===i||null===(a=i.block)||void 0===a?void 0:a.format)||tn)(n.result);o(s,h),h=s},onError(e){null===a||void 0===a||a(e)}});n=r,t||n()}catch(r){null===a||void 0===a||a(r)}})(),n})()}(e,t),watchBlockNumber:t=>si(e,t),watchContractEvent:t=>function(e,t){let{abi:n,address:r,args:i,batch:o=!0,eventName:a,onError:s,onLogs:l,poll:c,pollingInterval:u=e.pollingInterval,strict:d}=t;return("undefined"!==typeof c?c:"webSocket"!==e.transport.type)?(()=>{const t=(0,mn.P)(["watchContractEvent",r,i,o,e.uid,a,u]),c=null!==d&&void 0!==d&&d;return oi(t,{onLogs:l,onError:s},(t=>{let s,l,d=!1;const h=ai((async()=>{if(d)try{let u;if(l)u=await Vt(e,Br,"getFilterChanges")({filter:l});else{const t=await Vt(e,Or,"getBlockNumber")({});u=s&&s!==t?await Vt(e,Lr,"getContractEvents")({abi:n,address:r,args:i,eventName:a,fromBlock:s+1n,toBlock:t,strict:c}):[],s=t}if(0===u.length)return;if(o)t.onLogs(u);else for(const e of u)t.onLogs([e])}catch(h){var u;l&&h instanceof ut&&(d=!1),null===(u=t.onError)||void 0===u||u.call(t,h)}else{try{l=await Vt(e,Er,"createContractEventFilter")({abi:n,address:r,args:i,eventName:a,strict:c})}catch{}d=!0}}),{emitOnBegin:!0,interval:u});return async()=>{l&&await Vt(e,Hr,"uninstallFilter")({filter:l}),h()}}))})():(()=>{let t=!0,o=()=>t=!1;return(async()=>{try{const c=a?xr({abi:n,eventName:a,args:i}):[],{unsubscribe:u}=await e.transport.subscribe({params:["logs",{address:r,topics:c}],onData(e){if(!t)return;const r=e.result;try{const{eventName:e,args:t}=Nr({abi:n,data:r.data,topics:r.topics,strict:d}),i=Mr(r,{args:t,eventName:e});l([i])}catch(o){let e,t;if(o instanceof Nt.SM||o instanceof Nt.Gy){var i;if(d)return;e=o.abiItem.name,t=null===(i=o.abiItem.inputs)||void 0===i?void 0:i.some((e=>!("name"in e&&e.name)))}const n=Mr(r,{args:t?[]:{},eventName:e});l([n])}},onError(e){null===s||void 0===s||s(e)}});o=u,t||o()}catch(c){null===s||void 0===s||s(c)}})(),o})()}(e,t),watchEvent:t=>function(e,t){let{address:n,args:r,batch:i=!0,event:o,events:a,onError:s,onLogs:l,poll:c,pollingInterval:u=e.pollingInterval,strict:d}=t;const h="undefined"!==typeof c?c:"webSocket"!==e.transport.type,p=null!==d&&void 0!==d&&d;return h?oi((0,mn.P)(["watchEvent",n,r,i,e.uid,o,u]),{onLogs:l,onError:s},(t=>{let s,l,c=!1;const d=ai((async()=>{if(c)try{let c;if(l)c=await Vt(e,Br,"getFilterChanges")({filter:l});else{const t=await Vt(e,Or,"getBlockNumber")({});c=s&&s!==t?await Vt(e,jr,"getLogs")({address:n,args:r,event:o,events:a,fromBlock:s+1n,toBlock:t}):[],s=t}if(0===c.length)return;if(i)t.onLogs(c);else for(const e of c)t.onLogs([e])}catch(d){var u;l&&d instanceof ut&&(c=!1),null===(u=t.onError)||void 0===u||u.call(t,d)}else{try{l=await Vt(e,Sr,"createEventFilter")({address:n,args:r,event:o,events:a,strict:p})}catch{}c=!0}}),{emitOnBegin:!0,interval:u});return async()=>{l&&await Vt(e,Hr,"uninstallFilter")({filter:l}),d()}})):(()=>{let t=!0,i=()=>t=!1;return(async()=>{try{const c=null!==a&&void 0!==a?a:o?[o]:void 0;let u=[];c&&(u=[c.flatMap((e=>xr({abi:[e],eventName:e.name,args:r})))],o&&(u=u[0]));const{unsubscribe:h}=await e.transport.subscribe({params:["logs",{address:n,topics:u}],onData(e){if(!t)return;const n=e.result;try{const{eventName:e,args:t}=Nr({abi:c,data:n.data,topics:n.topics,strict:p}),r=Mr(n,{args:t,eventName:e});l([r])}catch(i){let e,t;if(i instanceof Nt.SM||i instanceof Nt.Gy){var r;if(d)return;e=i.abiItem.name,t=null===(r=i.abiItem.inputs)||void 0===r?void 0:r.some((e=>!("name"in e&&e.name)))}const o=Mr(n,{args:t?[]:{},eventName:e});l([o])}},onError(e){null===s||void 0===s||s(e)}});i=h,t||i()}catch(c){null===s||void 0===s||s(c)}})(),i})()}(e,t),watchPendingTransactions:t=>function(e,t){let{batch:n=!0,onError:r,onTransactions:i,poll:o,pollingInterval:a=e.pollingInterval}=t;return("undefined"!==typeof o?o:"webSocket"!==e.transport.type)?oi((0,mn.P)(["watchPendingTransactions",e.uid,n,a]),{onTransactions:i,onError:r},(t=>{let r;const i=ai((async()=>{try{if(!r)try{return void(r=await Vt(e,kr,"createPendingTransactionFilter")({}))}catch(a){throw i(),a}const o=await Vt(e,Br,"getFilterChanges")({filter:r});if(0===o.length)return;if(n)t.onTransactions(o);else for(const e of o)t.onTransactions([e])}catch(a){var o;null===(o=t.onError)||void 0===o||o.call(t,a)}}),{emitOnBegin:!0,interval:a});return async()=>{r&&await Vt(e,Hr,"uninstallFilter")({filter:r}),i()}})):(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const{unsubscribe:o}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const n=e.result;i([n])},onError(e){null===r||void 0===r||r(e)}});n=o,t||n()}catch(o){null===r||void 0===r||r(o)}})(),n})()}(e,t)}}function ci(e){const{key:t="public",name:n="Public Client"}=e;return Rt({...e,key:t,name:n,type:"publicClient"}).extend(li)}function ui(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{key:n="fallback",name:r="Fallback",rank:i=!1,retryCount:o,retryDelay:a}=t;return t=>{let{chain:s,pollingInterval:l=4e3,timeout:c}=t,u=e,d=()=>{};const h=On({key:n,name:r,async request(e){let{method:t,params:n}=e;const r=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const i=u[e]({chain:s,retryCount:0,timeout:c});try{const e=await i.request({method:t,params:n});return d({method:t,params:n,response:e,transport:i,status:"success"}),e}catch(o){if(d({error:o,method:t,params:n,transport:i,status:"error"}),An(o))throw o;if(e===u.length-1)throw o;return r(e+1)}};return r()},retryCount:o,retryDelay:a,type:"fallback"},{onResponse:e=>d=e,transports:u.map((e=>e({chain:s,retryCount:0})))});if(i){var p;const e="object"===typeof i?i:{};!function(e){let{chain:t,interval:n=4e3,onTransports:r,sampleCount:i=10,timeout:o=1e3,transports:a,weights:s={}}=e;const{stability:l=.7,latency:c=.3}=s,u=[],d=async()=>{const e=await Promise.all(a.map((async e=>{const n=e({chain:t,retryCount:0,timeout:o}),r=Date.now();let i,a;try{await n.request({method:"net_listening"}),a=1}catch{a=0}finally{i=Date.now()}return{latency:i-r,success:a}})));u.push(e),u.length>i&&u.shift();const s=Math.max(...u.map((e=>Math.max(...e.map((e=>{let{latency:t}=e;return t})))))),h=a.map(((e,t)=>{const n=u.map((e=>e[t].latency)),r=1-n.reduce(((e,t)=>e+t),0)/n.length/s,i=u.map((e=>e[t].success)),o=i.reduce(((e,t)=>e+t),0)/i.length;return 0===o?[0,t]:[c*r+l*o,t]})).sort(((e,t)=>t[0]-e[0]));r(h.map((e=>{let[,t]=e;return a[t]}))),await _n(n),d()};d()}({chain:s,interval:null!==(p=e.interval)&&void 0!==p?p:l,onTransports:e=>u=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:u,weights:e.weights})}return h}}class di extends tt.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var hi=n(4510);const pi=function(){if("undefined"!==typeof WebSocket)return WebSocket;if("undefined"!==typeof global.WebSocket)return global.WebSocket;if("undefined"!==typeof window.WebSocket)return window.WebSocket;if("undefined"!==typeof self.WebSocket)return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}();function fi(e,t){let{errorInstance:n=new Error("timed out"),timeout:r,signal:i}=t;return new Promise(((t,o)=>{(async()=>{let a;try{const s=new AbortController;r>0&&(a=setTimeout((()=>{i?s.abort():o(n)}),r)),t(await e({signal:null===s||void 0===s?void 0:s.signal}))}catch(s){"AbortError"===s.name&&o(n),o(s)}finally{clearTimeout(a)}})()}))}let mi=0;const gi=new Map;async function vi(e){let t=gi.get(e);if(t)return t;const{schedule:n}=(0,hi.S)({id:e,fn:async()=>{const n=new pi(e),r=new Map,i=new Map,o=e=>{let{data:t}=e;const n=JSON.parse(t),o="eth_subscription"===n.method,a=o?n.params.subscription:n.id,s=o?i:r,l=s.get(a);l&&l({data:t}),o||s.delete(a)},a=()=>{gi.delete(e),n.removeEventListener("close",a),n.removeEventListener("message",o)};return n.addEventListener("close",a),n.addEventListener("message",o),n.readyState===pi.CONNECTING&&await new Promise(((e,t)=>{n&&(n.onopen=e,n.onerror=t)})),t=Object.assign(n,{requests:r,subscriptions:i}),gi.set(e,t),[t]}}),[r,[i]]=await n();return i}const yi={http:async function(e,t){let{body:n,fetchOptions:r={},timeout:i=1e4}=t;const{headers:o,method:a,signal:s}=r;try{var l;const t=await fi((async t=>{var l;let{signal:c}=t;return await fetch(e,{...r,body:Array.isArray(n)?(0,mn.P)(n.map((e=>{var t;return{jsonrpc:"2.0",id:null!==(t=e.id)&&void 0!==t?t:mi++,...e}}))):(0,mn.P)({jsonrpc:"2.0",id:null!==(l=n.id)&&void 0!==l?l:mi++,...n}),headers:{...o,"Content-Type":"application/json"},method:a||"POST",signal:s||(i>0?c:void 0)})}),{errorInstance:new nt.W5({body:n,url:e}),timeout:i,signal:!0});let c;if(c=null!==(l=t.headers.get("Content-Type"))&&void 0!==l&&l.startsWith("application/json")?await t.json():await t.text(),!t.ok)throw new nt.Gg({body:n,details:(0,mn.P)(c.error)||t.statusText,headers:t.headers,status:t.status,url:e});return c}catch(c){if(c instanceof nt.Gg)throw c;if(c instanceof nt.W5)throw c;throw new nt.Gg({body:n,details:c.message,url:e})}},webSocket:function(e,t){let{body:n,onResponse:r}=t;if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new nt.c9({body:n,url:e.url,details:"Socket is closed."});const i=mi++,o=t=>{let{data:a}=t;const s=JSON.parse(a);var l;"number"===typeof s.id&&i!==s.id||(null===r||void 0===r||r(s),"eth_subscribe"===n.method&&"string"===typeof s.result&&e.subscriptions.set(s.result,o),"eth_unsubscribe"===n.method&&e.subscriptions.delete(null===(l=n.params)||void 0===l?void 0:l[0]))};return e.requests.set(i,o),e.send(JSON.stringify({jsonrpc:"2.0",...n,id:i})),e},webSocketAsync:async function(e,t){let{body:n,timeout:r=1e4}=t;return fi((()=>new Promise((t=>yi.webSocket(e,{body:n,onResponse:t})))),{errorInstance:new nt.W5({body:n,url:e.url}),timeout:r})}};var bi=n(4602);const wi=e=>(t,n,r)=>{const i=r.subscribe;r.subscribe=(e,t,n)=>{let o=e;if(t){const i=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());o=n=>{const r=e(n);if(!i(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return i(o)};return e(t,n,r)};function xi(e,t){let n;try{n=e()}catch(r){return}return{getItem:e=>{var r;const i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}const Ci=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Ci(e)(n),catch(e){return this}}}catch(n){return{then(e){return this},catch:e=>Ci(e)(n)}}},Ei=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=o.getStorage()}catch(g){}if(!c)return e((function(){console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...arguments)}),r,i);const u=Ci(o.serialize),d=()=>{const e=o.partialize({...r()});let t;const n=u({state:e,version:o.version}).then((e=>c.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return n},h=i.setState;i.setState=(e,t)=>{h(e,t),d()};const p=e((function(){n(...arguments),d()}),r,i);let f;const m=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return Ci(c.getItem.bind(c))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!==typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return f=o.merge(e,null!=(t=r())?t:p),n(f,!0),d()})).then((()=>{null==t||t(f,void 0),a=!0,l.forEach((e=>e(f)))})).catch((e=>{null==t||t(void 0,e)}))};return i.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),f||p})(e,t)):((e,t)=>(n,r,i)=>{let o={storage:xi((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c=o.storage;if(!c)return e((function(){console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...arguments)}),r,i);const u=()=>{const e=o.partialize({...r()});return c.setItem(o.name,{state:e,version:o.version})},d=i.setState;i.setState=(e,t)=>{d(e,t),u()};const h=e((function(){n(...arguments),u()}),r,i);let p;i.getInitialState=()=>h;const f=()=>{var e,t;if(!c)return;a=!1,s.forEach((e=>{var t;return e(null!=(t=r())?t:h)}));const i=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:h))||void 0;return Ci(c.getItem.bind(c))(o.name).then((e=>{if(e){if("number"!==typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=o.merge(e,null!=(t=r())?t:h),n(p,!0),u()})).then((()=>{null==i||i(p,void 0),p=r(),a=!0,l.forEach((e=>e(p)))})).catch((e=>{null==i||i(void 0,e)}))};return i.persist={setOptions:e=>{o={...o,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>f(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},o.skipHydration||f(),p||h})(e,t),Si=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"===typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!==typeof i||null===i)?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},ki=e=>e?Si(e):Si;var _i=n(4127);function Pi(e,t){if(Object.is(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function Ai(e,t){let{batch:n={multicall:{wait:32}},pollingInterval:r=4e3,rank:i,retryCount:o,retryDelay:a,stallTimeout:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.length)throw new Error("must have at least one chain");let l=[];const c={},u={};for(const d of e){let e=!1;for(const n of t){const t=n(d);t&&(e=!0,l.some((e=>{let{id:t}=e;return t===d.id}))||(l=[...l,t.chain]),c[d.id]=[...c[d.id]||[],...t.rpcUrls.http],t.rpcUrls.webSocket&&(u[d.id]=[...u[d.id]||[],...t.rpcUrls.webSocket]))}if(!e)throw new Error([`Could not find valid provider configuration for chain "${d.name}".\n`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join("\n"))}return{chains:l,publicClient:t=>{var u;let{chainId:d}=t;const h=null!==(u=l.find((e=>e.id===d)))&&void 0!==u?u:e[0],p=c[h.id];if(!p||!p[0])throw new Error(`No providers configured for chain "${h.id}"`);const f=ci({batch:n,chain:h,transport:ui(p.map((e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{batch:n,fetchOptions:r,key:i="http",name:o="HTTP JSON-RPC",retryDelay:a}=t;return s=>{var l,c;let{chain:u,retryCount:d,timeout:h}=s;const{batchSize:p=1e3,wait:f=0}="object"===typeof n?n:{},m=null!==(l=t.retryCount)&&void 0!==l?l:d,g=null!==(c=null!==h&&void 0!==h?h:t.timeout)&&void 0!==c?c:1e4,v=e||(null===u||void 0===u?void 0:u.rpcUrls.default.http[0]);if(!v)throw new di;return On({key:i,name:o,async request(t){let{method:i,params:o}=t;const a={method:i,params:o},{schedule:s}=(0,hi.S)({id:`${e}`,wait:f,shouldSplitBatch:e=>e.length>p,fn:e=>yi.http(v,{body:e,fetchOptions:r,timeout:g}),sort:(e,t)=>e.id-t.id}),[{error:l,result:c}]=await(async e=>n?s(e):[await yi.http(v,{body:e,fetchOptions:r,timeout:g})])(a);if(l)throw new nt.bs({body:a,error:l,url:v});return c},retryCount:m,retryDelay:a,timeout:g,type:"http"},{fetchOptions:r,url:e})}}(e,{timeout:s}))),{rank:i,retryCount:o,retryDelay:a}),pollingInterval:r});return Object.assign(f,{chains:l})},webSocketPublicClient:t=>{var c;let{chainId:d}=t;const h=null!==(c=l.find((e=>e.id===d)))&&void 0!==c?c:e[0],p=u[h.id];if(!p||!p[0])return;const f=ci({batch:n,chain:h,transport:ui(p.map((e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:i}=t;return o=>{var a,s,l;let{chain:c,retryCount:u,timeout:d}=o;const h=null!==(a=t.retryCount)&&void 0!==a?a:u,p=null!==(s=null!==d&&void 0!==d?d:t.timeout)&&void 0!==s?s:1e4,f=e||(null===c||void 0===c||null===(l=c.rpcUrls.default.webSocket)||void 0===l?void 0:l[0]);if(!f)throw new di;return On({key:n,name:r,async request(e){let{method:t,params:n}=e;const r={method:t,params:n},i=await vi(f),{error:o,result:a}=await yi.webSocketAsync(i,{body:r,timeout:p});if(o)throw new nt.bs({body:r,error:o,url:f});return a},retryCount:h,retryDelay:i,timeout:p,type:"webSocket"},{getSocket:()=>vi(f),async subscribe(e){let{params:t,onData:n,onError:r}=e;const i=await vi(f),{result:o}=await new Promise(((e,o)=>yi.webSocket(i,{body:{method:"eth_subscribe",params:t},onResponse(t){if(t.error)return o(t.error),void(null===r||void 0===r||r(t.error));"number"!==typeof t.id?"eth_subscription"===t.method&&n(t.params):e(t)}})));return{subscriptionId:o,unsubscribe:async()=>new Promise((e=>yi.webSocket(i,{body:{method:"eth_unsubscribe",params:[o]},onResponse:e})))}}})}}(e,{timeout:s}))),{rank:i,retryCount:o,retryDelay:a}),pollingInterval:r});return Object.assign(f,{chains:l})}}}var Ri=class extends Error{constructor(e){let{activeChain:t,targetChain:n}=e;super(`Chain mismatch: Expected "${n}", received "${t}".`),this.name="ChainMismatchError"}},Oi=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured${n?` for connector "${n}"`:""}.`),this.name="ChainNotConfigured"}},Ti=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},Ii=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},Ni=class extends Error{constructor(e){let{connector:t}=e;super(`"${t.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function $i(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)&&Array.isArray(t)){if(n=e.length,n!=t.length)return!1;for(r=n;0!==r--;)if(!$i(e[r],t[r]))return!1;return!0}if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const i=Object.keys(e);if(n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(n&&!$i(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}var Mi=(e,t)=>{let{find:n,replace:r}=t;return e&&n(e)?r(e):"object"!==typeof e?e:Array.isArray(e)?e.map((e=>Mi(e,{find:n,replace:r}))):e instanceof Object?Object.entries(e).reduce(((e,t)=>{let[i,o]=t;return{...e,[i]:Mi(o,{find:n,replace:r})}}),{}):e};function ji(e){const t=JSON.parse(e),n=Mi(t,{find:e=>"string"===typeof e&&e.startsWith("#bigint."),replace:e=>BigInt(e.replace("#bigint.",""))});return n}function Li(e){return"number"===typeof e?e:"wei"===e?0:Math.abs(bi.Bd[e])}function Di(e,t){return e.slice(0,t).join(".")||"."}function Bi(e,t){const{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function Ui(e,t,n,r){return JSON.stringify(e,function(e,t){const n="function"===typeof e,r="function"===typeof t,i=[],o=[];return function(a,s){if("object"===typeof s)if(i.length){const e=Bi(i,this);0===e?i[i.length]=this:(i.splice(e),o.splice(e)),o[o.length]=a;const n=Bi(i,s);if(0!==n)return r?t.call(this,a,s,Di(o,n)):`[ref=${Di(o,n)}]`}else i[0]=s,o[0]=a;return n?e.call(this,a,s):s}}(((e,n)=>{const r="bigint"===typeof n?`#bigint.${n.toString()}`:n;return(null===t||void 0===t?void 0:t(e,r))||r}),r),null!==n&&void 0!==n?n:void 0)}var Fi={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function zi(e){let{deserialize:t=ji,key:n="wagmi",serialize:r=Ui,storage:i}=e;return{...i,getItem:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const o=i.getItem(`${n}.${e}`);try{return o?t(o):r}catch(a){return console.warn(a),r}},setItem:(e,t)=>{if(null===t)i.removeItem(`${n}.${e}`);else try{i.setItem(`${n}.${e}`,r(t))}catch(o){console.error(o)}},removeItem:e=>i.removeItem(`${n}.${e}`)}}var Wi,Zi,Hi,Vi,qi,Gi="store",Ki=class{constructor(e){let{autoConnect:t=!1,connectors:n=[new Nn],publicClient:r,storage:i=zi({storage:"undefined"!==typeof window?window.localStorage:Fi}),logger:o={warn:console.warn},webSocketPublicClient:a}=e;jn(this,Hi),this.publicClients=new Map,this.webSocketPublicClients=new Map,jn(this,Wi,void 0),jn(this,Zi,void 0),this.args={autoConnect:t,connectors:n,logger:o,publicClient:r,storage:i,webSocketPublicClient:a};let s,l="disconnected";if(t)try{var c,u;const e=i.getItem(Gi),t=null===e||void 0===e||null===(c=e.state)||void 0===c?void 0:c.data;l=null!==t&&void 0!==t&&t.account?"reconnecting":"connecting",s=null===t||void 0===t||null===(u=t.chain)||void 0===u?void 0:u.id}catch(m){}const d="function"===typeof n?n():n;var h,p,f;d.forEach((e=>e.setStorage(i))),this.store=ki(wi(Ei((()=>({connectors:d,publicClient:this.getPublicClient({chainId:s}),status:l,webSocketPublicClient:this.getWebSocketPublicClient({chainId:s})})),{name:Gi,storage:i,partialize:e=>{var n,r;return{...t&&{data:{account:null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.account,chain:null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.chain}},chains:null===e||void 0===e?void 0:e.chains}},version:2}))),this.storage=i,Ln(this,Zi,null===i||void 0===i?void 0:i.getItem("wallet")),(h=this,p=Hi,f=Vi,$n(h,p,"access private method"),f).call(this),t&&"undefined"!==typeof window&&setTimeout((async()=>await this.autoConnect()),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){var e,t;return null===(e=this.data)||void 0===e||null===(t=e.chain)||void 0===t?void 0:t.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){const t="function"===typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState((e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"})))}async destroy(){var e,t;this.connector&&await(null===(e=(t=this.connector).disconnect)||void 0===e?void 0:e.call(t)),Ln(this,Wi,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(Mn(this,Wi))return;Ln(this,Wi,!0),this.setState((e=>{var t;return{...e,status:null!==(t=e.data)&&void 0!==t&&t.account?"reconnecting":"connecting"}}));const e=Mn(this,Zi)?[...this.connectors].sort((e=>e.id===Mn(this,Zi)?-1:1)):this.connectors;let t=!1;for(const n of e){if(!n.ready||!n.isAuthorized)continue;if(!await n.isAuthorized())continue;const e=await n.connect();this.setState((t=>({...t,connector:n,chains:null===n||void 0===n?void 0:n.chains,data:e,status:"connected"}))),t=!0;break}return t||this.setState((e=>({...e,data:void 0,status:"disconnected"}))),Ln(this,Wi,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};const t="function"===typeof e?e():e;t.forEach((e=>e.setStorage(this.args.storage))),this.setState((e=>({...e,connectors:t})))}getPublicClient(){var e;let{chainId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.publicClients.get(-1);if(n&&(null===(e=n)||void 0===e?void 0:e.chain.id)===t)return n;if(n=this.publicClients.get(null!==t&&void 0!==t?t:-1),n)return n;const{publicClient:r}=this.args;return n="function"===typeof r?r({chainId:t}):r,this.publicClients.set(null!==t&&void 0!==t?t:-1,n),n}setPublicClient(e){var t,n;const r=null===(t=this.data)||void 0===t||null===(n=t.chain)||void 0===n?void 0:n.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState((e=>({...e,publicClient:this.getPublicClient({chainId:r})})))}getWebSocketPublicClient(){var e;let{chainId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.webSocketPublicClients.get(-1);if(n&&(null===(e=n)||void 0===e?void 0:e.chain.id)===t)return n;if(n=this.webSocketPublicClients.get(null!==t&&void 0!==t?t:-1),n)return n;const{webSocketPublicClient:r}=this.args;return n="function"===typeof r?r({chainId:t}):r,n&&this.webSocketPublicClients.set(null!==t&&void 0!==t?t:-1,n),n}setWebSocketPublicClient(e){var t,n;const r=null===(t=this.data)||void 0===t||null===(n=t.chain)||void 0===n?void 0:n.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState((e=>({...e,webSocketPublicClient:this.getWebSocketPublicClient({chainId:r})})))}setLastUsedConnector(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===(e=this.storage)||void 0===e||e.setItem("wallet",t)}};function Yi(e){const t=new Ki(e);return qi=t,t}function Qi(){if(!qi)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return qi}async function Xi(e){let{chainId:t,connector:n}=e;const r=Qi(),i=r.connector;if(i&&n.id===i.id)throw new Ti;try{r.setState((e=>({...e,status:"connecting"})));const e=await n.connect({chainId:t});return r.setLastUsedConnector(n.id),r.setState((t=>({...t,connector:n,chains:null===n||void 0===n?void 0:n.chains,data:e,status:"connected"}))),r.storage.setItem("connected",!0),{...e,connector:n}}catch(o){throw r.setState((e=>({...e,status:e.connector?"connected":"disconnected"}))),o}}Wi=new WeakMap,Zi=new WeakMap,Hi=new WeakSet,Vi=function(){const e=e=>{this.setState((t=>({...t,data:{...t.data,...e}})))},t=()=>{this.clearState()},n=e=>{this.setState((t=>({...t,error:e})))};this.store.subscribe((e=>{let{connector:t}=e;return t}),((r,i)=>{var o,a,s,l,c,u;null===i||void 0===i||null===(o=i.off)||void 0===o||o.call(i,"change",e),null===i||void 0===i||null===(a=i.off)||void 0===a||a.call(i,"disconnect",t),null===i||void 0===i||null===(s=i.off)||void 0===s||s.call(i,"error",n),r&&(null===(l=r.on)||void 0===l||l.call(r,"change",e),null===(c=r.on)||void 0===c||c.call(r,"disconnect",t),null===(u=r.on)||void 0===u||u.call(r,"error",n))}));const{publicClient:r,webSocketPublicClient:i}=this.args;("function"===typeof r||"function"===typeof i)&&this.store.subscribe((e=>{var t;let{data:n}=e;return null===n||void 0===n||null===(t=n.chain)||void 0===t?void 0:t.id}),(e=>{this.setState((t=>({...t,publicClient:this.getPublicClient({chainId:e}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})})))}))};var Ji=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],eo=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function to(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Qi();return e&&t.getPublicClient({chainId:e})||t.publicClient}async function no(){var e,t;let{chainId:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=Qi();return await(null===(e=r.connector)||void 0===e||null===(t=e.getWalletClient)||void 0===t?void 0:t.call(e,{chainId:n}))||null}async function ro(e){var t;let{chainId:n,contracts:r,blockNumber:i,blockTag:o,...a}=e;const s=to({chainId:n});if(!s.chains)throw new Ii;if(n&&s.chain.id!==n)throw new Oi({chainId:n});return s.multicall({allowFailure:null===(t=a.allowFailure)||void 0===t||t,blockNumber:i,blockTag:o,contracts:r})}async function io(e){let{address:t,account:n,chainId:r,abi:i,args:o,functionName:a,blockNumber:s,blockTag:l}=e;return to({chainId:r}).readContract({abi:i,address:t,account:n,functionName:a,args:o,blockNumber:s,blockTag:l})}async function oo(e){let{contracts:t,blockNumber:n,blockTag:r,...i}=e;const{allowFailure:o=!0}=i;try{const e=to(),i=t.reduce(((t,n,r)=>{var i;const o=null!==(i=n.chainId)&&void 0!==i?i:e.chain.id;return{...t,[o]:[...t[o]||[],{contract:n,index:r}]}}),{}),a=()=>Object.entries(i).map((e=>{let[t,i]=e;return ro({allowFailure:o,chainId:parseInt(t),contracts:i.map((e=>{let{contract:t}=e;return t})),blockNumber:n,blockTag:r})})),s=(await Promise.all(a())).flat(),l=Object.values(i).flatMap((e=>e.map((e=>{let{index:t}=e;return t}))));return s.reduce(((e,t,n)=>(e&&(e[l[n]]=t),e)),[])}catch(a){if(a instanceof Wn.uq)throw a;const e=()=>t.map((e=>io({...e,blockNumber:n,blockTag:r})));return o?(await Promise.allSettled(e())).map((e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"})):await Promise.all(e())}}async function ao(e){const t=await no({chainId:e.chainId});if(!t)throw new ze;let n;if(e.chainId&&po({chainId:e.chainId}),"prepared"===e.mode)n=e.request;else{const{chainId:t,mode:r,...i}=e,o=await async function(e){let{abi:t,address:n,args:r,chainId:i,dataSuffix:o,functionName:a,walletClient:s,...l}=e;const c=to({chainId:i}),u=null!==s&&void 0!==s?s:await no({chainId:i});if(!u)throw new ze;i&&po({chainId:i});const{account:d,accessList:h,blockNumber:p,blockTag:f,gas:m,gasPrice:g,maxFeePerGas:v,maxPriorityFeePerGas:y,nonce:b,value:w}=function(e){return{accessList:e.accessList,account:e.account,blockNumber:e.blockNumber,blockTag:e.blockTag,data:e.data,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,to:e.to,value:e.value}}(l),{result:x,request:C}=await c.simulateContract({abi:t,address:n,functionName:a,args:r,account:d||u.account,accessList:h,blockNumber:p,blockTag:f,dataSuffix:o,gas:m,gasPrice:g,maxFeePerGas:v,maxPriorityFeePerGas:y,nonce:b,value:w});return{mode:"prepared",request:{...C,abi:t.filter((e=>"name"in e&&e.name===a)),chainId:i},result:x}}(i);n=o.request}return{hash:await t.writeContract({...n,chain:e.chainId?{id:e.chainId}:null})}}function so(){const{data:e,connector:t,status:n}=Qi();switch(n){case"connected":return{address:null===e||void 0===e?void 0:e.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:n};case"reconnecting":return{address:null===e||void 0===e?void 0:e.account,connector:t,isConnected:!(null===e||void 0===e||!e.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:n};case"connecting":return{address:null===e||void 0===e?void 0:e.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:n};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:n}}}function lo(){var e,t,n,r,i,o;const a=Qi(),s=null===(e=a.data)||void 0===e||null===(t=e.chain)||void 0===t?void 0:t.id,l=null!==(n=a.chains)&&void 0!==n?n:[],c=null!==(r=[...(null===(i=a.publicClient)||void 0===i?void 0:i.chains)||[],...l].find((e=>e.id===s)))&&void 0!==r?r:{id:s,name:`Chain ${s}`,network:`${s}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:s?{...c,...null===(o=a.data)||void 0===o?void 0:o.chain,id:s}:void 0,chains:l}}async function co(e){let{chainId:t}=e;const{connector:n}=Qi();if(!n)throw new ze;if(!n.switchChain)throw new Ni({connector:n});return n.switchChain(t)}function uo(e){let{selector:t=(e=>e)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Qi().subscribe((e=>{let{data:n,connector:r,status:i}=e;return t({address:null===n||void 0===n?void 0:n.account,connector:r,status:i})}),(()=>e(so())),{equalityFn:Pi});return n}function ho(e){let{selector:t=(e=>e)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Qi().subscribe((e=>{var n;let{data:r,chains:i}=e;return t({chainId:null===r||void 0===r||null===(n=r.chain)||void 0===n?void 0:n.id,chains:i})}),(()=>e(lo())),{equalityFn:Pi});return n}function po(e){let{chainId:t}=e;const{chain:n,chains:r}=lo(),i=null===n||void 0===n?void 0:n.id;var o,a,s,l;if(i&&t!==i)throw new Ri({activeChain:null!==(o=null===(a=r.find((e=>e.id===i)))||void 0===a?void 0:a.name)&&void 0!==o?o:`Chain ${i}`,targetChain:null!==(s=null===(l=r.find((e=>e.id===t)))||void 0===l?void 0:l.name)&&void 0!==s?s:`Chain ${t}`})}var fo=n(617),mo=n(1838),go=n(5523),vo=n(1444),yo=n(910),bo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let wo=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.address=fo.AccountController.state.address,this.balanceVal=fo.AccountController.state.balance,this.balanceSymbol=fo.AccountController.state.balanceSymbol,this.profileName=fo.AccountController.state.profileName,this.profileImage=fo.AccountController.state.profileImage,this.network=fo.NetworkController.state.caipNetwork,this.unsubscribe.push(fo.AccountController.subscribe((e=>{e.isConnected?(this.address=e.address,this.balanceVal=e.balance,this.profileName=e.profileName,this.profileImage=e.profileImage,this.balanceSymbol=e.balanceSymbol):(this.address="",this.balanceVal="",this.profileName="",this.profileImage="",this.balanceSymbol="")})),fo.NetworkController.subscribeKey("caipNetwork",(e=>this.network=e)))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){var e;const t=fo.fz.getNetworkImage(this.network),n="show"===this.balance;return go.dy` <wui-account-button .disabled=${Boolean(this.disabled)} address=${(0,yo.o)(null!==(e=this.profileName)&&void 0!==e?e:this.address)} ?isProfileName=${Boolean(this.profileName)} networkSrc=${(0,yo.o)(t)} avatarSrc=${(0,yo.o)(this.profileImage)} balance=${n?fo.j1.formatBalance(this.balanceVal,this.balanceSymbol):""} @click=${this.onClick.bind(this)} data-testid="account-button" .charsStart=${this.charsStart} .charsEnd=${this.charsEnd} > </wui-account-button> `}onClick(){fo.IN.open()}};bo([(0,vo.Cb)({type:Boolean})],wo.prototype,"disabled",void 0),bo([(0,vo.Cb)()],wo.prototype,"balance",void 0),bo([(0,vo.Cb)()],wo.prototype,"charsStart",void 0),bo([(0,vo.Cb)()],wo.prototype,"charsEnd",void 0),bo([(0,vo.SB)()],wo.prototype,"address",void 0),bo([(0,vo.SB)()],wo.prototype,"balanceVal",void 0),bo([(0,vo.SB)()],wo.prototype,"balanceSymbol",void 0),bo([(0,vo.SB)()],wo.prototype,"profileName",void 0),bo([(0,vo.SB)()],wo.prototype,"profileImage",void 0),bo([(0,vo.SB)()],wo.prototype,"network",void 0),wo=bo([(0,mo.customElement)("w3m-account-button")],wo);const xo=go.iv` :host { display: block; width: max-content; } `;var Co=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Eo=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance=void 0,this.size=void 0,this.label=void 0,this.loadingLabel=void 0,this.charsStart=4,this.charsEnd=6,this.isAccount=fo.AccountController.state.isConnected,this.unsubscribe.push(fo.AccountController.subscribeKey("isConnected",(e=>{this.isAccount=e})))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){return this.isAccount?go.dy` <w3m-account-button .disabled=${Boolean(this.disabled)} balance=${(0,yo.o)(this.balance)} .charsStart=${(0,yo.o)(this.charsStart)} .charsEnd=${(0,yo.o)(this.charsEnd)} > </w3m-account-button> `:go.dy` <w3m-connect-button size=${(0,yo.o)(this.size)} label=${(0,yo.o)(this.label)} loadingLabel=${(0,yo.o)(this.loadingLabel)} ></w3m-connect-button> `}};Eo.styles=xo,Co([(0,vo.Cb)({type:Boolean})],Eo.prototype,"disabled",void 0),Co([(0,vo.Cb)()],Eo.prototype,"balance",void 0),Co([(0,vo.Cb)()],Eo.prototype,"size",void 0),Co([(0,vo.Cb)()],Eo.prototype,"label",void 0),Co([(0,vo.Cb)()],Eo.prototype,"loadingLabel",void 0),Co([(0,vo.Cb)()],Eo.prototype,"charsStart",void 0),Co([(0,vo.Cb)()],Eo.prototype,"charsEnd",void 0),Co([(0,vo.SB)()],Eo.prototype,"isAccount",void 0),Eo=Co([(0,mo.customElement)("w3m-button")],Eo);var So=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ko=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=fo.IN.state.open,this.loading=fo.IN.state.loading,this.unsubscribe.push(fo.IN.subscribe((e=>{this.open=e.open,this.loading=e.loading})))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){const e=this.loading||this.open;return go.dy` <wui-connect-button size=${(0,yo.o)(this.size)} .loading=${e} @click=${this.onClick.bind(this)} data-testid="connect-button" > ${e?this.loadingLabel:this.label} </wui-connect-button> `}onClick(){this.open?fo.IN.close():this.loading||fo.IN.open()}};So([(0,vo.Cb)()],ko.prototype,"size",void 0),So([(0,vo.Cb)()],ko.prototype,"label",void 0),So([(0,vo.Cb)()],ko.prototype,"loadingLabel",void 0),So([(0,vo.SB)()],ko.prototype,"open",void 0),So([(0,vo.SB)()],ko.prototype,"loading",void 0),ko=So([(0,mo.customElement)("w3m-connect-button")],ko);n(4578);const _o=go.iv` :host { display: block; width: max-content; } `;var Po=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ao=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.network=fo.NetworkController.state.caipNetwork,this.connected=fo.AccountController.state.isConnected,this.loading=fo.IN.state.loading,this.unsubscribe.push(fo.NetworkController.subscribeKey("caipNetwork",(e=>this.network=e)),fo.AccountController.subscribeKey("isConnected",(e=>this.connected=e)),fo.IN.subscribeKey("loading",(e=>this.loading=e)))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){var e,t;return go.dy` <wui-network-button .disabled=${Boolean(this.disabled||this.loading)} imageSrc=${(0,yo.o)(fo.fz.getNetworkImage(this.network))} @click=${this.onClick.bind(this)} > ${null!==(e=null===(t=this.network)||void 0===t?void 0:t.name)&&void 0!==e?e:this.connected?"Unknown Network":"Select Network"} </wui-network-button> `}onClick(){this.loading||fo.IN.open({view:"Networks"})}};Ao.styles=_o,Po([(0,vo.Cb)({type:Boolean})],Ao.prototype,"disabled",void 0),Po([(0,vo.SB)()],Ao.prototype,"network",void 0),Po([(0,vo.SB)()],Ao.prototype,"connected",void 0),Po([(0,vo.SB)()],Ao.prototype,"loading",void 0),Ao=Po([(0,mo.customElement)("w3m-network-button")],Ao);const Ro=go.iv` :host { display: block; will-change: transform, opacity; } `;var Oo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let To=class extends go.oi{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=fo.RouterController.state.view,this.unsubscribe.push(fo.RouterController.subscribeKey("view",(e=>this.onViewChange(e))))}firstUpdated(){this.resizeObserver=new ResizeObserver((async e=>{let[t]=e;const n=`${null===t||void 0===t?void 0:t.contentRect.height}px`;"0px"!==this.prevHeight&&(await this.animate([{height:this.prevHeight},{height:n}],{duration:150,easing:"ease",fill:"forwards"}).finished,this.style.height="auto"),this.prevHeight=n})),this.resizeObserver.observe(this.getWrapper())}disconnectedCallback(){var e;null===(e=this.resizeObserver)||void 0===e||e.unobserve(this.getWrapper()),this.unsubscribe.forEach((e=>e()))}render(){return go.dy`<div>${this.viewTemplate()}</div>`}viewTemplate(){switch(this.view){case"Connect":default:return go.dy`<w3m-connect-view></w3m-connect-view>`;case"ConnectingWalletConnect":return go.dy`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingExternal":return go.dy`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return go.dy`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"AllWallets":return go.dy`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"Networks":return go.dy`<w3m-networks-view></w3m-networks-view>`;case"SwitchNetwork":return go.dy`<w3m-network-switch-view></w3m-network-switch-view>`;case"Account":return go.dy`<w3m-account-view></w3m-account-view>`;case"WhatIsAWallet":return go.dy`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case"WhatIsANetwork":return go.dy`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"GetWallet":return go.dy`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Downloads":return go.dy`<w3m-downloads-view></w3m-downloads-view>`;case"EmailVerifyOtp":return go.dy`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return go.dy`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"ApproveTransaction":return go.dy`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"Transactions":return go.dy`<w3m-transactions-view></w3m-transactions-view>`;case"UpgradeEmailWallet":return go.dy`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpdateEmailWallet":return go.dy`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailWalletWaiting":return go.dy`<w3m-update-email-wallet-waiting-view></w3m-update-email-wallet-waiting-view>`}}async onViewChange(e){const{history:t}=fo.RouterController.state;let n=-10,r=10;t.length<this.prevHistoryLength&&(n=10,r=-10),this.prevHistoryLength=t.length,await this.animate([{opacity:1,transform:"translateX(0px)"},{opacity:0,transform:`translateX(${n}px)`}],{duration:150,easing:"ease",fill:"forwards"}).finished,this.view=e,await this.animate([{opacity:0,transform:`translateX(${r}px)`},{opacity:1,transform:"translateX(0px)"}],{duration:150,easing:"ease",fill:"forwards",delay:50}).finished}getWrapper(){var e;return null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("div")}};To.styles=Ro,Oo([(0,vo.SB)()],To.prototype,"view",void 0),To=Oo([(0,mo.customElement)("w3m-router")],To);const Io=go.iv` wui-flex { width: 100%; } :host > wui-flex:first-child { transform: translateY(calc(var(--wui-spacing-xxs) * -1)); } wui-icon-link { margin-right: calc(var(--wui-icon-box-size-md) * -1); } wui-notice-card { margin-bottom: var(--wui-spacing-3xs); } `;var No=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let $o=class extends go.oi{constructor(){super(),this.usubscribe=[],this.address=fo.AccountController.state.address,this.profileImage=fo.AccountController.state.profileImage,this.profileName=fo.AccountController.state.profileName,this.balance=fo.AccountController.state.balance,this.balanceSymbol=fo.AccountController.state.balanceSymbol,this.network=fo.NetworkController.state.caipNetwork,this.disconecting=!1,this.usubscribe.push(fo.AccountController.subscribe((e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.balance=e.balance,this.balanceSymbol=e.balanceSymbol):fo.IN.close()})),fo.NetworkController.subscribeKey("caipNetwork",(e=>{null!==e&&void 0!==e&&e.id&&(this.network=e)})))}disconnectedCallback(){this.usubscribe.forEach((e=>e()))}render(){var e,t;if(!this.address)throw new Error("w3m-account-view: No account provided");const n=fo.fz.getNetworkImage(this.network);return go.dy` <wui-flex flexDirection="column" .padding=${["0","s","m","s"]} alignItems="center" gap="l" > <wui-avatar alt=${this.address} address=${this.address} imageSrc=${(0,yo.o)(null===this.profileImage?void 0:this.profileImage)} ></wui-avatar> <wui-flex flexDirection="column" alignItems="center"> <wui-flex gap="3xs" alignItems="center" justifyContent="center"> <wui-text variant="large-600" color="fg-100"> ${this.profileName?mo.UiHelperUtil.getTruncateString({string:this.profileName,charsStart:20,charsEnd:0,truncate:"end"}):mo.UiHelperUtil.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})} </wui-text> <wui-icon-link size="md" icon="copy" iconColor="fg-200" @click=${this.onCopyAddress} ></wui-icon-link> </wui-flex> <wui-flex gap="s" flexDirection="column" alignItems="center"> <wui-text variant="paragraph-500" color="fg-200"> ${fo.j1.formatBalance(this.balance,this.balanceSymbol)} </wui-text> ${this.explorerBtnTemplate()} </wui-flex> </wui-flex> </wui-flex> <wui-flex flexDirection="column" gap="xs" .padding=${["0","s","s","s"]}> ${this.emailCardTemplate()} ${this.emailBtnTemplate()} <wui-list-item .variant=${n?"image":"icon"} iconVariant="overlay" icon="networkPlaceholder" imageSrc=${(0,yo.o)(n)} ?chevron=${this.isAllowedNetworkSwitch()} @click=${this.onNetworks.bind(this)} data-testid="w3m-account-select-network" > <wui-text variant="paragraph-500" color="fg-100"> ${null!==(e=null===(t=this.network)||void 0===t?void 0:t.name)&&void 0!==e?e:"Unknown"} </wui-text> </wui-list-item> <wui-list-item iconVariant="blue" icon="swapHorizontalBold" iconSize="sm" ?chevron=${!0} @click=${this.onTransactions.bind(this)} > <wui-text variant="paragraph-500" color="fg-100">Activity</wui-text> </wui-list-item> <wui-list-item variant="icon" iconVariant="overlay" icon="disconnect" ?chevron=${!1} .loading=${this.disconecting} @click=${this.onDisconnect.bind(this)} data-testid="disconnect-button" > <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text> </wui-list-item> </wui-flex> `}emailCardTemplate(){const e=fo.MO.getConnectedConnector(),t=fo.ConnectorController.getEmailConnector(),{origin:n}=location;return!t||"EMAIL"!==e||n.includes(fo.bq.SECURE_SITE)?null:go.dy` <wui-notice-card @click=${this.onGoToUpgradeView.bind(this)} label="Upgrade your wallet" description="Transition to a non-custodial wallet" icon="wallet" ></wui-notice-card> `}emailBtnTemplate(){var e;const t=fo.MO.getConnectedConnector(),n=fo.ConnectorController.getEmailConnector();if(!n||"EMAIL"!==t)return null;const r=null!==(e=n.provider.getEmail())&&void 0!==e?e:"";return go.dy` <wui-list-item variant="icon" iconVariant="overlay" icon="mail" iconSize="sm" ?chevron=${!0} @click=${()=>this.onGoToUpdateEmail(r)} > <wui-text variant="paragraph-500" color="fg-100">${r}</wui-text> </wui-list-item> `}explorerBtnTemplate(){const{addressExplorerUrl:e}=fo.AccountController.state;return e?go.dy` <wui-button size="sm" variant="shade" @click=${this.onExplorer.bind(this)}> <wui-icon size="sm" color="inherit" slot="iconLeft" name="compass"></wui-icon> Block Explorer <wui-icon size="sm" color="inherit" slot="iconRight" name="externalLink"></wui-icon> </wui-button> `:null}isAllowedNetworkSwitch(){const{requestedCaipNetworks:e}=fo.NetworkController.state,t=!!e&&e.length>1,n=null===e||void 0===e?void 0:e.find((e=>{var t;let{id:n}=e;return n===(null===(t=this.network)||void 0===t?void 0:t.id)}));return t||!n}onCopyAddress(){try{this.address&&(fo.j1.copyToClopboard(this.address),fo.SnackController.showSuccess("Address copied"))}catch{fo.SnackController.showError("Failed to copy")}}onNetworks(){this.isAllowedNetworkSwitch()&&fo.RouterController.push("Networks")}onTransactions(){fo.Xs.sendEvent({type:"track",event:"CLICK_TRANSACTIONS"}),fo.RouterController.push("Transactions")}async onDisconnect(){try{this.disconecting=!0,await fo.ConnectionController.disconnect(),fo.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),fo.IN.close()}catch{fo.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),fo.SnackController.showError("Failed to disconnect")}finally{this.disconecting=!1}}onExplorer(){const{addressExplorerUrl:e}=fo.AccountController.state;e&&fo.j1.openHref(e,"_blank")}onGoToUpgradeView(){fo.Xs.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),fo.RouterController.push("UpgradeEmailWallet")}onGoToUpdateEmail(e){fo.RouterController.push("UpdateEmailWallet",{email:e})}};$o.styles=Io,No([(0,vo.SB)()],$o.prototype,"address",void 0),No([(0,vo.SB)()],$o.prototype,"profileImage",void 0),No([(0,vo.SB)()],$o.prototype,"profileName",void 0),No([(0,vo.SB)()],$o.prototype,"balance",void 0),No([(0,vo.SB)()],$o.prototype,"balanceSymbol",void 0),No([(0,vo.SB)()],$o.prototype,"network",void 0),No([(0,vo.SB)()],$o.prototype,"disconecting",void 0),$o=No([(0,mo.customElement)("w3m-account-view")],$o);var Mo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let jo=class extends go.oi{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=fo.j1.debounce((e=>{this.search=e}))}render(){const e=this.search.length>=2;return go.dy` <wui-flex padding="s" gap="s"> <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar> ${this.qrButtonTemplate()} </wui-flex> ${e?go.dy`<w3m-all-wallets-search query=${this.search}></w3m-all-wallets-search>`:go.dy`<w3m-all-wallets-list></w3m-all-wallets-list>`} `}onInputChange(e){this.onDebouncedSearch(e.detail)}qrButtonTemplate(){return fo.j1.isMobile()?go.dy` <wui-icon-box size="lg" iconSize="xl" iconColor="accent-100" backgroundColor="accent-100" icon="qrCode" background="transparent" border borderColor="wui-accent-glass-010" @click=${this.onWalletConnectQr.bind(this)} ></wui-icon-box> `:null}onWalletConnectQr(){fo.RouterController.push("ConnectingWalletConnect")}};Mo([(0,vo.SB)()],jo.prototype,"search",void 0),jo=Mo([(0,mo.customElement)("w3m-all-wallets-view")],jo);const Lo=go.iv` wui-flex { max-height: clamp(360px, 540px, 80vh); overflow: scroll; scrollbar-width: none; } wui-flex::-webkit-scrollbar { display: none; } `;var Do=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Bo=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.connectors=fo.ConnectorController.state.connectors,this.unsubscribe.push(fo.ConnectorController.subscribeKey("connectors",(e=>this.connectors=e)))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){return go.dy` <wui-flex flexDirection="column" padding="s" gap="xs"> <w3m-email-login-widget></w3m-email-login-widget> ${this.walletConnectConnectorTemplate()} ${this.recentTemplate()} ${this.announcedTemplate()} ${this.injectedTemplate()} ${this.featuredTemplate()} ${this.customTemplate()} ${this.recommendedTemplate()} ${this.connectorsTemplate()} ${this.allWalletsTemplate()} </wui-flex> <w3m-legal-footer></w3m-legal-footer> `}walletConnectConnectorTemplate(){var e;if(fo.j1.isMobile())return null;const t=this.connectors.find((e=>"WALLET_CONNECT"===e.type));return t?go.dy` <wui-list-wallet imageSrc=${(0,yo.o)(fo.fz.getConnectorImage(t))} name=${null!==(e=t.name)&&void 0!==e?e:"Unknown"} @click=${()=>this.onConnector(t)} tagLabel="qr code" tagVariant="main" data-testid="wallet-selector-walletconnect" > </wui-list-wallet> `:null}customTemplate(){const{customWallets:e}=fo.OptionsController.state;if(null===e||void 0===e||!e.length)return null;return this.filterOutDuplicateWallets(e).map((e=>{var t;return go.dy` <wui-list-wallet imageSrc=${(0,yo.o)(fo.fz.getWalletImage(e))} name=${null!==(t=e.name)&&void 0!==t?t:"Unknown"} @click=${()=>this.onConnectWallet(e)} > </wui-list-wallet> `}))}featuredTemplate(){if(!this.connectors.find((e=>"WALLET_CONNECT"===e.type)))return null;const{featured:e}=fo.ApiController.state;if(!e.length)return null;return this.filterOutDuplicateWallets(e).map((e=>{var t;return go.dy` <wui-list-wallet imageSrc=${(0,yo.o)(fo.fz.getWalletImage(e))} name=${null!==(t=e.name)&&void 0!==t?t:"Unknown"} @click=${()=>this.onConnectWallet(e)} > </wui-list-wallet> `}))}recentTemplate(){return fo.MO.getRecentWallets().map((e=>{var t;return go.dy` <wui-list-wallet imageSrc=${(0,yo.o)(fo.fz.getWalletImage(e))} name=${null!==(t=e.name)&&void 0!==t?t:"Unknown"} @click=${()=>this.onConnectWallet(e)} tagLabel="recent" tagVariant="shade" > </wui-list-wallet> `}))}announcedTemplate(){return this.connectors.map((e=>{var t;return"ANNOUNCED"!==e.type?null:go.dy` <wui-list-wallet imageSrc=${(0,yo.o)(fo.fz.getConnectorImage(e))} name=${null!==(t=e.name)&&void 0!==t?t:"Unknown"} @click=${()=>this.onConnector(e)} tagVariant="success" .installed=${!0} > </wui-list-wallet> `}))}injectedTemplate(){const e=this.connectors.find((e=>"ANNOUNCED"===e.type));return this.connectors.map((t=>{var n;return"INJECTED"!==t.type?null:fo.ConnectionController.checkInstalled()?go.dy` <wui-list-wallet imageSrc=${(0,yo.o)(fo.fz.getConnectorImage(t))} .installed=${Boolean(e)} name=${null!==(n=t.name)&&void 0!==n?n:"Unknown"} @click=${()=>this.onConnector(t)} > </wui-list-wallet> `:null}))}connectorsTemplate(){const e=fo.ConnectorController.getAnnouncedConnectorRdns();return this.connectors.map((t=>{var n;return["WALLET_CONNECT","INJECTED","ANNOUNCED","EMAIL"].includes(t.type)||e.includes(fo.bq.CONNECTOR_RDNS_MAP[t.id])?null:go.dy` <wui-list-wallet imageSrc=${(0,yo.o)(fo.fz.getConnectorImage(t))} name=${null!==(n=t.name)&&void 0!==n?n:"Unknown"} @click=${()=>this.onConnector(t)} > </wui-list-wallet> `}))}allWalletsTemplate(){if(!this.connectors.find((e=>"WALLET_CONNECT"===e.type)))return null;const e=fo.ApiController.state.count+fo.ApiController.state.featured.length,t=e<10?e:10*Math.floor(e/10),n=t<e?`${t}+`:`${t}`;return go.dy` <wui-list-wallet name="All Wallets" walletIcon="allWallets" showAllWallets @click=${this.onAllWallets.bind(this)} tagLabel=${n} tagVariant="shade" data-testid="all-wallets" ></wui-list-wallet> `}recommendedTemplate(){if(!this.connectors.find((e=>"WALLET_CONNECT"===e.type)))return null;const{recommended:e}=fo.ApiController.state,{customWallets:t,featuredWalletIds:n}=fo.OptionsController.state,{connectors:r}=fo.ConnectorController.state,i=fo.MO.getRecentWallets(),o=r.filter((e=>"ANNOUNCED"===e.type));if(n||t||!e.length)return null;const a=o.length+i.length,s=Math.max(0,2-a);return this.filterOutDuplicateWallets(e).slice(0,s).map((e=>{var t;return go.dy` <wui-list-wallet imageSrc=${(0,yo.o)(fo.fz.getWalletImage(e))} name=${null!==(t=null===e||void 0===e?void 0:e.name)&&void 0!==t?t:"Unknown"} @click=${()=>this.onConnectWallet(e)} > </wui-list-wallet> `}))}onConnector(e){"WALLET_CONNECT"===e.type?fo.j1.isMobile()?fo.RouterController.push("AllWallets"):fo.RouterController.push("ConnectingWalletConnect"):fo.RouterController.push("ConnectingExternal",{connector:e})}filterOutDuplicateWallets(e){const{connectors:t}=fo.ConnectorController.state,n=fo.MO.getRecentWallets().map((e=>e.id)),r=t.map((e=>{var t;return null===(t=e.info)||void 0===t?void 0:t.rdns})).filter(Boolean);return e.filter((e=>{var t;return!n.includes(e.id)&&!r.includes(null!==(t=e.rdns)&&void 0!==t?t:void 0)}))}onAllWallets(){fo.Xs.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),fo.RouterController.push("AllWallets")}onConnectWallet(e){fo.RouterController.push("ConnectingWalletConnect",{wallet:e})}};Bo.styles=Lo,Do([(0,vo.SB)()],Bo.prototype,"connectors",void 0),Bo=Do([(0,mo.customElement)("w3m-connect-view")],Bo);const Uo=go.iv` @keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(3px); } 50% { transform: translateX(-3px); } 75% { transform: translateX(3px); } 100% { transform: translateX(0); } } wui-flex:first-child:not(:only-child) { position: relative; } wui-loading-thumbnail { position: absolute; } wui-icon-box { position: absolute; right: calc(var(--wui-spacing-3xs) * -1); bottom: calc(var(--wui-spacing-3xs) * -1); opacity: 0; transform: scale(0.5); transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg); } wui-text[align='center'] { width: 100%; padding: 0px var(--wui-spacing-l); } [data-error='true'] wui-icon-box { opacity: 1; transform: scale(1); } [data-error='true'] > wui-flex:first-child { animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; } [data-retry='false'] wui-link { display: none; } [data-retry='true'] wui-link { display: block; opacity: 1; } `;var Fo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class zo extends go.oi{constructor(){var e,t,n,r,i,o,a;super(),this.wallet=null===(e=fo.RouterController.state.data)||void 0===e?void 0:e.wallet,this.connector=null===(t=fo.RouterController.state.data)||void 0===t?void 0:t.connector,this.timeout=void 0,this.secondaryBtnLabel="Try again",this.secondaryBtnIcon="refresh",this.secondaryLabel="Accept connection request in the wallet",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=null!==(n=fo.fz.getWalletImage(this.wallet))&&void 0!==n?n:fo.fz.getConnectorImage(this.connector),this.name=null!==(r=null!==(i=null===(o=this.wallet)||void 0===o?void 0:o.name)&&void 0!==i?i:null===(a=this.connector)||void 0===a?void 0:a.name)&&void 0!==r?r:"Wallet",this.isRetrying=!1,this.uri=fo.ConnectionController.state.wcUri,this.error=fo.ConnectionController.state.wcError,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(fo.ConnectionController.subscribeKey("wcUri",(e=>{var t;(this.uri=e,this.isRetrying&&this.onRetry)&&(this.isRetrying=!1,null===(t=this.onConnect)||void 0===t||t.call(this))})),fo.ConnectionController.subscribeKey("wcError",(e=>this.error=e)),fo.ConnectionController.subscribeKey("buffering",(e=>this.buffering=e)))}firstUpdated(){var e;null===(e=this.onAutoConnect)||void 0===e||e.call(this),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach((e=>e())),clearTimeout(this.timeout)}render(){var e;null===(e=this.onRender)||void 0===e||e.call(this),this.onShowRetry();const t=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let n=`Continue in ${this.name}`;return this.buffering&&(n="Connecting..."),this.error&&(n="Connection declined"),go.dy` <wui-flex data-error=${(0,yo.o)(this.error)} data-retry=${this.showRetry} flexDirection="column" alignItems="center" .padding=${["3xl","xl","xl","xl"]} gap="xl" > <wui-flex justifyContent="center" alignItems="center"> <wui-wallet-image size="lg" imageSrc=${(0,yo.o)(this.imageSrc)}></wui-wallet-image> ${this.error?null:this.loaderTemplate()} <wui-icon-box backgroundColor="error-100" background="opaque" iconColor="error-100" icon="close" size="sm" border borderColor="wui-color-bg-125" ></wui-icon-box> </wui-flex> <wui-flex flexDirection="column" alignItems="center" gap="xs"> <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}> ${n} </wui-text> <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text> </wui-flex> <wui-button variant="accent" ?disabled=${!this.error&&this.buffering} @click=${this.onTryAgain.bind(this)} > <wui-icon color="inherit" slot="iconLeft" name=${this.secondaryBtnIcon}></wui-icon> ${this.secondaryBtnLabel} </wui-button> </wui-flex> ${this.isWalletConnect?go.dy` <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center"> <wui-link @click=${this.onCopyUri} color="fg-200"> <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon> Copy link </wui-link> </wui-flex> `:null} <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> `}onShowRetry(){if(this.error&&!this.showRetry){var e;this.showRetry=!0;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("wui-button");null===t||void 0===t||t.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){var e,t;this.buffering||(fo.ConnectionController.setWcError(!1),this.onRetry?(this.isRetrying=!0,null===(e=this.onRetry)||void 0===e||e.call(this)):null===(t=this.onConnect)||void 0===t||t.call(this))}loaderTemplate(){const e=fo.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return go.dy`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(fo.j1.copyToClopboard(this.uri),fo.SnackController.showSuccess("Link copied"))}catch{fo.SnackController.showError("Failed to copy")}}}zo.styles=Uo,Fo([(0,vo.SB)()],zo.prototype,"uri",void 0),Fo([(0,vo.SB)()],zo.prototype,"error",void 0),Fo([(0,vo.SB)()],zo.prototype,"ready",void 0),Fo([(0,vo.SB)()],zo.prototype,"showRetry",void 0),Fo([(0,vo.SB)()],zo.prototype,"buffering",void 0),Fo([(0,vo.Cb)({type:Boolean})],zo.prototype,"isMobile",void 0),Fo([(0,vo.Cb)()],zo.prototype,"onRetry",void 0);var Wo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const Zo={INJECTED:"browser",ANNOUNCED:"browser"};let Ho=class extends zo{constructor(){var e,t;if(super(),!this.connector)throw new Error("w3m-connecting-view: No connector provided");fo.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:null!==(e=this.connector.name)&&void 0!==e?e:"Unknown",platform:null!==(t=Zo[this.connector.type])&&void 0!==t?t:"external"}}),this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),this.isWalletConnect=!1}async onConnectProxy(){try{this.error=!1,this.connector&&(this.connector.imageUrl&&fo.MO.setConnectedWalletImageUrl(this.connector.imageUrl),await fo.ConnectionController.connectExternal(this.connector),fo.yD.state.isSiweEnabled?fo.RouterController.push("ConnectingSiwe"):fo.IN.close(),fo.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"external"}}))}catch(t){var e;fo.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:null!==(e=null===t||void 0===t?void 0:t.message)&&void 0!==e?e:"Unknown"}}),this.error=!0}}};Ho=Wo([(0,mo.customElement)("w3m-connecting-external-view")],Ho);var Vo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let qo=class extends go.oi{constructor(){var e;super(...arguments),this.dappName=null===(e=fo.OptionsController.state.metadata)||void 0===e?void 0:e.name,this.isSigning=!1}render(){var e;return go.dy` <wui-flex justifyContent="center" .padding=${["2xl","0","xxl","0"]}> <w3m-connecting-siwe></w3m-connecting-siwe> </wui-flex> <wui-flex .padding=${["0","4xl","l","4xl"]} gap="s" justifyContent="space-between" > <wui-text variant="paragraph-500" align="center" color="fg-100" >${null!==(e=this.dappName)&&void 0!==e?e:"Dapp"} needs to connect to your wallet</wui-text > </wui-flex> <wui-flex .padding=${["0","3xl","l","3xl"]} gap="s" justifyContent="space-between" > <wui-text variant="small-400" align="center" color="fg-200" >Sign this message to prove you own this wallet and proceed. Canceling will disconnect you.</wui-text > </wui-flex> <wui-flex .padding=${["l","xl","xl","xl"]} gap="s" justifyContent="space-between"> <wui-button size="md" ?fullwidth=${!0} variant="shade" @click=${this.onCancel.bind(this)} data-testid="w3m-connecting-siwe-cancel" > Cancel </wui-button> <wui-button size="md" ?fullwidth=${!0} variant="fill" @click=${this.onSign.bind(this)} ?loading=${this.isSigning} data-testid="w3m-connecting-siwe-sign" > ${this.isSigning?"Signing...":"Sign"} </wui-button> </wui-flex> `}async onSign(){this.isSigning=!0,fo.Xs.sendEvent({event:"CLICK_SIGN_SIWE_MESSAGE",type:"track"});try{fo.yD.setStatus("loading");const e=await fo.yD.signIn();return fo.yD.setStatus("success"),fo.Xs.sendEvent({event:"SIWE_AUTH_SUCCESS",type:"track"}),e}catch(e){return fo.SnackController.showError("Signature declined"),fo.yD.setStatus("error"),fo.Xs.sendEvent({event:"SIWE_AUTH_ERROR",type:"track"})}finally{this.isSigning=!1}}async onCancel(){const{isConnected:e}=fo.AccountController.state;e?(await fo.ConnectionController.disconnect(),fo.IN.close()):fo.RouterController.push("Connect"),fo.Xs.sendEvent({event:"CLICK_CANCEL_SIWE",type:"track"})}};Vo([(0,vo.SB)()],qo.prototype,"isSigning",void 0),qo=Vo([(0,mo.customElement)("w3m-connecting-siwe-view")],qo);var Go=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ko=class extends go.oi{constructor(){var e;super(),this.interval=void 0,this.lastRetry=Date.now(),this.wallet=null===(e=fo.RouterController.state.data)||void 0===e?void 0:e.wallet,this.platform=void 0,this.platforms=[],this.initializeConnection(),this.interval=setInterval(this.initializeConnection.bind(this),fo.bq.TEN_SEC_MS)}disconnectedCallback(){clearTimeout(this.interval)}render(){return this.wallet?(this.determinePlatforms(),go.dy` ${this.headerTemplate()} <div>${this.platformTemplate()}</div> `):go.dy`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`}async initializeConnection(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{const{wcPairingExpiry:t}=fo.ConnectionController.state;if(e||fo.j1.isPairingExpired(t)){if(fo.ConnectionController.connectWalletConnect(),this.wallet){const e=fo.fz.getWalletImage(this.wallet);e&&fo.MO.setConnectedWalletImageUrl(e)}else{const e=fo.ConnectorController.state.connectors.find((e=>"WALLET_CONNECT"===e.type)),t=fo.fz.getConnectorImage(e);t&&fo.MO.setConnectedWalletImageUrl(t)}await fo.ConnectionController.state.wcPromise,this.finalizeConnection(),fo.yD.state.isSiweEnabled?fo.RouterController.push("ConnectingSiwe"):fo.IN.close()}}catch(n){var t;fo.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:null!==(t=null===n||void 0===n?void 0:n.message)&&void 0!==t?t:"Unknown"}}),fo.ConnectionController.setWcError(!0),fo.j1.isAllowedRetry(this.lastRetry)&&(fo.SnackController.showError("Declined"),this.lastRetry=Date.now(),this.initializeConnection(!0))}}finalizeConnection(){const{wcLinking:e,recentWallet:t}=fo.ConnectionController.state;e&&fo.MO.setWalletConnectDeepLink(e),t&&fo.MO.setWeb3ModalRecent(t),fo.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:e?"mobile":"qrcode"}})}determinePlatforms(){if(!this.wallet)throw new Error("w3m-connecting-wc-view:determinePlatforms No wallet");if(this.platform)return;const{mobile_link:e,desktop_link:t,webapp_link:n,injected:r,rdns:i}=this.wallet,o=null===r||void 0===r?void 0:r.map((e=>{let{injected_id:t}=e;return t})).filter(Boolean),a=i?[i]:null!==o&&void 0!==o?o:[],s=a.length,l=e,c=n,u=fo.ConnectionController.checkInstalled(a),d=s&&u,h=t&&!fo.j1.isMobile();d&&this.platforms.push("browser"),l&&this.platforms.push(fo.j1.isMobile()?"mobile":"qrcode"),c&&this.platforms.push("web"),h&&this.platforms.push("desktop"),!d&&s&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return go.dy`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"desktop":return go.dy` <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}> </w3m-connecting-wc-desktop> `;case"web":return go.dy` <w3m-connecting-wc-web .onRetry=${()=>this.initializeConnection(!0)}> </w3m-connecting-wc-web> `;case"mobile":return go.dy` <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}> </w3m-connecting-wc-mobile> `;case"qrcode":return go.dy`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return go.dy`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?go.dy` <w3m-connecting-header .platforms=${this.platforms} .onSelectPlatfrom=${this.onSelectPlatform.bind(this)} > </w3m-connecting-header> `:null}async onSelectPlatform(e){var t;const n=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("div");n&&(await n.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};Go([(0,vo.SB)()],Ko.prototype,"platform",void 0),Go([(0,vo.SB)()],Ko.prototype,"platforms",void 0),Ko=Go([(0,mo.customElement)("w3m-connecting-wc-view")],Ko);var Yo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Qo=class extends go.oi{constructor(){var e;super(...arguments),this.wallet=null===(e=fo.RouterController.state.data)||void 0===e?void 0:e.wallet}render(){if(!this.wallet)throw new Error("w3m-downloads-view");return go.dy` <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}> ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()} ${this.homepageTemplate()} </wui-flex> `}chromeTemplate(){var e;return null!==(e=this.wallet)&&void 0!==e&&e.chrome_store?go.dy`<wui-list-item variant="icon" icon="chromeStore" iconVariant="square" @click=${this.onChromeStore.bind(this)} chevron > <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text> </wui-list-item>`:null}iosTemplate(){var e;return null!==(e=this.wallet)&&void 0!==e&&e.app_store?go.dy`<wui-list-item variant="icon" icon="appStore" iconVariant="square" @click=${this.onAppStore.bind(this)} chevron > <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text> </wui-list-item>`:null}androidTemplate(){var e;return null!==(e=this.wallet)&&void 0!==e&&e.play_store?go.dy`<wui-list-item variant="icon" icon="playStore" iconVariant="square" @click=${this.onPlayStore.bind(this)} chevron > <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text> </wui-list-item>`:null}homepageTemplate(){var e;return null!==(e=this.wallet)&&void 0!==e&&e.homepage?go.dy` <wui-list-item variant="icon" icon="browser" iconVariant="square-blue" @click=${this.onHomePage.bind(this)} chevron > <wui-text variant="paragraph-500" color="fg-100">Website</wui-text> </wui-list-item> `:null}onChromeStore(){var e;null!==(e=this.wallet)&&void 0!==e&&e.chrome_store&&fo.j1.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){var e;null!==(e=this.wallet)&&void 0!==e&&e.app_store&&fo.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var e;null!==(e=this.wallet)&&void 0!==e&&e.play_store&&fo.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){var e;null!==(e=this.wallet)&&void 0!==e&&e.homepage&&fo.j1.openHref(this.wallet.homepage,"_blank")}};Qo=Yo([(0,mo.customElement)("w3m-downloads-view")],Qo);var Xo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Jo=class extends go.oi{render(){return go.dy` <wui-flex flexDirection="column" padding="s" gap="xs"> ${this.recommendedWalletsTemplate()} <wui-list-wallet name="Explore all" showAllWallets walletIcon="allWallets" icon="externalLink" @click=${()=>{fo.j1.openHref("https://walletconnect.com/explorer?type=wallet","_blank")}} ></wui-list-wallet> </wui-flex> `}recommendedWalletsTemplate(){const{recommended:e,featured:t}=fo.ApiController.state,{customWallets:n}=fo.OptionsController.state;return[...t,...null!==n&&void 0!==n?n:[],...e].slice(0,4).map((e=>{var t;return go.dy` <wui-list-wallet name=${null!==(t=e.name)&&void 0!==t?t:"Unknown"} tagVariant="main" imageSrc=${(0,yo.o)(fo.fz.getWalletImage(e))} @click=${()=>{var t;fo.j1.openHref(null!==(t=e.homepage)&&void 0!==t?t:"https://walletconnect.com/explorer","_blank")}} ></wui-list-wallet> `}))}};Jo=Xo([(0,mo.customElement)("w3m-get-wallet-view")],Jo);const ea=go.iv` @keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(3px); } 50% { transform: translateX(-3px); } 75% { transform: translateX(3px); } 100% { transform: translateX(0); } } wui-flex:first-child:not(:only-child) { position: relative; } wui-loading-hexagon { position: absolute; } wui-icon-box { position: absolute; right: 4px; bottom: 0; opacity: 0; transform: scale(0.5); z-index: 1; transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg); } wui-button { display: none; } [data-error='true'] wui-icon-box { opacity: 1; transform: scale(1); } [data-error='true'] > wui-flex:first-child { animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; } wui-button[data-retry='true'] { display: block; opacity: 1; } `;var ta=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let na=class extends go.oi{constructor(){var e;super(),this.network=null===(e=fo.RouterController.state.data)||void 0===e?void 0:e.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw new Error("w3m-network-switch-view: No network provided");this.onShowRetry();const e=this.error?"Switch declined":"Approve in wallet",t=this.error?"Switch can be declined if chain is not supported by a wallet or previous request is still active":"Accept connection request in your wallet";return go.dy` <wui-flex data-error=${this.error} flexDirection="column" alignItems="center" .padding=${["3xl","xl","3xl","xl"]} gap="xl" > <wui-flex justifyContent="center" alignItems="center"> <wui-network-image size="lg" imageSrc=${(0,yo.o)(fo.fz.getNetworkImage(this.network))} ></wui-network-image> ${this.error?null:go.dy`<wui-loading-hexagon></wui-loading-hexagon>`} <wui-icon-box backgroundColor="error-100" background="opaque" iconColor="error-100" icon="close" size="sm" ?border=${!0} borderColor="wui-color-bg-125" ></wui-icon-box> </wui-flex> <wui-flex flexDirection="column" alignItems="center" gap="xs"> <wui-text align="center" variant="paragraph-500" color="fg-100">${e}</wui-text> <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text> </wui-flex> <wui-button data-retry=${this.showRetry} variant="fill" .disabled=${!this.error} @click=${this.onSwitchNetwork.bind(this)} > <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon> Try again </wui-button> </wui-flex> `}onShowRetry(){if(this.error&&!this.showRetry){var e;this.showRetry=!0;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("wui-button");null===t||void 0===t||t.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,this.network&&(await fo.NetworkController.switchActiveNetwork(this.network),fo.yD.state.isSiweEnabled||fo._4.navigateAfterNetworkSwitch())}catch{this.error=!0}}};na.styles=ea,ta([(0,vo.SB)()],na.prototype,"showRetry",void 0),ta([(0,vo.SB)()],na.prototype,"error",void 0),na=ta([(0,mo.customElement)("w3m-network-switch-view")],na);const ra=go.iv` :host > wui-grid { max-height: 360px; overflow: auto; } wui-grid::-webkit-scrollbar { display: none; } `;var ia=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let oa=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.caipNetwork=fo.NetworkController.state.caipNetwork,this.unsubscribe.push(fo.NetworkController.subscribeKey("caipNetwork",(e=>this.caipNetwork=e)))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){return go.dy` <wui-grid padding="s" gridTemplateColumns="repeat(4, 1fr)" rowGap="l" columnGap="xs"> ${this.networksTemplate()} </wui-grid> <wui-separator></wui-separator> <wui-flex padding="s" flexDirection="column" gap="m" alignItems="center"> <wui-text variant="small-400" color="fg-300" align="center"> Your connected wallet may not support some of the networks available for this dApp </wui-text> <wui-link @click=${this.onNetworkHelp.bind(this)}> <wui-icon size="xs" color="accent-100" slot="iconLeft" name="helpCircle"></wui-icon> What is a network </wui-link> </wui-flex> `}onNetworkHelp(){fo.Xs.sendEvent({type:"track",event:"CLICK_NETWORK_HELP"}),fo.RouterController.push("WhatIsANetwork")}networksTemplate(){const{approvedCaipNetworkIds:e,requestedCaipNetworks:t,supportsAllNetworks:n}=fo.NetworkController.state,r=e,i=t,o={};return i&&r&&(r.forEach(((e,t)=>{o[e]=t})),i.sort(((e,t)=>{const n=o[e.id],r=o[t.id];return void 0!==n&&void 0!==r?n-r:void 0!==n?-1:void 0!==r?1:0}))),null===i||void 0===i?void 0:i.map((e=>{var t,i,o;return go.dy` <wui-card-select .selected=${(null===(t=this.caipNetwork)||void 0===t?void 0:t.id)===e.id} imageSrc=${(0,yo.o)(fo.fz.getNetworkImage(e))} type="network" name=${null!==(i=e.name)&&void 0!==i?i:e.id} @click=${()=>this.onSwitchNetwork(e)} .disabled=${!n&&!(null!==r&&void 0!==r&&r.includes(e.id))} data-testid=${`w3m-network-switch-${null!==(o=e.name)&&void 0!==o?o:e.id}`} ></wui-card-select> `}))}async onSwitchNetwork(e){const{isConnected:t}=fo.AccountController.state,{approvedCaipNetworkIds:n,supportsAllNetworks:r,caipNetwork:i}=fo.NetworkController.state,{data:o}=fo.RouterController.state;t&&(null===i||void 0===i?void 0:i.id)!==e.id?null!==n&&void 0!==n&&n.includes(e.id)?(await fo.NetworkController.switchActiveNetwork(e),fo._4.navigateAfterNetworkSwitch()):r&&fo.RouterController.push("SwitchNetwork",{...o,network:e}):t||(fo.NetworkController.setCaipNetwork(e),fo.RouterController.push("Connect"))}};oa.styles=ra,ia([(0,vo.SB)()],oa.prototype,"caipNetwork",void 0),oa=ia([(0,mo.customElement)("w3m-networks-view")],oa);var aa=n(3452);const sa=go.iv` :host > wui-flex:first-child { height: 500px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; } `;var la=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const ca="last-transaction";let ua=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.address=fo.AccountController.state.address,this.transactions=fo.sl.state.transactions,this.transactionsByYear=fo.sl.state.transactionsByYear,this.loading=fo.sl.state.loading,this.empty=fo.sl.state.empty,this.next=fo.sl.state.next,this.unsubscribe.push(fo.AccountController.subscribe((e=>{e.isConnected&&this.address!==e.address&&(this.address=e.address,fo.sl.resetTransactions(),fo.sl.fetchTransactions(e.address))})),fo.sl.subscribe((e=>{this.transactions=e.transactions,this.transactionsByYear=e.transactionsByYear,this.loading=e.loading,this.empty=e.empty,this.next=e.next})))}firstUpdated(){0===this.transactions.length&&fo.sl.fetchTransactions(this.address),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}render(){return go.dy` <wui-flex flexDirection="column" padding="s" gap="s"> ${this.empty?null:this.templateTransactionsByYear()} ${this.loading?this.templateLoading():null} ${!this.loading&&this.empty?this.templateEmpty():null} </wui-flex> `}templateTransactionsByYear(){const e=Object.keys(this.transactionsByYear).sort().reverse();return e.map(((t,n)=>{const r=n===e.length-1,i=parseInt(t,10),o=mo.TransactionUtil.getTransactionGroupTitle(i),a=this.transactionsByYear[i];return a?go.dy` <wui-flex flexDirection="column" gap="s"> <wui-flex alignItems="center" flexDirection="row" .padding=${["xs","s","s","s"]} > <wui-text variant="paragraph-500" color="fg-200">${o}</wui-text> </wui-flex> <wui-flex flexDirection="column" gap="xs"> ${this.templateTransactions(a,r)} </wui-flex> </wui-flex> `:null}))}templateRenderTransaction(e,t){const{date:n,descriptions:r,direction:i,isAllNFT:o,images:a,status:s,transfers:l,type:c}=this.getTransactionListItemProps(e),u=(null===l||void 0===l?void 0:l.length)>1;return 2===(null===l||void 0===l?void 0:l.length)&&!o?go.dy` <wui-transaction-list-item date=${n} .direction=${i} id=${t&&this.next?ca:""} status=${s} type=${c} .images=${a} .descriptions=${r} ></wui-transaction-list-item> `:u?l.map(((e,r)=>{const i=mo.TransactionUtil.getTransferDescription(e),o=t&&r===l.length-1;return go.dy` <wui-transaction-list-item date=${n} direction=${e.direction} id=${o&&this.next?ca:""} status=${s} type=${c} .onlyDirectionIcon=${!0} .images=${[null===a||void 0===a?void 0:a[r]]} .descriptions=${[i]} ></wui-transaction-list-item>`})):go.dy` <wui-transaction-list-item date=${n} .direction=${i} id=${t&&this.next?ca:""} status=${s} type=${c} .images=${a} .descriptions=${r} ></wui-transaction-list-item> `}templateTransactions(e,t){return e.map(((n,r)=>{const i=t&&r===e.length-1;return go.dy`${this.templateRenderTransaction(n,i)}`}))}templateEmpty(){return go.dy` <wui-flex flexGrow="1" flexDirection="column" justifyContent="center" alignItems="center" .padding=${["3xl","xl","3xl","xl"]} gap="xl" > <wui-icon-box backgroundColor="glass-005" background="gray" iconColor="fg-200" icon="wallet" size="lg" ?border=${!0} borderColor="wui-color-bg-125" ></wui-icon-box> <wui-flex flexDirection="column" alignItems="center" gap="xs"> <wui-text align="center" variant="paragraph-500" color="fg-100" >No Transactions yet</wui-text > <wui-text align="center" variant="small-500" color="fg-200" >Start trading on dApps <br /> to grow your wallet!</wui-text > </wui-flex> </wui-flex> `}templateLoading(){return Array(7).fill(go.dy` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map((e=>e))}createPaginationObserver(){const{projectId:e}=fo.OptionsController.state;this.paginationObserver=new IntersectionObserver((t=>{let[n]=t;null!==n&&void 0!==n&&n.isIntersecting&&!this.loading&&(fo.sl.fetchTransactions(this.address),fo.Xs.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:this.address,projectId:e,cursor:this.next}}))}),{}),this.setPaginationObserver()}setPaginationObserver(){var e,t;null===(e=this.paginationObserver)||void 0===e||e.disconnect();const n=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(`#${ca}`);var r;n&&(null===(r=this.paginationObserver)||void 0===r||r.observe(n))}getTransactionListItemProps(e){var t,n,r,i,o;const a=aa.E.getRelativeDateFromNow(null===e||void 0===e||null===(t=e.metadata)||void 0===t?void 0:t.minedAt),s=mo.TransactionUtil.getTransactionDescriptions(e),l=null===e||void 0===e?void 0:e.transfers,c=null===e||void 0===e||null===(n=e.transfers)||void 0===n?void 0:n[0],u=Boolean(c)&&(null===e||void 0===e||null===(r=e.transfers)||void 0===r?void 0:r.every((e=>Boolean(e.nft_info)))),d=mo.TransactionUtil.getTransactionImages(l);return{date:a,direction:null===c||void 0===c?void 0:c.direction,descriptions:s,isAllNFT:u,images:d,status:null===(i=e.metadata)||void 0===i?void 0:i.status,transfers:l,type:null===(o=e.metadata)||void 0===o?void 0:o.operationType}}};ua.styles=sa,la([(0,vo.SB)()],ua.prototype,"address",void 0),la([(0,vo.SB)()],ua.prototype,"transactions",void 0),la([(0,vo.SB)()],ua.prototype,"transactionsByYear",void 0),la([(0,vo.SB)()],ua.prototype,"loading",void 0),la([(0,vo.SB)()],ua.prototype,"empty",void 0),la([(0,vo.SB)()],ua.prototype,"next",void 0),ua=la([(0,mo.customElement)("w3m-transactions-view")],ua);var da=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const ha=[{images:["network","layers","system"],title:"The system\u2019s nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}];let pa=class extends go.oi{render(){return go.dy` <wui-flex flexDirection="column" .padding=${["xxl","xl","xl","xl"]} alignItems="center" gap="xl" > <w3m-help-widget .data=${ha}></w3m-help-widget> <wui-button variant="fill" size="sm" @click=${()=>{fo.j1.openHref("https://ethereum.org/en/developers/docs/networks/","_blank")}} > Learn more <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> </wui-button> </wui-flex> `}};pa=da([(0,mo.customElement)("w3m-what-is-a-network-view")],pa);var fa=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const ma=[{images:["login","profile","lock"],title:"One login for all of web3",text:"Log in to any app by connecting your wallet. Say goodbye to countless passwords!"},{images:["defi","nft","eth"],title:"A home for your digital assets",text:"A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs."},{images:["browser","noun","dao"],title:"Your gateway to a new web",text:"With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more."}];let ga=class extends go.oi{render(){return go.dy` <wui-flex flexDirection="column" .padding=${["xxl","xl","xl","xl"]} alignItems="center" gap="xl" > <w3m-help-widget .data=${ma}></w3m-help-widget> <wui-button variant="fill" size="sm" @click=${this.onGetWallet.bind(this)}> <wui-icon color="inherit" slot="iconLeft" name="wallet"></wui-icon> Get a wallet </wui-button> </wui-flex> `}onGetWallet(){fo.Xs.sendEvent({type:"track",event:"CLICK_GET_WALLET"}),fo.RouterController.push("GetWallet")}};ga=fa([(0,mo.customElement)("w3m-what-is-a-wallet-view")],ga);const va=go.iv` wui-loading-spinner { margin: 9px auto; } `,ya={SECURE_SITE_SDK:"https://secure.web3modal.com/sdk",APP_EVENT_KEY:"@w3m-app/",FRAME_EVENT_KEY:"@w3m-frame/",RPC_METHOD_KEY:"RPC_",STORAGE_KEY:"@w3m-storage/",SESSION_TOKEN_KEY:"SESSION_TOKEN_KEY",EMAIL_LOGIN_USED_KEY:"EMAIL_LOGIN_USED_KEY",LAST_USED_CHAIN_KEY:"LAST_USED_CHAIN_KEY",LAST_EMAIL_LOGIN_TIME:"LAST_EMAIL_LOGIN_TIME",EMAIL:"EMAIL",APP_SWITCH_NETWORK:"@w3m-app/SWITCH_NETWORK",APP_CONNECT_EMAIL:"@w3m-app/CONNECT_EMAIL",APP_CONNECT_DEVICE:"@w3m-app/CONNECT_DEVICE",APP_CONNECT_OTP:"@w3m-app/CONNECT_OTP",APP_GET_USER:"@w3m-app/GET_USER",APP_SIGN_OUT:"@w3m-app/SIGN_OUT",APP_IS_CONNECTED:"@w3m-app/IS_CONNECTED",APP_GET_CHAIN_ID:"@w3m-app/GET_CHAIN_ID",APP_RPC_REQUEST:"@w3m-app/RPC_REQUEST",APP_UPDATE_EMAIL:"@w3m-app/UPDATE_EMAIL",APP_AWAIT_UPDATE_EMAIL:"@w3m-app/AWAIT_UPDATE_EMAIL",APP_SYNC_THEME:"@w3m-app/SYNC_THEME",APP_SYNC_DAPP_DATA:"@w3m-app/SYNC_DAPP_DATA",FRAME_SWITCH_NETWORK_ERROR:"@w3m-frame/SWITCH_NETWORK_ERROR",FRAME_SWITCH_NETWORK_SUCCESS:"@w3m-frame/SWITCH_NETWORK_SUCCESS",FRAME_CONNECT_EMAIL_ERROR:"@w3m-frame/CONNECT_EMAIL_ERROR",FRAME_CONNECT_EMAIL_SUCCESS:"@w3m-frame/CONNECT_EMAIL_SUCCESS",FRAME_CONNECT_DEVICE_ERROR:"@w3m-frame/CONNECT_DEVICE_ERROR",FRAME_CONNECT_DEVICE_SUCCESS:"@w3m-frame/CONNECT_DEVICE_SUCCESS",FRAME_CONNECT_OTP_SUCCESS:"@w3m-frame/CONNECT_OTP_SUCCESS",FRAME_CONNECT_OTP_ERROR:"@w3m-frame/CONNECT_OTP_ERROR",FRAME_GET_USER_SUCCESS:"@w3m-frame/GET_USER_SUCCESS",FRAME_GET_USER_ERROR:"@w3m-frame/GET_USER_ERROR",FRAME_SIGN_OUT_SUCCESS:"@w3m-frame/SIGN_OUT_SUCCESS",FRAME_SIGN_OUT_ERROR:"@w3m-frame/SIGN_OUT_ERROR",FRAME_IS_CONNECTED_SUCCESS:"@w3m-frame/IS_CONNECTED_SUCCESS",FRAME_IS_CONNECTED_ERROR:"@w3m-frame/IS_CONNECTED_ERROR",FRAME_GET_CHAIN_ID_SUCCESS:"@w3m-frame/GET_CHAIN_ID_SUCCESS",FRAME_GET_CHAIN_ID_ERROR:"@w3m-frame/GET_CHAIN_ID_ERROR",FRAME_RPC_REQUEST_SUCCESS:"@w3m-frame/RPC_REQUEST_SUCCESS",FRAME_RPC_REQUEST_ERROR:"@w3m-frame/RPC_REQUEST_ERROR",FRAME_SESSION_UPDATE:"@w3m-frame/SESSION_UPDATE",FRAME_UPDATE_EMAIL_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SUCCESS",FRAME_UPDATE_EMAIL_ERROR:"@w3m-frame/UPDATE_EMAIL_ERROR",FRAME_AWAIT_UPDATE_EMAIL_SUCCESS:"@w3m-frame/AWAIT_UPDATE_EMAIL_SUCCESS",FRAME_AWAIT_UPDATE_EMAIL_ERROR:"@w3m-frame/AWAIT_UPDATE_EMAIL_ERROR",FRAME_SYNC_THEME_SUCCESS:"@w3m-frame/SYNC_THEME_SUCCESS",FRAME_SYNC_THEME_ERROR:"@w3m-frame/SYNC_THEME_ERROR",FRAME_SYNC_DAPP_DATA_SUCCESS:"@w3m-frame/SYNC_DAPP_DATA_SUCCESS",FRAME_SYNC_DAPP_DATA_ERROR:"@w3m-frame/SYNC_DAPP_DATA_ERROR"},ba="eth_chainId";var wa,xa;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" | ";return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(wa||(wa={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(xa||(xa={}));const Ca=wa.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ea=e=>{switch(typeof e){case"undefined":return Ca.undefined;case"string":return Ca.string;case"number":return isNaN(e)?Ca.nan:Ca.number;case"boolean":return Ca.boolean;case"function":return Ca.function;case"bigint":return Ca.bigint;case"symbol":return Ca.symbol;case"object":return Array.isArray(e)?Ca.array:null===e?Ca.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?Ca.promise:"undefined"!==typeof Map&&e instanceof Map?Ca.map:"undefined"!==typeof Set&&e instanceof Set?Ca.set:"undefined"!==typeof Date&&e instanceof Date?Ca.date:Ca.object;default:return Ca.unknown}},Sa=wa.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ka extends Error{constructor(e){var t;super(),t=this,this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.issues=[...t.issues,...e]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,wa.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e.message;const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}ka.create=e=>new ka(e);const _a=(e,t)=>{let n;switch(e.code){case Sa.invalid_type:n=e.received===Ca.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Sa.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,wa.jsonStringifyReplacer)}`;break;case Sa.unrecognized_keys:n=`Unrecognized key(s) in object: ${wa.joinValues(e.keys,", ")}`;break;case Sa.invalid_union:n="Invalid input";break;case Sa.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${wa.joinValues(e.options)}`;break;case Sa.invalid_enum_value:n=`Invalid enum value. Expected ${wa.joinValues(e.options)}, received '${e.received}'`;break;case Sa.invalid_arguments:n="Invalid function arguments";break;case Sa.invalid_return_type:n="Invalid function return type";break;case Sa.invalid_date:n="Invalid date";break;case Sa.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:wa.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Sa.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Sa.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Sa.custom:n="Invalid input";break;case Sa.invalid_intersection_types:n="Intersection results could not be merged";break;case Sa.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Sa.not_finite:n="Number must be finite";break;default:n=t.defaultError,wa.assertNever(e)}return{message:n}};let Pa=_a;function Aa(){return Pa}const Ra=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}};function Oa(e,t){const n=Ra({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Aa(),_a].filter((e=>!!e))});e.common.issues.push(n)}class Ta{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return Ia;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t)n.push({key:await r.key,value:await r.value});return Ta.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return Ia;if("aborted"===i.status)return Ia;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const Ia=Object.freeze({status:"aborted"}),Na=e=>({status:"dirty",value:e}),$a=e=>({status:"valid",value:e}),Ma=e=>"aborted"===e.status,ja=e=>"dirty"===e.status,La=e=>"valid"===e.status,Da=e=>"undefined"!==typeof Promise&&e instanceof Promise;var Ba;!function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(Ba||(Ba={}));class Ua{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Fa=(e,t)=>{if(La(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ka(e.common.issues);return this._error=t,this._error}}};function za(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:"undefined"===typeof t.data?{message:null!==r&&void 0!==r?r:t.defaultError}:{message:null!==n&&void 0!==n?n:t.defaultError},description:i}}class Wa{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Ea(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Ea(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ta,ctx:{common:e.parent.common,data:e.data,parsedType:Ea(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Da(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ea(e)},i=this._parseSync({data:e,path:r.path,parent:r});return Fa(r,i)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ea(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(Da(r)?r:Promise.resolve(r));return Fa(n,i)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const i=e(t),o=()=>r.addIssue({code:Sa.custom,...n(t)});return"undefined"!==typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Os({schema:this,typeName:zs.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Ts.create(this,this._def)}nullable(){return Is.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ds.create(this,this._def)}promise(){return Rs.create(this,this._def)}or(e){return fs.create([this,e],this._def)}and(e){return ys.create(this,e,this._def)}transform(e){return new Os({...za(this._def),schema:this,typeName:zs.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Ns({...za(this._def),innerType:this,defaultValue:t,typeName:zs.ZodDefault})}brand(){return new Ls({typeName:zs.ZodBranded,type:this,...za(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new $s({...za(this._def),innerType:this,catchValue:t,typeName:zs.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Ds.create(this,e)}readonly(){return Bs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Za=/^c[^\s-]{8,}$/i,Ha=/^[a-z][a-z0-9]*$/,Va=/^[0-9A-HJKMNP-TV-Z]{26}$/,qa=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Ga=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Ka;const Ya=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Qa=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class Xa extends Wa{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==Ca.string){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.string,received:t.parsedType}),Ia}const t=new Ta;let n;for(const s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(n=this._getOrReturnCtx(e,n),Oa(n,{code:Sa.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("max"===s.kind)e.data.length>s.value&&(n=this._getOrReturnCtx(e,n),Oa(n,{code:Sa.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("length"===s.kind){const r=e.data.length>s.value,i=e.data.length<s.value;(r||i)&&(n=this._getOrReturnCtx(e,n),r?Oa(n,{code:Sa.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):i&&Oa(n,{code:Sa.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if("email"===s.kind)Ga.test(e.data)||(n=this._getOrReturnCtx(e,n),Oa(n,{validation:"email",code:Sa.invalid_string,message:s.message}),t.dirty());else if("emoji"===s.kind)Ka||(Ka=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Ka.test(e.data)||(n=this._getOrReturnCtx(e,n),Oa(n,{validation:"emoji",code:Sa.invalid_string,message:s.message}),t.dirty());else if("uuid"===s.kind)qa.test(e.data)||(n=this._getOrReturnCtx(e,n),Oa(n,{validation:"uuid",code:Sa.invalid_string,message:s.message}),t.dirty());else if("cuid"===s.kind)Za.test(e.data)||(n=this._getOrReturnCtx(e,n),Oa(n,{validation:"cuid",code:Sa.invalid_string,message:s.message}),t.dirty());else if("cuid2"===s.kind)Ha.test(e.data)||(n=this._getOrReturnCtx(e,n),Oa(n,{validation:"cuid2",code:Sa.invalid_string,message:s.message}),t.dirty());else if("ulid"===s.kind)Va.test(e.data)||(n=this._getOrReturnCtx(e,n),Oa(n,{validation:"ulid",code:Sa.invalid_string,message:s.message}),t.dirty());else if("url"===s.kind)try{new URL(e.data)}catch(a){n=this._getOrReturnCtx(e,n),Oa(n,{validation:"url",code:Sa.invalid_string,message:s.message}),t.dirty()}else if("regex"===s.kind){s.regex.lastIndex=0;s.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),Oa(n,{validation:"regex",code:Sa.invalid_string,message:s.message}),t.dirty())}else if("trim"===s.kind)e.data=e.data.trim();else if("includes"===s.kind)e.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(e,n),Oa(n,{code:Sa.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty());else if("toLowerCase"===s.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===s.kind)e.data=e.data.toUpperCase();else if("startsWith"===s.kind)e.data.startsWith(s.value)||(n=this._getOrReturnCtx(e,n),Oa(n,{code:Sa.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty());else if("endsWith"===s.kind)e.data.endsWith(s.value)||(n=this._getOrReturnCtx(e,n),Oa(n,{code:Sa.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty());else if("datetime"===s.kind){((o=s).precision?o.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${o.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${o.precision}}Z$`):0===o.precision?o.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):o.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")).test(e.data)||(n=this._getOrReturnCtx(e,n),Oa(n,{code:Sa.invalid_string,validation:"datetime",message:s.message}),t.dirty())}else"ip"===s.kind?(r=e.data,("v4"!==(i=s.version)&&i||!Ya.test(r))&&("v6"!==i&&i||!Qa.test(r))&&(n=this._getOrReturnCtx(e,n),Oa(n,{validation:"ip",code:Sa.invalid_string,message:s.message}),t.dirty())):wa.assertNever(s);var r,i,o;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:Sa.invalid_string,...Ba.errToObj(n)})}_addCheck(e){return new Xa({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Ba.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Ba.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Ba.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Ba.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Ba.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Ba.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Ba.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Ba.errToObj(e)})}datetime(e){var t;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,...Ba.errToObj(null===e||void 0===e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...Ba.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...Ba.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...Ba.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Ba.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...Ba.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...Ba.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...Ba.errToObj(t)})}nonempty(e){return this.min(1,Ba.errToObj(e))}trim(){return new Xa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Xa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Xa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Ja(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}Xa.create=e=>{var t;return new Xa({checks:[],typeName:zs.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...za(e)})};class es extends Wa{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==Ca.number){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.number,received:t.parsedType}),Ia}let t;const n=new Ta;for(const r of this._def.checks)if("int"===r.kind)wa.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Oa(t,{code:Sa.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),Oa(t,{code:Sa.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Oa(t,{code:Sa.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else"multipleOf"===r.kind?0!==Ja(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),Oa(t,{code:Sa.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Oa(t,{code:Sa.not_finite,message:r.message}),n.dirty()):wa.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Ba.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Ba.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Ba.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Ba.toString(t))}setLimit(e,t,n,r){return new es({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Ba.toString(r)}]})}_addCheck(e){return new es({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Ba.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ba.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ba.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ba.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ba.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Ba.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:Ba.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ba.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ba.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&wa.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}es.create=e=>new es({checks:[],typeName:zs.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...za(e)});class ts extends Wa{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==Ca.bigint){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.bigint,received:t.parsedType}),Ia}let t;const n=new Ta;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),Oa(t,{code:Sa.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Oa(t,{code:Sa.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Oa(t,{code:Sa.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):wa.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Ba.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Ba.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Ba.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Ba.toString(t))}setLimit(e,t,n,r){return new ts({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Ba.toString(r)}]})}_addCheck(e){return new ts({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ba.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ba.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ba.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ba.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Ba.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ts.create=e=>{var t;return new ts({checks:[],typeName:zs.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...za(e)})};class ns extends Wa{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==Ca.boolean){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.boolean,received:t.parsedType}),Ia}return $a(e.data)}}ns.create=e=>new ns({typeName:zs.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...za(e)});class rs extends Wa{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==Ca.date){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.date,received:t.parsedType}),Ia}if(isNaN(e.data.getTime())){return Oa(this._getOrReturnCtx(e),{code:Sa.invalid_date}),Ia}const t=new Ta;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),Oa(n,{code:Sa.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),Oa(n,{code:Sa.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):wa.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new rs({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:Ba.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:Ba.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}rs.create=e=>new rs({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:zs.ZodDate,...za(e)});class is extends Wa{_parse(e){if(this._getType(e)!==Ca.symbol){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.symbol,received:t.parsedType}),Ia}return $a(e.data)}}is.create=e=>new is({typeName:zs.ZodSymbol,...za(e)});class os extends Wa{_parse(e){if(this._getType(e)!==Ca.undefined){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.undefined,received:t.parsedType}),Ia}return $a(e.data)}}os.create=e=>new os({typeName:zs.ZodUndefined,...za(e)});class as extends Wa{_parse(e){if(this._getType(e)!==Ca.null){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.null,received:t.parsedType}),Ia}return $a(e.data)}}as.create=e=>new as({typeName:zs.ZodNull,...za(e)});class ss extends Wa{constructor(){super(...arguments),this._any=!0}_parse(e){return $a(e.data)}}ss.create=e=>new ss({typeName:zs.ZodAny,...za(e)});class ls extends Wa{constructor(){super(...arguments),this._unknown=!0}_parse(e){return $a(e.data)}}ls.create=e=>new ls({typeName:zs.ZodUnknown,...za(e)});class cs extends Wa{_parse(e){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.never,received:t.parsedType}),Ia}}cs.create=e=>new cs({typeName:zs.ZodNever,...za(e)});class us extends Wa{_parse(e){if(this._getType(e)!==Ca.undefined){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.void,received:t.parsedType}),Ia}return $a(e.data)}}us.create=e=>new us({typeName:zs.ZodVoid,...za(e)});class ds extends Wa{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==Ca.array)return Oa(t,{code:Sa.invalid_type,expected:Ca.array,received:t.parsedType}),Ia;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(Oa(t,{code:e?Sa.too_big:Sa.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(Oa(t,{code:Sa.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(Oa(t,{code:Sa.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new Ua(t,e,t.path,n))))).then((e=>Ta.mergeArray(n,e)));const i=[...t.data].map(((e,n)=>r.type._parseSync(new Ua(t,e,t.path,n))));return Ta.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new ds({...this._def,minLength:{value:e,message:Ba.toString(t)}})}max(e,t){return new ds({...this._def,maxLength:{value:e,message:Ba.toString(t)}})}length(e,t){return new ds({...this._def,exactLength:{value:e,message:Ba.toString(t)}})}nonempty(e){return this.min(1,e)}}function hs(e){if(e instanceof ps){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ts.create(hs(r))}return new ps({...e._def,shape:()=>t})}return e instanceof ds?new ds({...e._def,type:hs(e.element)}):e instanceof Ts?Ts.create(hs(e.unwrap())):e instanceof Is?Is.create(hs(e.unwrap())):e instanceof bs?bs.create(e.items.map((e=>hs(e)))):e}ds.create=(e,t)=>new ds({type:e,minLength:null,maxLength:null,exactLength:null,typeName:zs.ZodArray,...za(t)});class ps extends Wa{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=wa.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Ca.object){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.object,received:t.parsedType}),Ia}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof cs&&"strip"===this._def.unknownKeys))for(const s in n.data)i.includes(s)||o.push(s);const a=[];for(const s of i){const e=r[s],t=n.data[s];a.push({key:{status:"valid",value:s},value:e._parse(new Ua(n,t,n.path,s)),alwaysSet:s in n.data})}if(this._def.catchall instanceof cs){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of o)a.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)o.length>0&&(Oa(n,{code:Sa.unrecognized_keys,keys:o}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of o){const r=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new Ua(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>Ta.mergeObjectSync(t,e))):Ta.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return Ba.errToObj,new ps({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,a;const s=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=Ba.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new ps({...this._def,unknownKeys:"strip"})}passthrough(){return new ps({...this._def,unknownKeys:"passthrough"})}extend(e){return new ps({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ps({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:zs.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ps({...this._def,catchall:e})}pick(e){const t={};return wa.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new ps({...this._def,shape:()=>t})}omit(e){const t={};return wa.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new ps({...this._def,shape:()=>t})}deepPartial(){return hs(this)}partial(e){const t={};return wa.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new ps({...this._def,shape:()=>t})}required(e){const t={};return wa.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Ts;)e=e._def.innerType;t[n]=e}})),new ps({...this._def,shape:()=>t})}keyof(){return _s(wa.objectKeys(this.shape))}}ps.create=(e,t)=>new ps({shape:()=>e,unknownKeys:"strip",catchall:cs.create(),typeName:zs.ZodObject,...za(t)}),ps.strictCreate=(e,t)=>new ps({shape:()=>e,unknownKeys:"strict",catchall:cs.create(),typeName:zs.ZodObject,...za(t)}),ps.lazycreate=(e,t)=>new ps({shape:e,unknownKeys:"strip",catchall:cs.create(),typeName:zs.ZodObject,...za(t)});class fs extends Wa{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new ka(e.ctx.common.issues)));return Oa(t,{code:Sa.invalid_union,unionErrors:n}),Ia}));{let e;const r=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map((e=>new ka(e)));return Oa(t,{code:Sa.invalid_union,unionErrors:i}),Ia}}get options(){return this._def.options}}fs.create=(e,t)=>new fs({options:e,typeName:zs.ZodUnion,...za(t)});const ms=e=>e instanceof Ss?ms(e.schema):e instanceof Os?ms(e.innerType()):e instanceof ks?[e.value]:e instanceof Ps?e.options:e instanceof As?Object.keys(e.enum):e instanceof Ns?ms(e._def.innerType):e instanceof os?[void 0]:e instanceof as?[null]:null;class gs extends Wa{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ca.object)return Oa(t,{code:Sa.invalid_type,expected:Ca.object,received:t.parsedType}),Ia;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(Oa(t,{code:Sa.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ia)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const i of t){const t=ms(i.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,i)}}return new gs({typeName:zs.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...za(n)})}}function vs(e,t){const n=Ea(e),r=Ea(t);if(e===t)return{valid:!0,data:e};if(n===Ca.object&&r===Ca.object){const n=wa.objectKeys(t),r=wa.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const o of r){const n=vs(e[o],t[o]);if(!n.valid)return{valid:!1};i[o]=n.data}return{valid:!0,data:i}}if(n===Ca.array&&r===Ca.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const i=vs(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===Ca.date&&r===Ca.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class ys extends Wa{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(Ma(e)||Ma(r))return Ia;const i=vs(e.value,r.value);return i.valid?((ja(e)||ja(r))&&t.dirty(),{status:t.value,value:i.data}):(Oa(n,{code:Sa.invalid_intersection_types}),Ia)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((e=>{let[t,n]=e;return r(t,n)})):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ys.create=(e,t,n)=>new ys({left:e,right:t,typeName:zs.ZodIntersection,...za(n)});class bs extends Wa{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ca.array)return Oa(n,{code:Sa.invalid_type,expected:Ca.array,received:n.parsedType}),Ia;if(n.data.length<this._def.items.length)return Oa(n,{code:Sa.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ia;!this._def.rest&&n.data.length>this._def.items.length&&(Oa(n,{code:Sa.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new Ua(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>Ta.mergeArray(t,e))):Ta.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new bs({...this._def,rest:e})}}bs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new bs({items:e,typeName:zs.ZodTuple,rest:null,...za(t)})};class ws extends Wa{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ca.object)return Oa(n,{code:Sa.invalid_type,expected:Ca.object,received:n.parsedType}),Ia;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in n.data)r.push({key:i._parse(new Ua(n,a,n.path,a)),value:o._parse(new Ua(n,n.data[a],n.path,a))});return n.common.async?Ta.mergeObjectAsync(t,r):Ta.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new ws(t instanceof Wa?{keyType:e,valueType:t,typeName:zs.ZodRecord,...za(n)}:{keyType:Xa.create(),valueType:e,typeName:zs.ZodRecord,...za(t)})}}class xs extends Wa{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ca.map)return Oa(n,{code:Sa.invalid_type,expected:Ca.map,received:n.parsedType}),Ia;const r=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(((e,t)=>{let[o,a]=e;return{key:r._parse(new Ua(n,o,n.path,[t,"key"])),value:i._parse(new Ua(n,a,n.path,[t,"value"]))}}));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of o){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return Ia;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of o){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return Ia;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}xs.create=(e,t,n)=>new xs({valueType:t,keyType:e,typeName:zs.ZodMap,...za(n)});class Cs extends Wa{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ca.set)return Oa(n,{code:Sa.invalid_type,expected:Ca.set,received:n.parsedType}),Ia;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(Oa(n,{code:Sa.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(Oa(n,{code:Sa.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function o(e){const n=new Set;for(const r of e){if("aborted"===r.status)return Ia;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const a=[...n.data.values()].map(((e,t)=>i._parse(new Ua(n,e,n.path,t))));return n.common.async?Promise.all(a).then((e=>o(e))):o(a)}min(e,t){return new Cs({...this._def,minSize:{value:e,message:Ba.toString(t)}})}max(e,t){return new Cs({...this._def,maxSize:{value:e,message:Ba.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Cs.create=(e,t)=>new Cs({valueType:e,minSize:null,maxSize:null,typeName:zs.ZodSet,...za(t)});class Es extends Wa{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ca.function)return Oa(t,{code:Sa.invalid_type,expected:Ca.function,received:t.parsedType}),Ia;function n(e,n){return Ra({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Aa(),_a].filter((e=>!!e)),issueData:{code:Sa.invalid_arguments,argumentsError:n}})}function r(e,n){return Ra({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Aa(),_a].filter((e=>!!e)),issueData:{code:Sa.invalid_return_type,returnTypeError:n}})}const i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Rs){const e=this;return $a((async function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];const l=new ka([]),c=await e._def.args.parseAsync(a,i).catch((e=>{throw l.addIssue(n(a,e)),l})),u=await Reflect.apply(o,this,c);return await e._def.returns._def.type.parseAsync(u,i).catch((e=>{throw l.addIssue(r(u,e)),l}))}))}{const e=this;return $a((function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];const l=e._def.args.safeParse(a,i);if(!l.success)throw new ka([n(a,l.error)]);const c=Reflect.apply(o,this,l.data),u=e._def.returns.safeParse(c,i);if(!u.success)throw new ka([r(c,u.error)]);return u.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Es({...this._def,args:bs.create(t).rest(ls.create())})}returns(e){return new Es({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Es({args:e||bs.create([]).rest(ls.create()),returns:t||ls.create(),typeName:zs.ZodFunction,...za(n)})}}class Ss extends Wa{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ss.create=(e,t)=>new Ss({getter:e,typeName:zs.ZodLazy,...za(t)});class ks extends Wa{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Oa(t,{received:t.data,code:Sa.invalid_literal,expected:this._def.value}),Ia}return{status:"valid",value:e.data}}get value(){return this._def.value}}function _s(e,t){return new Ps({values:e,typeName:zs.ZodEnum,...za(t)})}ks.create=(e,t)=>new ks({value:e,typeName:zs.ZodLiteral,...za(t)});class Ps extends Wa{_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return Oa(t,{expected:wa.joinValues(n),received:t.parsedType,code:Sa.invalid_type}),Ia}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return Oa(t,{received:t.data,code:Sa.invalid_enum_value,options:n}),Ia}return $a(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return Ps.create(e)}exclude(e){return Ps.create(this.options.filter((t=>!e.includes(t))))}}Ps.create=_s;class As extends Wa{_parse(e){const t=wa.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ca.string&&n.parsedType!==Ca.number){const e=wa.objectValues(t);return Oa(n,{expected:wa.joinValues(e),received:n.parsedType,code:Sa.invalid_type}),Ia}if(-1===t.indexOf(e.data)){const e=wa.objectValues(t);return Oa(n,{received:n.data,code:Sa.invalid_enum_value,options:e}),Ia}return $a(e.data)}get enum(){return this._def.values}}As.create=(e,t)=>new As({values:e,typeName:zs.ZodNativeEnum,...za(t)});class Rs extends Wa{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ca.promise&&!1===t.common.async)return Oa(t,{code:Sa.invalid_type,expected:Ca.promise,received:t.parsedType}),Ia;const n=t.parsedType===Ca.promise?t.data:Promise.resolve(t.data);return $a(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Rs.create=(e,t)=>new Rs({type:e,typeName:zs.ZodPromise,...za(t)});class Os extends Wa{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===zs.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{Oa(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){const e=r.transform(n.data,i);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n}))):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?Ia:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?Ia:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!La(e))return e;const o=r.transform(e.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>La(e)?Promise.resolve(r.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}wa.assertNever(r)}}Os.create=(e,t,n)=>new Os({schema:e,typeName:zs.ZodEffects,effect:t,...za(n)}),Os.createWithPreprocess=(e,t,n)=>new Os({schema:t,effect:{type:"preprocess",transform:e},typeName:zs.ZodEffects,...za(n)});class Ts extends Wa{_parse(e){return this._getType(e)===Ca.undefined?$a(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ts.create=(e,t)=>new Ts({innerType:e,typeName:zs.ZodOptional,...za(t)});class Is extends Wa{_parse(e){return this._getType(e)===Ca.null?$a(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Is.create=(e,t)=>new Is({innerType:e,typeName:zs.ZodNullable,...za(t)});class Ns extends Wa{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===Ca.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Ns.create=(e,t)=>new Ns({innerType:e,typeName:zs.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...za(t)});class $s extends Wa{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Da(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new ka(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new ka(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}$s.create=(e,t)=>new $s({innerType:e,typeName:zs.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...za(t)});class Ms extends Wa{_parse(e){if(this._getType(e)!==Ca.nan){const t=this._getOrReturnCtx(e);return Oa(t,{code:Sa.invalid_type,expected:Ca.nan,received:t.parsedType}),Ia}return{status:"valid",value:e.data}}}Ms.create=e=>new Ms({typeName:zs.ZodNaN,...za(e)});const js=Symbol("zod_brand");class Ls extends Wa{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Ds extends Wa{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ia:"dirty"===e.status?(t.dirty(),Na(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ia:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Ds({in:e,out:t,typeName:zs.ZodPipeline})}}class Bs extends Wa{_parse(e){const t=this._def.innerType._parse(e);return La(t)&&(t.value=Object.freeze(t.value)),t}}Bs.create=(e,t)=>new Bs({innerType:e,typeName:zs.ZodReadonly,...za(t)});const Us=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e?ss.create().superRefine(((r,i)=>{var o,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:s})}})):ss.create()},Fs={object:ps.lazycreate};var zs;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(zs||(zs={}));const Ws=Xa.create,Zs=es.create,Hs=Ms.create,Vs=ts.create,qs=ns.create,Gs=rs.create,Ks=is.create,Ys=os.create,Qs=as.create,Xs=ss.create,Js=ls.create,el=cs.create,tl=us.create,nl=ds.create,rl=ps.create,il=ps.strictCreate,ol=fs.create,al=gs.create,sl=ys.create,ll=bs.create,cl=ws.create,ul=xs.create,dl=Cs.create,hl=Es.create,pl=Ss.create,fl=ks.create,ml=Ps.create,gl=As.create,vl=Rs.create,yl=Os.create,bl=Ts.create,wl=Is.create,xl=Os.createWithPreprocess,Cl=Ds.create,El={string:e=>Xa.create({...e,coerce:!0}),number:e=>es.create({...e,coerce:!0}),boolean:e=>ns.create({...e,coerce:!0}),bigint:e=>ts.create({...e,coerce:!0}),date:e=>rs.create({...e,coerce:!0})},Sl=Ia;var kl=Object.freeze({__proto__:null,defaultErrorMap:_a,setErrorMap:function(e){Pa=e},getErrorMap:Aa,makeIssue:Ra,EMPTY_PATH:[],addIssueToContext:Oa,ParseStatus:Ta,INVALID:Ia,DIRTY:Na,OK:$a,isAborted:Ma,isDirty:ja,isValid:La,isAsync:Da,get util(){return wa},get objectUtil(){return xa},ZodParsedType:Ca,getParsedType:Ea,ZodType:Wa,ZodString:Xa,ZodNumber:es,ZodBigInt:ts,ZodBoolean:ns,ZodDate:rs,ZodSymbol:is,ZodUndefined:os,ZodNull:as,ZodAny:ss,ZodUnknown:ls,ZodNever:cs,ZodVoid:us,ZodArray:ds,ZodObject:ps,ZodUnion:fs,ZodDiscriminatedUnion:gs,ZodIntersection:ys,ZodTuple:bs,ZodRecord:ws,ZodMap:xs,ZodSet:Cs,ZodFunction:Es,ZodLazy:Ss,ZodLiteral:ks,ZodEnum:Ps,ZodNativeEnum:As,ZodPromise:Rs,ZodEffects:Os,ZodTransformer:Os,ZodOptional:Ts,ZodNullable:Is,ZodDefault:Ns,ZodCatch:$s,ZodNaN:Ms,BRAND:js,ZodBranded:Ls,ZodPipeline:Ds,ZodReadonly:Bs,custom:Us,Schema:Wa,ZodSchema:Wa,late:Fs,get ZodFirstPartyTypeKind(){return zs},coerce:El,any:Xs,array:nl,bigint:Vs,boolean:qs,date:Gs,discriminatedUnion:al,effect:yl,enum:ml,function:hl,instanceof:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{message:`Input not instance of ${e.name}`};return Us((t=>t instanceof e),t)},intersection:sl,lazy:pl,literal:fl,map:ul,nan:Hs,nativeEnum:gl,never:el,null:Qs,nullable:wl,number:Zs,object:rl,oboolean:()=>qs().optional(),onumber:()=>Zs().optional(),optional:bl,ostring:()=>Ws().optional(),pipeline:Cl,preprocess:xl,promise:vl,record:cl,set:dl,strictObject:il,string:Ws,symbol:Ks,transformer:yl,tuple:ll,undefined:Ys,union:ol,unknown:Js,void:tl,NEVER:Sl,ZodIssueCode:Sa,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:ka});const _l=kl.object({message:kl.string()});function Pl(e){return kl.literal(ya[e])}kl.object({accessList:kl.array(kl.string()),blockHash:kl.string().nullable(),blockNumber:kl.string().nullable(),chainId:kl.string(),from:kl.string(),gas:kl.string(),hash:kl.string(),input:kl.string().nullable(),maxFeePerGas:kl.string(),maxPriorityFeePerGas:kl.string(),nonce:kl.string(),r:kl.string(),s:kl.string(),to:kl.string(),transactionIndex:kl.string().nullable(),type:kl.string(),v:kl.string(),value:kl.string()});const Al=kl.object({chainId:kl.number()}),Rl=kl.object({email:kl.string().email()}),Ol=kl.object({otp:kl.string()}),Tl=kl.object({chainId:kl.optional(kl.number())}),Il=kl.object({email:kl.string().email()}),Nl=kl.object({themeMode:kl.optional(kl.enum(["light","dark"])),themeVariables:kl.optional(kl.record(kl.string(),kl.string().or(kl.number())))}),$l=kl.object({metadata:kl.object({name:kl.string(),description:kl.string(),url:kl.string(),icons:kl.array(kl.string())}).optional(),sdkVersion:kl.string(),projectId:kl.string()}),Ml=kl.object({action:kl.enum(["VERIFY_DEVICE","VERIFY_OTP"])}),jl=kl.object({email:kl.string().email(),address:kl.string(),chainId:kl.number()}),Ll=kl.object({isConnected:kl.boolean()}),Dl=kl.object({chainId:kl.number()}),Bl=kl.object({chainId:kl.number()}),Ul=kl.object({email:kl.string().email()}),Fl=kl.any(),zl=kl.object({method:kl.literal("personal_sign"),params:kl.array(kl.any())}),Wl=kl.object({method:kl.literal("eth_sendTransaction"),params:kl.array(kl.any())}),Zl=kl.object({method:kl.literal("eth_accounts")}),Hl=kl.object({method:kl.literal("eth_getBalance"),params:kl.array(kl.any())}),Vl=kl.object({method:kl.literal("eth_estimateGas"),params:kl.array(kl.any())}),ql=kl.object({method:kl.literal("eth_gasPrice")}),Gl=kl.object({method:kl.literal("eth_signTypedData_v4"),params:kl.array(kl.any())}),Kl=kl.object({method:kl.literal("eth_getTransactionByHash"),params:kl.array(kl.any())}),Yl=kl.object({method:kl.literal("eth_blockNumber")}),Ql=kl.object({method:kl.literal("eth_chainId")}),Xl=kl.object({token:kl.string()}),Jl={appEvent:kl.object({type:Pl("APP_SWITCH_NETWORK"),payload:Al}).or(kl.object({type:Pl("APP_CONNECT_EMAIL"),payload:Rl})).or(kl.object({type:Pl("APP_CONNECT_DEVICE")})).or(kl.object({type:Pl("APP_CONNECT_OTP"),payload:Ol})).or(kl.object({type:Pl("APP_GET_USER"),payload:kl.optional(Tl)})).or(kl.object({type:Pl("APP_SIGN_OUT")})).or(kl.object({type:Pl("APP_IS_CONNECTED"),payload:kl.optional(Xl)})).or(kl.object({type:Pl("APP_GET_CHAIN_ID")})).or(kl.object({type:Pl("APP_RPC_REQUEST"),payload:zl.or(Wl).or(Zl).or(Hl).or(Vl).or(ql).or(Gl).or(Yl).or(Ql).or(Kl)})).or(kl.object({type:Pl("APP_UPDATE_EMAIL"),payload:Il})).or(kl.object({type:Pl("APP_AWAIT_UPDATE_EMAIL")})).or(kl.object({type:Pl("APP_SYNC_THEME"),payload:Nl})).or(kl.object({type:Pl("APP_SYNC_DAPP_DATA"),payload:$l})),frameEvent:kl.object({type:Pl("FRAME_SWITCH_NETWORK_ERROR"),payload:_l}).or(kl.object({type:Pl("FRAME_SWITCH_NETWORK_SUCCESS"),payload:Bl})).or(kl.object({type:Pl("FRAME_CONNECT_EMAIL_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_CONNECT_EMAIL_SUCCESS"),payload:Ml})).or(kl.object({type:Pl("FRAME_CONNECT_OTP_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_CONNECT_OTP_SUCCESS")})).or(kl.object({type:Pl("FRAME_CONNECT_DEVICE_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_CONNECT_DEVICE_SUCCESS")})).or(kl.object({type:Pl("FRAME_GET_USER_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_GET_USER_SUCCESS"),payload:jl})).or(kl.object({type:Pl("FRAME_SIGN_OUT_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_SIGN_OUT_SUCCESS")})).or(kl.object({type:Pl("FRAME_IS_CONNECTED_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_IS_CONNECTED_SUCCESS"),payload:Ll})).or(kl.object({type:Pl("FRAME_GET_CHAIN_ID_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_GET_CHAIN_ID_SUCCESS"),payload:Dl})).or(kl.object({type:Pl("FRAME_RPC_REQUEST_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_RPC_REQUEST_SUCCESS"),payload:Fl})).or(kl.object({type:Pl("FRAME_SESSION_UPDATE"),payload:Xl})).or(kl.object({type:Pl("FRAME_UPDATE_EMAIL_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_UPDATE_EMAIL_SUCCESS")})).or(kl.object({type:Pl("FRAME_AWAIT_UPDATE_EMAIL_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_AWAIT_UPDATE_EMAIL_SUCCESS"),payload:Ul})).or(kl.object({type:Pl("FRAME_SYNC_THEME_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_SYNC_THEME_SUCCESS")})).or(kl.object({type:Pl("FRAME_SYNC_DAPP_DATA_ERROR"),payload:_l})).or(kl.object({type:Pl("FRAME_SYNC_DAPP_DATA_SUCCESS")}))},ec={set(e,t){localStorage.setItem(`${ya.STORAGE_KEY}${e}`,t)},get:e=>localStorage.getItem(`${ya.STORAGE_KEY}${e}`),delete(e){localStorage.removeItem(`${ya.STORAGE_KEY}${e}`)}},tc=["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],nc=3e4,rc={getBlockchainApiUrl(){try{const{timeZone:e}=(new Intl.DateTimeFormat).resolvedOptions(),t=e.toUpperCase();return tc.includes(t)?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com"}catch{return!1}},checkIfAllowedToTriggerEmail(){const e=ec.get(ya.LAST_EMAIL_LOGIN_TIME);if(e){const t=Date.now()-Number(e);if(t<nc){const e=Math.ceil((nc-t)/1e3);throw new Error(`Please try again after ${e} seconds`)}}},getTimeToNextEmailLogin(){const e=ec.get(ya.LAST_EMAIL_LOGIN_TIME);if(e){const t=Date.now()-Number(e);if(t<nc)return Math.ceil((nc-t)/1e3)}return 0}};class ic{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.iframe=null,this.rpcUrl=rc.getBlockchainApiUrl(),this.events={onFrameEvent:e=>{window.addEventListener("message",(t=>{var n;let{data:r}=t;if(null===(n=r.type)||void 0===n||!n.includes(ya.FRAME_EVENT_KEY))return;const i=Jl.frameEvent.parse(r);e(i)}))},onAppEvent:e=>{window.addEventListener("message",(t=>{var n;let{data:r}=t;if(null===(n=r.type)||void 0===n||!n.includes(ya.APP_EVENT_KEY))return;const i=Jl.appEvent.parse(r);e(i)}))},postAppEvent:e=>{var t;if(null===(t=this.iframe)||void 0===t||!t.contentWindow)throw new Error("W3mFrame: iframe is not set");Jl.appEvent.parse(e),window.postMessage(e),this.iframe.contentWindow.postMessage(e,"*")},postFrameEvent:e=>{if(!parent)throw new Error("W3mFrame: parent is not set");Jl.frameEvent.parse(e),parent.postMessage(e,"*")}},this.projectId=e,this.frameLoadPromise=new Promise(((e,t)=>{this.frameLoadPromiseResolver={resolve:e,reject:t}})),t){this.frameLoadPromise=new Promise(((e,t)=>{this.frameLoadPromiseResolver={resolve:e,reject:t}}));const t=document.createElement("iframe");t.id="w3m-iframe",t.src=`${ya.SECURE_SITE_SDK}?projectId=${e}`,t.style.position="fixed",t.style.zIndex="999999",t.style.display="none",t.style.opacity="0",t.style.borderRadius="clamp(0px, var(--wui-border-radius-l), 44px)",document.body.appendChild(t),this.iframe=t,this.iframe.onload=()=>{var e;null===(e=this.frameLoadPromiseResolver)||void 0===e||e.resolve(void 0)},this.iframe.onerror=()=>{var e;null===(e=this.frameLoadPromiseResolver)||void 0===e||e.reject("Unable to load email login dependency")}}}get networks(){const e=[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,324,280,100,8453,84531,7777777,999].map((e=>({[e]:{rpcUrl:`${this.rpcUrl}/v1/?chainId=eip155:${e}&projectId=${this.projectId}`,chainId:e}})));return Object.assign({},...e)}}class oc{constructor(e){this.connectEmailResolver=void 0,this.connectDeviceResolver=void 0,this.connectOtpResolver=void 0,this.connectResolver=void 0,this.disconnectResolver=void 0,this.isConnectedResolver=void 0,this.getChainIdResolver=void 0,this.switchChainResolver=void 0,this.rpcRequestResolver=void 0,this.updateEmailResolver=void 0,this.awaitUpdateEmailResolver=void 0,this.syncThemeResolver=void 0,this.syncDappDataResolver=void 0,this.w3mFrame=new ic(e,!0),this.w3mFrame.events.onFrameEvent((e=>{switch(console.log("\ud83d\udcbb received",e),e.type){case ya.FRAME_CONNECT_EMAIL_SUCCESS:return this.onConnectEmailSuccess(e);case ya.FRAME_CONNECT_EMAIL_ERROR:return this.onConnectEmailError(e);case ya.FRAME_CONNECT_DEVICE_SUCCESS:return this.onConnectDeviceSuccess();case ya.FRAME_CONNECT_DEVICE_ERROR:return this.onConnectDeviceError(e);case ya.FRAME_CONNECT_OTP_SUCCESS:return this.onConnectOtpSuccess();case ya.FRAME_CONNECT_OTP_ERROR:return this.onConnectOtpError(e);case ya.FRAME_GET_USER_SUCCESS:return this.onConnectSuccess(e);case ya.FRAME_GET_USER_ERROR:return this.onConnectError(e);case ya.FRAME_IS_CONNECTED_SUCCESS:return this.onIsConnectedSuccess(e);case ya.FRAME_IS_CONNECTED_ERROR:return this.onIsConnectedError(e);case ya.FRAME_GET_CHAIN_ID_SUCCESS:return this.onGetChainIdSuccess(e);case ya.FRAME_GET_CHAIN_ID_ERROR:return this.onGetChainIdError(e);case ya.FRAME_SIGN_OUT_SUCCESS:return this.onSignOutSuccess();case ya.FRAME_SIGN_OUT_ERROR:return this.onSignOutError(e);case ya.FRAME_SWITCH_NETWORK_SUCCESS:return this.onSwitchChainSuccess(e);case ya.FRAME_SWITCH_NETWORK_ERROR:return this.onSwitchChainError(e);case ya.FRAME_RPC_REQUEST_SUCCESS:return this.onRpcRequestSuccess(e);case ya.FRAME_RPC_REQUEST_ERROR:return this.onRpcRequestError(e);case ya.FRAME_SESSION_UPDATE:return this.onSessionUpdate(e);case ya.FRAME_UPDATE_EMAIL_SUCCESS:return this.onUpdateEmailSuccess();case ya.FRAME_UPDATE_EMAIL_ERROR:return this.onUpdateEmailError(e);case ya.FRAME_AWAIT_UPDATE_EMAIL_SUCCESS:return this.onAwaitUpdateEmailSuccess(e);case ya.FRAME_AWAIT_UPDATE_EMAIL_ERROR:return this.onAwaitUpdateEmailError(e);case ya.FRAME_SYNC_THEME_SUCCESS:return this.onSyncThemeSuccess();case ya.FRAME_SYNC_THEME_ERROR:return this.onSyncThemeError(e);case ya.FRAME_SYNC_DAPP_DATA_SUCCESS:return this.onSyncDappDataSuccess();case ya.FRAME_SYNC_DAPP_DATA_ERROR:return this.onSyncDappDataError(e);default:return null}}))}getLoginEmailUsed(){return Boolean(ec.get(ya.EMAIL_LOGIN_USED_KEY))}getEmail(){return ec.get(ya.EMAIL)}async connectEmail(e){return await this.w3mFrame.frameLoadPromise,rc.checkIfAllowedToTriggerEmail(),this.w3mFrame.events.postAppEvent({type:ya.APP_CONNECT_EMAIL,payload:e}),new Promise(((e,t)=>{this.connectEmailResolver={resolve:e,reject:t}}))}async connectDevice(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_CONNECT_DEVICE}),new Promise(((e,t)=>{this.connectDeviceResolver={resolve:e,reject:t}}))}async connectOtp(e){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_CONNECT_OTP,payload:e}),new Promise(((e,t)=>{this.connectOtpResolver={resolve:e,reject:t}}))}async isConnected(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_IS_CONNECTED,payload:void 0}),new Promise(((e,t)=>{this.isConnectedResolver={resolve:e,reject:t}}))}async getChainId(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_GET_CHAIN_ID}),new Promise(((e,t)=>{this.getChainIdResolver={resolve:e,reject:t}}))}async updateEmail(e){return await this.w3mFrame.frameLoadPromise,rc.checkIfAllowedToTriggerEmail(),this.w3mFrame.events.postAppEvent({type:ya.APP_UPDATE_EMAIL,payload:e}),new Promise(((e,t)=>{this.updateEmailResolver={resolve:e,reject:t}}))}async awaitUpdateEmail(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_AWAIT_UPDATE_EMAIL}),new Promise(((e,t)=>{this.awaitUpdateEmailResolver={resolve:e,reject:t}}))}async syncTheme(e){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_SYNC_THEME,payload:e}),new Promise(((e,t)=>{this.syncThemeResolver={resolve:e,reject:t}}))}async syncDappData(e){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_SYNC_DAPP_DATA,payload:e}),new Promise(((e,t)=>{this.syncDappDataResolver={resolve:e,reject:t}}))}async connect(e){var t,n;const r=null!==(t=null!==(n=null===e||void 0===e?void 0:e.chainId)&&void 0!==n?n:this.getLastUsedChainId())&&void 0!==t?t:1;return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_GET_USER,payload:{chainId:r}}),new Promise(((e,t)=>{this.connectResolver={resolve:e,reject:t}}))}async switchNetwork(e){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_SWITCH_NETWORK,payload:{chainId:e}}),new Promise(((e,t)=>{this.switchChainResolver={resolve:e,reject:t}}))}async disconnect(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:ya.APP_SIGN_OUT}),new Promise(((e,t)=>{this.disconnectResolver={resolve:e,reject:t}}))}async request(e){return await this.w3mFrame.frameLoadPromise,ba===e.method?this.getLastUsedChainId():(this.w3mFrame.events.postAppEvent({type:ya.APP_RPC_REQUEST,payload:e}),new Promise(((e,t)=>{this.rpcRequestResolver={resolve:e,reject:t}})))}onRpcRequest(e){this.w3mFrame.events.onAppEvent((t=>{t.type.includes(ya.RPC_METHOD_KEY)&&e(t)}))}onRpcResponse(e){this.w3mFrame.events.onFrameEvent((t=>{t.type.includes(ya.RPC_METHOD_KEY)&&e(t)}))}onIsConnected(e){this.w3mFrame.events.onFrameEvent((t=>{t.type===ya.FRAME_GET_USER_SUCCESS&&e()}))}onConnectEmailSuccess(e){var t;null===(t=this.connectEmailResolver)||void 0===t||t.resolve(e.payload),this.setNewLastEmailLoginTime()}onConnectEmailError(e){var t;null===(t=this.connectEmailResolver)||void 0===t||t.reject(e.payload.message)}onConnectDeviceSuccess(){var e;null===(e=this.connectDeviceResolver)||void 0===e||e.resolve(void 0)}onConnectDeviceError(e){var t;null===(t=this.connectDeviceResolver)||void 0===t||t.reject(e.payload.message)}onConnectOtpSuccess(){var e;null===(e=this.connectOtpResolver)||void 0===e||e.resolve(void 0)}onConnectOtpError(e){var t;null===(t=this.connectOtpResolver)||void 0===t||t.reject(e.payload.message)}onConnectSuccess(e){var t;this.setEmailLoginSuccess(e.payload.email),this.setLastUsedChainId(e.payload.chainId),null===(t=this.connectResolver)||void 0===t||t.resolve(e.payload)}onConnectError(e){var t;null===(t=this.connectResolver)||void 0===t||t.reject(e.payload.message)}onIsConnectedSuccess(e){var t;e.payload.isConnected||this.deleteEmailLoginCache(),null===(t=this.isConnectedResolver)||void 0===t||t.resolve(e.payload)}onIsConnectedError(e){var t;null===(t=this.isConnectedResolver)||void 0===t||t.reject(e.payload.message)}onGetChainIdSuccess(e){var t;this.setLastUsedChainId(e.payload.chainId),null===(t=this.getChainIdResolver)||void 0===t||t.resolve(e.payload)}onGetChainIdError(e){var t;null===(t=this.getChainIdResolver)||void 0===t||t.reject(e.payload.message)}onSignOutSuccess(){var e;null===(e=this.disconnectResolver)||void 0===e||e.resolve(void 0),this.deleteEmailLoginCache()}onSignOutError(e){var t;null===(t=this.disconnectResolver)||void 0===t||t.reject(e.payload.message)}onSwitchChainSuccess(e){var t;this.setLastUsedChainId(e.payload.chainId),null===(t=this.switchChainResolver)||void 0===t||t.resolve(e.payload)}onSwitchChainError(e){var t;null===(t=this.switchChainResolver)||void 0===t||t.reject(e.payload.message)}onRpcRequestSuccess(e){var t;null===(t=this.rpcRequestResolver)||void 0===t||t.resolve(e.payload)}onRpcRequestError(e){var t;null===(t=this.rpcRequestResolver)||void 0===t||t.reject(e.payload.message)}onSessionUpdate(e){const{payload:t}=e}onUpdateEmailSuccess(){var e;null===(e=this.updateEmailResolver)||void 0===e||e.resolve(void 0),this.setNewLastEmailLoginTime()}onUpdateEmailError(e){var t;null===(t=this.updateEmailResolver)||void 0===t||t.reject(e.payload.message)}onAwaitUpdateEmailSuccess(e){var t;this.setEmailLoginSuccess(e.payload.email),null===(t=this.awaitUpdateEmailResolver)||void 0===t||t.resolve(e.payload)}onAwaitUpdateEmailError(e){var t;null===(t=this.awaitUpdateEmailResolver)||void 0===t||t.reject(e.payload.message)}onSyncThemeSuccess(){var e;null===(e=this.syncThemeResolver)||void 0===e||e.resolve(void 0)}onSyncThemeError(e){var t;null===(t=this.syncThemeResolver)||void 0===t||t.reject(e.payload.message)}onSyncDappDataSuccess(){var e;null===(e=this.syncDappDataResolver)||void 0===e||e.resolve(void 0)}onSyncDappDataError(e){var t;null===(t=this.syncDappDataResolver)||void 0===t||t.reject(e.payload.message)}setNewLastEmailLoginTime(){ec.set(ya.LAST_EMAIL_LOGIN_TIME,Date.now().toString())}setEmailLoginSuccess(e){ec.set(ya.EMAIL,e),ec.set(ya.EMAIL_LOGIN_USED_KEY,"true"),ec.delete(ya.LAST_EMAIL_LOGIN_TIME)}deleteEmailLoginCache(){ec.delete(ya.EMAIL_LOGIN_USED_KEY),ec.delete(ya.EMAIL),ec.delete(ya.LAST_USED_CHAIN_KEY)}setLastUsedChainId(e){ec.set(ya.LAST_USED_CHAIN_KEY,`${e}`)}getLastUsedChainId(){return Number(ec.get(ya.LAST_USED_CHAIN_KEY))}}var ac=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let sc=class extends go.oi{constructor(){var e;super(...arguments),this.email=null===(e=fo.RouterController.state.data)||void 0===e?void 0:e.email,this.emailConnector=fo.ConnectorController.getEmailConnector(),this.loading=!1,this.timeoutTimeLeft=rc.getTimeToNextEmailLogin(),this.error="",this.otp=""}firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}render(){if(!this.email)throw new Error("w3m-email-verify-otp-view: No email provided");const e=Boolean(this.timeoutTimeLeft);return go.dy` <wui-flex flexDirection="column" alignItems="center" .padding=${["l","0","l","0"]} gap="l" > <wui-flex flexDirection="column" alignItems="center"> <wui-text variant="paragraph-400" color="fg-100"> Enter the code we sent to </wui-text> <wui-text variant="paragraph-500" color="fg-100">${this.email}</wui-text> </wui-flex> <wui-text variant="small-400" color="fg-200">The code expires in 20 minutes</wui-text> ${this.loading?go.dy`<wui-loading-spinner size="xl" color="accent-100"></wui-loading-spinner>`:go.dy` <wui-flex flexDirection="column" alignItems="center" gap="xs"> <wui-otp dissabled length="6" @inputChange=${this.onOtpInputChange.bind(this)} .otp=${this.otp} ></wui-otp> ${this.error?go.dy`<wui-text variant="small-400" color="error-100" >${this.error}. Try Again</wui-text >`:null} </wui-flex>`} <wui-flex alignItems="center"> <wui-text variant="small-400" color="fg-200">Didn't receive it?</wui-text> <wui-link @click=${this.onResendCode.bind(this)} .disabled=${e}> Resend ${e?`in ${this.timeoutTimeLeft}s`:"Code"} </wui-link> </wui-flex> </wui-flex> `}startOTPTimeout(){this.timeoutTimeLeft=rc.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval((()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=rc.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)}),1e3)}async onOtpInputChange(e){try{this.loading||(this.otp=e.detail,this.emailConnector&&6===this.otp.length&&(this.loading=!0,await this.emailConnector.provider.connectOtp({otp:this.otp}),fo.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),await fo.ConnectionController.connectExternal(this.emailConnector),fo.IN.close(),fo.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email"}})))}catch(t){fo.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),this.error=fo.j1.parseError(t),this.loading=!1}}async onResendCode(){try{if(!this.loading&&!this.timeoutTimeLeft){this.error="",this.otp="";const e=fo.ConnectorController.getEmailConnector();if(!e||!this.email)throw new Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await e.provider.connectEmail({email:this.email}),fo.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),this.startOTPTimeout(),fo.SnackController.showSuccess("Code email resent")}}catch(e){fo.SnackController.showError(e)}finally{this.loading=!1}}};sc.styles=va,ac([(0,vo.SB)()],sc.prototype,"loading",void 0),ac([(0,vo.SB)()],sc.prototype,"timeoutTimeLeft",void 0),ac([(0,vo.SB)()],sc.prototype,"error",void 0),sc=ac([(0,mo.customElement)("w3m-email-verify-otp-view")],sc);const lc=go.iv` wui-icon-box { height: var(--wui-icon-box-size-xl); width: var(--wui-icon-box-size-xl); } `;var cc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let uc=class extends go.oi{constructor(){var e;super(),this.email=null===(e=fo.RouterController.state.data)||void 0===e?void 0:e.email,this.emailConnector=fo.ConnectorController.getEmailConnector(),this.loading=!1,this.listenForDeviceApproval()}render(){if(!this.email)throw new Error("w3m-email-verify-device-view: No email provided");if(!this.emailConnector)throw new Error("w3m-email-verify-device-view: No email connector provided");return go.dy` <wui-flex flexDirection="column" alignItems="center" .padding=${["xxl","s","xxl","s"]} gap="l" > <wui-icon-box size="xl" iconcolor="accent-100" backgroundcolor="accent-100" icon="verify" background="opaque" ></wui-icon-box> <wui-flex flexDirection="column" alignItems="center" gap="s"> <wui-flex flexDirection="column" alignItems="center"> <wui-text variant="paragraph-400" color="fg-100"> Approve the login link we sent to </wui-text> <wui-text variant="paragraph-400" color="fg-100"><b>${this.email}</b></wui-text> </wui-flex> <wui-text variant="small-400" color="fg-200" align="center"> The code expires in 20 minutes </wui-text> <wui-flex alignItems="center" id="w3m-resend-section"> <wui-text variant="small-400" color="fg-100" align="center"> Didn't receive it? </wui-text> <wui-link @click=${this.onResendCode.bind(this)} .disabled=${this.loading}> Resend email </wui-link> </wui-flex> </wui-flex> </wui-flex> `}async listenForDeviceApproval(){this.emailConnector&&(await this.emailConnector.provider.connectDevice(),fo.Xs.sendEvent({type:"track",event:"DEVICE_REGISTERED_FOR_EMAIL"}),fo.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),fo.RouterController.replace("EmailVerifyOtp",{email:this.email}))}async onResendCode(){try{if(!this.loading){if(!this.emailConnector||!this.email)throw new Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.emailConnector.provider.connectEmail({email:this.email}),fo.SnackController.showSuccess("Code email resent")}}catch(e){fo.SnackController.showError(e)}finally{this.loading=!1}}};uc.styles=lc,cc([(0,vo.SB)()],uc.prototype,"loading",void 0),uc=cc([(0,mo.customElement)("w3m-email-verify-device-view")],uc);const dc=go.iv` div { width: 100%; height: 400px; } [data-ready='false'] { transform: scale(1.05); } @media (max-width: 430px) { [data-ready='false'] { transform: translateY(-50px); } } `;var hc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let pc=class extends go.oi{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(fo.IN.subscribeKey("open",(e=>{e||this.onHideIframe()})))}disconnectedCallback(){var e;this.unsubscribe.forEach((e=>e())),null===(e=this.bodyObserver)||void 0===e||e.unobserve(window.document.body)}firstUpdated(){this.iframe.style.display="block";const e=this.renderRoot.querySelector("div");this.bodyObserver=new ResizeObserver((()=>{const t=null===e||void 0===e?void 0:e.getBoundingClientRect(),n=null!==t&&void 0!==t?t:{left:0,top:0,width:0,height:0};this.iframe.style.width=`${n.width}px`,this.iframe.style.height=n.height-10+"px",this.iframe.style.left=`${n.left}px`,this.iframe.style.top=`${n.top+5}px`,this.ready=!0})),this.bodyObserver.observe(window.document.body)}render(){return this.ready&&this.onShowIframe(),go.dy`<div data-ready=${this.ready}></div>`}onShowIframe(){const e=window.innerWidth<=430;this.iframe.animate([{opacity:0,transform:e?"translateY(50px)":"scale(.95)"},{opacity:1,transform:e?"translateY(0)":"scale(1)"}],{duration:200,easing:"ease",fill:"forwards",delay:300})}async onHideIframe(){await this.iframe.animate([{opacity:1},{opacity:0}],{duration:200,easing:"ease",fill:"forwards"}).finished,this.iframe.style.display="none"}};pc.styles=dc,hc([(0,vo.SB)()],pc.prototype,"ready",void 0),pc=hc([(0,mo.customElement)("w3m-approve-transaction-view")],pc);var fc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let mc=class extends go.oi{render(){return go.dy` <wui-flex flexDirection="column" alignItems="center" gap="xl" padding="xl"> <wui-text variant="paragraph-400" color="fg-100">Follow the instructions on</wui-text> <wui-chip icon="externalLink" variant="fill" href=${fo.bq.SECURE_SITE_DASHBOARD} imageSrc=${fo.bq.SECURE_SITE_FAVICON} > </wui-chip> <wui-text variant="small-400" color="fg-200"> You will have to reconnect for security reasons </wui-text> </wui-flex> `}};mc=fc([(0,mo.customElement)("w3m-upgrade-wallet-view")],mc);var gc=n(4135);const vc=go.iv` wui-email-input { width: 100%; } form { width: 100%; display: block; position: relative; } `;var yc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let bc=class extends go.oi{constructor(){var e,t;super(...arguments),this.formRef=(0,gc.V)(),this.initialValue=null!==(e=null===(t=fo.RouterController.state.data)||void 0===t?void 0:t.email)&&void 0!==e?e:"",this.email="",this.loading=!1}firstUpdated(){var e;null===(e=this.formRef.value)||void 0===e||e.addEventListener("keydown",(e=>{"Enter"===e.key&&this.onSubmitEmail(e)}))}render(){const e=!this.loading&&this.email.length>3&&this.email!==this.initialValue;return go.dy` <wui-flex flexDirection="column" padding="m" gap="m"> <form ${(0,gc.i)(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}> <wui-email-input value=${this.initialValue} .disabled=${this.loading} @inputChange=${this.onEmailInputChange.bind(this)} > </wui-email-input> <input type="submit" hidden /> </form> <wui-flex gap="s"> <wui-button size="md" variant="shade" fullWidth @click=${fo.RouterController.goBack}> Cancel </wui-button> <wui-button size="md" variant="fill" fullWidth @click=${this.onSubmitEmail.bind(this)} .disabled=${!e} .loading=${this.loading} > Save </wui-button> </wui-flex> </wui-flex> `}onEmailInputChange(e){this.email=e.detail}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();const t=fo.ConnectorController.getEmailConnector();if(!t)throw new Error("w3m-update-email-wallet: Email connector not found");await t.provider.updateEmail({email:this.email}),fo.Xs.sendEvent({type:"track",event:"EMAIL_EDIT"}),fo.RouterController.replace("UpdateEmailWalletWaiting",{email:this.email})}catch(t){fo.SnackController.showError(t),this.loading=!1}}};bc.styles=vc,yc([(0,vo.SB)()],bc.prototype,"email",void 0),yc([(0,vo.SB)()],bc.prototype,"loading",void 0),bc=yc([(0,mo.customElement)("w3m-update-email-wallet-view")],bc);const wc=go.iv` wui-icon-box { height: var(--wui-icon-box-size-xl); width: var(--wui-icon-box-size-xl); } `;var xc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Cc=class extends go.oi{constructor(){var e;super(),this.email=null===(e=fo.RouterController.state.data)||void 0===e?void 0:e.email,this.emailConnector=fo.ConnectorController.getEmailConnector(),this.loading=!1,this.listenForEmailUpdateApproval()}render(){if(!this.email)throw new Error("w3m-update-email-wallet-waiting-view: No email provided");if(!this.emailConnector)throw new Error("w3m-update-email-wallet-waiting-view: No email connector provided");return go.dy` <wui-flex flexDirection="column" alignItems="center" .padding=${["xxl","s","xxl","s"]} gap="l" > <wui-icon-box size="xl" iconcolor="accent-100" backgroundcolor="accent-100" icon="mail" background="opaque" ></wui-icon-box> <wui-flex flexDirection="column" alignItems="center" gap="s"> <wui-flex flexDirection="column" alignItems="center"> <wui-text variant="paragraph-400" color="fg-100"> Approve verification link we sent to </wui-text> <wui-text variant="paragraph-400" color="fg-100">${this.email}</wui-text> </wui-flex> <wui-text variant="small-400" color="fg-200" align="center"> You will receive an approval request on your former mail to confirm the new one </wui-text> <wui-flex alignItems="center" id="w3m-resend-section"> <wui-text variant="small-400" color="fg-100" align="center"> Didn't receive it? </wui-text> <wui-link @click=${this.onResendCode.bind(this)} .disabled=${this.loading}> Resend email </wui-link> </wui-flex> </wui-flex> </wui-flex> `}async listenForEmailUpdateApproval(){this.emailConnector&&(await this.emailConnector.provider.awaitUpdateEmail(),fo.RouterController.replace("Account"),fo.SnackController.showSuccess("Email updated"))}async onResendCode(){try{if(!this.loading){if(!this.emailConnector||!this.email)throw new Error("w3m-update-email-wallet-waiting-view: Unable to resend email");this.loading=!0,await this.emailConnector.provider.updateEmail({email:this.email}),this.listenForEmailUpdateApproval(),fo.SnackController.showSuccess("Code email resent")}}catch(e){fo.SnackController.showError(e)}finally{this.loading=!1}}};Cc.styles=wc,xc([(0,vo.SB)()],Cc.prototype,"loading",void 0),Cc=xc([(0,mo.customElement)("w3m-update-email-wallet-waiting-view")],Cc);const Ec=go.iv` wui-grid { max-height: clamp(360px, 400px, 80vh); overflow: scroll; scrollbar-width: none; grid-auto-rows: min-content; grid-template-columns: repeat(auto-fill, 76px); } @media (max-width: 435px) { wui-grid { grid-template-columns: repeat(auto-fill, 77px); } } wui-grid[data-scroll='false'] { overflow: hidden; } wui-grid::-webkit-scrollbar { display: none; } wui-loading-spinner { padding-top: var(--wui-spacing-l); padding-bottom: var(--wui-spacing-l); justify-content: center; grid-column: 1 / span 4; } `;function Sc(e){const{connectors:t}=fo.ConnectorController.state,n=t.filter((e=>"ANNOUNCED"===e.type)).reduce(((e,t)=>{var n;return null!==(n=t.info)&&void 0!==n&&n.rdns?(e[t.info.rdns]=!0,e):e}),{});return e.map((e=>{var t;return{...e,installed:Boolean(e.rdns)&&Boolean(n[null!==(t=e.rdns)&&void 0!==t?t:""])}})).sort(((e,t)=>Number(t.installed)-Number(e.installed)))}var kc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const _c="local-paginator";let Pc=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.initial=!fo.ApiController.state.wallets.length,this.wallets=fo.ApiController.state.wallets,this.recommended=fo.ApiController.state.recommended,this.featured=fo.ApiController.state.featured,this.unsubscribe.push(fo.ApiController.subscribeKey("wallets",(e=>this.wallets=e)),fo.ApiController.subscribeKey("recommended",(e=>this.recommended=e)),fo.ApiController.subscribeKey("featured",(e=>this.featured=e)))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){var e;this.unsubscribe.forEach((e=>e())),null===(e=this.paginationObserver)||void 0===e||e.disconnect()}render(){return go.dy` <wui-grid data-scroll=${!this.initial} .padding=${["0","s","s","s"]} columnGap="xxs" rowGap="l" justifyContent="space-between" > ${this.initial?this.shimmerTemplate(16):this.walletsTemplate()} ${this.paginationLoaderTemplate()} </wui-grid> `}async initialFetch(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("wui-grid");this.initial&&t&&(await fo.ApiController.fetchWallets({page:1}),await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.initial=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,t){return[...Array(e)].map((()=>go.dy` <wui-card-select-loader type="wallet" id=${(0,yo.o)(t)}></wui-card-select-loader> `))}walletsTemplate(){return Sc([...this.featured,...this.recommended,...this.wallets]).map((e=>go.dy` <wui-card-select imageSrc=${(0,yo.o)(fo.fz.getWalletImage(e))} type="wallet" name=${e.name} @click=${()=>this.onConnectWallet(e)} .installed=${e.installed} ></wui-card-select> `))}paginationLoaderTemplate(){const{wallets:e,recommended:t,featured:n,count:r}=fo.ApiController.state,i=window.innerWidth<352?3:4,o=e.length+t.length;let a=Math.ceil(o/i)*i-o+i;return a-=e.length?n.length%i:0,0===r&&n.length>0?null:0===r||[...n,...e,...t].length<r?this.shimmerTemplate(a,_c):null}createPaginationObserver(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(`#${_c}`);t&&(this.paginationObserver=new IntersectionObserver((e=>{let[t]=e;if(null!==t&&void 0!==t&&t.isIntersecting&&!this.initial){const{page:e,count:t,wallets:n}=fo.ApiController.state;n.length<t&&fo.ApiController.fetchWallets({page:e+1})}})),this.paginationObserver.observe(t))}onConnectWallet(e){const{connectors:t}=fo.ConnectorController.state,n=t.find((t=>{let{explorerId:n}=t;return n===e.id}));n?fo.RouterController.push("ConnectingExternal",{connector:n}):fo.RouterController.push("ConnectingWalletConnect",{wallet:e})}};Pc.styles=Ec,kc([(0,vo.SB)()],Pc.prototype,"initial",void 0),kc([(0,vo.SB)()],Pc.prototype,"wallets",void 0),kc([(0,vo.SB)()],Pc.prototype,"recommended",void 0),kc([(0,vo.SB)()],Pc.prototype,"featured",void 0),Pc=kc([(0,mo.customElement)("w3m-all-wallets-list")],Pc);const Ac=go.iv` wui-grid, wui-loading-spinner, wui-flex { height: 360px; } wui-grid { overflow: scroll; scrollbar-width: none; grid-auto-rows: min-content; } wui-grid[data-scroll='false'] { overflow: hidden; } wui-grid::-webkit-scrollbar { display: none; } wui-loading-spinner { justify-content: center; align-items: center; } `;var Rc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Oc=class extends go.oi{constructor(){super(...arguments),this.prevQuery="",this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?go.dy`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){this.query!==this.prevQuery&&(this.prevQuery=this.query,this.loading=!0,await fo.ApiController.searchWallet({search:this.query}),this.loading=!1)}walletsTemplate(){const{search:e}=fo.ApiController.state,t=Sc(e);return e.length?go.dy` <wui-grid .padding=${["0","s","s","s"]} gridTemplateColumns="repeat(4, 1fr)" rowGap="l" columnGap="xs" > ${t.map((e=>go.dy` <wui-card-select imageSrc=${(0,yo.o)(fo.fz.getWalletImage(e))} type="wallet" name=${e.name} @click=${()=>this.onConnectWallet(e)} .installed=${e.installed} ></wui-card-select> `))} </wui-grid> `:go.dy` <wui-flex justifyContent="center" alignItems="center" gap="s" flexDirection="column"> <wui-icon-box size="lg" iconColor="fg-200" backgroundColor="fg-300" icon="wallet" background="transparent" ></wui-icon-box> <wui-text color="fg-200" variant="paragraph-500">No Wallet found</wui-text> </wui-flex> `}onConnectWallet(e){const{connectors:t}=fo.ConnectorController.state,n=t.find((t=>{let{explorerId:n}=t;return n===e.id}));n?fo.RouterController.push("ConnectingExternal",{connector:n}):fo.RouterController.push("ConnectingWalletConnect",{wallet:e})}};Oc.styles=Ac,Rc([(0,vo.SB)()],Oc.prototype,"loading",void 0),Rc([(0,vo.Cb)()],Oc.prototype,"query",void 0),Oc=Rc([(0,mo.customElement)("w3m-all-wallets-search")],Oc);var Tc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ic=class extends go.oi{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(fo.ConnectionController.subscribeKey("buffering",(e=>this.buffering=e)))}disconnectCallback(){this.unsubscribe.forEach((e=>e()))}render(){const e=this.generateTabs();return go.dy` <wui-flex justifyContent="center" .padding=${["l","0","0","0"]}> <wui-tabs ?disabled=${this.buffering} .tabs=${e} .onTabChange=${this.onTabChange.bind(this)} ></wui-tabs> </wui-flex> `}generateTabs(){const e=this.platforms.map((e=>"browser"===e?{label:"Browser",icon:"extension",platform:"browser"}:"mobile"===e?{label:"Mobile",icon:"mobile",platform:"mobile"}:"qrcode"===e?{label:"Mobile",icon:"mobile",platform:"qrcode"}:"web"===e?{label:"Webapp",icon:"browser",platform:"web"}:"desktop"===e?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"}));return this.platformTabs=e.map((e=>{let{platform:t}=e;return t})),e}onTabChange(e){const t=this.platformTabs[e];var n;t&&(null===(n=this.onSelectPlatfrom)||void 0===n||n.call(this,t))}};Tc([(0,vo.Cb)({type:Array})],Ic.prototype,"platforms",void 0),Tc([(0,vo.Cb)()],Ic.prototype,"onSelectPlatfrom",void 0),Tc([(0,vo.SB)()],Ic.prototype,"buffering",void 0),Ic=Tc([(0,mo.customElement)("w3m-connecting-header")],Ic);var Nc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let $c=class extends zo{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),fo.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;const{connectors:e}=fo.ConnectorController.state,t=e.find((e=>{var t,n;return"ANNOUNCED"===e.type&&(null===(t=e.info)||void 0===t?void 0:t.rdns)===(null===(n=this.wallet)||void 0===n?void 0:n.rdns)})),n=e.find((e=>"INJECTED"===e.type));t?await fo.ConnectionController.connectExternal(t):n&&await fo.ConnectionController.connectExternal(n),fo.IN.close(),fo.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser"}})}catch(t){var e;fo.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:null!==(e=null===t||void 0===t?void 0:t.message)&&void 0!==e?e:"Unknown"}}),this.error=!0}}};$c=Nc([(0,mo.customElement)("w3m-connecting-wc-browser")],$c);var Mc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let jc=class extends zo{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),fo.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.timeout=setTimeout((()=>{var e;null===(e=this.onConnect)||void 0===e||e.call(this)}),200))}onConnectProxy(){var e;if(null!==(e=this.wallet)&&void 0!==e&&e.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:e,name:t}=this.wallet,{redirect:n,href:r}=fo.j1.formatNativeUrl(e,this.uri);fo.ConnectionController.setWcLinking({name:t,href:r}),fo.ConnectionController.setRecentWallet(this.wallet),fo.j1.openHref(n,"_blank")}catch{this.error=!0}}};jc=Mc([(0,mo.customElement)("w3m-connecting-wc-desktop")],jc);var Lc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Dc=class extends zo{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),document.addEventListener("visibilitychange",this.onBuffering.bind(this)),fo.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this))}onRenderProxy(){var e;!this.ready&&this.uri&&(this.ready=!0,null===(e=this.onConnect)||void 0===e||e.call(this))}onConnectProxy(){var e;if(null!==(e=this.wallet)&&void 0!==e&&e.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:e,name:t}=this.wallet,{redirect:n,href:r}=fo.j1.formatNativeUrl(e,this.uri);fo.ConnectionController.setWcLinking({name:t,href:r}),fo.ConnectionController.setRecentWallet(this.wallet),fo.j1.openHref(n,"_self")}catch{this.error=!0}}onBuffering(){var e;const t=fo.j1.isIos();"visible"===(null===(e=document)||void 0===e?void 0:e.visibilityState)&&!this.error&&t&&(fo.ConnectionController.setBuffering(!0),setTimeout((()=>{fo.ConnectionController.setBuffering(!1)}),5e3))}};Dc=Lc([(0,mo.customElement)("w3m-connecting-wc-mobile")],Dc);const Bc=go.iv` @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } wui-shimmer { width: 100%; aspect-ratio: 1 / 1; border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important; } wui-qr-code { opacity: 0; animation-duration: 200ms; animation-timing-function: ease; animation-name: fadein; animation-fill-mode: forwards; } `;var Uc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Fc=class extends zo{constructor(){var e,t;super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),fo.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:null!==(e=null===(t=this.wallet)||void 0===t?void 0:t.name)&&void 0!==e?e:"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),go.dy` <wui-flex padding="xl" flexDirection="column" gap="xl" alignItems="center"> <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer> <wui-text variant="paragraph-500" color="fg-100"> Scan this QR Code with your phone </wui-text> ${this.copyTemplate()} </wui-flex> <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout((()=>{this.ready=!0}),200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;const e=this.getBoundingClientRect().width-40,t=this.wallet?this.wallet.name:void 0;return fo.ConnectionController.setWcLinking(void 0),fo.ConnectionController.setRecentWallet(this.wallet),go.dy` <wui-qr-code size=${e} theme=${fo.ThemeController.state.themeMode} uri=${this.uri} imageSrc=${(0,yo.o)(fo.fz.getWalletImage(this.wallet))} alt=${(0,yo.o)(t)} ></wui-qr-code>`}copyTemplate(){const e=!this.uri||!this.ready;return go.dy`<wui-link .disabled=${e} @click=${this.onCopyUri} color="fg-200" data-testid="copy-wc2-uri" > <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon> Copy link </wui-link>`}};Fc.styles=Bc,Fc=Uc([(0,mo.customElement)("w3m-connecting-wc-qrcode")],Fc);const zc=go.iv` :host { display: flex; justify-content: center; gap: var(--wui-spacing-2xl); } wui-visual-thumbnail:nth-child(1) { z-index: 1; } `;var Wc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Zc=class extends go.oi{constructor(){var e;super(...arguments),this.dappImageUrl=null===(e=fo.OptionsController.state.metadata)||void 0===e?void 0:e.icons,this.walletImageUrl=fo.MO.getConnectedWalletImageUrl()}firstUpdated(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("wui-visual-thumbnail");null!==t&&void 0!==t&&t[0]&&this.createAnimation(t[0],"translate(18px)"),null!==t&&void 0!==t&&t[1]&&this.createAnimation(t[1],"translate(-18px)")}render(){var e;return go.dy` <wui-visual-thumbnail ?borderRadiusFull=${!0} .imageSrc=${null===(e=this.dappImageUrl)||void 0===e?void 0:e[0]} ></wui-visual-thumbnail> <wui-visual-thumbnail .imageSrc=${this.walletImageUrl}></wui-visual-thumbnail> `}createAnimation(e,t){e.animate([{transform:"translateX(0px)"},{transform:t}],{duration:1600,easing:"cubic-bezier(0.56, 0, 0.48, 1)",direction:"alternate",iterations:1/0})}};Zc.styles=zc,Zc=Wc([(0,mo.customElement)("w3m-connecting-siwe")],Zc);var Hc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Vc=class extends go.oi{constructor(){var e;if(super(),this.wallet=null===(e=fo.RouterController.state.data)||void 0===e?void 0:e.wallet,!this.wallet)throw new Error("w3m-connecting-wc-unsupported: No wallet provided");fo.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return go.dy` <wui-flex flexDirection="column" alignItems="center" .padding=${["3xl","xl","xl","xl"]} gap="xl" > <wui-wallet-image size="lg" imageSrc=${(0,yo.o)(fo.fz.getWalletImage(this.wallet))} ></wui-wallet-image> <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text> </wui-flex> <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> `}};Vc=Hc([(0,mo.customElement)("w3m-connecting-wc-unsupported")],Vc);var qc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Gc=class extends zo{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel="Open and continue in a new browser tab",this.secondaryBtnIcon="externalLink",fo.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}onConnectProxy(){var e;if(null!==(e=this.wallet)&&void 0!==e&&e.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:e,name:t}=this.wallet,{redirect:n,href:r}=fo.j1.formatUniversalUrl(e,this.uri);fo.ConnectionController.setWcLinking({name:t,href:r}),fo.ConnectionController.setRecentWallet(this.wallet),fo.j1.openHref(n,"_blank")}catch{this.error=!0}}};Gc=qc([(0,mo.customElement)("w3m-connecting-wc-web")],Gc);const Kc=go.iv` wui-icon-link[data-hidden='true'] { opacity: 0 !important; pointer-events: none; } `;var Yc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};function Qc(){var e,t,n,r,i,o,a;const s=null===(e=fo.RouterController.state.data)||void 0===e||null===(t=e.connector)||void 0===t?void 0:t.name,l=null===(n=fo.RouterController.state.data)||void 0===n||null===(r=n.wallet)||void 0===r?void 0:r.name,c=null===(i=fo.RouterController.state.data)||void 0===i||null===(o=i.network)||void 0===o?void 0:o.name,u=null!==l&&void 0!==l?l:s,d=fo.ConnectorController.getConnectors();return{Connect:`Connect ${1===d.length&&"w3m-email"===(null===(a=d[0])||void 0===a?void 0:a.id)?"Email":""} Wallet`,Account:void 0,ConnectingExternal:null!==u&&void 0!==u?u:"Connect Wallet",ConnectingWalletConnect:null!==u&&void 0!==u?u:"WalletConnect",ConnectingSiwe:"Sign In",Networks:"Choose Network",SwitchNetwork:null!==c&&void 0!==c?c:"Switch Network",AllWallets:"All Wallets",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",GetWallet:"Get a wallet",Downloads:u?`Get ${u}`:"Downloads",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",ApproveTransaction:"Approve Transaction",Transactions:"Activity",UpgradeEmailWallet:"Upgrade your Wallet",UpdateEmailWallet:"Edit Email",UpdateEmailWalletWaiting:"Approve Email"}}let Xc=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.heading=Qc()[fo.RouterController.state.view],this.buffering=!1,this.showBack=!1,this.unsubscribe.push(fo.RouterController.subscribeKey("view",(e=>{this.onViewChange(e),this.onHistoryChange()})),fo.ConnectionController.subscribeKey("buffering",(e=>this.buffering=e)))}disconnectCallback(){this.unsubscribe.forEach((e=>e()))}render(){return go.dy` <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center"> ${this.dynamicButtonTemplate()} ${this.titleTemplate()} <wui-icon-link ?disabled=${this.buffering} icon="close" @click=${this.onClose.bind(this)} data-testid="w3m-header-close" ></wui-icon-link> </wui-flex> ${this.separatorTemplate()} `}onWalletHelp(){fo.Xs.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),fo.RouterController.push("WhatIsAWallet")}async onClose(){fo.yD.state.isSiweEnabled&&"success"!==fo.yD.state.status&&await fo.ConnectionController.disconnect(),fo.IN.close()}titleTemplate(){return go.dy`<wui-text variant="paragraph-700" color="fg-100">${this.heading}</wui-text>`}dynamicButtonTemplate(){const{view:e}=fo.RouterController.state,t="Connect"===e,n="ApproveTransaction"===e;return this.showBack&&!n?go.dy`<wui-icon-link id="dynamic" icon="chevronLeft" ?disabled=${this.buffering} @click=${this.onGoBack.bind(this)} ></wui-icon-link>`:go.dy`<wui-icon-link data-hidden=${!t} id="dynamic" icon="helpCircle" @click=${this.onWalletHelp.bind(this)} ></wui-icon-link>`}separatorTemplate(){return this.heading?go.dy`<wui-separator></wui-separator>`:null}getPadding(){return this.heading?["l","2l","l","2l"]:["l","2l","0","2l"]}async onViewChange(e){var t;const n=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("wui-text");if(n){const t=Qc()[e];await n.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.heading=t,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})}}async onHistoryChange(){var e;const{history:t}=fo.RouterController.state,n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#dynamic");t.length>1&&!this.showBack&&n?(await n.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):t.length<=1&&this.showBack&&n&&(await n.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){"ConnectingSiwe"===fo.RouterController.state.view?fo.RouterController.push("Connect"):fo.RouterController.goBack()}};Xc.styles=[Kc],Yc([(0,vo.SB)()],Xc.prototype,"heading",void 0),Yc([(0,vo.SB)()],Xc.prototype,"buffering",void 0),Yc([(0,vo.SB)()],Xc.prototype,"showBack",void 0),Xc=Yc([(0,mo.customElement)("w3m-header")],Xc);var Jc=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let eu=class extends go.oi{constructor(){super(...arguments),this.data=[]}render(){return go.dy` <wui-flex flexDirection="column" alignItems="center" gap="l"> ${this.data.map((e=>go.dy` <wui-flex flexDirection="column" alignItems="center" gap="xl"> <wui-flex flexDirection="row" justifyContent="center" gap="1xs"> ${e.images.map((e=>go.dy`<wui-visual name=${e}></wui-visual>`))} </wui-flex> </wui-flex> <wui-flex flexDirection="column" alignItems="center" gap="xxs"> <wui-text variant="paragraph-500" color="fg-100" align="center"> ${e.title} </wui-text> <wui-text variant="small-500" color="fg-200" align="center">${e.text}</wui-text> </wui-flex> `))} </wui-flex> `}};Jc([(0,vo.Cb)({type:Array})],eu.prototype,"data",void 0),eu=Jc([(0,mo.customElement)("w3m-help-widget")],eu);const tu=go.iv` wui-flex { background-color: var(--wui-gray-glass-005); } a { text-decoration: none; color: var(--wui-color-fg-175); font-weight: 500; } `;var nu=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ru=class extends go.oi{render(){const{termsConditionsUrl:e,privacyPolicyUrl:t}=fo.OptionsController.state;return e||t?go.dy` <wui-flex .padding=${["m","s","s","s"]} justifyContent="center"> <wui-text color="fg-250" variant="small-400" align="center"> By connecting your wallet, you agree to our <br /> ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()} </wui-text> </wui-flex> `:null}andTemplate(){const{termsConditionsUrl:e,privacyPolicyUrl:t}=fo.OptionsController.state;return e&&t?"and":""}termsTemplate(){const{termsConditionsUrl:e}=fo.OptionsController.state;return e?go.dy`<a href=${e}>Terms of Service</a>`:null}privacyTemplate(){const{privacyPolicyUrl:e}=fo.OptionsController.state;return e?go.dy`<a href=${e}>Privacy Policy</a>`:null}};ru.styles=[tu],ru=nu([(0,mo.customElement)("w3m-legal-footer")],ru);const iu=go.iv` :host { display: block; padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl); } `;var ou=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let au=class extends go.oi{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:e,app_store:t,play_store:n,chrome_store:r,homepage:i}=this.wallet,o=fo.j1.isMobile(),a=fo.j1.isIos(),s=fo.j1.isAndroid(),l=[t,n,i,r].filter(Boolean).length>1,c=mo.UiHelperUtil.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return l&&!o?go.dy` <wui-cta-button label=${`Don't have ${c}?`} buttonLabel="Get" @click=${()=>fo.RouterController.push("Downloads",{wallet:this.wallet})} ></wui-cta-button> `:!l&&i?go.dy` <wui-cta-button label=${`Don't have ${c}?`} buttonLabel="Get" @click=${this.onHomePage.bind(this)} ></wui-cta-button> `:t&&a?go.dy` <wui-cta-button label=${`Don't have ${c}?`} buttonLabel="Get" @click=${this.onAppStore.bind(this)} ></wui-cta-button> `:n&&s?go.dy` <wui-cta-button label=${`Don't have ${c}?`} buttonLabel="Get" @click=${this.onPlayStore.bind(this)} ></wui-cta-button> `:(this.style.display="none",null)}onAppStore(){var e;null!==(e=this.wallet)&&void 0!==e&&e.app_store&&fo.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var e;null!==(e=this.wallet)&&void 0!==e&&e.play_store&&fo.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){var e;null!==(e=this.wallet)&&void 0!==e&&e.homepage&&fo.j1.openHref(this.wallet.homepage,"_blank")}};au.styles=[iu],ou([(0,vo.Cb)({type:Object})],au.prototype,"wallet",void 0),au=ou([(0,mo.customElement)("w3m-mobile-download-links")],au);const su=go.iv` :host { display: block; position: absolute; opacity: 0; pointer-events: none; top: 11px; left: 50%; width: max-content; } `;var lu=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const cu={success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}};let uu=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=fo.SnackController.state.open,this.unsubscribe.push(fo.SnackController.subscribeKey("open",(e=>{this.open=e,this.onOpen()})))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach((e=>e()))}render(){const{message:e,variant:t}=fo.SnackController.state,n=cu[t];return go.dy` <wui-snackbar message=${e} backgroundColor=${n.backgroundColor} iconColor=${n.iconColor} icon=${n.icon} ></wui-snackbar> `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout=setTimeout((()=>fo.SnackController.hide()),2500)):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};uu.styles=su,lu([(0,vo.SB)()],uu.prototype,"open",void 0),uu=lu([(0,mo.customElement)("w3m-snackbar")],uu);const du=go.iv` wui-separator { margin: var(--wui-spacing-s) calc(var(--wui-spacing-s) * -1); width: calc(100% + var(--wui-spacing-s) * 2); } wui-email-input { width: 100%; } form { width: 100%; display: block; position: relative; } wui-icon-link, wui-loading-spinner { position: absolute; top: 21px; transform: translateY(-50%); } wui-icon-link { right: var(--wui-spacing-xs); } wui-loading-spinner { right: var(--wui-spacing-m); } .alphaBanner { padding: 10px 12px 10px 10px; border-radius: var(--wui-border-radius-s); background: var(--wui-accent-glass-010); margin-bottom: var(--wui-spacing-s); } `;var hu=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let pu=class extends go.oi{constructor(){super(),this.unsubscribe=[],this.formRef=(0,gc.V)(),this.connectors=fo.ConnectorController.state.connectors,this.email="",this.loading=!1,this.error="",this.unsubscribe.push(fo.ConnectorController.subscribeKey("connectors",(e=>this.connectors=e)))}disconnectedCallback(){this.unsubscribe.forEach((e=>e()))}firstUpdated(){var e;null===(e=this.formRef.value)||void 0===e||e.addEventListener("keydown",(e=>{"Enter"===e.key&&this.onSubmitEmail(e)}))}render(){const e=this.connectors.length>1;return this.connectors.find((e=>"EMAIL"===e.type))?go.dy` ${this.alphaWarningTemplate()} <form ${(0,gc.i)(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}> <wui-email-input @focus=${this.onFocusEvent.bind(this)} .disabled=${this.loading} @inputChange=${this.onEmailInputChange.bind(this)} .errorMessage=${this.error} > </wui-email-input> ${this.submitButtonTemplate()}${this.loadingTemplate()} <input type="submit" hidden /> </form> ${e?go.dy`<wui-separator text="or"></wui-separator>`:null} `:null}alphaWarningTemplate(){return go.dy` <wui-flex class="alphaBanner" gap="xs" alignItems="center" justifyContent="center"> <wui-icon-box size="sm" icon="alpha" iconColor="accent-100" background="opaque" backgroundColor="accent-100" ></wui-icon-box> <wui-text variant="small-400" color="accent-100"> This is an alpha version to test before launch </wui-text> </wui-flex> `}submitButtonTemplate(){return!this.loading&&this.email.length>3?go.dy` <wui-icon-link size="sm" icon="chevronRight" iconcolor="accent-100" @click=${this.onSubmitEmail.bind(this)} > </wui-icon-link> `:null}loadingTemplate(){return this.loading?go.dy`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}onEmailInputChange(e){this.email=e.detail,this.error=""}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();const t=fo.ConnectorController.getEmailConnector();if(!t)throw new Error("w3m-email-login-widget: Email connector not found");const{action:n}=await t.provider.connectEmail({email:this.email});fo.Xs.sendEvent({type:"track",event:"EMAIL_SUBMITTED"}),"VERIFY_OTP"===n?(fo.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),fo.RouterController.push("EmailVerifyOtp",{email:this.email})):"VERIFY_DEVICE"===n&&fo.RouterController.push("EmailVerifyDevice",{email:this.email})}catch(t){const e=fo.j1.parseError(t);null!==e&&void 0!==e&&e.includes("Invalid email")?this.error="Invalid email. Try again.":fo.SnackController.showError(t)}finally{this.loading=!1}}onFocusEvent(){fo.Xs.sendEvent({type:"track",event:"EMAIL_LOGIN_SELECTED"})}};pu.styles=du,hu([(0,vo.SB)()],pu.prototype,"connectors",void 0),hu([(0,vo.SB)()],pu.prototype,"email",void 0),hu([(0,vo.SB)()],pu.prototype,"loading",void 0),hu([(0,vo.SB)()],pu.prototype,"error",void 0),pu=hu([(0,mo.customElement)("w3m-email-login-widget")],pu);let fu=!1;class mu{constructor(e){this.initPromise=void 0,this.setIsConnected=e=>{fo.AccountController.setIsConnected(e)},this.setCaipAddress=e=>{fo.AccountController.setCaipAddress(e)},this.setBalance=(e,t)=>{fo.AccountController.setBalance(e,t)},this.setProfileName=e=>{fo.AccountController.setProfileName(e)},this.setProfileImage=e=>{fo.AccountController.setProfileImage(e)},this.resetAccount=()=>{fo.AccountController.resetAccount()},this.setCaipNetwork=e=>{fo.NetworkController.setCaipNetwork(e)},this.getCaipNetwork=()=>fo.NetworkController.state.caipNetwork,this.setRequestedCaipNetworks=e=>{fo.NetworkController.setRequestedCaipNetworks(e)},this.getApprovedCaipNetworksData=()=>fo.NetworkController.getApprovedCaipNetworksData(),this.resetNetwork=()=>{fo.NetworkController.resetNetwork()},this.setConnectors=e=>{fo.ConnectorController.setConnectors(e)},this.addConnector=e=>{fo.ConnectorController.addConnector(e)},this.getConnectors=()=>fo.ConnectorController.getConnectors(),this.resetWcConnection=()=>{fo.ConnectionController.resetWcConnection()},this.fetchIdentity=e=>fo.Lr.fetchIdentity(e),this.setAddressExplorerUrl=e=>{fo.AccountController.setAddressExplorerUrl(e)},this.setSIWENonce=e=>{fo.yD.setNonce(e)},this.setSIWESession=e=>{fo.yD.setSession(e)},this.setSIWEStatus=e=>{fo.yD.setStatus(e)},this.setSIWEMessage=e=>{fo.yD.setMessage(e)},this.initControllers(e),this.initOrContinue()}async open(e){await this.initOrContinue(),fo.IN.open(e)}async close(){await this.initOrContinue(),fo.IN.close()}setLoading(e){fo.IN.setLoading(e)}getThemeMode(){return fo.ThemeController.state.themeMode}getThemeVariables(){return fo.ThemeController.state.themeVariables}setThemeMode(e){fo.ThemeController.setThemeMode(e),(0,mo.setColorTheme)(fo.ThemeController.state.themeMode);try{const e=fo.ConnectorController.getEmailConnector();e&&e.provider.syncTheme({themeMode:fo.ThemeController.getSnapshot().themeMode})}catch{console.info("Unable to sync theme to email connector")}}setThemeVariables(e){fo.ThemeController.setThemeVariables(e),(0,mo.setThemeVariables)(fo.ThemeController.state.themeVariables);try{const e=fo.ConnectorController.getEmailConnector();e&&e.provider.syncTheme({themeVariables:fo.ThemeController.getSnapshot().themeVariables})}catch{console.info("Unable to sync theme to email connector")}}subscribeTheme(e){return fo.ThemeController.subscribe(e)}getState(){return{...fo.Ie.state}}subscribeState(e){return fo.Ie.subscribe(e)}getEvent(){return{...fo.Xs.state}}subscribeEvents(e){return fo.Xs.subscribe(e)}subscribeSIWEState(e){return fo.yD.subscribe(e)}initControllers(e){if(fo.NetworkController.setClient(e.networkControllerClient),fo.NetworkController.setDefaultCaipNetwork(e.defaultChain),fo.OptionsController.setProjectId(e.projectId),fo.OptionsController.setIncludeWalletIds(e.includeWalletIds),fo.OptionsController.setExcludeWalletIds(e.excludeWalletIds),fo.OptionsController.setFeaturedWalletIds(e.featuredWalletIds),fo.OptionsController.setTokens(e.tokens),fo.OptionsController.setTermsConditionsUrl(e.termsConditionsUrl),fo.OptionsController.setPrivacyPolicyUrl(e.privacyPolicyUrl),fo.OptionsController.setCustomWallets(e.customWallets),fo.OptionsController.setEnableAnalytics(e.enableAnalytics),fo.OptionsController.setSdkVersion(e._sdkVersion),fo.ConnectionController.setClient(e.connectionControllerClient),e.siweControllerClient){const t=e.siweControllerClient;fo.yD.setSIWEClient(t)}e.metadata&&fo.OptionsController.setMetadata(e.metadata),e.themeMode&&fo.ThemeController.setThemeMode(e.themeMode),e.themeVariables&&fo.ThemeController.setThemeVariables(e.themeVariables)}async initOrContinue(){return this.initPromise||fu||!fo.j1.isClient()||(fu=!0,this.initPromise=new Promise((async e=>{await Promise.all([Promise.resolve().then(n.bind(n,1838)),Promise.resolve().then(n.bind(n,4578))]);const t=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",t),e()}))),this.initPromise}}const gu={WALLET_CONNECT_CONNECTOR_ID:"walletConnect",INJECTED_CONNECTOR_ID:"injected",COINBASE_CONNECTOR_ID:"coinbaseWallet",SAFE_CONNECTOR_ID:"safe",LEDGER_CONNECTOR_ID:"ledger",EIP6963_CONNECTOR_ID:"eip6963",EMAIL_CONNECTOR_ID:"w3mEmail",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",VERSION:"3.5.7"},vu={ConnectorExplorerIds:{[gu.COINBASE_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[gu.SAFE_CONNECTOR_ID]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[gu.LEDGER_CONNECTOR_ID]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927"},EIP155NetworkImageIds:{1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00",7777777:"845c60df-d429-4991-e687-91ae45791600",42220:"ab781bbc-ccc6-418d-d32d-789b15da1f00",8453:"7289c336-3981-4081-c5f4-efc26ac64a00",1313161554:"3ff73439-a619-4894-9262-4470c773a100"},ConnectorImageIds:{[gu.COINBASE_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[gu.SAFE_CONNECTOR_ID]:"461db637-8616-43ce-035a-d89b8a1d5800",[gu.LEDGER_CONNECTOR_ID]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[gu.WALLET_CONNECT_CONNECTOR_ID]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[gu.INJECTED_CONNECTOR_ID]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},ConnectorNamesMap:{[gu.INJECTED_CONNECTOR_ID]:"Browser Wallet",[gu.WALLET_CONNECT_CONNECTOR_ID]:"WalletConnect",[gu.COINBASE_CONNECTOR_ID]:"Coinbase",[gu.LEDGER_CONNECTOR_ID]:"Ledger",[gu.SAFE_CONNECTOR_ID]:"Safe"},ConnectorTypesMap:{[gu.INJECTED_CONNECTOR_ID]:"INJECTED",[gu.WALLET_CONNECT_CONNECTOR_ID]:"WALLET_CONNECT",[gu.EIP6963_CONNECTOR_ID]:"ANNOUNCED",[gu.EMAIL_CONNECTOR_ID]:"EMAIL"},WalletConnectRpcChainIds:[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,100,8453,84531,7777777,999,324,280]},yu={caipNetworkIdToNumber:e=>e?Number(e.split(":")[1]):void 0,getCaipTokens(e){if(!e)return;const t={};return Object.entries(e).forEach((e=>{let[n,r]=e;t[`${gu.EIP155}:${n}`]=r})),t}};function bu(e){if(e)return{id:`${gu.EIP155}:${e.id}`,name:e.name,imageId:vu.EIP155NetworkImageIds[e.id]}}class wu extends mu{constructor(e){const{wagmiConfig:t,siweConfig:n,chains:r,defaultChain:i,tokens:o,_sdkVersion:a,...s}=e;if(!t)throw new Error("web3modal:constructor - wagmiConfig is undefined");if(!s.projectId)throw new Error("web3modal:constructor - projectId is undefined");const l={switchCaipNetwork:async e=>{const t=yu.caipNetworkIdToNumber(null===e||void 0===e?void 0:e.id);t&&await co({chainId:t})},async getApprovedCaipNetworksData(){const e=localStorage.getItem("wagmi.wallet");if(null!==e&&void 0!==e&&e.includes(gu.EMAIL_CONNECTOR_ID))return{supportsAllNetworks:!1,approvedCaipNetworkIds:vu.WalletConnectRpcChainIds.map((e=>`${gu.EIP155}:${e}`))};if(null!==e&&void 0!==e&&e.includes(gu.WALLET_CONNECT_CONNECTOR_ID)){var n,r,i,o;const e=t.connectors.find((e=>e.id===gu.WALLET_CONNECT_CONNECTOR_ID));if(!e)throw new Error("networkControllerClient:getApprovedCaipNetworks - connector is undefined");const a=null===(n=(await e.getProvider()).signer)||void 0===n||null===(r=n.session)||void 0===r?void 0:r.namespaces,s=null===a||void 0===a||null===(i=a[gu.EIP155])||void 0===i?void 0:i.methods,l=null===a||void 0===a||null===(o=a[gu.EIP155])||void 0===o?void 0:o.chains;return{supportsAllNetworks:null===s||void 0===s?void 0:s.includes(gu.ADD_CHAIN_METHOD),approvedCaipNetworkIds:l}}return{approvedCaipNetworkIds:void 0,supportsAllNetworks:!0}}},c={connectWalletConnect:async e=>{var n;const r=t.connectors.find((e=>e.id===gu.WALLET_CONNECT_CONNECTOR_ID));if(!r)throw new Error("connectionControllerClient:getWalletConnectUri - connector is undefined");r.on("message",(t=>{"display_uri"===t.type&&(e(t.data),r.removeAllListeners())}));const i=yu.caipNetworkIdToNumber(null===(n=this.getCaipNetwork())||void 0===n?void 0:n.id);await Xi({connector:r,chainId:i})},connectExternal:async e=>{var n;let{id:r,provider:i,info:o}=e;const a=t.connectors.find((e=>e.id===r));if(!a)throw new Error("connectionControllerClient:connectExternal - connector is undefined");var s;i&&o&&a.id===gu.EIP6963_CONNECTOR_ID&&(null===(s=a.setEip6963Wallet)||void 0===s||s.call(a,{provider:i,info:o}));const l=yu.caipNetworkIdToNumber(null===(n=this.getCaipNetwork())||void 0===n?void 0:n.id);await Xi({connector:a,chainId:l})},checkInstalled:e=>{const t=this.getConnectors().filter((e=>"ANNOUNCED"===e.type)),n=this.getConnectors().find((e=>"INJECTED"===e.type));if(!e)return Boolean(window.ethereum);if(t.length){const n=e.some((e=>t.some((t=>{var n;return(null===(n=t.info)||void 0===n?void 0:n.rdns)===e}))));if(n)return!0}var r;return!!n&&(!(null===(r=window)||void 0===r||!r.ethereum)&&e.some((e=>{var t;return Boolean(null===(t=window.ethereum)||void 0===t?void 0:t[String(e)])})))},disconnect:async()=>{var e;await async function(){const e=Qi();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}(),null!==n&&void 0!==n&&null!==(e=n.options)&&void 0!==e&&e.signOutOnDisconnect&&await n.signOut()},signMessage:async e=>async function(e){const t=await no();if(!t)throw new ze;return await t.signMessage({message:e.message})}({message:e})};super({networkControllerClient:l,connectionControllerClient:c,siweControllerClient:n,defaultChain:bu(i),tokens:yu.getCaipTokens(o),_sdkVersion:null!==a&&void 0!==a?a:`html-wagmi-${gu.VERSION}`,...s}),this.hasSyncedConnectedAccount=!1,this.options=void 0,this.options=e,this.syncRequestedNetworks(r),this.syncConnectors(t),this.syncEmailConnector(t),this.listenEIP6963Connector(t),this.listenEmailConnector(t),uo((()=>this.syncAccount())),ho((()=>this.syncNetwork()))}getState(){const e=super.getState();return{...e,selectedNetworkId:yu.caipNetworkIdToNumber(e.selectedNetworkId)}}subscribeState(e){return super.subscribeState((t=>e({...t,selectedNetworkId:yu.caipNetworkIdToNumber(t.selectedNetworkId)})))}syncRequestedNetworks(e){const t=null===e||void 0===e?void 0:e.map((e=>{var t,n;return{id:`${gu.EIP155}:${e.id}`,name:e.name,imageId:vu.EIP155NetworkImageIds[e.id],imageUrl:null===(t=this.options)||void 0===t||null===(n=t.chainImages)||void 0===n?void 0:n[e.id]}}));this.setRequestedCaipNetworks(null!==t&&void 0!==t?t:[])}async syncAccount(){const{address:e,isConnected:t}=so(),{chain:n}=lo();if(this.resetAccount(),t&&e&&n){const r=`${gu.EIP155}:${n.id}:${e}`;this.setIsConnected(t),this.setCaipAddress(r),await Promise.all([this.syncProfile(e,n),this.syncBalance(e,n),this.getApprovedCaipNetworksData()]),this.hasSyncedConnectedAccount=!0}else!t&&this.hasSyncedConnectedAccount&&(this.resetWcConnection(),this.resetNetwork())}async syncNetwork(){const{address:e,isConnected:t}=so(),{chain:n}=lo();if(n){var r,i;const s=String(n.id),l=`${gu.EIP155}:${s}`;if(this.setCaipNetwork({id:l,name:n.name,imageId:vu.EIP155NetworkImageIds[n.id],imageUrl:null===(r=this.options)||void 0===r||null===(i=r.chainImages)||void 0===i?void 0:i[n.id]}),t&&e){var o,a;const t=`${gu.EIP155}:${n.id}:${e}`;if(this.setCaipAddress(t),null!==(o=n.blockExplorers)&&void 0!==o&&null!==(a=o.default)&&void 0!==a&&a.url){const t=`${n.blockExplorers.default.url}/address/${e}`;this.setAddressExplorerUrl(t)}else this.setAddressExplorerUrl(void 0);this.hasSyncedConnectedAccount&&(await this.syncProfile(e,n),await this.syncBalance(e,n))}}}async syncProfile(e,t){if(t.id!==Ve.id)return this.setProfileName(null),void this.setProfileImage(null);try{const{name:n,avatar:r}=await this.fetchIdentity({caipChainId:`${gu.EIP155}:${t.id}`,address:e});this.setProfileName(n),this.setProfileImage(r)}catch{const r=await async function(e){let{address:t,chainId:n}=e;return to({chainId:n}).getEnsName({address:(0,et.K)(t)})}({address:e,chainId:t.id});if(r){this.setProfileName(r);const e=await async function(e){let{name:t,chainId:r}=e;const{normalize:i}=await n.e(902).then(n.bind(n,1902)),o=to({chainId:r});return await o.getEnsAvatar({name:i(t)})}({name:r,chainId:t.id});e&&this.setProfileImage(e)}}}async syncBalance(e,t){var n,r,i;const o=await async function(e){var t,n,r;let{address:i,chainId:o,formatUnits:a,token:s}=e;const l=Qi(),c=to({chainId:o});if(s){const e=async e=>{let{abi:t}=e;const n={abi:t,address:s,chainId:o},[r,l,c]=await oo({allowFailure:!1,contracts:[{...n,functionName:"balanceOf",args:[i]},{...n,functionName:"decimals"},{...n,functionName:"symbol"}]});return{decimals:l,formatted:(0,_i.b)(null!==r&&void 0!==r?r:"0",Li(null!==a&&void 0!==a?a:l)),symbol:c,value:r}};try{return await e({abi:Ji})}catch(p){if(p instanceof Wn.uq){const{symbol:t,...n}=await e({abi:eo});return{symbol:(0,Ot.rR)((0,Fn.f)(t,{dir:"right"})),...n}}throw p}}const u=[...l.publicClient.chains||[],...null!==(t=l.chains)&&void 0!==t?t:[]],d=await c.getBalance({address:i}),h=u.find((e=>e.id===c.chain.id));return{decimals:null!==(n=null===h||void 0===h?void 0:h.nativeCurrency.decimals)&&void 0!==n?n:18,formatted:(0,_i.b)(null!==d&&void 0!==d?d:"0",Li(null!==a&&void 0!==a?a:18)),symbol:null!==(r=null===h||void 0===h?void 0:h.nativeCurrency.symbol)&&void 0!==r?r:"ETH",value:d}}({address:e,chainId:t.id,token:null===(n=this.options)||void 0===n||null===(r=n.tokens)||void 0===r||null===(i=r[t.id])||void 0===i?void 0:i.address});this.setBalance(o.formatted,o.symbol)}syncConnectors(e){const t=[];e.connectors.forEach((e=>{let{id:n,name:r}=e;var i,o,a,s;[gu.EIP6963_CONNECTOR_ID,gu.EMAIL_CONNECTOR_ID].includes(n)||t.push({id:n,explorerId:vu.ConnectorExplorerIds[n],imageId:vu.ConnectorImageIds[n],imageUrl:null===(i=this.options)||void 0===i||null===(o=i.connectorImages)||void 0===o?void 0:o[n],name:null!==(a=vu.ConnectorNamesMap[n])&&void 0!==a?a:r,type:null!==(s=vu.ConnectorTypesMap[n])&&void 0!==s?s:"EXTERNAL"})})),this.setConnectors(t)}async syncEmailConnector(e){const t=e.connectors.find((e=>{let{id:t}=e;return"w3mEmail"===t}));if(t){const e=await t.getProvider();this.addConnector({id:gu.EMAIL_CONNECTOR_ID,type:"EMAIL",name:"Email",provider:e})}}eip6963EventHandler(e,t){if(t.detail){const{info:o,provider:a}=t.detail;var n,r,i;if(!this.getConnectors().find((e=>e.name===o.name)))this.addConnector({id:gu.EIP6963_CONNECTOR_ID,type:"ANNOUNCED",imageUrl:null!==(n=o.icon)&&void 0!==n?n:null===(r=this.options)||void 0===r||null===(i=r.connectorImages)||void 0===i?void 0:i[gu.EIP6963_CONNECTOR_ID],name:o.name,provider:a,info:o}),e.isAuthorized({info:o,provider:a})}}listenEIP6963Connector(e){const t=e.connectors.find((e=>e.id===gu.EIP6963_CONNECTOR_ID));if("undefined"!==typeof window&&t){const e=this.eip6963EventHandler.bind(this,t);window.addEventListener(gu.EIP6963_ANNOUNCE_EVENT,e),window.dispatchEvent(new Event(gu.EIP6963_REQUEST_EVENT))}}async listenEmailConnector(e){const t=e.connectors.find((e=>e.id===gu.EMAIL_CONNECTOR_ID));if("undefined"!==typeof window&&t){super.setLoading(!0);const e=await t.getProvider(),n=e.getLoginEmailUsed();super.setLoading(n),e.onRpcRequest((()=>{super.open({view:"ApproveTransaction"})})),e.onRpcResponse((()=>{super.close()})),e.onIsConnected((()=>{super.setLoading(!1)}))}}}var xu,Cu,Eu=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},Su=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const ku="connectedRdns";class _u extends Nn{constructor(e){super({chains:e.chains,options:{shimDisconnect:!0}}),this.id="eip6963",this.name="EIP6963",xu.set(this,void 0),Cu.set(this,void 0),this.onAccountsChanged=e=>{var t;0===e.length?(null===(t=this.storage)||void 0===t||t.removeItem(ku),this.emit("disconnect")):e[0]&&this.emit("change",{account:(0,et.K)(e[0])})},Eu(this,xu,this.options.getProvider(),"f")}async connect(e){const t=await super.connect(e);var n;Su(this,Cu,"f")&&(null===(n=this.storage)||void 0===n||n.setItem(ku,Su(this,Cu,"f").info.rdns));return t}async disconnect(){var e;await super.disconnect(),null===(e=this.storage)||void 0===e||e.removeItem(ku),Eu(this,Cu,void 0,"f")}async isAuthorized(e){var t;const n=null===(t=this.storage)||void 0===t?void 0:t.getItem(ku);if(n){if(Su(this,Cu,"f")&&n===Su(this,Cu,"f").info.rdns){const e=Su(this,Cu,"f").provider;if((await e.request({method:"eth_accounts"})).length)return!0}e&&Eu(this,Cu,e,"f")}return super.isAuthorized()}async getProvider(){var e,t;return Promise.resolve(null!==(e=null===(t=Su(this,Cu,"f"))||void 0===t?void 0:t.provider)&&void 0!==e?e:Su(this,xu,"f"))}setEip6963Wallet(e){Eu(this,Cu,e,"f")}}xu=new WeakMap,Cu=new WeakMap;var Pu,Au=n(6303);"undefined"!==typeof window&&(window.Buffer||(window.Buffer=Au.Buffer),window.global||(window.global=window),window.process||(window.process={}),null!==(Pu=window.process)&&void 0!==Pu&&Pu.env||(window.process={env:{}}));function Ru(e){let{storage:t,key:n="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:i=JSON.stringify,deserialize:o=JSON.parse,retry:a}=e;if(t){const e=e=>{try{return void t.setItem(n,i(e))}catch(r){return r}};return{persistClient:Ou((t=>{let n=t,r=e(n),i=0;for(;r&&n;)i++,n=null==a?void 0:a({persistedClient:n,error:r,errorCount:i}),n&&(r=e(n))}),r),restoreClient:()=>{const e=t.getItem(n);if(e)return o(e)},removeClient:()=>{t.removeItem(n)}}}return{persistClient:Tu,restoreClient:()=>{},removeClient:Tu}}function Ou(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];t=o,null===r&&(r=setTimeout((()=>{e(...t),r=null}),n))}}function Tu(){}const Iu="undefined"===typeof window||"Deno"in window;function Nu(){}function $u(e){return"number"===typeof e&&e>=0&&e!==1/0}function Mu(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ju(e,t,n){return Yu(e)?"function"===typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Lu(e,t,n){return Yu(e)?"function"===typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"===typeof e?{...t,mutationFn:e}:{...e}}function Du(e,t,n){return Yu(e)?[{...t,queryKey:e},n]:[e||{},t]}function Bu(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(Yu(a))if(r){if(t.queryHash!==Fu(a,t.options))return!1}else if(!Wu(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof s||t.isStale()===s)&&(("undefined"===typeof i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Uu(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Yu(o)){if(!t.options.mutationKey)return!1;if(n){if(zu(t.options.mutationKey)!==zu(o))return!1}else if(!Wu(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function Fu(e,t){return((null==t?void 0:t.queryKeyHashFn)||zu)(e)}function zu(e){return JSON.stringify(e,((e,t)=>Gu(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Wu(e,t){return Zu(e,t)}function Zu(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((n=>!Zu(e[n],t[n]))))}function Hu(e,t){if(e===t)return e;const n=qu(e)&&qu(t);if(n||Gu(e)&&Gu(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let s=0;for(let l=0;l<o;l++){const r=n?l:i[l];a[r]=Hu(e[r],t[r]),a[r]===e[r]&&s++}return r===o&&s===r?e:a}return t}function Vu(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function qu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gu(e){if(!Ku(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!Ku(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Ku(e){return"[object Object]"===Object.prototype.toString.call(e)}function Yu(e){return Array.isArray(e)}function Qu(e){return new Promise((t=>{setTimeout(t,e)}))}function Xu(e){Qu(0).then(e)}function Ju(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Hu(e,t):t}const ed=console;const td=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const i=r=>{t?e.push(r):Xu((()=>{n(r)}))},o=()=>{const t=e;e=[],t.length&&Xu((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i((()=>{e(...n)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class nd{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const rd=new class extends nd{constructor(){super(),this.setup=e=>{if(!Iu&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isFocused(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},id=["online","offline"];const od=new class extends nd{constructor(){super(),this.setup=e=>{if(!Iu&&window.addEventListener){const t=()=>e();return id.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{id.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isOnline(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}};function ad(e){return Math.min(1e3*2**e,3e4)}function sd(e){return"online"!==(null!=e?e:"online")||od.isOnline()}class ld{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function cd(e){return e instanceof ld}function ud(e){let t,n,r,i=!1,o=0,a=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>!rd.isFocused()||"always"!==e.networkMode&&!od.isOnline(),c=r=>{a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise((n=>{t=e=>{const t=a||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,a||null==e.onContinue||e.onContinue()})),h=()=>{if(a)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(c).catch((t=>{var n,r;if(a)return;const s=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:ad,p="function"===typeof c?c(o,t):c,f=!0===s||"number"===typeof s&&o<s||"function"===typeof s&&s(o,t);!i&&f?(o++,null==e.onFail||e.onFail(o,t),Qu(p).then((()=>{if(l())return d()})).then((()=>{i?u(t):h()}))):u(t)}))};return sd(e.networkMode)?h():d().then(h),{promise:s,cancel:t=>{a||(u(new ld(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class dd{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$u(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Iu?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class hd extends dd{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||ed,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Ju(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Nu).catch(Nu):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!Mu(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=function(){if("function"===typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};s(a);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(s(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,i;(cd(e)&&e.silent||this.dispatch({type:"error",error:e}),cd(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=ud({fn:l.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;"undefined"!==typeof e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:sd(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return cd(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),td.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class pd extends nd{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,o=null!=(r=t.queryHash)?r:Fu(i,t);let a=this.get(o);return a||(a=new hd({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){td.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Du(e,t);return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((e=>Bu(n,e)))}findAll(e,t){const[n]=Du(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Bu(n,e))):this.queries}notify(e){td.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}onFocus(){td.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){td.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class fd extends dd{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||ed,this.observers=[],this.state=e.state||md(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=ud({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,i,o,a,s,l,c;if(!t){var u,d,h,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(d=this.mutationCache.config).onMutate)?void 0:u.call(d,this.state.variables,this));const e=await(null==(h=(p=this.options).onMutate)?void 0:h.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,f,this.state.variables,this.state.context)),await(null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(C){try{var f,m,g,v,y,b,w,x;throw await(null==(f=(m=this.mutationCache.config).onError)?void 0:f.call(m,C,this.state.variables,this.state.context,this)),await(null==(g=(v=this.options).onError)?void 0:g.call(v,C,this.state.variables,this.state.context)),await(null==(y=(b=this.mutationCache.config).onSettled)?void 0:y.call(b,void 0,C,this.state.variables,this.state.context,this)),await(null==(w=(x=this.options).onSettled)?void 0:w.call(x,void 0,C,this.state.variables,this.state.context)),C}finally{this.dispatch({type:"error",error:C})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!sd(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),td.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function md(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class gd extends nd{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new fd({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){td.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((t=>Uu(e,t)))}findAll(e){return this.mutations.filter((t=>Uu(e,t)))}notify(e){td.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return td.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Nu)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function vd(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,a;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),d="backward"===(null==l?void 0:l.direction),h=(null==(o=e.state.data)?void 0:o.pages)||[],p=(null==(a=e.state.data)?void 0:a.pageParams)||[];let f=p,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(f=r?[t,...f]:[...f,t],r?[n,...e]:[...e,n]),y=(t,n,r,i)=>{if(m)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var a;a=o,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const s=g(o);return Promise.resolve(s).then((e=>v(t,r,e,i)))};let b;if(h.length)if(u){const t="undefined"!==typeof c,n=t?c:yd(e.options,h);b=y(h,t,n)}else if(d){const t="undefined"!==typeof c,n=t?c:bd(e.options,h);b=y(h,t,n,!0)}else{f=[];const t="undefined"===typeof e.options.getNextPageParam;b=!s||!h[0]||s(h[0],0,h)?y([],t,p[0]):Promise.resolve(v([],p[0],h[0]));for(let n=1;n<h.length;n++)b=b.then((r=>{if(!s||!h[n]||s(h[n],n,h)){const i=t?p[n]:yd(e.options,r);return y(r,t,i)}return Promise.resolve(v(r,p[n],h[n]))}))}else b=y([]);return b.then((e=>({pages:e,pageParams:f})))}}}}function yd(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function bd(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}class wd{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.queryCache=e.queryCache||new pd,this.mutationCache=e.mutationCache||new gd,this.logger=e.logger||ed,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=rd.subscribe((()=>{rd.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=od.subscribe((()=>{od.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Du(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=ju(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((e=>{let{queryKey:t,state:n}=e;return[t,n.data]}))}setQueryData(e,t,n){const r=this.queryCache.find(e),i=function(e,t){return"function"===typeof e?e(t):e}(t,null==r?void 0:r.state.data);if("undefined"===typeof i)return;const o=ju(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return td.batch((()=>this.getQueryCache().findAll(e).map((e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Du(e,t),r=this.queryCache;td.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,i]=Du(e,t,n),o=this.queryCache,a={type:"active",...r};return td.batch((()=>(o.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(a,i))))}cancelQueries(e,t,n){const[r,i={}]=Du(e,t,n);"undefined"===typeof i.revert&&(i.revert=!0);const o=td.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(i)))));return Promise.all(o).then(Nu).catch(Nu)}invalidateQueries(e,t,n){const[r,i]=Du(e,t,n);return td.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,i)}))}refetchQueries(e,t,n){const[r,i]=Du(e,t,n),o=td.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let a=Promise.all(o).then(Nu);return null!=i&&i.throwOnError||(a=a.catch(Nu)),a}fetchQuery(e,t,n){const r=ju(e,t,n),i=this.defaultQueryOptions(r);"undefined"===typeof i.retry&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Nu).catch(Nu)}fetchInfiniteQuery(e,t,n){const r=ju(e,t,n);return r.behavior=vd(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Nu).catch(Nu)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>zu(e)===zu(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>Wu(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>zu(e)===zu(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>Wu(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Fu(t.queryKey,t)),"undefined"===typeof t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),"undefined"===typeof t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function xd(e){return e.state.isPaused}function Cd(e){return"success"===e.state.status}function Ed(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[],r=[];if(!1!==t.dehydrateMutations){const r=t.shouldDehydrateMutation||xd;e.getMutationCache().getAll().forEach((e=>{r(e)&&n.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){const n=t.shouldDehydrateQuery||Cd;e.getQueryCache().getAll().forEach((e=>{n(e)&&r.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:n,queries:r}}const Sd=["added","removed","updated"];function kd(e){return Sd.includes(e)}async function _d(e){let{queryClient:t,persister:n,buster:r="",dehydrateOptions:i}=e;const o={buster:r,timestamp:Date.now(),clientState:Ed(t,i)};await n.persistClient(o)}function Pd(e){let t,n=!1;const r=async function(e){let{queryClient:t,persister:n,maxAge:r=864e5,buster:i="",hydrateOptions:o}=e;try{const e=await n.restoreClient();if(e)if(e.timestamp){const a=Date.now()-e.timestamp>r,s=e.buster!==i;a||s?n.removeClient():function(e,t,n){if("object"!==typeof t||null===t)return;const r=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],a=t.queries||[];o.forEach((t=>{var i;r.build(e,{...null==n||null==(i=n.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)})),a.forEach((t=>{let{queryKey:r,state:o,queryHash:a}=t;var s;const l=i.get(a);if(l){if(l.state.dataUpdatedAt<o.dataUpdatedAt){const{fetchStatus:e,...t}=o;l.setState(t)}}else i.build(e,{...null==n||null==(s=n.defaultOptions)?void 0:s.queries,queryKey:r,queryHash:a},{...o,fetchStatus:"idle"})}))}(t,e.clientState,o)}else n.removeClient()}catch(a){n.removeClient()}}(e).then((()=>{n||(t=function(e){const t=e.queryClient.getQueryCache().subscribe((t=>{kd(t.type)&&_d(e)})),n=e.queryClient.getMutationCache().subscribe((t=>{kd(t.type)&&_d(e)}));return()=>{t(),n()}}(e))}));return[()=>{n=!0,null==t||t()},r]}const Ad=e.createContext(void 0),Rd=e.createContext(!1);function Od(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Ad),window.ReactQueryClientContext):Ad)}const Td=function(){let{context:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.useContext(Od(t,e.useContext(Rd)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Id=t=>{let{client:n,children:r,context:i,contextSharing:o=!1}=t;e.useEffect((()=>(n.mount(),()=>{n.unmount()})),[n]);const a=Od(i,o);return e.createElement(Rd.Provider,{value:!i&&o},e.createElement(a.Provider,{value:n},r))},Nd=e.createContext(!1),$d=()=>e.useContext(Nd);Nd.Provider;function Md(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const jd=e.createContext(Md()),Ld=()=>e.useContext(jd);var Dd=n(8159);class Bd extends nd{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),Vu(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:"undefined"!==typeof e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){td.batch((()=>{var t,n,r,i;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var o,a,s,l;null==(o=(a=this.mutateOptions).onError)||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((e=>{let{listener:t}=e;t(this.currentResult)}))}))}}const Ud=Dd.useSyncExternalStore;function Fd(){}class zd extends nd{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),Wd(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zd(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zd(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),Vu(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&Hd(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Vu(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(){let{refetchPage:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Nu)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Iu||this.currentResult.isStale||!$u(this.options.staleTime))return;const e=Mu(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Iu&&!1!==this.options.enabled&&$u(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||rd.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,i=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let d,{dataUpdatedAt:h,error:p,errorUpdatedAt:f,fetchStatus:m,status:g}=u,v=!1,y=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Wd(e,t),a=i&&Hd(e,n,t,r);(o||a)&&(m=sd(e.options.networkMode)?"fetching":"paused",h||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,h=c.dataUpdatedAt,g=c.status,v=!0;else if(t.select&&"undefined"!==typeof u.data)if(i&&u.data===(null==o?void 0:o.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(u.data),d=Ju(null==i?void 0:i.data,d,t),this.selectResult=d,this.selectError=null}catch(C){0,this.selectError=C}else d=u.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof d&&"loading"===g){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==a?void 0:a.placeholderData))e=i.data;else if(e="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof e)try{e=t.select(e),this.selectError=null}catch(C){0,this.selectError=C}"undefined"!==typeof e&&(g="success",d=Ju(null==i?void 0:i.data,e,t),y=!0)}this.selectError&&(p=this.selectError,d=this.selectResult,f=Date.now(),g="error");const b="fetching"===m,w="loading"===g,x="error"===g;return{status:g,fetchStatus:m,isLoading:w,isSuccess:"success"===g,isError:x,isInitialLoading:w&&b,data:d,dataUpdatedAt:h,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:x&&0===u.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:v,isRefetchError:x&&0!==u.dataUpdatedAt,isStale:Vd(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Vu(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"===typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||cd(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){td.batch((()=>{var t,n,r,i;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null);else if(e.onError){var o,a,s,l;null==(o=(a=this.options).onError)||o.call(a,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((e=>{let{listener:t}=e;t(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function Wd(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&Zd(e,t,t.refetchOnMount)}function Zd(e,t,n){if(!1!==t.enabled){const r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&Vd(e,t)}return!1}function Hd(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&Vd(e,n)}function Vd(e,t){return e.isStaleByTime(t.staleTime)}var qd=n(23);var Gd=e.createContext(void 0),Kd=e.createContext(void 0);function Yd(t){let{children:n,config:r}=t;return e.createElement(Gd.Provider,{children:e.createElement(Id,{children:n,client:r.queryClient,context:Kd}),value:r})}function Qd(){const t=e.useContext(Gd);if(!t)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join("\n"));return t}var Xd=Dd.useSyncExternalStore;function Jd(e){return"[object Object]"===Object.prototype.toString.call(e)}function eh(e,t,n){return r=e,Array.isArray(r)?"function"===typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e;var r}function th(e){return JSON.stringify(e,((e,t)=>function(e){if(!Jd(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!Jd(n)&&!!n.hasOwnProperty("isPrototypeOf")}(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):"bigint"===typeof t?t.toString():t))}function nh(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(r),e[r])})})),n}function rh(t,n){const r=Td({context:t.context}),i=$d(),o=Ld(),a=r.defaultQueryOptions({...t,queryKeyHashFn:th});a._optimisticResults=i?"isRestoring":"optimistic",a.onError&&(a.onError=td.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=td.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=td.batchCalls(a.onSettled)),a.suspense&&"number"!==typeof a.staleTime&&(a.staleTime=1e3),(a.suspense||a.useErrorBoundary)&&(o.isReset()||(a.retryOnMount=!1));const[s]=e.useState((()=>new n(r,a))),l=s.getOptimisticResult(a);if(Xd(e.useCallback((e=>i?()=>{}:s.subscribe(td.batchCalls(e))),[s,i]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),e.useEffect((()=>{o.clearReset()}),[o]),e.useEffect((()=>{s.setOptions(a,{listeners:!1})}),[a,s]),a.suspense&&l.isLoading&&l.isFetching&&!i)throw s.fetchOptimistic(a).then((e=>{var t,n;let{data:r}=e;null===(t=a.onSuccess)||void 0===t||t.call(a,r),null===(n=a.onSettled)||void 0===n||n.call(a,r,null)})).catch((e=>{var t,n;o.clearReset(),null===(t=a.onError)||void 0===t||t.call(a,e),null===(n=a.onSettled)||void 0===n||n.call(a,void 0,e)}));if(l.isError&&!o.isReset()&&!l.isFetching&&(c=a.useErrorBoundary,u=[l.error,s.getCurrentQuery()],"function"===typeof c?c(...u):c))throw l.error;var c,u;const d="loading"===l.status&&"idle"===l.fetchStatus?"idle":l.status,h="idle"===d,p="loading"===d&&"fetching"===l.fetchStatus;return{...l,defaultedOptions:a,isIdle:h,isLoading:p,observer:s,status:d}}function ih(t,n,r){const i=Lu(t,n,r);return function(t,n,r){const i=Lu(t,n,r),o=Td({context:i.context}),[a]=e.useState((()=>new Bd(o,i)));e.useEffect((()=>{a.setOptions(i)}),[a,i]);const s=Ud(e.useCallback((e=>a.subscribe(td.batchCalls(e))),[a]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),l=e.useCallback(((e,t)=>{a.mutate(e,t).catch(Fd)}),[a]);if(s.error&&(c=a.options.useErrorBoundary,u=[s.error],"function"===typeof c?c(...u):c))throw s.error;var c,u;return{...s,mutate:l,mutateAsync:s.mutate}}({context:Kd,...i})}function oh(e,t,n){const r=eh(e,t,n),i=rh({context:Kd,...r},zd),o={data:i.data,error:i.error,fetchStatus:i.fetchStatus,isError:i.isError,isFetched:i.isFetched,isFetchedAfterMount:i.isFetchedAfterMount,isFetching:i.isFetching,isIdle:i.isIdle,isLoading:i.isLoading,isRefetching:i.isRefetching,isSuccess:i.isSuccess,refetch:i.refetch,status:i.status,internal:{dataUpdatedAt:i.dataUpdatedAt,errorUpdatedAt:i.errorUpdatedAt,failureCount:i.failureCount,isFetchedAfterMount:i.isFetchedAfterMount,isLoadingError:i.isLoadingError,isPaused:i.isPaused,isPlaceholderData:i.isPlaceholderData,isPreviousData:i.isPreviousData,isRefetchError:i.isRefetchError,isStale:i.isStale,remove:i.remove}};return i.defaultedOptions.notifyOnChangeProps?o:nh(o,i.observer)}var ah=()=>Td({context:Kd});function sh(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,qd.useSyncExternalStoreWithSelector)((t=>{return n={chainId:e},r=t,Qi().subscribe((e=>{let{publicClient:t}=e;return t}),(async()=>r(to(n))));var n,r}),(()=>to({chainId:e})),(()=>to({chainId:e})),(e=>e),((e,t)=>e.uid===t.uid))}function lh(e){let{chainId:t}=e;return[{entity:"walletClient",chainId:t,persist:!1}]}function ch(e){let{queryKey:[{chainId:t}]}=e;return no({chainId:t})}function uh(){let{chainId:t,suspense:n,onError:r,onSettled:i,onSuccess:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{connector:a}=fh(),s=dh({chainId:t}),l=oh(lh({chainId:s}),ch,{cacheTime:0,enabled:Boolean(a),staleTime:1/0,suspense:n,onError:r,onSettled:i,onSuccess:o}),c=ah();return e.useEffect((()=>{const e=function(e,t){let{chainId:n}=e;const r=Qi().subscribe((e=>{var t;let{data:n,connector:r}=e;return{account:null===n||void 0===n?void 0:n.account,chainId:null===n||void 0===n||null===(t=n.chain)||void 0===t?void 0:t.id,connector:r}}),(async e=>{let{chainId:r}=e;if(n&&r&&n!==r)return;const i=await no({chainId:n});return Qi().connector?t(i):t(null)}),{equalityFn:Pi});return r}({chainId:s},(e=>{e?c.invalidateQueries(lh({chainId:s})):c.removeQueries(lh({chainId:s}))}));return e}),[c,s]),l}function dh(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return sh({chainId:e}).chain.id}var hh=e=>"object"===typeof e&&!Array.isArray(e);function ph(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$i;const o=e.useRef([]),a=(0,qd.useSyncExternalStoreWithSelector)(t,n,r,(e=>e),((e,t)=>{if(hh(e)&&hh(t)&&o.current.length){for(const n of o.current){if(!i(e[n],t[n]))return!1}return!0}return i(e,t)}));if(hh(a)){const e={...a};return Object.defineProperties(e,Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(n)||o.current.push(n),r)}}}),{})),e}return a}function fh(){let{onConnect:t,onDisconnect:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=Qd(),i=ph(e.useCallback((e=>uo(e)),[r]),so),o=e.useRef(),a=o.current;return e.useEffect((()=>{"connected"!==(null===a||void 0===a?void 0:a.status)&&"connected"===i.status&&(null===t||void 0===t||t({address:i.address,connector:i.connector,isReconnected:"reconnecting"===(null===a||void 0===a?void 0:a.status)||void 0===(null===a||void 0===a?void 0:a.status)})),"connected"===(null===a||void 0===a?void 0:a.status)&&"disconnected"===i.status&&(null===n||void 0===n||n()),o.current=i}),[t,n,a,i]),i}function mh(){const t=Qd();return ph((0,e.useCallback)((e=>ho(e)),[t]),lo)}var gh=e=>[{entity:"switchNetwork",...e}],vh=e=>{const{chainId:t}=e;if(!t)throw new Error("chainId is required");return co({chainId:t})};function yh(){var t,n;let{chainId:r,throwForSwitchChainNotSupported:i,onError:o,onMutate:a,onSettled:s,onSuccess:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=Qd(),u=function(){const[,t]=e.useReducer((e=>e+1),0);return t}(),{data:d,error:h,isError:p,isIdle:f,isLoading:m,isSuccess:g,mutate:v,mutateAsync:y,reset:b,status:w,variables:x}=ih(gh({chainId:r}),vh,{onError:o,onMutate:a,onSettled:s,onSuccess:l}),C=e.useCallback((e=>v({chainId:null!==e&&void 0!==e?e:r})),[r,v]),E=e.useCallback((e=>y({chainId:null!==e&&void 0!==e?e:r})),[r,y]);let S,k;e.useEffect((()=>{const e=c.subscribe((e=>{let{chains:t,connector:n}=e;return{chains:t,connector:n}}),u);return e}),[c,u]);const _=!(null===(t=c.connector)||void 0===t||!t.switchChain);return(i||_)&&(S=C,k=E),{chains:null!==(n=c.chains)&&void 0!==n?n:[],data:d,error:h,isError:p,isIdle:f,isLoading:m,isSuccess:g,pendingChainId:null===x||void 0===x?void 0:x.chainId,reset:b,status:w,switchNetwork:S,switchNetworkAsync:k,variables:x}}var bh,wh;var xh=class extends Je{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,Ye(this,bh,void 0),Ye(this,wh,void 0),this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,et.K)(e[0])})},this.onChainChanged=e=>{const t=We(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const n=await t.enable(),r=(0,et.K)(n[0]);let i=await this.getChainId(),o=this.isChainUnsupported(i);if(e&&i!==e){i=(await this.switchChain(e)).id,o=this.isChainUnsupported(i)}return{account:r,chain:{id:i,unsupported:o}}}catch(t){if(/(user closed modal|accounts received is empty)/i.test(t.message))throw new vt(t);throw t}}async disconnect(){if(!Ke(this,wh))return;const e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){const e=await this.getProvider(),t=await e.request({method:"eth_accounts"});return(0,et.K)(t[0])}async getChainId(){return We((await this.getProvider()).chainId)}async getProvider(){if(!Ke(this,wh)){var e;let t=(await Promise.all([n.e(159),n.e(753)]).then(n.t.bind(n,9159,19))).default;"function"!==typeof t&&"function"===typeof t.default&&(t=t.default),Qe(this,bh,new t(this.options));const r=null===(e=Ke(this,bh).walletExtension)||void 0===e?void 0:e.getChainId(),i=this.chains.find((e=>this.options.chainId?e.id===this.options.chainId:e.id===r))||this.chains[0],o=this.options.chainId||(null===i||void 0===i?void 0:i.id),a=this.options.jsonRpcUrl||(null===i||void 0===i?void 0:i.rpcUrls.default.http[0]);Qe(this,wh,Ke(this,bh).makeWeb3Provider(a,o))}return Ke(this,wh)}async getWalletClient(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find((t=>t.id===e));if(!t)throw new Error("provider is required.");return kn({account:n,chain:r,transport:Tn(t)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){const t=await this.getProvider(),n=(0,It.eC)(e);try{var r;return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),null!==(r=this.chains.find((t=>t.id===e)))&&void 0!==r?r:{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){const r=this.chains.find((t=>t.id===e));if(!r)throw new Fe({chainId:e,connectorId:this.id});if(4902===a.code)try{var i,o;return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:r.name,nativeCurrency:r.nativeCurrency,rpcUrls:[null!==(i=null===(o=r.rpcUrls.public)||void 0===o?void 0:o.http[0])&&void 0!==i?i:""],blockExplorerUrls:this.getBlockExplorerUrls(r)}]}),r}catch(s){throw new vt(s)}throw new Ct(a)}}async watchAsset(e){let{address:t,decimals:n=18,image:r,symbol:i}=e;return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:r,symbol:i}}})}};bh=new WeakMap,wh=new WeakMap;var Ch,Eh,Sh,kh,_h,Ph,Ah,Rh,Oh,Th,Ih,Nh,$h,Mh,jh,Lh,Dh,Bh,Uh,Fh,zh=n(5974),Wh="eip155",Zh="requestedChains",Hh="wallet_addEthereumChain",Vh=class extends Je{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),Ye(this,Sh),Ye(this,_h),Ye(this,Ah),Ye(this,Oh),Ye(this,Ih),Ye(this,$h),Ye(this,jh),Ye(this,Dh),Ye(this,Uh),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,Ye(this,Ch,void 0),Ye(this,Eh,void 0),this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,et.K)(e[0])})},this.onChainChanged=e=>{const t=Number(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{Xe(this,$h,Mh).call(this,[]),this.emit("disconnect")},this.onDisplayUri=e=>{this.emit("message",{type:"display_uri",data:e})},this.onConnect=()=>{this.emit("connect",{})},Xe(this,Sh,kh).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{let s=e;if(!s){var n,r,i,o,a;const e=null===(n=this.storage)||void 0===n?void 0:n.getItem("store"),t=null===e||void 0===e||null===(r=e.state)||void 0===r||null===(i=r.data)||void 0===i||null===(o=i.chain)||void 0===o?void 0:o.id;s=t&&!this.isChainUnsupported(t)?t:null===(a=this.chains[0])||void 0===a?void 0:a.id}if(!s)throw new Error("No chains found on connector.");const l=await this.getProvider();Xe(this,Oh,Th).call(this);const c=Xe(this,Ah,Rh).call(this);if(l.session&&c&&await l.disconnect(),!l.session||c){const e=this.chains.filter((e=>e.id!==s)).map((e=>e.id));this.emit("message",{type:"connecting"}),await l.connect({pairingTopic:t,optionalChains:[s,...e]}),Xe(this,$h,Mh).call(this,this.chains.map((e=>{let{id:t}=e;return t})))}const u=await l.enable(),d=(0,et.K)(u[0]),h=await this.getChainId();return{account:d,chain:{id:h,unsupported:this.isChainUnsupported(h)}}}catch(s){if(/user rejected/i.test(null===s||void 0===s?void 0:s.message))throw new vt(s);throw s}}async disconnect(){const e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{Xe(this,Ih,Nh).call(this),Xe(this,$h,Mh).call(this,[])}}async getAccount(){const{accounts:e}=await this.getProvider();return(0,et.K)(e[0])}async getChainId(){const{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ke(this,Ch)||await Xe(this,Sh,kh).call(this),e&&await this.switchChain(e),Ke(this,Ch)}async getWalletClient(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),r=this.chains.find((t=>t.id===e));if(!t)throw new Error("provider is required.");return kn({account:n,chain:r,transport:Tn(t)})}async isAuthorized(){try{const[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=Xe(this,Ah,Rh).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){const t=this.chains.find((t=>t.id===e));if(!t)throw new Ct(new Error("chain not found on connector."));try{const i=await this.getProvider(),o=Xe(this,Dh,Bh).call(this),a=Xe(this,Uh,Fh).call(this);if(!o.includes(e)&&a.includes(Hh)){var n,r;await i.request({method:Hh,params:[{chainId:(0,It.eC)(t.id),blockExplorerUrls:[null===(n=t.blockExplorers)||void 0===n||null===(r=n.default)||void 0===r?void 0:r.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});const o=Xe(this,jh,Lh).call(this);o.push(e),Xe(this,$h,Mh).call(this,o)}return await i.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,It.eC)(e)}]}),t}catch(i){const e="string"===typeof i?i:null===i||void 0===i?void 0:i.message;if(/user rejected request/i.test(e))throw new vt(i);throw new Ct(i)}}};Ch=new WeakMap,Eh=new WeakMap,Sh=new WeakSet,kh=async function(){return Ke(this,Eh)||"undefined"===typeof window||Qe(this,Eh,Xe(this,_h,Ph).call(this)),Ke(this,Eh)},_h=new WeakSet,Ph=async function(){const{EthereumProvider:e}=await n.e(407).then(n.bind(n,7407)),t=this.chains.map((e=>{let{id:t}=e;return t}));if(t.length){const{projectId:n,showQrModal:r=!0,qrModalOptions:i,metadata:o,relayUrl:a}=this.options;Qe(this,Ch,await e.init({showQrModal:r,qrModalOptions:i,projectId:n,optionalChains:t,rpcMap:Object.fromEntries(this.chains.map((e=>[e.id,e.rpcUrls.default.http[0]]))),metadata:o,relayUrl:a}))}},Ah=new WeakSet,Rh=function(){if(Xe(this,Uh,Fh).call(this).includes(Hh))return!1;if(!this.options.isNewChainsStale)return!1;const e=Xe(this,jh,Lh).call(this),t=this.chains.map((e=>{let{id:t}=e;return t})),n=Xe(this,Dh,Bh).call(this);return!(n.length&&!n.some((e=>t.includes(e))))&&!t.every((t=>e.includes(t)))},Oh=new WeakSet,Th=function(){Ke(this,Ch)&&(Xe(this,Ih,Nh).call(this),Ke(this,Ch).on("accountsChanged",this.onAccountsChanged),Ke(this,Ch).on("chainChanged",this.onChainChanged),Ke(this,Ch).on("disconnect",this.onDisconnect),Ke(this,Ch).on("session_delete",this.onDisconnect),Ke(this,Ch).on("display_uri",this.onDisplayUri),Ke(this,Ch).on("connect",this.onConnect))},Ih=new WeakSet,Nh=function(){Ke(this,Ch)&&(Ke(this,Ch).removeListener("accountsChanged",this.onAccountsChanged),Ke(this,Ch).removeListener("chainChanged",this.onChainChanged),Ke(this,Ch).removeListener("disconnect",this.onDisconnect),Ke(this,Ch).removeListener("session_delete",this.onDisconnect),Ke(this,Ch).removeListener("display_uri",this.onDisplayUri),Ke(this,Ch).removeListener("connect",this.onConnect))},$h=new WeakSet,Mh=function(e){var t;null===(t=this.storage)||void 0===t||t.setItem(Zh,e)},jh=new WeakSet,Lh=function(){var e,t;return null!==(e=null===(t=this.storage)||void 0===t?void 0:t.getItem(Zh))&&void 0!==e?e:[]},Dh=new WeakSet,Bh=function(){var e,t,n;if(!Ke(this,Ch))return[];const r=null===(e=Ke(this,Ch).session)||void 0===e?void 0:e.namespaces;if(!r)return[];const i=null===(t=(0,zh.fK)(r)[Wh])||void 0===t||null===(n=t.chains)||void 0===n?void 0:n.map((e=>parseInt(e.split(":")[1]||"")));return null!==i&&void 0!==i?i:[]},Uh=new WeakSet,Fh=function(){var e,t;if(!Ke(this,Ch))return[];const n=null===(e=Ke(this,Ch).session)||void 0===e?void 0:e.namespaces;if(!n)return[];const r=null===(t=(0,zh.fK)(n)[Wh])||void 0===t?void 0:t.methods;return null!==r&&void 0!==r?r:[]};class qh extends Je{constructor(e){super(e),this.id="w3mEmail",this.name="Web3Modal Email",this.ready=!0,this.provider={},"undefined"!==typeof window&&(this.provider=new oc(e.options.projectId))}async getProvider(){return Promise.resolve(this.provider)}async connect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{address:t,chainId:n}=await this.provider.connect({chainId:e.chainId});return{account:t,chain:{id:n,unsupported:this.isChainUnsupported(1)}}}async switchChain(e){try{const t=this.chains.find((t=>t.id===e));if(!t)throw new Ct(new Error("chain not found on connector."));await this.provider.switchNetwork(e);const n=this.isChainUnsupported(e);return this.emit("change",{chain:{id:e,unsupported:n}}),t}catch(t){if(t instanceof Error)throw new Ct(t);throw t}}async disconnect(){await this.provider.disconnect()}async getAccount(){const{address:e}=await this.provider.connect();return e}async getChainId(){const{chainId:e}=await this.provider.getChainId();return e}async getWalletClient(){const{address:e,chainId:t}=await this.provider.connect();return Promise.resolve(kn({account:e,chain:{id:t},transport:Tn(this.provider)}))}async isAuthorized(){const{isConnected:e}=await this.provider.isConnected();return e}onAccountsChanged(){}onChainChanged(){}onDisconnect(){}}const Gh=fo.j1.getBlockchainApiUrl();function Kh(e){let{projectId:t}=e;return function(e){if(!vu.WalletConnectRpcChainIds.includes(e.id))return null;const n=`${Gh}/v1/?chainId=${gu.EIP155}:${e.id}&projectId=${t}`;return{chain:{...e,rpcUrls:{...e.rpcUrls,default:{http:[n]}}},rpcUrls:{http:[n]}}}}let Yh;function Qh(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function Xh(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.useMemo((()=>n.every((e=>null==e))?null:e=>{n.forEach((t=>{Qh(t,e)}))}),n)}const Jh=function(e){return"string"===typeof e};const ep=function(e,t,n){return void 0===e||Jh(e)?t:(0,i.Z)({},t,{ownerState:(0,i.Z)({},t.ownerState,n)})};const tp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n};const np=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};const rp=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=s(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=(0,i.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),l=(0,i.Z)({},n,o,r);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=tp((0,i.Z)({},o,r)),c=np(r),u=np(o),d=t(l),h=s(null==d?void 0:d.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),p=(0,i.Z)({},null==d?void 0:d.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=(0,i.Z)({},d,n,u,c);return h.length>0&&(f.className=h),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:d.ref}};const ip=function(e,t,n){return"function"===typeof e?e(t,n):e},op=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];const ap=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:s=!1}=e,l=(0,o.Z)(e,op),c=s?{}:ip(r,a),{props:u,internalRef:d}=rp((0,i.Z)({},l,{externalSlotProps:c})),h=Xh(d,null==c?void 0:c.ref,null==(t=e.additionalProps)?void 0:t.ref);return ep(n,(0,i.Z)({},u,{ref:h}),a)},sp={};const lp=[];class cp{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new cp}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function up(){const t=function(t,n){const r=e.useRef(sp);return r.current===sp&&(r.current=t(n)),r}(cp.create).current;var n;return n=t.disposeEffect,e.useEffect(n,lp),t}const dp="undefined"!==typeof window?e.useLayoutEffect:e.useEffect;const hp=function(t){const n=e.useRef(t);return dp((()=>{n.current=t})),e.useRef((function(){return(0,n.current)(...arguments)})).current};const pp=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoHideDuration:n=null,disableWindowBlurListener:r=!1,onClose:o,open:a,resumeHideDuration:s}=t,l=up();e.useEffect((()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==o||o(e,"escapeKeyDown")}}),[a,o]);const c=hp(((e,t)=>{null==o||o(e,t)})),u=hp((e=>{o&&null!=e&&l.start(e,(()=>{c(null,"timeout")}))}));e.useEffect((()=>(a&&u(n),l.clear)),[a,n,u,l]);const d=l.clear,h=e.useCallback((()=>{null!=n&&u(null!=s?s:.5*n)}),[n,s,u]),p=e=>t=>{const n=e.onFocus;null==n||n(t),d()},f=e=>t=>{const n=e.onMouseEnter;null==n||n(t),d()},m=e=>t=>{const n=e.onMouseLeave;null==n||n(t),h()};return e.useEffect((()=>{if(!r&&a)return window.addEventListener("focus",h),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",d)}}),[r,a,h,d]),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,i.Z)({},tp(t),tp(e));return(0,i.Z)({role:"presentation"},e,n,{onBlur:(r=n,e=>{const t=r.onBlur;null==t||t(e),h()}),onFocus:p(n),onMouseEnter:f(n),onMouseLeave:m(n)});var r},onClickAway:e=>{null==o||o(e,"clickaway")}}};function fp(e){return e&&e.ownerDocument||document}function mp(e){return e.substring(2).toLowerCase()}function gp(t){const{children:n,disableReactTree:r=!1,mouseEvent:i="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),c=e.useRef(!1),u=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=Xh(n.ref,l),h=hp((e=>{const t=u.current;u.current=!1;const n=fp(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(s.current)return void(s.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(l.current)>-1:!n.documentElement.contains(e.target)||l.current.contains(e.target),i||!r&&t||o(e)})),p=e=>t=>{u.current=!0;const r=n.props[e];r&&r(t)},f={ref:d};return!1!==a&&(f[a]=p(a)),e.useEffect((()=>{if(!1!==a){const e=mp(a),t=fp(l.current),n=()=>{s.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,h),t.removeEventListener("touchmove",n)}}}),[h,a]),!1!==i&&(f[i]=p(i)),e.useEffect((()=>{if(!1!==i){const e=mp(i),t=fp(l.current);return t.addEventListener(e,h),()=>{t.removeEventListener(e,h)}}}),[h,i]),(0,g.jsx)(e.Fragment,{children:e.cloneElement(n,f)})}function vp(){const e=m(Re);return e[ee]||e}var yp=n(9611);function bp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,yp.Z)(e,t)}var wp=n(456);const xp=!1,Cp=e.createContext(null);var Ep="unmounted",Sp="exited",kp="entering",_p="entered",Pp="exiting",Ap=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var i,o=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i=Sp,r.appearStatus=kp):i=_p:i=e.unmountOnExit||e.mountOnEnter?Ep:Sp,r.state={status:i},r.nextCallback=null,r}bp(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ep?{status:Sp}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==kp&&n!==_p&&(t=kp):n!==kp&&n!==_p||(t=Pp)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===kp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:wp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sp&&this.setState({status:Ep})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[wp.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||xp?this.safeSetState({status:_p},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:kp},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:_p},(function(){t.props.onEntered(o,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:wp.findDOMNode(this);t&&!xp?(this.props.onExit(r),this.safeSetState({status:Pp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Sp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Sp},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:wp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===Ep)return null;var n=this.props,r=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,o.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(Cp.Provider,{value:null},"function"===typeof r?r(t,i):e.cloneElement(e.Children.only(r),i))},n}(e.Component);function Rp(){}Ap.contextType=Cp,Ap.propTypes={},Ap.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rp,onEntering:Rp,onEntered:Rp,onExit:Rp,onExiting:Rp,onExited:Rp},Ap.UNMOUNTED=Ep,Ap.EXITED=Sp,Ap.ENTERING=kp,Ap.ENTERED=_p,Ap.EXITING=Pp;const Op=Ap,Tp=e=>e.scrollTop;function Ip(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:a.transitionDelay}}const Np=Xh,$p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Mp(e){return`scale(${e}, ${e**2})`}const jp={entering:{opacity:1,transform:Mp(1)},entered:{opacity:1,transform:"none"}},Lp="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Dp=e.forwardRef((function(t,n){const{addEndListener:r,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:h,onExit:p,onExited:f,onExiting:m,style:v,timeout:y="auto",TransitionComponent:b=Op}=t,w=(0,o.Z)(t,$p),x=up(),C=e.useRef(),E=vp(),S=e.useRef(null),k=Np(S,s.ref,n),_=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},P=_(h),A=_(((e,t)=>{Tp(e);const{duration:n,delay:r,easing:i}=Ip({style:v,timeout:y,easing:l},{mode:"enter"});let o;"auto"===y?(o=E.transitions.getAutoHeightDuration(e.clientHeight),C.current=o):o=n,e.style.transition=[E.transitions.create("opacity",{duration:o,delay:r}),E.transitions.create("transform",{duration:Lp?o:.666*o,delay:r,easing:i})].join(","),u&&u(e,t)})),R=_(d),O=_(m),T=_((e=>{const{duration:t,delay:n,easing:r}=Ip({style:v,timeout:y,easing:l},{mode:"exit"});let i;"auto"===y?(i=E.transitions.getAutoHeightDuration(e.clientHeight),C.current=i):i=t,e.style.transition=[E.transitions.create("opacity",{duration:i,delay:n}),E.transitions.create("transform",{duration:Lp?i:.666*i,delay:Lp?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=Mp(.75),p&&p(e)})),I=_(f);return(0,g.jsx)(b,(0,i.Z)({appear:a,in:c,nodeRef:S,onEnter:A,onEntered:R,onEntering:P,onExit:T,onExited:I,onExiting:O,addEndListener:e=>{"auto"===y&&x.start(C.current||0,e),r&&r(S.current,e)},timeout:"auto"===y?null:y},w,{children:(t,n)=>e.cloneElement(s,(0,i.Z)({style:(0,i.Z)({opacity:0,transform:Mp(.75),visibility:"exited"!==t||c?void 0:"hidden"},jp[t],v,s.props.style),ref:k},n))}))}));Dp.muiSupportAuto=!0;const Bp=Dp,Up=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Fp(e){return ne("MuiPaper",e)}re("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 zp=["className","component","elevation","square","variant"],Wp=Ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,i.Z)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===n.variant&&(0,i.Z)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,S.Fq)("#fff",Up(n.elevation))}, ${(0,S.Fq)("#fff",Up(n.elevation))})`},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),Zp=e.forwardRef((function(e,t){const n=Me({props:e,name:"MuiPaper"}),{className:r,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation"}=n,d=(0,o.Z)(n,zp),h=(0,i.Z)({},n,{component:a,elevation:l,square:c,variant:u}),p=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return le({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Fp,i)})(h);return(0,g.jsx)(Wp,(0,i.Z)({as:a,ownerState:h,className:s(p.root,r),ref:t},d))})),Hp=Zp;function Vp(e){return ne("MuiSnackbarContent",e)}re("MuiSnackbarContent",["root","message","action"]);const qp=["action","className","message","role"],Gp=Ie(Hp,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?.8:.98,r=(0,S._4)(t.palette.background.default,n);return(0,i.Z)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),Kp=Ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Yp=Ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Qp=e.forwardRef((function(e,t){const n=Me({props:e,name:"MuiSnackbarContent"}),{action:r,className:a,message:l,role:c="alert"}=n,u=(0,o.Z)(n,qp),d=n,h=(e=>{const{classes:t}=e;return le({root:["root"],action:["action"],message:["message"]},Vp,t)})(d);return(0,g.jsxs)(Gp,(0,i.Z)({role:c,square:!0,elevation:6,className:s(h.root,a),ownerState:d,ref:t},u,{children:[(0,g.jsx)(Kp,{className:h.message,ownerState:d,children:l}),r?(0,g.jsx)(Yp,{className:h.action,ownerState:d,children:r}):null]}))})),Xp=Qp;function Jp(e){return ne("MuiSnackbar",e)}re("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ef=["onEnter","onExited"],tf=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],nf=Ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Pe(n.anchorOrigin.vertical)}${Pe(n.anchorOrigin.horizontal)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,i.Z)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),rf=e.forwardRef((function(t,n){const r=Me({props:t,name:"MuiSnackbar"}),a=vp(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:c,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:h,className:p,ClickAwayListenerProps:f,ContentProps:m,disableWindowBlurListener:v=!1,message:y,open:b,TransitionComponent:w=Bp,transitionDuration:x=s,TransitionProps:{onEnter:C,onExited:E}={}}=r,S=(0,o.Z)(r.TransitionProps,ef),k=(0,o.Z)(r,tf),_=(0,i.Z)({},r,{anchorOrigin:{vertical:c,horizontal:u},autoHideDuration:d,disableWindowBlurListener:v,TransitionComponent:w,transitionDuration:x}),P=(e=>{const{classes:t,anchorOrigin:n}=e;return le({root:["root",`anchorOrigin${Pe(n.vertical)}${Pe(n.horizontal)}`]},Jp,t)})(_),{getRootProps:A,onClickAway:R}=pp((0,i.Z)({},_)),[O,T]=e.useState(!0),I=ap({elementType:nf,getSlotProps:A,externalForwardedProps:k,ownerState:_,additionalProps:{ref:n},className:[P.root,p]});return!b&&O?null:(0,g.jsx)(gp,(0,i.Z)({onClickAway:R},f,{children:(0,g.jsx)(nf,(0,i.Z)({},I,{children:(0,g.jsx)(w,(0,i.Z)({appear:!0,in:b,timeout:x,direction:"top"===c?"down":"up",onEnter:(e,t)=>{T(!1),C&&C(e,t)},onExited:e=>{T(!0),E&&E(e)}},S,{children:h||(0,g.jsx)(Xp,(0,i.Z)({message:y,action:l},m))}))}))}))})),of=rf,af=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],sf=["component","slots","slotProps"],lf=["component"];function cf(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:s,getSlotOwnerState:l,internalForwardedProps:c}=t,u=(0,o.Z)(t,af),{component:d,slots:h={[e]:void 0},slotProps:p={[e]:void 0}}=s,f=(0,o.Z)(s,sf),m=h[e]||r,g=ip(p[e],a),v=rp((0,i.Z)({className:n},u,{externalForwardedProps:"root"===e?f:void 0,externalSlotProps:g})),{props:{component:y},internalRef:b}=v,w=(0,o.Z)(v.props,lf),x=Xh(b,null==g?void 0:g.ref,t.ref),C=l?l(w):{},E=(0,i.Z)({},a,C),S="root"===e?y||d:y,k=ep(m,(0,i.Z)({},"root"===e&&!d&&!h[e]&&c,"root"!==e&&!h[e]&&c,w,S&&{as:S},{ref:x}),E);return Object.keys(C).forEach((e=>{delete k[e]})),[m,k]}function uf(e){return ne("MuiAlert",e)}const df=re("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),hf=hp;let pf=!0,ff=!1;const mf=new cp,gf={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 vf(e){e.metaKey||e.altKey||e.ctrlKey||(pf=!0)}function yf(){pf=!1}function bf(){"hidden"===this.visibilityState&&ff&&(pf=!0)}function wf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return pf||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!gf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const xf=function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",vf,!0),t.addEventListener("mousedown",yf,!0),t.addEventListener("pointerdown",yf,!0),t.addEventListener("touchstart",yf,!0),t.addEventListener("visibilitychange",bf,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!wf(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(ff=!0,mf.start(100,(()=>{ff=!1})),n.current=!1,!0)},ref:t}};function Cf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ef(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Sf(e,t,n){return null!=n[t]?n[t]:e.props[t]}function kf(t,n,r){var i=Ef(t.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(n,i);return Object.keys(o).forEach((function(a){var s=o[a];if((0,e.isValidElement)(s)){var l=a in n,c=a in i,u=n[a],d=(0,e.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,e.isValidElement)(u)&&(o[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:u.props.in,exit:Sf(s,"exit",t),enter:Sf(s,"enter",t)})):o[a]=(0,e.cloneElement)(s,{in:!1}):o[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Sf(s,"exit",t),enter:Sf(s,"enter",t)})}})),o}var _f=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Pf=function(t){function n(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(Cf(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}bp(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,i,o=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,i=a,Ef(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:i.bind(null,t),in:!0,appear:Sf(t,"appear",r),enter:Sf(t,"enter",r),exit:Sf(t,"exit",r)})}))):kf(t,o,a),firstRender:!1}},r.handleExited=function(e,t){var n=Ef(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,i.Z)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,i=(0,o.Z)(t,["component","childFactory"]),a=this.state.contextValue,s=_f(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?e.createElement(Cp.Provider,{value:a},s):e.createElement(Cp.Provider,{value:a},e.createElement(n,i,s))},n}(e.Component);Pf.propTypes={},Pf.defaultProps={component:"div",childFactory:function(e){return e}};const Af=Pf;var Rf=n(1984);const Of=function(t){const{className:n,classes:r,pulsate:i=!1,rippleX:o,rippleY:a,rippleSize:l,in:c,onExited:u,timeout:d}=t,[h,p]=e.useState(!1),f=s(n,r.ripple,r.rippleVisible,i&&r.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+o},v=s(r.child,h&&r.childLeaving,i&&r.childPulsate);return c||h||p(!0),e.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,g.jsx)("span",{className:f,style:m,children:(0,g.jsx)("span",{className:v})})};const Tf=re("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),If=["center","classes","className"];let Nf,$f,Mf,jf,Lf=e=>e;const Df=(0,Rf.F4)(Nf||(Nf=Lf` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),Bf=(0,Rf.F4)($f||($f=Lf` 0% { opacity: 1; } 100% { opacity: 0; } `)),Uf=(0,Rf.F4)(Mf||(Mf=Lf` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),Ff=Ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zf=Ie(Of,{name:"MuiTouchRipple",slot:"Ripple"})(jf||(jf=Lf` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),Tf.rippleVisible,Df,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Tf.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Tf.child,Tf.childLeaving,Bf,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Tf.childPulsate,Uf,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),Wf=e.forwardRef((function(t,n){const r=Me({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:l={},className:c}=r,u=(0,o.Z)(r,If),[d,h]=e.useState([]),p=e.useRef(0),f=e.useRef(null);e.useEffect((()=>{f.current&&(f.current(),f.current=null)}),[d]);const m=e.useRef(!1),v=up(),y=e.useRef(null),b=e.useRef(null),w=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:o}=e;h((e=>[...e,(0,g.jsx)(zf,{classes:{ripple:s(l.ripple,Tf.ripple),rippleVisible:s(l.rippleVisible,Tf.rippleVisible),ripplePulsate:s(l.ripplePulsate,Tf.ripplePulsate),child:s(l.child,Tf.child),childLeaving:s(l.childLeaving,Tf.childLeaving),childPulsate:s(l.childPulsate,Tf.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},p.current)])),p.current+=1,f.current=o}),[l]),x=e.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:r=!1,center:i=a||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const s=o?null:b.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===y.current&&(y.current=()=>{w({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},v.start(80,(()=>{y.current&&(y.current(),y.current=null)}))):w({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[a,w,v]),C=e.useCallback((()=>{x({},{pulsate:!0})}),[x]),E=e.useCallback(((e,t)=>{if(v.clear(),"touchend"===(null==e?void 0:e.type)&&y.current)return y.current(),y.current=null,void v.start(0,(()=>{E(e,t)}));y.current=null,h((e=>e.length>0?e.slice(1):e)),f.current=t}),[v]);return e.useImperativeHandle(n,(()=>({pulsate:C,start:x,stop:E})),[C,x,E]),(0,g.jsx)(Ff,(0,i.Z)({className:s(Tf.root,l.root,c),ref:b},u,{children:(0,g.jsx)(Af,{component:null,exit:!0,children:d})}))})),Zf=Wf;function Hf(e){return ne("MuiButtonBase",e)}const Vf=re("MuiButtonBase",["root","disabled","focusVisible"]),qf=["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"],Gf=Ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Vf.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kf=e.forwardRef((function(t,n){const r=Me({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:l=!1,children:c,className:u,component:d="button",disabled:h=!1,disableRipple:p=!1,disableTouchRipple:f=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:y,onClick:b,onContextMenu:w,onDragLeave:x,onFocus:C,onFocusVisible:E,onKeyDown:S,onKeyUp:k,onMouseDown:_,onMouseLeave:P,onMouseUp:A,onTouchEnd:R,onTouchMove:O,onTouchStart:T,tabIndex:I=0,TouchRippleProps:N,touchRippleRef:$,type:M}=r,j=(0,o.Z)(r,qf),L=e.useRef(null),D=e.useRef(null),B=Np(D,$),{isFocusVisibleRef:U,onFocus:F,onBlur:z,ref:W}=xf(),[Z,H]=e.useState(!1);h&&Z&&H(!1),e.useImperativeHandle(a,(()=>({focusVisible:()=>{H(!0),L.current.focus()}})),[]);const[V,q]=e.useState(!1);e.useEffect((()=>{q(!0)}),[]);const G=V&&!p&&!h;function K(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return hf((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}e.useEffect((()=>{Z&&m&&!p&&V&&D.current.pulsate()}),[p,m,Z,V]);const Y=K("start",_),Q=K("stop",w),X=K("stop",x),J=K("stop",A),ee=K("stop",(e=>{Z&&e.preventDefault(),P&&P(e)})),te=K("start",T),ne=K("stop",R),re=K("stop",O),ie=K("stop",(e=>{z(e),!1===U.current&&H(!1),y&&y(e)}),!1),oe=hf((e=>{L.current||(L.current=e.currentTarget),F(e),!0===U.current&&(H(!0),E&&E(e)),C&&C(e)})),ae=()=>{const e=L.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},se=e.useRef(!1),ce=hf((e=>{m&&!se.current&&Z&&D.current&&" "===e.key&&(se.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!h&&(e.preventDefault(),b&&b(e))})),ue=hf((e=>{m&&" "===e.key&&D.current&&Z&&!e.defaultPrevented&&(se.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),k&&k(e),b&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&b(e)}));let de=d;"button"===de&&(j.href||j.to)&&(de=v);const he={};"button"===de?(he.type=void 0===M?"button":M,he.disabled=h):(j.href||j.to||(he.role="button"),h&&(he["aria-disabled"]=h));const pe=Np(n,W,L);const fe=(0,i.Z)({},r,{centerRipple:l,component:d,disabled:h,disableRipple:p,disableTouchRipple:f,focusRipple:m,tabIndex:I,focusVisible:Z}),me=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=le({root:["root",t&&"disabled",n&&"focusVisible"]},Hf,i);return n&&r&&(o.root+=` ${r}`),o})(fe);return(0,g.jsxs)(Gf,(0,i.Z)({as:de,className:s(me.root,u),ownerState:fe,onBlur:ie,onClick:b,onContextMenu:Q,onFocus:oe,onKeyDown:ce,onKeyUp:ue,onMouseDown:Y,onMouseLeave:ee,onMouseUp:J,onDragLeave:X,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:pe,tabIndex:h?-1:I,type:M},he,j,{children:[c,G?(0,g.jsx)(Zf,(0,i.Z)({ref:B,center:l},N)):null]}))})),Yf=Kf;function Qf(e){return ne("MuiIconButton",e)}const Xf=re("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Jf=["edge","children","className","color","disabled","disableFocusRipple","size"],em=Ie(Yf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Pe(n.color)}`],n.edge&&t[`edge${Pe(n.edge)}`],t[`size${Pe(n.size)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,S.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const o=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,i.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,i.Z)({color:null==o?void 0:o.main},!n.disableRipple&&{"&:hover":(0,i.Z)({},o&&{backgroundColor:t.vars?`rgba(${o.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,S.Fq)(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${Xf.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),tm=e.forwardRef((function(e,t){const n=Me({props:e,name:"MuiIconButton"}),{edge:r=!1,children:a,className:l,color:c="default",disabled:u=!1,disableFocusRipple:d=!1,size:h="medium"}=n,p=(0,o.Z)(n,Jf),f=(0,i.Z)({},n,{edge:r,color:c,disabled:u,disableFocusRipple:d,size:h}),m=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e;return le({root:["root",n&&"disabled","default"!==r&&`color${Pe(r)}`,i&&`edge${Pe(i)}`,`size${Pe(o)}`]},Qf,t)})(f);return(0,g.jsx)(em,(0,i.Z)({className:s(m.root,l),centerRipple:!0,focusRipple:!d,disabled:u,ref:t},p,{ownerState:f,children:a}))})),nm=tm;function rm(e){return ne("MuiSvgIcon",e)}re("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const im=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],om=Ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Pe(n.color)}`],t[`fontSize${Pe(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,i,o,a,s,l,c,u,d,h,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(i=r.create)?void 0:i.call(r,"fill",{duration:null==(o=t.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(h=null==(p=(t.vars||t).palette)||null==(p=p[n.color])?void 0:p.main)?h:{action:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}})),am=e.forwardRef((function(t,n){const r=Me({props:t,name:"MuiSvgIcon"}),{children:a,className:l,color:c="inherit",component:u="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:p=!1,titleAccess:f,viewBox:m="0 0 24 24"}=r,v=(0,o.Z)(r,im),y=e.isValidElement(a)&&"svg"===a.type,b=(0,i.Z)({},r,{color:c,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:y}),w={};p||(w.viewBox=m);const x=(e=>{const{color:t,fontSize:n,classes:r}=e;return le({root:["root","inherit"!==t&&`color${Pe(t)}`,`fontSize${Pe(n)}`]},rm,r)})(b);return(0,g.jsxs)(om,(0,i.Z)({as:u,className:s(x.root,l),focusable:"false",color:h,"aria-hidden":!f||void 0,role:f?"img":void 0,ref:n},w,v,y&&a.props,{ownerState:b,children:[y?a.props.children:a,f?(0,g.jsx)("title",{children:f}):null]}))}));am.muiName="SvgIcon";const sm=am;function lm(t,n){function r(e,r){return(0,g.jsx)(sm,(0,i.Z)({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=sm.muiName,e.memo(e.forwardRef(r))}const cm=lm((0,g.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"),um=lm((0,g.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),dm=lm((0,g.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"),hm=lm((0,g.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"),pm=lm((0,g.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"),fm=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],mm=Ie(Hp,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pe(n.color||n.severity)}`]]}})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?S._j:S.$n,r="light"===t.palette.mode?S.$n:S._j;return(0,i.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[i]=e;return{props:{colorSeverity:i,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${i}Color`]:n(t.palette[i].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${i}StandardBg`]:r(t.palette[i].light,.9),[`& .${df.icon}`]:t.vars?{color:t.vars.palette.Alert[`${i}IconColor`]}:{color:t.palette[i].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:n(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${df.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.dark})).map((e=>{let[n]=e;return{props:{colorSeverity:n,variant:"filled"},style:(0,i.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:"dark"===t.palette.mode?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)})}}))]})})),gm=Ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),vm=Ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ym=Ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),bm={success:(0,g.jsx)(cm,{fontSize:"inherit"}),warning:(0,g.jsx)(um,{fontSize:"inherit"}),error:(0,g.jsx)(dm,{fontSize:"inherit"}),info:(0,g.jsx)(hm,{fontSize:"inherit"})},wm=e.forwardRef((function(e,t){const n=Me({props:e,name:"MuiAlert"}),{action:r,children:a,className:l,closeText:c="Close",color:u,components:d={},componentsProps:h={},icon:p,iconMapping:f=bm,onClose:m,role:v="alert",severity:y="success",slotProps:b={},slots:w={},variant:x="standard"}=n,C=(0,o.Z)(n,fm),E=(0,i.Z)({},n,{color:u,severity:y,variant:x,colorSeverity:u||y}),S=(e=>{const{variant:t,color:n,severity:r,classes:i}=e;return le({root:["root",`color${Pe(n||r)}`,`${t}${Pe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},uf,i)})(E),k={slots:(0,i.Z)({closeButton:d.CloseButton,closeIcon:d.CloseIcon},w),slotProps:(0,i.Z)({},h,b)},[_,P]=cf("closeButton",{elementType:nm,externalForwardedProps:k,ownerState:E}),[A,R]=cf("closeIcon",{elementType:pm,externalForwardedProps:k,ownerState:E});return(0,g.jsxs)(mm,(0,i.Z)({role:v,elevation:0,ownerState:E,className:s(S.root,l),ref:t},C,{children:[!1!==p?(0,g.jsx)(gm,{ownerState:E,className:S.icon,children:p||f[y]||bm[y]}):null,(0,g.jsx)(vm,{ownerState:E,className:S.message,children:a}),null!=r?(0,g.jsx)(ym,{ownerState:E,className:S.action,children:r}):null,null==r&&m?(0,g.jsx)(ym,{ownerState:E,className:S.action,children:(0,g.jsx)(_,(0,i.Z)({size:"small","aria-label":c,title:c,color:"inherit",onClick:m},P,{children:(0,g.jsx)(A,(0,i.Z)({fontSize:"small"},R))}))}):null]}))})),xm=wm;function Cm(e){return ne("MuiButton",e)}const Em=re("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"]);const Sm=e.createContext({});const km=e.createContext(void 0),_m=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Pm=e=>(0,i.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Am=Ie(Yf,{shouldForwardProp:e=>Te(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pe(n.color)}`],t[`size${Pe(n.size)}`],t[`${n.variant}Size${Pe(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,o;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,i.Z)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,i.Z)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,S.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,S.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,S.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,i.Z)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${Em.focusVisible}`]:(0,i.Z)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${Em.disabled}`]:(0,i.Z)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,S.Fq)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(o=t.palette).getContrastText)?void 0:r.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Em.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Em.disabled}`]:{boxShadow:"none"}}})),Rm=Ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Pe(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Pm(t))})),Om=Ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Pe(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Pm(t))})),Tm=e.forwardRef((function(t,n){const r=e.useContext(Sm),a=e.useContext(km),l=Me({props:ue(r,t),name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:h,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:y,fullWidth:b=!1,size:w="medium",startIcon:x,type:C,variant:E="text"}=l,S=(0,o.Z)(l,_m),k=(0,i.Z)({},l,{color:u,component:d,disabled:p,disableElevation:f,disableFocusRipple:m,fullWidth:b,size:w,type:C,variant:E}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:s}=e,l=le({root:["root",a,`${a}${Pe(t)}`,`size${Pe(o)}`,`${a}Size${Pe(o)}`,`color${Pe(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Pe(o)}`],endIcon:["icon","endIcon",`iconSize${Pe(o)}`]},Cm,s);return(0,i.Z)({},s,l)})(k),P=x&&(0,g.jsx)(Rm,{className:_.startIcon,ownerState:k,children:x}),A=v&&(0,g.jsx)(Om,{className:_.endIcon,ownerState:k,children:v}),R=a||"";return(0,g.jsxs)(Am,(0,i.Z)({ownerState:k,className:s(r.className,_.root,h,R),component:d,disabled:p,focusRipple:!m,focusVisibleClassName:s(_.focusVisible,y),ref:n,type:C},S,{classes:_,children:[P,c,A]}))})),Im=Tm;function Nm(e){let{alertState:t,setAlertState:n}=e;return(0,g.jsx)(of,{anchorOrigin:{vertical:"top",horizontal:"center"},open:t.open,autoHideDuration:1e4,onClose:()=>n({...t,open:!1}),children:(0,g.jsx)(xm,{onClose:()=>n({...t,open:!1}),severity:t.severity,children:t.message})},"top center")}function $m(e){let{children:t,...n}=e;return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(Im,{...n,sx:{color:"#ffffff",background:"#1F60C9",fontSize:"18px",boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",textTransform:"capitalize",fontFamily:"Outfit",borderRadius:"12px",width:n.width,"&.Mui-disabled":{color:"#979EA7"},"&:hover":{background:"#1F60C9"}},children:t})})}let Mm={account:null,signer:null,chainIdArray:[],chainId:0};const jm=(0,e.createContext)(Mm),Lm=t=>{let{children:n}=t;const{address:r,isDisconnected:i}=fh(),{data:o}=uh(),{chains:a,chain:s}=mh(),l=null===a||void 0===a?void 0:a.map((e=>null===e||void 0===e?void 0:e.id)),[c,u]=(0,e.useState)(Mm);return(0,e.useEffect)((()=>{u({account:null!==r&&void 0!==r?r:null,signer:null!==o&&void 0!==o?o:null})}),[i,r,o]),(0,g.jsx)(jm.Provider,{value:{account:c.account,signer:c.signer,chainIdArray:l,chainId:null===s||void 0===s?void 0:s.id},children:n})},Dm=()=>{const{account:t}=(0,e.useContext)(jm),{open:n}=function(){if(!Ue)throw new Error('Please call "createWeb3Modal" before using "useWeb3Modal" hook');return{open:async function(e){var t;await(null===(t=Ue)||void 0===t?void 0:t.open(e))},close:async function(){var e;await(null===(e=Ue)||void 0===e?void 0:e.close())}}}();return(0,g.jsx)($m,{onClick:async()=>await n(),children:t?t.slice(0,4)+"..."+t.slice(-4):"Connect Wallet"})};function Bm(){return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(se,{sx:{background:"transparent"},height:"92px",width:"100%",py:1,children:(0,g.jsx)(Le,{maxWidth:"xl",children:(0,g.jsxs)(se,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,g.jsx)("img",{width:"60px",src:De,alt:""}),(0,g.jsx)(Dm,{})]})})})})}var Um=n(7259),Fm=n(7857);const zm=["component","direction","spacing","divider","children","className","useFlexGap"],Wm=(0,d.Z)(),Zm=Ce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Hm(e){return de({props:e,name:"MuiStack",defaultTheme:Wm})}function Vm(t,n){const r=e.Children.toArray(t).filter(Boolean);return r.reduce(((t,i,o)=>(t.push(i),o<r.length-1&&t.push(e.cloneElement(n,{key:`separator-${o}`})),t)),[])}const qm=e=>{let{ownerState:t,theme:n}=e,r=(0,i.Z)({display:"flex",flexDirection:"column"},(0,Um.k9)({theme:n},(0,Um.P$)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,Fm.hB)(n),i=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),o=(0,Um.P$)({values:t.direction,base:i}),a=(0,Um.P$)({values:t.spacing,base:i});"object"===typeof o&&Object.keys(o).forEach(((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}}));const s=(n,r)=>{return t.useFlexGap?{gap:(0,Fm.NA)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=r?o[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,Fm.NA)(e,n)}};var i};r=(0,x.Z)(r,(0,Um.k9)({theme:n},a,s))}return r=(0,Um.dt)(n.breakpoints,r),r};const Gm=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:n=Zm,useThemeProps:r=Hm,componentName:a="MuiStack"}=t,l=n(qm),c=e.forwardRef((function(e,t){const n=r(e),c=(0,u.Z)(n),{component:d="div",direction:h="column",spacing:p=0,divider:f,children:m,className:v,useFlexGap:y=!1}=c,b=(0,o.Z)(c,zm),w={direction:h,spacing:p,useFlexGap:y},x=le({root:["root"]},(e=>ne(a,e)),{});return(0,g.jsx)(l,(0,i.Z)({as:d,ownerState:w,ref:t,className:s(x.root,v)},b,{children:f?Vm(m,f):m}))}));return c}({createStyledComponent:Ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Km=Gm;function Ym(e){return ne("MuiTypography",e)}re("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Qm=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Xm=Ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Pe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),Jm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},eg={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tg=e.forwardRef((function(e,t){const n=Me({props:e,name:"MuiTypography"}),r=(e=>eg[e]||e)(n.color),a=(0,u.Z)((0,i.Z)({},n,{color:r})),{align:l="inherit",className:c,component:d,gutterBottom:h=!1,noWrap:p=!1,paragraph:f=!1,variant:m="body1",variantMapping:v=Jm}=a,y=(0,o.Z)(a,Qm),b=(0,i.Z)({},a,{align:l,color:r,className:c,component:d,gutterBottom:h,noWrap:p,paragraph:f,variant:m,variantMapping:v}),w=d||(f?"p":v[m]||Jm[m])||"span",x=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return le({root:["root",o,"inherit"!==e.align&&`align${Pe(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},Ym,a)})(b);return(0,g.jsx)(Xm,(0,i.Z)({as:w,ref:t,ownerState:b,className:s(x.root,c)},y))})),ng=tg;let rg=0;const ig=t["useId".toString()];function og(t){if(void 0!==ig){const e=ig();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),i=t||n;return e.useEffect((()=>{null==n&&(rg+=1,r(`mui-${rg}`))}),[n]),i}(t)}function ag(e){return fp(e).defaultView||window}function sg(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout((()=>{e.apply(this,i)}),n)}return r.clear=()=>{clearTimeout(t)},r}const lg=["onChange","maxRows","minRows","style","value"];function cg(e){return parseInt(e,10)||0}const ug={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const dg=e.forwardRef((function(t,n){const{onChange:r,maxRows:a,minRows:s=1,style:l,value:c}=t,u=(0,o.Z)(t,lg),{current:d}=e.useRef(null!=c),h=e.useRef(null),p=Xh(n,h),f=e.useRef(null),m=e.useRef(null),v=e.useCallback((()=>{const e=h.current,n=ag(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=m.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,o=cg(n.paddingBottom)+cg(n.paddingTop),l=cg(n.borderBottomWidth)+cg(n.borderTopWidth),c=r.scrollHeight;r.value="x";const u=r.scrollHeight;let d=c;s&&(d=Math.max(Number(s)*u,d)),a&&(d=Math.min(Number(a)*u,d)),d=Math.max(d,u);return{outerHeightStyle:d+("border-box"===i?o+l:0),overflowing:Math.abs(d-c)<=1}}),[a,s,t.placeholder]),y=e.useCallback((()=>{const e=v();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=h.current;f.current!==n&&(f.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[v]);dp((()=>{const e=()=>{y()};let t;const n=sg(e),r=h.current,i=ag(r);let o;return i.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),i.removeEventListener("resize",n),o&&o.disconnect()}}),[v,y]),dp((()=>{y()}));return(0,g.jsxs)(e.Fragment,{children:[(0,g.jsx)("textarea",(0,i.Z)({value:c,onChange:e=>{d||y(),r&&r(e)},ref:p,rows:s,style:l},u)),(0,g.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,i.Z)({},ug,l,{paddingTop:0,paddingBottom:0})})]})})),hg=dg;function pg(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}const fg=e.createContext(void 0);function mg(){return e.useContext(fg)}const gg=dp;var vg=n(8607);const yg=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const i=m(r),o="function"===typeof t?t(n&&i[n]||i):t;return(0,g.jsx)(vg.Z,{styles:o})};const bg=function(e){return(0,g.jsx)(yg,(0,i.Z)({},e,{defaultTheme:Re,themeId:ee}))};function wg(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function xg(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(wg(e.value)&&""!==e.value||t&&wg(e.defaultValue)&&""!==e.defaultValue)}function Cg(e){return ne("MuiInputBase",e)}const Eg=re("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Sg=["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"],kg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Pe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_g=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Pg=Ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:kg})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Eg.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,i.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),Ag=Ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_g})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,o=(0,i.Z)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,i.Z)({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":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Eg.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Eg.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),Rg=(0,g.jsx)(bg,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Og=e.forwardRef((function(t,n){var r;const a=Me({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:c,autoFocus:u,className:d,components:h={},componentsProps:p={},defaultValue:f,disabled:m,disableInjectingGlobalStyles:v,endAdornment:y,fullWidth:b=!1,id:x,inputComponent:C="input",inputProps:E={},inputRef:S,maxRows:k,minRows:_,multiline:P=!1,name:A,onBlur:R,onChange:O,onClick:T,onFocus:I,onKeyDown:N,onKeyUp:$,placeholder:M,readOnly:j,renderSuffix:L,rows:D,slotProps:B={},slots:U={},startAdornment:F,type:z="text",value:W}=a,Z=(0,o.Z)(a,Sg),H=null!=E.value?E.value:W,{current:V}=e.useRef(null!=H),q=e.useRef(),G=e.useCallback((e=>{0}),[]),K=Np(q,S,E.ref,G),[Y,Q]=e.useState(!1),X=mg();const J=pg({props:a,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=X?X.focused:Y,e.useEffect((()=>{!X&&m&&Y&&(Q(!1),R&&R())}),[X,m,Y,R]);const ee=X&&X.onFilled,te=X&&X.onEmpty,ne=e.useCallback((e=>{xg(e)?ee&&ee():te&&te()}),[ee,te]);gg((()=>{V&&ne({value:H})}),[H,ne,V]);e.useEffect((()=>{ne(q.current)}),[]);let re=C,ie=E;P&&"input"===re&&(ie=D?(0,i.Z)({type:void 0,minRows:D,maxRows:D},ie):(0,i.Z)({type:void 0,maxRows:k,minRows:_},ie),re=hg);e.useEffect((()=>{X&&X.setAdornedStart(Boolean(F))}),[X,F]);const oe=(0,i.Z)({},a,{color:J.color||"primary",disabled:J.disabled,endAdornment:y,error:J.error,focused:J.focused,formControl:X,fullWidth:b,hiddenLabel:J.hiddenLabel,multiline:P,size:J.size,startAdornment:F,type:z}),ae=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:p,type:f}=e;return le({root:["root",`color${Pe(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&"medium"!==h&&`size${Pe(h)}`,u&&"multiline",p&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===h&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},Cg,t)})(oe),se=U.root||h.Root||Pg,ce=B.root||p.root||{},ue=U.input||h.Input||Ag;return ie=(0,i.Z)({},ie,null!=(r=B.input)?r:p.input),(0,g.jsxs)(e.Fragment,{children:[!v&&Rg,(0,g.jsxs)(se,(0,i.Z)({},ce,!Jh(se)&&{ownerState:(0,i.Z)({},oe,ce.ownerState)},{ref:n,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),T&&T(e)}},Z,{className:s(ae.root,ce.className,d,j&&"MuiInputBase-readOnly"),children:[F,(0,g.jsx)(fg.Provider,{value:null,children:(0,g.jsx)(ue,(0,i.Z)({ownerState:oe,"aria-invalid":J.error,"aria-describedby":l,autoComplete:c,autoFocus:u,defaultValue:f,disabled:J.disabled,id:x,onAnimationStart:e=>{ne("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:A,placeholder:M,readOnly:j,required:J.required,rows:D,value:H,onKeyDown:N,onKeyUp:$,type:z},ie,!Jh(ue)&&{as:re,ownerState:(0,i.Z)({},oe,ie.ownerState)},{ref:K,className:s(ae.input,ie.className,j&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),E.onBlur&&E.onBlur(e),X&&X.onBlur?X.onBlur(e):Q(!1)},onChange:function(e){if(!V){const t=e.target||q.current;if(null==t)throw new Error((0,w.Z)(1));ne({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];E.onChange&&E.onChange(e,...n),O&&O(e,...n)},onFocus:e=>{J.disabled?e.stopPropagation():(I&&I(e),E.onFocus&&E.onFocus(e),X&&X.onFocus?X.onFocus(e):Q(!0))}}))}),y,L?L((0,i.Z)({},J,{startAdornment:F})):null]}))]})})),Tg=Og;function Ig(e){return ne("MuiInput",e)}const Ng=(0,i.Z)({},Eg,re("MuiInput",["root","underline","input"])),$g=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Mg=Ie(Pg,{shouldForwardProp:e=>Te(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...kg(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),(0,i.Z)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ng.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ng.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ng.disabled}, .${Ng.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ng.disabled}:before`]:{borderBottomStyle:"dotted"}})})),jg=Ie(Ag,{name:"MuiInput",slot:"Input",overridesResolver:_g})({}),Lg=e.forwardRef((function(e,t){var n,r,a,s;const l=Me({props:e,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:d,fullWidth:h=!1,inputComponent:p="input",multiline:f=!1,slotProps:m,slots:v={},type:y="text"}=l,b=(0,o.Z)(l,$g),w=(e=>{const{classes:t,disableUnderline:n}=e,r=le({root:["root",!n&&"underline"],input:["input"]},Ig,t);return(0,i.Z)({},t,r)})(l),C={root:{ownerState:{disableUnderline:c}}},E=(null!=m?m:d)?(0,x.Z)(null!=m?m:d,C):C,S=null!=(n=null!=(r=v.root)?r:u.Root)?n:Mg,k=null!=(a=null!=(s=v.input)?s:u.Input)?a:jg;return(0,g.jsx)(Tg,(0,i.Z)({slots:{root:S,input:k},slotProps:E,fullWidth:h,inputComponent:p,multiline:f,ref:t,type:y},b,{classes:w}))}));Lg.muiName="Input";const Dg=Lg;function Bg(e){return ne("MuiFilledInput",e)}const Ug=(0,i.Z)({},Eg,re("MuiFilledInput",["root","underline","input"])),Fg=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],zg=Ie(Pg,{shouldForwardProp:e=>Te(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...kg(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const o="light"===t.palette.mode,a=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,i.Z)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},[`&.${Ug.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},[`&.${Ug.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:c}},!n.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ug.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ug.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ug.disabled}, .${Ug.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Ug.disabled}:before`]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,i.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),Wg=Ie(Ag,{name:"MuiFilledInput",slot:"Input",overridesResolver:_g})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),Zg=e.forwardRef((function(e,t){var n,r,a,s;const l=Me({props:e,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:h="input",multiline:p=!1,slotProps:f,slots:m={},type:v="text"}=l,y=(0,o.Z)(l,Fg),b=(0,i.Z)({},l,{fullWidth:d,inputComponent:h,multiline:p,type:v}),w=(e=>{const{classes:t,disableUnderline:n}=e,r=le({root:["root",!n&&"underline"],input:["input"]},Bg,t);return(0,i.Z)({},t,r)})(l),C={root:{ownerState:b},input:{ownerState:b}},E=(null!=f?f:u)?(0,x.Z)(C,null!=f?f:u):C,S=null!=(n=null!=(r=m.root)?r:c.Root)?n:zg,k=null!=(a=null!=(s=m.input)?s:c.Input)?a:Wg;return(0,g.jsx)(Tg,(0,i.Z)({slots:{root:S,input:k},componentsProps:E,fullWidth:d,inputComponent:h,multiline:p,ref:t,type:v},y,{classes:w}))}));Zg.muiName="Input";const Hg=Zg;var Vg;const qg=["children","classes","className","label","notched"],Gg=Ie("fieldset",{shouldForwardProp:Te})({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%"}),Kg=Ie("legend",{shouldForwardProp:Te})((e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,i.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));function Yg(e){return ne("MuiOutlinedInput",e)}const Qg=(0,i.Z)({},Eg,re("MuiOutlinedInput",["root","notchedOutline","input"])),Xg=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Jg=Ie(Pg,{shouldForwardProp:e=>Te(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:kg})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,i.Z)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Qg.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Qg.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Qg.focused} .${Qg.notchedOutline}`]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},[`&.${Qg.error} .${Qg.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Qg.disabled} .${Qg.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,i.Z)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),ev=Ie((function(e){const{className:t,label:n,notched:r}=e,a=(0,o.Z)(e,qg),s=null!=n&&""!==n,l=(0,i.Z)({},e,{notched:r,withLabel:s});return(0,g.jsx)(Gg,(0,i.Z)({"aria-hidden":!0,className:t,ownerState:l},a,{children:(0,g.jsx)(Kg,{ownerState:l,children:s?(0,g.jsx)("span",{children:n}):Vg||(Vg=(0,g.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}})),tv=Ie(Ag,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_g})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),nv=e.forwardRef((function(t,n){var r,a,s,l,c;const u=Me({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:h=!1,inputComponent:p="input",label:f,multiline:m=!1,notched:v,slots:y={},type:b="text"}=u,w=(0,o.Z)(u,Xg),x=(e=>{const{classes:t}=e,n=le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Yg,t);return(0,i.Z)({},t,n)})(u),C=mg(),E=pg({props:u,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=(0,i.Z)({},u,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:C,fullWidth:h,hiddenLabel:E.hiddenLabel,multiline:m,size:E.size,type:b}),k=null!=(r=null!=(a=y.root)?a:d.Root)?r:Jg,_=null!=(s=null!=(l=y.input)?l:d.Input)?s:tv;return(0,g.jsx)(Tg,(0,i.Z)({slots:{root:k,input:_},renderSuffix:t=>(0,g.jsx)(ev,{ownerState:S,className:x.notchedOutline,label:null!=f&&""!==f&&E.required?c||(c=(0,g.jsxs)(e.Fragment,{children:[f,"\u2009","*"]})):f,notched:"undefined"!==typeof v?v:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:h,inputComponent:p,multiline:m,ref:n,type:b},w,{classes:(0,i.Z)({},x,{notchedOutline:null})}))}));nv.muiName="Input";const rv=nv;function iv(e){return ne("MuiFormLabel",e)}const ov=re("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),av=["children","className","color","component","disabled","error","filled","focused","required"],sv=Ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,i.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ov.focused}`]:{color:(t.vars||t).palette[n.color].main},[`&.${ov.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${ov.error}`]:{color:(t.vars||t).palette.error.main}})})),lv=Ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${ov.error}`]:{color:(t.vars||t).palette.error.main}}})),cv=e.forwardRef((function(e,t){const n=Me({props:e,name:"MuiFormLabel"}),{children:r,className:a,component:l="label"}=n,c=(0,o.Z)(n,av),u=pg({props:n,muiFormControl:mg(),states:["color","required","focused","disabled","error","filled"]}),d=(0,i.Z)({},n,{color:u.color||"primary",component:l,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e;return le({root:["root",`color${Pe(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]},iv,t)})(d);return(0,g.jsxs)(sv,(0,i.Z)({as:l,ownerState:d,className:s(h.root,a),ref:t},c,{children:[r,u.required&&(0,g.jsxs)(lv,{ownerState:d,"aria-hidden":!0,className:h.asterisk,children:["\u2009","*"]})]}))})),uv=cv;function dv(e){return ne("MuiInputLabel",e)}re("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const hv=["disableAnimation","margin","shrink","variant","className"],pv=Ie(uv,{shouldForwardProp:e=>Te(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ov.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,i.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),fv=e.forwardRef((function(e,t){const n=Me({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:a,className:l}=n,c=(0,o.Z)(n,hv),u=mg();let d=a;"undefined"===typeof d&&u&&(d=u.filled||u.focused||u.adornedStart);const h=pg({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),p=(0,i.Z)({},n,{disableAnimation:r,formControl:u,shrink:d,size:h.size,variant:h.variant,required:h.required,focused:h.focused}),f=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,c=le({root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&"normal"!==r&&`size${Pe(r)}`,s],asterisk:[l&&"asterisk"]},dv,t);return(0,i.Z)({},t,c)})(p);return(0,g.jsx)(pv,(0,i.Z)({"data-shrink":d,ownerState:p,ref:t,className:s(f.root,l)},c,{classes:f}))})),mv=fv;const gv=function(t,n){var r,i;return e.isValidElement(t)&&-1!==n.indexOf(null!=(r=t.type.muiName)?r:null==(i=t.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)};function vv(e){return ne("MuiFormControl",e)}re("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const yv=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],bv=Ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,i.Z)({},t.root,t[`margin${Pe(n.margin)}`],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,i.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),wv=e.forwardRef((function(t,n){const r=Me({props:t,name:"MuiFormControl"}),{children:a,className:l,color:c="primary",component:u="div",disabled:d=!1,error:h=!1,focused:p,fullWidth:f=!1,hiddenLabel:m=!1,margin:v="none",required:y=!1,size:b="medium",variant:w="outlined"}=r,x=(0,o.Z)(r,yv),C=(0,i.Z)({},r,{color:c,component:u,disabled:d,error:h,fullWidth:f,hiddenLabel:m,margin:v,required:y,size:b,variant:w}),E=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return le({root:["root","none"!==n&&`margin${Pe(n)}`,r&&"fullWidth"]},vv,t)})(C),[S,k]=e.useState((()=>{let t=!1;return a&&e.Children.forEach(a,(e=>{if(!gv(e,["Input","Select"]))return;const n=gv(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)})),t})),[_,P]=e.useState((()=>{let t=!1;return a&&e.Children.forEach(a,(e=>{gv(e,["Input","Select"])&&(xg(e.props,!0)||xg(e.props.inputProps,!0))&&(t=!0)})),t})),[A,R]=e.useState(!1);d&&A&&R(!1);const O=void 0===p||d?A:p;let T;const I=e.useMemo((()=>({adornedStart:S,setAdornedStart:k,color:c,disabled:d,error:h,filled:_,focused:O,fullWidth:f,hiddenLabel:m,size:b,onBlur:()=>{R(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{R(!0)},registerEffect:T,required:y,variant:w})),[S,c,d,h,_,O,f,m,T,y,b,w]);return(0,g.jsx)(fg.Provider,{value:I,children:(0,g.jsx)(bv,(0,i.Z)({as:u,ownerState:C,className:s(E.root,l),ref:n},x,{children:a}))})})),xv=wv;function Cv(e){return ne("MuiFormHelperText",e)}const Ev=re("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Sv;const kv=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_v=Ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Pe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ev.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Ev.error}`]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),Pv=e.forwardRef((function(e,t){const n=Me({props:e,name:"MuiFormHelperText"}),{children:r,className:a,component:l="p"}=n,c=(0,o.Z)(n,kv),u=pg({props:n,muiFormControl:mg(),states:["variant","size","disabled","error","filled","focused","required"]}),d=(0,i.Z)({},n,{component:l,contained:"filled"===u.variant||"outlined"===u.variant,variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e;return le({root:["root",i&&"disabled",o&&"error",r&&`size${Pe(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]},Cv,t)})(d);return(0,g.jsx)(_v,(0,i.Z)({as:l,ownerState:d,className:s(h.root,a),ref:t},c,{children:" "===r?Sv||(Sv=(0,g.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))})),Av=Pv;n(1932);const Rv=fp,Ov=e.createContext();const Tv=e.createContext({});function Iv(e){return ne("MuiList",e)}re("MuiList",["root","padding","dense","subheader"]);const Nv=["children","className","component","dense","disablePadding","subheader"],$v=Ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),Mv=e.forwardRef((function(t,n){const r=Me({props:t,name:"MuiList"}),{children:a,className:l,component:c="ul",dense:u=!1,disablePadding:d=!1,subheader:h}=r,p=(0,o.Z)(r,Nv),f=e.useMemo((()=>({dense:u})),[u]),m=(0,i.Z)({},r,{component:c,dense:u,disablePadding:d}),v=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return le({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Iv,t)})(m);return(0,g.jsx)(Tv.Provider,{value:f,children:(0,g.jsxs)($v,(0,i.Z)({as:c,className:s(v.root,l),ref:n,ownerState:m},p,{children:[h,a]}))})})),jv=Mv;function Lv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Dv=Lv,Bv=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Uv(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zv(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Wv(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&zv(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const Zv=e.forwardRef((function(t,n){const{actions:r,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:c,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:h,variant:p="selectedMenu"}=t,f=(0,o.Z)(t,Bv),m=e.useRef(null),v=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gg((()=>{a&&m.current.focus()}),[a]),e.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:n}=t;const r=!m.current.style.width;if(e.clientHeight<m.current.clientHeight&&r){const t=`${Dv(Rv(e))}px`;m.current.style["rtl"===n?"paddingLeft":"paddingRight"]=t,m.current.style.width=`calc(100% + ${t})`}return m.current}})),[]);const y=Np(m,n);let b=-1;e.Children.forEach(l,((t,n)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===p&&t.props.selected||-1===b)&&(b=n),b===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(b+=1,b>=l.length&&(b=-1))):b===n&&(b+=1,b>=l.length&&(b=-1))}));const w=e.Children.map(l,((t,n)=>{if(n===b){const n={};return s&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===p&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return(0,g.jsx)(jv,(0,i.Z)({role:"menu",ref:y,className:c,onKeyDown:e=>{const t=m.current,n=e.key,r=Rv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Wv(t,r,d,u,Uv);else if("ArrowUp"===n)e.preventDefault(),Wv(t,r,d,u,Fv);else if("Home"===n)e.preventDefault(),Wv(t,null,d,u,Uv);else if("End"===n)e.preventDefault(),Wv(t,null,d,u,Fv);else if(1===n.length){const i=v.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&zv(r,i);i.previousKeyMatched&&(s||Wv(t,r,!1,u,Uv,i))?e.preventDefault():i.previousKeyMatched=!1}h&&h(e)},tabIndex:a?0:-1},f,{children:w}))})),Hv=Zv,Vv=sg,qv=ag,Gv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Kv(e){const t=[],n=[];return Array.from(e.querySelectorAll(Gv)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Yv(){return!0}const Qv=function(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:a=Kv,isEnabled:s=Yv,open:l}=t,c=e.useRef(!1),u=e.useRef(null),d=e.useRef(null),h=e.useRef(null),p=e.useRef(null),f=e.useRef(!1),m=e.useRef(null),v=Xh(n.ref,m),y=e.useRef(null);e.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),e.useEffect((()=>{if(!l||!m.current)return;const e=fp(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),e.useEffect((()=>{if(!l||!m.current)return;const e=fp(m.current),t=t=>{y.current=t,!i&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(i&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var r,o;const e=Boolean((null==(r=y.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=n[0],i=n[n.length-1];"string"!==typeof t&&"string"!==typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,i,o,s,l,a]);const b=e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0};return(0,g.jsxs)(e.Fragment,{children:[(0,g.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:v,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0,p.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,g.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})};const Xv=e.forwardRef((function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=e.useState(null),l=Xh(e.isValidElement(r)?r.ref:null,n);if(dp((()=>{o||s(function(e){return"function"===typeof e?e():e}(i)||document.body)}),[i,o]),dp((()=>{if(a&&!o)return Qh(n,a),()=>{Qh(n,null)}}),[n,a,o]),o){if(e.isValidElement(r)){const t={ref:l};return e.cloneElement(r,t)}return(0,g.jsx)(e.Fragment,{children:r})}return(0,g.jsx)(e.Fragment,{children:a?wp.createPortal(r,a):a})})),Jv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ey={entering:{opacity:1},entered:{opacity:1}},ty=e.forwardRef((function(t,n){const r=vp(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,easing:u,in:d,onEnter:h,onEntered:p,onEntering:f,onExit:m,onExited:v,onExiting:y,style:b,timeout:w=a,TransitionComponent:x=Op}=t,C=(0,o.Z)(t,Jv),E=e.useRef(null),S=Np(E,c.ref,n),k=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},_=k(f),P=k(((e,t)=>{Tp(e);const n=Ip({style:b,timeout:w,easing:u},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),h&&h(e,t)})),A=k(p),R=k(y),O=k((e=>{const t=Ip({style:b,timeout:w,easing:u},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),m&&m(e)})),T=k(v);return(0,g.jsx)(x,(0,i.Z)({appear:l,in:d,nodeRef:E,onEnter:P,onEntered:A,onEntering:_,onExit:O,onExited:T,onExiting:R,addEndListener:e=>{s&&s(E.current,e)},timeout:w},C,{children:(t,n)=>e.cloneElement(c,(0,i.Z)({style:(0,i.Z)({opacity:0,visibility:"exited"!==t||d?void 0:"hidden"},ey[t],b,c.props.style),ref:S},n))}))})),ny=ty;function ry(e){return ne("MuiBackdrop",e)}re("MuiBackdrop",["root","invisible"]);const iy=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],oy=Ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({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"},t.invisible&&{backgroundColor:"transparent"})})),ay=e.forwardRef((function(e,t){var n,r,a;const l=Me({props:e,name:"MuiBackdrop"}),{children:c,className:u,component:d="div",components:h={},componentsProps:p={},invisible:f=!1,open:m,slotProps:v={},slots:y={},TransitionComponent:b=ny,transitionDuration:w}=l,x=(0,o.Z)(l,iy),C=(0,i.Z)({},l,{component:d,invisible:f}),E=(e=>{const{classes:t,invisible:n}=e;return le({root:["root",n&&"invisible"]},ry,t)})(C),S=null!=(n=v.root)?n:p.root;return(0,g.jsx)(b,(0,i.Z)({in:m,timeout:w},x,{children:(0,g.jsx)(oy,(0,i.Z)({"aria-hidden":!0},S,{as:null!=(r=null!=(a=y.root)?a:h.Root)?r:d,className:s(E.root,u,null==S?void 0:S.className),ownerState:(0,i.Z)({},C,null==S?void 0:S.ownerState),classes:E,ref:t,children:c}))}))})),sy=ay;function ly(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}),(()=>{}))}function cy(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uy(e){return parseInt(ag(e).getComputedStyle(e).paddingRight,10)||0}function dy(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&cy(e,i)}))}function hy(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function py(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=fp(e);return t.body===e?ag(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Lv(fp(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${uy(r)+e}px`;const t=fp(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${uy(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=fp(r).body;else{const t=r.parentElement,n=ag(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const fy=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&cy(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);dy(t,e.mount,e.modalRef,r,!0);const i=hy(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=hy(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=py(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=hy(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&cy(e.modalRef,t),dy(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&cy(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const my=function(t){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:a=fy,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:c,children:u,onClose:d,open:h,rootRef:p}=t,f=e.useRef({}),m=e.useRef(null),g=e.useRef(null),v=Xh(g,p),[y,b]=e.useState(!h),w=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(x=!1);const C=()=>(f.current.modalRef=g.current,f.current.mount=m.current,f.current),E=()=>{a.mount(C(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},S=hp((()=>{const e=function(e){return"function"===typeof e?e():e}(n)||fp(m.current).body;a.add(C(),e),g.current&&E()})),k=e.useCallback((()=>a.isTopModal(C())),[a]),_=hp((e=>{m.current=e,e&&(h&&k()?E():g.current&&cy(g.current,x))})),P=e.useCallback((()=>{a.remove(C(),x)}),[x,a]);e.useEffect((()=>()=>{P()}),[P]),e.useEffect((()=>{h?S():w&&s||P()}),[h,P,w,s,S]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(r||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},R=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=tp(t);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,i.Z)({},n,e);return(0,i.Z)({role:"presentation"},r,{onKeyDown:A(r),ref:v})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({"aria-hidden":!0},e,{onClick:R(e),open:h})},getTransitionProps:()=>({onEnter:ly((()=>{b(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:ly((()=>{b(!0),c&&c(),s&&P()}),null==u?void 0:u.props.onExited)}),rootRef:v,portalRef:_,isTopModal:k,exited:y,hasTransition:w}};function gy(e){return ne("MuiModal",e)}re("MuiModal",["root","hidden","backdrop"]);const vy=["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"],yy=Ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),by=Ie(sy,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),wy=e.forwardRef((function(t,n){var r,a,l,c,u,d;const h=Me({name:"MuiModal",props:t}),{BackdropComponent:p=by,BackdropProps:f,className:m,closeAfterTransition:v=!1,children:y,container:b,component:w,components:x={},componentsProps:C={},disableAutoFocus:E=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:k=!1,disablePortal:_=!1,disableRestoreFocus:P=!1,disableScrollLock:A=!1,hideBackdrop:R=!1,keepMounted:O=!1,onBackdropClick:T,open:I,slotProps:N,slots:$}=h,M=(0,o.Z)(h,vy),j=(0,i.Z)({},h,{closeAfterTransition:v,disableAutoFocus:E,disableEnforceFocus:S,disableEscapeKeyDown:k,disablePortal:_,disableRestoreFocus:P,disableScrollLock:A,hideBackdrop:R,keepMounted:O}),{getRootProps:L,getBackdropProps:D,getTransitionProps:B,portalRef:U,isTopModal:F,exited:z,hasTransition:W}=my((0,i.Z)({},j,{rootRef:n})),Z=(0,i.Z)({},j,{exited:z}),H=(e=>{const{open:t,exited:n,classes:r}=e;return le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gy,r)})(Z),V={};if(void 0===y.props.tabIndex&&(V.tabIndex="-1"),W){const{onEnter:e,onExited:t}=B();V.onEnter=e,V.onExited=t}const q=null!=(r=null!=(a=null==$?void 0:$.root)?a:x.Root)?r:yy,G=null!=(l=null!=(c=null==$?void 0:$.backdrop)?c:x.Backdrop)?l:p,K=null!=(u=null==N?void 0:N.root)?u:C.root,Y=null!=(d=null==N?void 0:N.backdrop)?d:C.backdrop,Q=ap({elementType:q,externalSlotProps:K,externalForwardedProps:M,getSlotProps:L,additionalProps:{ref:n,as:w},ownerState:Z,className:s(m,null==K?void 0:K.className,null==H?void 0:H.root,!Z.open&&Z.exited&&(null==H?void 0:H.hidden))}),X=ap({elementType:G,externalSlotProps:Y,additionalProps:f,getSlotProps:e=>D((0,i.Z)({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:s(null==Y?void 0:Y.className,null==f?void 0:f.className,null==H?void 0:H.backdrop),ownerState:Z});return O||I||W&&!z?(0,g.jsx)(Xv,{ref:U,container:b,disablePortal:_,children:(0,g.jsxs)(q,(0,i.Z)({},Q,{children:[!R&&p?(0,g.jsx)(G,(0,i.Z)({},X)):null,(0,g.jsx)(Qv,{disableEnforceFocus:S,disableAutoFocus:E,disableRestoreFocus:P,isEnabled:F,open:I,children:e.cloneElement(y,V)})]}))}):null})),xy=wy;function Cy(e){return ne("MuiPopover",e)}re("MuiPopover",["root","paper"]);const Ey=["onEntering"],Sy=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ky=["slotProps"];function _y(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Py(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ay(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function Ry(e){return"function"===typeof e?e():e}const Oy=Ie(xy,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ty=Ie(Hp,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Iy=e.forwardRef((function(t,n){var r,a,l;const c=Me({props:t,name:"MuiPopover"}),{action:u,anchorEl:d,anchorOrigin:h={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:f="anchorEl",children:m,className:v,container:y,elevation:b=8,marginThreshold:w=16,open:x,PaperProps:C={},slots:E,slotProps:S,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:_=Bp,transitionDuration:P="auto",TransitionProps:{onEntering:A}={},disableScrollLock:R=!1}=c,O=(0,o.Z)(c.TransitionProps,Ey),T=(0,o.Z)(c,Sy),I=null!=(r=null==S?void 0:S.paper)?r:C,N=e.useRef(),$=Np(N,I.ref),M=(0,i.Z)({},c,{anchorOrigin:h,anchorReference:f,elevation:b,marginThreshold:w,externalPaperSlotProps:I,transformOrigin:k,TransitionComponent:_,transitionDuration:P,TransitionProps:O}),j=(e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"]},Cy,t)})(M),L=e.useCallback((()=>{if("anchorPosition"===f)return p;const e=Ry(d),t=(e&&1===e.nodeType?e:Rv(N.current).body).getBoundingClientRect();return{top:t.top+_y(t,h.vertical),left:t.left+Py(t,h.horizontal)}}),[d,h.horizontal,h.vertical,p,f]),D=e.useCallback((e=>({vertical:_y(e,k.vertical),horizontal:Py(e,k.horizontal)})),[k.horizontal,k.vertical]),B=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===f)return{top:null,left:null,transformOrigin:Ay(n)};const r=L();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,l=qv(Ry(d)),c=l.innerHeight-w,u=l.innerWidth-w;if(null!==w&&i<w){const e=i-w;i-=e,n.vertical+=e}else if(null!==w&&a>c){const e=a-c;i-=e,n.vertical+=e}if(null!==w&&o<w){const e=o-w;o-=e,n.horizontal+=e}else if(s>u){const e=s-u;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:Ay(n)}}),[d,f,L,D,w]),[U,F]=e.useState(x),z=e.useCallback((()=>{const e=N.current;if(!e)return;const t=B(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,F(!0)}),[B]);e.useEffect((()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[d,R,z]);e.useEffect((()=>{x&&z()})),e.useImperativeHandle(u,(()=>x?{updatePosition:()=>{z()}}:null),[x,z]),e.useEffect((()=>{if(!x)return;const e=Vv((()=>{z()})),t=qv(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,x,z]);let W=P;"auto"!==P||_.muiSupportAuto||(W=void 0);const Z=y||(d?Rv(Ry(d)).body:void 0),H=null!=(a=null==E?void 0:E.root)?a:Oy,V=null!=(l=null==E?void 0:E.paper)?l:Ty,q=ap({elementType:V,externalSlotProps:(0,i.Z)({},I,{style:U?I.style:(0,i.Z)({},I.style,{opacity:0})}),additionalProps:{elevation:b,ref:$},ownerState:M,className:s(j.paper,null==I?void 0:I.className)}),G=ap({elementType:H,externalSlotProps:(null==S?void 0:S.root)||{},externalForwardedProps:T,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Z,open:x},ownerState:M,className:s(j.root,v)}),{slotProps:K}=G,Y=(0,o.Z)(G,ky);return(0,g.jsx)(H,(0,i.Z)({},Y,!Jh(H)&&{slotProps:K,disableScrollLock:R},{children:(0,g.jsx)(_,(0,i.Z)({appear:!0,in:x,onEntering:(e,t)=>{A&&A(e,t),z()},onExited:()=>{F(!1)},timeout:W},O,{children:(0,g.jsx)(V,(0,i.Z)({},q,{children:m}))}))}))})),Ny=Iy;function $y(e){return ne("MuiMenu",e)}re("MuiMenu",["root","paper","list"]);const My=["onEntering"],jy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ly={vertical:"top",horizontal:"right"},Dy={vertical:"top",horizontal:"left"},By=Ie(Ny,{shouldForwardProp:e=>Te(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Uy=Ie(Ty,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Fy=Ie(Hv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),zy=e.forwardRef((function(t,n){var r,a;const l=Me({props:t,name:"MuiMenu"}),{autoFocus:c=!0,children:u,className:d,disableAutoFocusItem:h=!1,MenuListProps:p={},onClose:f,open:m,PaperProps:v={},PopoverClasses:y,transitionDuration:b="auto",TransitionProps:{onEntering:w}={},variant:x="selectedMenu",slots:C={},slotProps:E={}}=l,S=(0,o.Z)(l.TransitionProps,My),k=(0,o.Z)(l,jy),_=(()=>{const t=e.useContext(Ov);return null!=t&&t})(),P=(0,i.Z)({},l,{autoFocus:c,disableAutoFocusItem:h,MenuListProps:p,onEntering:w,PaperProps:v,transitionDuration:b,TransitionProps:S,variant:x}),A=(e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"],list:["list"]},$y,t)})(P),R=c&&!h&&m,O=e.useRef(null);let T=-1;e.Children.map(u,((t,n)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===x&&t.props.selected||-1===T)&&(T=n))}));const I=null!=(r=C.paper)?r:Uy,N=null!=(a=E.paper)?a:v,$=ap({elementType:C.root,externalSlotProps:E.root,ownerState:P,className:[A.root,d]}),M=ap({elementType:I,externalSlotProps:N,ownerState:P,className:A.paper});return(0,g.jsx)(By,(0,i.Z)({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?Ly:Dy,slots:{paper:I,root:C.root},slotProps:{root:$,paper:M},open:m,ref:n,transitionDuration:b,TransitionProps:(0,i.Z)({onEntering:(e,t)=>{O.current&&O.current.adjustStyleForScrollbar(e,{direction:_?"rtl":"ltr"}),w&&w(e,t)}},S),ownerState:P},k,{classes:y,children:(0,g.jsx)(Fy,(0,i.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:O,autoFocus:c&&(-1===T||h),autoFocusItem:R,variant:x},p,{className:s(A.list,p.className),children:u}))}))})),Wy=zy;function Zy(e){return ne("MuiNativeSelect",e)}const Hy=re("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Vy=["className","disabled","error","IconComponent","inputRef","variant"],qy=e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,i.Z)({},n.vars?{backgroundColor:`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Hy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},Gy=Ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Te,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Hy.multiple}`]:t.multiple}]}})(qy),Ky=e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,[`&.${Hy.disabled}`]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Yy=Ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Pe(n.variant)}`],n.open&&t.iconOpen]}})(Ky),Qy=e.forwardRef((function(t,n){const{className:r,disabled:a,error:l,IconComponent:c,inputRef:u,variant:d="standard"}=t,h=(0,o.Z)(t,Vy),p=(0,i.Z)({},t,{disabled:a,variant:d,error:l}),f=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return le({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Pe(n)}`,o&&"iconOpen",r&&"disabled"]},Zy,t)})(p);return(0,g.jsxs)(e.Fragment,{children:[(0,g.jsx)(Gy,(0,i.Z)({ownerState:p,className:s(f.select,r),disabled:a,ref:u||n},h)),t.multiple?null:(0,g.jsx)(Yy,{as:c,ownerState:p,className:f.icon})]})})),Xy=Qy;const Jy=function(t){let{controlled:n,default:r,name:i,state:o="value"}=t;const{current:a}=e.useRef(void 0!==n),[s,l]=e.useState(r);return[a?n:s,e.useCallback((e=>{a||l(e)}),[])]};function eb(e){return ne("MuiSelect",e)}const tb=re("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var nb;const rb=["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"],ib=Ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${tb.select}`]:t.select},{[`&.${tb.select}`]:t[n.variant]},{[`&.${tb.error}`]:t.error},{[`&.${tb.multiple}`]:t.multiple}]}})(qy,{[`&.${tb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ob=Ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Pe(n.variant)}`],n.open&&t.iconOpen]}})(Ky),ab=Ie("input",{shouldForwardProp:e=>Oe(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function sb(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function lb(e){return null==e||"string"===typeof e&&!e.trim()}const cb=e.forwardRef((function(t,n){var r;const{"aria-describedby":a,"aria-label":l,autoFocus:c,autoWidth:u,children:d,className:h,defaultOpen:p,defaultValue:f,disabled:m,displayEmpty:v,error:y=!1,IconComponent:b,inputRef:x,labelId:C,MenuProps:E={},multiple:S,name:k,onBlur:_,onChange:P,onClose:A,onFocus:R,onOpen:O,open:T,readOnly:I,renderValue:N,SelectDisplayProps:$={},tabIndex:M,value:j,variant:L="standard"}=t,D=(0,o.Z)(t,rb),[B,U]=Jy({controlled:j,default:f,name:"Select"}),[F,z]=Jy({controlled:T,default:p,name:"Select"}),W=e.useRef(null),Z=e.useRef(null),[H,V]=e.useState(null),{current:q}=e.useRef(null!=T),[G,K]=e.useState(),Y=Np(n,x),Q=e.useCallback((e=>{Z.current=e,e&&V(e)}),[]),X=null==H?void 0:H.parentNode;e.useImperativeHandle(Y,(()=>({focus:()=>{Z.current.focus()},node:W.current,value:B})),[B]),e.useEffect((()=>{p&&F&&H&&!q&&(K(u?null:X.clientWidth),Z.current.focus())}),[H,u]),e.useEffect((()=>{c&&Z.current.focus()}),[c]),e.useEffect((()=>{if(!C)return;const e=Rv(Z.current).getElementById(C);if(e){const t=()=>{getSelection().isCollapsed&&Z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[C]);const J=(e,t)=>{e?O&&O(t):A&&A(t),q||(K(u?null:X.clientWidth),z(e))},ee=e.Children.toArray(d),te=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(S){n=Array.isArray(B)?B.slice():[];const t=B.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),B!==n&&(U(n),P)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:k}}),P(i,e)}S||J(!1,t)}},ne=null!==H&&F;let re,ie;delete D["aria-invalid"];const oe=[];let ae=!1,se=!1;(xg({value:B})||v)&&(N?re=N(B):ae=!0);const ce=ee.map((t=>{if(!e.isValidElement(t))return null;let n;if(S){if(!Array.isArray(B))throw new Error((0,w.Z)(2));n=B.some((e=>sb(e,t.props.value))),n&&ae&&oe.push(t.props.children)}else n=sb(B,t.props.value),n&&ae&&(ie=t.props.children);return n&&(se=!0),e.cloneElement(t,{"aria-selected":n?"true":"false",onClick:te(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));ae&&(re=S?0===oe.length?null:oe.reduce(((e,t,n)=>(e.push(t),n<oe.length-1&&e.push(", "),e)),[]):ie);let ue,de=G;!u&&q&&H&&(de=X.clientWidth),ue="undefined"!==typeof M?M:m?null:0;const he=$.id||(k?`mui-component-select-${k}`:void 0),pe=(0,i.Z)({},t,{variant:L,value:B,open:ne,error:y}),fe=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return le({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Pe(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},eb,t)})(pe),me=(0,i.Z)({},E.PaperProps,null==(r=E.slotProps)?void 0:r.paper),ge=og();return(0,g.jsxs)(e.Fragment,{children:[(0,g.jsx)(ib,(0,i.Z)({ref:Q,tabIndex:ue,role:"combobox","aria-controls":ge,"aria-disabled":m?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[C,he].filter(Boolean).join(" ")||void 0,"aria-describedby":a,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onMouseDown:m||I?null:e=>{0===e.button&&(e.preventDefault(),Z.current.focus(),J(!0,e))},onBlur:e=>{!ne&&_&&(Object.defineProperty(e,"target",{writable:!0,value:{value:B,name:k}}),_(e))},onFocus:R},$,{ownerState:pe,className:s($.className,fe.select,h),id:he,children:lb(re)?nb||(nb=(0,g.jsx)("span",{className:"notranslate",children:"\u200b"})):re})),(0,g.jsx)(ab,(0,i.Z)({"aria-invalid":y,value:Array.isArray(B)?B.join(","):B,name:k,ref:W,"aria-hidden":!0,onChange:e=>{const t=ee.find((t=>t.props.value===e.target.value));void 0!==t&&(U(t.props.value),P&&P(e,t))},tabIndex:-1,disabled:m,className:fe.nativeInput,autoFocus:c,ownerState:pe},D)),(0,g.jsx)(ob,{as:b,className:fe.icon,ownerState:pe}),(0,g.jsx)(Wy,(0,i.Z)({id:`menu-${k||""}`,anchorEl:X,open:ne,onClose:e=>{J(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},E,{MenuListProps:(0,i.Z)({"aria-labelledby":C,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:ge},E.MenuListProps),slotProps:(0,i.Z)({},E.slotProps,{paper:(0,i.Z)({},me,{style:(0,i.Z)({minWidth:de},null!=me?me.style:null)})}),children:ce}))]})})),ub=cb,db=lm((0,g.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),hb=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],pb=["root"],fb={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Te(e)&&"variant"!==e,slot:"Root"},mb=Ie(Dg,fb)(""),gb=Ie(rv,fb)(""),vb=Ie(Hg,fb)(""),yb=e.forwardRef((function(t,n){const r=Me({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:l,classes:c={},className:u,defaultOpen:d=!1,displayEmpty:h=!1,IconComponent:p=db,id:f,input:m,inputProps:v,label:y,labelId:b,MenuProps:w,multiple:C=!1,native:E=!1,onClose:S,onOpen:k,open:_,renderValue:P,SelectDisplayProps:A,variant:R="outlined"}=r,O=(0,o.Z)(r,hb),T=E?Xy:ub,I=pg({props:r,muiFormControl:mg(),states:["variant","error"]}),N=I.variant||R,$=(0,i.Z)({},r,{variant:N,classes:c}),M=(e=>{const{classes:t}=e;return t})($),j=(0,o.Z)(M,pb),L=m||{standard:(0,g.jsx)(mb,{ownerState:$}),outlined:(0,g.jsx)(gb,{label:y,ownerState:$}),filled:(0,g.jsx)(vb,{ownerState:$})}[N],D=Np(n,L.ref);return(0,g.jsx)(e.Fragment,{children:e.cloneElement(L,(0,i.Z)({inputComponent:T,inputProps:(0,i.Z)({children:l,error:I.error,IconComponent:p,variant:N,type:void 0,multiple:C},E?{id:f}:{autoWidth:a,defaultOpen:d,displayEmpty:h,labelId:b,MenuProps:w,onClose:S,onOpen:k,open:_,renderValue:P,SelectDisplayProps:(0,i.Z)({id:f},A)},v,{classes:v?(0,x.Z)(j,v.classes):j},m?m.props.inputProps:{})},(C&&E||h)&&"outlined"===N?{notched:!0}:{},{ref:D,className:s(L.props.className,u,M.root)},!m&&{variant:N},O))})}));yb.muiName="Select";const bb=yb;function wb(e){return ne("MuiTextField",e)}re("MuiTextField",["root"]);const xb=["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"],Cb={standard:Dg,filled:Hg,outlined:rv},Eb=Ie(xv,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sb=e.forwardRef((function(e,t){const n=Me({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:a=!1,children:l,className:c,color:u="primary",defaultValue:d,disabled:h=!1,error:p=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:v,id:y,InputLabelProps:b,inputProps:w,InputProps:x,inputRef:C,label:E,maxRows:S,minRows:k,multiline:_=!1,name:P,onBlur:A,onChange:R,onFocus:O,placeholder:T,required:I=!1,rows:N,select:$=!1,SelectProps:M,type:j,value:L,variant:D="outlined"}=n,B=(0,o.Z)(n,xb),U=(0,i.Z)({},n,{autoFocus:a,color:u,disabled:h,error:p,fullWidth:m,multiline:_,required:I,select:$,variant:D}),F=(e=>{const{classes:t}=e;return le({root:["root"]},wb,t)})(U);const z={};"outlined"===D&&(b&&"undefined"!==typeof b.shrink&&(z.notched=b.shrink),z.label=E),$&&(M&&M.native||(z.id=void 0),z["aria-describedby"]=void 0);const W=og(y),Z=v&&W?`${W}-helper-text`:void 0,H=E&&W?`${W}-label`:void 0,V=Cb[D],q=(0,g.jsx)(V,(0,i.Z)({"aria-describedby":Z,autoComplete:r,autoFocus:a,defaultValue:d,fullWidth:m,multiline:_,name:P,rows:N,maxRows:S,minRows:k,type:j,value:L,id:W,inputRef:C,onBlur:A,onChange:R,onFocus:O,placeholder:T,inputProps:w},z,x));return(0,g.jsxs)(Eb,(0,i.Z)({className:s(F.root,c),disabled:h,error:p,fullWidth:m,ref:t,required:I,color:u,variant:D,ownerState:U},B,{children:[null!=E&&""!==E&&(0,g.jsx)(mv,(0,i.Z)({htmlFor:W,id:H},b,{children:E})),$?(0,g.jsx)(bb,(0,i.Z)({"aria-describedby":Z,id:W,labelId:H,value:L,input:q},M,{children:l})):q,v&&(0,g.jsx)(Av,(0,i.Z)({id:Z},f,{children:v}))]}))})),kb=Sb,_b=JSON.parse('[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]'),Pb=JSON.parse('[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"address","name":"_initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensReclaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensReleased","type":"event"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"availableForWithdrawal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"availableTokensForWithdrawal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVestingSchedule","outputs":[{"components":[{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"releasedAmount","type":"uint256"}],"internalType":"struct LinearVesting.VestingSchedule","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reclaimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"totalTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"unlockedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"vestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestingSchedules","outputs":[{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"releasedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"beneficiaries","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"whitelistAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]'),Ab="0x6D6154fc96503B80Cc7Ebb3990D46d94EDCbA433",Rb=async(e,t)=>await io({address:"0x963Cd3E835D81ce8e4AE4836E654336DAB4298E9",abi:_b,functionName:e,args:t}),Ob=async(e,t)=>await io({address:Ab,abi:Pb,functionName:e,args:t}),Tb=async(e,t,n)=>{const{hash:r}=await ao({address:Ab,abi:Pb,functionName:e,args:t,value:n}),i=await async function(e){let{chainId:t,confirmations:n=1,hash:r,onReplaced:i,timeout:o=0}=e;const a=to({chainId:t}),s=await a.waitForTransactionReceipt({hash:r,confirmations:n,onReplaced:i,timeout:o});if("reverted"===s.status){const e=await a.getTransaction({hash:s.transactionHash}),t=await a.call({...e,gasPrice:"eip1559"!==e.type?e.gasPrice:void 0,maxFeePerGas:"eip1559"===e.type?e.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===e.type?e.maxPriorityFeePerGas:void 0}),n=(0,Ot.rR)(`0x${t.substring(138)}`);throw new Error(n)}return s}({hash:r});return i};var Ib="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const Nb="object"===("undefined"===typeof window?"undefined":Ib(window))&&"object"===("undefined"===typeof document?"undefined":Ib(document))&&9===document.nodeType;var $b=n(1002);function Mb(e){var t=function(e,t){if("object"!=(0,$b.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,$b.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,$b.Z)(t)?t:t+""}function jb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mb(r.key),r)}}function Lb(e,t,n){return t&&jb(e.prototype,t),n&&jb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Db={}.constructor;function Bb(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(Bb);if(e.constructor!==Db)return e;var t={};for(var n in e)t[n]=Bb(e[n]);return t}function Ub(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Bb(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Fb=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},zb=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Fb(e[n]," ");else t=Fb(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Wb(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Zb(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Hb(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=Wb(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var h in d){var p=d[h];null!=p&&(r&&(r+=l),r+=Zb(h+":"+c+zb(p)+";",o))}}else for(var f in a){var m=a[f];null!=m&&(r&&(r+=l),r+=Zb(f+":"+c+zb(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=Zb(g+":"+c+zb(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Zb(""+e+c+"{"+r,--o)+Zb("}",o)):r}var Vb=/([[\].#*$><+~=|^:(),"'`\s])/g,qb="undefined"!==typeof CSS&&CSS.escape,Gb=function(e){return qb?qb(e):e.replace(Vb,"\\$1")},Kb=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Yb=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(Cf(Cf(i)),s),i.selectorText="."+Gb(i.id)),i}bp(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=zb(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return Hb(this.selectorText,this.style,n)},Lb(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Kb),Qb={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Yb(e,t,n)}},Xb={indent:1,children:!0},Jb=/@([\w-]+)/,ew=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Jb);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Sw((0,i.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Xb);var t=Wb(e).linebreak;if(null==e.indent&&(e.indent=Xb.indent),null==e.children&&(e.children=Xb.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),tw=/@container|@media|@supports\s+/,nw={onCreateRule:function(e,t,n){return tw.test(e)?new ew(e,t,n):null}},rw={indent:1,children:!0},iw=/@keyframes\s+([\w-]+)/,ow=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(iw);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===o?this.name:Gb(s(this,a)),this.rules=new Sw((0,i.Z)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,i.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=rw);var t=Wb(e).linebreak;if(null==e.indent&&(e.indent=rw.indent),null==e.children&&(e.children=rw.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),aw=/@keyframes\s+/,sw=/\$([\w-]+)/g,lw=function(e,t){return"string"===typeof e?e.replace(sw,(function(e,n){return n in t?t[n]:e})):e},cw=function(e,t,n){var r=e[t],i=lw(r,n);i!==r&&(e[t]=i)},uw={onCreateRule:function(e,t,n){return"string"===typeof e&&aw.test(e)?new ow(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&cw(e,"animation-name",n.keyframes),"animation"in e&&cw(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return lw(e,r.keyframes);default:return e}}},dw=function(e){function t(){return e.apply(this,arguments)||this}return bp(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return Hb(this.key,this.style,n)},t}(Kb),hw={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new dw(e,t,n):null}},pw=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Wb(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Hb(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Hb(this.at,this.style,e)},e}(),fw=/@font-face/,mw={onCreateRule:function(e,t,n){return fw.test(e)?new pw(e,t,n):null}},gw=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Hb(this.key,this.style,e)},e}(),vw={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new gw(e,t,n):null}},yw=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),bw={"@charset":!0,"@import":!0,"@namespace":!0},ww={onCreateRule:function(e,t,n){return e in bw?new yw(e,t,n):null}},xw=[Qb,nw,uw,hw,mw,vw,ww],Cw={process:!0},Ew={force:!0,process:!0},Sw=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,a=r.sheet,s=r.jss,l=r.Renderer,c=r.generateId,u=r.scoped,d=(0,i.Z)({classes:this.classes,parent:o,sheet:a,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),h=e;e in this.raw&&(h=e+"-d"+this.counter++),this.raw[h]=t,h in this.classes&&(d.selector="."+Gb(this.classes[h]));var p=Ub(h,t,d);if(!p)return null;this.register(p);var f=void 0===d.index?this.index.length:d.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==o&&(a=(0,i.Z)({},n,{index:o})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Yb?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ow&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Yb?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ow&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Cw);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Ew)}for(var u in s){var d=t.style[u],h=s[u];null==d&&d!==h&&t.prop(u,null,Ew)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=Wb(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),kw=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,i.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Sw(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),_w=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Pw=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,o.Z)(t,["attached"]),i=Wb(r).linebreak,a="",s=0;s<this.registry.length;s++){var l=this.registry[s];null!=n&&l.attached!==n||(a&&(a+=i),a+=l.toString(r))}return a},Lb(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Aw=new Pw,Rw="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),Ow="2f1acc6c3a606b082e5eef5e54414ffb";null==Rw[Ow]&&(Rw[Ow]=0);var Tw=Rw[Ow]++,Iw=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+Tw+i+t:o+n.key+"-"+Tw+(i?"-"+i:"")+"-"+t}},Nw=function(e){var t;return function(){return t||(t=e()),t}},$w=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},Mw=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=zb(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(a){return!1}return!0},jw=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},Lw=function(e,t){return e.selectorText=t,e.selectorText===t},Dw=Nw((function(){return document.querySelector("head")}));function Bw(e){var t=Aw.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=Dw(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Uw=Nw((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Fw=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},zw=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ww=function(){function e(e){this.getPropertyValue=$w,this.setProperty=Mw,this.removeProperty=jw,this.setSelector=Lw,this.hasInsertedRules=!1,this.cssRules=[],e&&Aw.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Uw();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Bw(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else Dw().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=zw(n,t);if(!1===(i=Fw(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=zw(n,t),l=Fw(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof kw&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Zw=0,Hw=function(){function e(e){this.id=Zw++,this.version="10.10.0",this.plugins=new _w,this.options={id:{minify:!1},createGenerateId:Iw,Renderer:Nb?Ww:null,plugins:[]},this.generateId=Iw({minify:!1});for(var t=0;t<xw.length;t++)this.plugins.use(xw[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,i.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===Aw.index?0:Aw.index+1);var r=new kw(e,(0,i.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Aw.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=(0,i.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=Ub(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Vw=function(e){return new Hw(e)},qw="object"===typeof CSS&&null!=CSS&&"number"in CSS;function Gw(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Gw(r);o&&(t||(t={}),t[n]=o)}}return t}Vw();function Kw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const o=(0,i.Z)({},t);return Object.keys(n).forEach((e=>{n[e]&&(o[e]=`${t[e]} ${n[e]}`)})),o}const Yw={set:(e,t,n,r)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},Qw=Yw;const Xw=e.createContext(null);function Jw(){var t;const n=e.useContext(Xw);return null!=(t=null==n?void 0:n.$$material)?t:n}const ex="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",tx=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var nx=Date.now(),rx="fnValues"+nx,ix="fnStyle"+ ++nx;const ox=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=Ub(e,{},n);return r[ix]=t,r},onProcessStyle:function(e,t){if(rx in t||ix in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[rx]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[ix];o&&(i.style=o(e)||{});var a=i[rx];if(a)for(var s in a)i.prop(s,a[s](e),r)}}};var ax="@global",sx="@global ",lx=function(){function e(e,t,n){for(var r in this.type="global",this.at=ax,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Sw((0,i.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),cx=function(){function e(e,t,n){this.type="global",this.at=ax,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,i.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ux=/\s*,\s*/g;function dx(e,t){for(var n=e.split(ux),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}const hx=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===ax)return new lx(e,t,n);if("@"===e[0]&&e.substr(0,8)===sx)return new cx(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[ax]:null;if(o){for(var a in o)t.addRule(a,o[a],(0,i.Z)({},n,{selector:dx(a,e.selector)}));delete r[ax]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,ax.length)===ax){var a=dx(o.substr(ax.length),e.selector);t.addRule(a,r[o],(0,i.Z)({},n,{selector:a})),delete r[o]}}(e,t))}}};var px=/\s*,\s*/g,fx=/&/g,mx=/\$([\w-]+)/g;const gx=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(px),r=e.split(px),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(fx,a):a+" "+l}return i}function n(e,t,n){if(n)return(0,i.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,i.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,a){if("style"!==o.type)return r;var s,l,c=o,u=c.options.parent;for(var d in r){var h=-1!==d.indexOf("&"),p="@"===d[0];if(h||p){if(s=n(c,u,s),h){var f=t(d,c.selector);l||(l=e(u,a)),f=f.replace(mx,l);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,r[d],(0,i.Z)({},s,{selector:f})):u.addRule(m,r[d],(0,i.Z)({},s,{selector:f}))}else p&&u.addRule(d,{},s).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}};var vx=/[A-Z]/g,yx=/^ms-/,bx={};function wx(e){return"-"+e.toLowerCase()}const xx=function(e){if(bx.hasOwnProperty(e))return bx[e];var t=e.replace(vx,wx);return bx[e]=yx.test(t)?"-"+t:t};function Cx(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:xx(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Cx):t.fallbacks=Cx(e.fallbacks)),t}const Ex=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Cx(e[t]);return e}return Cx(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=xx(t);return t===r?e:(n.prop(r,e),null)}}};var Sx=qw&&CSS?CSS.px:"px",kx=qw&&CSS?CSS.ms:"ms",_x=qw&&CSS?CSS.percent:"%";function Px(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var Ax=Px({"animation-delay":kx,"animation-duration":kx,"background-position":Sx,"background-position-x":Sx,"background-position-y":Sx,"background-size":Sx,border:Sx,"border-bottom":Sx,"border-bottom-left-radius":Sx,"border-bottom-right-radius":Sx,"border-bottom-width":Sx,"border-left":Sx,"border-left-width":Sx,"border-radius":Sx,"border-right":Sx,"border-right-width":Sx,"border-top":Sx,"border-top-left-radius":Sx,"border-top-right-radius":Sx,"border-top-width":Sx,"border-width":Sx,"border-block":Sx,"border-block-end":Sx,"border-block-end-width":Sx,"border-block-start":Sx,"border-block-start-width":Sx,"border-block-width":Sx,"border-inline":Sx,"border-inline-end":Sx,"border-inline-end-width":Sx,"border-inline-start":Sx,"border-inline-start-width":Sx,"border-inline-width":Sx,"border-start-start-radius":Sx,"border-start-end-radius":Sx,"border-end-start-radius":Sx,"border-end-end-radius":Sx,margin:Sx,"margin-bottom":Sx,"margin-left":Sx,"margin-right":Sx,"margin-top":Sx,"margin-block":Sx,"margin-block-end":Sx,"margin-block-start":Sx,"margin-inline":Sx,"margin-inline-end":Sx,"margin-inline-start":Sx,padding:Sx,"padding-bottom":Sx,"padding-left":Sx,"padding-right":Sx,"padding-top":Sx,"padding-block":Sx,"padding-block-end":Sx,"padding-block-start":Sx,"padding-inline":Sx,"padding-inline-end":Sx,"padding-inline-start":Sx,"mask-position-x":Sx,"mask-position-y":Sx,"mask-size":Sx,height:Sx,width:Sx,"min-height":Sx,"max-height":Sx,"min-width":Sx,"max-width":Sx,bottom:Sx,left:Sx,top:Sx,right:Sx,inset:Sx,"inset-block":Sx,"inset-block-end":Sx,"inset-block-start":Sx,"inset-inline":Sx,"inset-inline-end":Sx,"inset-inline-start":Sx,"box-shadow":Sx,"text-shadow":Sx,"column-gap":Sx,"column-rule":Sx,"column-rule-width":Sx,"column-width":Sx,"font-size":Sx,"font-size-delta":Sx,"letter-spacing":Sx,"text-decoration-thickness":Sx,"text-indent":Sx,"text-stroke":Sx,"text-stroke-width":Sx,"word-spacing":Sx,motion:Sx,"motion-offset":Sx,outline:Sx,"outline-offset":Sx,"outline-width":Sx,perspective:Sx,"perspective-origin-x":_x,"perspective-origin-y":_x,"transform-origin":_x,"transform-origin-x":_x,"transform-origin-y":_x,"transform-origin-z":_x,"transition-delay":kx,"transition-duration":kx,"vertical-align":Sx,"flex-basis":Sx,"shape-margin":Sx,size:Sx,gap:Sx,grid:Sx,"grid-gap":Sx,"row-gap":Sx,"grid-row-gap":Sx,"grid-column-gap":Sx,"grid-template-rows":Sx,"grid-template-columns":Sx,"grid-auto-rows":Sx,"grid-auto-columns":Sx,"box-shadow-x":Sx,"box-shadow-y":Sx,"box-shadow-blur":Sx,"box-shadow-spread":Sx,"font-line-height":Sx,"text-shadow-x":Sx,"text-shadow-y":Sx,"text-shadow-blur":Sx});function Rx(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Rx(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=Rx(i,t[i],n);else for(var o in t)t[o]=Rx(e+"-"+o,t[o],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||Ax[e];return!a||0===t&&a===Sx?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}const Ox=function(e){void 0===e&&(e={});var t=Px(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Rx(r,e[r],t);return e},onChangeValue:function(e,n){return Rx(n,e,t)}}};function Tx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ix(e){return function(e){if(Array.isArray(e))return Tx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Tx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tx(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nx="",$x="",Mx="",jx="",Lx=Nb&&"ontouchstart"in document.documentElement;if(Nb){var Dx={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Bx=document.createElement("p").style;for(var Ux in Dx)if(Ux+"Transform"in Bx){Nx=Ux,$x=Dx[Ux];break}"Webkit"===Nx&&"msHyphens"in Bx&&(Nx="ms",$x=Dx.ms,jx="edge"),"Webkit"===Nx&&"-apple-trailing-word"in Bx&&(Mx="apple")}var Fx={js:Nx,css:$x,vendor:Mx,browser:jx,isTouch:Lx};var zx={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Fx.js?"-webkit-"+e:Fx.css+e)}},Wx={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Fx.js?Fx.css+"print-"+e:e)}},Zx=/[-\s]+(.)?/g;function Hx(e,t){return t?t.toUpperCase():""}function Vx(e){return e.replace(Zx,Hx)}function qx(e){return Vx("-"+e)}var Gx,Kx={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Fx.js){var n="mask-image";if(Vx(n)in t)return e;if(Fx.js+qx(n)in t)return Fx.css+e}return e}},Yx={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Fx.vendor||Fx.isTouch?e:Fx.css+e)}},Qx={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Fx.css+e)}},Xx={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Fx.css+e)}},Jx={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Fx.js||"ms"===Fx.js&&"edge"!==Fx.browser?Fx.css+e:e)}},eC={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Fx.js||"ms"===Fx.js||"apple"===Fx.vendor?Fx.css+e:e)}},tC={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Fx.js?"WebkitColumn"+qx(e)in t&&Fx.css+"column-"+e:"Moz"===Fx.js&&("page"+qx(e)in t&&"page-"+e))}},nC={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Fx.js)return e;var n=e.replace("-inline","");return Fx.js+qx(n)in t&&Fx.css+n}},rC={supportedProperty:function(e,t){return Vx(e)in t&&e}},iC={supportedProperty:function(e,t){var n=qx(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Fx.js+n in t?Fx.css+e:"Webkit"!==Fx.js&&"Webkit"+n in t&&"-webkit-"+e}},oC={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Fx.js?""+Fx.css+e:e)}},aC={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Fx.js?Fx.css+"scroll-chaining":e)}},sC={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},lC={supportedProperty:function(e,t){var n=sC[e];return!!n&&(Fx.js+qx(n)in t&&Fx.css+n)}},cC={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},uC=Object.keys(cC),dC=function(e){return Fx.css+e},hC={supportedProperty:function(e,t,n){var r=n.multiple;if(uC.indexOf(e)>-1){var i=cC[e];if(!Array.isArray(i))return Fx.js+qx(i)in t&&Fx.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Fx.js+qx(i[0])in t))return!1;return i.map(dC)}return!1}},pC=[zx,Wx,Kx,Yx,Qx,Xx,Jx,eC,tC,nC,rC,iC,oC,aC,lC,hC],fC=pC.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),mC=pC.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Ix(t.noPrefill)),e}),[]),gC={};if(Nb){Gx=document.createElement("p");var vC=window.getComputedStyle(document.documentElement,"");for(var yC in vC)isNaN(yC)||(gC[vC[yC]]=vC[yC]);mC.forEach((function(e){return delete gC[e]}))}function bC(e,t){if(void 0===t&&(t={}),!Gx)return e;if(null!=gC[e])return gC[e];"transition"!==e&&"transform"!==e||(t[e]=e in Gx.style);for(var n=0;n<fC.length&&(gC[e]=fC[n](e,Gx.style,t),!gC[e]);n++);try{Gx.style[e]=""}catch(r){return!1}return gC[e]}var wC,xC={},CC={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},EC=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function SC(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?bC(t):", "+bC(n);return r||(t||n)}function kC(e,t){var n=t;if(!wC||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=xC[r])return xC[r];try{wC.style[e]=n}catch(i){return xC[r]=!1,!1}if(CC[e])n=n.replace(EC,SC);else if(""===wC.style[e]&&("-ms-flex"===(n=Fx.css+n)&&(wC.style[e]="-ms-flexbox"),wC.style[e]=n,""===wC.style[e]))return xC[r]=!1,!1;return wC.style[e]="",xC[r]=n,xC[r]}Nb&&(wC=document.createElement("p"));const _C=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=bC(n);o&&o!==n&&(i=!0);var a=!1,s=kC(o,zb(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Fx.js?e:"@"+Fx.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return kC(t,zb(e))||e}}};const PC=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}};const AC=Vw({plugins:[ox(),hx(),gx(),Ex(),Ox(),"undefined"===typeof window?null:_C(),PC()]}),RC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,i=""===r?"":`${r}-`;let o=0;const a=()=>(o+=1,o);return(e,o)=>{const s=o.options.name;if(s&&0===s.indexOf("Mui")&&!o.options.link&&!t){if(-1!==tx.indexOf(e.key))return`Mui-${e.key}`;const t=`${i}${s}-${e.key}`;return o.options.theme[ex]&&""===r?`${t}-${a()}`:t}return`${i}${n}${a()}`}}(),OC={disableGeneration:!1,generateClassName:RC,jss:AC,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},TC=e.createContext(OC);let IC=-1e9;const NC=["variant"];function $C(e){return 0===e.length}function MC(e){const t="function"===typeof e;return{create:(n,r)=>{let a;try{a=t?e(n):e}catch(u){throw u}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return a;const s=n.components[r].styleOverrides||{},l=n.components[r].variants||[],c=(0,i.Z)({},a);return Object.keys(s).forEach((e=>{c[e]=(0,x.Z)(c[e]||{},s[e])})),l.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,o.Z)(e,NC);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?$C(r)?e[t]:(0,ce.Z)(e[t]):`${$C(r)?t:(0,ce.Z)(t)}${(0,ce.Z)(e[t].toString())}`})),r}(e.props);c[t]=(0,x.Z)(c[t]||{},e.style)})),c},options:{}}}const jC={},LC=["name","classNamePrefix","Component","defaultTheme"];function DC(e,t){let{state:n,theme:r,stylesOptions:o,stylesCreator:a,name:s}=e;if(o.disableGeneration)return;let l=Qw.get(o.sheetsManager,a,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Qw.set(o.sheetsManager,a,r,l));const c=(0,i.Z)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;const u=o.sheetsRegistry;if(0===l.refs){let e;o.sheetsCache&&(e=Qw.get(o.sheetsCache,a,r));const t=a.create(r,s);e||(e=o.jss.createStyleSheet(t,(0,i.Z)({link:!1},c)),e.attach(),o.sheetsCache&&Qw.set(o.sheetsCache,a,r,e)),u&&u.add(e),l.staticSheet=e,l.dynamicStyles=Gw(t)}if(l.dynamicStyles){const e=o.jss.createStyleSheet(l.dynamicStyles,(0,i.Z)({link:!0},c));e.update(t),e.attach(),n.dynamicSheet=e,n.classes=Kw({baseClasses:l.staticSheet.classes,newClasses:e.classes}),u&&u.add(e)}else n.classes=l.staticSheet.classes;l.refs+=1}function BC(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{name:r,classNamePrefix:a,Component:s,defaultTheme:l=jC}=n,c=(0,o.Z)(n,LC),u=MC(t),d=r||a||"makeStyles";u.options={index:(IC+=1,IC),name:r,meta:d,classNamePrefix:d};return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Jw()||l,o=(0,i.Z)({},e.useContext(TC),c),a=e.useRef(),d=e.useRef();!function(t,n){const r=e.useRef([]);let i;const o=e.useMemo((()=>({})),n);r.current!==o&&(r.current=o,i=t()),e.useEffect((()=>()=>{i&&i()}),[o])}((()=>{const e={name:r,state:{},stylesCreator:u,stylesOptions:o,theme:n};return DC(e,t),d.current=!1,a.current=e,()=>{!function(e){let{state:t,theme:n,stylesOptions:r,stylesCreator:i}=e;if(r.disableGeneration)return;const o=Qw.get(r.sheetsManager,i,n);o.refs-=1;const a=r.sheetsRegistry;0===o.refs&&(Qw.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}(e)}}),[n,u]),e.useEffect((()=>{d.current&&function(e,t){let{state:n}=e;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,t),d.current=!0}));const h=function(e,t,n){let{state:r,stylesOptions:i}=e;if(i.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Kw({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,t.classes,s);return h}}var UC={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function FC(e){if("number"===typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return UC[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function zC(e){var t=FC(e);return"".concat(t.value).concat(t.unit)}var WC=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return o&&o.insertRule(a,0),r},ZC=function(){return ZC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ZC.apply(this,arguments)},HC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},VC=WC("RingLoader","0% {transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg)} 100% {transform: rotateX(180deg) rotateY(360deg) rotateZ(360deg)}","right"),qC=WC("RingLoader","0% {transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg)} 100% {transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg)}","left");const GC=function(t){var n=t.loading,r=void 0===n||n,i=t.color,o=void 0===i?"#000000":i,a=t.speedMultiplier,s=void 0===a?1:a,l=t.cssOverride,c=void 0===l?{}:l,u=t.size,d=void 0===u?60:u,h=HC(t,["loading","color","speedMultiplier","cssOverride","size"]),p=FC(d),f=p.value,m=p.unit,g=ZC({display:"inherit",width:zC(d),height:zC(d),position:"relative"},c),v=function(e){return{position:"absolute",top:"0",left:"0",width:"".concat(f).concat(m),height:"".concat(f).concat(m),border:"".concat(f/10).concat(m," solid ").concat(o),opacity:"0.4",borderRadius:"100%",animationFillMode:"forwards",perspective:"800px",animation:"".concat(1===e?VC:qC," ").concat(2/s,"s 0s infinite linear")}};return r?e.createElement("span",ZC({style:g},h),e.createElement("span",{style:v(1)}),e.createElement("span",{style:v(2)})):null},KC=BC((()=>({backdrop:{zIndex:22e7,color:"#fff"}})));function YC(e){let{loading:t}=e;const n=KC();return(0,g.jsx)("div",{children:(0,g.jsx)(sy,{className:n.backdrop,open:t,children:(0,g.jsx)(GC,{color:"#ffffff",size:150})})})}const QC=function(){const{account:t}=(0,e.useContext)(jm),[n,r]=(0,e.useState)(0),[i,o]=(0,e.useState)(0),[a,s]=(0,e.useState)(0),[l,c]=(0,e.useState)(0),[u,d]=(0,e.useState)(""),[h,p]=(0,e.useState)(!1),[f,m]=(0,e.useState)({open:!1,message:"",severity:void 0}),v=function(e){m({open:!0,message:e,severity:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"})},y=async()=>{if(t)try{p(!0);const e=await Rb("decimals"),n=await Ob("totalTokens",[t]),i=await Ob("unlockedTokens",[t]),a=await Ob("availableTokensForWithdrawal",[t]),l=await(async e=>await io({address:Ab,abi:Pb,functionName:"getVestingSchedule",args:[e]}))(t),u=parseFloat((0,_i.b)(n.toString(),e)),d=parseFloat((0,_i.b)(i.toString(),e)),h=parseFloat((0,_i.b)(a.toString(),e)),f=parseFloat((0,_i.b)(l.releasedAmount.toString(),e));console.log("the formatted ones are :",u),r(u),o(d),s(h),c(f),p(!1)}catch(e){p(!1),console.log(e),v("Error fetching data from the contract")}};return(0,e.useEffect)((()=>{if(t){y();const e=setInterval((()=>{y()}),252e5);return()=>clearInterval(e)}}),[t]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(YC,{loading:h}),(0,g.jsx)(Nm,{alertState:f,setAlertState:m}),(0,g.jsx)(se,{children:(0,g.jsx)(Le,{maxWidth:"sm",children:(0,g.jsxs)(Km,{mt:4,sx:{background:"#0d1824",px:{xs:2,sm:4},py:2,borderRadius:"12px"},children:[(0,g.jsx)(ng,{variant:"subtitle2",sx:{color:"#EBE9ED",fontSize:t?"30px":"15px",fontFamily:"Outfit",fontWeight:t?"700":"400",textAlign:"center"},children:t?"Your TUIT holdings":"Connect your Metamask wallet to view your TUIT holdings"}),t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(Km,{mt:2,children:[(0,g.jsxs)(ng,{variant:"subtitle2",sx:{color:"#EBE9ED",fontSize:"20px",fontFamily:"Outfit",fontWeight:"600",display:"flex",justifyContent:"space-between"},children:[(0,g.jsx)("span",{children:"Total Allocated TUIT:"}),(0,g.jsx)("span",{children:parseFloat(n).toFixed(2)})]}),(0,g.jsxs)(ng,{variant:"subtitle2",sx:{color:"#EBE9ED",fontSize:"20px",fontFamily:"Outfit",fontWeight:"600",display:"flex",justifyContent:"space-between"},children:[(0,g.jsx)("span",{children:"Unlocked Amount:"}),(0,g.jsx)("span",{children:parseFloat(i).toFixed(2)})]}),(0,g.jsxs)(ng,{variant:"subtitle2",sx:{color:"#EBE9ED",fontSize:"20px",fontFamily:"Outfit",fontWeight:"600",display:"flex",justifyContent:"space-between"},children:[(0,g.jsx)("span",{children:"Withdrawn Till Date:"}),(0,g.jsx)("span",{children:parseFloat(l).toFixed(2)})]}),(0,g.jsxs)(ng,{variant:"subtitle2",sx:{color:"#EBE9ED",fontSize:"20px",fontFamily:"Outfit",fontWeight:"600",display:"flex",justifyContent:"space-between"},children:[(0,g.jsx)("span",{children:"Available For Withdrawal:"}),(0,g.jsx)("span",{children:parseFloat(a).toFixed(2)})]})]}),(0,g.jsx)(se,{mt:2,children:(0,g.jsx)(kb,{fullWidth:!0,variant:"outlined",label:"Amount to Withdraw",value:u,onChange:e=>d(e.target.value),InputProps:{style:{color:"white"}},InputLabelProps:{style:{color:"white"}},sx:{"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"white"},"&:hover fieldset":{borderColor:"white"},"&.Mui-focused fieldset":{borderColor:"white"}},"& .MuiInputLabel-root":{color:"white"}}})}),(0,g.jsx)(se,{mt:2,children:(0,g.jsx)($m,{onClick:async()=>{if(!t)return v("Error! Please connect your wallet.");if(!u||isNaN(u)||u<=0)return v("Error! Please enter a valid amount to withdraw.");try{p(!0);const e=await Rb("decimals"),t=function(e,t){let[n,r="0"]=e.split(".");const i=n.startsWith("-");if(i&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${r}`))&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[e,i,o]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],a=Math.round(Number(`${i}.${o}`));r=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${r}`)}(u.toString(),e);console.log("withdraw amount: ",t);const n=await Tb("withdraw",[t]);console.log(n),p(!1),v("Success! Transaction Confirmed","success"),y()}catch(e){p(!1),v((null===e||void 0===e?void 0:e.shortMessage)||"Transaction failed")}},width:"100%",children:"Withdraw TUIT"})})]}),(0,g.jsx)(se,{mt:1}),(0,g.jsx)("a",{href:`https://etherscan.io/address/${Ab}`,target:"_blank",rel:"noopener noreferrer",style:{color:"#1F60C9",fontSize:"16px",fontFamily:"Outfit",fontWeight:"600",textAlign:"center"},children:"View Smart Contract"}),(0,g.jsx)(ng,{variant:"subtitle2",sx:{color:"#EBE9ED",fontSize:"15px",fontFamily:"Outfit",fontWeight:"400",textAlign:"center",mt:2},children:"Write to us at info@coinsforcollege.org for any queries about your vested tokens and release schedule."})]})})})]})},XC=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function JC(e,t,n){var r;const i=function(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=qv(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=o.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:"right"===e?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"===typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const eE=e.forwardRef((function(t,n){const r=vp(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:c=!0,children:u,container:d,direction:h="down",easing:p=a,in:f,onEnter:m,onEntered:v,onEntering:y,onExit:b,onExited:w,onExiting:x,style:C,timeout:E=s,TransitionComponent:S=Op}=t,k=(0,o.Z)(t,XC),_=e.useRef(null),P=Np(u.ref,_,n),A=e=>t=>{e&&(void 0===t?e(_.current):e(_.current,t))},R=A(((e,t)=>{JC(h,e,d),Tp(e),m&&m(e,t)})),O=A(((e,t)=>{const n=Ip({timeout:E,style:C,easing:p},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,i.Z)({},n)),e.style.transition=r.transitions.create("transform",(0,i.Z)({},n)),e.style.webkitTransform="none",e.style.transform="none",y&&y(e,t)})),T=A(v),I=A(x),N=A((e=>{const t=Ip({timeout:E,style:C,easing:p},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),JC(h,e,d),b&&b(e)})),$=A((e=>{e.style.webkitTransition="",e.style.transition="",w&&w(e)})),M=e.useCallback((()=>{_.current&&JC(h,_.current,d)}),[h,d]);return e.useEffect((()=>{if(f||"down"===h||"right"===h)return;const e=Vv((()=>{_.current&&JC(h,_.current,d)})),t=qv(_.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[h,f,d]),e.useEffect((()=>{f||M()}),[f,M]),(0,g.jsx)(S,(0,i.Z)({nodeRef:_,onEnter:R,onEntered:T,onEntering:O,onExit:N,onExited:$,onExiting:I,addEndListener:e=>{l&&l(_.current,e)},appear:c,in:f,timeout:E},k,{children:(t,n)=>e.cloneElement(u,(0,i.Z)({ref:P,style:(0,i.Z)({visibility:"exited"!==t||f?void 0:"hidden"},C,u.props.style)},n))}))})),tE=eE;function nE(e){return ne("MuiDialog",e)}const rE=re("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const iE=e.createContext({}),oE=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],aE=Ie(sy,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),sE=Ie(xy,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),lE=Ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Pe(n.scroll)}`]]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),cE=Ie(Hp,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Pe(n.scroll)}`],t[`paperWidth${Pe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${rE.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`,[`&.${rE.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${rE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})})),uE=e.forwardRef((function(t,n){const r=Me({props:t,name:"MuiDialog"}),a=vp(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":c,"aria-labelledby":u,BackdropComponent:d,BackdropProps:h,children:p,className:f,disableEscapeKeyDown:m=!1,fullScreen:v=!1,fullWidth:y=!1,maxWidth:b="sm",onBackdropClick:w,onClick:x,onClose:C,open:E,PaperComponent:S=Hp,PaperProps:k={},scroll:_="paper",TransitionComponent:P=ny,transitionDuration:A=l,TransitionProps:R}=r,O=(0,o.Z)(r,oE),T=(0,i.Z)({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:y,maxWidth:b,scroll:_}),I=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e;return le({root:["root"],container:["container",`scroll${Pe(n)}`],paper:["paper",`paperScroll${Pe(n)}`,`paperWidth${Pe(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]},nE,t)})(T),N=e.useRef(),$=og(u),M=e.useMemo((()=>({titleId:$})),[$]);return(0,g.jsx)(sE,(0,i.Z)({className:s(I.root,f),closeAfterTransition:!0,components:{Backdrop:aE},componentsProps:{backdrop:(0,i.Z)({transitionDuration:A,as:d},h)},disableEscapeKeyDown:m,onClose:C,open:E,ref:n,onClick:e=>{x&&x(e),N.current&&(N.current=null,w&&w(e),C&&C(e,"backdropClick"))},ownerState:T},O,{children:(0,g.jsx)(P,(0,i.Z)({appear:!0,in:E,timeout:A,role:"presentation"},R,{children:(0,g.jsx)(lE,{className:s(I.container),onMouseDown:e=>{N.current=e.target===e.currentTarget},ownerState:T,children:(0,g.jsx)(cE,(0,i.Z)({as:S,elevation:24,role:"dialog","aria-describedby":c,"aria-labelledby":$},k,{className:s(I.paper,k.className),ownerState:T,children:(0,g.jsx)(iE.Provider,{value:M,children:p})}))})}))}))})),dE=uE;function hE(e){return ne("MuiDialogContent",e)}re("MuiDialogContent",["root","dividers"]);const pE=re("MuiDialogTitle",["root"]),fE=["className","dividers"],mE=Ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${pE.root} + &`]:{paddingTop:0}})})),gE=e.forwardRef((function(e,t){const n=Me({props:e,name:"MuiDialogContent"}),{className:r,dividers:a=!1}=n,l=(0,o.Z)(n,fE),c=(0,i.Z)({},n,{dividers:a}),u=(e=>{const{classes:t,dividers:n}=e;return le({root:["root",n&&"dividers"]},hE,t)})(c);return(0,g.jsx)(mE,(0,i.Z)({className:s(u.root,r),ownerState:c,ref:t},l))})),vE=gE;var yE=n(6213),bE=n.n(yE);const wE=["defaultTheme","withTheme","name"],xE=["classes"],CE=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{const{defaultTheme:a,withTheme:s=!1,name:l}=n,c=(0,o.Z)(n,wE);let u=l;const d=BC(t,(0,i.Z)({defaultTheme:a,Component:r,name:l||r.displayName,classNamePrefix:u},c)),h=e.forwardRef((function(e,t){const n=(0,o.Z)(e,xE),c=d((0,i.Z)({},r.defaultProps,e));let u,h=n;return("string"===typeof l||s)&&(u=Jw()||a,l&&(h=function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n]||!t.components[n].defaultProps)return r;const o=(0,i.Z)({},r),a=t.components[n].defaultProps;let s;for(s in a)void 0===o[s]&&(o[s]=a[s]);return o}({theme:u,name:l,props:n})),s&&!h.theme&&(h.theme=u)),(0,g.jsx)(r,(0,i.Z)({ref:t,classes:c},h))}));return bE()(h,r),h}},EE=e.forwardRef((function(e,t){return(0,g.jsx)(tE,{direction:"up",ref:t,...e})})),SE=CE((()=>({root:{"& .MuiDialog-root":{zIndex:"1301 !important"},"&.MuiDialog-container":{overflowY:"hidden !important"},"& .MuiDialog-paperScrollPaper":{backgroundColor:"black",height:"auto",boxShadow:"black 0px 0px 8px 1px",borderRadius:"10px"},"& .dialoge__content__section":{background:"black!important",borderRadius:"10px",border:"1px solid transparent"},"& .MuiDialogContent-root":{paddingTop:"20px",paddingBottom:"20px"}}})))(dE);function kE(e){let{open:t,setOpen:n}=e;const{switchNetwork:r}=yh();return(0,g.jsx)("div",{className:"modal__main__container",children:(0,g.jsx)(SE,{open:t,keepMounted:!0,TransitionComponent:EE,onClose:()=>{n(!1)},"aria-describedby":"alert-dialog-slide-description",children:(0,g.jsx)(vE,{className:"dialoge__content__section",children:(0,g.jsxs)(se,{borderRadius:"100px",display:"flex",alignItems:"center",flexDirection:"column",children:[(0,g.jsx)(se,{display:"flex",flexDirection:"column",alignItems:"center",width:{xs:"35%",sm:"25%"},children:(0,g.jsx)(se,{component:"img",width:"100%",src:Be,alt:""})}),(0,g.jsx)(ng,{mt:2,sx:{fontSize:{xs:"20px",sm:"26px"},fontWeight:"400",textAlign:"center",color:"#fff"},children:"Switch to Sepolia Network"}),(0,g.jsx)(ng,{mt:2,sx:{fontSize:"16px",fontWeight:"400",textAlign:"center",color:"#ffffff"},children:"You are currently connected to the wrong network. Kindly switch to the appropriate network."}),(0,g.jsx)(se,{mt:2,children:(0,g.jsx)($m,{width:"230px",onClick:()=>{null===r||void 0===r||r(1),n(!1)},children:"Switch Network"})})]})})})})}const _E=function(){const{account:t}=(0,e.useContext)(jm),[n,r]=(0,e.useState)(!1),{chain:i}=mh();return(0,e.useEffect)((()=>{t&&i&&1!==(null===i||void 0===i?void 0:i.id)&&r(!0)}),[i,t]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(kE,{open:n,setOpen:r}),(0,g.jsx)(Bm,{}),(0,g.jsx)(QC,{})]})},PE=e=>{e&&e instanceof Function&&n.e(107).then(n.bind(n,760)).then((t=>{let{getCLS:n,getFID:r,getFCP:i,getLCP:o,getTTFB:a}=t;n(e),r(e),i(e),o(e),a(e)}))},AE="cba73ada547c01c1a64d7725fb732495",RE=[Ve],OE=function(e){let{projectId:t,chains:n,metadata:r,enableInjected:i,enableCoinbase:o,enableEIP6963:a,enableEmail:s,enableWalletConnect:l}=e;const{publicClient:c}=Ai(n,[Kh({projectId:t}),function(e){return e.rpcUrls.public.http[0]?{chain:e,rpcUrls:e.rpcUrls.public}:null}]),u=[];var d;return!1!==l&&u.push(new Vh({chains:n,options:{projectId:t,showQrModal:!1,metadata:r}})),!1!==i&&u.push(new Nn({chains:n,options:{shimDisconnect:!0}})),!1!==a&&u.push(new _u({chains:n})),!1!==o&&u.push(new xh({chains:n,options:{appName:null!==(d=null===r||void 0===r?void 0:r.name)&&void 0!==d?d:"Unknown"}})),!0===s&&u.push(new qh({chains:n,options:{projectId:t}})),function(e){let{queryClient:t=new wd({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:n=zi({storage:"undefined"!==typeof window&&window.localStorage?window.localStorage:Fi}),persister:r=("undefined"!==typeof window?Ru({key:"cache",storage:n,serialize:e=>e,deserialize:e=>e}):void 0),...i}=e;const o=Yi({...i,storage:n});return r&&Pd({queryClient:t,persister:r,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime&&!1!==e.queryKey[0].persist}}),Object.assign(o,{queryClient:t})}({autoConnect:!0,connectors:u,publicClient:c})}({chains:RE,projectId:AE});!function(e){var t;Yh||(Yh=new wu({...e,_sdkVersion:`react-wagmi-${gu.VERSION}`}),(t=Yh)&&(Ue=t))}({wagmiConfig:OE,projectId:AE,chains:RE,themeMode:"dark"});r.createRoot(document.getElementById("root")).render((0,g.jsx)(e.StrictMode,{children:(0,g.jsx)(Yd,{config:OE,children:(0,g.jsx)(Lm,{children:(0,g.jsx)(_E,{})})})})),PE()})()})(); //# sourceMappingURL=main.232bdbfb.js.map